eb30c9d5bf4c725602acee414673fa4fd528d132
[external/binutils.git] / gdb / ChangeLog
1 2013-11-26  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2
3         * i386-xstate.h (I386_XSTATE_MPX): New Macro.
4         (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
5         (HAS_MPX): New macro.
6         (HAS_AVX): New macro.
7         (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
8
9 2013-11-25  Keith Seitz  <keiths@redhat.com>
10
11         PR c++/14819
12         * c-exp.y (classify_inner_name): If no matching symbol was
13         found, try looking up the token as a base class.
14         Likewise if a constructor was found.
15         * cp-namespace.c (find_type_baseclass_by_name): New function.
16         * cp-support.h (find_type_baseclass_by_name): Declare.
17         * valops.c (value_struct_elt_for_reference): If we get
18         a non-static field, try to get a value based on the
19         current instance, if any.
20
21 2013-11-24  Yao Qi  <yao@codesourcery.com>
22
23         * disasm.c (dis_asm_read_memory): Call target_read_code
24         instead of target_read_memory.
25
26 2013-11-24  Yao Qi  <yao@codesourcery.com>
27
28         * NEWS: Add note on new "set code-cache" option.
29         * target-dcache.c (code_cache_enabled_1): New variable.
30         (code_cache_enabled): New variable.
31         (show_code_cache, set_code_cache): New function.
32         (code_cache_enabled_p): New function.
33         (_initialize_target_dcache): Register command.
34         * target-dcache.h (code_cache_enabled_p): Declare.
35         * target.c (memory_xfer_partial_1):Handle
36         TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
37         (target_read_code): New function.
38         * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
39         New.
40         (target_read_code): Declare.
41
42 2013-11-24  Yao Qi  <yao@codesourcery.com>
43
44         * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
45         (stack_cache_enabled_1): ... this.  New variable.
46         (stack_cache_enabled_p): Rename to ...
47         (stack_cache_enabled): ... this.  New variable.
48         (set_stack_cache_enabled_p): Rename to ...
49         (set_stack_cache): ... this.  Update caller.
50         (show_stack_cache_enabled_p): Rename to ...
51         (show_stack_cache): ... this.  Update caller.
52         (stack_cache_enabled): Rename to ...
53         (stack_cache_enabled_p): ... this.  Update caller.
54         (_initialize_target_dcache): Replace "data cache" with
55         "target memory cache".
56         * target-dcache.h (stack_cache_enabled): Remove declaration.
57         (stack_cache_enabled_p): Add declaration.
58
59 2013-11-23  Doug Evans  <xdje42@gmail.com>
60
61         * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
62         superfluous.
63
64 2013-11-23  Doug Evans  <xdje42@gmail.com>
65
66         * python/py-frame.c (frapy_block): Fix error message text.
67
68 2013-11-23  Doug Evans  <xdje42@gmail.com>
69
70         * cli/cli-script.c (multi_line_command_p): New function.
71         (recurse_read_control_structure, read_command_lines_1): Call it.
72         (execute_control_command): Consistently have a blank line between
73         each case.
74
75 2013-11-22  Sterling Augustine  <saugustine@google.com>
76
77         PR gdb/16196:
78         * valprint.c (read_string): Set new variable fetchlen based on
79         fetchlimit and size.  Use it in call to partial_memory_read.
80         Update comment.
81
82 2013-11-22  Tom Tromey  <tromey@redhat.com>
83
84         PR backtrace/16155:
85         * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
86         the return address column is unspecified.
87
88 2013-11-22  Tom Tromey  <tromey@redhat.com>
89             Pedro Alves  <palves@redhat.com>
90
91         PR backtrace/16155
92         * value.c (value_fetch_lazy): Internal error if
93         get_frame_register_value returns the same register.
94
95 2013-11-22  Pedro Alves  <palves@redhat.com>
96             Tom Tromey  <tromey@redhat.com>
97
98         * frame.c (frame_stash_add): Now returns whether a frame with the
99         same ID was already known.
100         (compute_frame_id): New function, factored out from get_frame_id.
101         (get_frame_id): No longer lazilly compute the frame id here.
102         (get_prev_frame_if_no_cycle): New function.  Detects wider stack
103         cycles.
104         (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
105         and checking for stack cycles here.
106
107 2013-11-22  Pedro Alves  <palves@redhat.com>
108
109         PR 16155
110         * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
111         this frame and the new previous frame, not between this frame and
112         the next frame.
113
114 2013-11-22  Pedro Alves  <palves@redhat.com>
115
116         PR 16155
117         * dwarf2-frame.c (struct dwarf2_frame_cache)
118         <checked_tailcall_bottom, entry_cfa_sp_offset,
119         entry_cfa_sp_offset_p>: New fields.
120         (dwarf2_frame_cache): Adjust to use the new cache fields instead
121         of locals.  Don't call dwarf2_tailcall_sniffer_first here.
122         (dwarf2_frame_prev_register): Call it here, but only once.
123
124 2013-11-21  Doug Evans  <xdje42@gmail.com>
125
126         * gdbtypes.c: #include bcache.h, dwarf2loc.h.
127         (type_equality_entry): Move here from python/py-type.c.
128         (type_equality_entry_d): Ditto.
129         (compare_maybe_null_strings, check_types_equal): Ditto.
130         (check_types_worklist, types_deeply_equal): Ditto.
131         * gdbtypes.h (types_deeply_equal): Declare.
132         * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
133         (typy_richcompare): Update.
134
135 2013-11-20  Joel Brobecker  <brobecker@adacore.com>
136
137         * python/py-value.c (is_intlike): Delete.
138         (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
139         by use of is_integral_type.
140         (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
141         by use of is_integral_type and check for TYPE_CODE_PTR.
142
143 2013-11-20  Tom Tromey  <tromey@redhat.com>
144
145         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
146         strerror module.
147         * gnulib/aclocal.m4: Update.
148         * gnulib/config.in: Update.
149         * gnulib/configure: Update.
150         * gnulib/import/Makefile.am: Update.
151         * gnulib/import/Makefile.in: Update.
152         * gnulib/import/errno.in.h: Remove.
153         * gnulib/import/intprops.h: Remove.
154         * gnulib/import/m4/errno_h.m4: Remove.
155         * gnulib/import/m4/gnulib-cache.m4: Update.
156         * gnulib/import/m4/gnulib-comp.m4: Update.
157         * gnulib/import/m4/strerror.m4: Remove.
158         * gnulib/import/m4/sys_socket_h.m4: Remove.
159         * gnulib/import/strerror-override.c: Remove.
160         * gnulib/import/strerror-override.h: Remove.
161         * gnulib/import/strerror.c: Remove.
162         * gnulib/update-gnulib.sh: Update.
163
164 2013-11-20  Yao Qi  <yao@codesourcery.com>
165
166         * target-dcache.c (target_dcache_get_or_init): Call
167         set_address_space_data if 'dcache' is NULL.
168
169 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
170
171         * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
172
173 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
174
175         * python/lib/gdb/command/bound_register.py: New file.
176         * data-directory/Makefile.in: Copy bond_register.py to the right path
177         to be initialized at gdb startup.
178
179 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
180
181         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
182         Add MPX registers.
183         (amd64_linux_read_description): Add initialization for MPX and
184         AVX independently.
185         * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
186         (amd64_linux_gregset_reg_offset): Add MPX registers.
187         (amd64_linux_core_read_description): Add initialization for MPX
188         registers.
189         (_initialize_amd64_linux_tdep): Initialize MPX targets.
190         * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
191         register on the list.
192         (tdesc_amd64_mpx_linux) Add new target  for MPX.
193         * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
194         (amd64_mpx_names): MPX register names.
195         (amd64_init_abi): Add MPX register while initializing the ABI.
196         (_initialize_amd64_tdep): Initialize MPX targets.
197         * amd64-tdep.h (amd64_regnum): Add MPX registers.
198         (AMD64_NUM_REGS): Set number of registers taking MPX into account.
199
200 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
201
202         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
203         registers on the range of registers to be read from
204         xsave buffer.
205         (i386_linux_read_description): Add case for MPX.
206         * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
207         (i386_linux_gregset_reg_offset): Add MPX registers.
208         (i386_linux_core_read_description): Initialize also MPX.
209         (_initialize_i386_linux_tdep): Add mpx initialization.
210         * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
211         mpx_register_names.
212         (i386_regnum): Add MPX registers.
213         (I386_MPX_NUM_REGS): New macro.
214         (i386_bnd_regnum_p): New function.
215         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
216         number of registers to be the number of BNDSTATUS.
217         (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
218         * i386-tdep.c: Include features/i386/i386-mpx.c.
219         (i386_mpx_names): Add MPX register names array.
220         (i386_bnd_names): Add bnd pseudo register names array.
221         (i386_bndr_regnum_p): Lookup register numbers for bnd raw
222         registers.
223         (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
224         (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
225         registers.
226         (i386_bnd_type): New function.
227         (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
228         register types.
229         (i386_pseudo_register_read_into_value): Add bnd case.
230         (i386_pseudo_register_write): Add bnd pseudo registers.
231         (i386_register_reggroup_p): Add MPX register to the group all.
232         (i386_validate_tdesc_p): Add MPX to the target  description
233         validation.
234         (i386_pseudo_register_name): Add bnd pseudo registers.
235         (i386_gdbarch_init): Add MPX for architecture initialization.
236         (_initia_initialize_i386_tdep): Add mpx initialization.
237         * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
238         XSAVE buffer.
239         (XSAVE_MPX_ADDR): New macro.
240         (i387_supply_xsave): Add MPX case.
241         (i387_collect_xsave): Add MPX case.
242         * i387-tdep.h (I387_BND0R_REGNUM): New macro.
243         (I387_BNDCFGU_REGNUM): New macro.
244         (I387_NUM_MPX_REGS): New macro.
245         (I387_NUM_BND_REGS): New macro.
246         (I387_NUM_MPX_CTRL_REGS): New macro.
247         (I387_MPXEND_REGNUM): New macro.
248         * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
249         (I386_XSTATE_BNDCFG): Likewise.
250         (I386_XSTATE_MPX_MASK): Likewise.
251         (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
252         (I386_XSTATE_BNDREGS_SIZE): New macro.
253         (I386_XSTATE_BNDCFG_SIZE): Likewise.
254         (I386_XSTATE_SIZE): Adapt for MPX.
255         (I386_XSTATE_MAX_SIZE): Likewise.
256
257 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
258
259         * features/i386/Makefile: Adapts for using MPX registers.
260         * features/i386/32bit-mpx.xml: New file.
261         * features/i386/64bit-mpx.xml: Likewise.
262         * features/i386/amd64-mpx-linux.c: Likewise.
263         * features/i386/amd64-mpx-linux.xml: Likewise.
264         * features/i386/amd64-mpx.c: Likewise.
265         * features/i386/amd64-mpx.xml: Likewise.
266         * features/i386/i386-mpx-linux.c: Likewise.
267         * features/i386/i386-mpx-linux.xml: Likewise.
268         * features/i386/i386-mpx.c: Likewise.
269         * features/i386/i386-mpx.xml: Likewise.
270         * regformats/i386/amd64-mpx-linux.dat: New file.
271         * regformats/i386/amd64-mpx.dat: Likewise.
272         * regformats/i386/i386-mpx-linux.dat: Likewise.
273         * regformats/i386/i386-mpx.dat: Likewise.
274
275 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
276
277         * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
278         Modified logic of creating a bitfield to be in sync with
279         tdesc_gdb_type.
280
281 2013-11-20  Will Newton  <will.newton@linaro.org>
282
283         * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
284         error message.
285
286 2013-11-20  Yao Qi  <yao@codesourcery.com>
287
288         * progspace.h (struct address_space_data): Declare.
289         * target-dcache.c: Include "progspace.h".
290         (target_dache): Remove.
291         (target_dcache_aspace_key): New.
292         (target_dcache_cleanup): New function.
293         (target_dcache_init_p): Get data through
294         target_dcache_aspace_key.
295         (target_dcache_invalidate): Likewise.
296         (target_dcache_get): Likewise.
297         (target_dcache_get_or_init): Likewise.
298         (_initialize_target_dcache): Initialize
299         target_dcache_aspace_key.
300
301 2013-11-20  Yao Qi  <yao@codesourcery.com>
302
303         * progspace.c (struct address_space): Update comments.
304         <REGISTRY_FIELDS>: New fields.
305         DEFINE_REGISTRY for address_space.
306         (new_address_space): Call address_space_alloc_data.
307         (free_address_space): Call address_space_free_data.
308         * progspace.h: Use DECLARE_REGISTRY.
309
310 2013-11-20  Yao Qi  <yao@codesourcery.com>
311
312         * Makefile.in (SFILES):Add target-dcache.c.
313         (HFILES_NO_SRCDIR): Add target-dcache.h.
314         (COMMON_OBS): Add target-dcache.o.
315         * dcache.c: Remove inclusion to "target.h".  Include
316         "target-dcache.h".
317         * memattr.c: Include "target-dcache.h".
318         * top.c: Likewise.
319         * tracepoint.c: Likewise.
320         * target.c: (stack_cache_enabled_p_1): Move to
321         target-dcache.c.
322         (stack_cache_enabled_p): Likewise.
323         (set_stack_cache_enabled_p): Likewise.
324         (show_stack_cache_enabled_p): Likewise.
325         (target_dcache, target_dcache_init_p): Likewise.
326         (target_dcache_invalidate): Likewise.
327         (target_dcache_get, target_dcache_get_or_init): Likewise.
328         (memory_xfer_partial_1): Call function stack_cache_enabled.
329         (initialize_target): Move code to target-dcache.c.
330         * target.h (target_dcache_invalidate): Move to
331         target-dcache.h.
332         (target_dcache_get): Likewise.
333         * target-dcache.c: New.
334         * target-dcache.h: New.
335
336 2013-11-20  Yao Qi  <yao@codesourcery.com>
337
338         * target.c (memory_xfer_partial_1): Update 'target_dcache' if
339         it is initialized.
340
341 2013-11-20  Yao Qi  <yao@codesourcery.com>
342
343         * dcache.c (last_cache): Remove.
344         (dcache_free, dcache_init): Update.
345         (dcache_update):
346         (dcache_print_line): Add parameter 'dcache'.  Replace
347         'target_dcache' with 'dcache'.
348         (dcache_info): Move code to dcache_info_1. Call
349         'dcache_info_1'.
350         (dcache_info_1): New function.
351         (set_dcache_size): Call target_dcache_invalidate.
352         (set_dcache_line_size): Call target_dcache_invalidate.
353         * target.c (target_dcache_init_p): New function.
354         (target_dcache_invalidate): Check target_dcache_init_p first.
355         (target_dcache_get, target_dcache_get_or_init): New function.
356         (memory_xfer_partial_1): Adjust.
357         (initialize_target): Don't initialize 'target_dcache'.
358         * target.h (struct dcache_struct): Declare.
359         (target_dcache_get): Declare.
360
361 2013-11-19  Yao Qi  <yao@codesourcery.com>
362
363         * varobj.c (varobj_get_type): Fix typo.
364
365 2013-11-19  Joel Brobecker  <brobecker@adacore.com>
366
367         * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
368
369 2013-11-19  Joel Brobecker  <brobecker@adacore.com>
370
371         * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
372         "stat.h".
373
374 2013-11-18  Tom Tromey  <tromey@redhat.com>
375
376         * common/gdb_stat.h: Remove.
377         * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
378         * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
379         * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
380         * corefile.c: Use sys/stat.h, not gdb_stat.h.
381         * ctf.c: Use sys/stat.h, not gdb_stat.h.
382         * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
383         * dbxread.c: Use sys/stat.h, not gdb_stat.h.
384         * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
385         * exec.c: Use sys/stat.h, not gdb_stat.h.
386         * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
387         * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
388         * inf-child.c: Use sys/stat.h, not gdb_stat.h.
389         * jit.c: Use sys/stat.h, not gdb_stat.h.
390         * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
391         * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
392         * main.c: Use sys/stat.h, not gdb_stat.h.
393         * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
394         * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
395         * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
396         * objfiles.c: Use sys/stat.h, not gdb_stat.h.
397         * procfs.c: Use sys/stat.h, not gdb_stat.h.
398         * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
399         * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
400         * remote.c: Use sys/stat.h, not gdb_stat.h.
401         * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
402         * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
403         * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
404         * source.c: Use sys/stat.h, not gdb_stat.h.
405         * symfile.c: Use sys/stat.h, not gdb_stat.h.
406         * symmisc.c: Use sys/stat.h, not gdb_stat.h.
407         * symtab.c: Use sys/stat.h, not gdb_stat.h.
408         * top.c: Use sys/stat.h, not gdb_stat.h.
409         * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
410
411 2013-11-18  Tom Tromey  <tromey@redhat.com>
412
413         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
414         sys_stat.
415         * gnulib/aclocal.m4: Update.
416         * gnulib/config.in: Update.
417         * gnulib/configure: Update.
418         * gnulib/import/Makefile.am: Update.
419         * gnulib/import/Makefile.in: Update.
420         * gnulib/import/m4/gnulib-cache.m4: Update.
421         * gnulib/import/m4/gnulib-comp.m4: Update.
422         * gnulib/import/m4/sys_stat_h.m4: New.
423         * gnulib/import/m4/time_h.m4: New.
424         * gnulib/import/sys_stat.in.h: New.
425         * gnulib/import/time.in.h: New.
426
427 2013-11-18  Tom Tromey  <tromey@redhat.com>
428
429         * configure: Rebuild.
430         * configure.ac: Remove check of HAVE_SYS_TYPES_H.
431
432 2013-11-18  Tom Tromey  <tromey@redhat.com>
433
434         * configure: Rebuild.
435         * configure.ac: Don't check for unistd.h.
436
437 2013-11-18  Tom Tromey  <tromey@redhat.com>
438
439         * configure: Rebuild.
440         * configure.ac: Don't check for stdlib.h
441         * defs.h: Include stdlib.h unconditionally.
442
443 2013-11-18  Tom Tromey  <tromey@redhat.com>
444
445         * config.in: Rebuild.
446         * configure: Rebuild.
447         * configure.ac: Don't check for stddef.h.
448         * defs.h: Unconditionally include stddef.h.  Remove duplicate
449         inclusion.
450
451 2013-11-18  Tom Tromey  <tromey@redhat.com>
452
453         * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
454         * common/gdb_dirent.h: Remove.
455         * common/filestuff.c: Use dirent.h.
456         * common/linux-osdata.c: Use dirent.h.
457         (NAMELEN): Define.
458         * config.in: Rebuild.
459         * configure: Rebuild.
460         * configure.ac: Don't use AC_HEADER_DIRENT.
461         * linux-fork.c: Use dirent.h
462         * linux-nat.c: Use dirent.h.
463         * nto-procfs.c: Use dirent.h.
464         * procfs.c: Use dirent.h.
465
466 2013-11-18  Tom Tromey  <tromey@redhat.com>
467
468         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
469         * gnulib/aclocal.m4: Update.
470         * gnulib/config.in: Update.
471         * gnulib/configure: Update.
472         * gnulib/import/Makefile.am: Update.
473         * gnulib/import/Makefile.in: Update.
474         * gnulib/import/dirent.in.h: New.
475         * gnulib/import/m4/dirent_h.m4: New.
476         * gnulib/import/m4/gnulib-cache.m4: Update.
477         * gnulib/import/m4/gnulib-comp.m4: Update.
478
479 2013-11-18  Tom Tromey  <tromey@redhat.com>
480
481         * configure: Rebuild.
482         * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
483         strings.h.
484
485 2013-11-18  Tom Tromey  <tromey@redhat.com>
486
487         * common/gdb_string.h: Remove.
488         * aarch64-tdep.c: Use string.h, not gdb_string.h.
489         * ada-exp.y: Use string.h, not gdb_string.h.
490         * ada-lang.c: Use string.h, not gdb_string.h.
491         * ada-lex.l: Use string.h, not gdb_string.h.
492         * ada-typeprint.c: Use string.h, not gdb_string.h.
493         * ada-valprint.c: Use string.h, not gdb_string.h.
494         * aix-thread.c: Use string.h, not gdb_string.h.
495         * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
496         * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
497         * alpha-nat.c: Use string.h, not gdb_string.h.
498         * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
499         * alpha-tdep.c: Use string.h, not gdb_string.h.
500         * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
501         * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
502         * amd64-linux-nat.c: Use string.h, not gdb_string.h.
503         * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
504         * amd64-nat.c: Use string.h, not gdb_string.h.
505         * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
506         * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
507         * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
508         * arch-utils.c: Use string.h, not gdb_string.h.
509         * arm-linux-nat.c: Use string.h, not gdb_string.h.
510         * arm-linux-tdep.c: Use string.h, not gdb_string.h.
511         * arm-tdep.c: Use string.h, not gdb_string.h.
512         * arm-wince-tdep.c: Use string.h, not gdb_string.h.
513         * armbsd-tdep.c: Use string.h, not gdb_string.h.
514         * armnbsd-nat.c: Use string.h, not gdb_string.h.
515         * armnbsd-tdep.c: Use string.h, not gdb_string.h.
516         * armobsd-tdep.c: Use string.h, not gdb_string.h.
517         * avr-tdep.c: Use string.h, not gdb_string.h.
518         * ax-gdb.c: Use string.h, not gdb_string.h.
519         * ax-general.c: Use string.h, not gdb_string.h.
520         * bcache.c: Use string.h, not gdb_string.h.
521         * bfin-tdep.c: Use string.h, not gdb_string.h.
522         * breakpoint.c: Use string.h, not gdb_string.h.
523         * build-id.c: Use string.h, not gdb_string.h.
524         * buildsym.c: Use string.h, not gdb_string.h.
525         * c-exp.y: Use string.h, not gdb_string.h.
526         * c-lang.c: Use string.h, not gdb_string.h.
527         * c-typeprint.c: Use string.h, not gdb_string.h.
528         * c-valprint.c: Use string.h, not gdb_string.h.
529         * charset.c: Use string.h, not gdb_string.h.
530         * cli-out.c: Use string.h, not gdb_string.h.
531         * cli/cli-cmds.c: Use string.h, not gdb_string.h.
532         * cli/cli-decode.c: Use string.h, not gdb_string.h.
533         * cli/cli-dump.c: Use string.h, not gdb_string.h.
534         * cli/cli-interp.c: Use string.h, not gdb_string.h.
535         * cli/cli-logging.c: Use string.h, not gdb_string.h.
536         * cli/cli-script.c: Use string.h, not gdb_string.h.
537         * cli/cli-setshow.c: Use string.h, not gdb_string.h.
538         * cli/cli-utils.c: Use string.h, not gdb_string.h.
539         * coffread.c: Use string.h, not gdb_string.h.
540         * common/common-utils.c: Use string.h, not gdb_string.h.
541         * common/filestuff.c: Use string.h, not gdb_string.h.
542         * common/linux-procfs.c: Use string.h, not gdb_string.h.
543         * common/linux-ptrace.c: Use string.h, not gdb_string.h.
544         * common/signals.c: Use string.h, not gdb_string.h.
545         * common/vec.h: Use string.h, not gdb_string.h.
546         * core-regset.c: Use string.h, not gdb_string.h.
547         * corefile.c: Use string.h, not gdb_string.h.
548         * corelow.c: Use string.h, not gdb_string.h.
549         * cp-abi.c: Use string.h, not gdb_string.h.
550         * cp-support.c: Use string.h, not gdb_string.h.
551         * cp-valprint.c: Use string.h, not gdb_string.h.
552         * cris-tdep.c: Use string.h, not gdb_string.h.
553         * d-lang.c: Use string.h, not gdb_string.h.
554         * dbxread.c: Use string.h, not gdb_string.h.
555         * dcache.c: Use string.h, not gdb_string.h.
556         * demangle.c: Use string.h, not gdb_string.h.
557         * dicos-tdep.c: Use string.h, not gdb_string.h.
558         * disasm.c: Use string.h, not gdb_string.h.
559         * doublest.c: Use string.h, not gdb_string.h.
560         * dsrec.c: Use string.h, not gdb_string.h.
561         * dummy-frame.c: Use string.h, not gdb_string.h.
562         * dwarf2-frame.c: Use string.h, not gdb_string.h.
563         * dwarf2loc.c: Use string.h, not gdb_string.h.
564         * dwarf2read.c: Use string.h, not gdb_string.h.
565         * elfread.c: Use string.h, not gdb_string.h.
566         * environ.c: Use string.h, not gdb_string.h.
567         * eval.c: Use string.h, not gdb_string.h.
568         * event-loop.c: Use string.h, not gdb_string.h.
569         * exceptions.c: Use string.h, not gdb_string.h.
570         * exec.c: Use string.h, not gdb_string.h.
571         * expprint.c: Use string.h, not gdb_string.h.
572         * f-exp.y: Use string.h, not gdb_string.h.
573         * f-lang.c: Use string.h, not gdb_string.h.
574         * f-typeprint.c: Use string.h, not gdb_string.h.
575         * f-valprint.c: Use string.h, not gdb_string.h.
576         * fbsd-nat.c: Use string.h, not gdb_string.h.
577         * findcmd.c: Use string.h, not gdb_string.h.
578         * findvar.c: Use string.h, not gdb_string.h.
579         * fork-child.c: Use string.h, not gdb_string.h.
580         * frame.c: Use string.h, not gdb_string.h.
581         * frv-linux-tdep.c: Use string.h, not gdb_string.h.
582         * frv-tdep.c: Use string.h, not gdb_string.h.
583         * gdb.c: Use string.h, not gdb_string.h.
584         * gdb_bfd.c: Use string.h, not gdb_string.h.
585         * gdbarch.c: Use string.h, not gdb_string.h.
586         * gdbtypes.c: Use string.h, not gdb_string.h.
587         * gnu-nat.c: Use string.h, not gdb_string.h.
588         * gnu-v2-abi.c: Use string.h, not gdb_string.h.
589         * gnu-v3-abi.c: Use string.h, not gdb_string.h.
590         * go-exp.y: Use string.h, not gdb_string.h.
591         * go-lang.c: Use string.h, not gdb_string.h.
592         * go32-nat.c: Use string.h, not gdb_string.h.
593         * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
594         * hppa-linux-nat.c: Use string.h, not gdb_string.h.
595         * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
596         * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
597         * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
598         * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
599         * i386-linux-nat.c: Use string.h, not gdb_string.h.
600         * i386-linux-tdep.c: Use string.h, not gdb_string.h.
601         * i386-nto-tdep.c: Use string.h, not gdb_string.h.
602         * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
603         * i386-tdep.c: Use string.h, not gdb_string.h.
604         * i386bsd-tdep.c: Use string.h, not gdb_string.h.
605         * i386gnu-nat.c: Use string.h, not gdb_string.h.
606         * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
607         * i386obsd-tdep.c: Use string.h, not gdb_string.h.
608         * i387-tdep.c: Use string.h, not gdb_string.h.
609         * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
610         * ia64-linux-nat.c: Use string.h, not gdb_string.h.
611         * inf-child.c: Use string.h, not gdb_string.h.
612         * inf-ptrace.c: Use string.h, not gdb_string.h.
613         * inf-ttrace.c: Use string.h, not gdb_string.h.
614         * infcall.c: Use string.h, not gdb_string.h.
615         * infcmd.c: Use string.h, not gdb_string.h.
616         * inflow.c: Use string.h, not gdb_string.h.
617         * infrun.c: Use string.h, not gdb_string.h.
618         * interps.c: Use string.h, not gdb_string.h.
619         * iq2000-tdep.c: Use string.h, not gdb_string.h.
620         * irix5-nat.c: Use string.h, not gdb_string.h.
621         * jv-exp.y: Use string.h, not gdb_string.h.
622         * jv-lang.c: Use string.h, not gdb_string.h.
623         * jv-typeprint.c: Use string.h, not gdb_string.h.
624         * jv-valprint.c: Use string.h, not gdb_string.h.
625         * language.c: Use string.h, not gdb_string.h.
626         * linux-fork.c: Use string.h, not gdb_string.h.
627         * linux-nat.c: Use string.h, not gdb_string.h.
628         * lm32-tdep.c: Use string.h, not gdb_string.h.
629         * m2-exp.y: Use string.h, not gdb_string.h.
630         * m2-typeprint.c: Use string.h, not gdb_string.h.
631         * m32c-tdep.c: Use string.h, not gdb_string.h.
632         * m32r-linux-nat.c: Use string.h, not gdb_string.h.
633         * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
634         * m32r-rom.c: Use string.h, not gdb_string.h.
635         * m32r-tdep.c: Use string.h, not gdb_string.h.
636         * m68hc11-tdep.c: Use string.h, not gdb_string.h.
637         * m68k-tdep.c: Use string.h, not gdb_string.h.
638         * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
639         * m68klinux-nat.c: Use string.h, not gdb_string.h.
640         * m68klinux-tdep.c: Use string.h, not gdb_string.h.
641         * m88k-tdep.c: Use string.h, not gdb_string.h.
642         * macrocmd.c: Use string.h, not gdb_string.h.
643         * main.c: Use string.h, not gdb_string.h.
644         * mdebugread.c: Use string.h, not gdb_string.h.
645         * mem-break.c: Use string.h, not gdb_string.h.
646         * memattr.c: Use string.h, not gdb_string.h.
647         * memory-map.c: Use string.h, not gdb_string.h.
648         * mep-tdep.c: Use string.h, not gdb_string.h.
649         * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
650         * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
651         * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
652         * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
653         * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
654         * mi/mi-cmds.c: Use string.h, not gdb_string.h.
655         * mi/mi-console.c: Use string.h, not gdb_string.h.
656         * mi/mi-getopt.c: Use string.h, not gdb_string.h.
657         * mi/mi-interp.c: Use string.h, not gdb_string.h.
658         * mi/mi-main.c: Use string.h, not gdb_string.h.
659         * mi/mi-parse.c: Use string.h, not gdb_string.h.
660         * microblaze-rom.c: Use string.h, not gdb_string.h.
661         * microblaze-tdep.c: Use string.h, not gdb_string.h.
662         * mingw-hdep.c: Use string.h, not gdb_string.h.
663         * minidebug.c: Use string.h, not gdb_string.h.
664         * minsyms.c: Use string.h, not gdb_string.h.
665         * mips-irix-tdep.c: Use string.h, not gdb_string.h.
666         * mips-linux-tdep.c: Use string.h, not gdb_string.h.
667         * mips-tdep.c: Use string.h, not gdb_string.h.
668         * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
669         * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
670         * mipsread.c: Use string.h, not gdb_string.h.
671         * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
672         * mn10300-tdep.c: Use string.h, not gdb_string.h.
673         * monitor.c: Use string.h, not gdb_string.h.
674         * moxie-tdep.c: Use string.h, not gdb_string.h.
675         * mt-tdep.c: Use string.h, not gdb_string.h.
676         * nbsd-tdep.c: Use string.h, not gdb_string.h.
677         * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
678         * nto-procfs.c: Use string.h, not gdb_string.h.
679         * nto-tdep.c: Use string.h, not gdb_string.h.
680         * objc-lang.c: Use string.h, not gdb_string.h.
681         * objfiles.c: Use string.h, not gdb_string.h.
682         * opencl-lang.c: Use string.h, not gdb_string.h.
683         * osabi.c: Use string.h, not gdb_string.h.
684         * osdata.c: Use string.h, not gdb_string.h.
685         * p-exp.y: Use string.h, not gdb_string.h.
686         * p-lang.c: Use string.h, not gdb_string.h.
687         * p-typeprint.c: Use string.h, not gdb_string.h.
688         * parse.c: Use string.h, not gdb_string.h.
689         * posix-hdep.c: Use string.h, not gdb_string.h.
690         * ppc-linux-nat.c: Use string.h, not gdb_string.h.
691         * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
692         * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
693         * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
694         * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
695         * printcmd.c: Use string.h, not gdb_string.h.
696         * procfs.c: Use string.h, not gdb_string.h.
697         * prologue-value.c: Use string.h, not gdb_string.h.
698         * python/py-auto-load.c: Use string.h, not gdb_string.h.
699         * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
700         * ravenscar-thread.c: Use string.h, not gdb_string.h.
701         * regcache.c: Use string.h, not gdb_string.h.
702         * registry.c: Use string.h, not gdb_string.h.
703         * remote-fileio.c: Use string.h, not gdb_string.h.
704         * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
705         * remote-mips.c: Use string.h, not gdb_string.h.
706         * remote-sim.c: Use string.h, not gdb_string.h.
707         * remote.c: Use string.h, not gdb_string.h.
708         * reverse.c: Use string.h, not gdb_string.h.
709         * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
710         * ser-base.c: Use string.h, not gdb_string.h.
711         * ser-go32.c: Use string.h, not gdb_string.h.
712         * ser-mingw.c: Use string.h, not gdb_string.h.
713         * ser-pipe.c: Use string.h, not gdb_string.h.
714         * ser-tcp.c: Use string.h, not gdb_string.h.
715         * ser-unix.c: Use string.h, not gdb_string.h.
716         * serial.c: Use string.h, not gdb_string.h.
717         * sh-tdep.c: Use string.h, not gdb_string.h.
718         * sh64-tdep.c: Use string.h, not gdb_string.h.
719         * shnbsd-tdep.c: Use string.h, not gdb_string.h.
720         * skip.c: Use string.h, not gdb_string.h.
721         * sol-thread.c: Use string.h, not gdb_string.h.
722         * solib-dsbt.c: Use string.h, not gdb_string.h.
723         * solib-frv.c: Use string.h, not gdb_string.h.
724         * solib-osf.c: Use string.h, not gdb_string.h.
725         * solib-spu.c: Use string.h, not gdb_string.h.
726         * solib-target.c: Use string.h, not gdb_string.h.
727         * solib.c: Use string.h, not gdb_string.h.
728         * somread.c: Use string.h, not gdb_string.h.
729         * source.c: Use string.h, not gdb_string.h.
730         * sparc-nat.c: Use string.h, not gdb_string.h.
731         * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
732         * sparc-tdep.c: Use string.h, not gdb_string.h.
733         * sparc64-tdep.c: Use string.h, not gdb_string.h.
734         * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
735         * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
736         * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
737         * spu-linux-nat.c: Use string.h, not gdb_string.h.
738         * spu-multiarch.c: Use string.h, not gdb_string.h.
739         * spu-tdep.c: Use string.h, not gdb_string.h.
740         * stabsread.c: Use string.h, not gdb_string.h.
741         * stack.c: Use string.h, not gdb_string.h.
742         * std-regs.c: Use string.h, not gdb_string.h.
743         * symfile.c: Use string.h, not gdb_string.h.
744         * symmisc.c: Use string.h, not gdb_string.h.
745         * symtab.c: Use string.h, not gdb_string.h.
746         * target.c: Use string.h, not gdb_string.h.
747         * thread.c: Use string.h, not gdb_string.h.
748         * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
749         * tilegx-tdep.c: Use string.h, not gdb_string.h.
750         * top.c: Use string.h, not gdb_string.h.
751         * tracepoint.c: Use string.h, not gdb_string.h.
752         * tui/tui-command.c: Use string.h, not gdb_string.h.
753         * tui/tui-data.c: Use string.h, not gdb_string.h.
754         * tui/tui-disasm.c: Use string.h, not gdb_string.h.
755         * tui/tui-file.c: Use string.h, not gdb_string.h.
756         * tui/tui-layout.c: Use string.h, not gdb_string.h.
757         * tui/tui-out.c: Use string.h, not gdb_string.h.
758         * tui/tui-regs.c: Use string.h, not gdb_string.h.
759         * tui/tui-source.c: Use string.h, not gdb_string.h.
760         * tui/tui-stack.c: Use string.h, not gdb_string.h.
761         * tui/tui-win.c: Use string.h, not gdb_string.h.
762         * tui/tui-windata.c: Use string.h, not gdb_string.h.
763         * tui/tui-winsource.c: Use string.h, not gdb_string.h.
764         * typeprint.c: Use string.h, not gdb_string.h.
765         * ui-file.c: Use string.h, not gdb_string.h.
766         * ui-out.c: Use string.h, not gdb_string.h.
767         * user-regs.c: Use string.h, not gdb_string.h.
768         * utils.c: Use string.h, not gdb_string.h.
769         * v850-tdep.c: Use string.h, not gdb_string.h.
770         * valarith.c: Use string.h, not gdb_string.h.
771         * valops.c: Use string.h, not gdb_string.h.
772         * valprint.c: Use string.h, not gdb_string.h.
773         * value.c: Use string.h, not gdb_string.h.
774         * varobj.c: Use string.h, not gdb_string.h.
775         * vax-tdep.c: Use string.h, not gdb_string.h.
776         * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
777         * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
778         * windows-nat.c: Use string.h, not gdb_string.h.
779         * xcoffread.c: Use string.h, not gdb_string.h.
780         * xml-support.c: Use string.h, not gdb_string.h.
781         * xstormy16-tdep.c: Use string.h, not gdb_string.h.
782         * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
783
784 2013-11-18  Tom Tromey  <tromey@redhat.com>
785
786         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
787         and strstr.
788         * gnulib/aclocal.m4: Update.
789         * gnulib/config.in: Update.
790         * gnulib/configure: Update.
791         * gnulib/import/Makefile.am: Update.
792         * gnulib/import/Makefile.in: Update.
793         * gnulib/import/errno.in.h: New.
794         * gnulib/import/intprops.h: New.
795         * gnulib/import/m4/errno_h.m4: New.
796         * gnulib/import/m4/gnulib-cache.m4: Update.
797         * gnulib/import/m4/gnulib-comp.m4: Update.
798         * gnulib/import/m4/strerror.m4: New.
799         * gnulib/import/m4/strstr.m4: New.
800         * gnulib/import/m4/sys_socket_h.m4: New.
801         * gnulib/import/strerror-override.c: New.
802         * gnulib/import/strerror-override.h: New.
803         * gnulib/import/strerror.c: New.
804         * gnulib/import/strstr.c: New.
805
806 2013-11-18  Tom Tromey  <tromey@redhat.com>
807
808         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
809         multiple lines.
810
811 2013-11-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
812
813         * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
814         * sparc-tdep.h: And its prototype.
815
816         * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
817         function.
818         (sparc64_linux_init_abi): Register the get_longjmp_target hook.
819
820 2013-11-18  Pedro Alves  <palves@redhat.com>
821
822         * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
823         use unpack_pointer.
824
825 2013-11-18  Joel Brobecker  <brobecker@adacore.com>
826
827         * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
828         to -list-features output.
829
830 2013-11-17  Joel Brobecker  <brobecker@adacore.com>
831
832         * dwarf2expr.h (struct dwarf_expr_context_funcs)
833         <read_addr_from_reg>: Renames "read_reg".
834         * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
835         Adjust comment.
836         (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
837         Use read_addr_from_reg in place of read_reg.
838         * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
839         in place of read_reg.
840         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
841         dwarf_expr_read_reg.
842         (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
843         with dwarf_expr_read_addr_from_reg.
844         (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
845         (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
846         needs_frame_read_addr_from_reg.
847
848 2013-11-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
849
850         * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
851
852 2013-11-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
853
854         * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
855         NULL.
856
857 2013-11-15  Tom Tromey  <tromey@redhat.com>
858
859         PR c++/16117:
860         * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
861         (classify_name): Likewise.  Prefer a field of "this" over a
862         filename.
863         (classify_inner_name, yylex): Update.
864
865 2013-11-15  Joel Brobecker  <brobecker@adacore.com>
866
867         * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
868         Extend the documentation a bit.
869         <get_reg_value>: New field.
870         * dwarf2loc.c (dwarf_expr_get_reg_value)
871         (needs_frame_get_reg_value): New functions.
872         (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
873         callback.
874         * dwarf2-frame.c (get_reg_value): New function.
875         (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
876         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
877         Use new callback to compute result_val.
878
879 2013-11-15  Alan Modra  <amodra@gmail.com>
880
881         * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
882         (ppc64_desc_entry_point): ..this.  Update comments here and at
883         call points.
884         (ppc64_standard_linkage1, ppc64_standard_linkage2,
885         ppc64_standard_linkage3): Update comments.
886         (ppc64_standard_linkage4, ppc64_standard_linkage5,
887         (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
888         patterns.
889         (ppc64_standard_linkage4_target): New function.
890         (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
891         * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup.  Correct
892         nop match.  Fix comment wrap.
893
894 2013-11-14  Pedro Alves  <palves@redhat.com>
895
896         * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
897         STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
898
899 2013-11-14  Pedro Alves  <palves@redhat.com>
900
901         * infrun.c (struct execution_control_state)
902         <stepped_after_stopped_by_watchpoint>: New field.
903         (get_inferior_stop_soon): New function.
904         (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
905         moved to struct execution_control_state -- adjust.  Use
906         get_inferior_stop_soon.  Split TARGET_WAITKIND_STOPPED handling to
907         new function.
908         (handle_signal_stop): New function, factored out from
909         handle_inferior_event.
910
911 2013-11-14  Pedro Alves  <palves@redhat.com>
912
913         * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
914         return a boolean.
915         * breakpoint.c (bpstat_explains_signal): Adjust to return a
916         boolean.
917         (explains_signal_watchpoint, base_breakpoint_explains_signal):
918         Adjust to return a boolean.
919         * breakpoint.h (enum bpstat_signal_value): Delete.
920         (struct breakpoint_ops) <explains_signal>: New returns a boolean.
921         (bpstat_explains_signal): Likewise.
922         * infrun.c (handle_inferior_event) <random signal checks>:
923         bpstat_explains_signal now returns a boolean - adjust.  No longer
924         consider hiding signals.
925
926 2013-11-14  Pedro Alves  <palves@redhat.com>
927
928         * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
929         Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
930         (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
931         BPSTAT_SIGNAL_HIDE.
932         (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
933         instead of BPSTAT_SIGNAL_HIDE.
934         * infrun.c (handle_inferior_event): Rework random signal checks.
935
936 2013-11-14  Pedro Alves  <palves@redhat.com>
937
938         * infrun.c (struct execution_control_state): Remove
939         'random_signal' field.
940         (handle_syscall_event): Use bpstat_causes_stop instead of
941         bpstat_explains_signal.  Don't set ecs->random_signal.
942         (handle_inferior_event): New 'random_signal' local.
943         <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
944         TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
945         bpstat_explains_signal.  Don't set ecs->random_signal.
946         <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
947         ecs->random_signal.
948
949 2013-11-14  Pedro Alves  <palves@redhat.com>
950
951         * infrun.c (handle_inferior_event): Move comment from the
952         function's body to the function's description, adjusted.
953
954 2013-11-14  Pedro Alves  <palves@redhat.com>
955
956         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
957         Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
958         Assert we never fall through out of the TARGET_WAITKIND_LOADED
959         case.
960
961 2013-11-14  Tom Tromey  <tromey@redhat.com>
962
963         * python/py-linetable.c (ltpy_has_line)
964         (ltpy_get_all_source_lines): Fix loop termination condition.
965
966 2013-11-14  Joel Brobecker  <brobecker@adacore.com>
967
968         * mi/mi-parse.h (struct mi_parse) <language>: New field.
969         * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
970         PARSE->LANGUAGE during command execution, if set.
971         * mi/mi-parse.c: Add "language.h" #include.
972         (mi_parse): Add parsing of "--language" command option.
973
974         * NEWS: Add entry mentioning the new "--language" command option.
975
976 2013-11-14  Pedro Alves  <palves@redhat.com>
977             Joel Brobecker  <brobecker@adacore.com>
978
979         * cli/cli-utils.h (extract_arg_const): Add declaration.
980         * cli/cli-utils.c (extract_arg_const): New function.
981         (extract_arg): Reimplement using extract_arg_const.
982
983 2013-11-14  Joel Brobecker  <brobecker@adacore.com>
984
985         * language.h: Add "symtab.h" #include.
986
987 2013-11-13  Doug Evans  <xdje42@gmail.com>
988
989         * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
990         specific breakpoints, don't evaluate breakpoint condition if
991         different thread.
992
993 2013-11-13  Keith Seitz  <keiths@redhat.com>
994
995         PR c++/7935
996         PR c++/10541
997         * cp-support.c (insepct_type): Add support for substituting
998         namespace aliases, too.
999         * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1000         for DW_TAG_imported_declaration.
1001         (add_partial_symbol): Likewise.
1002         (process_die): Handle namespace aliases with
1003         read_namespace_alias.
1004         (die_needs_namespace): Add DW_TAG_imported_declaration.
1005         (read_namespace_alias): New function.
1006         (load_partial_dies): Load DW_TAG_imported_declaration, too.
1007         (new_symbol_full): Handle DW_TAG_imported_declaration.
1008
1009 2013-11-13  Keith Seitz  <keiths@redhat.com>
1010
1011         * p-exp.y (uptok): Make first parameter const.
1012         (yylex): Make `tokstart' and `tokptr' const.
1013         Don't copy the lexer input to a temporary buffer.
1014         Make `p' const.
1015         Remove const workaround for parse_escape.
1016         Create a temporary buffer for a convenience variable instead
1017         of doing in-place modification of the input.
1018         If a match is found with a different case from the input,
1019         do not change the input at all.
1020         Use `tmp' to construct the resultant stoken instead of
1021         `tokstart'.
1022
1023 2013-11-13  Doug Evans  <xdje42@gmail.com>
1024
1025         * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1026
1027 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
1028
1029         * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1030         entry with "ada-exceptions".
1031
1032 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
1033
1034         * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1035         after re-initialization of OBJFILE's obstack.
1036
1037 2013-11-12  Doug Evans  <xdje42@gmail.com>
1038
1039         * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1040         bs->stop != 0 on entry.  Update function comment.  Simplify early
1041         exit for frame mismatch.  Reindent rest of function.
1042
1043 2013-11-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1044
1045         * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1046         NULL.
1047
1048 2013-11-12  Doug Evans  <dje@google.com>
1049
1050         Work around gold/15646.
1051         * dwarf2read.c (read_index_from_section): Update comment.
1052         (struct dw2_symtab_iterator): New member global_seen.
1053         (dw2_symtab_iter_init): Initialize it.
1054         (dw2_symtab_iter_next): Skip duplicate global symbols.
1055         (dw2_expand_symtabs_matching): Ditto.
1056
1057 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
1058
1059         * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1060         * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1061         command.
1062         * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1063         (mi_cmd_info_ada_exceptions): New function.
1064         * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1065
1066 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
1067
1068         * ada-lang.h: #include "vec.h".
1069         (struct ada_exc_info): New.
1070         (ada_exc_info): New typedef.
1071         (DEF_VEC_O(ada_exc_info)): New vector.
1072         (ada_exceptions_list): Add declaration.
1073         * ada-lang.c (ada_is_exception_sym)
1074         (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1075         (sort_remove_dups_ada_exceptions_list)
1076         (ada_exc_search_name_matches, ada_add_standard_exceptions)
1077         (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1078         (ada_exceptions_list_1, ada_exceptions_list)
1079         (info_exceptions_command): New function.
1080         (_initialize_ada_language): Add "info exception" command.
1081
1082 2013-11-11  Phil Muldoon  <pmuldoon@redhat.com>
1083
1084         PR python/15629
1085         * NEWS: Add linetable feature.
1086         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1087         * python/py-linetable.c: New file.
1088         * python/py-symtab.c (stpy_get_linetable): New function.
1089         * python/python-internal.h (symtab_to_linetable_object): Declare.
1090         (gdbpy_initialize_linetable): Ditto.
1091         * python/python.c (_initialize_python): Call
1092         gdbpy_initialize_linetable.
1093
1094 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
1095
1096         * ada-lang.c (create_ada_exception_catchpoint): Enhance
1097         the documentation of fields "except_string" and "condition".
1098         * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1099         CONDITION on the heap before passing it to
1100         create_ada_exception_catchpoint.
1101         (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1102         CONDITION.
1103
1104 2013-11-11  Tom Tromey  <tromey@redhat.com>
1105
1106         * config.in, configure: Rebuild.
1107         * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1108
1109 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
1110
1111         * remote-sim.c (gdbsim_detach): Break declaration into
1112         shorter lines.  No code change.
1113
1114 2013-11-11  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1115
1116         * remote-sim.c (gdbsim_detach): Fix prototype.
1117
1118 2013-11-08  Doug Evans  <dje@google.com>
1119
1120         * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1121         (create_debug_types_hash_table): Only print debugging messages for
1122         each TU if dwarf2-read >= 2.
1123         (process_queue): Ditto.
1124         (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1125         Update doc string.
1126
1127 2013-11-08  Tom Tromey  <tromey@redhat.com>
1128
1129         * configure: Rebuild.
1130         * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1131
1132 2013-11-08  Tom Tromey  <tromey@redhat.com>
1133
1134         * configure, config.in: Rebuild.
1135         * configure.ac: Remove unused configury.
1136
1137 2013-11-08  Tom Tromey  <tromey@redhat.com>
1138
1139         * m32c-tdep.c: Use gdb_string.h.
1140
1141 2013-11-08  Tom Tromey  <tromey@redhat.com>
1142
1143         * configure, config.in: Rebuild.
1144         * configure.ac: Remove all link.h-related checks.
1145
1146 2013-11-08  Tom Tromey  <tromey@redhat.com>
1147
1148         * acinclude.m4: Include common.m4.
1149         * common/common.m4: New file.
1150         * configure, config.in: Rebuild.
1151         * configure.ac: Use GDB_AC_COMMON.
1152
1153 2013-11-08  Doug Evans  <dje@google.com>
1154
1155         * NEWS: Mention that "set debug symtab-create" now accepts a
1156         verbosity level.
1157         * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1158         to set the symtab's primary flag.
1159         * jit.c (finalize_symtab): Ditto.
1160         * mdebugread.c (psymtab_to_symtab_1): Ditto.
1161         * symfile.c (allocate_symtab): Only print debugging messages for
1162         symtab_create_debug levels 2 and higher.
1163         * symtab.c (symtab_create_debug): Change type to unsigned int.
1164         (set_symtab_primary): New function.
1165         (_initialize_symtab): Change "set debug symtab-create" to a
1166         zuinteger option.
1167         * symtab.h (set_symtab_primary): Declare.
1168         (symtab_create_debug): Update decl.
1169
1170 2013-11-08  Tom Tromey  <tromey@redhat.com>
1171
1172         * aix-thread.c (aix_thread_detach): Update.
1173         * corelow.c (core_detach): Update.
1174         * darwin-nat.c (darwin_detach): Update.
1175         * dec-thread.c (dec_thread_detach): Update.
1176         * gnu-nat.c (gnu_detach): Update.
1177         * go32-nat.c (go32_detach): Update.
1178         * inf-ptrace.c (inf_ptrace_detach): Update.
1179         * inf-ttrace.c (inf_ttrace_detach): Update.
1180         * linux-fork.c (linux_fork_detach): Update.
1181         * linux-fork.h (linux_fork_detach): Update.
1182         * linux-nat.c (linux_nat_detach): Update.  Introduce "tem"
1183         local for const-correctness.
1184         * linux-thread-db.c (thread_db_detach): Update.
1185         * monitor.c (monitor_detach): Update.
1186         * nto-procfs.c (procfs_detach): Update.
1187         * procfs.c (procfs_detach): Update.
1188         * record.c (record_detach): Update.
1189         * record.h (record_detach): Update.
1190         * remote-m32r-sdi.c (m32r_detach): Update.
1191         * remote-mips.c (mips_detach): Update.
1192         * remote-sim.c (gdbsim_detach): Update.
1193         * remote.c (remote_detach_1, remote_detach)
1194         (extended_remote_detach): Update.
1195         * sol-thread.c (sol_thread_detach): Update.
1196         * target.c (target_detach): Make "args" const.
1197         (init_dummy_target): Update.
1198         * target.h (struct target_ops) <to_detach>: Make argument const.
1199         (target_detach): Likewise.
1200         * windows-nat.c (windows_detach): Update.
1201
1202 2013-11-07  Doug Evans  <dje@google.com>
1203
1204         PR 11786
1205         *  solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1206         and align fields for PT_GNU_RELRO segments.
1207
1208 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
1209
1210         PR python/15747
1211         * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1212
1213 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
1214
1215         * NEWS: Document Python temporary breakpoint support.
1216         * python/py-breakpoint.c (bppy_get_temporary): New function.
1217         (bppy_init): New keyword: temporary. Parse it and set breakpoint
1218         to temporary if True.
1219
1220 2013-11-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
1221
1222         * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1223         removed to allow analyzing unconditional branch instructions
1224         with PC-relative offsets of zero.
1225
1226 2013-11-07  Yao Qi  <yao@codesourcery.com>
1227
1228         * mi/mi-cmd-var.c: Include "language.h".
1229         (mi_cmd_var_info_expression): Get language name from
1230         language_defn.
1231         * varobj.c (varobj_language_string): Remove.
1232         (variable_language): Remove declaration.
1233         (languages): Remove.
1234         (varobj_get_language): Change the type of return value.
1235         (variable_language): Remove.
1236         * varobj.h (enum varobj_languages): Remove.
1237         (varobj_language_string): Remove declaration.
1238         (varobj_get_language): Update declaration.
1239
1240 2013-11-07  Yao Qi  <yao@codesourcery.com>
1241
1242         * language.h (struct language_defn) <la_natural_name>: New
1243         field.
1244         * ada-lang.c (ada_language_defn): Initialize field
1245         'la_natural_name'.
1246         * c-lang.c (c_language_defn): Likewise.
1247         (cplus_language_defn, asm_language_defn): Likewise.
1248         * d-lang.c (d_language_defn): Likewise.
1249         * f-lang.c (f_language_defn): Likewise.
1250         * go-lang.c (go_language_defn): Likewise.
1251         * jv-lang.c (java_language_defn): Likewise.
1252         * language.c (unknown_language_defn ): Likewise.
1253         (auto_language_defn): Likewise.
1254         * m2-lang.c (m2_language_defn): Likewise.
1255         * objc-lang.c (objc_language_defn): Likewise.
1256         * opencl-lang.c (opencl_language_defn): Likewise.
1257         * p-lang.c (pascal_language_defn): Likewise.
1258
1259 2013-11-07  Yao Qi  <yao@codesourcery.com>
1260
1261         * language.c (language_str): Return const char *.
1262         (add_language): Add const to 'language_names'
1263         * language.h (struct language_defn) <la_name>: Add const.
1264         (language_str: Update declaration.
1265
1266 2013-11-06  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1267
1268         * s390-linux-nat.c (s390_read_description): Consider the TE field
1269         in the HWCAP for determining 'have_regset_tdb'.
1270
1271 2013-11-06  Will Newton  <will.newton@linaro.org>
1272
1273         PR gdb/12866
1274         * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1275         values.  (read_partial_die): Likewise.
1276
1277 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
1278
1279         PR cli/16122
1280         * top.c (command_line_input): Unify interactivity tests to use
1281         input_from_terminal_p.
1282         * event-top.c (command_line_handler): Likewise.
1283
1284 2013-11-06  Yao Qi  <yao@codesourcery.com>
1285
1286         * Makefile.in (check-perf): New target.
1287
1288 2013-11-05  Will Newton  <will.newton@linaro.org>
1289
1290         PR gdb/7670
1291         * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1292         (arm_print_float_info): Likewise.
1293
1294 2013-11-04  Anton Blanchard  <anton@samba.org>
1295
1296         * target.c (memory_xfer_partial): Cap write to 4KB.
1297
1298 2013-11-01  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1299
1300         * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1301         probe scan even when the arch provides no get_longjmp_target.
1302
1303 2013-10-31  Pedro Alves  <palves@redhat.com>
1304
1305         * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1306         (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1307         TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1308         GDB_SIGNAL_TRAP, or clear it.  Pass GDB_SIGNAL_0 to
1309         bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1310         <bpstat handling>: If the bpstat chain wants the signal to be
1311         hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1312         GDB_SIGNAL_TRAP.
1313
1314 2013-10-31  Andrew Burgess  <aburgess@broadcom.com>
1315
1316         * breakpoint.c (update_watchpoint): Update error message and add
1317         an additional error message.
1318
1319 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1320
1321         * s390-tdep.h: Rename to...
1322         * s390-linux-tdep.h: ...here.
1323         * s390-tdep.c: Rename to...
1324         * s390-linux-tdep.c: ...here.  Adjust #include.
1325         * s390-nat.c: Rename to...
1326         * s390-linux-nat.c: ...here.  Adjust #include.
1327         * config/s390/s390.mh: Rename to...
1328         * config/s390/linux.mh: ...here.  Reflect rename s390-nat.o ->
1329         s390-linux-nat.o.
1330         * configure.host: Reflect host rename "s390" -> "linux".
1331         * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1332         * Makefile.in (ALL_TARGET_OBS): Likewise.
1333         (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1334         s390-linux-tdep.h.
1335         (ALLDEPFILES): Reflect rename of .c files.
1336
1337 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1338
1339         * s390-nat.c: Whitespace cleanup.
1340         * s390-tdep.c: Likewise.
1341         * s390-tdep.h: Remove empty line at end of file.
1342
1343 2013-10-30  Maciej W. Rozycki  <macro@codesourcery.com>
1344
1345         * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1346         siginfo_size.
1347
1348 2013-10-29  Tom Tromey  <tromey@redhat.com>
1349
1350         * utils.c (reg): Move undefinition...
1351         * gdb_curses.h: ... here.  Update comment to mention AIX.
1352
1353 2013-10-29  Nicolas Blanc  <nicolas.blanc@intel.com>
1354
1355         * exec.h (add_target_sections_of_objfile): New declaration.
1356         * exec.c (add_target_sections_of_objfile): New function.
1357         * symfile.c (add_symbol_file_command): Update current target sections.
1358         (remove_symbol_file_command): New command.
1359         (symfile_free_objfile): New function.
1360         (_initialize_symfile): Register observer for free_objfile events.
1361         * NEWS: Add description of the remove-symbol-file command.
1362         * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1363         * objfiles.c (free_objfile): Notify free_objfile.
1364         (is_addr_in_objfile): New function.
1365         * objfiles.h (is_addr_in_objfile): New declaration.
1366         * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1367         events instead of solib_unloaded events.
1368         (_initialize_printcmd): Register observer for free_objfile instead
1369         of solib_unloaded notifications.
1370         * solib.c (remove_user_added_objfile): New function.
1371         (_initialize_symfile): Add remove-symbol-file.
1372
1373 2013-10-29  Andrew Burgess  <aburgess@broadcom.com>
1374
1375         * infcmd.c (default_print_one_register_info): Use val_print to
1376         print all values even optimized out or unavailable ones.  Don't
1377         try to print a raw form of optimized out or unavailable values.
1378
1379 2013-10-29  Yao Qi  <yao@codesourcery.com>
1380
1381         * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1382         parameter 'arg' instead of from program_space_data.
1383         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1384         * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1385         * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1386         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1387         * inflow.c (inflow_inferior_data_cleanup): Get data from
1388         parameter 'arg' instead of inferior_data.
1389         * registry.h: Add comments.
1390
1391 2013-10-28  Pedro Alves  <palves@redhat.com>
1392
1393         * breakpoint.c (watchpoints_triggered)
1394         <!target_stopped_data_address>: Hardcode return 1.
1395
1396 2013-10-28  Pedro Alves  <palves@redhat.com>
1397
1398         * infrun.c (process_event_stop_test): Remove unnecessary scoping
1399         level and reindent.
1400
1401 2013-10-28  Pedro Alves  <palves@redhat.com>
1402
1403         * infrun.c (process_event_stop_test): New function, factored out
1404         from handle_inferior_event.
1405         (handle_inferior_event): 'process_event_stop_test' is now a
1406         function instead of a goto label -- adjust.
1407
1408 2013-10-28  Pedro Alves  <palves@redhat.com>
1409
1410         * infrun.c (handle_inferior_event): Move process_event_stop_test
1411         goto label to the else branch of the ecs->random_signal check,
1412         along with FRAME and GDBARCH re-fetching.
1413
1414 2013-10-28  Pedro Alves  <palves@redhat.com>
1415
1416         * infrun.c (switch_back_to_stepped_thread): New function, factored
1417         out from handle_inferior_event.
1418         (handle_inferior_event): Adjust to call
1419         switch_back_to_stepped_thread.  Call it also at the tail of the
1420         random signal handling, and return, instead of also handling
1421         random signals just before the stepping tests.
1422
1423 2013-10-28  Pedro Alves  <palves@redhat.com>
1424
1425         * infrun.c (clear_stop_func): Delete.
1426         (handle_inferior_event): Don't call clear_stop_func and don't
1427         clear 'ecs->random_signal'.
1428
1429 2013-10-27  Yao Qi  <yao@codesourcery.com>
1430
1431         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1432         (varobj_create, varobj_get_path_expr): Update.
1433         (varobj_value_has_mutated, varobj_update): Likewise.
1434         (create_child_with_value, new_root_variable): Likewise.
1435         (number_of_children, name_of_variable): Likewise.
1436         (value_of_child, my_value_of_variable): Likewise.
1437         (varobj_value_is_changeable_p): Likewise.
1438
1439 2013-10-25  Yao Qi  <yao@codesourcery.com>
1440
1441         * language.h (struct lang_varobj_ops): Declare.
1442         (struct language_defn) <la_varobj_ops>: New field.
1443         * ada-lang.c: Include "varobj.h"
1444         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1445         ada_varobj_ops.
1446         * c-lang.c: Include "varobj.h"
1447         (c_language_defn): Initialize field 'la_varobj_ops' with
1448         c_varobj_ops.
1449         (cplus_language_defn): Initialize field 'la_varobj_ops' with
1450         cplus_varobj_ops.
1451         (asm_language_defn): Initialize field 'la_varobj_ops' with
1452         default_varobj_ops.
1453         (minimal_language_defn): Likewise.
1454         * d-lang.c (d_language_defn): Likewise.
1455         * f-lang.c (f_language_defn): Likewise.
1456         * go-lang.c (go_language_defn): Likewise.
1457         * m2-lang.c (m2_language_defn): Likewise.
1458         * objc-lang.c (objc_language_defn): Likewise.
1459         * opencl-lang.c (opencl_language_defn): Likewise.
1460         * p-lang.c (pascal_language_defn): Likewise.
1461         * language.c (unknown_language_defn): Likewise.
1462         (auto_language_defn): Likewise.
1463         (local_language_defn): Likewise.
1464         * jv-lang.c (java_language_defn): Initialize field
1465         'la_varobj_ops' with java_varobj_ops.
1466         * varobj.c (varobj_create): Update.
1467         * varobj.h (default_varobj_ops): Define macro.
1468
1469 2013-10-25  Pedro Alves  <palves@redhat.com>
1470
1471         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1472         static field value.
1473         (cp_print_static_field): If the value is entirely optimized out,
1474         print <optimized out> here.
1475         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1476         static field value.
1477         * p-valprint.c (pascal_object_print_static_field): If the value is
1478         entirely optimized out, print <optimized out> here.
1479         * valops.c (do_search_struct_field)
1480         (value_struct_elt_for_reference): No longer handle a NULL static
1481         field value.
1482         * value.c (value_static_field): Return an optimized out value
1483         instead of NULL.
1484
1485 2013-10-25  Yao Qi  <yao@codesourcery.com>
1486
1487         * remote.c (remote_traceframe_info): Return early if
1488         traceframe is not selected.
1489
1490 2013-10-25  Yao Qi  <yao@codesourcery.com>
1491
1492         * tracepoint.c (traceframe_fun): Remove.
1493         (traceframe_sal): Remove.
1494         (set_traceframe_context): Add local variables.
1495
1496 2013-10-25  Joel Brobecker  <brobecker@adacore.com>
1497
1498         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1499         and parameter name.
1500
1501 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
1502
1503         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1504         failure from register information collection.
1505
1506 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
1507
1508         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1509         member.
1510         (linux_corefile_thread_callback): Update accordingly.
1511         (linux_make_corefile_notes): Likewise.
1512
1513 2013-10-24  Pedro Alves   <palves@redhat.com>
1514
1515         * NEWS (New options): Mention set/show startup-with-shell.
1516         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1517         instead of 3.
1518         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1519         startup-with-shell'.
1520         (show_startup_with_shell): New function.
1521         (_initialize_fork_child): Register the set/show startup-with-shell
1522         commands.
1523         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1524         * inf-ttrace.c (inf_ttrace_him): Remove comment.
1525         * procfs.c (procfs_init_inferior): Remove comment.
1526         * infcmd.c (startup_with_shell): New global.
1527         * inferior.h (startup_with_shell): Declare global.
1528         (STARTUP_WITH_SHELL): Delete.
1529         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1530
1531 2013-10-23  Pedro Alves  <palves@redhat.com>
1532
1533         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1534         * common/signals.c: Include "gdb_assert.h".
1535         (signals): New field 'symbol'.
1536         (SET): Use the 'symbol' parameter.
1537         (gdb_signal_to_symbol_string): New function.
1538         * infrun.c (handle_inferior_event) <random signal>: In debug
1539         output, print the random signal enum as string in addition to its
1540         number.
1541         * target/waitstatus.c (target_waitstatus_to_string): Print the
1542         signal's enum value as string instead of the (POSIX) signal name.
1543
1544 2013-10-23  Gary Benson  <gbenson@redhat.com>
1545
1546         PR 16013
1547         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1548         from 32 to 18.  Adjusted fscanf format string accordingly.
1549         (Avoids leaving cmd unterminated.)
1550         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1551         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
1552         that local_address and remote_address will not overflow.
1553         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1554         leaving dependencies unterminated.  Parse size as "%u" to match
1555         definition.
1556
1557 2013-10-22  Pedro Alves  <palves@redhat.com>
1558
1559         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1560         set ecs->random signal.
1561
1562 2013-10-22  Pedro Alves  <palves@redhat.com>
1563
1564         * infrun.c (keep_going): Update comments.
1565
1566 2013-10-22  Pedro Alves  <palves@redhat.com>
1567
1568         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1569         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1570
1571 2013-10-22  Pedro Alves  <palves@redhat.com>
1572
1573         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1574         GDB_EXC_BAD_ACCESS.
1575         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1576         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1577         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1578         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1579         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1580         (GDB_SIGNAL_LAST): Change description string.
1581         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1582         Adjust to signal renaming.
1583         * darwin-nat.c (darwin_decode_message): Likewise.
1584
1585 2013-10-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
1586
1587         * MAINTAINERS (Write After Approval): Add myself to the list.
1588
1589 2013-10-18  Andrew Burgess  <aburgess@broadcom.com>
1590
1591         * breakpoint.c (update_watchpoint): If hardware watchpoints are
1592         forced off, downgrade them to software watchpoints if possible,
1593         and error out if not possible.
1594         (watch_command_1): Move watchpoint type selection closer to
1595         watchpoint creation, and extend the comments.
1596
1597 2013-10-18  Pedro Alves  <palves@redhat.com>
1598
1599         PR gdb/16062
1600         * infrun.c (handle_inferior_event): Keep going if we got a random
1601         signal we should not stop for, instead of falling through to the
1602         step tests.
1603
1604 2013-10-18  Yao Qi  <yao@codesourcery.com>
1605
1606         * c-varobj.c (cplus_number_of_children): Fix indentation.
1607
1608 2013-10-17  Tom Tromey  <tromey@redhat.com>
1609
1610         PR gdb/15995:
1611         * printcmd.c (printcmd): Call gdb_flush.
1612
1613 2013-10-17  Tom Tromey  <tromey@redhat.com>
1614
1615         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1616         (elf_locate_sections): Update.
1617
1618 2013-10-17  Yao Qi  <yao@codesourcery.com>
1619
1620         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1621         * ada-varobj.c: Remove the include of ada-varobj.h.
1622         (ada_varobj_get_number_of_children): Declare.
1623         (ada_varobj_get_name_of_child): Make it static.
1624         (ada_varobj_get_path_expr_of_child): Likewise.
1625         (ada_varobj_get_value_of_child): Likewise.
1626         (ada_varobj_get_type_of_child): Likewise.
1627         (ada_varobj_get_value_of_array_variable): Likewise.
1628         * ada-varobj.h: Remove.
1629
1630 2013-10-17  Yao Qi  <yao@codesourcery.com>
1631
1632         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1633         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1634         * ada-varobj.c: Include "varobj.h".
1635         (ada_number_of_children): New.  Moved from varobj.c.
1636         (ada_name_of_variable, ada_name_of_child): Likewise.
1637         (ada_path_expr_of_child, ada_value_of_child): Likewise.
1638         (ada_type_of_child, ada_value_of_variable): Likewise.
1639         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1640         (ada_varobj_ops): New.
1641         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
1642         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
1643         * gdbtypes.h (get_target_type): Declare.
1644         * varobj.c: Remove the inclusion of "ada-varobj.h" and
1645         "ada-lang.h".
1646         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1647         (ANONYMOUS_UNION_NAME): Likewise.
1648         (get_type, get_value_type, get_target_type): Remove declarations.
1649         (value_get_print_value, varobj_value_get_print_value): Likewise.
1650         (c_number_of_children, c_name_of_variable): Likewise.
1651         (c_name_of_child, c_path_expr_of_child): Likewise.
1652         (c_value_of_child, c_type_of_child): Likewise.
1653         (c_value_of_variable, cplus_number_of_children): Likewise.
1654         (cplus_class_num_children, cplus_name_of_variable): Likewise.
1655         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1656         (cplus_value_of_child, cplus_type_of_child): Likewise.
1657         (cplus_value_of_variable, java_number_of_children): Likewise.
1658         (java_name_of_variable, java_name_of_child): Likewise.
1659         (java_path_expr_of_child, java_value_of_child): Likewise.
1660         (java_type_of_child, java_value_of_variable): Likewise.
1661         (ada_number_of_children, ada_name_of_variable): Likewise.
1662         (ada_name_of_child, ada_path_expr_of_child): Likewise.
1663         (ada_value_of_child, ada_type_of_child): Likewise.
1664         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1665         (ada_value_has_mutated): Likewise.
1666         (struct language_specific): Move it to varobj.h.
1667         (CPLUS_FAKE_CHILD): Move it to varobj.h.
1668         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
1669         Callers update.
1670         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1671         Make it extern.
1672         (is_anonymous_child): Move it to c-varobj.c and rename to
1673         varobj_is_anonymous_child.  Caller update.
1674         (get_type): Move it to c-varobj.c.
1675         (get_value_type): Rename it varobj_get_value_type.  Make it
1676         extern.
1677         (get_target_type): Move it gdbtypes.c.
1678         (varobj_formatted_print_options): New function.
1679         (value_get_print_value): Rename it to
1680         varobj_value_get_print_value and make it extern.
1681         (varobj_value_is_changeable_p): Make it extern.
1682         (adjust_value_for_child_access): Move it to c-varobj.c.
1683         (default_value_is_changeable_p): Rename it to
1684         varobj_default_value_is_changeable_p.  Make it extern.
1685         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1686         (c_name_of_child, c_path_expr_of_child): Likewise.
1687         (c_value_of_child, c_type_of_child): Likewise.
1688         (c_value_of_variable, cplus_number_of_children): Likewise.
1689         (cplus_class_num_children, cplus_name_of_variable): Likewise.
1690         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1691         (cplus_value_of_child, cplus_type_of_child): Likewise.
1692         (cplus_value_of_variable): Likewise.
1693         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1694         (java_name_of_child, java_path_expr_of_child): Likewise.
1695         (java_value_of_child, java_type_of_child): Likewise.
1696         (java_value_of_variable): Likewise.
1697         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1698         (ada_name_of_child, ada_path_expr_of_child): Likewise.
1699         (ada_value_of_child, ada_type_of_child): Likewise.
1700         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1701         (ada_value_has_mutated): Likewise.
1702         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1703         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
1704         (c_varobj_ops, cplus_varobj_ops): Declare.
1705         (java_varobj_ops, ada_varobj_ops): Declare.
1706         (varobj_default_value_is_changeable_p): Declare.
1707         (varobj_value_is_changeable_p): Declare.
1708         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1709         (varobj_get_path_expr_parent): Declare.
1710         (varobj_value_get_print_value): Declare.
1711         (varobj_formatted_print_options): Declare.
1712         (varobj_restrict_range): Declare.
1713
1714 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
1715
1716         * target/waitstatus.h (target_waitkind): Remove spurious
1717         character from the comments.
1718
1719 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
1720
1721         * gdbarch.sh (get_longjmp_target): Add method documentation.
1722         * gdbarch.h: Regenerate.
1723
1724 2013-10-16  Tom Tromey  <tromey@redhat.com>
1725
1726         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1727         label.
1728
1729 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
1730
1731         * gcore.in: Call GDB using the full path to the gcore script.
1732         Error out if the GDB binary is not found.
1733
1734 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1735
1736         PR gdb/16014
1737         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1738         sizeof.
1739
1740 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1741
1742         PR gdb/16042
1743         * target.c (target_disable_btrace): Fix invalid return value for
1744         void function.
1745         (target_teardown_btrace): Likewise.
1746
1747 2013-10-14  Yao Qi  <yao@codesourcery.com>
1748
1749         * varobj.c (struct varobj): Move most of the fields to
1750         varobj.h.
1751         (struct varobj_dynamic): New struct.
1752         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1753         (varobj_has_more): Likewise.
1754         (dynamic_varobj_has_child_method): Likewise.
1755         (update_dynamic_varobj_children): Likewise.
1756         (varobj_get_num_children): Likewise.
1757         (varobj_list_children, varobj_pretty_printed_p): Likewise.
1758         (install_new_value_visualizer): Likewise.
1759         (install_new_value_visualizer, install_new_value): Likewise.
1760         (varobj_update, new_variable, free_variable): Likewise.
1761         (my_value_of_variable, value_get_print_value): Likewise.
1762         (install_visualizer): Change the type of parameter 'var' to
1763         'struct varobjd_dynamic *'.  Callers update.
1764         * varobj.h (struct varobj): Moved from varobj.c.
1765         (struct varobj) <dynamic>: New field.
1766
1767 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
1768
1769         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1770         as the preferred name of r30.
1771         * nios2-linux-tdep.c (reg_offsets): Likewise.
1772         * features/nios2-cpu.xml: Likewise.
1773         * features/nios2-linux.c: Regenerated.
1774         * features/nios2.c: Regenerated.
1775         * regformats/nios2-linux.dat: Regenerated.
1776
1777 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1778
1779         Canonicalize directories for EXEC_FILENAME.
1780         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1781         exec_filename.
1782         * utils.c (gdb_realpath_keepfile): New function.
1783         * utils.h (gdb_realpath_keepfile): New declaration.
1784
1785 2013-10-11  Doug Evans  <dje@google.com>
1786
1787         * Makefile.in (GDBFLAGS): New variable.
1788         (run): New rule.
1789
1790 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1791
1792         * NEWS: Add entry documenting the new "-catch-assert" and
1793         "-catch-exception" GDB/MI commands.
1794
1795 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1796
1797         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1798         "enabled".
1799         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1800         "enabled".  Set B->ENABLE_STATE accordingly.
1801         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1802         ada-lang.c.
1803         (create_ada_exception_catchpoint): Add declaration.
1804         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1805         (create_ada_exception_catchpoint): Make non-static. Add new
1806         parameter "disabled". Use it in call to
1807         init_ada_exception_breakpoint.
1808         (catch_ada_exception_command): Add parameter "enabled" in call
1809         to create_ada_exception_catchpoint.
1810         (catch_assert_command): Likewise.
1811
1812         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1813         Add declarations.
1814         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1815         "catch-exception" commands.
1816         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1817         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1818
1819 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1820
1821         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1822         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
1823         of all its enumerates with "ada_".  Update the rest of this
1824         file throughout.
1825
1826 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1827
1828         * ada-lang.c (ada_decode_exception_location): Delete.
1829         (create_ada_exception_catchpoint): Remove arguments "sal",
1830         "addr_string" and "ops".  Add argument "ex_kind" instead.
1831         Adjust implementation accordingly, calling ada_exception_sal
1832         to get the entities it no longer gets passed as arguments.
1833         Document the function's arguments.
1834         (catch_ada_exception_command): Use catch_ada_exception_command_split
1835         instead of ada_decode_exception_location, and update call to
1836         create_ada_exception_catchpoint.
1837         (catch_ada_assert_command_split): Renames
1838         ada_decode_assert_location.  Remove parameters "addr_string" and
1839         "ops", and now returns void.  Adjust implementation accordingly.
1840         Update the function documentation.
1841         (catch_assert_command): Use catch_ada_assert_command_split
1842         instead of ada_decode_assert_location.  Update call to
1843         create_ada_exception_catchpoint.
1844
1845 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1846
1847         * utils.h (perror_warning_with_name): Add declaration.
1848         * utils.c (perror_warning_with_name): New function.
1849         * cli/cli-cmds.c (source_script_with_search): Add call to
1850         perror_warning_with_name if from_tty is nul.
1851
1852 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1853
1854         * utils.c (perror_string): New function, extracted out of
1855         throw_perror_with_name.
1856         (throw_perror_with_name): Rework to use perror_string.
1857
1858 2013-10-11  Yao Qi  <yao@codesourcery.com>
1859
1860         * remote.c (discard_pending_stop_replies_in_queue): Update
1861         declaration.
1862         (struct stop_reply) <rs>: New field.
1863         (remove_stop_reply_of_remote_state): New function.
1864         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1865         Callers update.  Pass remove_stop_reply_of_remote_state to
1866         QUEUE_iterate.
1867         (remote_parse_stop_reply): Initialize field 'rs'.
1868
1869 2013-10-10  Will Newton  <will.newton@linaro.org>
1870
1871         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1872         linux_init_abi.
1873
1874 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
1875
1876         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1877         serial_baud_show_cmd.
1878         (_initialize_cli_cmds): Delete the code creating the
1879         "set/show remotebaud" commands.
1880         * serial.c (baud_rate): Move here from top.c.
1881         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1882         (_initialize_serial): Create "set/show serial baud" commands.
1883         Add "set/show remotebaud" command aliases.
1884         * top.c (baud_rate): Moved to serial.c.
1885         * NEWS: Document the new "set/show serial baud" commands,
1886         replacing "set/show remotebaud".
1887
1888 2013-10-09  Pedro Alves  <palves@redhat.com>
1889
1890         * breakpoint.c (insert_bp_location): Use memory_error_message to
1891         build the memory error string.
1892         * c-lang.c: Include "gdbcore.h".
1893         (c_get_string): Use memory_error to throw error.
1894         (target_xfer_memory_error): Delete.
1895         (memory_error_message): New, factored out from
1896         target_xfer_memory_error.
1897         (memory_error): Change parameter type to target_xfer_error.
1898         Rewrite.
1899         (read_memory): Use memory_error instead of
1900         target_xfer_memory_error.
1901         * gdbcore.h: Include "target.h".
1902         (memory_error): Change parameter type to target_xfer_error.
1903         (memory_error_message): Declare function.
1904         * target.c (target_read_memory, target_read_stack)
1905         (target_write_memory, target_write_raw_memory): Return
1906         TARGET_XFER_E_IO on error.  Adjust comments.
1907         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1908         instead of EIO.
1909         * target.h (target_read, target_insert_breakpoint)
1910         (target_remove_breakpoint): Adjust comments.
1911         * valprint.c (partial_memory_read): Rename parameter, and adjust
1912         comment.
1913         (val_print_string): Use memory_error_message to build the memory
1914         error string.
1915
1916 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1917
1918         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1919         result variable.  Rename variable fopen_e_ever_failed to
1920         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
1921
1922 2013-10-09  Pedro Alves  <palves@redhat.com>
1923
1924         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1925         (monitor_write_memory_longlongs, monitor_write_memory_block):
1926         Constify 'myaddr' parameter.
1927         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1928         helper.
1929         (monitor_xfer_partial): New function.
1930         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1931         hook.  Install a to_xfer_partial hook.
1932
1933 2013-10-09  Tom Tromey  <tromey@redhat.com>
1934
1935         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1936         bfd_get_alt_debug_link_info.
1937
1938 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1939
1940         New flag OBJF_NOT_FILENAME.
1941         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1942         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1943         allocate_objfile.
1944         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1945         symbol_file_add_from_bfd.
1946         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1947         allocate_objfile.
1948         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1949         NULL.
1950         * objfiles.h (OBJF_NOT_FILENAME): New.
1951
1952 2013-10-08  Tom Tromey  <tromey@redhat.com>
1953
1954         * Makefile.in (SFILES): Add build-id.c.
1955         (HFILES_NO_SRCDIR): Add build-id.h.
1956         * build-id.c: New file, largely from elfread.c.  Modified
1957         most functions.
1958         * build-id.h: New file.
1959         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1960         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
1961         Search for dwz file using build-id.
1962         * elfread.c (build_id_bfd_get, build_id_verify)
1963         (build_id_to_debug_filename, find_separate_debug_file): Remove.
1964
1965 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
1966
1967         * ada-lang.c (compare_names_with_case): Renamed from
1968         compare_names, adding a new parameter "casing" and its handling.
1969         New function documentation.
1970         (compare_names): New function, implemented using
1971         compare_names_with_case.
1972
1973 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
1974
1975         * ada-lang.c (ada_exception_sal): Remove advance declaration.
1976
1977 2013-10-07  Tom Tromey  <tromey@redhat.com>
1978
1979         * objfiles.c (free_objfile_per_bfd_storage): Delete the
1980         demangled_names_hash.
1981         (free_objfile): Don't delete the demangled_names_hash.
1982         * objfiles.h (struct objfile_per_bfd_storage)
1983         <demangled_names_hash>: New field.
1984         (struct objfile) <demangled_names_hash>: Move to
1985         objfile_per_bfd_storage.
1986         * symfile.c (reread_symbols): Don't delete the
1987         demangled_names_hash.
1988         * symtab.c (create_demangled_names_hash): Update.
1989         (symbol_set_names): Update.
1990
1991 2013-10-07  Tom Tromey  <tromey@redhat.com>
1992
1993         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1994         needs_relocations>: New fields.
1995         (gdb_bfd_requires_relocations): New function.
1996         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1997         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1998         the BFD needs relocations applied.
1999
2000 2013-10-07  Pedro Alves  <palves@redhat.com>
2001
2002         PR breakpoints/11568
2003         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2004         the thread list" instead of "gone".
2005
2006 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
2007
2008         * NEWS: Mention new convenience variable $_exitsignal.
2009         * corelow.c (core_open): Reset exit convenience variables.  Set
2010         $_exitsignal to the uncaught signal which generated the corefile.
2011         * infrun.c (handle_inferior_event): Reset exit convenience
2012         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2013         (clear_exit_convenience_vars): New function.
2014         * inferior.h (clear_exit_convenience_vars): New prototype.
2015
2016 2013-10-06  Yao Qi  <yao@codesourcery.com>
2017
2018         * varobj.h: Add comments to enum varobj_languages.
2019
2020 2013-10-04  Doug Evans  <dje@google.com>
2021
2022         Add support for DWP file format version 2.
2023         * NEWS: Mention support for DWP file format version 2.
2024         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2025         union of asection, containing_section.  New fields virtual_offset
2026         and is_virtual.  Change type of readin filed from int to char.
2027         (dwo_sections, dwo_file): Tweak comments.
2028         (dwp_v2_section_ids): New enum.
2029         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2030         str_offsets, types.
2031         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2032         All uses updated.
2033         (virtual_v2_dwo_sections): New struct.
2034         (dwp_hash_table): New fields version, nr_columns.  Change type of
2035         section_pool field to a union.
2036         (dwp_file): New field version.
2037         (dwarf2_has_info): Check for virtual sections.
2038         (get_containing_section): New function.
2039         (get_section_bfd_owner, get_section_bfd_section): Call it.
2040         (dwarf2_locate_sections): Update.
2041         (dwarf2_section_empty_p): Update.
2042         (dwarf2_read_section): Handle virtual sections.
2043         (locate_dwz_sections): Update.
2044         (create_dwp_hash_table): Document and handle V2 format.
2045         (locate_v1_virtual_dwo_sections): Renamed from
2046         locate_virtual_dwo_sections and update.  All callers updated.
2047         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2048         Delete arg htab.  Rename arg section_index to unit_index.
2049         All callers updated.
2050         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2051         All uses updated.
2052         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2053         (lookup_dwo_unit_in_dwp): Add V2 support.
2054         (dwarf2_locate_dwo_sections): Update.
2055         (dwarf2_locate_common_dwp_sections): Renamed from
2056         dwarf2_locate_dwp_sections and update.  All callers updated.
2057         (dwarf2_locate_v2_dwp_sections): New function.
2058         (open_and_init_dwp_file): Add V2 support.
2059         (read_str_index): New locals str_section, str_offsets_section.
2060
2061 2013-10-04  Pedro Alves  <palves@redhat.com>
2062
2063         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2064         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2065         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2066         describing comments with references to ptid.h.
2067         * common/ptid.h: Remove intro description of constructors,
2068         accessors and predicates.
2069         (struct ptid): Reformat.
2070         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2071         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2072         describing comments.
2073
2074 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2075
2076         * aix-thread.c (sync_threadlists): Add missing ')' in call
2077         to ptid_build.
2078
2079 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2080
2081         * procfs.c (procfs_init_inferior): Fix typo causing the build
2082         to fail.
2083
2084 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2085
2086         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2087
2088 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2089
2090         * mi/mi-main.c (run_one_inferior): Add function description.
2091         Make ARG a pointer to an integer whose value determines whether
2092         we should "run" or "start" the program.
2093         (mi_cmd_exec_run): Add handling of the "--start" option.
2094         Reject all other command-line options.
2095         * NEWS: Add entry for "-exec-run"'s new "--start" option.
2096
2097 2013-10-04  Yao Qi  <yao@codesourcery.com>
2098
2099         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2100         (struct notif_client) <pending_event>: Moved
2101         to struct remote_notif_state.
2102         <id>: New field.
2103         (struct remote_notif_state) <pending_event>: New field.
2104         (notif_event_xfree): Declare.
2105         * remote-notif.c (handle_notification): Adjust.
2106         (notif_event_xfree): New function.
2107         (do_notif_event_xfree): Call notif_event_xfree.
2108         (remote_notif_state_xfree): Call notif_event_xfree to free
2109         each element in field pending_event.
2110         * remote.c (discard_pending_stop_replies): Remove declaration.
2111         (discard_pending_stop_replies_in_queue): Declare.
2112         (remote_close): Call discard_pending_stop_replies_in_queue
2113         instead of discard_pending_stop_replies.
2114         (remote_start_remote): Adjust.
2115         (stop_reply_xfree): Call notif_event_xfree.
2116         (notif_client_stop): Adjust initialization.
2117         (remote_notif_remove_all): Rename it to ...
2118         (remove_stop_reply_for_inferior): ... this.  Update comments.
2119         Don't check INF is NULL.
2120         (discard_pending_stop_replies): Return early if notif_state is
2121         NULL.  Adjust.  Don't check INF is NULL.
2122         (remote_notif_get_pending_events): Adjust.
2123         (discard_pending_stop_replies_in_queue): New function.
2124         (remote_wait_ns): Likewise.
2125
2126 2013-10-04  Yao Qi  <yao@codesourcery.com>
2127
2128         * remote-notif.c (DECLARE_QUEUE_P): Remove.
2129         (notif_queue): Remove.
2130         (remote_notif_process): Add one parameter 'notif_queue'.
2131         Update comments.  Callers update.
2132         (remote_async_get_pending_events_token): Remove.
2133         (remote_notif_register_async_event_handler): Remove.
2134         (remote_notif_unregister_async_event_handler): Remove.
2135         (handle_notification): Add parameter 'notif_queue'.  Update
2136         comments.  Callers update.
2137         (notif_xfree): Remove.
2138         (remote_notif_state_allocate): New function.
2139         (remote_notif_state_xfree): New function.
2140         (_initialize_notif): Remove code to allocate queue.
2141         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2142         (struct remote_notif_state): New.
2143         (handle_notification): Update declaration.
2144         (remote_notif_process): Likewise.
2145         (remote_notif_register_async_event_handler): Remove.
2146         (remote_notif_unregister_async_event_handler): Remove.
2147         (remote_notif_state_allocate): Declare.
2148         (remote_notif_state_xfree): Declare.
2149         * remote.c (struct remote_state) <notif_state>: New field.
2150         (remote_close): Don't call
2151         remote_notif_unregister_async_event_handler.  Call
2152         remote_notif_state_xfree.
2153         (remote_open_1): Don't call
2154         remote_notif_register_async_event_handler.  Call
2155         remote_notif_state_allocate.
2156
2157 2013-10-04  Yao Qi  <yao@codesourcery.com>
2158
2159         * varobj.c (create_child_with_value): Remove 'const' from the
2160         type of parameter 'name'.
2161         (varobj_add_child): Likewise.
2162         (install_dynamic_child): Remove 'const' from the type of
2163         parameter 'name'.
2164         (varobj_add_child): Likewise.
2165         (create_child_with_value): Likewise.  Update comments.  Don't
2166         duplicate 'name'.
2167         (update_dynamic_varobj_children): Duplicate 'name'
2168         and pass it to install_dynamic_child.
2169
2170 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
2171
2172         * python/py-value.c (convert_value_from_python): Move PyInt_Check
2173         conversion logic to occur after PyLong_Check.  Comment on order
2174         change significance.
2175         * python/py-arch.c (archpy_disassemble): Comment on order of
2176         conversion for integers and longs.
2177
2178 2013-10-03  Pedro Alves  <palves@redhat.com>
2179
2180         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2181         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2182         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
2183         PTRACE_O_TRACEFORK is not supported.
2184         (linux_test_for_tracesysgood): New function.
2185         (linux_test_for_tracefork): New function, factored out from
2186         linux_check_ptrace_features, and also don't kill child_pid here.
2187
2188 2013-10-03  Tristan Gingold  <gingold@adacore.com>
2189
2190         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2191         Remove verbose error reporting.  Use detected state to
2192         thread_set_state call.
2193         (i386_darwin_dr_get): Fix return type.  Remove verbose error
2194         report.
2195         Remove trailing spaces.
2196
2197 2013-10-02  Pedro Alves  <palves@redhat.com>
2198
2199         * cp-valprint.c (cp_print_value_fields): Adjust calls to
2200         val_print_optimized_out.
2201         * jv-valprint.c (java_print_value_fields): Likewise.
2202         * p-valprint.c (pascal_object_print_value_fields): Likewise.
2203         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2204         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2205         new optimized out value.
2206         * findvar.c (address_from_register): Likewise.
2207         * frame.c (put_frame_register): Tweak error string to say the
2208         register was not saved, rather than optimized out.
2209         * infcmd.c (default_print_one_register_info): Adjust call to
2210         val_print_optimized_out.  Use value_of_register instead of
2211         get_frame_register_value.
2212         * mi/mi-main.c (output_register): Use value_of_register instead of
2213         get_frame_register_value.
2214         * valprint.c (valprint_check_validity): Likewise.
2215         (val_print_optimized_out): New value parameter.  If the value is
2216         lval_register, print <not saved> instead.
2217         (value_check_printable, val_print_scalar_formatted): Adjust calls
2218         to val_print_optimized_out.
2219         * valprint.h (val_print_optimized_out): New value parameter.
2220         * value.c (struct value) <optimized_out>: Extend comment.
2221         (error_value_optimized_out): New function.
2222         (require_not_optimized_out): Use it.  Use a different string for
2223         lval_register values.
2224         * value.h (error_value_optimized_out): New declaration.
2225         * NEWS: Mention <not saved>.
2226
2227 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
2228
2229         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2230         strcmp to compare two symtab filenames.
2231
2232 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
2233
2234         * symtab.c (search_symbols_equal): Delete.
2235         (sort_search_symbols_remove_dups): Replace call to
2236         search_symbols_equal by call to compare_search_syms,
2237         adjusting as necessary.
2238
2239 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
2240
2241         PR python/15579
2242         * python/python.c: Document gdb.execute command in Python help.
2243
2244 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
2245
2246         * python/py-frame.c (frame_info_to_frame_object): Use
2247         gdbpy_convert_exception. Clean up Python object on failure.
2248
2249 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
2250
2251         * python/lib/gdb/command/frame_filters.py
2252         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2253         (ShowFrameFilterPriority.invoke): Ditto.
2254
2255 2013-10-01  Keith Seitz  <keiths@redhat.com>
2256
2257         * linespec.c (struct ls_parser): Make 'saved_arg' const.
2258         (parse_linespec): Make 'argptr' const.
2259         Remove temporary cast of 'argptr' to const char **.
2260         (decode_line_full): Pass const pointer to parse_linespec.
2261         (decode_line_1): Likewise.
2262         (decode_objc): Make local variable 'new_argptr' const.
2263         (find_function_symbols): Remove temporary cast to char *
2264         to find_imps.
2265         * objc-lang.c (find_imps): Make argument 'method' const.
2266         Return const.
2267         * objc-lang.h (find_imps): Likewise.
2268
2269 2013-10-01  Keith Seitz  <keiths@redhat.com>
2270
2271         * completer.c (skip_quoted_chars): Make all arguments const.
2272         Return const.
2273         (skip_quoted): Likewise.
2274         * completer.h (skip_quoted_chars): Likewise.
2275         (skip_quoted): Likewise.
2276         * defs.h (skip_quoted): Remove duplicate declaration.
2277         * jv-exp.y: Include completer.h.
2278         (yylex): Remove unneccessary cast to char * fro skip_quoted.
2279         * p-exp.y: Include completer.h.
2280
2281 2013-10-01  Keith Seitz  <keiths@redhat.com>
2282
2283         * c-exp.y (parse_number): Make first argument const.
2284         Make a copy of the input to manipulate.
2285         (c_parse_escape): Make first argument const.
2286         Make local variable 'tokptr' const.
2287         (parse_string_or_char): Make first two arguments const.
2288         (macro_original_text): Make const.
2289         (lex_one_token): Make local variable 'tokstart' const.
2290         Likewise for local variables named 'p'.
2291         Cast away const for struct stoken (temporary).
2292         * c-lang.h (c_parse_escpae): Make first argument const.
2293         * cli/cli-cmds.c (echo_command): Make local variable 'p'
2294         const.
2295         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2296         var_string case.
2297         * f-exp.y (parse_number): Make first argument const.
2298         (match_string_literal): Make local variable 'tokstart'
2299         const.
2300         (yylex): Make local variable 'p' const.
2301         Cast away const for struct stoken (temporary).
2302         * go-exp.y (parse_number): Make first argument const.
2303         (parse_string_or_char): Likewise.
2304         Make local variable 'tokstart' const.
2305         (lex_one_token): Likewise for numerous locals called 'p'.
2306         Cast away const for struct stoken (temporary).
2307         * jv-exp.y (parse_number): Make first argument const.
2308         Make local variables 'tokstart' and 'tokptr' const.
2309         Cast away const for call to skip_quoted (temporary).
2310         (yylex): Make local variable 'p' const.
2311         Cast away const for struct stoken (temporary).
2312         * m2-exp.y (parse_number): Make local variable 'p' const.
2313         (yylex): Likewise for 'tokstart'.
2314         Cast away const for struct stoken (temporary).
2315         Make local variable 'p' const.
2316         * macroexp.c (get_character_constant): Pass a const string
2317         to c_parse_escape.
2318         (get_string_literal): Likewise.
2319         (macro_expand_next): Make first argument const.
2320         Cast away const for init_shared_buffer.
2321         * macroexp.h (macro_expand_next): Make first argument const.
2322         * p-exp.y (yylex): Make a local copy of 'lexptr'.
2323         Pass a const string to c_parse_escape.
2324         Make local variables 'p' and 'namestart' const.
2325         * parse.c (lexptr): Make const.
2326         (prev_lexptr): Likewise.
2327         (find_template_name_end): Return const.
2328         Make argument const, too.
2329         (parse_exp_in_context): Make first argument const.
2330         Remove the entire const_hack.
2331         (parse_exp_in_context_1): Make first argument const.
2332         * parser-defs.h (find_template_name_end): Return const.
2333         Make argument const, too.
2334         (lexptr): Make const.
2335         (prev_lexptr): Likewise.
2336         * utils.c (parse_escape): Make second argument const.
2337         * utils.h (parse_escape): Likewise.
2338
2339 2013-10-01  Keith Seitz  <keiths@redhat.com>
2340
2341         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2342         is now const.
2343         (block_lookup): Make 'raw_name' and 'name' const.
2344         * ada-lex.l (processString): Update for struct stoken.ptr.
2345         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2346         (operator_stoken): Likewise.
2347         (lex_one_token): Remove temporary cast to char * for
2348         'yylval.sval.ptr'.
2349         * f-exp.y (yylex): Likewise.
2350         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2351         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2352         * go-exp.y (lex_one_token): Remove temporary cast to char * for
2353         'yylval.sval.ptr'.
2354         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2355         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2356         * linespec.c (struct ls_parser): Make 'stream' const.
2357         (find_parameter_list_end): Make argument 'input' and local
2358         variable 'p' const.
2359         (linespec_lexer_lex_string): Make local variables 'start' and
2360         'p' const.
2361         Use skip_spaces_const instead of skip_spaces.
2362         (linespec_lexer_peek_token): Make local variable 'saved_stream'
2363         const.
2364         (parse_linespec): Temporarily cast 'argptr' to const for
2365         'parser->lexer.stream'.
2366         * m2-exp.y (yylex): Remove temporary cast to char * for
2367         'yylval.sval.ptr'.
2368         * objc-lang.c (add_msglist): Make local variable 'p' const.
2369         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2370         (exp : STRING): Make 'sp' const.
2371         (parse_number): Make argument 'p' const.
2372         * parser-defs.h (struct stoken): Make 'ptr' const.
2373
2374 2013-10-01  Doug Evans  <dje@google.com>
2375
2376         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2377
2378 2013-10-01  Yao Qi  <yao@codesourcery.com>
2379
2380         * varobj.c (c_value_of_root): Remove declaration.
2381         (cplus_value_of_root, java_value_of_root): Likewise.
2382         (ada_value_of_root): Likewise.
2383         (struct language_specific) <value_of_root>: Remove.
2384         (languages): Update initialization.
2385         (check_scope): Move earlier.
2386         (c_value_of_root): Move earlier and rename to ...
2387         (value_of_root_1): ... this.
2388         (value_of_root): Caller update.
2389         (cplus_value_of_root, java_value_of_root): Remove.
2390         (ada_value_of_root): Remove.
2391
2392 2013-10-01  Yao Qi  <yao@codesourcery.com>
2393
2394         * varobj.c (varobj_format_string): Remove "unknown".
2395         (languages): Remove the first element.
2396         * varobj.h (enum varobj_languages): Remove vlang_c.
2397
2398 2013-10-01  Yao Qi  <yao@codesourcery.com>
2399
2400         * varobj.c (struct language_specific) <language>: Remove.
2401         (languages): Update the initialization.
2402
2403 2013-10-01  Yao Qi  <yao@codesourcery.com>
2404
2405         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2406         "solib-target.h".  Include "windows-tdep.h".
2407         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
2408         set_solib_ops and set_gdbarch_has_dos_based_file_system.
2409         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2410         windows-tdep.o to gdb_target_obs.
2411
2412 2013-10-01  Yao Qi  <yao@codesourcery.com>
2413
2414         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2415         "solib-target.h".
2416         (amd64_windows_init_abi): Don't call set_solib_ops and
2417         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
2418         windows_init_abi instead.
2419         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2420         "solib-target.h".
2421         (i386_cygwin_init_abi): Don't call set_solib_ops,
2422         set_gdbarch_has_dos_based_file_system and
2423         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
2424         windows_init_abi instead.
2425         * windows-tdep.c: Include "solib.h" and "solib-target.h".
2426         (windows_init_abi): New function.
2427         (windows_iterate_over_objfiles_in_search_order): Make it
2428         static.
2429         * windows-tdep.h (windows_init_abi): Declare.
2430         (windows_iterate_over_objfiles_in_search_order): Remove
2431         declaration.
2432
2433 2013-10-01  Jerome Guitton  <guitton@adacore.com>
2434
2435         Checked in by Joel Brobecker  <brobecker@adacore.com>
2436         * system-gdbinit/elinos.py (get_elinos_environment): Return an
2437         incomplete dictionnary instead of None in case of missing
2438         environment variables.
2439         (elinos_init): in case of an incomplete environment, best
2440         effort to load system libraries instead of abort.
2441
2442 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
2443
2444         * ada-lang.c (ada_has_this_exception_support): Ignore
2445         mst_solib_trampoline minimal symbols.
2446
2447 2013-09-30  Tristan Gingold  <gingold@adacore.com>
2448
2449         * i386-darwin-nat.c (darwin_complete_target): Install methods for
2450         hardware watchpoint.
2451         (i386_darwin_dr_set): Support 32 and 64 bit states.
2452         (i386_darwin_dr_get): Likewise.
2453         (i386_darwin_dr_set_control): Make static.
2454         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2455         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2456
2457 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
2458
2459         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2460         Replace TIDGET with ptid_get_lwp.
2461         Replace GET_LWP with ptid_get_lwp.
2462         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2463         Replace BUILD_THREAD with ptid_build.
2464         Replace BUILD_LWP with ptid_build.
2465         Replace PIDGET with ptid_get_pid.
2466         Replace TIDGET with ptid_get_lwp.
2467         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2468         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2469         Replace TIDGET with ptid_get_lwp.
2470         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2471         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2472         Replace TIDGET with ptid_get_lwp.
2473         Replace GET_LWP with ptid_get_lwp.
2474         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2475         * auxv.c: Likewise.
2476         * breakpoint.c: Likewise.
2477         * common/ptid.c (ptid_is_pid): Condense check for
2478         null_ptid and minus_one_ptid.
2479         (ptid_lwp_p): New function.
2480         (ptid_tid_p): New function.
2481         * common/ptid.h: Update comments for accessors.
2482         (ptid_lwp_p): New prototype.
2483         (ptid_tid_p): New prototype.
2484         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2485         * gcore.c: Replace PIDGET with ptid_get_pid.
2486         * gdbthread.h: Likewise.
2487         * gnu-nat.c: Likewise.
2488         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2489         Replace TIDGET with ptid_get_lwp.
2490         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2491         * hppanbsd-nat.c: Likewise.
2492         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2493         Replace TIDGET with ptid_get_lwp.
2494         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2495         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2496         * infcmd.c: Likewise.
2497         * inferior.h: Likewise.
2498         * inflow.c: Likewise.
2499         * infrun.c: Likewise.
2500         * linux-fork.c: Likewise.
2501         * linux-nat.c: Replace PIDGET with ptid_get_pid.
2502         Replace GET_PID with ptid_get_pid.
2503         Replace is_lwp with ptid_lwp_p.
2504         Replace GET_LWP with ptid_get_lwp.
2505         Replace BUILD_LWP with ptid_build.
2506
2507 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
2508
2509         * common/linux-btrace.c: Move sys/syscall.h out of the
2510         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2511         Also check for SYS_perf_event_open before attempting to buid.
2512
2513 2013-09-27  Doug Evans  <dje@google.com>
2514
2515         * dwarf2read.c (dwarf2_section_info): Add comment.
2516         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2517         All uses updated.
2518         (dwarf2_section_empty_p): Rename arg from "info" to "section".
2519         (dwarf2_read_section): Delete unused local "header".  Add section
2520         name to error message.
2521         (create_dwo_in_dwp): Tweak comment.
2522         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2523
2524         * dwarf2read.c (die_reader_specs): Tweak comment.
2525         (get_section_bfd_owner, get_section_bfd_section): New functions.
2526         (get_section_name, get_section_file_name): New functions.
2527         (get_section_id, get_section_flags): New functions.
2528         (*): Use new functions to access section fields.
2529
2530         * dwarf2read.c (struct dwo_file): Add/tweak comments.
2531         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
2532         arg "htab".  All callers updated.
2533         (create_debug_types_hash_table): Remove redundant copy of
2534         abbrev_section.
2535         (create_dwo_in_dwp): Tweak comments.
2536         (read_str_index): Tweak comment.  Record dwarf form name in static
2537         local.
2538
2539 2013-09-27  Pedro Alves  <palves@redhat.com>
2540
2541         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2542         (remote_filename_p): Add comment.
2543         * remote.c (remote_filename_p): Adjust to use
2544         REMOTE_SYSROOT_PREFIX.
2545         * solib.c (solib_find): When deciding whether we need to add a
2546         directory separator, check whether the sysroot is "remote:"
2547         instead of checking whether the patch has a drive spec.  Add
2548         comments.
2549
2550 2013-09-27  Pedro Alves  <palves@redhat.com>
2551
2552         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2553         Delete fields.
2554         (remote_parse_stop_reply): Adjust, setting event->ws.kind
2555         directly.
2556
2557 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2558
2559         Fix set debug frame output.
2560         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
2561         SENTINEL_FRAME entry lower to match enum frame_type order.
2562
2563 2013-09-26  Pierre Muller  <muller@sourceware.org>
2564
2565         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2566         AMD64_R15_REGNUM when a register index is expected.
2567         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2568         Substitute in array.
2569         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2570         (amd64_push_arguments): Substitute in integer_regnum array.
2571
2572 2013-09-25  Doug Evans  <dje@google.com>
2573
2574         * objfiles.c (allocate_objfile): Move comment to better place.
2575
2576         New option "set debug symfile on".
2577         * NEWS: Mention "set debug symfile".
2578         * Makefile.in (SFILES): Add symfile-debug.c.
2579         (COMMON_OBS): Add symfile-debug.o.
2580         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2581         objfile's symbol functions.
2582         * objfiles.h (objfile_set_sym_fns): Declare.
2583         * symfile-debug.c: New file.
2584         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2585         objfile's symbol functions.
2586         (reread_symbols): Ditto.
2587
2588         * symfile.h (struct sym_fns): Delete member "sym_flavour".
2589         All uses updated.
2590         (add_symtab_fns): Update prototype.
2591         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
2592         (registered_sym_fns): ... this.
2593         (symtab_fns): Update.
2594         (add_symtab_fns): New arg "flavour".  All callers updated.
2595         (find_sym_fns): Rewrite to use new sym_fns registry.
2596
2597         * symfile.h (struct sym_fns): Add "objfile" argument to
2598         sym_read_linetable.  All uses updated.
2599
2600         * symtab.c (domain_name, search_domain_name): New functions.
2601         * symtab.h (domain_name, search_domain_name): Declare.
2602
2603         * symfile.h (struct quick_symbol_functions): Reorg arg list of
2604         map_matching_symbols so objfile is first.  All uses updated.
2605         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2606         * psymtab.c (map_matching_symbols_psymtab): Update signature.
2607
2608 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2609
2610         PR shlibs/8882
2611         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2612         link map entries.
2613
2614 2013-09-24  Doug Evans  <dje@google.com>
2615
2616         * objfiles.c (free_objfile): Move comment.
2617
2618 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2619
2620         * ada-exp.y (string_to_operator): Delete.
2621         (dummy_string_to_ada_operator): Delete.
2622
2623 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2624
2625         Revert:
2626         * i386-tdep.h (enum amd64_reg_class): New, moved here from
2627         amd64-tdep.c.
2628         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2629         call_dummy_integer_regs, and classify.
2630         * amd64-tdep.h (amd64_classify): Add declaration.
2631         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2632         (amd64_reg_class): Delete, moved to i386-tdep.h.
2633         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
2634         Replace call to amd64_classify by call to tdep->classify.
2635         (amd64_push_arguments): Get the list of registers to use for
2636         passing integer parameters from the gdbarch tdep structure,
2637         rather than using a hardcoded one.  Replace calls to amd64_classify
2638         by calls to tdep->classify.
2639         (amd64_push_dummy_call): Get the register number used for
2640         the "hidden" argument from tdep->call_dummy_integer_regs.
2641         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2642         and tdep->call_dummy_integer_regs.  Set tdep->classify.
2643
2644 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2645
2646         Revert:
2647         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2648         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2649         where tdep->memory_args_by_pointer is non-zero.
2650
2651 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2652
2653         Revert:
2654         * i386-tdep.h (struct gdbarch_tdep): Add new field
2655         integer_param_regs_saved_in_caller_frame.
2656         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2657         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2658
2659 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2660
2661         * amd64-windows-tdep.c: #include "value.h"
2662         (amd64_windows_classify): Delete.
2663         (amd64_windows_passed_by_integer_register)
2664         (amd64_windows_passed_by_xmm_register)
2665         (amd64_windows_passed_by_pointer)
2666         (amd64_windows_adjust_args_passed_by_pointer)
2667         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2668         (amd64_windows_push_dummy_call): New functions.
2669         (amd64_windows_init_abi): Remove setting of
2670         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2671         tdep->classify, tdep->memory_args_by_pointer and
2672         tdep->integer_param_regs_saved_in_caller_frame.
2673         Add call to set_gdbarch_push_dummy_call.
2674
2675 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2676
2677         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2678         objfile->original_name.
2679
2680 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2681
2682         Pass down original filename for objfile.
2683         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2684         * elfread.c (elf_symfile_read): Likewise.
2685         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2686         longer set ORIGINAL_NAME.
2687         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2688         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2689         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
2690         symbol_file_add_from_bfd call.
2691         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2692         (macho_check_dsym): Add parameter filenamep.  Change function comment.
2693         Set *filenamep.
2694         (macho_symfile_read): New variable dsym_filename.  Update
2695         macho_check_dsym call.  Use it for symbol_file_add_separate.
2696         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
2697         it.  Use it for objfile->original_name.
2698         (objfile_name): Return OBFD's filename, if available.
2699         * objfiles.h (allocate_objfile): Add new parameter name.
2700         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2701         * symfile-mem.c (symbol_file_add_from_memory): Update
2702         symbol_file_add_from_bfd call.
2703         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2704         comment for it.
2705         (symbol_file_add_with_addrs): New parameter name, add function comment
2706         for it.  Remove variable name.  Update allocate_objfile call.
2707         (symbol_file_add_separate): New parameter name, add function comment
2708         for it.  Update symbol_file_add_with_addrs call.
2709         (symbol_file_add_from_bfd): New parameter name.  Update
2710         symbol_file_add_with_addrs call.
2711         (symbol_file_add): Update symbol_file_add_from_bfd call.
2712         (reread_symbols): New variable original_name.  Save
2713         objfile->original_name by it.
2714         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2715         second parameter.
2716
2717 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2718
2719         Code cleanup: Add objfile_name accessor function.
2720         * ada-lang.c (is_known_support_routine): Use objfile_name.
2721         * auto-load.c (source_gdb_script_for_objfile)
2722         (auto_load_objfile_script): Likewise.
2723         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2724         * dbxread.c (dbx_symfile_read): Likewise.
2725         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2726         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2727         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2728         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2729         (lookup_dwp_signatured_type, lookup_dwo_unit)
2730         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2731         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2732         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2733         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2734         (dwarf2_record_block_ranges, read_common_block, read_typedef)
2735         (read_subrange_type, load_partial_dies, read_partial_die)
2736         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2737         (die_containing_type, build_error_marker_type, lookup_die_type)
2738         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2739         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2740         (get_DW_AT_signature_type, write_psymtabs_to_index)
2741         (save_gdb_index_command): Likewise.
2742         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2743         Likewise.
2744         * expprint.c (dump_subexp_body_standard): Likewise.
2745         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2746         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2747         original_name.
2748         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2749         obj_name, use objfile_name for it, use the variable.
2750         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2751         Use objfile_name.
2752         * machoread.c (macho_symtab_read, macho_check_dsym)
2753         (macho_symfile_relocate): Likewise.
2754         * maint.c (maintenance_translate_address): Likewise.
2755         * minidebug.c (find_separate_debug_file_in_section): Likewise.
2756         * minsyms.c (install_minimal_symbols): Likewise.
2757         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2758         original_name.
2759         (filter_overlapping_sections): Use objfile_name.
2760         (objfile_name): New function.
2761         * objfiles.h (struct objfile): Rename field name to original_name.
2762         (objfile_name): New prototype.
2763         * printcmd.c (sym_info, address_info): Use objfile_name.
2764         * probe.c (parse_probes, collect_probes, compare_probes)
2765         (info_probes_for_ops): Likewise.
2766         * progspace.c (clone_program_space): Likewise.
2767         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2768         (maintenance_info_psymtabs): Likewise.
2769         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2770         (source_section_scripts): Likewise.
2771         * python/py-objfile.c (objfpy_get_filename): Likewise.
2772         * python/py-progspace.c (pspy_get_filename): Likewise.
2773         * solib-aix.c (solib_aix_get_toc_value): Likewise.
2774         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2775         * solib.c (solib_read_symbols): Likewise.
2776         * stabsread.c (scan_file_globals): Likewise.
2777         * stap-probe.c (handle_stap_probe): Likewise.
2778         * symfile.c (symbol_file_clear, separate_debug_file_exists)
2779         (find_separate_debug_file_by_debuglink): Likewise.
2780         (reread_symbols): Likewise.  Use the objfile field name renamed to
2781         original_name.
2782         (allocate_symtab): Use objfile_name.
2783         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2784         (dump_objfile, dump_msymbols, dump_symtab_1)
2785         (maintenance_print_msymbols, maintenance_print_objfiles)
2786         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2787         * target.c (target_translate_tls_address, target_info): Likewise.
2788         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
2789         objfile_name.
2790
2791 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2792
2793         Code cleanup.
2794         * probe.c (parse_probes): Rename variable objfile_name to
2795         objfile_namestr.
2796
2797 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2798
2799         Remove solib-sunos.c.
2800         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2801         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2802         * objfiles.c (rt_common_objfile): Remove.
2803         (free_objfile): Remove rt_common_objfile comparison.
2804         * objfiles.h (rt_common_objfile): Remove.
2805         * solib-sunos.c: Remove.
2806         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2807
2808 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2809
2810         Remove a.out NetBSD and OpenBSD hosts.
2811         * NEWS (Removed native configurations): New.
2812         * config/arm/nbsdaout.mh: Remove.
2813         * config/i386/nbsdaout.mh: Remove.
2814         * config/i386/obsdaout.mh: Remove.
2815         * config/m68k/nbsdaout.mh: Remove.
2816         * config/sparc/nbsdaout.mh: Remove.
2817         * config/vax/nbsdaout.mh: Remove.
2818         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2819         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2820         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2821         error.
2822         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2823         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2824         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2825
2826 2013-09-23  Tom Tromey  <tromey@redhat.com>
2827
2828         * linespec.c (struct minsym_and_objfile): Remove.
2829         (minsym_and_objfile_d): Remove.
2830         (struct linespec, struct collect_info, linespec_parse_basic)
2831         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2832         (compare_msymbols, find_method, find_function_symbols)
2833         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2834         (add_minsym, search_minsyms_for_name): Update.
2835
2836 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
2837
2838         * regcache.c: Add include of valprint.h.
2839         (dump_endian_bytes): Delete.
2840         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2841
2842 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
2843
2844         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2845
2846 2013-09-19  Pedro Alves  <palves@redhat.com>
2847
2848         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2849         breakpoints.
2850
2851 2013-09-19  Pedro Alves  <palves@redhat.com>
2852             Thomas Schwinge  <thomas@codesourcery.com>
2853             Yue Lu  <hacklu.newborn@gmail.com>
2854
2855         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2856         Take a gdb_byte pointer instead of a char pointer.
2857
2858         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2859         gnu_xfer_partial helper.
2860         (gnu_xfer_partial): New function.
2861         (gnu_target): Don't install a deprecated_xfer_memory hook.
2862         Install a to_xfer_partial hook.
2863
2864 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2865
2866         Constification.
2867         * main.c (captured_main): Replace catch_command_errors by
2868         catch_command_errors_const.  Twice.
2869         * symfile.c (symbol_file_add_main_1): Make args parameter const.
2870         (symbol_file_add): Make name parameter const.
2871         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2872         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
2873         variable name.  Change their usage accordingly.
2874         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2875         const.
2876         (symbol_file_add_main): Make args parameter const.
2877
2878 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
2879             Ulrich Weigand  <uweigand@de.ibm.com>
2880
2881         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2882         of c_value member.
2883         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2884
2885 2013-09-18  Pedro Alves  <palves@redhat.com>
2886             Yue Lu  <hacklu.newborn@gmail.com>
2887
2888         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2889         (gnu_create_inferior)
2890         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2891         (set_sig_thread_cmd): Use the lwpid field of ptids to
2892         store/extract thread ids instead of the tid field.
2893         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2894
2895 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
2896
2897         * infcmd.c (default_print_one_register_info): Add detection of
2898         optimized out values.
2899         (default_print_registers_info): Switch to using
2900         get_frame_register_value.
2901
2902 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2903
2904         * infrun.c (handle_inferior_event): Check if we know the
2905         function start address before setting a resume breakpoint.
2906
2907 2013-09-18  Pedro Alves  <palves@redhat.com>
2908
2909         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2910         minus_one_ptid instead of looking at the ptid's tid field and
2911         comparing that to -1.
2912
2913 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
2914
2915         * main.h (get_gdb_program_name): Remove extra whitespace.
2916
2917 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
2918
2919         * main.h (get_gdb_program_name): Add declaration.
2920         * main.c (get_gdb_program_name): Add definition.
2921
2922 2013-09-17  Doug Evans  <dje@google.com>
2923
2924         * dwarf2read.c: Move definitions of complaint functions to after
2925         forward declarations of local functions.
2926
2927 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
2928             Pedro Alves  <palves@redhat.com>
2929
2930         PR gdb/11568
2931         * breakpoint.c (remove_threaded_breakpoints): New function.
2932         (_initialize_breakpoint): Attach remove_threaded_breakpoints
2933         as thread_exit observer.
2934
2935 2013-09-17  Pedro Alves  <palves@redhat.com>
2936
2937         PR gdb/15911
2938         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2939         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2940         * corelow.c (core_open):
2941         * frame.h (print_stack_frame, print_frame_info): New
2942         'set_current_sal' parameter.
2943         * infcmd.c (finish_command, kill_command): Adjust call to
2944         print_stack_frame.
2945         * inferior.c (inferior_command): Likewise.
2946         * infrun.c (normal_stop): Likewise.
2947         * linux-fork.c (linux_fork_context): Likewise.
2948         * record-full.c (record_full_goto_entry, record_full_restore):
2949         Likewise.
2950         * remote-mips.c (common_open): Likewise.
2951         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2952         Use it.
2953         (print_frame_info): New 'set_current_sal' parameter.  Set the last
2954         displayed sal depending on the new paremeter instead of looking at
2955         print_what.
2956         (backtrace_command_1, select_and_print_frame, frame_command)
2957         (current_frame_command, up_command, down_command): Adjust call to
2958         print_stack_frame.
2959         * thread.c (print_thread_info, restore_selected_frame)
2960         (do_captured_thread_select): Adjust call to print_stack_frame.
2961         * tracepoint.c (tfind_1): Likewise.
2962         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2963         (mi_cmd_stack_info_frame): Likewise.
2964         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2965         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2966
2967 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2968
2969         * value.c (isvoid_internal_fn): Replace "parameter" with
2970         "argument".
2971
2972 2013-09-16  Stan Shebs  <stan@codesourcery.com>
2973
2974         * README: Update references to writing code for GDB.
2975         * configure.ac (build_warnings): Remove obsolete comment.
2976         * configure: Regenerate.
2977         * gdbarch.sh: Remove references to gdbint.texinfo.
2978         * gdbarch.h: Regenerate.
2979         * gdbtypes.c (objfile_type): Remove comments referencing internals
2980         manual and D10V.
2981
2982 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2983
2984         * NEWS: Mention new convenience function $_isvoid.
2985         * value.c (isvoid_internal_fn): New function.
2986         (_initialize_values): Add new convenience function $_isvoid.
2987
2988 2013-09-16  Pierre Muller  <muller@sourceware.org>
2989
2990         * arm-linux-tdep.c: Add "elf/common.h" header.
2991         Remove AT_HWCAP macro definintion as it is provided in
2992         added include file.
2993         * s390-tdep.c: Remove system header <elf.h>
2994         Add "elf/common.h" header for AT_HWCAP definition.
2995         (s390_core_read_description): Use correct CORE_ADDR
2996         for hwcap local variable used as third parameter
2997         of function target_auxv_search.
2998
2999 2013-09-14  Pierre Muller  <muller@sourceware.org>
3000             Tom Tromey  <tromey@redhat.com>
3001             Pedro Alves  <palves@redhat.com>
3002
3003         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3004         mode if operating system doesn't know O_CLOEXEC.
3005
3006 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3007
3008         Code cleanup.
3009         * symfile.c (reread_symbols): Move variable obfd_filename to a more
3010         inner block.
3011
3012 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3013
3014         * NEWS: Mention TDB support.
3015         * features/s390-tdb.xml: New file.
3016         * features/s390-te-linux64.xml: New file.
3017         * features/s390x-te-linux64.xml: New file.
3018         * features/Makefile (WHICH): Add new tdescs above.
3019         (s390-te-linux64-expedite): Set.
3020         (s390x-te-linux64-expedite): Set.
3021         * features/s390-te-linux64.c: New file (generated).
3022         * features/s390x-te-linux64.c: New file (generated).
3023         * regformats/s390-te-linux64.dat: New file (generated).
3024         * regformats/s390x-te-linux64.dat: New file (generated).
3025         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3026         (HWCAP_S390_TE): Likewise.
3027         (S390_TDB_DWORD0_REGNUM): Likewise.
3028         (S390_TDB_DWORD0_REGNUM): Likewise.
3029         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3030         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3031         (S390_TDB_ATIA_REGNUM): Likewise.
3032         (S390_TDB_R0_REGNUM): Likewise.
3033         (S390_TDB_R1_REGNUM): Likewise.
3034         (S390_TDB_R2_REGNUM): Likewise.
3035         (S390_TDB_R3_REGNUM): Likewise.
3036         (S390_TDB_R4_REGNUM): Likewise.
3037         (S390_TDB_R5_REGNUM): Likewise.
3038         (S390_TDB_R6_REGNUM): Likewise.
3039         (S390_TDB_R7_REGNUM): Likewise.
3040         (S390_TDB_R8_REGNUM): Likewise.
3041         (S390_TDB_R9_REGNUM): Likewise.
3042         (S390_TDB_R10_REGNUM): Likewise.
3043         (S390_TDB_R11_REGNUM): Likewise.
3044         (S390_TDB_R12_REGNUM): Likewise.
3045         (S390_TDB_R13_REGNUM): Likewise.
3046         (S390_TDB_R14_REGNUM): Likewise.
3047         (S390_TDB_R15_REGNUM): Likewise.
3048         (S390_NUM_REGS): Increase.
3049         (S390_IS_TDBREGSET_REGNUM): New macro.
3050         (s390_regmap_tdb): Declare.
3051         (s390_sizeof_tdbregset): Define.
3052         (tdesc_s390_te_linux64): Declare.
3053         (tdesc_s390x_te_linux64): Likewise.
3054         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3055         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3056         (s390_regmap_tdb): New regmap.
3057         (s390_supply_tdb_regset): New function.
3058         (s390_tdb_regset): New regset.
3059         (s390_linux64v2_regset_sections): Add TDB regset to list.
3060         (s390x_linux64v2_regset_sections): Likewise.
3061         (s390_regset_from_core_section): Recognize TDB core note section.
3062         (s390_core_read_description): If HWCAP indicates TE support,
3063         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3064         (s390_gdbarch_init): Handle TDB regset.
3065         (_initialize_s390_tdep): Initialize new tdescs.
3066         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3067         (have_regset_tdb): New variable.
3068         (s390_native_supply): Support register invalidation.
3069         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3070         (check_regset): Treat ENODATA as "regset exists".
3071         (s390_linux_fetch_inferior_registers): Add TDB.
3072         (s390_read_description): Check for TDB existence and select
3073         appropriate tdesc.
3074         * gdbserver/Makefile.in (clean): Add removal of new makefile
3075         targets.
3076         (s390-te-linux64.c): New makefile target.
3077         (s390x-te-linux64.c): Likewise.
3078         * gdbserver/configure.srv (srv_regobj): Append new objects
3079         s390-te-linux64.o and s390x-te-linux64.o.
3080         (srv_xmlfiles): Append new files s390-te-linux64.xml,
3081         s390x-te-linux64.xml, and s390-tdb.xml.
3082         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3083         declaration.
3084         (tdesc_s390_te_linux64): Likewise.
3085         (init_registers_s390x_te_linux64): Likewise.
3086         (tdesc_s390x_te_linux64): Likewise.
3087         (s390_check_regset): Treat ENODATA as "regset exists".
3088         (s390_arch_setup): Add TDB regset support.
3089         (initialize_low_arch): Initialize registers for new tdescs.
3090
3091 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3092
3093         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3094         (S390_IS_FPREGSET_REGNUM): New macro.
3095         * s390-tdep.c (s390_dwarf_regmap): Make const.
3096         (regnum_is_gpr_full): New function for replacing repeated code.
3097         (s390_pseudo_register_name): Use it.
3098         (s390_pseudo_register_type): Likewise.
3099         (s390_pseudo_register_read): Likewise.
3100         (s390_pseudo_register_write): Likewise.
3101         (s390_unwind_pseudo_register): Likewise.
3102         (s390_regmap_gregset): New format for regmap.
3103         (s390x_regmap_gregset): Likewise.
3104         (s390_regmap_fpregset): Likewise.
3105         (s390_regmap_upper): Likewise.
3106         (s390_regmap_last_break): Likewise.
3107         (s390_regmap_system_call): Likewise.
3108         (s390_supply_regset): Adjust to new regmap format.
3109         (s390_collect_regset): Likewise.
3110         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3111         (s390_native_collect): Likewise.
3112         (supply_gregset): Likewise.
3113         (fill_gregset): Likewise.
3114         (supply_fpregset): Likewise.
3115         (fill_fpregset): Likewise.
3116         (fetch_regset): Likewise.
3117         (store_regset): Likewise.
3118         (s390_linux_fetch_inferior_registers): Likewise.
3119         (s390_linux_fetch_inferior_registers): Likewise.
3120
3121 2013-09-12  Andrew Pinski  <apinski@cavium.com>
3122
3123         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3124
3125 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3126
3127         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3128
3129 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
3130
3131         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3132
3133 2013-09-06  Pedro Alves <palves@redhat.com>
3134
3135         * remote-sim.c (dump_mem, gdbsim_fetch_register)
3136         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3137         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3138         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3139         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3140         gdb_stdlog.
3141
3142 2013-09-06  Pedro Alves  <palves@redhat.com>
3143
3144         * remote-sim.c (dump_mem): Constify buf parameter.
3145         gdbsim_xfer_inferior_memory): Rename to ...
3146         (gdbsim_xfer_memory): ... this.  Adjust interface as
3147         target_xfer_partial helper.
3148         (gdbsim_xfer_partial): New function.
3149         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3150         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
3151
3152 2013-09-06  Pedro Alves  <palves@redhat.com>
3153
3154         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3155         host_address_to_string, and send debug output to gdb_stdlog.
3156
3157 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3158
3159         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3160         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3161         gdb_target_obs for cris target.
3162         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3163         (cris_gdbarch_init): Move calls to
3164         set_gdbarch_fetch_tls_load_module_address and
3165         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3166         Add call to gdbarch_init_osabi.
3167         * cris-linux-tdep.c: New file.
3168         * cris-tdep.h: New file.
3169
3170 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
3171
3172         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3173         to deprecated_init_ui_hook.
3174
3175 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
3176
3177         * cli/cli-interp.c (_initialize_cli_interp): Add a
3178         command_loop_proc to interp_procs.
3179         * event-top.c (cli_command_loop): Change signature to match
3180         interp_command_loop_ftype.
3181         * event-top.h (cli_command_loop): Same.
3182         * interps.c (interp_new): Require every interpreter to have a
3183         command_loop_proc.
3184         (current_interp_command_loop): Just call the command_loop_proc on
3185         the current interpreter.
3186         * tui/tui-interp.c (_initialize_tui_interp): Add a
3187         command_loop_proc to interp_procs.
3188
3189 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3190
3191         * cris-tdep.c (cris_gdbarch_init): Add call to
3192         get_gdbarch_fetch_tls_load_module_address.
3193
3194 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3195
3196         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3197         (cris_elf_gregset_t): Rename from elf_gregset_t.
3198         (crisv32_elf_gregset_t): Adjust.
3199         (cris_supply_gregset, fetch_core_registers): Adjust.
3200
3201 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3202
3203         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3204
3205 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
3206
3207         * defs.h (deprecated_command_loop_hook): Remove, including
3208         references in comments.
3209         * interps.c (current_interp_command_loop): No longer use
3210         deprecated_command_loop_hook.
3211         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3212         setup.
3213         * top.c (deprecated_command_loop_hook): Remove.
3214
3215 2013-09-05  Pedro Alves  <palves@redhat.com>
3216
3217         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3218         local is now int instead of ULONGEST.  Print it with %d
3219         instead of paddress.
3220
3221 2013-09-05  Tristan Gingold  <gingold@adacore.com>
3222
3223         * MAINTAINERS: Remove avr maintainership.
3224
3225 2013-09-05  Pedro Alves  <palves@redhat.com>
3226
3227         * findvar.c (value_of_register): Rework in terms of
3228         value_of_register_lazy.
3229
3230 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
3231
3232         * symfile.c (add_symbol_file_command): Remove trailing
3233          whitespaces and blank line after comment.
3234
3235 2013-09-05  Pedro Alves  <palves@redhat.com>
3236
3237         * tui/tui-regs.c (tui_register_format): Don't look at the
3238         register's name here.  Return string representing register
3239         value instead of storing it in the data element.
3240         (tui_get_register): Compare register string representations
3241         instead of register value states and contents.
3242
3243 2013-09-05  Pedro Alves  <palves@redhat.com>
3244
3245         PR tui/15933
3246         * tui/tui-regs.c (tui_show_registers): Show registers of the
3247         selected frame, not the current frame.
3248
3249 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
3250
3251         * MAINTAINERS (Write After Approval): Add myself to the list.
3252
3253 2013-09-04  Doug Evans  <dje@google.com>
3254
3255         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3256         (queue_and_load_dwo_tu): New function.
3257         (lookup_dwo_signatured_type): Set per_cu.tu_read.
3258         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3259         Make dependent_cu optional.
3260         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3261         and an older .gdb_index is in use, queue and load all its TUs too.
3262
3263 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3264
3265         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3266         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3267         variable search_flags.
3268         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3269         (OPF_RETURN_REALPATH): ... here.
3270         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3271         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3272         call.  Twice.
3273         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3274         openp call.
3275         * solib.c (solib_find): Likewise.  Four times.
3276         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3277         in the function comment and for the realpath_fptr variable.
3278         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3279         (find_and_open_source): Likewise.  Twice.
3280         * symfile.c (symfile_bfd_open): Likewise, also twice.
3281
3282 2013-09-04  Doug Evans  <dje@google.com>
3283
3284         * progspace.c (save_current_space_and_thread): Remove unnecessary
3285         call to save_current_inferior.
3286
3287 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
3288
3289         * sh64-tdep.c (sh64_do_register): Return after printing message
3290         about unavailable register contents.
3291
3292 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
3293             Pedro Alves  <palves@redhat.com>
3294
3295         * symfile.c (add_symbol_file_command): Error out on unknown
3296         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3297         options and collapse into single conditional branch.
3298
3299 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
3300
3301         * inf-child.c (inf_child_follow_fork): New parameter
3302         detach_fork.
3303         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3304         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3305         * inferior.h (detach_fork): Remove.
3306         * infrun.c (detach_fork): Adjust comment and make it
3307         static.
3308         (follow_fork): Pass detach_fork parameter to
3309         target_follow_fork.
3310         * linux-nat.c (linux_child_follow_fork): New parameter
3311         detach_fork.
3312         * target.c (target_follow_fork): New parameter detach_fork.
3313         Pass detach_fork as parameter and print its value.
3314         * target.h (struct target_ops) <to_follow_fork>: New int
3315         parameter.
3316         (target_follow_fork): New parameter detach_fork.
3317
3318 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
3319
3320         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3321         Replace sec->bfd by sec->the_bfd_section->owner.
3322
3323 2013-09-03  Yao Qi  <yao@codesourcery.com>
3324
3325         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
3326         from linux_has_shared_address_space.
3327         (linux_has_shared_address_space): Call linux_is_uclinux.
3328         * linux-tdep.h (linux_is_uclinux): Declare.
3329         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3330         linux_is_uclinux.
3331
3332 2013-09-03  Yao Qi  <yao@codesourcery.com>
3333
3334         * config/djgpp/fnchange.lst: Remove entry of
3335         i386-interix-nat.c and i386-interix-tdep.c.
3336         * configure.ac: Remove '*-*-interix*'.
3337         * configure: Re-generated.
3338         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3339         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3340         obsolete comments.
3341         * osabi.c (gdb_osabi_names): Remove "Interix".
3342
3343 2013-09-03  Yao Qi  <yao@codesourcery.com>
3344
3345         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3346
3347 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
3348
3349         * record.h (record_print_flag) <record_print_src_line,
3350         record_print_insn_range>: Rename into ...
3351         (record_print_flag) <record_print_src_line,
3352         record_print_insn_range>: ... this.  Update all users.
3353
3354 2013-09-02  Pierre Muller  <muller@sourceware.org>
3355
3356         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3357         error code.
3358
3359 2013-09-02  Pierre Muller  <muller@sourceware.org>
3360
3361         * windows-nat.c (windows_xfer_memory): Fix compilation failure
3362         by use of plongest function.
3363
3364 2013-09-02  Tristan Gingold  <gingold@adacore.com>
3365
3366         * NEWS: Add entry mentioning support for native Windows x64
3367         SEH data.
3368
3369         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3370         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3371         (struct amd64_windows_frame_cache): New struct.
3372         (amd64_windows_w2gdb_regnum): New global.
3373         (pc_in_range, amd64_windows_frame_decode_epilogue)
3374         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3375         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3376         (amd64_windows_frame_this_id): New functions.
3377         (amd64_windows_frame_unwind): New static global.
3378         (amd64_windows_skip_prologue): New function.
3379         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3380         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3381         with amd64_windows_skip_prologue.
3382
3383 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
3384
3385         GDB 7.6.1 released.
3386
3387 2013-08-30  Pedro Alves  <palves@redhat.com>
3388
3389         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3390         SRC_AND_LOC.
3391
3392 2013-08-30  Pedro Alves  <palves@redhat.com>
3393
3394         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3395         warning text.
3396
3397 2013-08-30  Pedro Alves  <palves@redhat.com>
3398
3399         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3400         Adjust arguments to print_stack_frame.
3401
3402 2013-08-30  Pedro Alves  <palves@redhat.com>
3403
3404         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3405
3406 2013-08-30  Pedro Alves  <palves@redhat.com>
3407
3408         * frame.h (show_and_print_stack_frame): Delete declaration.
3409
3410 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
3411
3412         PR python/15461
3413         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3414         (archpy_name): Check for valid architecture.
3415         (archpy_disassemble): Ditto.
3416
3417 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
3418
3419         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3420         instead of "long long" in call to ptrace64.
3421
3422 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
3423
3424         * mi/mi-interp.c (mi_command_loop): Change signature to match
3425         interp_command_loop_ftype.
3426         (mi1_command_loop): Remove.
3427         (mi2_command_loop): Remove.
3428         (mi3_command_loop): Remove.
3429         (mi_interpreter_resume): Remove setting of
3430         deprecated_command_loop_hook.
3431         (_initialize_mi_interp): Set mi_command_loop as the command loop
3432         callback.
3433
3434 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
3435
3436         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3437         value_type.
3438
3439 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
3440
3441         * value.c (allocate_value_contents): Make static.
3442         * value.h (allocate_value_contents): Remove prototype.
3443
3444 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
3445
3446         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3447         of assembling value via allocate_value_lazy and attribute setter.
3448         * findvar.c (default_read_var_value): Use value_at_lazy instead of
3449         assembling value via allocate_value_lazy and attribute setter.
3450         * valops.c (do_search_struct_field): Use value_at_lazy instead of
3451         assembling value via allocate_value_lazy and attribute setter.
3452
3453 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
3454
3455         * value.c (value_from_contents_and_address): Replace allocate_value and
3456         memcpy with value_from_contents.
3457
3458 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
3459
3460         * python/py-framefilter.c (py_print_frame): Remove usage of
3461         PyString_AsString.  Use python_string_to_host_string instead.
3462         Refactor function to work with a string as a new allocation
3463         instead of a pointer.
3464         (py_print_frame): Ditto.
3465         * python/lib/gdb/frames.py (return_list): Cain iterators together
3466         instead of adding them as a list.
3467         (_sort_list): Call return_list, and remove duplicate code.
3468         (execute_frame_filters): Convert iterator to a list with list().
3469         * python/lib/gdb/command/frame_filters.py
3470         (SetFrameFilterPriority._set_filter_priority): Convert priority
3471         attribute to an integer.
3472         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3473         wrapper function __next__.
3474         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3475         define as "str".
3476
3477 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
3478
3479         PR python/15752
3480         * python/py-framefilter.c (apply_frame_filter): Check
3481         gdb_python_initialized.  Exit if the Python frame-filter code
3482         cannot be initialized.
3483
3484 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
3485
3486         PR cli/15842
3487         * top.c (print_gdb_version): Remove erroneous newline after help
3488         text.
3489
3490 2013-08-29  Yao Qi  <yao@codesourcery.com>
3491
3492         * varobj.c (install_dynamic_child): Remove trailing space.
3493         Add one blank line after variable declaration.
3494
3495 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3496
3497         PR gdb/15415
3498         * corefile.c (get_exec_file): Use exec_filename.
3499         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
3500         * exec.c (exec_close): Free EXEC_FILENAME.
3501         (exec_file_attach): New variable canonical_pathname.  Use
3502         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
3503         EXEC_FILENAME.
3504         * exec.h (exec_filename): New.
3505         * inferior.c (print_inferior, inferior_command): Use
3506         PSPACE_EXEC_FILENAME.
3507         * mi/mi-main.c (print_one_inferior): Likewise.
3508         * progspace.c (clone_program_space, print_program_space): Likewise.
3509         * progspace.h (struct program_space): New field pspace_exec_filename.
3510         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
3511         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3512
3513 2013-08-28  Will Newton  <will.newton@linaro.org>
3514
3515         * common/linux-ptrace.c: Include stdint.h unconditionally.
3516
3517 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3518
3519         Code cleanup.
3520         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3521
3522 2013-08-28  Yao Qi  <yao@codesourcery.com>
3523             Pedro Alves  <palves@redhat.com>
3524
3525         * event-top.c (gdb_setup_readline): Call stderr_fileopen
3526         instead of stdio_fileopen.
3527         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3528         .Call stderr_fileopen instead of stdio_fileopen.
3529         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3530         [__MINGW32__] (stderr_file_fputs): New function.
3531         (stderr_fileopen): New function.
3532         * ui-file.h (stderr_fileopen): Declare.
3533
3534 2013-08-27  Doug Evans  <dje@google.com>
3535
3536         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3537         (struct dwarf2_per_cu_data): Ditto.
3538         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
3539         (process_imported_unit_die): Ditto.
3540         (follow_die_sig_1): Simplify assert.
3541
3542 2013-08-27  Pedro Alves  <palves@redhat.com>
3543
3544         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3545         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
3546         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3547         windows_xfer_memory directly.
3548         (init_windows_ops): Don't install a deprecated_xfer_memory method.
3549
3550 2013-08-27  Pedro Alves  <palves@redhat.com>
3551
3552         * darwin-nat.c (darwin_xfer_memory): Delete.
3553         (_initialize_darwin_inferior): Don't install a
3554         deprecated_xfer_memory method.
3555
3556 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
3557             Yao Qi  <yao@codesourcery.com>
3558
3559         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3560         (parse_no_frames_option): Remove.
3561         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3562         (mi_cmd_stack_list_args): Adjust.
3563         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3564         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
3565         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3566         Caller update.
3567         (list_args_or_locals): New parameter 'skip_unavailable'.
3568         Handle it.
3569         * valprint.c (scalar_type_p): Rename to ...
3570         (val_print_scalar_type_p): ... this.  Make extern.
3571         (val_print, value_check_printable): Adjust.
3572         * valprint.h (val_print_scalar_type_p): Declare.
3573         * value.c (value_entirely_unavailable): New function.
3574         * value.h (value_entirely_unavailable): Declare.
3575
3576         * NEWS: Mention the new option "--skip-unavailable" to MI
3577         commands '-stack-list-locals', '-stack-list-arguments' and
3578         '-stack-list-variables'.
3579
3580 2013-08-27  Yao Qi  <yao@codesourcery.com>
3581
3582         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3583         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3584         options.
3585         * mi/mi-getopt.c (mi_getopt): Remove.
3586         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
3587         'error_on_unknown'.
3588         (mi_getopt): Call mi_getopt_1.
3589         (mi_getopt_silent): New.
3590         * mi/mi-getopt.h (mi_getopt_silent): Declare.
3591
3592 2013-08-26  Doug Evans  <dje@google.com>
3593
3594         PR symtab/15885
3595         * dwarf2read.c (dw2_dump): Print some minimal information indicating
3596         .gdb_index is in use.
3597         * symfile.c (reread_symbols): Reset objfile->sf.
3598
3599         * NEWS: Document "mt print objfiles" now takes optional regexp.
3600         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3601         regexp of objfiles to print.
3602         (_initialize_symmisc): Update doc string for "mt print objfiles".
3603
3604         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3605         missing debug info checks.
3606
3607 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
3608             Ulrich Weigand  <uweigand@de.ibm.com>
3609
3610         * xcoffread.c (arrange_linetable): Add fix to correctly handle
3611         line tables generated by XLC compiled binaries.
3612
3613 2013-08-23  Doug Evans  <dje@google.com>
3614
3615         * symmisc.c (dump_symtab): Delete prototype.
3616         (dump_msymbols, dump_objfile): Ditto.
3617         (maintenance_info_symtabs): Mark as dont_repeat.
3618         (_initialize_symmisc): Improve doc string for "mt info symtabs".
3619
3620         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3621         debugging printf to better location.
3622
3623 2013-08-23  Pedro Alves  <palves@redhat.com>
3624
3625         * target.c (target_read_live_memory): Change type of 'ret' local
3626         to LONGEST.
3627
3628 2013-08-23  Pedro Alves  <palves@redhat.com>
3629
3630         * remote.c (remote_write_bytes_aux, remote_write_bytes)
3631         (remote_read_bytes): Change return type to LONGEST, and adjust to
3632         return a target_xfer_error on error.
3633         (remote_xfer_memory): Delete.
3634         (remote_flash_write): Change type of 'ret' local to LONGEST.
3635         (remote_xfer_partial, remote_xfer_partial): Adjust.
3636         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3637
3638 2013-08-23  Pierre Muller  <muller@sourceware.org>
3639
3640         ARI fix: Push # directives to start of line.
3641         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3642
3643 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
3644
3645         PR gdb/15501
3646         * breakpoint.c (enable_command, disable_command): Iterate over
3647         all specified breakpoint locations.
3648
3649 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
3650
3651         * common/linux-ptrace.c (linux_fork_to_function): Push #
3652         directives to the start of the line.
3653         (linux_check_ptrace_features): Fix warning message to use
3654         the "_" markup.
3655
3656 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
3657
3658         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3659         nat/linux-waitpid.h.
3660         (linux-waitpid.o): New object file rule.
3661         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3662         (current_ptrace_options): Moved from linux-nat.c.
3663         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3664         parameters.
3665         (linux_fork_to_function): New function.
3666         (linux_grandchild_function): Likewise.
3667         (linux_child_function): Likewise.
3668         (linux_check_ptrace_features): New function, heavily
3669         based on linux-nat.c:linux_test_for_tracefork.
3670         (linux_enable_event_reporting): New function.
3671         (ptrace_supports_feature): Likewise.
3672         (linux_supports_tracefork): Likewise.
3673         (linux_supports_traceclone): Likewise.
3674         (linux_supports_tracevforkdone): Likewise.
3675         (linux_supports_tracesysgood): Likewise.
3676         * common/linux-ptrace.h (HAS_NOMMU): Moved from
3677         gdbserver/linux-low.c.
3678         (linux_enable_event_reporting): New declaration.
3679         (linux_supports_tracefork): Likewise.
3680         (linux_supports_traceclone): Likewise.
3681         (linux_supports_tracevforkdone): Likewise.
3682         (linux_supports_tracesysgood): Likewise.
3683         * config.in (PTRACE_TYPE_ARG4): Regenerate.
3684         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3685         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3686         * config/arm/linux.mh (NATDEPFILES): Likewise.
3687         * config/i386/linux.mh (NATDEPFILES): Likewise.
3688         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3689         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3690         * config/m32r/linux.mh (NATDEPFILES): Likewise.
3691         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3692         * config/mips/linux.mh (NATDEPFILES): Likewise.
3693         * config/pa/linux.mh (NATDEPFILES): Likewise..
3694         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3695         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3696         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3697         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3698         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3699         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3700         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3701         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3702         ptrace's 4th argument's types.
3703         Check the type of PTRACE_TYPE_ARG4.
3704         * configure: Regenerate.
3705         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3706         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3707         (linux_supports_tracefork_flag): Remove.
3708         (linux_supports_tracesysgood_flag): Likewise.
3709         (linux_supports_tracevforkdone_flag): Likewise.
3710         (current_ptrace_options): Moved to
3711         common/linux-ptrace.c.
3712         (linux_tracefork_child): Remove.
3713         (my_waitpid): Remove.
3714         (linux_test_for_tracefork): Renamed to
3715         linux_check_ptrace_features and moved to common/linux-ptrace.c.
3716         (linux_test_for_tracesysgood): Remove.
3717         (linux_supports_tracesysgood): Remove.
3718         (linux_supports_tracefork): Remove.
3719         (linux_supports_tracevforkdone): Remove.
3720         (linux_enable_tracesysgood): Remove.
3721         (linux_enable_event_reporting): Remove.
3722         (linux_init_ptrace): New function.
3723         (linux_child_post_attach): Call linux_init_ptrace.
3724         (linux_child_post_startup_inferior): Call linux_init_ptrace.
3725         (linux_child_follow_fork): Call linux_supports_tracefork
3726         and linux_supports_tracevforkdone.
3727         (linux_child_insert_fork_catchpoint): Call
3728         linux_supports_tracefork.
3729         (linux_child_insert_vfork_catchpoint): Likewise.
3730         (linux_child_set_syscall_catchpoint): Call
3731         linux_supports_tracesysgood.
3732         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3733         * nat/linux-nat.h: New file.
3734         * nat/linux-waitpid.c: New file.
3735         * nat/linux-waitpid.h: New file.
3736
3737 2013-08-22  Samuel Bronson  <naesten@gmail.com>
3738
3739         ARM Linux support for `catch syscall'.
3740         * syscalls/arm-linux.py: New file.
3741         * syscalls/arm-linux.xml: Likewise.
3742         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3743         (arm_linux_init_abi): Register the new function and syscall xml file.
3744         * data-directory/Makefile.in: Install the new syscall xml file.
3745         * NEWS: Brag about this.
3746
3747 2013-08-22  Pedro Alves  <palves@redhat.com>
3748
3749         PR gdb/15871
3750         * corefile.c (target_xfer_memory_error): New function.
3751         (memory_error): Defer EIO to target_memory_error.
3752         (read_memory): Use target_xfer_partial, and handle finer-grained
3753         target xfer errors.
3754         * target.c (target_xfer_error_to_string): New function.
3755         (memory_xfer_partial_1): If memory is known to be
3756         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3757         (target_xfer_partial): Make extern.
3758         * target.h (enum target_xfer_error): New enum.
3759         (target_xfer_error_to_string): Declare function.
3760         (target_xfer_partial): Declare function.
3761         (struct target_ops) <xfer_partial>: Adjust describing comment.
3762
3763 2013-08-22  Alan Modra  <amodra@gmail.com>
3764
3765         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3766         * configure.tgt: Likewise as targets.
3767
3768 2013-08-20  Doug Evans  <dje@google.com>
3769
3770         * buildsym.c (subfile_stack): Move here from buildsym.h.
3771         (pending_macros): Ditto.
3772         (get_macro_table): New function.
3773         (buildsym_init): Initialize subfile_stack.
3774         * coffread.c (type_vector,type_vector_length): Moved here from
3775         buildsym.h.
3776         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3777         (coff_symtab_read): Use it.
3778         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3779         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3780         with call to get_macro_table.
3781         * stabsread.c (type_vector,type_vector_length): Moved here from
3782         buildsym.h.
3783         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3784         * buildsym.h (get_macro_table): Declare.
3785
3786 2013-08-20  Tom Tromey  <tromey@redhat.com>
3787
3788         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3789         Update.
3790         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
3791
3792 2013-08-20  Doug Evans  <dje@google.com>
3793
3794         * blockframe.c: Remove #include "psymtab.h".
3795         * cp-support.c: Ditto.
3796         * source.c: Ditto.
3797         * stack.c: Ditto.
3798
3799 2013-08-20  Tom Tromey  <tromey@redhat.com>
3800
3801         PR python/15816:
3802         * exceptions.h (return_mask): Now an enum.
3803         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3804         enum constants.
3805
3806 2013-08-20  Tom Tromey  <tromey@redhat.com>
3807
3808         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3809         get_objfile_arch.
3810         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3811         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3812         * jit.c (jit_object_close_impl): Update.
3813         * jv-lang.c (get_dynamics_objfile): Update.
3814         * linespec.c (add_minsym): Use get_dynamics_objfile.
3815         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3816         (allocate_objfile): Don't initialize 'gdbarch' field.
3817         (get_objfile_arch): Update.
3818         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3819         moved from...
3820         (struct objfile) <gdbarch>: ... here.  Remove.
3821         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3822         get_objfile_arch.
3823         * symfile.c (init_entry_point_info): Use get_objfile_arch.
3824
3825 2013-08-20  Alan Modra  <amodra@gmail.com>
3826
3827         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3828         for IBM long double nan and inf.
3829         (floatformat_is_negative, floatformat_classify,
3830         floatformat_mantissa): Similarly.
3831         (floatformat_ieee_single, floatformat_ieee_double,
3832         floatformat_ieee_quad, floatformat_arm_ext,
3833         floatformat_ia64_spill): Delete unused vars.
3834         (_initialize_doublest): Delete unused function.
3835         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3836         little-endian variants of floatformat_ibm_long_double.
3837
3838 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
3839
3840         * Makefile.in (SFILES): Remove common/target-common.c and
3841         add target/waitstatus.c.
3842         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3843         target/resume.h, target/wait.h and target/waitstatus.h.
3844         (COMMON_OBS): Remove target-common.o and add
3845         waitstatus.o.
3846         (target-common.o): Remove.
3847         (waitstatus.o): New target object file.
3848         * common/target-common.c: Move contents to
3849         target/waitstatus.c and remove.
3850         * common/target-common.h: Move contents to other files and
3851         remove.
3852         (enum resume_kind: Move to target/resume.h.
3853         (TARGET_WNOHANG): Move to target/wait.h.
3854         (enum target_waitkind): Move to target/waitstatus.h.
3855         (struct target_waitstatus): Likewise.
3856         * target.h: Do not include target-common.h and
3857         include target/resume.h, target/wait.h and
3858         target/waitstatus.h.
3859         * target/resume.h: New file.
3860         * target/wait.h: New file.
3861         * target/waitstatus.h: New file.
3862         * target/waitstatus.c: New file.
3863
3864 2013-08-19  Pedro Alves  <palves@redhat.com>
3865
3866         * linux-nat.c (linux_test_for_tracefork)
3867         (linux_test_for_tracesysgood, linux_child_follow_fork)
3868         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3869         (linux_nat_wait_1): Extend comment.
3870         (linux_async_pipe): Add comment.
3871
3872 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
3873
3874         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3875         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3876         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3877         Update to account for fact that PC is now a pseudo-register.
3878         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
3879         cases for RL78_PC_REGNUM.
3880
3881 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
3882
3883         PR cli/15841
3884         * top.c (quit_force): Skip writing history file
3885         if input is not from terminal.
3886
3887 2013-08-14  Tom Tromey  <tromey@redhat.com>
3888
3889         * remote.c (struct remote_state) <echo_nextthread, nextthread,
3890         resultthreadlist>: New fields.
3891         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3892         (remote_get_threadlist, remote_threadlist_iterator): Use
3893         new fields.  Remove static variables.
3894
3895 2013-08-14  Tom Tromey  <tromey@redhat.com>
3896
3897         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3898         remote_watch_data_address>: New fields.
3899         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3900         (process_stop_reply, remote_wait_as)
3901         (remote_check_watch_resources, remote_stopped_data_address): Update.
3902
3903 2013-08-14  Tom Tromey  <tromey@redhat.com>
3904
3905         * remote.c (struct remote_state) <async_client_callback,
3906         async_client_context>: New fields.
3907         (async_client_callback, async_client_context): Remove.
3908         (remote_async_serial_handler, remote_async): Update.
3909
3910 2013-08-14  Tom Tromey  <tromey@redhat.com>
3911
3912         * remote.c (sizeof_pkt): Remove.
3913         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3914
3915 2013-08-14  Tom Tromey  <tromey@redhat.com>
3916
3917         * remote.c (struct remote_state) <use_threadinfo_query,
3918         use_threadextra_query>: New fields.
3919         (remote_threads_info, remote_threads_extra_info)
3920         (remote_open_1): Update.
3921
3922 2013-08-14  Tom Tromey  <tromey@redhat.com>
3923
3924         * remote.c (struct remote_state) <finished_object,
3925         finished_annex, finished_offset>: New fields.
3926         (remote_read_qxfer): Use remote_state fields; remove static
3927         variables.
3928
3929 2013-08-14  Tom Tromey  <tromey@redhat.com>
3930
3931         * remote.c (struct remote_state) <last_sent_step>:
3932         New field.
3933         (last_sent_step): Remove.
3934         (remote_resume, remote_wait_as): Update.
3935
3936 2013-08-14  Tom Tromey  <tromey@redhat.com>
3937
3938         * remote.c (struct remote_state) <last_sent_signal>:
3939         New field.
3940         (last_sent_signal): Remove.
3941         (new_remote_state, remote_resume, remote_wait_as): Update.
3942
3943 2013-08-14  Tom Tromey  <tromey@redhat.com>
3944
3945         * remote.c (struct remote_state) <last_program_signals_packet>:
3946         New field.
3947         (last_program_signals_packet): Remove.
3948         (remote_program_signals, remote_open_1): Update.
3949
3950 2013-08-14  Tom Tromey  <tromey@redhat.com>
3951
3952         * remote.c (struct remote_state) <last_pass_packet>:
3953         New field.
3954         (last_pass_packet): Remove.
3955         (remote_pass_signals, remote_open_1): Update.
3956
3957 2013-08-14  Tom Tromey  <tromey@redhat.com>
3958
3959         * remote.c (struct remote_state) <remote_traceframe_number>:
3960         New field.
3961         (remote_traceframe_number): Remove.
3962         (new_remote_state, remote_open_1, set_remote_traceframe)
3963         (remote_trace_find): Update.
3964
3965 2013-08-14  Tom Tromey  <tromey@redhat.com>
3966
3967         * remote.c (struct remote_state) <general_thread, continue_thread>:
3968         New fields.
3969         (general_thread, continue_thread): Remove.
3970         (record_currthread, set_thread, set_general_process)
3971         (remote_open_1, extended_remote_attach_1, remote_wait_as)
3972         (extended_remote_mourn_1): Update.
3973
3974 2013-08-14  Tom Tromey  <tromey@redhat.com>
3975
3976         * remote.c (struct remote_state) <remote_desc>: New field.
3977         (remote_desc): Remove.
3978         (remote_threads_info, remote_threads_extra_info, remote_close)
3979         (send_interrupt_sequence, remote_start_remote, remote_open_1)
3980         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3981         (remote_hostio_send_command, remote_file_put, remote_file_get)
3982         (remote_file_delete, remote_can_async_p, remote_is_async_p)
3983         (remote_async, remote_new_objfile, set_range_stepping): Update.
3984
3985 2013-08-14  Tom Tromey  <tromey@redhat.com>
3986
3987         * remote.c (remote_state): Now a pointer.
3988         (get_remote_state_raw): Update.
3989         (new_remote_state): New function.
3990         (_initialize_remote): Use new_remote_state.
3991
3992 2013-08-14  Tom Tromey  <tromey@redhat.com>
3993
3994         * remote.c (remote_protocol_features): Now const.
3995
3996 2013-08-14  Tom Tromey  <tromey@redhat.com>
3997
3998         * remote.c (crc32_table, crc32): Remove.
3999         (remote_verify_memory): Use xcrc32.
4000
4001 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
4002
4003         * value.h (create_internalvar_type_lazy): Adjust prototype
4004         declaration.
4005
4006 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
4007
4008         * common/format.c (parse_format_string): Don't allow '#' flag for
4009         pointer arguments in format string.
4010
4011 2013-08-13  Pierre Muller  <muller@sourceware.org>
4012
4013         * utils.c (init_page_info): Only call tgetnum function
4014         if rl_get_screen_size did not return useful values.
4015
4016 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
4017
4018         PR breakpoints/15117
4019         * linespec.c (linespec_parse_basic): Check for convenience
4020         variable or history value while parsing.
4021
4022 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
4023
4024         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4025         AVR.
4026         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
4027         different signals between the generic Linux kernel implementation
4028         and AVR's.
4029         (avr_linux_gdb_signal_from_target): Delete.
4030         (avr_linux_gdb_signal_to_target): Delete.
4031         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4032
4033 2013-08-09  Doug Evans  <dje@google.com>
4034
4035         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4036         entries.
4037
4038 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
4039
4040         * linux-tdep.c: Define enum with generic signal numbers.
4041         (linux_gdb_signal_from_target): New function.
4042         (linux_gdb_signal_to_target): Likewise.
4043         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4044         methods to the functions above.
4045         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4046         (linux_gdb_signal_to_target): Likewise.
4047         * alpha-linux-tdep.c: Define new enum with signals different
4048         from generic Linux kernel.
4049         (alpha_linux_gdb_signal_from_target): New function.
4050         (alpha_linux_gdb_signal_to_target): Likewise.
4051         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4052         with the functions mentioned above.
4053         * avr-tdep.c: Define enum with differences between Linux kernel
4054         and AVR signals.
4055         (avr_linux_gdb_signal_from_target): New function.
4056         (avr_linux_gdb_signal_to_target): Likewise.
4057         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4058         the functions mentioned above.
4059         * sparc-linux-tdep.c: Define enum with differences between SPARC
4060         and generic Linux kernel signal numbers.
4061         (sparc32_linux_gdb_signal_from_target): New function.
4062         (sparc32_linux_gdb_signal_to_target): Likewise.
4063         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4064         to the functions defined above.
4065         * xtensa-linux-tdep.c: Define enum with differences between
4066         Xtensa and Linux kernel generic signals.
4067         (xtensa_linux_gdb_signal_from_target): New function.
4068         (xtensa_linux_gdb_signal_to_target): Likewise.
4069         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4070         to the functions defined above.
4071         * mips-linux-tdep.c: Define enum with differences between
4072         signals in MIPS and Linux kernel generic ones.
4073         (mips_gdb_signal_to_target): New function.
4074         (mips_gdb_signal_from_target): Redefine to use new enum, handle
4075         only different signals from the Linux kernel generic.
4076         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4077         the functions defined above.
4078         * mips-linux-tdep.h (enum mips_signals): Remove.
4079
4080 2013-08-09  Pedro Alves  <palves@redhat.com>
4081
4082         * avr-tdep.c (XMALLOC): Delete macro.
4083         * cli/cli-dump.c (XMALLOC): Delete macro.
4084
4085 2013-08-09  Pedro Alves  <palves@redhat.com>
4086
4087         * cli/cli-dump.c: Don't include cli/cli-dump.h.
4088         (scan_expression_with_cleanup, scan_filename_with_cleanup)
4089         (fopen_with_cleanup, add_dump_command): Make static.
4090         * cli/cli-dump.h: Delete file.
4091         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4092         cli/cli-dump.h.
4093
4094 2013-08-09  Pedro Alves  <palves@redhat.com>
4095
4096         * tracepoint.c (tfile_start): Show tilde-expanded filename in
4097         error message.
4098
4099 2013-08-09  Pedro Alves  <palves@redhat.com>
4100
4101         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4102         error message.
4103
4104 2013-08-09  Pedro Alves  <palves@redhat.com>
4105
4106         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4107         (gcore_command): Use tilde_expand here, and when showing the
4108         filename to the user, show the expanded version.
4109
4110 2013-08-09  Yao Qi  <yao@codesourcery.com>
4111
4112         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4113         'entryval' is set.
4114
4115 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
4116
4117         * gcore.c (create_gcore_bfd): Use tilde_expand.
4118
4119 2013-08-08  Yao Qi  <yao@codesourcery.com>
4120
4121         * frame.h (read_frame_local): Declare.
4122         * mi/mi-cmd-stack.c (list_args_or_locals): Call
4123         read_frame_local.
4124         * stack.c (read_frame_local): New.
4125
4126 2013-08-08  Yao Qi  <yao@codesourcery.com>
4127
4128         * mi/mi-cmd-stack.c: Update comments to function
4129         list_args_or_locals.
4130
4131 2013-08-07  Tom Tromey  <tromey@redhat.com>
4132
4133         PR symtab/15028:
4134         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4135         (process_psymtab_comp_unit_reader): Use it.
4136         (process_psymtab_comp_unit): Update.  Add "pretend_language"
4137         argument.
4138         (dwarf2_build_psymtabs_hard): Update.
4139         (scan_partial_symbols): Pass CU's language to
4140         process_psymtab_comp_unit.
4141
4142 2013-08-07  Tom Tromey  <tromey@redhat.com>
4143
4144         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4145         (dwarf2_gdb_index_functions): Update.
4146         * psymtab.c (find_symbol_file_from_partial): Remove.
4147         (psym_functions): Update.
4148         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4149         Remove.
4150
4151 2013-08-07  Tom Tromey  <tromey@redhat.com>
4152
4153         * symfile.c (set_initial_language): Look up "main" symbol
4154         and use its language.
4155         * symtab.c (find_main_filename): Remove.
4156         * symtab.h (find_main_filename): Remove.
4157
4158 2013-08-07  Tom Tromey  <tromey@redhat.com>
4159
4160         * dwarf2read.c (recursively_compute_inclusions): Add
4161         "immediate_parent" argument.  Set symtab's "user" field
4162         if not set.
4163         (compute_symtab_includes): Update.
4164
4165 2013-08-07  Tom Tromey  <tromey@redhat.com>
4166
4167         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4168         when adding label symbols.
4169
4170 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4171             Ulrich Weigand  <uweigand@de.ibm.com>
4172
4173         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4174         * configure.host (powerpc64-*-aix*): Likewise.
4175
4176 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4177             Ulrich Weigand  <uweigand@de.ibm.com>
4178
4179         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4180         is defined.
4181         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4182         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4183         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4184         * configure.ac: Check for ptrace64.
4185         * configure, config.in: Regenerate.
4186
4187 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4188             Ulrich Weigand  <uweigand@de.ibm.com>
4189
4190         * aixthread.c: Call ptrace64 instead of ptracex if defined.
4191         Call ptrace64 instead of ptrace if defined.
4192         Add macro addr_ptr to take care of ptrace address argument.
4193         (pdc_read_regs): Likewise.
4194         (pdc_write_regs): Likewise.
4195         (aix_thread_resume): Likewise.
4196         (fetch_regs_kernel_thread): Likewise.
4197         (store_regs_kernel_thread): Likewise.
4198
4199 2013-08-07  Anton Blanchard  <anton@samba.org>
4200
4201         * MAINTAINERS: Add myself to Write After Approval.
4202
4203 2013-08-05  Tom Tromey  <tromey@redhat.com>
4204
4205         * aix-thread.c (_initialize_aix_thread): Use
4206         complete_target_initialization.
4207         * bsd-uthread.c (_initialize_bsd_uthread): Use
4208         complete_target_initialization.
4209         * dec-thread.c (_initialize_dec_thread): Use
4210         complete_target_initialization.
4211         * ravenscar-thread.c (_initialize_ravenscar): Use
4212         complete_target_initialization.
4213         * sol-thread.c (_initialize_sol_thread): Use
4214         complete_target_initialization.
4215         * spu-multiarch.c (_initialize_spu_multiarch): Use
4216         complete_target_initialization.
4217
4218 2013-08-05  Tom Tromey  <tromey@redhat.com>
4219
4220         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4221         * ada-lang.c (ada_lookup_simple_minsym): Return
4222         bound_minimal_symbol.
4223         * ada-lang.h (ada_lookup_simple_minsym): Update.
4224         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4225         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4226         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4227         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4228         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4229         * minsyms.c (msymbol_objfile): Remove.
4230         (lookup_minimal_symbol_internal): New function, from
4231         lookup_minimal_symbol.
4232         (lookup_minimal_symbol): Rewrite using
4233         lookup_minimal_symbol_internal.
4234         (lookup_bound_minimal_symbol): New function.
4235         * minsyms.h (msymbol_objfile): Remove.
4236         (lookup_bound_minimal_symbol): Declare.
4237         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4238         * parse.c (write_exp_msymbol): Change parameter to a
4239         bound_minimal_symbol.
4240         (write_dollar_variable): Use lookup_bound_minimal_symbol.
4241         * parser-defs.h (write_exp_msymbol): Update.
4242         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4243         * symfile.c (simple_read_overlay_table): Use
4244         lookup_bound_minimal_symbol.
4245         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4246         (search_symbols): Likewise.
4247         (print_msymbol_info): Take a bound_minimal_symbol argument.
4248         (symtab_symbol_info, rbreak_command): Update.
4249         * symtab.h (struct symbol_search) <msymbol>: Change type
4250         to bound_minimal_symbol.
4251         * valops.c (find_function_in_inferior): Use
4252         lookup_bound_minimal_symbol.
4253         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4254
4255 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4256
4257         Code cleanup.
4258         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4259         to ...
4260         (async_cleanup_sigint_signal_handler): ... this.
4261         (initialize_sigint_signal_handler): Remove declaration.
4262         (handle_remote_sigint): Rename the declaration to ...
4263         (async_handle_remote_sigint): ... this.
4264         (handle_remote_sigint_twice): Rename the declaration to ...
4265         (async_handle_remote_sigint_twice): ... this.
4266         (async_remote_interrupt, async_remote_interrupt_twice)
4267         (remote_interrupt): Remove the declarations.
4268         (remote_interrupt_twice): Rename the declaration ...
4269         (sync_remote_interrupt_twice): ... this.
4270         (sigint_remote_twice_token): Rename the variable to ...
4271         (async_sigint_remote_twice_token): ... this.
4272         (sigint_remote_token): Rename the variable to ...
4273         (async_sigint_remote_token): ... this.
4274         (initialize_sigint_signal_handler): Rename the function to ...
4275         (async_initialize_sigint_signal_handler): ... this.  Update the name
4276         inside.
4277         (handle_remote_sigint): Rename the function to ...
4278         (async_handle_remote_sigint): ... this.  Update the names inside.
4279         (handle_remote_sigint_twice): Rename the function to ...
4280         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
4281         (cleanup_sigint_signal_handler): Rename the function to ...
4282         (async_cleanup_sigint_signal_handler): ... this.
4283         (remote_interrupt): Rename the function to ...
4284         (sync_remote_interrupt): this.  Update the names inside.
4285         (remote_interrupt_twice): Rename the function to ...
4286         (sync_remote_interrupt_twice): this.  Update the names inside.
4287         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4288         (_initialize_remote): Update the names inside.
4289
4290 2013-08-02  Tom Tromey  <tromey@redhat.com>
4291
4292         PR symtab/15719:
4293         * breakpoint.c (update_watchpoint, watchpoint_check)
4294         (watch_command_1): Update.
4295         * eval.c (fetch_subexp_value): Add "preserve_errors"
4296         parameter.
4297         * ppc-linux-nat.c (check_condition): Update.
4298         * value.h (fetch_subexp_value): Update.
4299
4300 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
4301
4302         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4303         add_file_handler.
4304
4305 2013-08-01  Doug Evans  <dje@google.com>
4306
4307         PR symtab/15691
4308         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4309         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4310         Add assert of sig_entry->dwo_unit == NULL.
4311         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4312         had already been read.
4313         (read_signatured_type): Set per_cu.tu_read.
4314
4315         PR symtab/15695
4316         * valops.c (value_struct_elt): Add missing call to check_typedef.
4317         (value_find_oload_method_list): Ditto.
4318
4319         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4320         effectively, struct symbol_search **.
4321         (make_cleanup_free_search_symbols): Change arg to struct
4322         symbol_search **.  All callers updated.
4323         (compare_search_syms): Compare symtab file name and block as well.
4324         (search_symbols_equal): New function.
4325         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4326         New args new_head, new_tail.  Result is now void.  Remove dups after
4327         sorting the symbols.
4328         (search_symbols): Sort all found symbols once, after all have been
4329         found, and remove duplicates.  Simplify cleanup tracking of result.
4330         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4331
4332         Further workarounds for binutils/15021.
4333         * dwarf2read.c (recursively_compute_inclusions): Change type of result
4334         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
4335         Watch for duplicate symtabs coming from type units.
4336         (compute_symtab_includes): Update call to
4337         recursively_compute_inclusions. Build vector of included symtabs
4338         instead of per_cus.
4339         * symtab.h (symtab_ptr): New typedef.
4340         (DEF_VEC_P (symtab_ptr)): New VEC type.
4341         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
4342         instead.
4343
4344 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
4345
4346         * cli/cli-script.c (script_from_file): Remove use of
4347         error_pre_print.
4348         * main.c (captured_main): Remove use of error_pre_print and
4349         quit_pre_print.
4350         * utils.c (error_pre_print, quit_pre_print): Remove.
4351         * utils.h (error_pre_print, quit_pre_print): Likewise.
4352
4353 2013-08-01  Yao Qi  <yao@codesourcery.com>
4354
4355         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4356         with mi_getopt.
4357         (mi_cmd_stack_list_variables): Likewise.
4358
4359 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
4360
4361         * exceptions.c (deprecated_throw_reason): Remove.
4362         * exceptions.h (deprecated_throw_reason): Remove.
4363
4364 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
4365
4366         * remote-mips.c (mips_error): Replace use of
4367         deprecated_throw_reason with throw_verror.  Use the error message
4368         passed to mips_error as the error message for throw_verror.
4369
4370 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
4371
4372         * monitor.c (monitor_interrupt_query): Replace use of
4373         deprecated_throw_reason with quit.
4374         * nto-procfs.c (interrupt_query): Likewise.
4375         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4376         * remote-mips.c (mips_kill): Likewise.
4377         * remote.c (interrupt_query): Likewise.
4378
4379 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
4380
4381         * utils.c (internal_verror): Replace use of deprecated_throw_reason
4382         with call to fatal.
4383
4384 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
4385             Yao Qi  <yao@codesourcery.com>
4386
4387         * tracepoint.c (trace_dump_command): Select the current frame.
4388
4389 2013-07-30  Doug Evans  <dje@google.com>
4390
4391         * dwarf2read.c (process_queue): Add type signature to debug output.
4392
4393 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
4394
4395         * value.c (value_fetch_lazy): Mark optimized out values as such
4396         rather than raising an error.
4397
4398 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
4399
4400         * value.c (value_fetch_lazy): Ensure parent value is not lazy
4401         before checking which bits of the parent, not the child, value are
4402         valid.
4403
4404 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
4405
4406         PR gdb/15715
4407         * top.c: Include "filenames.h".
4408         (set_history_filename): New function.
4409         (init_main): Install it as set hook of the "set history filename"
4410         command.
4411
4412 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
4413
4414         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4415         attribute parameter.
4416         (dwarf2_const_value_data): Constify struct attribute parameter.
4417         (dwarf2_const_value): Constify struct attribute parameter.
4418         (dwarf2_const_value_attr): Constify struct attribute parameter.
4419         (lookup_die_type): Constify struct attribute parameter.
4420         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4421         (follow_die_ref_or_sig): Constify struct attribute parameter.
4422         (follow_die_ref): Constify struct attribute parameter.
4423         (follow_die_sig): Constify struct attribute parameter.
4424         (get_DW_AT_signature_type): Constify struct attribute parameter.
4425         (get_type_unit_group): Constify struct attribute parameter.
4426         (fill_in_loclist_baton): Constify struct attribute parameter.
4427         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4428         (type_unit_group): Constify struct attribute parameter.
4429
4430 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
4431
4432         * dwarf2read.c (attr_form_is_block): Make argument const.
4433         (attr_form_is_section_offset): Make argument const.
4434         (attr_form_is_constant): Make argument const.
4435         (attr_form_is_ref): Make argument const.
4436
4437 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
4438
4439         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4440         All uses updated.
4441         (attr_form_is_ref): Moved below attr_form_is_constant.
4442
4443 2013-07-29  Doug Evans  <dje@google.com>
4444
4445         * main.c (captured_command_loop): Tweak comment.
4446
4447         * target.c (target_async_permitted_1): Fix comment.
4448
4449         * symtab.c (iterate_over_some_symtabs): Add comment.
4450
4451         * symtab.c (iterate_over_some_symtabs): Fix indentation.
4452
4453 2013-07-27  Yao Qi  <yao@codesourcery.com>
4454
4455         * NEWS: Mention that GDBserver now supports hardware
4456         watchpoints on the MIPS GNU/Linux target.
4457
4458 2013-07-27  Yao Qi  <yao@codesourcery.com>
4459
4460         * Makefile.in (HFILES_NO_SRCDIR): Add
4461         common/mips-linux-watch.h.
4462         (mips-linux-watch.o): New rule.
4463         * common/mips-linux-watch.c: New.
4464         * common/mips-linux-watch.h: New.
4465         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4466         * mips-linux-nat.c: Include mips-linux-watch.h.
4467         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4468         to common/mips-linux-watch.h.
4469         (MAX_DEBUG_REGISTER): Likewise.
4470         (enum pt_watch_style): Likewise.
4471         (struct mips32_watch_regs): Likewise.
4472         (struct mips64_watch_regs): Likewise.
4473         (struct pt_watch_regs): Likewise.
4474         (struct mips_watchpoint): Likewise.
4475         (mips_linux_watch_get_irw_mask): Move to
4476         common/mips-linux-watch.c.
4477         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4478         (mips_linux_watch_get_watchlo): Likewise.
4479         (mips_linux_watch_set_watchlo): Likewise.
4480         (mips_linux_watch_get_watchhi): Likewise.
4481         (mips_linux_watch_set_watchhi): Likewise.
4482         (mips_linux_read_watch_registers): Likewise.
4483         (mips_linux_watch_type_to_irw): Likewise.
4484         (mips_linux_stopped_data_address, fill_mask): Likewise.
4485         (mips_linux_watch_try_one_watch): Likewise.
4486         (mips_linux_watch_populate_regs): Likewise.
4487
4488 2013-07-27  Yao Qi  <yao@codesourcery.com>
4489
4490         * mips-linux-nat.c (get_irw_mask): Rename to ...
4491         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
4492         'set' to 'n'.  Update function comment.  All callers changed.
4493         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
4494         function comment.  All callers changed.
4495         (get_num_valid): Rename to ...
4496         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
4497         'set' to 'n'.  Update function comment.  All callers changed.
4498         (get_watchlo): Rename to ...
4499         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
4500         'set' to 'n'.  Update function comment.  All callers changed.
4501         (set_watchlo): Rename to ...
4502         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
4503         'set' to 'n'.  Update function comment.  All callers changed.
4504         (get_watchhi): Rename to ...
4505         (mips_linux_watch_get_watchhi): ... this.  Update function
4506         comment.  All callers changed.
4507         (set_watchhi): Rename to ...
4508         (mips_linux_watch_set_watchhi): ... this.  Update function
4509         comment.  All callers changed.
4510         (mips_linux_read_watch_registers): Update function comment.
4511         Add new parameters 'lwpid', 'watch_readback', and
4512         'watch_readback_valid'.  Update.
4513         (type_to_irw): Rename to ...
4514         (mips_linux_watch_type_to_irw): ... this.  Update function
4515         comment.  All callers changed.
4516         (fill_mask): Update function comment.
4517         (try_one_watch): Rename to ...
4518         (mips_linux_watch_try_one_watch): ... this.  Change the type
4519         of parameter 'irw' from 'unsigned' to 'uint32_t'.
4520         (populate_regs_from_watches): Rename to ...
4521         (mips_linux_watch_populate_regs): ... this.  Add parameter
4522         'current_watches'.  All callers changed.
4523
4524 2013-07-27  Yao Qi  <yao@codesourcery.com>
4525
4526         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4527         the code.
4528         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4529         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4530         (struct pt_watch_regs): Likewise.
4531         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4532         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4533         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4534         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4535         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4536
4537 2013-07-27  Yao Qi  <yao@codesourcery.com>
4538
4539         * breakpoint.h: Include break-common.h.
4540         (enum target_hw_bp_type): Move to ...
4541         * common/break-common.h: ... here.  New.
4542
4543 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
4544
4545         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4546         process group regardless of having tty on stdin.
4547
4548 2013-07-25  Doug Evans  <dje@google.com>
4549
4550         * linux-fork.h (detach_fork): Delete.
4551
4552 2013-07-25  Tom Tromey  <tromey@redhat.com>
4553
4554         PR remote/15256, PR remote/15266:
4555         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4556         * monitor.c (monitor_detach): Use unpush_target.
4557         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4558         * remote-mips.c (mips_detach): Use unpush_target.  Don't
4559         call mips_close.
4560         * remote-sim.c (gdbsim_detach): Use unpush_target.
4561         * target.c (pop_target): Remove.
4562         (pop_all_targets_above): Don't call target_close.
4563         (target_close): Assert that the target is unpushed.
4564         * target.h (pop_target): Don't declare.
4565         * tracepoint.c (tfile_open): Use unpush_target.
4566
4567 2013-07-25  Tom Tromey  <tromey@redhat.com>
4568
4569         * linux-thread-db.c (init_thread_db_ops): Call
4570         complete_target_initialization.
4571         (_initialize_thread_db): Don't call add_target.
4572         * target.c (complete_target_initialization): New function.
4573         (add_target_with_completer): Call it.
4574         * target.h (complete_target_initialization): Declare.
4575
4576 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
4577
4578         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4579         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4580         (HPPANBSD_SIZEOF_GREGS): New define.
4581         (hppaobsd_supply_gregset): Handle additional registers.
4582         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4583         we provide more registers now.
4584         (hppabsd_supply_gregset): Supply additional registers.
4585         (hppabsd_collect_gregset): Collect additional registers.
4586
4587 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
4588
4589         * hppabsd-tdep.c: Include "dwarf2-frame.h".
4590         (hppabsd_dwarf2_frame_init_reg): New function.
4591         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4592
4593 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
4594
4595         * mi/mi-main.c (output_register): Make MI 'r' format use standard
4596         'z' format code.  Remove error for optimized out values, standard
4597         code will handle these fine.
4598
4599 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
4600
4601         * NEWS: Mention new 'z' formatter.
4602         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4603         (_initialize_printcmd): Mention 'z' formatter in help text of the
4604         'x' command.
4605
4606 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
4607
4608         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4609         formatting.
4610
4611 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
4612
4613         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4614         interface can evaluate arguments.  Fallback to the old mode if it
4615         cannot.
4616         (create_exception_master_breakpoint): Likewise.
4617         * elfread.c (elf_can_evaluate_probe_arguments): New function.
4618         (struct sym_probe_fns elf_probe_fns): Export function above to the
4619         probe interface.
4620         * probe.c (can_evaluate_probe_arguments): New function.
4621         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4622         function pointer.
4623         (can_evaluate_probe_arguments): New function prototype.
4624         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4625         probe interface can evaluate arguments.  Fallback to the old mode
4626         if it cannot.
4627         * stap-probe.c (stap_get_probe_argument_count): Check if probe
4628         interface can evaluate arguments.  Warning the user if it cannot.
4629         (stap_can_evaluate_probe_arguments): New function.
4630         (struct probe_ops stap_probe_ops): Export function above to the
4631         probe interface.
4632         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4633         New function pointer.
4634
4635 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
4636
4637         * Makefile.in (SFILES): Add common/target-common.c.
4638         Add common/target-common.h to headers.
4639         (COMMON_OBS): Add target-common.o.
4640         (target-common.o): New target.
4641         * linux-nat.h (resume_kind): Move to common/target-common.h.
4642         * target.c (target_waitstatus_to_string): Move to
4643         common/target-common.c.
4644         * target.h: Include target-common.h.
4645         (target_waitkind): Move to common/target-common.h.
4646         (target_waitstatus): Likewise.
4647         (TARGET_WNOHANG): Likewise.
4648         * common/target-common.c: New file.
4649         * common/target-common.h: New file.
4650
4651 2013-07-24  Doug Evans  <dje@google.com>
4652
4653         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4654         a warning.
4655
4656 2013-07-23  Yao Qi  <yao@codesourcery.com>
4657
4658         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4659         parameter 'gdbarch'.
4660         (i386_stack_tramp_frame_sniffer): Caller update.
4661         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4662         parameter 'gdbarch' and 'target'.
4663         (i386_linux_core_read_description): Caller update.
4664         * amd64-linux-tdep.c (amd64_linux_core_read_description):
4665         Likewise.
4666         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4667         declaration.
4668
4669 2013-07-23  Tom Tromey  <tromey@redhat.com>
4670
4671         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4672         2013-07-22.
4673
4674 2013-07-22  Doug Evans  <dje@google.com>
4675
4676         * exec.h (remove_target_sections): Delete arg abfd.
4677         * exec.c (exec_close): Update call to remove_target_sections.
4678         (remove_target_sections): Delete arg abfd.
4679         * solib.c (update_solib_list): Ditto.
4680         (reload_shared_libraries_1): Ditto.
4681         (clear_solib): Ditto, and unconditionally call remove_target_sections.
4682         * target.h (struct target_section): Rename key to owner.
4683         All uses updated.
4684
4685 2013-07-22  Tom Tromey  <tromey@redhat.com>
4686
4687         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4688
4689 2013-07-22  Tom Tromey  <tromey@redhat.com>
4690
4691         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4692         Simplify cleanup handling.
4693
4694 2013-07-22  Tom Tromey  <tromey@redhat.com>
4695
4696         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4697         on all return paths.
4698
4699 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4700
4701         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4702         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4703         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4704
4705 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4706
4707         * top.c (print_gdb_version): Add help, apropos description and
4708         url to online documentation.
4709
4710 2013-07-19  Hui Zhu  <hui@codesourcery.com>
4711
4712         PR gdb/15692
4713         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4714
4715 2013-07-19  Yao Qi  <yao@codesourcery.com>
4716
4717         * target.c (update_current_target): Change the default action
4718         of 'to_traceframe_info' from tcomplain to return_zero.
4719         * target.h (struct target_ops) <to_traceframe_info>: Add more
4720         comments.
4721         * valops.c (read_value_memory): Call
4722         traceframe_available_memory unconditionally.
4723
4724 2013-07-18  Yao Qi  <yao@codesourcery.com>
4725
4726         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4727         if the name is prefixed by "__imp_" or "_imp_", look for minimal
4728         symbol without prefix.  If found, set its type to
4729         'mst_solib_trampoline'.
4730
4731 2013-07-17  Doug Evans  <dje@google.com>
4732
4733         * NEWS: Mention "set print raw frame-arguments".
4734         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4735         * stack.c (print_raw_frame_arguments): New static global.
4736         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4737         (_initialize_stack): New command "set/show print raw frame-arguments".
4738         * valprint.c (setprintrawlist, showprintrawlist): New globals.
4739         (set_print_raw, show_print_raw): New functions.
4740         (_initialize_valprint): New prefix command "set/show print raw".
4741         * valprint.h (value_print_options): Improve comments.
4742
4743         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4744         of all *list variables.
4745
4746         * gdbcmd.h (togglelist): Delete.
4747         * cli/cli-cmds.c (togglelist): Delete.
4748         (init_cmd_lists): Update.
4749         * cli/cli-cmds.h (togglelist): Delete.
4750
4751 2013-07-17  Tom Tromey  <tromey@redhat.com>
4752
4753         * dwarf2read.c (dwarf2_per_objfile_free): Clear
4754         dwarf2_per_objfile.
4755
4756 2013-07-16  Doug Evans  <dje@google.com>
4757
4758         * nto-tdep.c (nto_relocate_section_addresses): Update,
4759         target_section.bfd deleted.
4760         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4761         * s390-tdep.c (s390_load): Ditto.
4762         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4763
4764 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
4765
4766         * common/format.c (parse_format_string): Add checks for NULL
4767         character before calling strchr.
4768
4769 2013-07-16  Doug Evans  <dje@google.com>
4770
4771         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4772         temp_pathname argument.
4773         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4774         when opening the file fails.
4775
4776         * target.h (struct target_section): Delete member bfd.
4777         All users updated to use the_bfd_section->owner instead.
4778         * exec.c (add_to_section_table): Assert bfd is expected value.
4779         Remove initialization of target_section.bfd.
4780         (remove_target_sections): Update.
4781         (section_table_available_memory): Update.
4782         (section_table_xfer_memory_partial): Update.
4783         (print_section_info): Update.
4784         (exec_set_section_address): Update.
4785         * record-full.c (record_full_core_xfer_partial): Update.
4786         * solib-svr4.c (svr4_relocate_section_addresses): Update.
4787         * solib-target.c (solib_target_relocate_section_addresses): Update.
4788         * symfile.c (build_section_addr_info_from_section_table): Update.
4789         * target.c (memory_xfer_live_readonly_partial): Update.
4790         (memory_xfer_partial_1): Update.
4791
4792 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4793
4794         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4795         now available for embedded (BookE) and server (BookS) processors,
4796         correct mentions of 'booke' and adjust comments accordingly in order to
4797         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4798         (have_ptrace_booke_interface): Rename function and variable
4799         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4800         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4801         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4802         'hwdebug_point_cmp'. Update all uses.
4803         (booke_find_thread_points_by_tid): Rename function
4804         'booke_find_thread_points_by_tid' to
4805         'hwdebug_find_thread_points_by_tid'. Update all uses.
4806         (booke_insert_point): Rename function 'booke_insert_point' to
4807         'hwdebug_insert_point'. Update all uses.
4808         (booke_remove_point): Rename function 'booke_remove_point' to
4809         'hwdebug_remove_point'. Update all uses.
4810
4811 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
4812
4813         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4814         numbers with enum values.
4815
4816 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
4817
4818         PR threads/13217
4819         * thread.c (thread_apply_all_command): Check for valid threads
4820         and thread count.
4821         (thread_array_cleanup): New struct.
4822         (set_thread_refcount): New function.
4823
4824 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
4825
4826         * infcmd.c (default_print_one_register_info): Reuse function
4827         print_hex_chars.
4828
4829 2013-07-10  Tom Tromey  <tromey@redhat.com>
4830
4831         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4832         (ada-exp.o): New target.
4833
4834 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
4835
4836         * mt-tdep.c (mt_registers_info): Call
4837         get_no_prettyformat_print_options instead of
4838         get_raw_print_options (regression by last patch from Doug
4839         Evans).
4840
4841 2013-07-09  Pedro Alves  <palves@redhat.com>
4842
4843         Checked in by Joel Brobecker  <brobecker@adacore.com>.
4844         * ada-lang.c (coerce_unspec_val_to_type): Use
4845         value_optimized_out_const.
4846         * value.c (value_optimized_out_const): New function.
4847         * value.h (value_optimized_out_const): New declaration.
4848
4849 2013-07-09  Doug Evans  <dje@google.com>
4850
4851         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4852         Enum values rename as well.  All uses updated.
4853         * valprint.h (value_print_options): Rename member pretty to
4854         pretty format.  Rename member prettyprint_arrays to
4855         prettyformat_arrays.  Rename member prettyprint_structs to
4856         prettyformat_structs.  All uses updated.
4857         (get_no_prettyformat_print_options): Renamed from
4858         get_raw_print_options.
4859         * valprint.c (get_no_prettyformat_print_options): Renamed from
4860         get_raw_print_options.  All callers updated.
4861         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4862         All callers updated.
4863         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4864         All callers updated.
4865         (_initialize_valprint): Improve help text for "set print pretty" and
4866         "set print arrays".
4867
4868 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
4869
4870         * value.c (value_bits_valid): Revert previous change, and change
4871         by Pedro on 2013-07-04, due to regressions in
4872         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4873
4874 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
4875             Pedro Alves  <palves@redhat.com>
4876
4877         * value.c (value_bits_valid): If the value is not lval_computed
4878         or has no check validity handler then the answer is the
4879         optimized_out flag, otherwise defer to the handler.
4880
4881 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
4882
4883         * top.c (print_gdb_configuration): Explain in output of
4884         --configuration what does "relocatable" mean.
4885
4886         * main.c (print_gdb_help): Regroup options in the --help text.
4887         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4888         the relevant discussions.
4889
4890 2013-07-06  Yao Qi  <yao@codesourcery.com>
4891
4892         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4893         Remove parameter 'lsal'.
4894         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4895         to inner block.  Caller update.
4896         (base_breakpoint_create_breakpoints_sal): Update.
4897         (bkpt_create_breakpoints_sal): Likewise.
4898         (tracepoint_create_breakpoints_sal): Likewise.
4899         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4900         element 0 of vector 'canonical->sals'.
4901
4902 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
4903
4904         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4905         register number instead of the pseudo register one.
4906         (rs6000_dwarf2_reg_to_regnum): Likewise.
4907
4908 2013-07-04  Pedro Alves  <palves@redhat.com>
4909
4910         * findvar.c (value_of_register): Use allocate_optimized_out_value
4911         if the register has been optimized out, instead of
4912         set_value_optimized_out.
4913         * frame-unwind.c (frame_unwind_got_optimized): Use
4914         allocate_optimized_out_value.
4915
4916 2013-07-04  Pedro Alves  <palves@redhat.com>
4917
4918         * value.c (value_bits_valid): If the value is not lval_computed,
4919         or doesn't have a check_validity hook, assume the value is entirely
4920         valid.
4921
4922 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
4923
4924         * stack.c (read_frame_arg): No longer fetch lazy values.
4925         * value.c (value_optimized_out): If the value is not already
4926         marked optimized out, and is lazy then fetch it.
4927         (value_primitive_field): Move optimized out check to later in the
4928         function, after we have loaded any lazy values.
4929         (value_fetch_lazy): Use optimized out flag directly rather than
4930         calling optimized_out method.
4931
4932 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
4933
4934         * valops.c: Don't include "user-regs.h".
4935         (value_fetch_lazy): Moved to value.c.
4936         * value.c: Include "user-regs.h".
4937         (value_fetch_lazy): Moved from valops.c.
4938
4939 2013-07-04  Yao Qi  <yao@codesourcery.com>
4940
4941         Revert:
4942         2013-06-27  Yao Qi  <yao@codesourcery.com>
4943
4944         * common/create-version.sh: Update comments.  Handle the case
4945         that TARGET_ALIAS is empty.
4946
4947 2013-07-03  Pedro Alves  <palves@redhat.com>
4948
4949         * Makefile.in (config.status): Depend on development.sh.
4950         (aclocal_m4_deps): Add libmcheck.m4.
4951         * acinclude.m4: Include libmcheck.m4.
4952         * configure.ac: Source development.sh instead of setting
4953         'development' here.  --enable-libmcheck/--disable-libmcheck code
4954         factored out to GDB_AC_LIBMCHECK.  Run it.
4955         * development.sh: New file.
4956         * libmcheck.m4: New file.
4957         * configure: Regenerate.
4958
4959 2013-07-02  Tom Tromey  <tromey@redhat.com>
4960
4961         * contrib/ari/update-web-ari.sh: Update for version.in change.
4962
4963 2013-07-02  Tom Tromey  <tromey@redhat.com>
4964
4965         * common/ptid.h: Comment fixes.
4966
4967 2013-07-01  Tom Tromey  <tromey@redhat.com>
4968
4969         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4970         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
4971         (dwarf2_read_index, create_all_comp_units): Update.
4972
4973 2013-07-01  Tom Tromey  <tromey@redhat.com>
4974
4975         * configure.ac (build_warnings): Add -Wold-style-definition.
4976         * configure: Rebuild.
4977         * machoread.c (_initialize_machoread): Use "(void)".
4978         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4979         use "(void)".
4980
4981 2013-07-01  Tom Tromey  <tromey@redhat.com>
4982
4983         * configure.ac (build_warnings): Add -Wold-style-declaration.
4984         * configure: Rebuild.
4985         * dsrec.c (make_srec): Use "static const", not "const static".
4986         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4987         not "const static".
4988         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4989         Use "static const", not "const static".
4990         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4991         not "const static".
4992         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4993         not "const static".
4994         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4995         not "const static".
4996         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4997         not "const static".
4998         (v850_dbtrap_breakpoint_from_pc): Likewise.
4999         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5000         not "const static".
5001
5002 2013-07-01  Tom Tromey  <tromey@redhat.com>
5003
5004         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5005         * configure: Rebuild.
5006
5007 2013-07-01  Pedro Alves  <palves@redhat.com>
5008
5009         * defs.h: Include "pathmax.h".
5010         * utils.c: Don't include sys/param.h.
5011         (gdb_realpath): Remove code that checks for MAXPATHLEN.
5012         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5013         instead of MAXPATHLEN.
5014         * solib-sunos.c: Don't include sys/param.h.
5015         * xcoffread.c: Don't include sys/param.h.
5016         * bsd-kvm.c: Don't include sys/param.h.
5017         * darwin-nat.c: Don't include sys/param.h.
5018         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5019         * darwin-nat-info.c: Don't include sys/param.h.
5020         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5021         MAXPATHLEN.
5022         * i386obsd-nat.c: Don't include sys/param.h.
5023         * inf-child.c: Don't include sys/param.h.
5024         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5025         * linux-fork.c: Don't include sys/param.h.
5026         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5027         * linux-nat.c: Don't include sys/param.h.
5028         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5029         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5030         * m68klinux-nat.c: Don't include sys/param.h.
5031         * nbsd-nat.c: Don't include sys/param.h.
5032         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5033         * ppc-linux-nat.c: Don't include sys/param.h.
5034         * rs6000-nat.c: Don't include sys/param.h.
5035         * spu-linux-nat.c. Don't include sys/param.h.
5036         * windows-nat.c: Don't include sys/param.h.
5037         * xtensa-linux-nat.c: Don't include sys/param.h.
5038         * config/i386/nm-fbsd.h: Don't include sys/param.h.
5039
5040 2013-07-01  Pedro Alves  <palves@redhat.com>
5041
5042         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5043         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5044         * gnulib/aclocal.m4: Regenerate.
5045         * gnulib/config.in: Regenerate.
5046         * gnulib/configure: Regenerate.
5047         * gnulib/import/pathmax.h: New file.
5048         * gnulib/import/Makefile.am: Regenerate.
5049         * gnulib/import/Makefile.in: Regenerate.
5050         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5051         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5052         * gnulib/import/m4/pathmax.m4: New file.
5053
5054 2013-07-01  Pedro Alves  <palves@redhat.com>
5055
5056         * configure.ac (GDBINIT): Define, depending on host.
5057         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5058         * top.c (PATH_MAX): Delete fallback definition.
5059         (GDBINIT_FILENAME): Delete.
5060         (gdbinit): Reimplement as const char array set to the GDBINIT
5061         string constant.
5062         * top.h (gdbinit): Make const.
5063         * configure, config.in: Regenerate.
5064
5065 2013-07-01  Pedro Alves  <palves@redhat.com>
5066
5067         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5068         * cli/cli-cmds.h (source_script): Likewise.
5069         * exceptions.c (catch_command_errors_const): New function.
5070         * exceptions.h (catch_command_errors_const): Declare.
5071         * main.c (get_init_files): Make parameters const, and adjust.
5072         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5073         'local_gdbinit' locals const.  Adjust to use
5074         catch_command_errors_const.
5075         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5076         'local_gdbinit' locals const.
5077
5078 2013-07-01  Pedro Alves  <palves@redhat.com>
5079
5080         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5081         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5082         * tracepoint.c: Don't check HAVE_UNISTD_H before including
5083         <unistd.h>.
5084
5085 2013-07-01  Pedro Alves  <palves@redhat.com>
5086
5087         Import the "unistd" gnulib module.
5088         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5089         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5090         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5091         import/m4/unistd_h.m4.
5092         * gnulib/aclocal.m4: Renenerate.
5093         * gnulib/config.in: Renenerate.
5094         * gnulib/configure: Renenerate.
5095         * gnulib/import/Makefile.am: Renenerate.
5096         * gnulib/import/Makefile.in: Renenerate.
5097         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5098         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5099         * gnulib/import/m4/off_t.m4: New file.
5100         * gnulib/import/m4/ssize_t.m4: New file.
5101         * gnulib/import/m4/sys_types_h.m4: New file.
5102         * gnulib/import/m4/unistd_h.m4: New file.
5103         * gnulib/import/sys_types.in.h: New file.
5104         * gnulib/import/unistd.c: New file.
5105         * gnulib/import/unistd.in.h: New file.
5106
5107 2013-07-01  Pedro Alves  <palves@redhat.com>
5108
5109         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5110         defined instead of checking HAVE_UNISTD_H.
5111
5112 2013-07-01  Pedro Alves  <palves@redhat.com>
5113
5114         Reimport gnulib from scratch.
5115         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5116         import/m4/onceonly.m4.
5117         * gnulib/aclocal.m4: Renegerate.
5118         * gnulib/config.in: Renegerate.
5119         * gnulib/configure: Renegerate.
5120         * gnulib/import/Makefile.in: Renegerate.
5121         * gnulib/import/extra/update-copyright: Renegerate.
5122         * gnulib/import/m4/onceonly.m4: Delete.
5123
5124 2013-07-01  Pedro Alves  <palves@redhat.com>
5125
5126         * tui/tui-regs.c (pagination_enabled): Delete declaration.
5127
5128 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
5129
5130         Code cleanup.
5131         * remote.c (async_remote_interrupt_twice): Make it static.
5132         * remote.h (async_remote_interrupt_twice): Remove the declaration.
5133
5134 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5135
5136         * ia64-linux-tdep.c: Include <ctype.h>.
5137         (ia64_linux_stap_is_single_operand): New function.
5138         (ia64_linux_init_abi): Initialize SystemTap related attributes.
5139
5140 2013-06-28  Tom Tromey  <tromey@redhat.com>
5141
5142         * Makefile.in (version.c): Use version.in, not
5143         common/version.in.
5144         * common/create-version.sh: Likewise.
5145         * common/version.in: Move...
5146         * version.in: ...here.
5147
5148 2013-06-28  Pedro Alves  <palves@redhat.com>
5149
5150         * infrun.c (set_observer_mode): Don't declare pagination_enabled
5151         here.
5152         * utils.h (pagination_enabled): Declare.
5153
5154 2013-06-28  Pedro Alves  <palves@redhat.com>
5155
5156         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5157         Move higher up in file.
5158
5159 2013-06-28  Tom Tromey  <tromey@redhat.com>
5160
5161         * tracepoint.c (deprecated_readline_begin_hook)
5162         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5163         declare.
5164
5165 2013-06-28  Pedro Alves  <palves@redhat.com>
5166
5167         PR tui/14880
5168         * tui/tui-regs.c (tui_get_register): Fetch value contents before
5169         checking if they're available.
5170         * value.c (value_available_contents_eq): Change comment.
5171         * value.h (value_available_contents_eq): Expand comment.
5172
5173 2013-06-27  Tom Tromey  <tromey@redhat.com>
5174
5175         * target.c (find_run_target): Remove.
5176         * target.h (find_run_target): Remove.
5177
5178 2013-06-27  Tom Tromey  <tromey@redhat.com>
5179
5180         * corelow.c (core_gdbarch): Now static.
5181
5182 2013-06-27  Tom Tromey  <tromey@redhat.com>
5183
5184         * target.c (target_struct_index): Remove.
5185
5186 2013-06-27  Pedro Alves  <palves@redhat.com>
5187
5188         * infrun.c: Remove comment describing the 'stepping over runtime
5189         loader dynamic symbol resolution code' mechanism; moved to
5190         gdbint.texinfo.
5191
5192 2013-06-27  Pedro Alves  <palves@redhat.com>
5193
5194         * exceptions.c (catch_command_errors): Remove spurious space.
5195         * exceptions.h (catch_command_errors): Second parameter is "arg",
5196         not "command".
5197
5198 2013-06-27  Yao Qi  <yao@codesourcery.com>
5199
5200         * common/create-version.sh: Update comments.  Handle the case
5201         that TARGET_ALIAS is empty.
5202
5203 2013-06-26  Pedro Alves  <palves@redhat.com>
5204
5205         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5206         comment.
5207
5208 2013-06-26  Pedro Alves  <palves@redhat.com>
5209
5210         * infrun.c: Update comments on stepping over runtime loader
5211         dynamic symbol resolution code.
5212
5213 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
5214
5215         * ax-gdb.h (union exp_element): Forward declare.
5216         * parser-defs.h: Include expression.h.
5217
5218 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5219
5220         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5221
5222 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
5223
5224         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5225
5226 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
5227
5228         Fix trace-status to output proper start-time and stop-time.
5229         * tracepoint.c (trace_status_command): Fix type of printf arg to
5230         prevent improper type conversion.
5231         (trace_status_mi): Likewise.
5232
5233 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5234
5235         * mips-tdep.c (mips_next_pc): Fix a typo.
5236
5237 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5238
5239         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5240
5241 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5242             Yao Qi  <yao@codesourcery.com>
5243
5244         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5245         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5246         * mi/mi-main.c (print_variable_or_computed): New function.
5247         (mi_cmd_trace_frame_collected): New function.
5248         * tracepoint.c (find_trace_state_variable_by_number): New.
5249         (struct traceframe_info): Move to tracepoint.h
5250         (struct collection_list): Likewise.
5251         (do_collect_symbol): Include locals and arguments in the
5252         collected variables list.
5253         (clear_collection_list): Clear wholly collected variables list
5254         and computed variables list.
5255         (append_exp): New function.
5256         (encode_actions_1): Include variables in the wholly
5257         collected variables list.  Include memory ranges and
5258         full-fledged expressions in the computed expressions list.
5259         (encode_actions): Move some code to ...
5260         Return the cleanup chain.
5261         (encode_actions_rsp): ... here.  New function.
5262         (get_traceframe_location, get_traceframe_info): Remove static.
5263         * tracepoint.h (struct memrange): Moved from tracepoint.c.
5264         (struct collection_list): Moved from tracepoint.c.  Add two
5265         new fields 'wholly_collected' and 'computed'.
5266         (find_trace_state_variable_by_number): Declare.
5267         (encode_actions): Adjust declaration.
5268         (encode_actions_rsp): Declare.
5269         (get_traceframe_info, get_traceframe_location): Declare.
5270
5271         * NEWS: Mention new MI command -trace-frame-collected.
5272
5273 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5274             Yao Qi  <yao@codesourcery.com>
5275
5276         * ctf.c (ctf_traceframe_info): Push trace state variables
5277         present in the trace data into the traceframe info object.
5278         * breakpoint.c (DEF_VEC_I): Remove.
5279         * common/filestuff.c (DEF_VEC_I): Likewise.
5280         * dwarf2loc.c (DEF_VEC_I): Likewise.
5281         * mi/mi-main.c (DEF_VEC_I): Likewise.
5282         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5283         * features/traceframe-info.dtd: Add tvar element and its
5284         attributes.
5285         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5286         (build_traceframe_info): Push trace state variables present in
5287         the trace data into the traceframe info object.
5288         (traceframe_info_start_tvar): New function.
5289         (tvar_attributes): New.
5290         (traceframe_info_children): Add "tvar" element.
5291         * tracepoint.h (struct traceframe_info) <tvars>: New field.
5292
5293         * NEWS: Mention the change in GDB and GDBserver.
5294
5295 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5296             Yao Qi  <yao@codesourcery.com>
5297
5298         * tracepoint.c (trace_dump_command): Move code to ...
5299         (get_traceframe_location): ... here.  New.
5300
5301 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5302             Yao Qi  <yao@codesourcery.com>
5303
5304         * tracepoint.c (trace_dump_command): GDB emits an error
5305          instead of a warning when a traceframe is not selected.
5306
5307 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5308             Yao Qi  <yao@codesourcery.com>
5309
5310         * tracepoint.c (tracepoint_list, stepping_list): Remove.
5311         (clear_collection_list): Free fields 'aexpre_list' and 'list'
5312         in collection_list.
5313         (do_clear_collection_list, init_collection_list): New.
5314         (encode_actions): Add local variables 'tracepoint_list' and
5315         'stepping_list'.  Call init_collection_list and make cleanup
5316         which calls do_clear_collection_list.  Don't call
5317         clear_collection_list.
5318         (_initialize_tracepoint): Delete references to
5319         'tracepoint_list' and 'stepping_list'.
5320
5321 2013-06-25  Tom Tromey  <tromey@redhat.com>
5322
5323         * common/create-version.sh (date): Use "$", not "$$" in sed
5324         expression.
5325
5326 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
5327
5328         * NEWS (New targets): Add entry for TI MSP430.
5329
5330 2013-06-25  Yao Qi  <yao@codesourcery.com>
5331
5332         * remote.c (remote_start_remote): Move code to upload tsv
5333         earlier.
5334
5335 2013-06-25  Yao Qi  <yao@codesourcery.com>
5336             Hui Zhu  <hui@codesourcery.com>
5337             Pedro Alves  <palves@redhat.com>
5338
5339         PR breakpoints/15075
5340         PR breakpoints/15434
5341         * breakpoint.c (bpstat_stop_status): Call
5342         b->ops->after_condition_true.
5343         (update_dprintf_command_list): Don't append "continue" command
5344         to the command list of dprintf breakpoint.
5345         (base_breakpoint_after_condition_true): New function.
5346         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5347         (dprintf_after_condition_true): New function.
5348         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5349         * breakpoint.h (breakpoint_ops): Add after_condition_true.
5350
5351 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
5352
5353         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5354         (ALLDEPFILES): Add msp430-tdep.c.
5355         * configure.tgt (msp430*-*-elf): New target.
5356         * msp430-tdep.c: New file.
5357
5358 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
5359
5360         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5361         microMIPS synthetic symbols.
5362
5363 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
5364
5365         * objfiles.h (pc_in_section): New prototype.
5366         (in_plt_section): Remove name argument, replace prototype with
5367         static inline function.
5368         * mips-tdep.h: Include "objfiles.h".
5369         (in_mips_stubs_section): New function.
5370         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5371         in_solib_call_trampoline member.
5372         (hppa_in_solib_call_trampoline): Remove name argument.
5373         * objfiles.c (pc_in_section): New function.
5374         (in_plt_section): Remove function.
5375         * mips-linux-tdep.c: Include "objfiles.h".
5376         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
5377         name argument.  Return 1 rather than the low 16-bit halfword of
5378         any instruction examined.
5379         (mips_linux_in_dynsym_resolve_code): Update
5380         mips_linux_in_dynsym_stub call accordingly.
5381         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5382         rather than an equivalent hand-coded sequence.
5383         * hppa-hpux-tdep.c (in_opd_section): Remove function.
5384         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5385         (hppa64_hpux_in_solib_call_trampoline): Likewise.
5386         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5387         in_opd_section.
5388         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5389         on call to tdep->in_solib_call_trampoline.
5390         (hppa_in_solib_call_trampoline): Remove name argument, update
5391         according to in_plt_section change.
5392         (hppa_skip_trampoline_code): Update according to in_plt_section
5393         change.
5394         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5395         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5396         Likewise.
5397         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5398         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5399         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5400         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5401         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5402         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5403         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5404         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5405         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5406         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5407         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5408         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5409         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5410
5411 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
5412
5413         * common/create-version.sh: Fix expansion of $host_alias
5414         and $target_alias in generation of HOST_NAME and TARGET_NAME
5415         (resp.).
5416
5417 2013-06-24  Tom Tromey  <tromey@redhat.com>
5418
5419         * common/create-version.sh: New file.
5420         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5421         create-version.sh.
5422         (HFILES_NO_SRCDIR): Use common/version.h.
5423         * version.in: Move to ...
5424         * common/version.in: ... here.  Replace date with "DATE".
5425         * version.h: Move to ...
5426         * common/version.h: ... here.
5427
5428 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
5429
5430         * gdb/gnulib/Makefile.in: Update date in copyright header.
5431         * gdb/gnulib/configure.ac: Ditto.
5432         * gdb/gnulib/update-gnulib.sh: Ditto.
5433
5434 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
5435
5436         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5437         "gdb/gnulib/import".
5438
5439 2013-06-21  Will Newton  <will.newton@linaro.org>
5440
5441         * doublest.c (ldfrexp): Remove function.
5442         (convert_doublest_to_floatformat): Call frexpl instead of
5443         ldfrexp.
5444
5445 2013-06-21  Will Newton  <will.newton@linaro.org>
5446
5447         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5448         * gnulib/aclocal.m4: Regenerate.
5449         * gnulib/config.in: Regenerate.
5450         * gnulib/configure: Regenerate.
5451         * gnulib/import/Makefile.am: Update.
5452         * gnulib/import/Makefile.in: Update.
5453         * gnulib/import/m4/gnulib-cache.m4: Update.
5454         * gnulib/import/m4/gnulib-comp.m4: Update.
5455         * gnulib/import/float+.h: Import.
5456         * gnulib/import/float.c: Import.
5457         * gnulib/import/float.in.h: Import.
5458         * gnulib/import/fpucw.h: Import.
5459         * gnulib/import/frexp.c: Import.
5460         * gnulib/import/frexpl.c: Import.
5461         * gnulib/import/isnan.c: Import.
5462         * gnulib/import/isnand-nolibm.h: Import.
5463         * gnulib/import/isnand.c: Import.
5464         * gnulib/import/isnanl-nolibm.h: Import.
5465         * gnulib/import/isnanl.c: Import.
5466         * gnulib/import/itold.c: Import.
5467         * gnulib/import/m4/exponentd.m4: Import.
5468         * gnulib/import/m4/exponentl.m4: Import.
5469         * gnulib/import/m4/float_h.m4: Import.
5470         * gnulib/import/m4/fpieee.m4: Import.
5471         * gnulib/import/m4/frexp.m4: Import.
5472         * gnulib/import/m4/frexpl.m4: Import.
5473         * gnulib/import/m4/isnand.m4: Import.
5474         * gnulib/import/m4/isnanl.m4: Import.
5475         * gnulib/import/m4/math_h.m4: Import.
5476         * gnulib/import/math.c: Import.
5477         * gnulib/import/math.in.h: Import.
5478
5479 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5480
5481         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5482         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5483         signature_INTEL_edx comparisons.
5484
5485 2013-06-20  Doug Evans  <dje@google.com>
5486
5487         symtab/15652
5488         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5489         All callers updated.
5490         (open_dwp_file): If we can't find the dwp file, search the basename
5491         in debug-file-directory.
5492
5493         * dwarf2read.c (struct dwp_file): Fix comment.
5494         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5495
5496         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5497         better.
5498
5499 2013-06-20  Yao Qi  <yao@codesourcery.com>
5500
5501         * breakpoint.c (create_breakpoint): Fix code indentation.
5502
5503 2013-06-20  Yao Qi  <yao@codesourcery.com>
5504
5505         * breakpoint.c (create_breakpoints_sal_default): Remove
5506         parameter 'lsal'.  Update declaration.
5507         (bkpt_create_breakpoints_sal): Caller update.
5508         (tracepoint_create_breakpoints_sal): Likewise.
5509
5510 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
5511             Yao Qi  <yao@codesourcery.com>
5512
5513         * NEWS: Mention the new option '--skip-unavailable' of command
5514         -data-list-register-values.
5515         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5516         --skip-unavailable option.  Adjust to use output_register.
5517         (output_register): Add new 'skip_unavailable' parameter.
5518         Handle it.
5519
5520 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
5521
5522         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5523         common/i386-gcc-cpuid.h.
5524         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5525         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5526         Copy the latest version from upstream gcc.
5527         * common/linux-btrace.c: Include i386-cpuid.h.
5528         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5529         call to i386_cpuid.
5530         (cpu_supports_btrace): Likewise.
5531         * go32-nat.c: Include i386-cpuid.h.
5532         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5533
5534 2013-06-19  Doug Evans  <dje@google.com>
5535
5536         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5537         (get_section_index): Ditto.
5538
5539 2013-06-19  Tom Tromey  <tromey@redhat.com>
5540
5541         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5542         "dprintf" help.
5543
5544 2013-06-18  Doug Evans  <dje@google.com>
5545
5546         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5547         before using it.
5548         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5549         Move test of cu_index closer to use.  Print complaint if cu_index
5550         is bad.
5551
5552 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
5553
5554         * machoread.c (oso_vector): Delete this global.
5555         (macho_register_oso): Add new parameter "oso_vector_ptr".
5556         Use it instead of the "oso_vector" global.
5557         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5558         (macho_symfile_read): Use a local oso_vector, to be free'ed
5559         at the end of this function, in place of the old "oso_vector"
5560         global.  Update various function calls accordingly.  Use one
5561         single cleanup chain for the entire function.
5562
5563 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
5564
5565         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5566         DWARF2_PER_OBJFILE by uses of DATA instead.
5567
5568 2013-06-18  Tom Tromey  <tromey@redhat.com>
5569
5570         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5571         argument.
5572         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5573         Special case signals other than GDB_SIGNAL_TRAP.
5574         (explains_signal_watchpoint): New function.
5575         (base_breakpoint_explains_signal): Add 'sig' argument.
5576         (initialize_breakpoint_ops): Set 'explains_signal' method for
5577         watchpoints.
5578         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5579         signal argument.
5580         (bpstat_explains_signal): Likewise.
5581         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5582
5583 2013-06-18  Tom Tromey  <tromey@redhat.com>
5584
5585         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5586
5587 2013-06-18  Tom Tromey  <tromey@redhat.com>
5588
5589         * python/python.c (finish_python_initialization): Decref
5590         'pythondir' on failure path as well.
5591
5592 2013-06-18  Tom Tromey  <tromey@redhat.com>
5593
5594         PR symtab/15391:
5595         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5596         after taking bits_to_skip into account.  Sign extend byte_offset.
5597         * utils.h (gdb_sign_extend): Declare.
5598         * utils.c (gdb_sign_extend): New function.
5599
5600 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5601
5602         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5603
5604 2013-06-17  Pierre Muller  <muller@sourceware.org>
5605
5606         * corelow.c (core_open): Print GDB signal name instead of target
5607         signal number.
5608
5609 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
5610
5611         * .gitignore: Add /gcore.
5612
5613 2013-06-13  Doug Evans  <dje@google.com>
5614
5615         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5616         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5617
5618 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
5619
5620         * stack.c (backtrace_command_1): Fix indentation.
5621
5622 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
5623
5624         * window-nat.c (thread_rec): Add missing empty line after
5625         local variable declaration.
5626
5627 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
5628
5629         * windows-nat.c (thread_rec): Revert format used to print
5630         error code returned by SuspendThread from %d back to %u.
5631
5632 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
5633
5634         * windows-nat.c (windows_continue): Add "0x" prefix for thread
5635         ID in debug trace.
5636         (get_windows_debug_event): Likewise, for all debug traces.
5637
5638 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
5639
5640         * window-nat.c (thread_rec): Add thread ID in SuspendThread
5641         warning message.
5642
5643 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
5644             Yao Qi  <yao@codesourcery.com>
5645
5646         * mi/mi-main.c (get_register): Remove declaration.
5647         (output_register): Declare.
5648         (mi_cmd_data_list_register_values): Remove local variable
5649         'tuple_cleanup'.  Move some code into output_register.
5650         (get_register): Renamed to ...
5651         (output_register): ... this.  Output the register's
5652         "number" ui_out tuple here.
5653
5654 2013-06-07  Pedro Alves  <palves@redhat.com>
5655
5656         * darwin-nat.c: Fix formating in copyright header.
5657         * darwin-nat.h: Likewise.
5658         * gnu-nat.c: Likewise.
5659         * machoread.c: Likewise.
5660
5661 2013-06-07  Pedro Alves  <palves@redhat.com>
5662
5663         PR server/14823
5664         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
5665         static.  Output a global target description pointer.
5666         (init_registers_${name}): Adjust to initialize a
5667         target description structure.
5668
5669 2013-06-07  Will Newton  <will.newton@linaro.org>
5670
5671         * printcmd.c (build_address_symbolic): Call
5672         gdbarch_addr_bits_remove for text minimal symbols.
5673
5674 2013-06-07  Will Newton  <will.newton@linaro.org>
5675
5676         * MAINTAINERS: Add myself to Write After Approval.
5677
5678 2013-06-07  Yao Qi  <yao@codesourcery.com>
5679
5680         * tracepoint.c (start_tracing): Move code to ...
5681         (trace_reset_local_state): ... here.  New.
5682         (disconnect_tracing): Don't call set_current_traceframe,
5683         set_tracepoint_num, and set_traceframe_context. Call
5684         trace_reset_local_state instead.
5685         (tfile_close): Call trace_reset_local_state.
5686         * ctf.c (ctf_close): Likewise.
5687         * remote.c (remote_close): Likewise.
5688         * tracepoint.h (trace_reset_local_state): Declare.
5689
5690 2013-06-06  Doug Evans  <dje@google.com>
5691
5692         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5693         and fix header docs.
5694
5695 2013-06-05  Doug Evans  <dje@google.com>
5696             Keith Seitz  <keiths@redhat.com>
5697
5698         PR 15519
5699         * cp-namespace.c (find_symbol_in_baseclass): Call
5700         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5701         Check result of call to lookup_symbol_static.
5702         Call lookup_static_symbol_aux unconditionally.
5703         Call check_typedef on base types before accessing them.
5704         (cp_lookup_nested_symbol): Fix comment.
5705
5706 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
5707
5708         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5709         minimal symbols pointing to function descriptors.
5710
5711 2013-06-05  Tom Tromey  <tromey@redhat.com>
5712
5713         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5714
5715 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
5716             Pedro Alves  <palves@redhat.com>
5717
5718         * remote.c (remote_wait_as): Restore signal handler before returning
5719         when GDB gets a notification.
5720
5721 2013-06-04  Gary Benson  <gbenson@redhat.com>
5722
5723         PR 2328
5724         * breakpoint.h (handle_solib_event): Moved function declaration
5725         to solib.h.
5726         * breakpoint.c (handle_solib_event): Moved function to solib.c.
5727         (bpstat_stop_status): Pass new argument to handle_solib_event.
5728         * solib.h (update_solib_breakpoints): New function declaration.
5729         (handle_solib_event): Moved function declaration from
5730         breakpoint.h.
5731         * solib.c (update_solib_breakpoints): New function.
5732         (handle_solib_event): Moved function from breakpoint.c.
5733         Updated to call solib_ops->handle_event if not NULL.
5734         * solist.h (target_so_ops): New fields "update_breakpoints" and
5735         "handle_event".
5736         * infrun.c (set_stop_on_solib_events): New function.
5737         (_initialize_infrun): Use the above for "set
5738         stop-on-solib-events".
5739         (handle_inferior_event): Pass new argument to handle_solib_event.
5740         * solib-svr4.c (probe.h): New include.
5741         (svr4_free_library_list): New forward declaration.
5742         (probe_action): New enum.
5743         (probe_info): New struct.
5744         (probe_info): New static variable.
5745         (NUM_PROBES): New definition.
5746         (svr4_info): New fields "using_xfer", "probes_table" and
5747         "solib_list".
5748         (free_probes_table): New function.
5749         (free_solib_list): New function.
5750         (svr4_pspace_data_cleanup): Free probes table and solib list.
5751         (svr4_copy_library_list): New function.
5752         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5753         (svr4_read_so_list): New parameter "prev_lm".
5754         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5755         (svr4_current_sos): New function.
5756         (probe_and_action): New struct.
5757         (hash_probe_and_action): New function.
5758         (equal_probe_and_action): Likewise.
5759         (register_solib_event_probe): Likewise.
5760         (solib_event_probe_at): Likewise.
5761         (solib_event_probe_action): Likewise.
5762         (solist_update_full): Likewise.
5763         (solist_update_incremental): Likewise.
5764         (disable_probes_interface_cleanup): Likewise.
5765         (svr4_handle_solib_event): Likewise.
5766         (svr4_update_solib_event_breakpoint): Likewise.
5767         (svr4_update_solib_event_breakpoints): Likewise.
5768         (svr4_create_solib_event_breakpoints): Likewise.
5769         (enable_break): Free probes table before creating breakpoints.
5770         Use svr4_create_solib_event_breakpoints to create breakpoints.
5771         (svr4_solib_create_inferior_hook): Free the solib list.
5772         (_initialize_svr4_solib): Initialise
5773         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5774
5775 2013-06-04  Gary Benson  <gbenson@redhat.com>
5776
5777         * target.h (target_ops): New field
5778         "to_augmented_libraries_svr4_read".
5779         (target_augmented_libraries_svr4_read): New macro.
5780         * target.c (update_current_target): Handle
5781         to_augmented_libraries_svr4_read.
5782         * remote.c (remote_state): New field
5783         "augmented_libraries_svr4_read".
5784         (remote_augmented_libraries_svr4_read_feature): New function.
5785         (remote_protocol_features): Add entry for
5786         "augmented-libraries-svr4-read".
5787         (remote_augmented_libraries_svr4_read): New function.
5788         (init_remote_ops): Initialize
5789         remote_ops.to_augmented_libraries_svr4_read.
5790
5791 2013-06-04  Gary Benson  <gbenson@redhat.com>
5792
5793         * NEWS: Update.
5794
5795 2013-06-04  Gary Benson  <gbenson@redhat.com>
5796
5797         * objfiles.h (inhibit_section_map_updates): New function
5798         declaration.
5799         (resume_section_map_updates): Likewise.
5800         (resume_section_map_updates_cleanup): Likewise.
5801         * objfiles.c (objfile_pspace_info): Removed field
5802         "objfiles_changed_p".  New fields "new_objfiles_available",
5803         "section_map_dirty" and "inhibit_updates".
5804         (allocate_objfile): Set new_objfiles_available.
5805         (free_objfile): Set section_map_dirty.
5806         (objfile_relocate1): Likewise.
5807         (in_plt_section): Likewise.
5808         (find_pc_section): Update the conditions under which the
5809         section map will be updated.
5810         (inhibit_section_map_updates): New function.
5811         (resume_section_map_updates): Likewise.
5812         (resume_section_map_updates_cleanup): Likewise.
5813
5814 2013-06-04  Gary Benson  <gbenson@redhat.com>
5815
5816         * probe.h (get_probe_argument_count): New declaration.
5817         (evaluate_probe_argument): Likewise.
5818         * probe.c (get_probe_argument_count): New function.
5819         (evaluate_probe_argument): Likewise.
5820         (probe_safe_evaluate_at_pc): Use the above new functions.
5821
5822 2013-06-04  Alan Modra  <amodra@gmail.com>
5823
5824         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5825         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5826         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
5827         target mem reads on optional insns.
5828         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5829         ppc_insns_match_pattern calls.
5830         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5831         Add match for power7 thread safety insns, and new order of
5832         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
5833         invocation in comment, and update rest of comment.
5834         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5835         PPC64_STANDARD_LINKAGE3_LEN): Delete.
5836         (ppc64_standard_linkage2_target): Update insn offsets.
5837         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
5838         stubs first.  Update calls.
5839
5840 2013-06-04  Yao Qi  <yao@codesourcery.com>
5841
5842         * solib.c (solib_find): Don't need dir separator if path has
5843         drive spec.
5844
5845 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
5846
5847         Revert (indirectly causes a SIGSEGV):
5848         * machoread.c (macho_symfile_read): Assign first cleanup to
5849         'back_to'.
5850
5851 2013-06-03  Yao Qi  <yao@codesourcery.com>
5852
5853         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5854         mi-parse.c.  Make them static.
5855         (mi_all_values): Likewise.
5856         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
5857         mi_parse_print_values.  Make it external.
5858         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5859         Remove the declarations.
5860         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5861         * mi/mi-parse.h (mi_parse_print_values): Declare.
5862         * mi/mi-cmd-stack.c: Include mi-parse.h.
5863         (parse_print_values): Remove
5864         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5865         of parse_print_values.
5866         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5867
5868 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
5869             Yao Qi  <yao@codesourcery.com>
5870
5871         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5872         (encode_actions): Move code to ...
5873         (all_tracepoint_actions_and_cleanup): ... here.  New.
5874         (trace_dump_command): Likewise.
5875
5876 2013-05-30  Tom Tromey  <tromey@redhat.com>
5877
5878         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5879
5880 2013-05-30  Tom Tromey  <tromey@redhat.com>
5881
5882         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5883         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
5884         'old_chain' argument.  Add 'parser_result' argument.
5885         (gdb_xml_create_parser_and_cleanup): Remove old version.
5886         (gdb_xml_parse_quick): Update.
5887         (xml_process_xincludes): Update.
5888         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5889         declare.
5890
5891 2013-05-30  Tom Tromey  <tromey@redhat.com>
5892
5893         * probe.c (collect_probes): Check arguments for NULL before
5894         calling compile_rx_or_error.
5895         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5896         Remove NULL return.
5897
5898 2013-05-30  Tom Tromey  <tromey@redhat.com>
5899
5900         * infrun.c (adjust_pc_after_break): Introduce an outer null
5901         cleanup.
5902
5903 2013-05-30  Tom Tromey  <tromey@redhat.com>
5904
5905         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5906
5907 2013-05-30  Tom Tromey  <tromey@redhat.com>
5908
5909         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5910         for 'old_chain'.  Do not check 'head' before processing
5911         cleanups.
5912
5913 2013-05-30  Tom Tromey  <tromey@redhat.com>
5914
5915         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5916         "cleanup_tuple".
5917
5918 2013-05-30  Tom Tromey  <tromey@redhat.com>
5919
5920         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5921         inner scope.  Unconditionally call do_cleanups.
5922
5923 2013-05-30  Tom Tromey  <tromey@redhat.com>
5924
5925         * source.c (find_and_open_source): Call do_cleanups.
5926
5927 2013-05-30  Tom Tromey  <tromey@redhat.com>
5928
5929         * linux-thread-db.c (thread_db_load_search): Unconditionally
5930         call do_cleanups.
5931
5932 2013-05-30  Tom Tromey  <tromey@redhat.com>
5933
5934         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5935         for 'cleanup'; instead use a later one.
5936
5937 2013-05-30  Tom Tromey  <tromey@redhat.com>
5938
5939         * python/py-breakpoint.c (bppy_get_commands): Use
5940         explicit, unconditional return.
5941         * python/py-frame.c (frapy_read_var): Likewise.
5942         * python/python.c (gdbpy_decode_line): Likewise.
5943
5944 2013-05-30  Tom Tromey  <tromey@redhat.com>
5945
5946         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5947         do_cleanups on all return paths.
5948
5949 2013-05-30  Tom Tromey  <tromey@redhat.com>
5950
5951         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5952
5953 2013-05-30  Tom Tromey  <tromey@redhat.com>
5954
5955         * stabsread.c (read_struct_type): Call do_cleanups along
5956         all return paths.
5957
5958 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
5959
5960         * mips-linux-tdep.c: Adjust formatting throughout.
5961
5962 2013-05-30  Tom Tromey  <tromey@redhat.com>
5963
5964         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5965         along all return paths.
5966
5967 2013-05-30  Tom Tromey  <tromey@redhat.com>
5968
5969         * symfile.c (find_separate_debug_file): Call do_cleanups
5970         along all return paths.
5971
5972 2013-05-30  Tom Tromey  <tromey@redhat.com>
5973
5974         * symtab.c (search_symbols): Introduce a null cleanup for
5975         'retval_chain'.
5976
5977 2013-05-30  Tom Tromey  <tromey@redhat.com>
5978
5979         * python/py-value.c (valpy_binop): Call do_cleanups before
5980         exiting loop.
5981
5982 2013-05-30  Tom Tromey  <tromey@redhat.com>
5983
5984         * python/py-prettyprint.c (print_children): Remove extra
5985         do_cleanups call.
5986
5987 2013-05-30  Tom Tromey  <tromey@redhat.com>
5988
5989         * python/py-frame.c (frapy_read_var): Call do_cleanups along
5990         all return paths.
5991
5992 2013-05-30  Tom Tromey  <tromey@redhat.com>
5993
5994         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5995         along all return paths.
5996
5997 2013-05-30  Tom Tromey  <tromey@redhat.com>
5998
5999         * cli/cli-logging.c (set_logging_redirect): Unconditionally
6000         call do_cleanups.
6001
6002 2013-05-30  Tom Tromey  <tromey@redhat.com>
6003
6004         * varobj.c (c_value_of_root): Call do_cleanups along all
6005         return paths.
6006
6007 2013-05-30  Tom Tromey  <tromey@redhat.com>
6008
6009         * tracepoint.c (trace_dump_command): Unconditionally call
6010         do_cleanups.
6011
6012 2013-05-30  Tom Tromey  <tromey@redhat.com>
6013
6014         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6015         do_cleanups earlier.
6016
6017 2013-05-30  Tom Tromey  <tromey@redhat.com>
6018
6019         * machoread.c (macho_symfile_read): Assign first cleanup to
6020         'back_to'.
6021
6022 2013-05-30  Tom Tromey  <tromey@redhat.com>
6023
6024         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6025
6026 2013-05-30  Tom Tromey  <tromey@redhat.com>
6027
6028         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6029
6030 2013-05-30  Tom Tromey  <tromey@redhat.com>
6031
6032         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6033         call discard_cleanups.
6034         (inf_ptrace_attach): Likewise.
6035
6036 2013-05-30  Tom Tromey  <tromey@redhat.com>
6037
6038         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6039         return paths.
6040         (mips_initialize): Likewise.
6041         (common_open): Call do_cleanups.
6042
6043 2013-05-30  Tom Tromey  <tromey@redhat.com>
6044
6045         * utils.c (internal_vproblem): Call do_cleanups.
6046
6047 2013-05-30  Tom Tromey  <tromey@redhat.com>
6048
6049         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6050
6051 2013-05-30  Tom Tromey  <tromey@redhat.com>
6052
6053         * cli/cli-script.c (setup_user_args): Don't return after error.
6054
6055 2013-05-30  Tom Tromey  <tromey@redhat.com>
6056
6057         * somread.c (som_symtab_read): Call do_cleanups.
6058
6059 2013-05-30  Tom Tromey  <tromey@redhat.com>
6060
6061         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6062
6063 2013-05-30  Tom Tromey  <tromey@redhat.com>
6064
6065         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6066         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6067         * interps.c (interpreter_exec_cmd): Call do_cleanups.
6068         * source.c (show_substitute_path_command): Call do_cleanups.
6069         (unset_substitute_path_command, set_substitute_path_command):
6070         Likewise.
6071         * symfile.c (load_command): Call do_cleanups.
6072
6073 2013-05-30  Tom Tromey  <tromey@redhat.com>
6074
6075         * contrib/cleanup_check.py: New file.
6076         * contrib/gcc-with-excheck: Add option parsing.
6077
6078 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
6079
6080         * windows-nat.c (windows_delete_thread): Add missing space
6081         in cast expression.
6082
6083 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6084
6085         * inferior.c (top level): Include tilde.h.
6086         (add_inferior_command): Call tilde_expand on the value of 'exec'
6087         argument.
6088
6089 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
6090             Yao Qi  <yao@codesourcery.com>
6091
6092         * tracepoint.c (encode_actions_1): Remove parameter 't'.
6093         Caller update.
6094         (encode_actions): Likewise.
6095         * remote.c (remote_download_tracepoint): Caller update.
6096         * tracepoint.h (encode_actions): Update declaration.
6097
6098 2013-05-30  Pedro Alves  <palves@redhat.com>
6099
6100         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6101         pointer.
6102
6103 2013-05-30  Yao Qi  <yao@codesourcery.com>
6104
6105         * remote.c (remote_check_symbols): Remove unused parameter
6106         'objfile'.
6107         Declaration update.
6108         (remote_start_remote, remote_new_objfile): Caller update.
6109
6110 2013-05-30  Yao Qi  <yao@codesourcery.com>
6111
6112         * mi/mi-cmds.c (mi_cmds): Define MI command
6113         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6114         DEF_MI_CMD_CLI.
6115
6116 2013-05-29  Pedro Alves  <palves@redhat.com>
6117
6118         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6119         (remote_insert_watchpoint, remote_remove_watchpoint)
6120         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6121         (remote_verify_memory, compare_sections_command)
6122         (remote_search_memory): Set the general process/thread on the
6123         remote side.
6124
6125 2013-05-29  Pedro Alves  <palves@redhat.com>
6126
6127         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6128         (_initialize_aarch64_tdep): Don't call
6129         initialize_tdesc_aarch64_without_fpu.
6130         * features/Makefile (WHICH): Remove reference to
6131         aarch64-without-fpu.
6132         * features/aarch64-without-fpu.c: Delete file.
6133         * regformats/aarch64-without-fpu.dat: Delete file.
6134
6135 2013-05-28  Yao Qi  <yao@codesourcery.com>
6136
6137         * tracepoint.c (stringify_collection_list): Remove parameter
6138         'string'.
6139         (encode_actions): Caller update.  Remove local variables.
6140
6141 2013-05-24  Yao Qi  <yao@codesourcery.com>
6142
6143         * tracepoint.c (TFILE_PID): Remove.
6144         (tfile_open): Don't add thread and inferior.
6145         (tfile_close): Don't set 'inferior_ptid'.  Don't call
6146         exit_inferior_silent.
6147         (tfile_thread_alive): Remove.
6148         (init_tfile_ops): Don't set field 'to_thread_alive' of
6149         tfile_ops.
6150
6151 2013-05-23  Doug Evans  <dje@google.com>
6152
6153         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6154
6155 2013-05-23  Pedro Alves  <palves@redhat.com>
6156
6157         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6158         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6159         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6160         Only define if HAVE_SOCKETS is defined.
6161         * configure.ac: Check for sys/socket.h.
6162         * config.in, configure: Regenerate.
6163
6164 2013-05-23  Pedro Alves  <palves@redhat.com>
6165
6166         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6167         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6168         printing uint32_t variables.
6169
6170 2013-05-23  Pedro Alves  <palves@redhat.com>
6171
6172         * NEWS: Mention GDBserver range stepping support.
6173
6174 2013-05-23  Yao Qi  <yao@codesourcery.com>
6175             Pedro Alves  <palves@redhat.com>
6176
6177         * gdbthread.h (struct thread_control_state) <may_range_step>: New
6178         field.
6179         * infcmd.c (step_once, until_next_command): Enable range stepping.
6180         * infrun.c (displaced_step_prepare): Disable range stepping.
6181         (resume): Disable range stepping if stepping over a breakpoint or
6182         we have software watchpoints.  If range stepping is enabled,
6183         assert the thread is in the stepping range.
6184         (clear_proceed_status_thread): Clear may_range_step.
6185         (handle_inferior_event): Disable range stepping as soon as we know
6186         the thread that hit the event.  Re-enable it whenever we're going
6187         to step with a step range.
6188         * remote.c (struct vCont_action_support) <r>: New field.
6189         (use_range_stepping): New global.
6190         (remote_vcont_probe): Handle 'r' action.
6191         (append_resumption): Append an 'r' action if the thread may range
6192         step.
6193         (show_range_stepping): New function.
6194         (set_range_stepping): New function.
6195         (_initialize_remote): Call add_setshow_boolean_cmd to register the
6196         'set range-stepping' and 'show range-stepping' commands.
6197         * NEWS: Mention range stepping, the new vCont;r action, and the
6198         new "set/show range-stepping" commands.
6199
6200 2013-05-23  Yao Qi  <yao@codesourcery.com>
6201             Pedro Alves  <palves@redhat.com>
6202
6203         * remote.c (struct vCont_action_support): New struct.
6204         (struct remote_state) <support_vCont_t>: Remove field.
6205         <vCont_actions_support>: New field.
6206         (remote_vcont_probe, remote_stop_ns): Update.
6207
6208 2013-05-23  Yao Qi  <yao@codesourcery.com>
6209             Pedro Alves  <palves@redhat.com>
6210
6211         * gdbthread.h (pc_in_thread_step_range): New declaration.
6212         * thread.c (pc_in_thread_step_range): New function.
6213         * infrun.c (handle_inferior_event): Use it.
6214
6215 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
6216
6217         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6218         of sprintf.
6219
6220 2013-05-22  Keith Seitz  <keiths@redhat.com>
6221
6222         * ada-lang.c (is_known_support_routine): Add explicit free of
6223         'func_name' from find_frame_funname.
6224         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6225         for func_name from find_frame_funname.
6226         * python/py-frame.c (frapy_name): Add explicit free of
6227         'name' from find_frame_funname.
6228         * stack.c (find_frame_funname): Add comment explaining that
6229         funcp must be freed by the caller.
6230         Return copy of symbol names instead of pointers.
6231         (print_frame): Add a cleanup for 'funname' from
6232         find_frame_funname.
6233         * stack.h (find_frame_funname): Remove "const" from
6234         'funname' parameter.
6235
6236 2013-05-22  Tom Tromey  <tromey@redhat.com>
6237
6238         PR c++/15401:
6239         * c-valprint.c (c_value_print): Use value_addr for
6240         references.  Convert back to reference type with value_ref.
6241
6242 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
6243
6244         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6245         unloaded DLL, it will be done by handle_solib_event.  See
6246         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6247         details.
6248
6249 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
6250
6251         * ui-out.c: Create typedef ui_out_level_p and define vector
6252         operations for that type.
6253         (struct ui_out): Use a vector instead of an array.
6254         (current_level): Return level from a vector.
6255         (push_level): Create a level in a vector.
6256         (pop_level): Delete a level in a vector.
6257         (ui_out_new): Create initial level zero level, and store in a
6258         vector.
6259         (ui_out_destroy): Add vector cleanup.
6260
6261 2013-05-22  Pedro Alves  <palves@redhat.com>
6262
6263         * python/python-internal.h (gdb_Py_DECREF): Tag with
6264         "ARI: editCase function".
6265
6266 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
6267
6268         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6269
6270 2013-05-21  Pedro Alves  <palves@redhat.com>
6271
6272         * python/py-prettyprint.c (apply_val_pretty_printer): Check
6273         whether PRINTER is NULL before installing a Py_DECREF cleanup.
6274         * python/py-utils.c (py_decref): Don't check for NULL before
6275         calling Py_DECREF.
6276
6277 2013-05-21  Pedro Alves  <palves@redhat.com>
6278
6279         * python/py-utils.c (py_decref): Remove extra braces.
6280         (gdb_pymodule_addobject): Remove extra braces.
6281         * python-internal.h (gdb_Py_DECREF): New static inline function.
6282         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6283
6284 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6285
6286         * breakpoints.c (detach_breakpoints): Do not
6287         detach breakpoints locations with loc_type bp_loc_other.
6288
6289 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6290
6291         Workaround Python 2.6.
6292         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6293         a block.
6294
6295 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6296
6297         Code cleanup: constification.
6298         * solib.c (solib_ops): Make return type and ops variable type const.
6299         (set_solib_ops): Make the new_ops parameter and ops variable const.
6300         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6301         (solib_add, solib_keep_data_in_core, clear_solib)
6302         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6303         (reload_shared_libraries, solib_global_lookup): Make the ops variable
6304         const.
6305         * solib.h (set_solib_ops): Make the new_ops parameter const.
6306
6307 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
6308
6309         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6310         variable.
6311         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6312         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6313         (SYSTEM_GDBINIT_FILES): New variables.
6314         (all): Add stamp-system-gdbinit.
6315         (stamp-system-gdbinit): New rule.
6316         (clean-system-gdbinit, install-system-gdbinit)
6317         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
6318         (install-only): Add dependency on install-system-gdbinit.
6319         (uninstall): Add dependency on uninstall-system-gdbinit.
6320         (clean): Add dependency on clean-system-gdbinit.
6321         * system-gdbinit/elinos.py: New file.
6322         * system-gdbinit/wrs-linux.py: New file.
6323
6324 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
6325
6326         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6327
6328 2013-05-21  Hui Zhu  <hui@codesourcery.com>
6329
6330         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6331         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6332         * mi/mi-cmd-break.c (ctype.h): New include.
6333         (gdb_obstack.h): New include.
6334         (mi_argv_to_format, mi_cmd_break_insert_1): New.
6335         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6336         (mi_cmd_dprintf_insert): New.
6337         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6338         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6339
6340 2013-05-20  Tom Tromey  <tromey@redhat.com>
6341
6342         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6343
6344 2013-05-20  Tom Tromey  <tromey@redhat.com>
6345
6346         * python/py-value.c (valpy_get_dynamic_type): Simplify
6347         dynamic_type assignment.  Use Py_XINCREF.
6348
6349 2013-05-20  Tom Tromey  <tromey@redhat.com>
6350
6351         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6352
6353 2013-05-20  Tom Tromey  <tromey@redhat.com>
6354
6355         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6356         (gdbpy_selected_frame): Move object-construction code
6357         out of TRY_CATCH.
6358
6359 2013-05-20  Tom Tromey  <tromey@redhat.com>
6360
6361         * python/py-arch.c (gdbpy_initialize_arch): Use
6362         gdb_pymodule_addobject.
6363         * python/py-block.c (gdbpy_initialize_blocks): Use
6364         gdb_pymodule_addobject.
6365         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6366         gdb_pymodule_addobject.
6367         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6368         gdb_pymodule_addobject.
6369         * python/py-event.c (gdbpy_initialize_event_generic): Use
6370         gdb_pymodule_addobject.
6371         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6372         gdb_pymodule_addobject.
6373         * python/py-evts.c (add_new_registry): Use
6374         gdb_pymodule_addobject.
6375         (gdbpy_initialize_py_events): Likewise.
6376         * python/py-finishbreakpoint.c
6377         (gdbpy_initialize_finishbreakpoints): Use
6378         gdb_pymodule_addobject.
6379         * python/py-frame.c (gdbpy_initialize_frames): Use
6380         gdb_pymodule_addobject.
6381         * python/py-function.c (gdbpy_initialize_functions): Use
6382         gdb_pymodule_addobject.
6383         * python/py-inferior.c (gdbpy_initialize_inferior): Use
6384         gdb_pymodule_addobject.
6385         * python/py-infthread.c (gdbpy_initialize_thread): Use
6386         gdb_pymodule_addobject.
6387         * python/py-objfile.c (gdbpy_initialize_objfile): Use
6388         gdb_pymodule_addobject.
6389         * python/py-param.c (gdbpy_initialize_parameters): Use
6390         gdb_pymodule_addobject.
6391         * python/py-progspace.c (gdbpy_initialize_pspace): Use
6392         gdb_pymodule_addobject.
6393         * python/py-symbol.c (gdbpy_initialize_symbols): Use
6394         gdb_pymodule_addobject.
6395         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6396         gdb_pymodule_addobject.
6397         * python/py-type.c (gdbpy_initialize_types): Use
6398         gdb_pymodule_addobject.
6399         * python/py-utils.c (gdb_pymodule_addobject): New function.
6400         * python/py-value.c (gdbpy_initialize_values): Use
6401         gdb_pymodule_addobject.
6402         * python/python-internal.h (gdb_pymodule_addobject): Declare.
6403         * python/python.c (_initialize_python): Use
6404         gdb_pymodule_addobject.
6405
6406 2013-05-20  Tom Tromey  <tromey@redhat.com>
6407
6408         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6409         * python/py-param.c (get_set_value, get_show_value): Use
6410         explicit decrefs.
6411         * python/python.c (start_type_printers, apply_type_printers):
6412         Use explicit decrefs.
6413
6414 2013-05-20  Tom Tromey  <tromey@redhat.com>
6415
6416         * python/py-evts.c (gdbpy_initialize_py_events): Don't
6417         incref the module.
6418
6419 2013-05-20  Tom Tromey  <tromey@redhat.com>
6420
6421         * python/python.c (gdbpy_run_events): Decref the result
6422         of PyObject_CallObject.
6423
6424 2013-05-20  Tom Tromey  <tromey@redhat.com>
6425
6426         * python/py-symtab.c (set_sal): Use
6427         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
6428         (symtab_and_line_to_sal_object): Update.
6429
6430 2013-05-20  Tom Tromey  <tromey@redhat.com>
6431
6432         * python/py-param.c (compute_enum_values): Decref 'item'.
6433
6434 2013-05-20  Tom Tromey  <tromey@redhat.com>
6435
6436         * mi/mi-main.c: Include python-internal.h.
6437         (mi_cmd_list_features): Check gdb_python_initialized.
6438         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6439         (python_inferior_exit, python_new_objfile, add_thread_object)
6440         (delete_thread_object, py_free_inferior): Check
6441         gdb_python_initialized.
6442         * python/py-prettyprint.c (apply_val_pretty_printer): Check
6443         gdb_python_initialized.
6444         * python/py-type.c (save_objfile_types): Check
6445         gdb_python_initialized.
6446         * python/python-internal.h (gdb_python_initialized): Declare.
6447         * python/python.c (ensure_python_env): Throw exception if
6448         Python not initialized.
6449         (before_prompt_hook, source_python_script_for_objfile)
6450         (start_type_printers, apply_type_printers,
6451         free_type_printers): Check gdb_python_initialized.
6452         * varobj.c (varobj_get_display_hint)
6453         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6454         (install_new_value_visualizer, varobj_set_visualizer)
6455         (value_get_print_value): Check gdb_python_initialized.
6456
6457 2013-05-20  Tom Tromey  <tromey@redhat.com>
6458
6459         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6460         Check errors.
6461         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6462         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6463         Check errors.
6464         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6465         Check errors.
6466         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6467         Check errors.
6468         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6469         Check errors.
6470         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6471         init function to return 'int'.
6472         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6473         Return 'int'.  Check errors.
6474         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6475         Check errors.
6476         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6477         Return 'int'.  Check errors.
6478         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6479         Check errors.
6480         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6481         Check errors.
6482         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6483         Check errors.
6484         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6485         Check errors.
6486         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6487         Check errors.
6488         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6489         Check errors.
6490         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6491         Check errors.
6492         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6493         Check errors.
6494         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6495         Check errors.
6496         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6497         Check errors.
6498         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6499         Check errors.
6500         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6501         Check errors.
6502         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6503         Check errors.
6504         * python/python-internal.h (gdbpy_initialize_auto_load,
6505         gdbpy_initialize_values, gdbpy_initialize_frames,
6506         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6507         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6508         gdbpy_initialize_blocks, gdbpy_initialize_types,
6509         gdbpy_initialize_functions, gdbpy_initialize_pspace,
6510         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6511         gdbpy_initialize_finishbreakpoints,
6512         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6513         gdbpy_initialize_thread, gdbpy_initialize_inferior,
6514         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6515         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6516         gdbpy_initialize_signal_event,
6517         gdbpy_initialize_breakpoint_event,
6518         gdbpy_initialize_continue_event,
6519         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6520         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6521         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6522         * python/python.c (gdb_python_initialized): New global.
6523         (gdbpy_initialize_events): Return 'int'.  Check errors.
6524         (_initialize_python): Check errors.  Set
6525         gdb_python_initialized.
6526
6527 2013-05-20  Tom Tromey  <tromey@redhat.com>
6528
6529         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6530         Decref the reslut of PyObject_CallMethod.
6531
6532 2013-05-20  Tom Tromey  <tromey@redhat.com>
6533
6534         * python/py-event.c (gdbpy_initialize_event_generic): Return
6535         early if PyType_Ready fails.
6536
6537 2013-05-20  Tom Tromey  <tromey@redhat.com>
6538
6539         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6540         as 'default' in the switch.
6541
6542 2013-05-20  Tom Tromey  <tromey@redhat.com>
6543
6544         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
6545         get_addr_from_python calls out of TRY_CATCH.
6546         (infpy_write_memory, infpy_search_memory): Likewise.
6547         * python/py-utils.c (get_addr_from_python): Return negative
6548         value on error.  Use TRY_CATCH.
6549         * python/python-internal.h (get_addr_from_python): Use
6550         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6551
6552 2013-05-20  Tom Tromey  <tromey@redhat.com>
6553
6554         * python/py-event.c (evpy_emit_event): Decref the
6555         result of PyObject_CallFunctionObjArgs.
6556
6557 2013-05-20  Tom Tromey  <tromey@redhat.com>
6558
6559         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6560         Correctly decref.
6561
6562 2013-05-20  Tom Tromey  <tromey@redhat.com>
6563
6564         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6565
6566 2013-05-20  Tom Tromey  <tromey@redhat.com>
6567
6568         * python/py-event.h (gdbpy_initialize_event_generic): Use
6569         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6570         * python/py-evts.c (add_new_registry): Use
6571         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6572         * python/python-internal.h
6573         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6574
6575 2013-05-20  Tom Tromey  <tromey@redhat.com>
6576
6577         * python/py-arch.c (archpy_disassemble): Update.
6578         * python/py-type.c (typy_get_composite, typy_lookup_typename)
6579         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6580         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6581         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6582         macro.
6583         (GDB_PY_HANDLE_EXCEPTION): Update.
6584         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
6585
6586 2013-05-20  Tom Tromey  <tromey@redhat.com>
6587
6588         * python/python-internal.h (events_object_type): Remove.
6589
6590 2013-05-20  Tom Tromey  <tromey@redhat.com>
6591
6592         * python/py-event.h (evpy_emit_event): Use
6593         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6594         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6595         New macro.
6596
6597 2013-05-20  Tom Tromey  <tromey@redhat.com>
6598
6599         * py-evtregistry.c (create_event_object): Decref
6600         eventregistry_object if PyList_New fails.
6601
6602 2013-05-20  Tom Tromey  <tromey@redhat.com>
6603
6604         * py-cmd.c (gdbpy_string_to_argv): Check result of
6605         PyList_New.
6606
6607 2013-05-20  Tom Tromey  <tromey@redhat.com>
6608
6609         * python/python.c (before_prompt_hook): Add cleanup to
6610         decref 'hook'.
6611
6612 2013-05-20  Tom Tromey  <tromey@redhat.com>
6613
6614         * python/py-function.c (fnpy_init): Decref result of
6615         PyObject_GetAttrString.
6616
6617 2013-05-20  Tom Tromey  <tromey@redhat.com>
6618
6619         * python/py-threadevent.c (get_event_thread): Use
6620         CPYCHECKER_RETURNS_BORROWED_REF.
6621         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6622         New define.
6623         (pspace_to_pspace_object, objfile_to_objfile_object)
6624         (find_thread_object): Use it.
6625
6626 2013-05-20  Tom Tromey  <tromey@redhat.com>
6627
6628         * python/py-arch.c (arch_object_type): Use
6629         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6630         * python/py-block.c (block_syms_iterator_object_type):
6631         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6632         * python/py-bpevent.c (breakpoint_event_object_type):
6633         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6634         * python/py-cmd.c (cmdpy_object_type): Use
6635         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6636         * python/py-continueevent.c (continue_event_object_type):
6637         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6638         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6639         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6640         * python/py-events.h (thread_event_object_type):
6641         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6642         * python/py-evtregistry.c (eventregistry_object_type): Use
6643         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6644         * python/py-exitedevent.c (exited_event_object_type):
6645         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6646         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6647         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6648         * python/py-function.c (fnpy_object_type): Use
6649         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6650         * python/py-inferior.c (inferior_object_type, membuf_object_type):
6651         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6652         * python/py-infthread.c (thread_object_type): Use
6653         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6654         * python/py-lazy-string.c (lazy_string_object_type):
6655         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6656         * python/py-newobjfileevent.c (new_objfile_event_object_type):
6657         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6658         * python/py-objfile.c (objfile_object_type): Use
6659         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6660         * python/py-param.c (parmpy_object_type):
6661         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6662         * python/py-progspace.c (pspace_object_type):
6663         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6664         * python/py-signalevent.c (signal_event_object_type):
6665         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6666         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6667         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6668         * python/py-type.c (type_object_type, field_object_type)
6669         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6670         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6671         define.
6672         (value_object_type, block_object_type, symbol_object_type)
6673         (event_object_type, stop_event_object_type, breakpoint_object_type)
6674         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6675
6676 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
6677
6678         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6679         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6680
6681 2013-05-20  Doug Evans  <dje@google.com>
6682
6683         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
6684         For Fission.
6685         * dwarf2read.c (struct dwarf2_per_cu_data): New member
6686         reading_dwo_directly.
6687         (struct signatured_type): New member dwo_unit.
6688         (struct die_reader_specs): New member comp_dir.
6689         (create_signatured_type_table_from_index): Use malloc for
6690         all_type_units instead of objfile's obstack.
6691         (create_all_type_units): Ditto.
6692         (fill_in_sig_entry_from_dwo_entry): New function.
6693         (add_type_unit): New function.
6694         (lookup_dwo_signatured_type): New function.
6695         (lookup_dwp_signatured_type): New function.
6696         (lookup_signatured_type): New arg cu.  All callers updated.
6697         (init_cu_die_reader): Initialize comp_dir.
6698         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
6699         Change assert of matching type signatures to call error on mismatch.
6700         (lookup_dwo_unit): Add assert.
6701         (init_tu_and_read_dwo_dies): New function.
6702         (init_cutu_and_read_dies): Call it.
6703         (build_type_unit_groups): Handle case of no type unit groups created.
6704         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6705         (lookup_dwo_cutu): Tweak complaint.
6706         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6707         (dwarf2_per_objfile_free): Free all_type_units.
6708
6709 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
6710
6711         * windows-nat.c (handle_unload_dll): Add missing empty line.
6712
6713 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
6714
6715         * dwarf2read.c (prototyped_function_p): New function.
6716         (read_subroutine_type): Use it.
6717
6718 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
6719
6720         * rs6000-aix-tdep.c: De-indent some example code provided
6721         as a comment.
6722
6723 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6724
6725         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6726         region is ok for a hardware watchpoint using the new ptrace interface
6727         on Power servers.
6728
6729 2013-05-17  Doug Evans  <dje@google.com>
6730
6731         * NEWS: Mention new maintenance commands check-symtabs, and
6732         expand-symtabs, and renamed check-psymtabs.
6733         * psymtab.c (maintenance_check_psymtabs): Renamed from
6734         maintenance_check_symtabs.  Only process already-expanded symbol
6735         tables.
6736         (_initialize_psymtab): Update.
6737         * symmisc.c (maintenance_check_symtabs): New function.
6738         (maintenance_expand_name_matcher): New function
6739         (maintenance_expand_file_matcher): New function
6740         (maintenance_expand_symtabs): New function.
6741         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6742         commands.
6743
6744 2013-05-17  Tom Tromey  <tromey@redhat.com>
6745
6746         * python/py-inferior.c (infpy_read_memory): Don't call
6747         PyErr_SetString if PyObject_New fails.
6748         * python/py-frame.c (frame_info_to_frame_object): Don't call
6749         PyErr_SetString if PyObject_New fails.
6750
6751 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
6752
6753         * acinclude.m4: Add check for dlopen in libdl.
6754         * configure.ac: Ditto.
6755         * configure: Regenerate.
6756
6757 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
6758
6759         * frame.c (frame_stash): Convert to htab.
6760         (frame_addr_hash): New function.
6761         (frame_addr_hash_eq): New function.
6762         (frame_stash_create): Convert function to create
6763         a hash table.
6764         (frame_stash_add): Convert function to add an entry to a hash
6765         table.
6766         (frame_stash_find): Convert function to search the hash table.
6767         (frame_stash_invalidate): Convert function to empty the hash
6768         table.
6769         (get_frame_id): Only add to stash if a frame_id is created.
6770         (_initialize_frame): Call frame_stash_create.
6771
6772 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
6773
6774         * configure.ac: Ensure MIG is available when building for GNU Hurd
6775         hosts.
6776         * configure: Regenerate.
6777
6778 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
6779
6780         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6781
6782 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
6783
6784         * ada-lang.c (ada_make_symbol_completion_list): Make sure
6785         all cleanups are done before returning from this function.
6786
6787 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
6788
6789         * utils.h: #include "exceptions.h".
6790         (enum errors): Remove partial declaration.
6791
6792 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
6793
6794         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6795         * gdbarch.h, gdbarch.c: Regenerate.
6796         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6797         handling.
6798
6799         * rs6000-aix-tdep.h: New file.
6800         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6801         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6802         "xml-utils.h".
6803         (struct field_info, struct ld_info_desc): New types.
6804         (ld_info32_desc, ld_info64_desc): New static constants.
6805         (struct ld_info): New type.
6806         (rs6000_aix_extract_ld_info): New function.
6807         (rs6000_aix_shared_library_to_xml): Likewise.
6808         (rs6000_aix_ld_info_to_xml): Likewise.
6809         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6810         (rs6000_aix_init_osabi): Add call to
6811         set_gdbarch_core_xfer_shared_libraries_aix.
6812         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6813         Remove "xml-utils.h" include.
6814         (LdInfo): Delete typedef.
6815         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6816         Delete macros.
6817         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6818         Adjust code accordingly.
6819         (rs6000_core_ldinfo): Delete, folded into
6820         rs6000_aix_core_xfer_shared_libraries_aix.
6821         (rs6000_xfer_shared_library): Delete.
6822         (rs6000_xfer_shared_libraries): Reimplement.
6823
6824 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
6825
6826         * record.c (record_goto_cmdlist): New.
6827         (cmd_record_goto): Split into this ...
6828         (cmd_record_goto_begin): ... this
6829         (cmd_record_goto_end): ... and this.
6830         (_initialize_record): Change "record goto" to prefix command.
6831         Add commands for "record goto begin" and "record goto end".
6832         Add an alias for "record goto start" to "record goto begin".
6833
6834 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6835
6836         * linespec.c (convert_linespec_to_sals): New comment for
6837         SOURCE_FILENAME assignment.
6838
6839 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6840
6841         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6842         internal_warning.
6843
6844 2013-05-14  Tom Tromey  <tromey@redhat.com>
6845
6846         * eval.c (parse_and_eval_long): Make 'exp' const.
6847         * value.h (parse_and_eval_long): Update.
6848
6849 2013-05-14  Tom Tromey  <tromey@redhat.com>
6850
6851         * ui-file.c (gdb_fopen): Make arguments const.
6852         * ui-file.h (gdb_fopen): Make arguments const.
6853
6854 2013-05-14  Tom Tromey  <tromey@redhat.com>
6855
6856         * remote.c (remote_set_trace_notes): Make arguments const.
6857         * target.c (update_current_target): Update cast.
6858         * target.h (to_set_trace_notes): Make arguments const.
6859
6860 2013-05-14  Tom Tromey  <tromey@redhat.com>
6861
6862         * go32-nat.c (go32_terminal_info): Make 'args' const.
6863         * inferior.h (child_terminal_info): Update.
6864         * inflow.c (child_terminal_info): Make 'args' const.
6865         * target.c (default_terminal_info): Make 'args' const.
6866         (debug_to_terminal_save_ours): Likewise.
6867         * target.h (struct target_ops) <to_terminal_info>: Make argument
6868         const.
6869
6870 2013-05-13  Tom Tromey  <tromey@redhat.com>
6871
6872         * gcore.c (create_gcore_bfd): Make 'filename' const.
6873         * gcore.h (create_gcore_bfd): Make 'filename' const.
6874         * record-full.c (record_full_save): Make 'recfilename' const.
6875         * target.c (target_save_record): Make 'filename' const.
6876         * target.h (struct target_ops) <to_save_record>: Make 'filename'
6877         const.
6878         (target_save_record): Likewise.
6879
6880 2013-05-13  Tom Tromey  <tromey@redhat.com>
6881
6882         PR gdb/15338:
6883         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6884         ranges section has been read.
6885
6886 2013-05-13  Tom Tromey  <tromey@redhat.com>
6887
6888         PR exp/15364:
6889         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6890         STRUCTOP_PTR>: Return a not_lval value for
6891         EVAL_AVOID_SIDE_EFFECTS.
6892         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6893         for EVAL_AVOID_SIDE_EFFECTS.
6894
6895 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
6896
6897         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6898         floating point registers to register type before storing
6899         value.
6900         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6901         Likewise.
6902
6903 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6904             Tom Tromey  <tromey@redhat.com>
6905
6906         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6907         New functions.
6908         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6909         Declare.
6910         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6911         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6912         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6913         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6914
6915 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
6916             Tom Tromey  <tromey@redhat.com>
6917
6918         PR build/15414:
6919         * configure: Rebuild.
6920         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6921         with -Wno-format.
6922
6923 2013-05-10  Pedro Alves  <palves@redhat.com>
6924
6925         * remote.c (_initialize_remote): Fix spelling of
6926         qXfer:traceframe-info:read packet in packet config command.
6927
6928 2013-05-10  David Taylor  <dtaylor@emc.com>
6929
6930         PR remote/15455
6931
6932         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6933         "QTro" at start of packet.
6934
6935 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6936
6937         * solib-aix.c (solib_aix_relocate_section_addresses):
6938         For the .bss section action, apply the same offset as
6939         the .data section.
6940
6941 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6942
6943         * solib-aix.c (solib_aix_relocate_section_addresses):
6944         Remove FIXME comment.
6945
6946 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6947
6948         PR tdep/15420:
6949         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6950         New functions, directly copied from sparc-sol-thread.c.
6951         * sparc-sol-thread.c: Delete.
6952         * configure.ac: Remove code handling sparc-solaris-thread.c.
6953         * configure: Regenerate.
6954
6955 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
6956
6957         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6958         filter logic.
6959         (backtrace_command): Add "no-filters" option parsing.
6960         (_initialize_stack): Alter help to reflect "no-filters" option.
6961         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6962         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6963         (py-frame.o): Add target
6964         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6965         filter files.
6966         * python/python.h: Add new frame filter constants, and flag enum.
6967         (apply_frame_filter): Add definition.
6968         * python/python.c (apply_frame_filter): New non-Python
6969         enabled function.
6970         * python/py-utils.c (py_xdecref): New function.
6971         (make_cleanup_py_xdecref): Ditto.
6972         * python/py-objfile.c: Declare frame_filters dictionary.
6973         (objfpy_dealloc): Add frame_filters dealloc.
6974         (objfpy_new): Initialize frame_filters attribute.
6975         (objfile_to_objfile_object): Ditto.
6976         (objfpy_get_frame_filters): New function.
6977         (objfpy_set_frame_filters): New function.
6978         * python/py-progspace.c: Declare frame_filters dictionary.
6979         (pspy_dealloc): Add frame_filters dealloc.
6980         (pspy_new): Initialize frame_filters attribute.
6981         (pspacee_to_pspace_object): Ditto.
6982         (pspy_get_frame_filters): New function.
6983         (pspy_set_frame_filters): New function.
6984         * python/py-framefilter.c: New file.
6985         * python/lib/gdb/command/frame_filters.py: New file.
6986         * python/lib/gdb/frames.py: New file.
6987         * python/lib/gdb/__init__.py: Initialize global frame_filters
6988         dictionary
6989         * python/lib/gdb/FrameDecorator.py: New file.
6990         * python/lib/gdb/FrameIterator.py: New file.
6991         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6992         * mi/mi-cmds.h: Declare.
6993         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6994         --no-frame-filter logic, and Python frame filter logic.
6995         (stack_enable_frame_filters): New function.
6996         (parse_no_frame_option): Ditto.
6997         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6998         filter logic.
6999         (mi_cmd_stack_list_locals): Ditto.
7000         (mi_cmd_stack_list_args): Ditto.
7001         (mi_cmd_stack_list_variables): Ditto.
7002         * NEWS: Add frame filter note.
7003
7004 2013-05-09  Doug Evans  <dje@google.com>
7005
7006         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7007         All callers updated.
7008         (syms_from_objfile): Ditto.  Make static.
7009         (symbol_file_add_with_addrs): Renamed from
7010         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
7011         num_offsets.  All callers updated.
7012         * symfile.h (syms_from_objfile): Delete.
7013
7014         * symfile.c (decrement_reading_symtab): Add assert.
7015         (increment_reading_symtab): Ditto.
7016
7017 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
7018
7019         * source.c (forward_search_command): Replace call to getc
7020         by call to fgetc.
7021         (reverse_search_command): Likewise.
7022
7023 2013-05-08  Doug Evans  <dje@google.com>
7024
7025         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7026         matching test.
7027
7028 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7029
7030         * sol-thread.c (info_cb): Factorize the code a little.
7031
7032 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7033
7034         * sol-thread.c (info_cb): Rework the output of the "maintenance
7035         info sol-threads" command a bit.
7036
7037 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7038
7039         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7040         Replace ti.ti_startfunc by ti.ti_pc.
7041
7042 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7043
7044         * solib-aix.c (solib_aix_free_library_list): New function
7045         for the case where HAVE_LIBEXPAT is not defined.
7046
7047 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7048
7049         PR breakpoints/15413:
7050         * breakpoint.c (condition_completer): Simplify the code to
7051         disconsider multiple locations of breakpoints when completing the
7052         "condition" command.
7053
7054 2013-05-07  Pierre Muller  <muller@sourceware.org>
7055
7056         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7057         instead of <sys/wait.h>.
7058
7059 2013-05-07  Pierre Muller  <muller@sourceware.org>
7060
7061         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7062         trailing new line from warning message.
7063
7064 2013-05-07  Pierre Muller  <muller@sourceware.org>
7065
7066         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7067         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7068
7069 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7070
7071         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7072         error message (ARI fix).
7073
7074 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7075
7076         * features/library-list-aix.dtd: Replace library-list by
7077         library-list-aix.
7078         * rs6000-nat.c: Replace library-list by library-list-aix
7079         throughout.
7080         * solib-aix.c: Likewise.
7081
7082 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7083
7084         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7085         Renames TARGET_OBJECT_AIX_LIBRARIES.
7086         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7087         TARGET_OBJECT_LIBRARIES_AIX throughout.
7088         * solib-aix.c: Likwise.
7089
7090 2013-05-07  Yao Qi  <yao@codesourcery.com>
7091
7092         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7093         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7094
7095 2013-05-07  Yao Qi  <yao@codesourcery.com>
7096
7097         * solib-dsbt.c (enable_break): Declare.
7098         (dsbt_current_sos): Remove call to enable_break2.
7099         (enable_break2): Rename to enable_break.  Set solib breakpoint
7100         on '_dl_debug_state'.
7101         (enable_break): Remove.
7102
7103 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
7104
7105         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7106         debug state prior to replicating existing hardware watchpoints or
7107         breakpoints.
7108
7109 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
7110
7111         * gcore.c (gcore_create_callback): Ignore sections with
7112         separate_debug_objfile_backlink != NULL.
7113
7114 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
7115             Andrew Jenner  <andrew@codesourcery.com>
7116             Chung-Lin Tang  <cltang@codesourcery.com>
7117             Julian Brown  <julian@codesourcery.com>
7118
7119         Based on the nios2-elf port from Altera Corporation.
7120
7121         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7122         nios2-linux-tdep.o.
7123         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7124         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7125         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7126         * nios2-tdep.h: New.
7127         * nios2-tdep.c: New.
7128         * nios2-linux-tdep.c: New.
7129         * features/Makefile (WHICH): Add nios2-linux.
7130         (nios2-linux-expedite): Set.
7131         * features/nios2-cpu.xml: New.
7132         * features/nios2.xml: New.
7133         * features/nios2-linux.xml: New.
7134         * features/nios2.c: New (autogenerated).
7135         * features/nios2-linux.c: New (autogenerated).
7136         * regformats/nios2-linux.dat: New (autogenerated).
7137         * NEWS (Changes since GDB 7.6): Add new Nios II targets
7138         and commands.
7139
7140 2013-05-06  Doug Evans  <dje@google.com>
7141
7142         * symfile.c: Whitespace cleanup.
7143
7144         * solist.h (struct target_so_ops): New member clear_so.
7145         * solib-svr4.c (svr4_clear_so): New function.
7146         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7147         * solib.c (clear_so): Renamed from free_so_symbols.
7148         All callers updated.  Call target clear_so if it exists.
7149
7150 2013-05-06  Tom Tromey  <tromey@redhat.com>
7151
7152         * ada-lang.c (ada_value_primitive_packed_val): Don't
7153         call value_incref.
7154         * value.c (set_value_parent): Incref the new parent and decref
7155         the old parent.
7156         (value_copy, value_primitive_field): Use set_value_parent.
7157
7158 2013-05-06  Tom Tromey  <tromey@redhat.com>
7159
7160         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7161         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7162         if needed.
7163         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7164         * dwarf2read.c (write_constant_as_bytes)
7165         (dwarf2_fetch_constant_bytes): New functions.
7166
7167 2013-05-06  Tom Tromey  <tromey@redhat.com>
7168
7169         * dwarf2read.c (dwarf2_const_value_data): Remove unused
7170         parameters.
7171         (dwarf2_const_value_attr): Update.
7172
7173 2013-05-06  Tom Tromey  <tromey@redhat.com>
7174
7175         * somread.c (som_symfile_offsets): Add 'const' to addrs.
7176         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7177         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7178         Remove declaration.
7179
7180 2013-05-06  Tom Tromey  <tromey@redhat.com>
7181
7182         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7183         objfile's obstack.
7184
7185 2013-05-06  Doug Evans  <dje@google.com>
7186
7187         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7188         * stabsread.h (process_one_symbol): Update declaration.
7189         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7190         * elfread.c (elf_symfile_relocate_probe): Ditto.
7191         * psymtab.c (relocate_psymtabs): Ditto.
7192         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7193         (objfile_relocate): Ditto.
7194         * objfiles.h (objfile_relocate): Update declaration.
7195         * symfile.c (relative_addr_info_to_section_offsets): Constify
7196         addrs parameter.
7197         (default_symfile_offsets): Ditto.
7198         (syms_from_objfile_1): Constify offsets parameter.
7199         (syms_from_objfile): Ditto.
7200         (symbol_file_add_with_addrs_or_offsets): Ditto.
7201         (symfile_map_offsets_to_segments): Constify data parameter.
7202         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7203         delta parameters of member relocate.
7204         (struct sym_probe_fns): Constify new_offsets,
7205         delta parameters of member sym_relocate_probe.
7206         (struct sym_fns): Constify section_addr_info parameter of member
7207         sym_offsets.
7208         (relative_addr_info_to_section_offsets): Update declaration.
7209         (default_symfile_offsets): Ditto.
7210         (syms_from_objfile): Ditto.
7211         (symfile_map_offsets_to_segments): Ditto.
7212
7213         * symfile.c (syms_from_objfile_1): Use correct section count when
7214         objfile->sf == NULL.
7215
7216 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
7217
7218         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7219
7220 2013-05-06  Doug Evans  <dje@google.com>
7221
7222         * psympriv.h (struct partial_symtab): Augment comment for member
7223         section_offsets.
7224
7225 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7226
7227         Reimplement shared library support on ppc-aix...
7228         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7229         * features/library-list-aix.dtd: New file.
7230         * solib-aix.h, solib-aix.c: New file.
7231         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7232         (rs6000_find_toc_address_hook): Delete.
7233         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7234         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7235         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
7236         "xml-utils.h".
7237         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7238         (vmap_symtab, fixup_breakpoints): Delete.
7239         (rs6000_xfer_shared_libraries): New function.
7240         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7241         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7242         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7243         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7244         (rs6000_xfer_shared_library): New function.
7245         (find_toc_address): Delete.
7246         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7247         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7248         * xcoffread.c (record_minimal_symbol): Reloate symbol address
7249         before creating minimal symbol.  Adjust function description
7250         accordingly.
7251         (scan_xcoff_symtab): Replace call to
7252         prim_record_minimal_symbol_and_info by call to
7253         record_minimal_symbol.
7254         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7255         around default_symfile_offsets.
7256         * configure.tgt: Add solib-aix.o to gdb_target_obs for
7257         powerpc-aix targets.
7258         * config/rs6000/nm-rs6000.h: Delete.
7259         * config/powerpc/aix.mh (NAT_FILE): Delete.
7260         (NATDEPFILES): Remove xcoffsolib.o.
7261         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7262         (ALL_TARGET_OBS): Add solib-aix.o.
7263         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7264         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
7265         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
7266         * xcoffsolib.h, xcoffsolib.c: Delete.
7267
7268         * solib.c (reload_shared_libraries): Remove reference to
7269         SOLIB_CREATE_INFERIOR_HOOK.
7270         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7271         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7272         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7273         comment.
7274         * corelow.c (deprecated_core_resize_section_table): Delete.
7275         * exec.c: Remove include of xcoffsolib.h".
7276         (map_vmap, vmap): Delete.
7277         (exec_close_1): Remove references to vmap.
7278         (exec_file_attach): Remove vmap handling code, and reference
7279         to DEPRECATED_IBM6000_TARGET.
7280         (bfdsec_to_vmap): Delete.
7281         (exec_files_info): Remove block of code handling VMAP.
7282         * infcmd.c (post_create_inferior): Remove reference to
7283         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7284         * infrun.c (follow_exec): Remove reference to
7285         SOLIB_CREATE_INFERIOR_HOOK.
7286         * stack.c (print_frame): Remove reference to PC_SOLIB.
7287         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7288         (dsbt_relocate_main_executable): Likewise.
7289         * solib-frv.c (frv_current_sos): Likewise.
7290
7291 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7292
7293         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7294         to target_write_memory and target_read_memory.
7295
7296 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7297
7298         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7299         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7300
7301 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7302
7303         * darwin-nat.c: Replace all "%x" instances in format strings
7304         into "0x%x" throughout.
7305
7306 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7307
7308         * darwin-nat.c (darwin_mourn_inferior): Replace call to
7309         gdb_assert by call to MACH_CHECK_ERROR.
7310         (darwin_attach_pid): Raise an error rather than a failed
7311         assertion when various system calls failed.  Report a warning
7312         instead of raising a failed assertion when PREV_NOT is not NULL
7313         after call to mach_port_request_notification.
7314         (darwin_ptrace_me): Raise an error rather than a failed
7315         assertion when read returns nonzero.
7316
7317 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7318
7319         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7320
7321 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7322
7323         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7324
7325 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7326
7327         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7328         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7329         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
7330         a stale cleanup.  Fix double free of NAME.
7331
7332 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
7333
7334         * windows-nat.c (windows_delete_thread): Accept an additional
7335         argument, the thread's exit code, and announce thread death when
7336         print_thread_events is non-zero and we are deleting a thread that
7337         is not the main thread.
7338         (get_windows_debug_event): Pass thread exit code to
7339         windows_delete_thread.
7340
7341 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
7342
7343         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7344         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7345         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7346         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7347         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7348         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7349         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7350         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7351         (gdbarch_tdep): New struct.
7352         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7353         E_NUM_REGS.
7354         (v850e3v5_register_name): New function.
7355         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7356         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
7357         code handling the struct return conventions for the RH850 ABI.
7358         Update all callers.
7359         (v850_eight_byte_align_p): New function.
7360         (v850_push_call_dummy): Push structs by value, not by reference
7361         for the RH850 ABI.  Add support for eight byte alignment.
7362         (v850_dbtrap_breakpoint_from_pc): New function.
7363         (v850_gdbarch_init): Add ABI detection code.  Register
7364         v850e3v5_register_name for the v850e3v5 architecture.  Set the
7365         number of registers for v850e3v5.  Register
7366         v850_dbtrap_breakpoint_from_pc as appropriate.
7367         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7368
7369 2013-05-03  Doug Evans  <dje@google.com>
7370
7371         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7372         of bfd_count_sections.
7373         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7374         * symfile.c (default_symfile_offsets): Ditto.
7375         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
7376         one entry, not bfd_count_sections entries.
7377
7378 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
7379
7380         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7381         `save' and `restore' register groups.  Don't include SPL
7382         or SPH in these groups.
7383         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
7384         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
7385         RL78_ES_REGNUM, and RL78_CS_REGNUM.
7386         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
7387         dwarf2_append_unwinders().
7388
7389 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7390
7391         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7392         ignore SIGINT and SIGTRAP in case these internal signals are
7393         caught explicitely.
7394
7395 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
7396
7397         * darwin-nat.c (darwin_read_write_inferior): Change types
7398         of parameters rdaddr and wraddr to "gdb_byte *". Change type
7399         of copy_count to "mach_msg_type_number_t".
7400         (darwin_read_dyld_info): Change type of parameter
7401         rdaddr to "gdb_byte *".
7402
7403 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
7404
7405         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7406         of &info->load_map from "char *" to "gdb_byte *".
7407
7408 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
7409
7410         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7411         from "char *" to "gdb_byte *".
7412         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7413
7414 2013-04-30  Doug Evans  <dje@google.com>
7415
7416         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7417         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7418         DWO stub.  If DWO isn't found, just use stub.
7419         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7420
7421         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7422         calling init_cutu_and_read_dies.
7423
7424 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7425
7426         * target-descriptions.c (maint_print_c_tdesc_cmd):
7427         Add case to parse structures as register types and
7428         bitfields.
7429
7430 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7431
7432         * MAINTAINERS (Write After Approval): Add myself to the list.
7433
7434 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7435
7436         * sol-thread.c (rw_common): Change type of parameter "buf"
7437         to "gdb_byte *".
7438         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7439         rw_common to "gdb_byte *" instead of "char *".
7440
7441 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7442
7443         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7444         of local variable msym to const struct bound_minimal_symbol.
7445         Adjust use accordingly.
7446         [ti.ti_state == TD_THR_SLEEP]: Likewise.
7447
7448 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
7449
7450         * i386gnu-nat.c (CREG_OFFSET): New macro.
7451         (creg_offset): New array.
7452         (CREG_ADDR): Use creg_offset instead of reg_offset.
7453
7454 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7455
7456         * mep-tdep.c (mep_write_pc): Delete.
7457         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7458         Add call to set_gdbarch_pc_regnum.
7459
7460 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7461
7462         * common/filestuff.c: Replace #include <dirent.h> by
7463         #include "gdb_dirent.h".
7464
7465 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7466
7467         * common/filestuff.c: Replace #include <sys/stat.h> by
7468         #include "gdb_stat.h".
7469
7470 2013-04-29  Pierre Muller  <muller@sourceware.org>
7471
7472         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7473         editCase function rule.
7474         (get_DW_AT_signature_type): Likewise.
7475
7476 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
7477
7478         * m32r-tdep.c (m32r_write_pc): Delete.
7479         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7480         Add call to set_gdbarch_pc_regnum.
7481
7482 2013-04-29  Pierre Muller  <muller@sourceware.org>
7483
7484         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7485
7486 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
7487
7488         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7489
7490 2013-04-28  Yao Qi  <yao@codesourcery.com>
7491
7492         * solib-dsbt.c (fetch_loadmap): Re-indent.
7493         (displacement_from_map, enable_break2): Likewise.
7494         (dsbt_relocate_section_addresses): Likewise.
7495
7496 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
7497
7498         GDB 7.6 released.
7499
7500 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
7501
7502         PR corefiles/14983:
7503         * dwarf2read.c (process_full_comp_unit): Always create a static
7504         block.
7505
7506 2013-04-25  Hui Zhu  <hui@codesourcery.com>
7507
7508         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7509         to loc->cmd_bytecode.
7510
7511 2013-04-24  Doug Evans  <dje@google.com>
7512
7513         * dwarf2read.c (setup_type_unit_groups): Fix comment.
7514
7515 2013-04-22  Keith Seitz  <keiths@redhat.com>
7516
7517         * tracepoint.c (trace_save):  Call the writer's start method.
7518
7519 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
7520
7521         PR gdb/10462
7522         * cli/cli-decode.c (lookup_command): Show an error if there is no space
7523         before argument.
7524
7525 2013-04-23  Tom Tromey  <tromey@redhat.com>
7526
7527         * common/filestuff.c: Check USE_WIN32API before including
7528         sys/socket.h.
7529         (HAVE_F_GETFD): New define.
7530         (mark_cloexec): Check HAVE_F_GETFD.
7531         (gdb_open_cloexec): Change 'mode' to unsigned long.
7532         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7533         (gdb_pipe_cloexec): Check HAVE_PIPE.
7534         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7535         long.
7536
7537 2013-04-23  Hui Zhu  <hui@codesourcery.com>
7538
7539         PR gdb/15293
7540         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7541
7542 2013-04-23  Hui Zhu  <hui@codesourcery.com>
7543
7544         PR gdb/15165
7545         * breakpoint.c (dprintf_print_recreate): New.
7546         (save_breakpoints): Let it not save dprintf commands.
7547         (initialize_breakpoint_ops): Set dprintf_print_recreate.
7548
7549 2013-04-22  Tom Tromey  <tromey@redhat.com>
7550
7551         PR gdb/7912:
7552         * Makefile.in (SFILES): Add filestuff.c
7553         (COMMON_OBS): Add filestuff.o.
7554         (filestuff.o): New target.
7555         * auto-load.c (auto_load_objfile_script_1): Use
7556         gdb_fopen_cloexec.
7557         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7558         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7559         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7560         * common/agent.c (gdb_connect_sync_socket): Use
7561         gdb_socket_cloexec.
7562         * common/filestuff.c: New file.
7563         * common/filestuff.h: New file.
7564         * common/linux-osdata.c (linux_common_core_of_thread)
7565         (command_from_pid, commandline_from_pid, print_source_lines)
7566         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7567         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7568         gdb_fopen_cloexec.
7569         * common/linux-procfs.c (linux_proc_get_int)
7570         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7571         * config.in, configure: Rebuild.
7572         * configure.ac: Don't check for sys/socket.h.  Check for
7573         fdwalk, pipe2.
7574         * corelow.c (core_open): Use gdb_open_cloexec.
7575         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7576         * fork-child.c (fork_inferior): Call close_most_fds.
7577         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7578         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7579         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7580         Use gdb_fopen_cloexec.
7581         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7582         gdb_open_cloexec.
7583         (linux_async_pipe): Use gdb_pipe_cloexec.
7584         * remote-fileio.c (remote_fileio_func_open): Use
7585         gdb_open_cloexec.
7586         * remote.c (remote_file_put, remote_file_get): Use
7587         gdb_fopen_cloexec.
7588         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7589         close_most_fds.
7590         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7591         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7592         * solib.c (solib_find): Use gdb_open_cloexec.
7593         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7594         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7595         (tfile_open): Use gdb_open_cloexec.
7596         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7597         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7598         * xml-support.c (xml_fetch_content_from_file): Use
7599         gdb_fopen_cloexec.
7600         * main.c (captured_main): Call notice_open_fds.
7601
7602 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7603
7604         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7605         'char *' to 'gdb_byte *'.
7606         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7607         'gdb_byte'.
7608
7609 2013-04-22  Yao Qi  <yao@codesourcery.com>
7610
7611         * infrun.c: Fix typo in comment.
7612
7613 2013-04-22  Andrew Haley  <aph@redhat.com>
7614
7615         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7616         instead of "long".
7617
7618 2013-04-20  Yao Qi  <yao@codesourcery.com>
7619
7620         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7621         'char *' to 'gdb_byte *'.  Cast the return value of
7622         'bt_ctf_get_char_array' to 'gdb_byte *'.
7623
7624 2013-04-19  Pedro Alves  <palves@redhat.com>
7625
7626         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7627         -Wpointer-sign.
7628         * configure: Regenerate.
7629
7630 2013-04-19  Pedro Alves  <palves@redhat.com>
7631
7632         * ser-tcp.c (net_read_prim): Cast second argument to recv to
7633         'void *'.
7634
7635 2013-04-19  Pedro Alves  <palves@redhat.com>
7636
7637         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7638         Change type of 'myaddr' parameter to gdb_byte pointer.
7639         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
7640         to 'long long' pointer instead of to 'unsigned long long'.
7641         (monitor_write_memory_block, monitor_read_memory_single)
7642         (monitor_read_memory): Change type of 'myaddr' parameter to
7643         gdb_byte pointer.
7644
7645 2013-04-19  Pedro Alves  <palves@redhat.com>
7646
7647         * record.c (validate_history_size): Make parameter 'setting'
7648         unsigned.
7649
7650 2013-04-19  Pedro Alves  <palves@redhat.com>
7651
7652         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7653         to 'gdb_byte *'.
7654
7655 2013-04-19  Pedro Alves  <palves@redhat.com>
7656
7657         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7658         local to int.
7659
7660 2013-04-19  Pedro Alves  <palves@redhat.com>
7661
7662         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7663         * ada-tasks.c (read_fat_string_value): Likewise.
7664
7665 2013-04-19  Pedro Alves  <palves@redhat.com>
7666
7667         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7668         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
7669         'offset', and adjust.
7670
7671 2013-04-19  Pedro Alves  <palves@redhat.com>
7672
7673         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7674         (read_index_from_section): Add cast to 'char *'.
7675
7676 2013-04-19  Pedro Alves  <palves@redhat.com>
7677
7678         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7679
7680 2013-04-19  Pedro Alves  <palves@redhat.com>
7681
7682         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7683
7684 2013-04-19  Pedro Alves  <palves@redhat.com>
7685
7686         * record-full.c (record_full_get_bookmark): Change local 'ret'
7687         type to char * and add cast to gdb_byte *.
7688         (record_full_goto_bookmark): Handle 'bookmark' argument as a
7689         string.
7690         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7691
7692 2013-04-19  Pedro Alves  <palves@redhat.com>
7693
7694         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7695         * python/py-prettyprint.c (print_string_repr): Change type of
7696         'output' local to char *.  Add cast to gdb_byte * in
7697         LA_PRINT_STRING call.
7698         (print_children): Change type of 'output' local to char *.
7699         * python/py-value.c (valpy_string): Add cast to const char * in
7700         PyUnicode_Decode call.
7701
7702 2013-04-19  Pedro Alves  <palves@redhat.com>
7703
7704         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7705         and change its type to 'const char *'.  Adjust.
7706         (mips_send_packet): Add cast to 'char *', and remove cast to
7707         'unsigned char *'.
7708         (mips_receive_packet): Remove cast to 'unsigned char *'.
7709         (mips_load_srec): Use bfd_byte.
7710         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7711         (pmon_checkset): Make 'value' parameter unsigned.
7712
7713 2013-04-19  Pedro Alves  <palves@redhat.com>
7714
7715         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7716
7717 2013-04-19  Pedro Alves  <palves@redhat.com>
7718
7719         * remote.c (remote_write_bytes_aux, compare_sections_command)
7720         (remote_read_qxfer)
7721         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7722         (remote_hostio_readlink, remote_bfd_iovec_pread)
7723         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7724         binary buffer, and char when buffer is used as string.
7725         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7726         (trace_save, tfile_open, traceframe_walk_blocks)
7727         (tfile_fetch_registers): Likewise.
7728
7729 2013-04-19  Pedro Alves  <palves@redhat.com>
7730
7731         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7732         buffer and size_t size.  Adjust.
7733         * ser-base.h (ser_base_write): Adjust.
7734         * ser-go32.c (cnts): Change type to size_t.
7735         (dos_write): Change prototype -- take 'void *'
7736         buffer and size_t size.  Adjust.
7737         (dos_info): Print elements of 'cnts' as unsigned long.
7738         * serial.c (serial_write): Likewise.
7739         * serial.h (serial_write): Adjust.
7740         (struct serial_ops) <write>: Change prototype -- take 'void *'
7741         buffer and size_t size.  Adjust.
7742
7743 2013-04-19  Pedro Alves  <palves@redhat.com>
7744
7745         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7746         gdb_byte *.
7747         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7748
7749 2013-04-19  Pedro Alves  <palves@redhat.com>
7750
7751         * alpha-tdep.c (alpha_extract_return_value): Use
7752         regcache_cooked_read_unsigned to read 'v0'.
7753
7754 2013-04-19  Pedro Alves  <palves@redhat.com>
7755
7756         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7757         parameters 'at', 'as' and 'offset' to uint32_t.
7758
7759 2013-04-19  Pedro Alves  <palves@redhat.com>
7760
7761         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7762         'is64' to signed 'int'.
7763
7764 2013-04-19  Pedro Alves  <palves@redhat.com>
7765
7766         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7767         parameter to int *.
7768
7769 2013-04-19  Pedro Alves  <palves@redhat.com>
7770
7771         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7772         'insnbuf' buffer type to unsigned int[].
7773
7774 2013-04-19  Pedro Alves  <palves@redhat.com>
7775
7776         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7777
7778 2013-04-19  Pedro Alves  <palves@redhat.com>
7779
7780         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7781         unsigned long *.
7782
7783 2013-04-19  Pedro Alves  <palves@redhat.com>
7784
7785         * alpha-tdep.c (heuristic_fence_post): Change type to int.
7786         (alpha_heuristic_proc_start): Adjust to check -1 instead of
7787         UINT_MAX.
7788         * mips-tdep.c (heuristic_fence_post): Change type to int.
7789         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7790
7791 2013-04-19  Pedro Alves  <palves@redhat.com>
7792
7793         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7794         (struct gdbarch_tdep) <cris_version>: Make unsigned.
7795         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7796
7797 2013-04-19  Pedro Alves  <palves@redhat.com>
7798
7799         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
7800         it to get a string view of the byte buffer.
7801         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7802         type to gdb_byte *.  Adjust.
7803         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7804         Change local to char *.
7805         * solib-darwin.c (find_program_interpreter): Change return type to
7806         char *.  Adjust.
7807         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7808         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7809         * solib-frv.c (enable_break2): Change local 'buf' to char *.
7810         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7811         * solib-svr4.c (find_program_interpreter): Change return type to
7812         char *.  Adjust.
7813         (enable_break): Change local 'interp_name' to char *.
7814         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7815         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7816         (spu_pseudo_register_write_spu): Use char for string buffer.
7817         Adjust.
7818         (info_spu_event_command, info_spu_signal_command): Add casts to
7819         'char *'.
7820
7821 2013-04-19  Pedro Alves  <palves@redhat.com>
7822
7823         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7824         gdb_byte[].
7825         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7826         * ada-lang.c (ada_value_assign): Use gdb_byte.
7827         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7828         (alphanbsd_sigtramp_offset): Use gdb_byte.
7829         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7830         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7831         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7832         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7833         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7834         * arm-tdep.c (arm_stub_unwind_sniffer)
7835         (arm_displaced_init_closure): Use gdb_byte.
7836         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7837         (arm_default_thumb_le_breakpoint)
7838         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7839         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7840         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7841         * arm-wince-tdep.c (arm_wince_le_breakpoint)
7842         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7843         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7844         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7845         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7846         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7847         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7848         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7849         (cris_store_return_value, cris_extract_return_value): Use
7850         gdb_byte.
7851         (constraint): Change type of parameter to char * from signed
7852         char*.  Use gdb_byte.
7853         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7854         of local buffer to gdb_byte *.
7855         * dwarf2read.c (read_index_from_section): Use gdb_byte.
7856         (create_dwp_hash_table): Change type of locals to gdb_byte *.
7857         (add_address_entry): Change type of local buffer to gdb_byte[].
7858         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7859         (frv_push_dummy_call): Use gdb_byte.
7860         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7861         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7862         (hppa_hpux_supply_save_state): Use gdb_byte.
7863         * hppa-tdep.c (hppa32_push_dummy_call)
7864         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7865         * ia64-tdep.c (extract_bit_field, replace_bit_field)
7866         (slotN_contents, replace_slotN_contents): Change type of parameter
7867         to gdb_byte *.
7868         (fetch_instruction, ia64_pseudo_register_write)
7869         (ia64_register_to_value, ia64_value_to_register)
7870         (ia64_extract_return_value, ia64_store_return_value)
7871         (ia64_push_dummy_call): Use gdb_byte.
7872         * m32c-tdep.c (m32c_return_value): Remove cast.
7873         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7874         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7875         gdb_byte.
7876         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7877         * mn10300-tdep.c (mn10300_store_return_value)
7878         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7879         gdb_byte.
7880         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7881         (moxie_process_record): Remove casts.
7882         * ppc-ravenscar-thread.c (supply_register_at_address)
7883         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7884         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7885         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7886         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7887         * remote.c (compare_sections_command): Use gdb_byte.
7888         * score-tdep.c (score7_free_memblock): Change type of parameter to
7889         gdb_byte *.
7890         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7891         gdb_byte *.  Use gdb_byte.
7892         (sh_push_dummy_call_fpu): Use gdb_byte.
7893         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7894         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7895         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7896         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
7897         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7898         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7899         (sh64_store_return_value, sh64_register_convert_to_virtual):
7900         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
7901         (sh64_pseudo_register_write): Use gdb_byte.
7902         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7903         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
7904         buffer.
7905         (irix_current_sos): Use gdb_byte.
7906         * solib-som.c (som_current_sos): Use gdb_byte.
7907         * sparc-ravenscar-thread.c (supply_register_at_address)
7908         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7909         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7910         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7911         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7912         'gdb_byte *'.
7913         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7914         'gdb_byte *'.
7915         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7916         * xstormy16-tdep.c (xstormy16_extract_return_value)
7917         (xstormy16_store_return_value): Change parameter type to
7918         'gdb_byte *'.  Adjust.
7919         (xstormy16_push_dummy_call): Use gdb_byte.
7920         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7921         (call0_analyze_prologue, execute_code): Use gdb_byte.
7922
7923 2013-04-19  Vladimir Kargov <kargov@gmail.com>
7924             Pedro Alves  <palves@redhat.com>
7925
7926         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7927         value contents.
7928
7929 2013-04-17  Doug Evans  <dje@google.com>
7930
7931         * dwarf2read.c (struct signatured_type): New member type.
7932         (struct attribute): Replace member signatured_type with signature.
7933         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7934         (read_call_site_scope): Call follow_die_ref instead of
7935         follow_die_ref_or_sig.
7936         (read_structure_type): Rewrite handling of signatured types.
7937         (read_enumeration_type): Ditto.
7938         (read_attribute_value): Update.
7939         (build_error_marker_type): New function.
7940         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
7941         Don't call error for bad types, just build an error marker type.
7942         (dump_die_shallow): Update.
7943         (follow_die_sig_1): Renamed from follow_die_sig.
7944         Don't call error for bad types, instead return NULL.
7945         (follow_die_sig): New function.
7946         (get_signatured_type, get_DW_AT_signature_type): New functions.
7947
7948 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
7949
7950         * aarch64-tdep.c (aarch64_write_pc): Removed.
7951         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7952         function.
7953
7954 2013-04-17  Yao Qi  <yao@codesourcery.com>
7955
7956         * top.c (print_gdb_configuration): Print configure-time
7957         parameter on using libbabeltrace or not.
7958
7959 2013-04-16  Pedro Alves  <palves@redhat.com>
7960
7961         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7962
7963 2013-04-16  Pedro Alves  <palves@redhat.com>
7964
7965         * common/glibc_thread_db.h: Update from upstream glibc
7966         (git 568035b7874a099087b77f7bba3e36a1173787b0).
7967
7968 2013-04-16  Pedro Alves  <palves@redhat.com>
7969
7970         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7971         * common/glibc_thread_db.h: ... this new file ...
7972         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7973
7974 2013-04-16  Will Newton  <will.newton@gmail.com>
7975             Pedro Alves  <palves@redhat.com>
7976
7977         PR build/11881
7978
7979         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7980         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7981         HAVE_THREAD_DB_H.
7982
7983 2013-04-16  Pedro Alves  <palves@redhat.com>
7984             Eli Zaretskii  <eliz@gnu.org>
7985
7986         * NEWS: Mention "set foo unlimited".
7987
7988 2013-04-15  Doug Evans  <dje@google.com>
7989
7990         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7991         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7992         (create_dwo_cu_reader): Renamed from
7993         create_dwo_debug_info_hash_table_reader.
7994         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7995         Remove support for multiple CUs in a DWO file.
7996         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7997
7998         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7999         instead of phex.
8000         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8001         (create_dwo_in_dwp): Ditto.
8002
8003 2013-04-15  Tom Tromey  <tromey@redhat.com>
8004
8005         * NEWS: Move recent entries into "since 7.6" section.
8006
8007 2013-04-15  Tom Tromey  <tromey@redhat.com>
8008
8009         PR c++/13588:
8010         * NEWS: Update.
8011         * break-catch-throw.c (struct exception_catchpoint)
8012         <exception_rx, pattern>: New fields.
8013         (fetch_probe_arguments, dtor_exception_catchpoint)
8014         (check_status_exception_catchpoint)
8015         (print_one_detail_exception_catchpoint): New functions.
8016         (handle_gnu_v3_exceptions): Add "except_rx" argument.
8017         Compile regular expression if needed.
8018         (extract_exception_regexp): New function.
8019         (catch_exception_command_1): Use extract_exception_regexp.
8020         (compute_exception): Use fetch_probe_arguments.
8021         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8022         and check_status fields.
8023         * cp-abi.c (cplus_typename_from_type_info): New function.
8024         * cp-abi.h (cplus_typename_from_type_info): Declare.
8025         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8026         * gdb_regex.h (compile_rx_or_error): Declare.
8027         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8028         comment.
8029         (init_gnuv3_ops): Set get_type_from_type_info field.
8030         * probe.c (compile_rx_or_error): Move...
8031         * utils.c (compile_rx_or_error): ... here.
8032
8033 2013-04-15  Tom Tromey  <tromey@redhat.com>
8034
8035         PR c++/15176:
8036         * NEWS: Update.
8037         * break-catch-throw.c (compute_exception): New function.
8038         (exception_funcs): New global.
8039         (_initialize_break_catch_throw): Create $_exception.
8040         * cp-abi.c (cplus_type_from_type_info): New function.
8041         * cp-abi.h (cplus_type_from_type_info): Declare.
8042         (struct cp_abi_ops) <get_type_from_type_info>: New field.
8043         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8044         (gnuv3_get_type_from_type_info): New functions.
8045         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8046
8047 2013-04-15  Tom Tromey  <tromey@redhat.com>
8048
8049         * break-catch-throw.c (struct exception_names): New.
8050         (exception_functions): Change type.
8051         (re_set_exception_catchpoint): Look for SDT probes.
8052
8053 2013-04-15  Tom Tromey  <tromey@redhat.com>
8054
8055         PR c++/10119:
8056         * break-catch-throw.c (exception_functions): New global.
8057         (gnu_v3_exception_catchpoint_ops): Move earlier.
8058         (struct exception_catchpoint): New.
8059         (classify_exception_breakpoint): Rewrite.
8060         (re_set_exception_catchpoint): New function.
8061         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
8062         Allocate a struct exception_catchpoint.
8063         (catch_exception_command_1): Update.
8064         (initialize_throw_catchpoint_ops): Set 're_set' method.
8065
8066 2013-04-15  Tom Tromey  <tromey@redhat.com>
8067
8068         * Makefile.in (SFILES): Add break-catch-throw.c
8069         (COMMON_OBS): Add break-catch-throw.o.
8070         * break-catch-throw.c: New file.
8071         * breakpoint.c: Move exception-catching code to new file.
8072         (ep_parse_optional_if_clause): No longer static.
8073         * breakpoint.h (ep_parse_optional_if_clause): Declare.
8074
8075 2013-04-15  Tom Tromey  <tromey@redhat.com>
8076
8077         PR c++/9065:
8078         * NEWS: Update.
8079         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8080         * c-exp.y (TYPEID): New token.
8081         (exp): Add new TYPEID productions.
8082         (ident_tokens): Add "typeid".
8083         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8084         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8085         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8086         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8087         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8088         case.
8089         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8090         (build_std_type_info_type, gnuv3_get_typeid_type)
8091         (gnuv3_get_typeid): New functions.
8092         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
8093         new fields on ABI object.
8094         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8095         * std-operator.def (OP_TYPEID): New.
8096
8097 2013-04-15  Tom Tromey  <tromey@redhat.com>
8098
8099         * elfread.c (elf_symtab_read): Install versioned symbol under
8100         unversioned name as well.
8101
8102 2013-04-15  Tom Tromey  <tromey@redhat.com>
8103
8104         PR c++/11990:
8105         * c-lang.c (cplus_language_defn): Use gdb_demangle.
8106         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8107         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8108         (gdb_demangle): New function.
8109         * cp-support.h (gdb_demangle): Declare.
8110         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8111         (dwarf2_name): Use gdb_demangle.
8112         * gdbtypes.c (check_stub_method): Use gdb_demangle.
8113         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8114         suffixes from name.
8115         (gnuv3_print_method_ptr): Use gdb_demangle.
8116         * jv-lang.c (java_demangle): Use gdb_demangle.
8117         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8118         * language.c (unk_lang_demangle): Use gdb_demangle.
8119         * symtab.c (symbol_find_demangled_name)
8120         (demangle_for_lookup): Use gdb_demangle.
8121
8122 2013-04-15  Tom Tromey  <tromey@redhat.com>
8123
8124         PR c++/12824:
8125         * NEWS: Update.
8126         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8127         New constant.
8128         (classify_exception_breakpoint): New function.
8129         (print_it_exception_catchpoint, print_one_exception_catchpoint)
8130         (print_mention_exception_catchpoint)
8131         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8132         (catch_exception_command_1): Handle "rethrow" catchpoint.
8133         (catch_rethrow_command): New function.
8134         (_initialize_breakpoint): Add "catch rethrow" command.
8135
8136 2013-04-15  Pierre Muller  <muller@sourceware.org>
8137
8138         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8139         set_gdbarch_write_pc as deprecated anymore.
8140
8141 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
8142
8143         * spu-tdep.c (spu_write_pc): Add empty line after local variable
8144         declarations.
8145
8146 2013-04-13  Yao Qi  <yao@codesourcery.com>
8147
8148         * ctf.c (_initialize_ctf): Include "completer.h".
8149         Call add_target_with_completer instead of add_target.
8150
8151 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8152
8153         Fix GDB regression related to PR binutils/14813.
8154         * jit.c (mem_bfd_iovec_close): Return 0 for success.
8155         * minidebug.c (lzma_close): Add return value comment.
8156         * remote.c (remote_bfd_iovec_close): Return 0 for success.
8157         * solib-spu.c (spu_bfd_iovec_close): Likewise.
8158         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8159
8160 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8161
8162         * config.in: Regenerate.
8163
8164 2013-04-12  Tom Tromey  <tromey@redhat.com>
8165
8166         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8167         const.
8168         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8169         (struct die_reader_specs) <buffer>: Likewise.
8170         (die_reader_func_ftype): Make 'info_ptr' const.
8171         (struct line_header) <include_dirs, statement_program_start,
8172         statement_program_end>: Now const.
8173         (struct file_entry) <name>: Likewise.
8174         (struct partial_die_info) <sibling>: Likewise.
8175         (struct dwarf_block) <data>: Likewise.
8176         (dwarf2_read_section): Remove cast.
8177         (dwarf2_get_section_info): Make 'bufp' const.
8178         (read_index_from_section): Constify.
8179         (dw2_get_file_names_reader): Make 'info_ptr' const.
8180         (dw2_get_primary_filename_reader): Likewise.
8181         (read_comp_unit_head): Make 'info_ptr' and return type const.
8182         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8183         Likewise.
8184         (read_abbrev_offset): Constify.
8185         (dwarf2_create_include_psymtab): Make 'name' const.
8186         (create_debug_types_hash_table): Update.
8187         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8188         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8189         Constify.
8190         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8191         (load_partial_comp_unit_reader): Make 'info_ptr' const.
8192         (read_comp_units_from_section): Constify.
8193         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8194         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8195         const.
8196         (dwarf2_compute_name, setup_type_unit_groups): Constify.
8197         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8198         (create_dwp_hash_table, dwarf2_ranges_read)
8199         (dwarf2_record_block_ranges): Constify.
8200         (read_die_and_children, read_die_and_siblings_1)
8201         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8202         const.
8203         (read_full_die_1, read_full_die): Make 'info_ptr' const.
8204         (abbrev_table_read_table): Constify.
8205         (load_partial_dies): Make 'info_ptr' const.
8206         (read_partial_die, read_attribute_value, read_attribute): Make
8207         'info_ptr' and return type const.
8208         (read_address, read_initial_length)
8209         (read_checked_initial_length_and_offset, read_offset)
8210         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8211         const.
8212         (read_direct_string): Make 'buf' and return type const.
8213         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8214         (read_indirect_string): Make return type const.
8215         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8216         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8217         'info_ptr' const.
8218         (read_str_index): Make return type const.
8219         (add_include_dir): Make 'include_dir' const.
8220         (add_file_name): Make 'name' const.
8221         (dwarf_decode_line_header): Constify.
8222         (psymtab_include_file_name): Make return type const.
8223         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8224         (dwarf2_start_subfile): Make 'filename' const.
8225         (dwarf2_const_value_attr): Make 'bytes' const.
8226         (read_signatured_type_reader): Make 'info_ptr' const.
8227         (decode_locdesc): Constify.
8228         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8229         const.
8230         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8231         'mac_end', and return type const.
8232         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8233         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8234         type const.
8235         (per_cu_header_read_in): Constify.
8236         * symfile.h (dwarf2_get_section_info): Update.
8237
8238 2013-04-12  Tom Tromey  <tromey@redhat.com>
8239
8240         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8241
8242 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
8243
8244         * NEWS: Mention "show configuration", --configuration.
8245         * top.c (print_gdb_configuration): New function, displays the
8246         details about GDB configure-time parameters.
8247         (print_gdb_version): Mention "show configuration".
8248         * cli/cli-cmds.c (show_configuration): New function.
8249         (_initialize_cli_cmds): Add the "show configuration" command.
8250         * main.c (captured_main) <print_configuration>: New static var.
8251         <long_options>: Use it.
8252         If --configuration was given, call print_gdb_configuration.
8253
8254 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8255             Pedro Alves  <palves@redhat.com>
8256
8257         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8258         (generated_files): Add gcore.
8259         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8260         HAVE_NATIVE_GCORE_HOST.
8261         (gcore): New.
8262         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8263         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8264         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8265         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8266         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8267         Add HAVE_NATIVE_GCORE_HOST.
8268         * configure: Regenerate.
8269         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8270         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
8271         AC_CONFIG_FILES for gcore.
8272         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
8273         gdb_have_gcore.
8274         * gdb_gcore.sh: Rename to ...
8275         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
8276         and GCORE_TRANSFORM_NAME substitutions.
8277
8278         Fix parsing tabs in ${gdb_target_obs}.
8279         * configure.tgt (gdb_have_gcore): Replace case with for and if.
8280
8281 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8282
8283         * remote.c (unpush_and_perror): Add output message final dot.
8284
8285 2013-04-11  Yao Qi  <yao@codesourcery.com>
8286
8287         * tracepoint.c (tfile_interp_line): Fit parameters line and
8288         utpp in one line.
8289
8290 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
8291
8292         * solib.c (solib_map_sections): Remove code overwriting
8293         SO->SO_NAME with the bfd's filename.
8294
8295 2013-04-10  Pedro Alves  <palves@redhat.com>
8296
8297         * cli/cli-decode.c (integer_unlimited_completer): New function.
8298         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8299         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8300         completer.
8301         * cli/cli-setshow.c: Include "cli/cli-utils.h".
8302         (is_unlimited_literal): New function.
8303         (do_set_command): Handle literal "unlimited" arguments.
8304         * frame.c (_initialize_frame) <set backtrace limit>: Document
8305         "unlimited".
8306         * printcmd.c (_initialize_printcmd) <set print
8307         max-symbolic-offset>: Add help text.
8308         * record-full.c (_initialize_record_full) <set record full
8309         insn-number-max>: Likewise.
8310         * record.c (_initialize_record) <set record
8311         instruction-history-size, set record function-call-history-size>:
8312         Add help text.
8313         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8314         help text.
8315         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8316         Likewise.
8317         * source.c (_initialize_source) <set listsize>: Add help text.
8318         * utils.c (initialize_utils) <set height, set width>: Likewise.
8319         <set pagination>: Mention "set height unlimited".
8320         * valprint.c (_initialize_valprint) <set print elements, set print
8321         repeats>: Document "unlimited".
8322
8323 2013-04-10  Pedro Alves  <palves@redhat.com>
8324
8325         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8326         instead of disconnect_tracing.
8327         * infcmd.c (detach_command, disconnect_command): Call
8328         query_if_trace_running.  Adjust.
8329         * top.c: Include "tracepoint.h".
8330         (quit_target): Delete.  Contents moved ...
8331         (quit_force): ... here.  Wrap each stage of teardown in
8332         TRY_CATCH.  Call disconnect_tracing before detaching.
8333
8334 2013-04-10  Hui Zhu  <hui@codesourcery.com>
8335             Yao Qi  <yao@codesourcery.com>
8336
8337         * configure.ac: Check libbabeltrace is installed.
8338         * config.in: Regenerate.
8339         * configure: Regenerate.
8340         * Makefile.in (LIBBABELTRACE): New.
8341         (CLIBS): Add LIBBABELTRACE.
8342         * ctf.c: Include "exec.h".
8343         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8344         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8345         (ctf_save_metadata_header): Define new type aliases in
8346         metadata.
8347         (ctf_write_header): Define event type "tsv_def" and "tp_def"
8348         in metadata.  Start a new faked packet for trace status.
8349         (ctf_write_status): Write trace status to CTF.
8350         (ctf_write_uploaded_tsv): Write TSV to CTF.
8351         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8352         (ctf_write_definition_end): End the faked packet.
8353
8354         (ctx, ctf_iter, trace_dirname): New.
8355         (start_pos): New variable.
8356         (ctf_destroy, ctf_open_dir, ctf_open): New.
8357         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8358         macros.
8359         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8360         (ctf_fetch_registers, ctf_xfer_partial): New.
8361         (ctf_get_trace_state_variable_value): New.
8362         (ctf_get_tpnum_from_frame_event): New.
8363         (ctf_get_traceframe_address): New.
8364         (ctf_trace_find, ctf_has_stack): New.
8365         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8366         (ctf_get_trace_status, ctf_read_status): New.
8367         (_initialize_ctf): New.
8368         * tracepoint.c (get_tracepoint_number): New
8369         (get_uploaded_tsv): Remove 'static'.
8370         (struct traceframe_info, trace_regblock_size): Move it to ...
8371         * tracepoint.h: ... here.
8372         (get_tracepoint_number): Declare it.
8373         (get_uploaded_tsv): Declare it.
8374
8375         * NEWS: Mention new configure option.
8376
8377 2013-04-10  Pedro Alves  <palves@redhat.com>
8378             Hui Zhu  <hui@codesourcery.com>
8379
8380         * breakpoint.c (dprintf_re_set): New.
8381         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8382         to dprintf_re_set.
8383
8384 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
8385
8386         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8387         Remove solib-svr4.o from the list.
8388
8389 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
8390
8391         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8392         Use gdb_assert_not_reached instead of invalid boolean expression.
8393
8394 2013-04-09  Pedro Alves  <palves@redhat.com>
8395
8396         * remote.c (unpush_and_perror): New function.
8397         (readchar, remote_serial_write): Use it.
8398
8399 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
8400
8401         * NEWS: Mention new btrace RSP packets.
8402
8403 2013-04-08  Tom Tromey  <tromey@redhat.com>
8404
8405         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8406         long.
8407
8408 2013-04-08  Tom Tromey  <tromey@redhat.com>
8409
8410         * maint.c (print_bfd_section_info): Print the section index.
8411         * symmisc.c (dump_msymbols): Print the section index.
8412
8413 2013-04-08  Tom Tromey  <tromey@redhat.com>
8414
8415         PR symtab/8424:
8416         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8417         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8418         * breakpoint.c (resolve_sal_pc): Update.
8419         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8420         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8421         (minsym_lookup_iterator_cb): Use it.
8422         (default_read_var_value): Update.
8423         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8424         Update.
8425         * infcmd.c (jump_command): Update.
8426         * linespec.c (minsym_found): Update.
8427         * maint.c (maintenance_translate_address): Update.
8428         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8429         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8430         * parse.c (write_exp_msymbol): Update.
8431         * printcmd.c (address_info): Update.
8432         * psymtab.c (find_pc_sect_psymbol): Update.
8433         (fixup_psymbol_section): Check SYMBOL_SECTION, not
8434         SYMBOL_OBJ_SECTION.
8435         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8436         Don't initialize SYMBOL_OBJ_SECTION.
8437         * spu-tdep.c (spu_catch_start): Update.
8438         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8439         * symmisc.c (dump_msymbols, print_symbol): Update.
8440         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
8441         how fallback section is computed.
8442         (fixup_symbol_section): Update.
8443         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8444         Update.
8445         (allocate_symbol, initialize_symbol, allocate_template_symbol):
8446         Initialize SYMBOL_SECTION.
8447         * symtab.h (struct general_symbol_info) <section>: Update comment.
8448         <obj_section>: Remove.
8449         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
8450         (SYMBOL_OBJFILE): New macro.
8451
8452 2013-04-08  Tom Tromey  <tromey@redhat.com>
8453
8454         * coffread.c (record_minimal_symbol): Update.
8455         * dbxread.c (record_minimal_symbol): Update.
8456         * elfread.c (record_minimal_symbol): Update.
8457         * machoread.c (macho_symtab_add_minsym): Update.
8458         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8459         Update.
8460         * minsyms.c (prim_record_minimal_symbol): Update.
8461         (prim_record_minimal_symbol_full): Remove 'bfd_section'
8462         argument.
8463         (prim_record_minimal_symbol_and_info): Likewise.
8464         * minsyms.h (prim_record_minimal_symbol_full)
8465         (prim_record_minimal_symbol_and_info): Update.
8466         * symtab.c (allocate_symbol, initialize_symbol)
8467         (allocate_template_symbol): Initialize SYMBOL_SECTION.
8468         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8469         Update.
8470
8471 2013-04-08  Tom Tromey  <tromey@redhat.com>
8472
8473         PR symtab/8423:
8474         * solib-som.c (som_solib_section_offsets): Use BFD section
8475         indices.  Set offsets for all sections.
8476         * somread.c (som_symtab_read): Compute BFD section for
8477         symbol.  Use prim_record_minimal_symbol_and_info.
8478         (som_symfile_read): Fix comment.
8479         (struct find_section_offset_arg): New.
8480         (find_section_offset, set_section_index): New functions.
8481         (som_symfile_offsets): Use set_section_index to compute
8482         section indices.
8483
8484 2013-04-08  Tom Tromey  <tromey@redhat.com>
8485
8486         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8487         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8488         gdb_bfd_section_index.
8489         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8490         New functions.
8491         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8492         Declare.
8493         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8494         Update.
8495         * objfiles.c (add_to_objfile_sections_full): New function.
8496         (add_to_objfile_sections): Use it.
8497         (build_section_table): Rewrite.
8498         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
8499         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8500         (struct objfile) <sections>: Update comment.
8501         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8502         is NULL.
8503         (ALL_OBJSECTIONS): Use it.
8504         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8505         * solib-frv.c (frv_relocate_main_executable): Update.
8506         * solib-target.c (solib_target_relocate_section_addresses):
8507         Use gdb_bfd_section_index.
8508         * symfile.c (build_section_addr_info_from_section_table):
8509         Use gdb_bfd_section_index.
8510         (build_section_addr_info_from_bfd, place_section): Likewise.
8511         * symtab.c (fixup_section): Update.
8512         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8513
8514 2013-04-08  Tom Tromey  <tromey@redhat.com>
8515
8516         * minsyms.h (struct bound_minimal_symbol): New.
8517         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8518         Remove objfile argument.
8519         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8520         Return bound_minimal_symbol.
8521         * minsyms.c (lookup_minimal_symbol_by_pc_1)
8522         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8523         Return bound_minimal_symbol.
8524         (in_gnu_ifunc_stub): Update.
8525         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8526         Remove 'objfile_p' argument.
8527         (lookup_solib_trampoline_symbol_by_pc): Update.
8528         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8529         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8530         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8531         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8532         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8533         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8534         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8535         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8536         stack.c, symtab.c, tui/tui-disasm.c: Update.
8537
8538 2013-04-08  Tom Tromey  <tromey@redhat.com>
8539
8540         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8541         Use symbol's obstack, not an objfile.
8542         * coffread.c (process_coff_symbol): Update.
8543         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8544         * jv-lang.c (add_class_symbol): Update.
8545         * mdebugread.c (new_symbol): Update.
8546         * minsyms.c (prim_record_minimal_symbol_full)
8547         (terminate_minimal_symbol_table): Update.
8548         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
8549         * stabsread.c (define_symbol, read_enum_type): Update.
8550         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8551         Handle Ada specially.
8552         (symbol_set_language): Add 'obstack' argument.
8553         (symbol_set_names): Update.
8554         (symbol_natural_name, symbol_demangled_name): Always use
8555         ada_decode_symbol.
8556         * symtab.h (struct general_symbol_info)
8557         <language_specific::obstack>: New field.
8558         <ada_mangled>: New field.
8559         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8560         (symbol_set_language): Update.
8561
8562 2013-04-08  Tom Tromey  <tromey@redhat.com>
8563
8564         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8565         Take an obstack, not an objfile.
8566         (symbol_set_names): Update.
8567         * symtab.h (symbol_set_demangled_name): Update.
8568
8569 2013-04-08  Tom Tromey  <tromey@redhat.com>
8570
8571         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8572         allocate_symbol.
8573         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8574         (read_func_scope): Call allocate_template_symbol.
8575         (new_symbol_full): Call allocate_symbol.
8576         * jit.c (finalize_symtab): Call allocate_symbol.
8577         * jv-lang.c (add_class_symbol): Call allocate_symbol.
8578         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8579         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8580         (common_block_end): Call allocate_symbol.
8581         * symtab.c (allocate_symbol, initialize_symbol)
8582         (allocate_template_symbol): New functions.
8583         * symtab.c (allocate_symbol, initialize_symbol)
8584         (allocate_template_symbol): Declare.
8585         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8586
8587 2013-04-08  Pedro Alves  <palves@redhat.com>
8588             Keith Seitz  <keiths@redhat.com>
8589
8590         * breakpoint.c (create_breakpoint): Rename
8591         "parse_condition_and_thread" parameter to "parse_arg".  Update
8592         describing comment.  If !PARSE_ARG, then error out if ARG is not
8593         the empty string after extracting the location.
8594         * breakpoint.h (create_breakpoint): Rename
8595         "parse_condition_and_thread" parameter to "parse_arg".
8596
8597 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
8598
8599         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8600
8601 2013-04-07  Yao Qi  <yao@codesourcery.com>
8602
8603         * remote.c (remote_trace_find): Change type of parameters 'addr1'
8604         and 'addr2' to CORE_ADDR.
8605         * target.c (update_current_target): Update.
8606         * target.h (struct target_ops) <to_trace_find>: Change parameter
8607         type to CORE_ADDR.
8608         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8609         'addr2' to CORE_ADDR.
8610         (tfile_trace_find): Likewise.
8611         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8612         Change local variable 'addr' to type CORE_ADDR.
8613         * tracepoint.h (tfind_1): Update declaration.
8614
8615 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
8616
8617         * windows-nat.c (windows_get_absolute_argv0): Move from here...
8618         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8619         Include main.h.
8620
8621         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8622         here...
8623         * main.h (windows_get_absolute_argv0): ...to here.
8624
8625 2013-04-05  Doug Evans  <dje@google.com>
8626
8627         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8628         (read_cutu_die_from_dwo): Add comments.
8629         (read_structure_type): Update comment.
8630         (read_enumeration_type, read_namespace_type): Update comment.
8631         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8632
8633 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8634
8635         Convert man pages to texinfo, new gdbinit.5 texinfo page.
8636         * Makefile.in (gdb.z): Remove.
8637         (install-only): Remove $(man1dir) and gdb.1 installation.
8638         * gdb.1: Remove.
8639
8640 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8641
8642         Fix compatibility with Linux kernel 3.8.3.
8643         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8644         to more inner block.  Remove parsing of NUMBER from outer block.
8645         Parse NUMBER only if KEYWORD has been identified.
8646
8647 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8648
8649         Fix variable name shadowing.
8650         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8651         filename to mapsfilename and update its uses.
8652
8653 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
8654
8655         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8656         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8657         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8658         details of the problem.
8659
8660 2013-04-04  Pedro Alves  <palves@redhat.com>
8661             Hui Zhu  <hui@codesourcery.com>
8662
8663         * breakpoint.c (validate_commands_for_breakpoint): If validating a
8664         tracepoint, reset its STEP_COUNT and call validate_actionline.
8665
8666 2013-04-03  Doug Evans  <dje@google.com>
8667
8668         * dwarf2read.c (read_die_and_siblings_1): Renamed from
8669         read_die_and_siblings.
8670         (read_die_and_siblings): New function.
8671         (read_cutu_die_from_dwo): Dump die if requested.
8672         (read_die_and_children): Call read_full_die_1 and
8673         read_die_and_siblings_1.
8674         (read_full_die): Dump die if requested.
8675
8676         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8677
8678         * dwarf2read.c (struct dwo_file): New member comp_dir.
8679         Rename member name to dwo_name.  All uses updated.
8680         (hash_dwo_file): Include comp_dir in computation.
8681         (eq_dwo_file): Ditto.
8682         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
8683         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8684
8685         * psymtab.c (read_psymtabs_with_fullname): Don't call
8686         psymtab_to_fullname if the basenames are different.
8687
8688 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8689
8690         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8691         New entry about "fullname" presence.
8692
8693 2013-04-03  Pedro Alves  <palves@redhat.com>
8694
8695         * NEWS: Mention x86_64/Cygwin as new native configuration.
8696
8697 2013-04-02  Doug Evans  <dje@google.com>
8698
8699         * dwarf2read.c (read_structure_type): Fix typo in comment.
8700
8701 2013-04-02  Pedro Alves  <palves@redhat.com>
8702
8703         * NEWS: Mention "set/show debug aarch64", "set/show debug
8704         coff-pe-read" and "set/show debug mach-o".
8705
8706 2013-04-02  Pedro Alves  <palves@redhat.com>
8707
8708         * NEWS: Mention "set/show remote trace-buffer-size-packet".
8709
8710 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
8711
8712         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8713         gdb_string.h is now in common/.
8714
8715 2013-04-02  Pedro Alves  <palves@redhat.com>
8716
8717         * NEWS: Move "set debug notification" and "set trace-buffer-size"
8718         under "New options".
8719
8720 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8721
8722         Revert this patch:
8723         PR gdb/15275
8724         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8725
8726 2013-04-02  Pedro Alves  <palves@redhat.com>
8727
8728         PR gdb/15275
8729
8730         * remote.c (send_interrupt_sequence): Use remote_serial_write.
8731         (remote_serial_write): New function.
8732         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8733
8734 2013-04-01  Jiong Wang  <jiwang@tilera.com>
8735
8736         * NEWS: Mention TILE-Gx in "New native configurations" and
8737         "New targets" sections.
8738
8739 2013-04-01  Doug Evans  <dje@google.com>
8740
8741         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8742         (process_enumeration_scope): Simplify.
8743
8744         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8745         type_unit_group ...
8746         (struct signatured_type): ... to here.
8747         (sig_type_ptr): New typedef.
8748         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
8749         out of union 't'.  All uses updated.
8750         (dw2_get_file_names_reader): Assert not called for a type unit.
8751         (dw2_get_file_names): Assert not called for a type unit or type
8752         unit group.
8753         (build_type_psymtabs_reader): Assert called for a type unit.
8754         (build_type_psymtab_dependencies): Assert called for a type unit group.
8755
8756         * dwarf2read.c (free_dwo_file): Add comment.
8757         (dwarf2_per_objfile_free): Unref dwp bfd.
8758
8759 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
8760
8761         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8762         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8763         (read_pe_exported_syms): Remove unused 'exportix'.
8764         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8765         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8766         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8767
8768 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
8769
8770         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8771         (print_it_watchpoint): Remove unused 'bl'.
8772         (say_where): Remove unused 'uiout'.
8773         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8774         (bkpt_breakpoint_hit): Remove unused 'b'.
8775         (internal_bkpt_print_it): Remove unused 'uiout'.
8776         * buildsym.c (augment_type_symtab): Remove unused 'i'.
8777
8778 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
8779
8780         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8781         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8782
8783 2013-03-29  Doug Evans  <dje@google.com>
8784
8785         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8786         Delete arg is_dwp.  All callers updated.
8787         (open_dwp_file): New function.
8788         (open_and_init_dwp_file): Call it.
8789         (get_dwp_file): New function.
8790         (lookup_dwo_cutu): Call it.
8791
8792         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8793         unnecessary, cleanup.
8794
8795         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8796
8797         * dwarf2read.c (read_cutu_die_from_dwo): New function.
8798         (lookup_dwo_unit): New function.
8799         (init_cutu_and_read_dies): Move DWO handling to new functions.
8800
8801         * dwarf2read.c (struct signatured_type): Tweak comment.
8802         (struct dwo_unit): Tweak comment.
8803         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
8804         (create_dwo_debug_info_hash_table): Tweak comment.
8805         (dwarf2_per_cu_offset_and_type): Tweak comment.
8806
8807         * dwarf2read.c (lookup_signatured_type): Remove complaint about
8808         missing .debug_types section.
8809
8810 2013-03-29  Yao Qi  <yao@codesourcery.com>
8811
8812         * corelow.c: Include "completer.h".
8813         (_initialize_corelow): Call add_target_with_completer with
8814         argument 'filename_completer'.
8815         * tracepoint.c: Likewise.
8816         * exec.c (_initialize_exec): Likewise.
8817         * target.c (add_target): Rename to ...
8818         (add_target_with_completer): ... this.  Call set_cmd_completer
8819         if parameter completer is not NULL.
8820         (add_target): New.
8821         * target.h: Include "command.h".
8822         (add_target_with_completer): Declare it.
8823
8824 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
8825
8826         * coffread.c (is_import_fixup_symbol): New function.
8827         (record_minimal_symbol): Use is_import_fixup_symbol to
8828         detect import fixup symbols, and discard them.
8829
8830 2013-03-28  Doug Evans  <dje@google.com>
8831
8832         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8833         types hash table until we know we need it.
8834
8835         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8836         index numbers.
8837
8838         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8839         All callers updated.
8840         (dw2_print_stats): Print #read CUs too.
8841         (dump_die_shallow): Print signatured types better.
8842
8843         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8844         info_or_types_section to section.  All uses updated.
8845         (struct dwo_unit): Ditto.
8846
8847 2013-03-28  Pedro Alves  <palves@redhat.com>
8848
8849         * NEWS (New options): New section.
8850         (New options): Mention set/show remote trace-status-packet.
8851         * remote.c (PACKET_qTStatus): New enumeration value.
8852         (remote_get_trace_status): Skip sending qTStatus if the packet is
8853         disabled.  Use packet_ok.
8854         (_initialize_remote): Register a configuration command for
8855         qTStatus packet.
8856
8857 2013-03-28  Doug Evans  <dje@google.com>
8858
8859         * symfile.c (find_separate_debug_file): Add comment.
8860         (terminate_after_last_dir_separator): Tweak comment.
8861
8862         * dwarf2read.c (create_partial_symtab): Add forward decl.
8863         (create_partial_symtab): Move to be closer to other psymtab functions.
8864         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8865
8866         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8867         (compute_symtab_includes): Remove unnecessary forward declaration.
8868         (die_needs_namespace): Add comment marking group of functions for
8869         dwarf2 name computation.
8870
8871         * typeprint.c (_initialize_typeprint): Improve type help text.
8872
8873         * python/python.c (finish_python_initialization): Provide suggestion
8874         for how to tell gdb to find its python files.
8875
8876 2013-03-28  Pedro Alves  <palves@redhat.com>
8877
8878         PR gdb/15294
8879
8880         * source.c (_initialize_source): Change back "set listsize" to an
8881         integer command.
8882
8883 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
8884
8885         PR gdb/15275
8886         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8887
8888 2013-03-27  Pedro Alves  <palves@redhat.com>
8889
8890         * top.c (history_size): Rename to ...
8891         (history_size_setshow_var): ... this.  Add comment.
8892         (show_commands): Use readline's 'history_length' instead of
8893         computing the history length by calling history_get in a loop.
8894         (set_history_size_command): Error out for sizes over INT_MAX.
8895         Restore previous history size on invalid size.
8896         (init_history): If HISTSIZE is negative, leave the history size as
8897         zero.  Add comments.
8898         (init_main): Adjust.
8899
8900 2013-03-27  Pedro Alves  <palves@redhat.com>
8901
8902         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8903         coff_pe_read" command to "set debug coff-pe-read".
8904
8905 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
8906
8907         * record.c (command_size_to_target_size): Fix size comparison.
8908         Change parameter type from pointer to integer to integer.
8909         Update all users.
8910
8911 2013-03-27  Pierre Muller  <muller@sourceware.org>
8912
8913         * windows-nat.c (handle_output_debug_string): Avoid typecast
8914         from integer of different size warning.
8915
8916 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
8917
8918         * windows-nat.c (handle_output_debug_string): Add empty line
8919         after local block variable definition.
8920
8921 2013-03-26  Pedro Alves  <palves@redhat.com>
8922
8923         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8924         (net_open): Make 'polls' local unsigned.
8925
8926 2013-03-26  Pedro Alves  <palves@redhat.com>
8927
8928         * remote.c (_initialize_remote): Make "set remoteaddresssize"
8929         a zuinteger command instead of uinteger.
8930
8931 2013-03-26  Pedro Alves  <palves@redhat.com>
8932
8933         * record-full.c (record_full_insn_num): Make it unsigned.
8934         (record_full_check_insn_num, record_full_message)
8935         (record_full_registers_change, record_full_xfer_partial): Remove
8936         record_full_insn_max_num check (it's always != 0).
8937         (record_full_info, record_full_restore): Use %u as format string.
8938         (): Use %u as format string.
8939         (set_record_full_insn_max_num): Remove record_full_insn_max_num
8940         check (it's always != 0).
8941
8942 2013-03-26  Pedro Alves  <palves@redhat.com>
8943
8944         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8945         and "set dcache size" commands zuinteger instead of uinteger.
8946
8947 2013-03-26  Pedro Alves  <palves@redhat.com>
8948
8949         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8950         command zuinteger instead of uinteger.
8951
8952 2013-03-26  Pedro Alves  <palves@redhat.com>
8953
8954         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8955         zuinteger instead of uinteger.
8956
8957 2013-03-26  Pedro Alves  <palves@redhat.com>
8958
8959         * record.c (record_insn_history_size_setshow_var)
8960         (record_call_history_size_setshow_var): New globals.
8961         (command_size_to_target_size): New function.
8962         (cmd_record_insn_history, cmd_record_call_history): Use
8963         command_size_to_target_size instead of cast.
8964         (validate_history_size, set_record_insn_history_size)
8965         (set_record_call_history_size): New functions.
8966         (_initialize_record): Install set_record_insn_history_size and
8967         set_record_call_history_size as "set" hooks of "set record
8968         instruction-history-size" and "set record
8969         function-call-history-size".
8970
8971 2013-03-26  Pedro Alves  <palves@redhat.com>
8972
8973         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8974         use with history_max_entries use.  Remove FIXME note.
8975
8976 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
8977
8978         * record-btrace.c (record_btrace_close): Call
8979         record_btrace_auto_disable.
8980
8981 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
8982
8983         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8984
8985 2013-03-25  Doug Evans  <dje@google.com>
8986
8987         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8988
8989 2013-03-25  Tom Tromey  <tromey@redhat.com>
8990
8991         PR symtab/11462:
8992         * c-exp.y (exp): Add new productions for destructors after '.' and
8993         '->'.
8994         (write_destructor_name): New function.
8995
8996 2013-03-25  Tom Tromey  <tromey@redhat.com>
8997
8998         PR c++/9197:
8999         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9000         value_struct_elt, not lookup_struct_elt_type.
9001         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9002         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9003         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9004
9005 2013-03-25  Yao Qi  <yao@codesourcery.com>
9006
9007         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9008         instead of '_mkdir'.
9009
9010 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
9011
9012         * windows-nat.c (windows_get_absolute_argv0): New function.
9013         * windows-nat.h: Add its prototype.
9014
9015         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9016         Use IS_DIR_SEPARATOR instead of looking for a character inside
9017         SLASH_STRING.  Include filenames.h.
9018         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9019         relocate_gdb_directory works when passed gdb_program_name.
9020         Include windows-nat.h.
9021
9022 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9023
9024         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9025         * remote.c (trace_error): Remove the special handling of '2'.
9026         (readchar) <SERIAL_EOF>
9027         (readchar) <SERIAL_ERROR>
9028         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9029         (remote_get_trace_status): Call throw_exception if EX is
9030         TARGET_CLOSE_ERROR.
9031         * utils.c (perror_with_name): Rename to ...
9032         (throw_perror_with_name): ... here.  New parameter errcode, describe it
9033         in the function comment.
9034         (perror_with_name): New function wrapper.
9035         * utils.h (enum errors): New stub declaration.
9036         (throw_perror_with_name): New declaration.
9037
9038 2013-03-22  Pedro Alves  <palves@redhat.com>
9039             Yao Qi  <yao@codesourcery.com>
9040             Mark Kettenis  <kettenis@gnu.org>
9041
9042         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9043         Don't let the user set the value to UINT_MAX directly.
9044         <var_integer>: Don't let the user set the value to INT_MAX
9045         directly.
9046
9047 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9048
9049         * remote.c (remote_unpush_target): New function.
9050         (remote_open_1): Remove two pop_target calls, update one comment, add
9051         comment to target_preopen call.  Replace pop_target call by
9052         remote_unpush_target call.
9053         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9054         pop_target calls by remote_unpush_target calls.
9055
9056 2013-03-22  Pedro Alves  <palves@redhat.com>
9057
9058         * linux-nat.c (linux_child_follow_fork): Don't call
9059         linux_enable_event_reporting.
9060         (linux_handle_extended_wait): Don't call
9061         linux_enable_event_reporting.
9062
9063 2013-03-22  Pedro Alves  <palves@redhat.com>
9064
9065         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9066         use it to rewrite the trampoline buffers with type gdb_byte[], and
9067         undefine the macro.  Remove char* cast.
9068
9069 2013-03-21  Doug Evans  <dje@google.com>
9070
9071         New commands "mt set per-command {space,time,symtab} {on,off}".
9072         * NEWS: Add entry.
9073         * event-top.c: #include "maint.h".
9074         * main.c: #include "maint.h".
9075         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9076         timeval-utils.h, maint.h, cli/cli-setshow.h.
9077         (per_command_time, per_command_space): New static globals.
9078         (per_command_symtab): New static global.
9079         (per_command_setlist, per_command_showlist): New static globals.
9080         (struct cmd_stats): Move here from utils.c.
9081         (set_per_command_time): Renamed from set_display_time in utils.c
9082         and moved here.  All callers updated.
9083         (set_per_command_space): Renamed from set_display_space in utils.c
9084         and moved here.  All callers updated.
9085         (count_symtabs_and_blocks): New function.
9086         (report_command_stats): Moved here from utils.c.  Add support for
9087         printing symtab stats.  Only print data if enabled before command
9088         executed.
9089         (make_command_stats_cleanup): Ditto.
9090         (sert_per_command_cmd, show_per_command_cmd): New functions.
9091         (_initialize_maint_cmds): Add new commands
9092         mt set per-command {space,time,symtab} {on,off}.
9093         * maint.h: New file.
9094         * top.c: #include "maint.h".
9095         * utils.c (reset_prompt_for_continue_wait_time): New function.
9096         (get_prompt_for_continue_wait_time): New function.
9097         * utils.h (reset_prompt_for_continue_wait_time): Declare
9098         (get_prompt_for_continue_wait_time): Declare.
9099         (make_command_stats_cleanup): Moved to maint.h.
9100         (set_display_time, set_display_space): Moved to maint.h and renamed
9101         to set_per_command_time, set_per_command_space.
9102         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9103         parse_binary_operation and made non-static.  Don't call error,
9104         just return an error marker.  All callers updated.
9105         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9106
9107 2013-03-21  Tom Tromey  <tromey@redhat.com>
9108
9109         * symfile.c (alloc_section_addr_info): Update header.  Don't set
9110         'num_sections' field.
9111         (build_section_addr_info_from_section_table): Set 'num_sections'.
9112         (build_section_addr_info_from_bfd): Likewise.
9113         (build_section_addr_info_from_objfile): Remove dead loop
9114         condition.
9115         (free_section_addr_info): Unconditionally call xfree.
9116         (relative_addr_info_to_section_offsets, addrs_section_sort)
9117         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9118         condition.
9119         (syms_from_objfile_1): Remove dead 'if' condition.  Check
9120         'num_sections'.
9121         (add_symbol_file_command): Set 'num_sections'.
9122         * symfile-mem.c (symbol_file_add_from_memory): Set
9123         'num_sections'.
9124         * somread.c (som_symfile_offsets): Remove dead loop condition.
9125         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9126         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9127
9128 2013-03-21  Tom Tromey  <tromey@redhat.com>
9129
9130         * tracepoint.h (decode_agent_options): Add 'trace_string'
9131         argument.
9132         * tracepoint.c (decode_agent_options): Add 'trace_string'
9133         argument.
9134         (validate_actionline): Update.
9135         (collect_symbol): Add 'trace_string' argument.
9136         (struct add_local_symbols_data) <trace_string>: New field.
9137         (do_collect_symbol): Update.
9138         (add_local_symbols): Add 'trace_string' argument.
9139         (encode_actions_1): Update.
9140         (trace_dump_actions): Update.
9141         * dwarf2loc.c (access_memory): Update.
9142         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9143         * ax-general.c (new_agent_expr): Update.
9144         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9145         (gen_trace_for_return_address): Add argument.
9146         (trace_kludge, trace_string_kludge): Remove.
9147         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9148         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9149         (gen_trace_for_var): Add 'trace_string' argument.
9150         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9151         (gen_printf, agent_eval_command_one): Update.
9152
9153 2013-03-21  Tom Tromey  <tromey@redhat.com>
9154
9155         PR exp/15109:
9156         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9157         Handle FILENAME token.
9158
9159 2013-03-21  Tom Tromey  <tromey@redhat.com>
9160
9161         * c-exp.y (YYPRINT): Define.
9162         (c_print_token): New function.
9163
9164 2013-03-21  Tom Tromey  <tromey@redhat.com>
9165
9166         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9167
9168 2013-03-21  Yao Qi  <yao@codesourcery.com>
9169
9170         * ctf.c: Include "gdb_stat.h".
9171         [USE_WIN32API]: New macro 'mkdir'.
9172         (ctf_start): Use permission bits macros if they are defined.
9173
9174 2013-03-20  Keith Seitz  <keiths@redhat.com>
9175
9176         * breakpoint.h (struct breakpoint): Add comment to
9177         extra_string indicating that this member is mallod'd.
9178         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9179
9180 2013-03-20  Pedro Alves  <palves@redhat.com>
9181
9182         PR gdb/15289
9183
9184         * cli/cli-setshow.c (do_set_command)
9185         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9186         the result of parsing the command argument.  Throw error if the
9187         value is greater than UINT_MAX.  Print the invalid value with
9188         plongest.
9189         <var_integer, var_zinteger>: Use LONGEST for variable holding the
9190         result of parsing the command argument.  Throw error if the value
9191         is greater than INT_MAX, not greater or equal.  Also throw error
9192         if the value is less than INT_MIN.  Print the invalid value with
9193         plongest.
9194         <var_zuinteger_unlimited>: Throw error if the value is greater
9195         than INT_MAX, not greater or equal.
9196         (do_show_command) <var_integer, var_zinteger,
9197         var_zuinteger_unlimited>: Use %d for printing int, not %u.
9198
9199 2013-03-20  Tom Tromey  <tromey@redhat.com>
9200
9201         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9202         if possible.
9203         * dwarf2read.c (read_func_scope): Remove old FIXME.
9204         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9205         not LOC_COMPUTED.
9206         * findvar.c (symbol_read_needs_frame, default_read_var_value):
9207         Unconditionally call via computed ops, if possible.
9208         * printcmd.c (address_info): Unconditionally call via computed ops,
9209         if possible.
9210         * stack.c (read_frame_arg): Unconditionally call via computed ops,
9211         if possible.
9212         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9213         * tracepoint.c (scope_info): Unconditionally call via computed ops,
9214         if possible.
9215
9216 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9217             Tom Tromey  <tromey@redhat.com>
9218
9219         PR symtab/8421:
9220         * coffread.c (coff_register_index): New global.
9221         (process_coff_symbol, coff_read_enum_type): Set
9222         SYMBOL_ACLASS_INDEX.
9223         (_initialize_coffread): Initialize new global.
9224         * dwarf2loc.c (locexpr_find_frame_base_location)
9225         (dwarf2_block_frame_base_locexpr_funcs)
9226         (loclist_find_frame_base_location)
9227         (dwarf2_block_frame_base_loclist_funcs): New.
9228         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9229         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9230         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9231         (dwarf2_block_frame_base_loclist_funcs): New.
9232         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9233         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9234         globals.
9235         (read_func_scope): Update.
9236         (fixup_go_packaging, mark_common_block_symbol_computed)
9237         (var_decode_location, new_symbol_full, dwarf2_const_value):
9238         Set SYMBOL_ACLASS_INDEX.
9239         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
9240         (_initialize_dwarf2_read): Initialize new globals.
9241         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9242         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9243         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9244         globals.
9245         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9246         (_initialize_mdebugread): Initialize new globals.
9247         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9248         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9249         (stab_register_index, stab_regparm_index): New globals.
9250         (define_symbol, read_enum_type, common_block_end): Set
9251         SYMBOL_ACLASS_INDEX.
9252         (_initialize_stabsread): Initialize new globals.
9253         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9254         globals.
9255         (MAX_SYMBOL_IMPLS): New define.
9256         (register_symbol_computed_impl, register_symbol_block_impl)
9257         (register_symbol_register_impl)
9258         (initialize_ordinary_address_classes): New functions.
9259         (_initialize_symtab): Call initialize_ordinary_address_classes.
9260         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9261         (struct symbol_impl): New.
9262         (SYMBOL_ACLASS_BITS): New define.
9263         (struct symbol) <aclass, ops>: Remove fields.
9264         <aclass_index>: New field.
9265         (symbol_impls): Declare.
9266         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9267         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9268         (register_symbol_computed_impl, register_symbol_block_impl)
9269         (register_symbol_register_impl): Declare.
9270         (struct symbol_computed_ops): Add location_has_loclist.
9271         (struct symbol_block_ops): New.
9272         (SYMBOL_BLOCK_OPS): New.
9273         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9274
9275 2013-03-20  Tom Tromey  <tromey@redhat.com>
9276
9277         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9278         (print_partial_symbols, recursively_search_psymtabs): Use
9279         PSYMBOL_CLASS.
9280
9281 2013-03-20  Pierre Muller  <muller@sourceware.org>
9282
9283         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9284         addtion, subtraction, multiplication and division binary operator.
9285
9286 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9287
9288         Code cleanup.
9289         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9290         * bsd-kvm.c (bsd_kvm_close): Likewise.
9291         * bsd-uthread.c (bsd_uthread_close): Likewise.
9292         * corelow.c (core_close): Likewise.
9293         (core_close_cleanup): Remove parameter quitting from a caller.
9294         * event-top.c (async_disconnect): Likewise.
9295         * exec.c (exec_close_1): Remove parameter quitting.
9296         * go32-nat.c (go32_close): Likewise.
9297         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
9298         parameter quitting from a caller.
9299         * mips-linux-nat.c (super_close): Remove parameter quitting from the
9300         variable.
9301         (mips_linux_close): Remove parameter quitting.  Remove parameter
9302         quitting from a caller.
9303         * monitor.c (monitor_close): Remove parameter quitting.
9304         * monitor.h (monitor_close): Likewise.
9305         * record-btrace.c (record_btrace_close): Likewise.
9306         * record-full.c (record_full_close): Likewise.
9307         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9308         it also from fprintf_unfiltered.
9309         * remote-mips.c (mips_close): Remove parameter quitting.
9310         (mips_detach): Remove parameter quitting from a caller.
9311         * remote-sim.c (gdbsim_close): Remove parameter quitting.
9312         (gdbsim_close): Remove duplicate function comment.  Remove parameter
9313         quitting and remove it also from printf_filtered.
9314         * remote.c (remote_close): Remove parameter quitting.
9315         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9316         * target.c (update_current_target): Remove parameter int from to_close
9317         de_fault.
9318         (push_target, unpush_target, pop_target): Remove parameter quitting from
9319         a caller.
9320         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9321         Remove parameter quitting from a caller.
9322         (target_preopen): Remove parameter quitting from a caller.
9323         (target_close): Remove parameter quitting.  Remove parameter quitting
9324         from a caller two times.  Remove parameter quitting also from
9325         fprintf_unfiltered.
9326         * target.h (struct target_ops): Remove parameter quitting and as int
9327         from fields to_xclose and to_close.
9328         (extern struct target_ops current_target):
9329         (target_close, pop_all_targets): Remove parameter quitting.  Update the
9330         comment.
9331         (pop_all_targets_above): Remove parameter quitting.
9332         * top.c (quit_target): Remove parameter quitting from a caller.
9333         * tracepoint.c (tfile_close): Remove parameter quitting.
9334         * windows-nat.c (windows_close): Remove parameter quitting.
9335
9336 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
9337
9338         * windows-nat.c (handle_output_debug_string): Replace call
9339         to string_to_core_addr with call to strtoull.
9340
9341 2013-03-20  Yao Qi  <yao@codesourcery.com>
9342
9343         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9344         and write it to CTF metadata.
9345
9346 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
9347
9348         * windows-nat.c (handle_output_debug_string): Change type of n to
9349         SIZE_T to avoid crash on 64 bit systems.
9350
9351 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
9352
9353         * python/python-internal.h (HAVE_SNPRINTF)
9354         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9355         about redefinition of snprintf by pyerrors.h.
9356
9357 2013-03-15  Steve Ellcey  <sellcey@mips.com>
9358
9359         * remote-sim.c (sim_command_completer): Make char arguments const.
9360
9361 2013-03-15  Tom Tromey  <tromey@redhat.com>
9362
9363         PR c++/15116:
9364         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9365
9366 2013-03-14  Tom Tromey  <tromey@redhat.com>
9367
9368         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9369         New fields.
9370         (get_file_crc): Move from symfile.c.
9371         (gdb_bfd_crc): New function.
9372         * gdb_bfd.h (gdb_bfd_crc): Declare.
9373         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9374         * symfile.c (get_file_crc): Move to gdb_bfd.c.
9375         (separate_debug_file_exists): Use gdb_bfd_crc.
9376
9377 2013-03-14  Tom Tromey  <tromey@redhat.com>
9378
9379         * symfile.c (get_debug_link_info): Remove.
9380         (find_separate_debug_file_by_debuglink): Use
9381         bfd_get_debug_link_info.
9382
9383 2013-03-14  Tom Tromey  <tromey@redhat.com>
9384
9385         * symtab.c (error_in_psymtab_expansion): New function.
9386         (lookup_symbol_aux_quick)
9387         (basic_lookup_transparent_type_quick): Remove "last resort"
9388         code.  Use error_in_psymtab_expansion.
9389
9390 2013-03-14  Doug Evans  <dje@google.com>
9391             Jan Kratochvil  <jan.kratochvil@redhat.com>
9392
9393         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9394         any successful compare_filenames_for_search or FILENAME_CMP.
9395         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9396         * symtab.c (iterate_over_some_symtabs): Likewise.
9397
9398 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9399
9400         * source.c (print_source_lines_base): Make a local copy of
9401         symtab_to_fullname.
9402
9403 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
9404             Jan Kratochvil  <jan.kratochvil@redhat.com>
9405
9406         * source.c (print_source_lines_base): Suppress "file" for TUI.
9407
9408 2013-03-14  Keith Seitz  <keiths@redhat.com>
9409             Alan Matsuoka  <alanm@redhat.com>
9410
9411         PR c++/15203
9412         PR c++/15210
9413         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9414         TYPE_CODE_METHOD.
9415         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9416         symbols.
9417
9418 2013-03-14  Yao Qi  <yao@codesourcery.com>
9419
9420         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9421         status to tfile if trace is stopped by command 'tstop'.
9422
9423 2013-03-14  Yao Qi  <yao@codesourcery.com>
9424
9425         * tracepoint.c (tfile_write_status): Write trace notes and user
9426         name into tfile if they are not NULL.
9427
9428 2013-03-14  Hui Zhu  <hui@codesourcery.com>
9429             Yao Qi  <yao@codesourcery.com>
9430
9431         * Makefile.in (REMOTE_OBS): Add ctf.o.
9432         (SFILES): Add ctf.c.
9433         (HFILES_NO_SRCDIR): Add ctf.h.
9434         * ctf.c, ctf.h: New files.
9435         * tracepoint.c: Include 'ctf.h'.
9436         (collect_pseudocommand): Remove static.
9437         (trace_save_command): Parse option "-ctf".
9438         Produce different trace file writers per option.
9439         Adjust output message.
9440         (trace_save_tfile, trace_save_ctf): New.
9441         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9442         * mi/mi-main.c: Include 'ctf.h'.
9443         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
9444         trace_save_tfile or trace_save_ctf.
9445         * NEWS: Mention these changes.
9446
9447 2013-03-14  Yao Qi  <yao@codesourcery.com>
9448
9449         * tracepoint.c (trace_file_writer_xfree): New.
9450         (struct tfile_writer_data): New.
9451         (tfile_dtor, tfile_can_target_save, tfile_start): New.
9452         (tfile_write_header, tfile_write_regblock_type): New.
9453         (tfile_write_status, tfile_write_uploaded_tsv): New.
9454         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9455         (tfile_write_raw_data, (tfile_end): New.
9456         (tfile_write_ops): New global variable.
9457         (TRACE_WRITE_R_BLOCK): New macro.
9458         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9459         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9460         (TRACE_WRITE_V_BLOCK): New macro.
9461         (trace_save): Add extra one parameter WRITER.  Make it static.
9462         Use WRITER to writer trace.
9463         (tfile_trace_file_writer_new): New.
9464         (trace_save_command): Caller update.
9465         (trace_save_tfile): Write trace data in TFILE format.
9466         * tracepoint.h (struct trace_frame_write_ops): New.
9467         (struct trace_file_write_ops): New.
9468         (struct trace_file_writer): New.
9469         (trace_save): Remove its declaration.
9470         (trace_save_tfile): Declare it.
9471         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9472         instead of trace_save.
9473
9474 2013-03-13  Pedro Alves  <palves@redhat.com>
9475
9476         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9477
9478 2013-03-13  Pedro Alves  <palves@redhat.com>
9479
9480         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9481         commented out code.
9482         * demangle.c (current_demangling_style_string): Make it const.
9483         (set_demangling_command): Assert the demangling style is known.
9484         Remove all handling of unknown styles.  Set
9485         'current_demangling_style_string' to an element of the
9486         demangling_style_names array.
9487         (set_demangling_style): Delete.
9488         (_initialize_demangler): Set current_demangling_style_string to the
9489         element of the demangling_style_names array that corresponds to
9490         the default demangling style.  Remove FIXME note.  Don't call
9491         set_demangling_style.
9492         * gdb-demangle.h (set_demangling_style): Remove declaration.
9493
9494 2013-03-13  Pedro Alves  <palves@redhat.com>
9495
9496         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9497         fields const.
9498         (ada_make_symbol_completion_list): Make "text0" parameter const.
9499         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9500         * breakpoint.c (condition_completer): Make "text" and "word"
9501         parameters const.  Adjust.
9502         (check_tracepoint_command): Adjust to validate_actionline
9503         prototype change.
9504         (catch_syscall_completer): Make "text" and "word" parameters
9505         const.
9506         * cli/cli-cmds.c (show_user): Make "comname" local const.
9507         (valid_command_p): Make "command" parameter const.
9508         (alias_command): Make "alias_prefix" and "command_prefix" locals
9509         const.
9510         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9511         (add_alias_cmd): Make "name" and "oldname" parameters const.
9512         Adjust.  No longer make copy of OLDNAME.
9513         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9514         (add_setshow_cmd_full, add_setshow_enum_cmd)
9515         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9516         (add_setshow_filename_cmd, add_setshow_string_cmd)
9517         (add_setshow_string_noescape_cmd)
9518         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9519         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9520         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9521         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9522         Make "name" parameter const.
9523         (help_cmd): Rename "command" parameter to "arg".  New const local
9524         "command".
9525         (find_cmd): Make "command" parameter const.
9526         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
9527         deprecated_cmd_warning prototype change.
9528         (undef_cmd_error): Make "cmdtype" parameter const.
9529         (lookup_cmd): Make "line" parameter const.
9530         (deprecated_cmd_warning): Change type of "text" parameter to
9531         pointer to const char, from pointer to pointer to char.  Adjust.
9532         (lookup_cmd_composition): Make "text" parameter const.
9533         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9534         parameters const.
9535         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9536         const.
9537         * cli/cli-script.c (validate_comname): Make "tem" local const.
9538         (define_command): New const local "tem_c".  Use it in calls to
9539         lookup_cmd.
9540         (document_command): Make "tem" and "comfull" locals const.
9541         (show_user_1): Make "prefix" and "name" parameters const.
9542         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9543         const.
9544         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9545         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9546         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9547         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9548         (complete_on_enum, add_setshow_enum_cmd)
9549         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9550         (add_setshow_filename_cmd, add_setshow_string_cmd)
9551         (add_setshow_string_noescape_cmd)
9552         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9553         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9554         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9555         Change prototypes, constifying strings.
9556         * completer.c (noop_completer, filename_completer): Make "text"
9557         and "prefix" parameters const.
9558         (location_completer, expression_completer)
9559         (complete_line_internal): Make "text" and "prefix" parameters
9560         const and adjust.
9561         (command_completer, signal_completer): Make "text" and "prefix"
9562         parameters const.
9563         * completer.h (noop_completer, filename_completer)
9564         (expression_completer, location_completer, command_completer)
9565         (signal_completer): Change prototypes.
9566         * corefile.c (complete_set_gnutarget): Make "text" and "word"
9567         parameters const.
9568         * cp-abi.c (cp_abi_completer): Likewise.
9569         * expression.h (parse_expression_for_completion): Change
9570         prototype.
9571         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9572         parameters const.
9573         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9574         * infrun.c (handle_completer): Make "text" and "word" parameters
9575         const.
9576         * interps.c (interpreter_completer): Make "text" and "word"
9577         parameters const.
9578         * language.h (struct language_defn)
9579         <la_make_symbol_completion_list>: Make "text" and "word"
9580         parameters const.
9581         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9582         (parse_exp_in_context): Rename to ...
9583         (parse_exp_in_context_1): ... this.
9584         (parse_exp_in_context): Reimplement, with const hack from
9585         parse_exp_1.
9586         (parse_expression_for_completion): Make "string" parameter const.
9587         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9588         to pointer to const char.  Adjust.
9589         (print_command_1): Make "exp" parameter const.
9590         (output_command): Rename to ...
9591         (output_command_const): ... this.  Make "exp" parameter const.
9592         (output_command): Reimplement.
9593         (x_command): Adjust.
9594         (display_command): Rename "exp" parameter to "arg".  New "exp"
9595         local, const version of "arg".
9596         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9597         "cmd_name" local const.
9598         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9599         call.
9600         (cmdpy_completer): Make "text" and "word" parameters const.
9601         (gdbpy_parse_command_name): Make "prefix_text2" local const.
9602         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9603         const.
9604         * remote.c (_initialize_remote): Make "cmd_name" local const.
9605         * symtab.c (language_search_unquoted_string): Make "text" and "p"
9606         parameters const.  Adjust.
9607         (completion_list_add_fields): Make "sym_text", "text" and "word"
9608         parameters const.
9609         (struct add_name_data) <sym_text, text, word>: Make fields const.
9610         (default_make_symbol_completion_list_break_on): Make "text" and
9611         "word" parameters const.  Adjust locals.
9612         (default_make_symbol_completion_list)
9613         (make_symbol_completion_list, make_symbol_completion_type)
9614         (make_symbol_completion_list_fn): Make "text" and "word"
9615         parameters const.
9616         (make_file_symbol_completion_list): Make "text", "word" and
9617         "srcfile" parameters const.  Adjust locals.
9618         (add_filename_to_list): Make "text" and "word" parameters const.
9619         (struct add_partial_filename_data) <text, word>: Make fields
9620         const.
9621         (make_source_files_completion_list): Make "text" and "word"
9622         parameters const.
9623         * symtab.h (default_make_symbol_completion_list_break_on)
9624         (default_make_symbol_completion_list, make_symbol_completion_list)
9625         (make_symbol_completion_type enum type_code)
9626         (make_symbol_completion_list_fn make_file_symbol_completion_list)
9627         (make_source_files_completion_list): Change prototype.
9628         * top.c (execute_command): Adjust to pass pointer to pointer to
9629         const char to lookup_cmd, and to deprecated_cmd_warning prototype
9630         change.
9631         (set_verbose): Make "cmdname" local const.
9632         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9633         and adjust.
9634         (validate_actionline): Make "line" parameter a pointer to const
9635         char, and adjust.
9636         (encode_actions_1): Make "action_exp" local const, and adjust.
9637         (encode_actions): Adjust.
9638         (replace_comma): Delete.
9639         (trace_dump_actions): Make "action_exp" and "next_comma" locals
9640         const, and adjust.  Don't frob the action string while splitting
9641         it at commas.  Instead, make a copy of each split substring in
9642         turn.
9643         (trace_dump_command): Adjust to validate_actionline prototype
9644         change.
9645         * tracepoint.h (decode_agent_options, decode_agent_options)
9646         (encode_actions, validate_actionline): Change prototypes.
9647         * valprint.h (output_command): Delete declaration.
9648         (output_command_const): Declare.
9649         * value.c (function_destroyer): Cast const away in xfree call.
9650
9651 2013-03-13  Pedro Alves  <palves@redhat.com>
9652
9653         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9654         rather than casting 'const char * const *' to 'const char **'.
9655         * ada-lex.l (processInt): Make "trailer" local const.  Remove
9656         'const char **' cast.
9657         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9658         locals, and use those as strtol output pointer, instead than doing
9659         invalid casts to from 'const char **' to 'char **'.
9660         (_initialize_demangle): Remove cast.
9661         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9662         locals, and use those as strtol output pointer, instead than doing
9663         invalid casts to from 'const char **' to 'char **'.
9664         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9665         casts.
9666         * stap-probe.c (stap_parse_register_operand)
9667         (stap_parse_single_operand): Likewise.
9668
9669 2013-03-13  Yao Qi  <yao@codesourcery.com>
9670
9671         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9672         the last matched 'V' blcok in trace frame.
9673
9674 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
9675
9676         * NEWS: Create a new section for the next release branch.
9677         Rename the section of the current branch, now that it has
9678         been cut.
9679
9680 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
9681
9682         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9683         * version.in: Bump version to 7.6.50.20130312-cvs.
9684
9685 2013-03-12  Keith Seitz  <keiths@redhat.com>
9686
9687         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9688         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9689         Remove temporary copy of input string.
9690         (mi_execute_command_wrapper): Make "cmd" const.
9691         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9692         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9693         Use const strings.
9694         (mi_parse): Make "cmd" const.
9695         Use const strings.
9696         * mi/mi-parse.h (mi_parse): Make "cmd" const.
9697
9698 2013-03-12  Keith Seitz  <keiths@redhat.com>
9699
9700         * ada-lang.c (ada_read_renaming_var_value): Pass const
9701         pointer to expression string to parse_exp_1.
9702         (create_excep_cond_exprs): Likewise.
9703         * ax-gdb.c (agent_eval_command_one): Likewise.
9704         (maint_agent_printf_command): Likewise.
9705         Constify much of the string handling/parsing.
9706         * breakpoint.c (set_breakpoint_condition): Pass const
9707         pointer to expression string to parse_exp_1.
9708         (update_watchpoint): Likewise.
9709         (parse_cmd_to_aexpr): Constify string handling.
9710         Pass const pointer to parse_exp_1.
9711         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9712         (find_condition_and_thread): Likewise.
9713         Make TOK const.
9714         (watch_command_1): Make "arg" const.
9715         Constify string handling.
9716         Copy the expression string instead of changing the input
9717         string.
9718         (update_breakpoint_location): Pass const pointer to
9719         parse_exp_1.
9720         * eval.c (parse_and_eval_address): Make "exp" const.
9721         (parse_to_comma_and_eval): Make "expp" const.
9722         (parse_and_eval): Make "exp" const.
9723         * expression.h (parse_expression): Make argument const.
9724         (parse_exp_1): Make first argument const.
9725         * findcmd.c (parse_find_args): Treat "args" as const.
9726         * linespec.c (parse_linespec): Pass const pointer to
9727         linespec_expression_to_pc.
9728         (linespec_expression_to_pc): Make "exp_ptr" const.
9729         * parse.c (parse_exp_1): Make "stringptr" const.
9730         Make a copy of the expression to pass to parse_exp_in_context until
9731         this whole interface can be constified.
9732         (parse_expression): Make "string" const.
9733         * printcmd.c (ui_printf): Treat "arg" as const.
9734         Handle const strings.
9735         * tracepoint.c (validate_actionline): Pass const pointer to
9736         all calls to parse_exp_1.
9737         (encode_actions_1): Likewise.
9738         * value.h (parse_to_comma_and_eval): Make argument const.
9739         (parse_and_eval_address): Likewise.
9740         (parse_and_eval): Likewise.
9741         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9742         (varobj_set_value): Likewise.
9743         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9744         constify string handling.
9745         Pass const pointers to parse_and_eval_address and
9746         parse_to_comman_and_eval.
9747         * cli/cli-utils.c (skip_to_space): Rename to ...
9748         (skip_to_space_const): ... this. Handle const strings.
9749         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9750         skip_to_space_const.
9751         (skip_to_space_const): Declare.
9752         * common/format.c (parse_format_string): Make "arg" const.
9753         Handle const strings.
9754         * common/format.h (parse_format_string): Make "arg" const.
9755         * gdbserver/ax.c (ax_printf): Make "format" const.
9756         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9757         of the expression string.
9758
9759 2013-03-12  Hui Zhu  <hui@codesourcery.com>
9760
9761         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9762
9763 2013-03-12  Yao Qi  <yao@codesourcery.com>
9764             Hui Zhu  <hui@codesourcery.com>
9765
9766         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9767         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9768         DW_OP_deref_size.
9769
9770 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
9771
9772         * ada-lex.l (rules): Only recognize 'thread' as a
9773         delimiter when followed by numerals, as for c-exp.y.
9774         Use new rewind_to_char function to rewind the input for
9775         expression-delimiting tokens.
9776         (rewind_to_char): New function.
9777
9778 2013-03-11  Pedro Alves  <palves@redhat.com>
9779             Jan Kratochvil  <jan.kratochvil@redhat.com>
9780
9781         * configure: Regenerate.
9782         * configure.ac (check dynamic export flag): Link python test with
9783         $PYTHON_LIBS.
9784
9785 2013-03-11  Doug Evans  <dje@google.com>
9786             Keith Seitz  <keiths@redhat.com>
9787
9788         * linespec.c (find_linespec_symbols): Call find_function_symbols
9789         first, and then call lookup_prefix_sym/find_method.
9790
9791 2013-03-11  Pedro Alves  <palves@redhat.com>
9792
9793         * charset.c (convert_between_encodings): Don't cast between
9794         different pointer to pointer types.  Instead, make the 'inp' local
9795         be of the type iconv expects.
9796         (wchar_iterate): Don't cast between different pointer to pointer
9797         types.  Instead, use new pointer local of the type iconv expects.
9798         * target.c (target_read_stralloc, target_fileio_read_stralloc):
9799         Add new local of type char pointer, and use it to get a
9800         char/string view of the byte buffer, instead of casting between
9801         pointer to pointer types.
9802
9803 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
9804
9805         * remote.c (remote_set_trace_buffer_size): Move != operator
9806         to the start of next line to fix an ARI warning.
9807
9808 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9809
9810         * NEWS: Add record changes.
9811
9812 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9813
9814         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9815         the instruction history disassembly.
9816         * disasm.c (dump_insns): Omit the pc prefix, if requested.
9817         * disasm.h (DISASSEMBLY_OMIT_PC): New.
9818
9819 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9820
9821         * Makefile.in (SFILES): Add record-btrace.c
9822         (COMMON_OBS): Add record-btrace.o
9823         * record-btrace.c: New.
9824         * objfiles.c: Include btrace.h.
9825         (free_objfile): call btrace_free_objfile.
9826
9827 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9828
9829         * target.c (target_call_history, target_call_history_from,
9830         target_call_history_range): New.
9831         * target.h (target_ops) <to_call_history, to_call_history_from,
9832         to_call_history_range>: New fields.
9833         (target_call_history, target_call_history_from,
9834         target_call_history_range): New declaration.
9835         * record.c (get_call_history_modifiers, cmd_record_call_history,
9836         record_call_history_size): New.
9837         (_initialize_record): Add the "record function-call-history" command.
9838         Add "set/show record function-call-history-size" commands.
9839         * record.h (record_print_flag): New.
9840
9841 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9842
9843         * target.h (target_ops) <to_insn_history, to_insn_history_from,
9844         to_insn_history_range>: New fields.
9845         (target_insn_history): New.
9846         (target_insn_history_from): New.
9847         (target_insn_history_range): New.
9848         * target.c (target_insn_history): New.
9849         (target_insn_history_from): New.
9850         (target_insn_history_range): New.
9851         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9852         (record_insn_history_size): New.
9853         (get_insn_number): New.
9854         (get_context_size): New.
9855         (no_chunk): New.
9856         (get_insn_history_modifiers): New.
9857         (cmd_record_insn_history): New.
9858         (_initialize_record): Add "set/show record instruction-history-size"
9859         command. Add "record instruction-history" command.
9860
9861 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9862
9863         * record.h (record_disconnect): New.
9864         (record_detach): New.
9865         (record_mourn_inferior): New.
9866         (record_kill): New.
9867         * record-full.c (record_disconnect, record_detach,
9868         record_mourn_inferior, record_kill): Move to...
9869         * record.c: ...here.
9870         (DEBUG): New.
9871         (record_stop): New.
9872         (record_unpush): New.
9873         (cmd_record_stop): Call record_stop. Replace unpush_target
9874         call with record_unpush call.
9875         (record_disconnect, record_detach): Assert that the target
9876         is of record stratum. Call record_unpush, record_stop, and
9877         DEBUG.
9878         (record_mourn_inferior, record_kill): Assert that the target
9879         is of record stratum. Call record_unpush and DEBUG.
9880
9881 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9882
9883         * record-full.h, record-full.c (record_memory_query): Rename
9884         to ...
9885         (record_full_memory_query): ...this. Update all users.
9886         (record_arch_list_add_reg): Rename to ...
9887         (record_full_arch_list_add_reg): ...this. Update all users.
9888         (record_arch_list_add_mem): Rename to ...
9889         (record_full_arch_list_add_mem): ...this. Update all users.
9890         (record_arch_list_add_end): Rename to ...
9891         (record_full_arch_list_add_end): ...this. Update all users.
9892         (record_gdb_operation_disable_set): Rename to ...
9893         (record_full_gdb_operation_disable_set): ...this.
9894         Update all users.
9895
9896 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9897
9898         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9899         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9900         (RECORD_IS_REPLAY): Renamed to ...
9901         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9902         (RECORD_FILE_MAGIC): Renamed to ...
9903         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9904         (record_mem_entry): Renamed to ...
9905         (record_full_mem_entry): ... this. Updated all users.
9906         (record_reg_entry): Renamed to ...
9907         (record_full_reg_entry): ... this. Updated all users.
9908         (record_end_entry): Renamed to ...
9909         (record_full_end_entry): ... this. Updated all users.
9910         (record_type) <record_end, record_reg, record_mem>: Renamed
9911         to ...
9912         (record_full_type) <record_full_end, record_full_reg,
9913         record_full_mem>: ... this. Updated all users.
9914         (record_entry): Renamed to ...
9915         (record_full_entry): ... this. Updated all users.
9916         (record_core_buf_entry): Renamed to ...
9917         (record_full_core_buf_entry): ... this. Updated all users.
9918         (record_core_regbuf): Renamed to ...
9919         (record_full_core_regbuf): ... this. Updated all users.
9920         (record_core_start): Renamed to ...
9921         (record_full_core_start): ... this. Updated all users.
9922         (record_core_end): Renamed to ...
9923         (record_full_core_end): ... this. Updated all users.
9924         (record_core_buf_list): Renamed to ...
9925         (record_full_core_buf_list): ... this. Updated all users.
9926         (record_first): Renamed to ...
9927         (record_full_first): ... this. Updated all users.
9928         (record_list): Renamed to ...
9929         (record_full_list): ... this. Updated all users.
9930         (record_arch_list_head): Renamed to ...
9931         (record_full_arch_list_head): ... this. Updated all users.
9932         (record_arch_list_tail): Renamed to ...
9933         (record_full_arch_list_tail): ... this. Updated all users.
9934         (record_stop_at_limit): Renamed to ...
9935         (record_full_stop_at_limit): ... this. Updated all users.
9936         (record_insn_max_num): Renamed to ...
9937         (record_full_insn_max_num): ... this. Updated all users.
9938         (record_insn_num): Renamed to ...
9939         (record_full_insn_num): ... this. Updated all users.
9940         (record_insn_count): Renamed to ...
9941         (record_full_insn_count): ... this. Updated all users.
9942         (record_ops): Renamed to ...
9943         (record_full_ops): ... this. Updated all users.
9944         (record_core_ops): Renamed to ...
9945         (record_full_core_ops): ... this. Updated all users.
9946         (set_record_cmdlist): Renamed to ...
9947         (set_record_full_cmdlist): ... this. Updated all users.
9948         (show_record_cmdlist): Renamed to ...
9949         (show_record_full_cmdlist): ... this. Updated all users.
9950         (record_cmdlist): Renamed to ...
9951         (record_full_cmdlist): ... this. Updated all users.
9952         (record_beneath_to_resume_ops): Renamed to ...
9953         (record_full_beneath_to_resume_ops): ... this. Updated all users.
9954         (record_beneath_to_resume): Renamed to ...
9955         (record_full_beneath_to_resume): ... this. Updated all users.
9956         (record_beneath_to_wait_ops): Renamed to ...
9957         (record_full_beneath_to_wait_ops): ... this. Updated all users.
9958         (record_beneath_to_wait): Renamed to ...
9959         (record_full_beneath_to_wait): ... this. Updated all users.
9960         (record_beneath_to_store_registers_ops): Renamed to ...
9961         (record_full_beneath_to_store_registers_ops): ... this.
9962         Updated all users.
9963         (record_beneath_to_store_registers): Renamed to ...
9964         (record_full_beneath_to_store_registers): ... this.
9965         Updated all users.
9966         (record_beneath_to_xfer_partial_ops): Renamed to ...
9967         (record_full_beneath_to_xfer_partial_ops): ... this.
9968         Updated all users.
9969         (record_beneath_to_xfer_partial): Renamed to ...
9970         (record_full_beneath_to_xfer_partial): ... this.
9971         Updated all users.
9972         (record_beneath_to_insert_breakpoint): Renamed to ...
9973         (record_full_beneath_to_insert_breakpoint): ... this.
9974         Updated all users.
9975         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9976         (record_full_beneath_to_stopped_by_watchpoint): ... this.
9977         Updated all users.
9978         (record_beneath_to_stopped_data_address): Renamed to ...
9979         (record_full_beneath_to_stopped_data_address): ... this.
9980         Updated all users.
9981         (record_beneath_to_async): Renamed to ...
9982         (record_full_beneath_to_async): ... this. Updated all users.
9983         (record_goto_insn): Renamed to ...
9984         (record_full_goto_insn): ... this. Updated all users.
9985         (record_save): Renamed to ...
9986         (record_full_save): ... this. Updated all users.
9987         (record_reg_alloc): Renamed to ...
9988         (record_full_reg_alloc): ... this. Updated all users.
9989         (record_reg_release): Renamed to ...
9990         (record_full_reg_release): ... this. Updated all users.
9991         (record_mem_alloc): Renamed to ...
9992         (record_full_mem_alloc): ... this. Updated all users.
9993         (record_mem_release): Renamed to ...
9994         (record_full_mem_release): ... this. Updated all users.
9995         (record_end_alloc): Renamed to ...
9996         (record_full_end_alloc): ... this. Updated all users.
9997         (record_end_release): Renamed to ...
9998         (record_full_end_release): ... this. Updated all users.
9999         (record_entry_release): Renamed to ...
10000         (record_full_entry_release): ... this. Updated all users.
10001         (record_list_release): Renamed to ...
10002         (record_full_list_release): ... this. Updated all users.
10003         (record_list_release_following): Renamed to ...
10004         (record_full_list_release_following): ... this.
10005         Updated all users.
10006         (record_list_release_first): Renamed to ...
10007         (record_full_list_release_first): ... this. Updated all users.
10008         (record_arch_list_add): Renamed to ...
10009         (record_full_arch_list_add): ... this. Updated all users.
10010         (record_get_loc): Renamed to ...
10011         (record_full_get_loc): ... this. Updated all users.
10012         (record_check_insn_num): Renamed to ...
10013         (record_full_check_insn_num): ... this. Updated all users.
10014         (record_arch_list_cleanups): Renamed to ...
10015         (record_full_arch_list_cleanups): ... this. Updated all users.
10016         (record_message): Renamed to ...
10017         (record_full_message): ... this. Updated all users.
10018         (record_message_wrapper): Renamed to ...
10019         (record_full_message_wrapper): ... this. Updated all users.
10020         (record_message_wrapper_safe): Renamed to ...
10021         (record_full_message_wrapper_safe): ... this. Updated all users.
10022         (record_gdb_operation_disable): Renamed to ...
10023         (record_full_gdb_operation_disable): ... this. Updated all users.
10024         (record_hw_watchpoint): Renamed to ...
10025         (record_full_hw_watchpoint): ... this. Updated all users.
10026         (record_exec_insn): Renamed to ...
10027         (record_full_exec_insn): ... this. Updated all users.
10028         (record_restore): Renamed to ...
10029         (record_full_restore): ... this. Updated all users.
10030         (record_async_inferior_event_token): Renamed to ...
10031         (record_full_async_inferior_event_token): ... this.
10032         Updated all users.
10033         (record_async_inferior_event_handler): Renamed to ...
10034         (record_full_async_inferior_event_handler): ... this.
10035         Updated all users.
10036         (record_core_open_1): Renamed to ...
10037         (record_full_core_open_1): ... this. Updated all users.
10038         (record_open_1): Renamed to ...
10039         (record_full_open_1): ... this. Updated all users.
10040         (record_open): Renamed to ...
10041         (record_full_open): ... this. Updated all users.
10042         (record_close): Renamed to ...
10043         (record_full_close): ... this. Updated all users.
10044         (record_resume_step): Renamed to ...
10045         (record_full_resume_step): ... this. Updated all users.
10046         (record_resumed): Renamed to ...
10047         (record_full_resumed): ... this. Updated all users.
10048         (record_execution_dir): Renamed to ...
10049         (record_full_execution_dir): ... this. Updated all users.
10050         (record_resume): Renamed to ...
10051         (record_full_resume): ... this. Updated all users.
10052         (record_get_sig): Renamed to ...
10053         (record_full_get_sig): ... this. Updated all users.
10054         (record_sig_handler): Renamed to ...
10055         (record_full_sig_handler): ... this. Updated all users.
10056         (record_wait_cleanups): Renamed to ...
10057         (record_full_wait_cleanups): ... this. Updated all users.
10058         (record_wait_1): Renamed to ...
10059         (record_full_wait_1): ... this. Updated all users.
10060         (record_wait): Renamed to ...
10061         (record_full_wait): ... this. Updated all users.
10062         (record_stopped_by_watchpoint): Renamed to ...
10063         (record_full_stopped_by_watchpoint): ... this. Updated all users.
10064         (record_disconnect): Renamed to ...
10065         (record_full_disconnect): ... this. Updated all users.
10066         (record_detach): Renamed to ...
10067         (record_full_detach): ... this. Updated all users.
10068         (record_mourn_inferior): Renamed to ...
10069         (record_full_mourn_inferior): ... this. Updated all users.
10070         (record_kill): Renamed to ...
10071         (record_full_kill): ... this. Updated all users.
10072         (record_stopped_data_address): Renamed to ...
10073         (record_full_stopped_data_address): ... this. Updated all users.
10074         (record_registers_change): Renamed to ...
10075         (record_full_registers_change): ... this. Updated all users.
10076         (record_store_registers): Renamed to ...
10077         (record_full_store_registers): ... this. Updated all users.
10078         (record_xfer_partial): Renamed to ...
10079         (record_full_xfer_partial): ... this. Updated all users.
10080         (record_breakpoint): Renamed to ...
10081         (record_full_breakpoint): ... this. Updated all users.
10082         (record_breakpoint_p): Renamed to ...
10083         (record_full_breakpoint_p): ... this. Updated all users.
10084         (record_breakpoints): Renamed to ...
10085         (record_full_breakpoints): ... this. Updated all users.
10086         (record_sync_record_breakpoints): Renamed to ...
10087         (record_full_sync_record_breakpoints): ... this.
10088         Updated all users.
10089         (record_init_record_breakpoints): Renamed to ...
10090         (record_full_init_record_breakpoints): ... this.
10091         Updated all users.
10092         (record_insert_breakpoint): Renamed to ...
10093         (record_full_insert_breakpoint): ... this. Updated all users.
10094         (record_remove_breakpoint): Renamed to ...
10095         (record_full_remove_breakpoint): ... this. Updated all users.
10096         (record_can_execute_reverse): Renamed to ...
10097         (record_full_can_execute_reverse): ... this. Updated all users.
10098         (record_get_bookmark): Renamed to ...
10099         (record_full_get_bookmark): ... this. Updated all users.
10100         (record_goto_bookmark): Renamed to ...
10101         (record_full_goto_bookmark): ... this. Updated all users.
10102         (record_async): Renamed to ...
10103         (record_full_async): ... this. Updated all users.
10104         (record_can_async_p): Renamed to ...
10105         (record_full_can_async_p): ... this. Updated all users.
10106         (record_is_async_p): Renamed to ...
10107         (record_full_is_async_p): ... this. Updated all users.
10108         (record_execution_direction): Renamed to ...
10109         (record_full_execution_direction): ... this. Updated all users.
10110         (record_info): Renamed to ...
10111         (record_full_info): ... this. Updated all users.
10112         (record_delete): Renamed to ...
10113         (record_full_delete): ... this. Updated all users.
10114         (record_is_replaying): Renamed to ...
10115         (record_full_is_replaying): ... this. Updated all users.
10116         (record_goto_entry): Renamed to ...
10117         (record_full_goto_entry): ... this. Updated all users.
10118         (record_goto_begin): Renamed to ...
10119         (record_full_goto_begin): ... this. Updated all users.
10120         (record_goto_end): Renamed to ...
10121         (record_full_goto_end): ... this. Updated all users.
10122         (record_goto): Renamed to ...
10123         (record_full_goto): ... this. Updated all users.
10124         (init_record_ops): Renamed to ...
10125         (init_record_full_ops): ... this. Updated all users.
10126         (record_core_resume): Renamed to ...
10127         (record_full_core_resume): ... this. Updated all users.
10128         (record_core_kill): Renamed to ...
10129         (record_full_core_kill): ... this. Updated all users.
10130         (record_core_fetch_registers): Renamed to ...
10131         (record_full_core_fetch_registers): ... this. Updated all users.
10132         (record_core_prepare_to_store): Renamed to ...
10133         (record_full_core_prepare_to_store): ... this. Updated all users.
10134         (record_core_store_registers): Renamed to ...
10135         (record_full_core_store_registers): ... this. Updated all users.
10136         (record_core_xfer_partial): Renamed to ...
10137         (record_full_core_xfer_partial): ... this. Updated all users.
10138         (record_core_insert_breakpoint): Renamed to ...
10139         (record_full_core_insert_breakpoint): ... this. Updated all users.
10140         (record_core_remove_breakpoint): Renamed to ...
10141         (record_full_core_remove_breakpoint): ... this. Updated all users.
10142         (record_core_has_execution): Renamed to ...
10143         (record_full_core_has_execution): ... this. Updated all users.
10144         (init_record_core_ops): Renamed to ...
10145         (init_record_full_core_ops): ... this. Updated all users.
10146         (cmd_record_restore): Renamed to ...
10147         (cmd_record_full_restore): ... this. Updated all users.
10148         (record_save_cleanups): Renamed to ...
10149         (record_full_save_cleanups): ... this. Updated all users.
10150         (cmd_record_start): Renamed to ...
10151         (cmd_record_full_start): ... this. Updated all users.
10152         (set_record_insn_max_num): Renamed to ...
10153         (set_record_full_insn_max_num): ... this. Updated all users.
10154         (set_record_command): Renamed to ...
10155         (set_record_full_command): ... this. Updated all users.
10156         (show_record_command): Renamed to ...
10157         (show_record_full_command): ... this. Updated all users.
10158         (_initialize_record): Renamed to ...
10159         (_initialize_record_full): ... this. Updated all users.
10160
10161 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10162
10163         * record.h: Split into this and ...
10164         * record-full.h: ... this.
10165         * record.c: Split into this and ...
10166         * record-full.c: ... this.
10167         * target.h (target_ops): Add new fields to_info_record,
10168         to_save_record, to_delete_record, to_record_is_replaying,
10169         to_goto_record_begin, to_goto_record_end, to_goto_record.
10170         (target_info_record): New.
10171         (target_save_record): New.
10172         (target_supports_delete_record): New.
10173         (target_delete_record): New.
10174         (target_record_is_replaying): New.
10175         (target_goto_record_begin): New.
10176         (target_goto_record_end): New.
10177         (target_goto_record): New.
10178         * target.c (target_info_record): New.
10179         (target_save_record): New.
10180         (target_supports_delete_record): New.
10181         (target_delete_record): New.
10182         (target_record_is_replaying): New.
10183         (target_goto_record_begin): New.
10184         (target_goto_record_end): New.
10185         (target_goto_record): New.
10186         * record.h: Declare struct cmd_list_element.
10187         (record_cmdlist): New declaration.
10188         (set_record_cmdlist): New declaration.
10189         (show_record_cmdlist): New declaration.
10190         (info_record_cmdlist): New declaration.
10191         (cmd_record_goto): New declaration.
10192         * record.c: Remove unnecessary includes.
10193         Include inferior.h.
10194         (cmd_record_goto): Remove declaration.
10195         (record_cmdlist): Now extern. Initialize.
10196         (set_record_cmdlist): Now extern. Initialize.
10197         (show_record_cmdlist): Now extern. Initialize.
10198         (info_record_cmdlist): Now extern. Initialize.
10199         (find_record_target): New.
10200         (require_record_target): New.
10201         (cmd_record_start): Update.
10202         (cmd_record_delete): Remove target-specific code.
10203         Call target_delete_record.
10204         (cmd_record_stop): Unpush any record target.
10205         (set_record_insn_max_num): Move to record-full.c
10206         (set_record_command): Add comment.
10207         (show_record_command): Add comment.
10208         (info_record_command): Update comment.
10209         Remove target-specific code.
10210         Call the record target's to_info_record.
10211         (cmd_record_start): New.
10212         (cmd_record_goto): Now extern.
10213         Remove target-specific code.
10214         Call target_goto_begin,  target_goto_end, or target_goto.
10215         (_initialize_record): Move record target ops initialization to
10216         record-full.c.
10217         Change "record" command help text.
10218         Move "record restore", "record set", and "record show" commands to
10219         record-full.c.
10220         * Makefile.in (SFILES): Add record-full.c.
10221         (HFILES_NO_SRCDIR): Add record-full.h.
10222         (COMMON_OBS): Add record-full.o.
10223         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10224         * arm-tdep.c: Include record-full.h.
10225         * i386-linux-tdep.c: Include record-full.h instead of record.h.
10226         * i386-tdep.c: Include record-full.h.
10227         * infrun.c: Include record-full.h.
10228         * linux-record.c: Include record-full.h.
10229         * moxie-tdep.c: Include record-full.h.
10230         * record-full.c: Include record-full.h.
10231         Change module comment.
10232         (set_record_full_cmdlist): New.
10233         (show_record_full_cmdlist): New.
10234         (record_full_cmdlist): New.
10235         (record_goto_insn): New declaration.
10236         (record_save): New declaration.
10237         (record_check_insn_num): Change query string.
10238         (record_info): New.
10239         (record_delete): New.
10240         (record_is_replaying): New.
10241         (record_goto_entry): New.
10242         (record_goto_begin): New.
10243         (record_goto_end): New.
10244         (record_goto): New.
10245         (init_record_ops): Update.
10246         (init_record_core_ops): Update.
10247         (cmd_record_save): Rename to record_save. Remove target and arg checks.
10248         (cmd_record_start): New.
10249         (set_record_insn_max_num): Moved from record.c
10250         (set_record_full_command): New.
10251         (show_record_full_command): New.
10252         (_initialize_record_full): New.
10253
10254 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10255
10256         * target.h (add_deprecated_target_alias): New.
10257         * target.c (add_deprecated_target_alias): New.
10258
10259 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10260
10261         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10262         and signal.h.
10263         (linux_supports_btrace): Add kernel and
10264         cpuid check.
10265         (kernel_supports_btrace): New function.
10266         (cpu_supports_btrace): New function.
10267         (intel_supports_btrace): New function.
10268
10269 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10270
10271         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10272         * remote.c: Include btrace.h.
10273         (struct btrace_target_info): New struct.
10274         (remote_supports_btrace): New function.
10275         (send_Qbtrace): New function.
10276         (remote_enable_btrace): New function.
10277         (remote_disable_btrace): New function.
10278         (remote_teardown_btrace): New function.
10279         (remote_read_btrace): New function.
10280         (init_remote_ops): Add btrace ops.
10281         (enum <unnamed>): Add btrace packets.
10282         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10283         (_initialize_remote): Add packet configuration for branch tracing.
10284
10285 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10286
10287         * features/btrace.dtd: New file.
10288         * Makefile.in (XMLFILES): Add btrace.dtd.
10289         * btrace.h (parse_xml_btrace): New declaration.
10290         * btrace.c: Include xml-support.h.
10291         (parse_xml_btrace): New function.
10292         (parse_xml_btrace_block): New function.
10293         (block_attributes): New struct.
10294         (btrace_attributes): New struct.
10295         (btrace_children): New struct.
10296         (btrace_elements): New struct.
10297
10298 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10299
10300         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10301         (amd64_linux_enable_btrace): New.
10302         (amd64_linux_disable_btrace): New.
10303         (amd64_linux_teardown_btrace): New.
10304         (_initialize_amd64_linux_nat): Initialize btrace ops.
10305         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10306         (i386_linux_enable_btrace): New.
10307         (i386_linux_disable_btrace): New.
10308         (i386_linux_teardown_btrace): New.
10309         (_initialize_i386_linux_nat): Initialize btrace ops.
10310         * config/i386/linux.mh: Add linux-btrace.o.
10311         * config/i386/linux64.mh: Add linux-btrace.o.
10312
10313 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10314
10315         * common/linux_btrace.h: New file.
10316         * common/linux_btrace.c: New file.
10317         * Makefile.in (SFILES): Add btrace.c.
10318         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10319         (COMMON_OBS): Add btrace.o.
10320         (linux-btrace.o): New rule.
10321
10322 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10323
10324         * target.h: Include btrace.h.
10325         (struct target_ops) <to_supports_btrace, to_enable_btrace,
10326         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10327         * target.c (target_supports_btrace): New function.
10328         (target_enable_btrace): New function.
10329         (target_disable_btrace): New function.
10330         (target_teardown_btrace): New function.
10331         (target_read_btrace): New function.
10332         * btrace.h: New file.
10333         * btrace.c: New file.
10334         * Makefile.in: Add btrace.c.
10335         * gdbthread.h: Include btrace.h.
10336         (struct thread_info): Add btrace field.
10337         * thread.c: Include btrace.h.
10338         (clear_thread_inferior_resources): Call target_teardown_btrace.
10339         * common/btrace-common.h: New file.
10340
10341 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10342
10343         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10344         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10345         kill_status to outer block.
10346
10347 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10348
10349         Fix entry-values if the callee called a noreturn function.
10350         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10351         get_frame_address_in_block.  Add new comment.
10352
10353 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10354
10355         Fix entry-values in C++ across CUs.
10356         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10357         lookup_minimal_symbol.  Add a comment.
10358         * dwarf2read.c
10359         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10360         DW_AT_linkage_name.
10361
10362 2013-03-08  Yao Qi  <yao@codesourcery.com>
10363
10364         * tracepoint.c (_initialize_tracepoint): Indent the code.
10365
10366 2013-03-08  Pedro Alves  <palves@redhat.com>
10367
10368         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10369         (parse_find_args, find_command): Change type of pattern buffer
10370         locals to 'gdb_byte *'.
10371
10372 2013-03-08  Stan Shebs  <stan@codesourcery.com>
10373             Hafiz Abid Qadeer  <abidh@codesourcery.com>
10374
10375         * NEWS: Mention set and show trace-buffer-size commands.
10376         Mention new packet.
10377         * target.h (struct target_ops): New method
10378         to_set_trace_buffer_size.
10379         (target_set_trace_buffer_size): New macro.
10380         * target.c (update_current_target): Set up new method.
10381         * tracepoint.c (trace_buffer_size): New global.
10382         (start_tracing): Send it to the target.
10383         (set_trace_buffer_size): New function.
10384         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10385         * remote.c (remote_set_trace_buffer_size): New function.
10386         (_initialize_remote): Use it.
10387         (QTBuffer:size) New remote command.
10388         (PACKET_QTBuffer_size): New enum.
10389         (remote_protocol_features): Add an entry for
10390         PACKET_QTBuffer_size.
10391
10392 2013-03-08  Tom Tromey  <tromey@redhat.com>
10393
10394         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10395         variable.
10396
10397 2013-03-07  Pedro Alves  <palves@redhat.com>
10398
10399         * target.c (target_read_stralloc, target_fileio_read_alloc):
10400         *Cast pointer to 'gdb_byte *' in target call.
10401
10402 2013-03-07  Pedro Alves  <palves@redhat.com>
10403
10404         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10405         call.
10406
10407 2013-03-07  Keith Seitz  <keiths@redhat.com>
10408
10409         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10410         (trace_pass_command): Likewise.
10411         * cli/cli-cmds.c: Include cli/cli-utils.h.
10412         (source_command): Use skip-spaces.
10413         (disassemble_command): Likewise.
10414         * findcmd.c: Include cli/cli-utils.h.
10415         (parse_find_args): Use skip_spaces.
10416         * go32-nat.c: Include cli/cli-utils.h.
10417         (go32_sldt): Use skip_spaces.
10418         (go32_sgdt): Likewise.
10419         (go32_sidt): Likewise.
10420         (go32_pde): Likewise.
10421         (go32_pte): Likewise.
10422         (go32_pte_for_address): Likewise.
10423         * infcmd.c: Include cli/cli-utils.h.
10424         (registers_info): Use skip_spaces.
10425         * linux-tdep.c (read_mapping): Use skip_spaces_const.
10426         (linux_info_proc): Likewise.
10427         * linux-thread-db.c: Include cli/cli-utils.h.
10428         (info_auto_load_libthread_db): Use skip_spaces_const.
10429         * m32r-rom.c: Include cli/cli-utils.h.
10430         (m32r_upload_command): Use skip_spaces.
10431         * maint.c: Include cli/cli-utils.h.
10432         (maintenance_translate_address): Use skip_spaces.
10433         * mi/mi-parse.c: Include cli/cli-utils.h.
10434         (mi_parse_argv): Use skip_spaces.
10435         (mi_parse): Likewise.
10436         * minsyms.c: Include cli/cli-utils.h.
10437         (msymbol_hash_iw): Use skip_spaces_const.
10438         * objc-lang.c: Include cli/cli-utils.h.
10439         (parse_selector): Use skip_spaces.
10440         (parse_method): Likewise.
10441         * python/python.c: Include cli/cli-utils.h.
10442         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10443         (python_command)[HAVE_PYTHON]: Likewise.
10444         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10445         * remote-m32r-sdi.c: Include cli/cli-utils.h.
10446         (m32r_load): Use skip_spaces.
10447         * serial.c: Include cli/cli-utils.h.
10448         (serial_open): Use skip_spaces_const.
10449         * stack.c: Include cli/cli-utils.h.
10450         (parse_frame_specification_1): Use skip_spaces_const.
10451         * symfile.c: Include cli/cli-utils.h.
10452         (set_ext_lang_command): Use skip_spaces.
10453         * symtab.c: Include cli/cli-utils.h.
10454         (rbreak_command): Use skip_spaces.
10455         * thread.c (thread_name_command): Use skip_spaces.
10456         * tracepoint.c (validate_actionline): Use skip_spaces.
10457         (encode_actions_1): Likewise.
10458         (trace_find_range_command): Likewise.
10459         (trace_find_outside_command): Likewise.
10460         (trace_dump_actions): Likewise.
10461
10462 2013-03-07  Pedro Alves  <palves@redhat.com>
10463
10464         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10465         * expprint.c (print_subexp_standard): Likewise.
10466         * utils.c (host_char_to_target): Likewise.
10467         * valprint.c (generic_emit_char, generic_printstr): Likewise.
10468         * varobj.c (value_get_print_value): Change type of local to char*.
10469         Cast it gdb_byte * in call to language printer.
10470
10471 2013-03-07  Pedro Alves  <palves@redhat.com>
10472
10473         * charset.c (struct wchar_iterator) <input>: Change type to 'const
10474         gdb_byte *'.
10475         (make_wchar_iterator): Remove cast to char*.
10476         (wchar_iterate): Change type of local.
10477
10478 2013-03-07  Pedro Alves  <palves@redhat.com>
10479
10480         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10481         for 'regcache->register_status'.
10482
10483 2013-03-07  Pedro Alves  <palves@redhat.com>
10484
10485         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10486         int.
10487
10488 2013-03-07  Pedro Alves  <palves@redhat.com>
10489
10490         * stap-probe.c (handle_stap_probe): Add cast to char*.
10491
10492 2013-03-07  Pedro Alves  <palves@redhat.com>
10493
10494         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10495         RECORD_MSGRCV>: Pass a signed variable to
10496         regcache_raw_read_signed, instead of an unsigned one.
10497
10498 2013-03-07  Pedro Alves  <palves@redhat.com>
10499
10500         * remote-notif.c (notif_debug): Change type to int.
10501         * remote-notif.h (notif_debug): Likewise.
10502
10503 2013-03-07  Pedro Alves  <palves@redhat.com>
10504
10505         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10506
10507 2013-03-07  Pedro Alves  <palves@redhat.com>
10508
10509         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10510         * remote.h (hex2bin, bin2hex): ... here.
10511         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10512
10513 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
10514
10515         * utils.c (initialize_utils): Improve doc strings of "set/show
10516         width", "set/show height", and "set/show pagination".
10517
10518 2013-03-06  Keith Seitz  <keiths@redhat.com>
10519
10520         * ax-gdb.c (gen_printf): Make FORMAT const.
10521         * ax-gdb.h (gen_printf): Likewise.
10522         * ax-general.c (ax_string): Make STR const.
10523         * ax.h (ax_string): Likewise.
10524
10525 2013-03-06  Doug Evans  <dje@google.com>
10526
10527         * elfread.c (elf_symfile_read): Move debugging printf to more
10528         logical location.
10529
10530 2013-03-06  Pedro Alves  <palves@redhat.com>
10531
10532         * python/py-utils.c (target_string_to_unicode): Delete function.
10533         * python/python-internal.h (target_string_to_unicode): Delete
10534         declaration.
10535
10536 2013-03-06  Pierre Muller  <muller@sourceware.org>
10537
10538         * linespec.c (get_current_search_block): ARI fix, use (void)
10539         for empty parameter list.
10540
10541 2013-03-05  Doug Evans  <dje@google.com>
10542
10543         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10544         of old ada_lookup_symbol_list.  In !full_search case, don't
10545         search superblocks.
10546         (ada_lookup_symbol_list): Delete arg full_search, all callers
10547         updated.  Call ada_lookup_symbol_list_worker.
10548         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10549         * ada-lang.h (ada_lookup_symbol_list): Update.
10550         * language.h (language_defn): Update comment for
10551         la_iterate_over_symbols.
10552         * linespec.c (iterate_over_file_blocks): New function.
10553         (iterate_over_all_matching_symtabs): Call it.
10554         (lookup_prefix_sym): Ditto.
10555         (get_current_search_block): New function.
10556         (get_search_block): Delete.
10557         (find_label_symbols): Call get_current_search_block.
10558         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10559         * symtab.c (iterate_over_symbols): Don't search superblocks.
10560
10561 2013-03-05  Yao Qi  <yao@codesourcery.com>
10562
10563         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10564         parameter VAR's type from "unsigned int" to "int".
10565         * command.h (var_zuinteger_unlimited): Update its comments.
10566         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10567
10568 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
10569
10570         * NEWS: Mention new target x86_64-*-cygwin*.
10571
10572 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
10573
10574         * configure.host: Add x86_64-*-cygwin* as host.
10575         * configure.tgt: Add x86_64-*-cygwin* as target.
10576         * config/i386/cygwin64.mh: New file.
10577
10578 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10579
10580         * linespec.c (decode_line_2): Fix duplicate request off by two message.
10581
10582 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10583
10584         * linespec.c (struct linespec_canonical_name): New.
10585         (struct linespec_state): Change canonical_names type to it.
10586         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
10587         xrealloc element size.  Initialize the different CANONICAL fields.
10588         (canonical_to_fullform): New.
10589         (filter_results): Use it.  Add variables canonical, fullform and
10590         cleanup.
10591         (struct decode_line_2_item, decode_line_2_compare_items): New.
10592         (decode_line_2): Remove variables iter and item_names, add variables
10593         items and items_count.  Modify the code for these new variables.
10594
10595 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
10596
10597         * coff-pe-read.c (read_pe_exported_syms): Don't return without
10598         calling do_cleanup.
10599
10600 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
10601
10602         * tracepoint.c (build_traceframe_info): Add code for byte order.
10603
10604 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
10605
10606         * v850-tdep.c: (v850e2_register_name): Revise system register
10607         names to match current V850E2M architecture specifications.
10608         Update register number enum comments too.
10609
10610 2013-03-01  Jiong Wang  <jiwang@tilera.com>
10611             Pedro Alves  <palves@redhat.com>
10612
10613         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10614         to END_ADDR.
10615         (tilegx_skip_prologue): Limit prologue analysis to section end.
10616
10617 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10618
10619         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10620         use it.
10621
10622 2013-03-01  Pedro Alves  <palves@redhat.com>
10623
10624         Use gdb_byte for bytes from the program being debugged.
10625
10626         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10627         Change type of local 'buf' to gdb_byte.
10628         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10629         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10630         * cris-tdep.c (cris_sigcontext_addr)
10631         (cris_sigtramp_frame_unwind_cache): Likewise.
10632         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10633         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10634         Likewise.
10635         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10636         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10637         (hppa32_hpux_search_dummy_call_sequence)
10638         (hppa_hpux_supply_save_state): Likewise.
10639         * hppa-linux-tdep.c (insns_match_pattern)
10640         (hppa_linux_find_global_pointer): Likewise.
10641         * hppa-tdep.c (hppa_in_function_epilogue_p)
10642         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10643         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10644         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10645         (i386fbsd_collect_uthread): Likewise.
10646         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10647         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10648         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10649         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10650         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10651         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10652         (ia64_libunwind_frame_prev_register)
10653         (ia64_libunwind_sigtramp_frame_this_id)
10654         (ia64_find_global_pointer_from_dynamic_section)
10655         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10656         (ia64_unwind_pc): Likewise.
10657         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10658         * m68hc11-tdep.c (m68hc11_push_dummy_call)
10659         (m68hc11_extract_return_value): Likewise.
10660         * m68klinux-nat.c (fetch_register, store_register): Likewise.
10661         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10662         (mep_get_insn, mep_push_dummy_call): Likewise.
10663         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10664         (mips_linux_in_dynsym_stub): Likewise.
10665         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10666         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10667         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10668         to gdb_byte.
10669         * remote-mips.c (mips_set_register): Likewise.
10670         * remote-sim.c (gdbsim_fetch_register): Likewise.
10671         * score-tdep.c (score7_fetch_inst): Change type of parameter
10672         'memblock' and local 'buf' to gdb_byte.
10673         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10674         Change type of local 'buf' to gdb_byte.  Adjust.
10675         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10676         to gdb_byte**.
10677         (score7_analyze_prologue): Change type of 'memblock' and
10678         'memblock_ptr' locals to gdb_byte*.
10679         * sh64-tdep.c (sh64_extract_return_value)
10680         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10681         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10682         * solib-pa64.c (pa64_solib_create_inferior_hook)
10683         (pa64_open_symbol_file_object): Remove local 'buf'.
10684         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10685         (som_open_symbol_file_object): Likewise.
10686         * solib-spu.c (spu_current_sos): Likewise.
10687         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10688         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10689         (spu_store_registers): Likewise.
10690         * target.c (debug_print_register): Likewise.
10691         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10692         * xstormy16-tdep.c (xstormy16_store_return_value)
10693         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10694         (xstormy16_find_jmp_table_entry): Likewise.
10695
10696 2013-03-01  Jiong Wang  <jiwang@tilera.com>
10697
10698         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10699         (tilegx_gdbarch_init): Install it.
10700
10701 2013-02-28  Tom Tromey  <tromey@redhat.com>
10702
10703         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10704         PyLong_Check.
10705
10706 2013-02-28  Doug Evans  <dje@google.com>
10707
10708         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10709         * python/python.c (gdbpy_find_pc_line): Ditto.
10710
10711 2013-02-28  Tom Tromey  <tromey@redhat.com>
10712
10713         * contrib/excheck.py: New file.
10714         * contrib/exsummary.py: New file.
10715         * contrib/gcc-with-excheck: New file.
10716
10717 2013-02-28  Tom Tromey  <tromey@redhat.com>
10718
10719         * python/python.c (gdbpy_print_stack): Call begin_line and
10720         fprintf_filtered inside TRY_CATCH.
10721
10722 2013-02-28  Tom Tromey  <tromey@redhat.com>
10723
10724         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10725         inside TRY_CATCH.
10726
10727 2013-02-28  Tom Tromey  <tromey@redhat.com>
10728
10729         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10730         frame_object_to_frame_info inside TRY_CATCH.
10731
10732 2013-02-28  Tom Tromey  <tromey@redhat.com>
10733
10734         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10735         TRY_CATCH.
10736
10737 2013-02-28  Tom Tromey  <tromey@redhat.com>
10738
10739         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10740
10741 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
10742
10743         * windows-nat.c: Throughout, fix format strings and casts of
10744         printf-like functions to avoid type related warnings on all
10745         platforms.
10746         (handle_output_debug_string): Fetch context information address
10747         from debug string using string_to_core_addr.
10748
10749 2013-02-27  Jiong Wang  <jiwang@tilera.com>
10750
10751         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10752         * regformats/reg-tilegx32.dat: New.
10753
10754 2013-02-27  Jiong Wang  <jiwang@tilera.com>
10755
10756         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10757
10758 2013-02-27  Jiong Wang  <jiwang@tilera.com>
10759
10760         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10761
10762 2013-02-27  Yao Qi  <yao@codesourcery.com>
10763             Pedro Alves  <palves@redhat.com>
10764
10765         * tracepoint.c (tfile_trace_find): For tfind
10766         pc/tp/range/outside, look for the next trace frame instead of
10767         always starting from frame 0.
10768
10769 2013-02-26  Anthony Green  <green@moxielogic.com>
10770
10771         * configure.tgt: Add support for moxie-*-rtems* target.
10772
10773 2013-02-25  Pedro Alves  <palves@redhat.com>
10774
10775         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10776         warning text.
10777
10778 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10779
10780         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10781         if $fp is used as the virtual frame pointer.
10782
10783 2013-02-23  Alan Modra  <amodra@gmail.com>
10784
10785         * elfread.c (elf_symtab_read): Do not use udata.p here to find
10786         symbol size.
10787         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10788         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10789         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10790         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10791
10792 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
10793
10794         Code cleanup.
10795         * elfread.c (build_id_bfd_get): Make the return type const.
10796         (build_id_verify): Make the check parameter const.
10797         (build_id_to_debug_filename): Make the build_id parameter and variable
10798         data const.
10799         (find_separate_debug_file_by_buildid): Make the variable build_id const.
10800
10801 2013-02-21  Alan Modra  <amodra@gmail.com>
10802
10803         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10804
10805 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
10806
10807         Add a new method 'disassemble' to gdb.Architecture class.
10808         * python/py-arch.c (archpy_disassmble): Implementation of the
10809         new method gdb.Architecture.disassemble.
10810         (arch_object_methods): Add entry for the new method.
10811
10812 2013-02-20  Jiong Wang  <jiwang@tilera.com>
10813
10814         * MAINTAINERS (Write After Approval): Add myself to the list.
10815
10816 2013-02-19  Pedro Alves  <palves@redhat.com>
10817
10818         Garbage collect 'struct monitor_ops'::load_routine.
10819
10820         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10821         * monitor.c (monitor_load): No longer call
10822         current_monitor->load_routine.
10823         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10824         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10825         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10826
10827 2013-02-19  Pedro Alves  <palves@redhat.com>
10828
10829         PR gdb/15161
10830
10831         Harmonize with generic_load.
10832
10833         * monitor.c: Include "readline/readline.h".
10834         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
10835         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
10836         long/strtol for the 'load_offset' local.  Error out if no argument
10837         is given or if too many arguments are given.  Tilde expand the
10838         passed in file name.
10839
10840 2013-02-19  Kai Tietz  <ktietz@redhat.com>
10841
10842         PR gdb/15161
10843         * symfile.c (load_section_data): Change type of load_offset
10844         to CORE_ADDR.
10845         (generic_load): User strtoulst instead of strtoul for conversion
10846         of load_offset.
10847
10848 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10849
10850         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10851          for return address, "lr" register, saved on stack.
10852         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10853         after we invoke tilegx_analyze_prologue.
10854
10855 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10856
10857         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10858
10859 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10860
10861         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10862
10863 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10864
10865         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10866         (tilegx_write_pc): New function.
10867         (tilegx_cannot_reference_register): Return zero if REGNO
10868         is TILEGX_FAULTNUM_REGNUM.
10869         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10870         (tilegx_register_name): Add handling of "faultnum" register.
10871         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10872         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10873         handling of TILEGX_FAULTNUM_REGNUM.
10874         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10875
10876 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10877
10878         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10879         should be aligned to 64bit.
10880
10881 2013-02-19  Kai Tietz  <ktietz@redhat.com>
10882
10883         * windows-nat.c (windows_xfer_memory): Fix debug-output
10884         for LLP64.
10885
10886 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
10887
10888         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10889         Don't check DSP register number if HAVE_DSP is not set.
10890
10891 2013-02-19  Alan Modra  <amodra@gmail.com>
10892
10893         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
10894         throughout file instead.
10895         (build_id_bfd_get): Update to use new elf_tdata build_id field.
10896         Don't xmalloc return value.
10897         (build_id_verify): Similarly.  Don't xfree.
10898         (build_id_to_debug_filename): Update.
10899         (find_separate_debug_file_by_buildid): Update, don't xfree.
10900
10901 2013-02-18  Tom Tromey  <tromey@redhat.com>
10902
10903         PR gdb/15102:
10904         * dwarf2read.c (read_subrange_type): Use result of
10905         'check_typedef'.
10906
10907 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10908
10909         * frame.c: Remove one extra white space after #include
10910         directive.
10911
10912 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10913
10914         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10915
10916 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10917
10918         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10919         and dir commands into an if block.
10920
10921 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
10922
10923         * python/py-breakpoint (struct pybp_code):  Use int instead of
10924         enum type_code.
10925
10926 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
10927             Hafiz Abid Qadeer  <abidh@codesourcery.com>
10928
10929         * NEWS: Mention new field "trace-file".
10930         * tracepoint.c (trace_status_mi): Output "trace-file" field.
10931         (tfile_open): Record the trace file's filename in the trace
10932         status.
10933         (tfile_files_info): Mention the name of the trace file.
10934         Check the "filename" field explicitely.
10935         (trace_status_command): Explicitely check "filename" field.
10936         (trace_find_command): Ditto.
10937         (trace_find_pc_command): Ditto.
10938         (trace_find_tracepoint_command): Ditto.
10939         (trace_find_line_command): Ditto.
10940         (trace_find_range_command): Ditto.
10941         (trace_find_outside_command): Ditto.
10942         * tracepoint.h (struct trace_status) <from_file>: Rename it
10943         to "filename" and make it hold the trace file's filename
10944         instead of a boolean.
10945         * remote.c (remote_get_trace_status): Initialize "filename"
10946         field with NULL instead of 0.
10947
10948 2013-02-15  Yao Qi  <yao@codesourcery.com>
10949
10950         * remote.c: Fix a typo.
10951
10952 2013-02-14  Pierre Muller  <muller@sourceware.org>
10953
10954         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10955
10956 2013-02-14  Pedro Alves  <palves@redhat.com>
10957
10958         * utils.c (savestring): Don't #undef it.  Move function to
10959         common/common-utils.c.
10960         * common/common-utils.c: Include gdb_string.h.
10961         (savestring): Move here from utils.c.
10962         * common/common-utils.h (savestring): Declare.
10963
10964 2013-02-14  Pedro Alves  <palves@redhat.com>
10965
10966         * utils.c (savestring): Rename parameter 'size' to 'len'.
10967
10968 2013-02-14  Pedro Alves  <palves@redhat.com>
10969             Yufeng Zhang  <yufeng.zhang@arm.com>
10970
10971         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10972         (aarch64_inferior_data, struct aarch64_inferior_data):
10973         Delete.
10974         (struct aarch64_process_info): New.
10975         (aarch64_process_list): New global.
10976         (aarch64_find_process_pid, aarch64_add_process)
10977         (aarch64_process_info_get): New functions.
10978         (aarch64_inferior_data_get): Delete.
10979         (aarch64_process_info_get): New function.
10980         (aarch64_forget_process): New function.
10981         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
10982         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10983         aarch64_get_debug_reg_state.
10984         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10985         instead of linux_nat_iterate_watchpoint_lwps.
10986         (aarch64_linux_new_fork): New function.
10987         (aarch64_linux_child_post_startup_inferior): Use
10988         aarch64_forget_process instead of aarch64_init_debug_reg_state.
10989         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10990         (aarch64_linux_remove_hw_breakpoint)
10991         (aarch64_handle_aligned_watchpoint)
10992         (aarch64_handle_unaligned_watchpoint)
10993         (aarch64_linux_insert_watchpoint)
10994         (aarch64_linux_remove_watchpoint)
10995         (aarch64_linux_stopped_data_address): Adjust to pass the current
10996         process id to aarch64_debug_reg_state.
10997         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10998         linux_nat_new_fork hook, and aarch64_forget_process as
10999         linux_nat_forget_process hook; remove the call to
11000         register_inferior_data_with_cleanup.
11001
11002 2013-02-14  Pedro Alves  <palves@redhat.com>
11003
11004         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11005         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11006         lval_memory.
11007
11008 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
11009             Hafiz Abid Qadeer  <abidh@codesourcery.com>
11010
11011         * tracepoint.h (validate_trace_state_variable_name): Declare.
11012         * tracepoint.c (validate_trace_state_variable_name): New.
11013         (trace_variable_command): Parse the trace state variable's name
11014         without using parse_expression.  Do several validations.
11015         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11016         trace state variable's name with parse_expression.  Validate it.
11017
11018 2013-02-14  Yao Qi  <yao@codesourcery.com>
11019
11020         * infcmd.c (breakpoint_proceeded): Remove it.
11021
11022 2013-02-14  Yao Qi  <yao@codesourcery.com>
11023
11024         * tracepoint.c (end_actions_pseudocommand): Make it static.
11025         (while_stepping_pseudocommand): Likewise.
11026         * tracepoint.h (end_actions_pseudocommand): Remove the
11027         declaration.
11028         (while_stepping_pseudocommand): Likewise.
11029
11030 2013-02-14  Yao Qi  <yao@codesourcery.com>
11031
11032         * cli/cli-decode.c (help_cmd): Remove the declaration of
11033         "cmdlist".
11034         (help_all): Likewise.
11035
11036 2013-02-13  Pedro Alves  <palves@redhat.com>
11037
11038         * amd64-linux-nat.c (update_debug_registers_callback):
11039         Update comment.
11040         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11041         iterate_over_lwps.
11042         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11043         i386_debug_reg_state.
11044         (amd64_linux_new_fork): New function.
11045         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11046         linux_nat_new_fork hook, and i386_forget_process as
11047         linux_nat_forget_process hook.
11048         * i386-linux-nat.c (update_debug_registers_callback):
11049         Update comment.
11050         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11051         iterate_over_lwps.
11052         (i386_linux_prepare_to_resume): Pass the lwp's pid to
11053         i386_debug_reg_state.
11054         (i386_linux_new_fork): New function.
11055         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11056         linux_nat_new_fork hook, and i386_forget_process as
11057         linux_nat_forget_process hook.
11058         * i386-nat.c (i386_init_dregs): Delete.
11059         (i386_inferior_data, struct i386_inferior_data):
11060         Delete.
11061         (struct i386_process_info): New.
11062         (i386_process_list): New global.
11063         (i386_find_process_pid, i386_add_process, i386_process_info_get):
11064         New functions.
11065         (i386_inferior_data_get): Delete.
11066         (i386_process_info_get): New function.
11067         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
11068         (i386_forget_process): New function.
11069         (i386_cleanup_dregs): Rewrite.
11070         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11071         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11072         (i386_stopped_data_address, i386_insert_hw_breakpoint)
11073         (i386_remove_hw_breakpoint): Adjust to pass the current process id
11074         to i386_debug_reg_state.
11075         (i386_use_watchpoints): Don't register inferior data.
11076         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11077         adjust comment.
11078         (i386_forget_process): Declare.
11079         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11080         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11081         New static globals.
11082         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11083         (add_initial_lwp): New, factored out from ...
11084         (add_lwp): ... this.  Don't check the number of lwps before
11085         calling linux_nat_new_thread.
11086         (linux_nat_iterate_watchpoint_lwps): Delete.
11087         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11088         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11089         forks and vforks.
11090         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11091         initial lwp.
11092         (linux_nat_kill, linux_nat_mourn_inferior): Call
11093         linux_nat_forget_process.
11094         (linux_nat_set_new_fork, linux_nat_set_forget_process)
11095         (linux_nat_forget_process): New functions.
11096         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11097         type.
11098         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11099         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11100         types.
11101         (linux_nat_set_new_fork, linux_nat_set_forget_process)
11102         (linux_nat_forget_process): New declarations.
11103
11104         * amd64fbsd-nat.c (super_mourn_inferior): New global.
11105         (amd64fbsd_mourn_inferior): New function.
11106         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11107         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11108
11109 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11110
11111         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11112         Adding _().
11113
11114 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11115
11116         * aarch64-linux-nat.c (debug_reg_change_callback)
11117         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11118         %s and phex().
11119
11120 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11121
11122         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11123         with LONGEST.
11124
11125 2013-02-13  Pedro Alves  <palves@redhat.com>
11126             Hafiz Abid Qadeer  <abidh@codesourcery.com>
11127
11128         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11129
11130 2013-02-12  Tom Tromey  <tromey@redhat.com>
11131
11132         PR symtab/11464:
11133         * c-exp.y (lex_one_token): Initialize other fields of yylval on
11134         NAME return.
11135         (classify_inner_name): Remove 'first_name' argument, add
11136         'context'.  Remove unused variable.
11137         (yylex): Explicitly maintain the context type.  Exit loop earlier
11138         if NAME result is seen.
11139
11140 2013-02-12  Pedro Alves  <palves@redhat.com>
11141
11142         * amd64-darwin-tdep.c: Add (C) after Copyright.
11143         * cli/cli-cmds.h: Ditto.
11144         * cli/cli-decode.c: Ditto.
11145         * cli/cli-decode.h: Ditto.
11146         * cli/cli-dump.c: Ditto.
11147         * cli/cli-dump.h: Ditto.
11148         * cli/cli-interp.c: Ditto.
11149         * cli/cli-logging.c: Ditto.
11150         * cli/cli-script.c: Ditto.
11151         * cli/cli-script.h: Ditto.
11152         * cli/cli-setshow.c: Ditto.
11153         * cli/cli-setshow.h: Ditto.
11154         * cli/cli-utils.c: Ditto.
11155         * cli/cli-utils.h: Ditto.
11156         * config/alpha/nm-osf3.h: Ditto.
11157         * config/djgpp/djconfig.sh: Ditto.
11158         * config/i386/nm-fbsd.h: Ditto.
11159         * config/i386/nm-i386gnu.h: Ditto.
11160         * config/nm-linux.h: Ditto.
11161         * config/nm-nto.h: Ditto.
11162         * config/rs6000/nm-rs6000.h: Ditto.
11163         * config/sparc/nm-sol2.h: Ditto.
11164         * darwin-nat-info.c: Ditto.
11165         * dfp.c: Ditto.
11166         * dfp.h: Ditto.
11167         * gdb-demangle.h: Ditto.
11168         * i386-darwin-nat.c: Ditto.
11169         * i386-darwin-tdep.c: Ditto.
11170         * linux-fork.h: Ditto.
11171         * m32c-tdep.c: Ditto.
11172         * microblaze-linux-tdep.c: Ditto.
11173         * microblaze-rom.c: Ditto.
11174         * microblaze-tdep.c: Ditto.
11175         * microblaze-tdep.h: Ditto.
11176         * mips-linux-tdep.h: Ditto.
11177         * ppc-ravenscar-thread.c: Ditto.
11178         * ppc-ravenscar-thread.h: Ditto.
11179         * prologue-value.c: Ditto.
11180         * prologue-value.h: Ditto.
11181         * ravenscar-thread.c: Ditto.
11182         * ravenscar-thread.h: Ditto.
11183         * sparc-ravenscar-thread.c: Ditto.
11184         * sparc-ravenscar-thread.h: Ditto.
11185         * tilegx-linux-tdep.c: Ditto.
11186         * unwind_stop_reasons.def: Ditto.
11187         * windows-nat.h: Ditto.
11188         * xtensa-linux-tdep.c: Ditto.
11189         * xtensa-xtregs.c: Ditto.
11190         * regformats/regdat.sh: Ditto.
11191         * regformats/regdef.h: Ditto.
11192
11193 2013-02-12  Pedro Alves  <palves@redhat.com>
11194
11195         * break-catch-sig.c: Update copyright years.
11196
11197 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
11198
11199         Add support for a destructor for ui_out data and use it to
11200         provide a ui_out destructor.
11201         * ui-out.h: Declare the new ui_out destructor.
11202         (ui_out_impl): Add a field for data destructor in ui_out_impl.
11203         * ui-out.c (default_data_destroy): Add a default data destructor
11204         which does nothing.
11205         (default_ui_out_impl): Set the new data_destroy field to
11206         default_data_destroy
11207         (uo_data_destroy): Local function which invokes the data
11208         destructor if present.
11209         (clear_table): Local function which clears the table data of a
11210         ui_out object.
11211         (ui_out_destroy): Public function which frees a ui_out object.
11212         (ui_out_table_end): Use the new clear_table function.
11213         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11214         NULL.
11215         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11216         to NULL.
11217
11218 2013-02-11  Doug Evans  <dje@google.com>
11219
11220         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11221         (printf_decfloat): New function.  Broken out from ui_printf.
11222         Remove unnecessary code to shift the entire format string down.
11223         (printf_pointer): New function.
11224         (ui_printf): Code to print C strings, wide C strings, decfloats,
11225         and pointers moved to separate functions.
11226
11227 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
11228
11229         * valops.c (value_assign): Handling bitfield offset in
11230         `lval_internalvar_component' case.
11231
11232 2013-02-08  Doug Evans  <dje@google.com>
11233
11234         * common/format.c (parse_format_string): Fix whitespace.
11235
11236 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11237
11238         * stack.c (return_command): Work around uninitialized variable
11239         warning.
11240
11241 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
11242
11243         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11244         number of the registers from 36 to 34.
11245
11246 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11247
11248         * NEWS: Mention new AArch64 native and target support.
11249
11250 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11251
11252         * MAINTAINERS (Write After Approval): Add myself.
11253
11254 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
11255             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11256             Nigel Stephens  <nigel.stephens@arm.com>
11257             Yufeng Zhang  <yufeng.zhang@arm.com>
11258
11259         * aarch64-linux-nat.c: New file.
11260         * config/aarch64/linux.mh: New file.
11261         * configure.host: Add AArch64.
11262         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11263
11264 2013-02-07  Doug Evans  <dje@google.com>
11265
11266         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11267         disassemble command.
11268
11269 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11270
11271         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11272         set_gdbarch_fetch_tls_load_module_address.
11273
11274 2013-02-06  David S. Miller  <davem@davemloft.net>
11275
11276         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11277         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11278         * value.c (struct_return_convention): New function.
11279         (using_struct_return): Implement in terms of struct_return_convention.
11280         * value.h (struct_return_convention): Declare.
11281         * stack.c (return_command): Allow successful overriding of the return
11282         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11283
11284 2013-02-06  Tom Tromey  <tromey@redhat.com>
11285
11286         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11287         outside of TRY_CATCH.
11288
11289 2013-02-06  Yao Qi  <yao@codesourcery.com>
11290
11291         * mi/mi-interp.c: Include "tracepoint.h".
11292         (mi_tsv_modified): Declare.
11293         (mi_tsv_created, mi_tsv_deleted): Update declaration.
11294         (mi_interpreter_init): Call observer_attach_tsv_modified.
11295         (mi_tsv_modified): New.
11296         (mi_tsv_created, mi_tsv_deleted): Update.
11297         * tracepoint.c (trace_variable_command): Call
11298         observer_notify_tsv_modified if the initial value of tsv is
11299         changed.
11300         (delete_trace_state_variable): Call
11301         observer_notify_tsv_deleted earlier.
11302         (trace_variable_command): Caller update.
11303         (create_tsv_from_upload): Likewise.
11304         * observer.sh: Declare "struct trace_state_variable".
11305
11306         * NEWS: Mention the new MI notification "=tsv-modified".
11307
11308 2013-02-05  Doug Evans  <dje@google.com>
11309
11310         * completer.c (location_completer): Fix typo in comment.
11311
11312 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
11313
11314         * breakpoint.c (add_location_to_breakpoint): Insert the location with
11315         ADDRESS sorted.
11316
11317 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11318
11319         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11320         Refactor if statement to avoid trailing || operator.
11321
11322 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
11323
11324         * NEWS: Add PowerPC FreeBSD as a new native configuration.
11325
11326 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
11327
11328         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11329         * configure.host: Add powerpc*-*-freebsd* target.
11330         * configure.tgt: Add target info for powerpc*-*-freebsd*.
11331         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11332         * config/powerpc/fbsd.mh: New file.
11333
11334 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
11335             Denys Vlasenko  <dvlasenk@redhat.com>
11336             Pedro Alves  <palves@redhat.com>
11337
11338         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11339         (struct elf_internal_linux_prpsinfo): Forward declare.
11340         * gdbarch.h, gdbarch.c: Regenerate.
11341         * linux-tdep.c: Include `cli/cli-utils.h'.
11342         (linux_fill_prpsinfo): New function.
11343         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
11344         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11345         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11346         depending on gdbarch pointer bitness.
11347         * ppc-linux-tdep.c: Include elf-bfd.h.
11348         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11349         on 32-bit.
11350
11351 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
11352             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11353             Nigel Stephens  <nigel.stephens@arm.com>
11354             Yufeng Zhang  <yufeng.zhang@arm.com>
11355
11356         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11357
11358 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
11359             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11360             Nigel Stephens  <nigel.stephens@arm.com>
11361             Yufeng Zhang  <yufeng.zhang@arm.com>
11362
11363         * aarch64-newlib-tdep.c: New file.
11364         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11365         aarch64*-*-elf.
11366         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11367         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11368         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11369         * osabi.c (gdb_osabi_names): Add "Newlib".
11370
11371 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
11372             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11373             Nigel Stephens  <nigel.stephens@arm.com>
11374             Yufeng Zhang  <yufeng.zhang@arm.com>
11375
11376         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11377         (ALLDEPFILES): Add aarch64-linux-tdep.c.
11378         * aarch64-linux-tdep.c: New file.
11379         * aarch64-linux-tdep.h: New file.
11380         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11381         * configure.tgt: Add aarch64-none-linux-gnu.
11382
11383 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
11384             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11385             Nigel Stephens  <nigel.stephens@arm.com>
11386             Yufeng Zhang  <yufeng.zhang@arm.com>
11387
11388         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11389         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11390         (ALLDEPFILES): Add aarch64-tdep.c.
11391         * aarch64-tdep.c: New file.
11392         * aarch64-tdep.h: New file.
11393         * configure.tgt: Add AArch64.
11394         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11395         (aarch64-expedite): New definition.
11396         * features/aarch64-core.xml: New file.
11397         * features/aarch64-fpu.xml: New file.
11398         * features/aarch64-without-fpu.c: New file (generated).
11399         * features/aarch64-without-fpu.xml: New file.
11400         * features/aarch64.c: New file (generated).
11401         * features/aarch64.xml: New file.
11402         * regformats/aarch64-without-fpu.dat: New file (generated).
11403         * regformats/aarch64.dat: New file (generated).
11404
11405 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11406
11407         * contrib/expect-read1.c: New file.
11408         * contrib/expect-read1.sh: New file.
11409
11410 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11411
11412         * dwarf2read.c (file_file_name): New function with code from
11413         file_full_name.
11414         (file_full_name): Move most of the code to file_file_name.
11415         (macro_start_file): Rename variable full_name to file_name and use
11416         file_file_name for it.  Add comp_dir parameter to new_macro_table.
11417         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
11418         macro_source_file->filename access by macro_source_fullname call.
11419         * macroscope.c (_initialize_macroscope): Update the new_macro_table
11420         caller.
11421         * macrotab.c (struct macro_table): New field comp_dir.
11422         (macro_include): New variables link_fullname and source_fullname.
11423         Replace any macro_source_file->filename access by macro_source_fullname
11424         call.
11425         (macro_lookup_inclusion): Remove the partial filenames checking code.
11426         (check_for_redefinition): New variables source_fullname and
11427         found_key_fullname.  Replace any macro_source_file->filename access by
11428         macro_source_fullname call.
11429         (macro_undef): New variables source_fullname and key_fullname.  Replace
11430         any macro_source_file->filename access by macro_source_fullname call.
11431         (macro_lookup_definition): New variables retval and source_fullname.
11432         Replace any macro_source_file->filename access by macro_source_fullname
11433         call.
11434         (foreach_macro): New variable key_fullname.  Replace any
11435         macro_source_file->filename access by macro_source_fullname call.
11436         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
11437         macro_source_file->filename access by macro_source_fullname call.
11438         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
11439         (macro_source_fullname): New function.
11440         * macrotab.h (struct macro_source_file): Extent the filename field
11441         comment.
11442         (new_macro_table): New parameter comp_dir, add a comment for it.
11443         (macro_source_fullname): new declaration.
11444
11445 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11446
11447         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11448         this_real_name to outer block.  Use it also for
11449         compare_filenames_for_search.
11450         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
11451         with dw2_get_real_path for file_matcher, considering also
11452         BASENAMES_MAY_DIFFER.
11453         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11454
11455 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11456
11457         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11458         to the file_matcher parameter.  Pass 0 to it.
11459         (dwarf2_create_include_psymtab): Copy also DIRNAME.
11460         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11461         NULL psymtab_to_fullname result.
11462         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
11463         an expected filename instead.
11464         (expand_symtabs_matching_via_partial): Add basenames parameter to the
11465         file_matcher parameter.  Call also psymtab_to_fullname, after newly
11466         considering BASENAMES_MAY_DIFFER.
11467         * source.c (rewrite_source_path): Remove static.
11468         * source.h (rewrite_source_path): New declaration.
11469         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11470         the expand_symtabs_matching field.  Comment it.
11471         * symtab.c (file_matches): New function comment.  Add parameter
11472         basenames, implement it.
11473         (search_symbols_file_matches): Add basenames parameter.  Update the
11474         file_matches caller.
11475         (search_symbols): Match FILES also against symtab_to_fullname.
11476         Optimize it for BASENAMES_MAY_DIFFER.
11477
11478 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11479
11480         * source.c (print_source_lines_base): Print for TUI also "fullname".
11481         * tui/tui-data.c (init_content_element): Change tui_locator_element
11482         field to full_name.
11483         * tui/tui-data.h (struct tui_locator_element): Likewise.
11484         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11485         tui_update_locator_filename calls to tui_update_locator_fullname.
11486         Replace symtab->filename refererence by symtab_to_fullname call.
11487         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11488         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11489         field to full_name.  Replace symtab->filename refererence by
11490         symtab_to_fullname call.
11491         (tui_show_symtab_source): Rename parameter to fullname.  Change
11492         tui_locator_element field to full_name.
11493         * tui/tui-stack.c: Include source.h.
11494         (tui_set_locator_filename): Rename the declaration to ...
11495         (tui_set_locator_fullname): ... here.  Rename its parameter to
11496         fullname, updates its comment.
11497         (tui_set_locator_info): Rename its parameter to fullname.
11498         (tui_set_locator_filename): Rename the definition to ...
11499         (tui_set_locator_fullname): ... here.  Rename its parameter to
11500         fullname, updates its comment.  Change tui_locator_element field to
11501         full_name.
11502         (tui_set_locator_info): Rename its parameter to fullname.
11503         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11504         (tui_update_locator_filename): Rename to ...
11505         (tui_update_locator_fullname): ... here. Rename callee to
11506         tui_set_locator_fullname.
11507         (tui_show_frame_info): Replace symtab->filename refererence by
11508         symtab_to_fullname call.
11509         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11510         (tui_update_locator_fullname): ... here.
11511         * tui/tui-winsource.c (tui_display_main): Rename the callee to
11512         tui_update_locator_fullname.  Replace symtab->filename refererence by
11513         symtab_to_fullname call.
11514         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11515         Rename the callee to tui_update_locator_fullname.
11516         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11517
11518 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11519
11520         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11521         by symtab_to_filename_for_display calls.
11522         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11523         (clear_command): New variable sal_fullname, initialize it.  Replace
11524         compare_filenames_for_search by filename_cmp with sal_fullname.
11525         (say_where, update_static_tracepoint): Replace symtab->filename
11526         refererences by symtab_to_filename_for_display calls.
11527         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11528         Likewise.
11529         * dwarf2read.c: Include source.h.
11530         (fixup_go_packaging): Replace symtab->filename refererences by
11531         symtab_to_filename_for_display calls.
11532         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11533         Replace symtab->filename refererences by symtab_to_filename_for_display
11534         calls.
11535         (create_sals_line_offset, convert_linespec_to_sals): New variable
11536         fullname, initialize it, replace symtab->filename reference by the
11537         variable.
11538         * linux-fork.c: Include source.h.
11539         (info_checkpoints_command): Replace symtab->filename refererences by
11540         symtab_to_filename_for_display calls.
11541         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11542         by symtab_to_filename_for_display calls.
11543         * mdebugread.c: Include source.h.
11544         (psymtab_to_symtab_1): Replace symtab->filename refererences by
11545         symtab_to_filename_for_display calls.
11546         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11547         (mi_cmd_file_list_exec_source_files): Likewise.
11548         * printcmd.c: Include source.h.
11549         (build_address_symbolic): Replace symtab->filename refererences by
11550         symtab_to_filename_for_display calls.
11551         * psymtab.c (partial_map_symtabs_matching_filename)
11552         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11553         with psymtab_to_fullname.
11554         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11555         by symtab_to_filename_for_display calls.
11556         (stpy_get_filename): New variable filename, initialize it, use instead
11557         of symtab->filename refererences.
11558         (salpy_str): Make variable filename const char *.  Replace
11559         symtab->filename refererences by symtab_to_filename_for_display calls.
11560         * skip.c: Include source.h and filenames.h.
11561         (skip_file_command): Remove const from the symtab variable.  Replace
11562         symtab->filename refererences by symtab_to_fullname call.
11563         (function_name_is_marked_for_skip): New variables searched_for_fullname
11564         and fullname.  Use them to search also with symtab's fullname.
11565         * source.c (find_source_lines): Replace symtab->filename refererences
11566         by symtab_to_filename_for_display calls.
11567         (print_source_lines_base): New variable filename, use it instead of
11568         symtab->filename.  Replace symtab->filename refererences by
11569         symtab_to_filename_for_display calls.
11570         (line_info, forward_search_command): Replace symtab->filename
11571         refererences by symtab_to_filename_for_display calls.
11572         (reverse_search_command): Replace symtab->filename refererences by
11573         symtab_to_filename_for_display calls.  New variable filename for it.
11574         * stack.c (frame_info): Likewise.
11575         * symmisc.c: Include source.h.
11576         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11577         (maintenance_info_symtabs): Replace symtab->filename refererences by
11578         symtab_to_filename_for_display calls.
11579         * symtab.c (iterate_over_some_symtabs): Call
11580         compare_filenames_for_search also with symtab_to_fullname.
11581         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11582         symtab->filename refererences by symtab_to_filename_for_display calls.
11583         (find_line_symtab): Replace symtab->filename refererences by
11584         symtab_to_filename_for_display calls.
11585         (file_matches): Replace filename_cmp by compare_filenames_for_search.
11586         (print_symbol_info): Make the last parameter const char *.  New
11587         variable s_filename.  Use it in the function.
11588         (symtab_symbol_info): Make the last_filename variable const char *.
11589         Replace symtab->filename refererences by symtab_to_filename_for_display
11590         calls.
11591         (rbreak_command): New variable fullname.  Use it.  Replace
11592         symtab->filename refererence by symtab_to_filename_for_display call.
11593         * tracepoint.c (set_traceframe_context, trace_find_line_command)
11594         (print_one_static_tracepoint_marker): Replace symtab->filename
11595         refererences by symtab_to_filename_for_display calls.
11596         * tui/tui-source.c (tui_set_source_content): New variables filename and
11597         s_filename.  Replace symtab->filename refererences by this variable.
11598         Replace other symtab->filename refererences by
11599         symtab_to_filename_for_display calls.
11600
11601 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11602             Jan Kratochvil  <jan.kratochvil@redhat.com>
11603
11604         Add a new variable that controls a way in which filenames are
11605         displayed.
11606         * NEWS (set filename-display): New entry.
11607         * source.c (filename_display_basename, filename_display_relative)
11608         (filename_display_absolute, filename_display_kind_names)
11609         (filename_display_string, show_filename_display_string)
11610         (symtab_to_filename_for_display): New.
11611         (_initialize_source): Added initialization of 'filename-display'
11612         variable.
11613         * source.h (symtab_to_filename_for_display): Added declaration.
11614         * stack.c (print_frame): Added new variable and calling of a new
11615         function and condition with this variable. Changed third argument of
11616         calling of a function.
11617
11618 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11619
11620         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11621         Rename field reference filename to fullname.
11622         * tui/tui-data.h (struct tui_source_info): Rename field filename to
11623         fullname.  New comment for it.
11624         * tui/tui-source.c (tui_set_source_content): Rename field reference
11625         filename to fullname.  Initialize field by symtab_to_fullname now.
11626         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11627         reference filename to fullname.  Use symtab_to_fullname during
11628         comparison.
11629
11630 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11631
11632         Code cleanup.
11633         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11634         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
11635         filename to fullname.  Rename variable this_name to this_fullname.
11636         Lowercase FILENAME_CMP call.
11637         (dw2_find_symbol_file): New comment for the returned string.
11638         (dwarf2_gdb_index_functions): Rename the function to
11639         dw2_expand_symtabs_with_fullname.
11640         * psymtab.c (read_psymtabs_with_filename): Rename to ...
11641         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
11642         fullname.
11643         (psym_functions): Rename the function to read_psymtabs_with_fullname.
11644         * symfile.h (struct quick_symbol_functions): Rename field
11645         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11646         parameter filename to fullname.  Document returned string meaning for
11647         find_symbol_file.
11648         * symtab.c (find_line_symtab): Rename the called function to
11649         expand_symtabs_with_fullname.
11650
11651 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11652
11653         Code cleanup.
11654         * breakpoint.c (clear_command): Remove variable is_abs, unify the
11655         call of filename_cmp with compare_filenames_for_search.
11656         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11657         is_abs, unify the call of FILENAME_CMP with
11658         compare_filenames_for_search.  New gdb_asserts for real_path and name.
11659         Unify the call of compare_filenames_for_search with FILENAME_CMP.
11660         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11661         * symfile.h (struct quick_symbol_functions): Extend the comment for
11662         map_symtabs_matching_filename.
11663         * symtab.c (compare_filenames_for_search): Remove the function comment
11664         relative path requirement.  Handle absolute filenames, with a comment.
11665         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11666         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
11667         real_path and name.  Unify the call of compare_filenames_for_search
11668         with FILENAME_CMP.
11669         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11670
11671 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11672
11673         Code cleanup.
11674         * breakpoint.c (print_breakpoint_location): Replace bp_location field
11675         source_file references by symtab field references.  Remove variables
11676         sal and fullname.
11677         (momentary_breakpoint_from_master, add_location_to_breakpoint):
11678         (clear_command, say_where): Replace bp_location field source_file
11679         references by symtab field references.
11680         (bp_location_dtor): Remove the source_file reference.
11681         (update_static_tracepoint): Replace bp_location field source_file
11682         references by symtab field references.
11683         (breakpoint_free_objfile): New function.
11684         * breakpoint.h (struct bp_location): Extend the comment for line_number.
11685         Replace the field source_file by field symtab, extend its comment.
11686         (breakpoint_free_objfile): New declaration.
11687         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11688         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11689         field source_file references by symtab field references.
11690
11691 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11692
11693         Replace xfullpath calls by gdb_realpath calls.
11694         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11695         function comment.
11696         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11697         Remove it from the iterate_over_some_symtabs call.
11698         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11699         Remove it from the dw2_map_expand_apply calls, remove a block handling
11700         it.
11701         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11702         Remove it from the iterate_over_some_symtabs call.
11703         (partial_map_symtabs_matching_filename): Remove parameter full_path.
11704         Remove it from the partial_map_expand_apply calls, remove a block
11705         handling it.  Drop gdb_realpath call and cleanups from the real_path
11706         handling.
11707         * source.c (openp): Drop the comment part about xfullpath.  Replace
11708         xfullpath calls by gdb_realpath calls.
11709         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11710         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11711         from method map_symtabs_matching_filename and its comment.
11712         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11713         gdb_realpath call.
11714         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11715         remove it also from the function comment, remove a block handling it.
11716         Drop gdb_realpath call and cleanups from the real_path handling.
11717         (iterate_over_symtabs): Drop variable full_path and its use.
11718         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11719         * utils.c (xfullpath): Remove.
11720         * utils.h (xfullpath): Remove.
11721
11722 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
11723
11724         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11725         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11726         (ALLDEPFILES): Add ppc64-tdep.c.
11727         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11728         ppc64-tdep.o to gdb_target_obs.
11729         * ppc64-tdep.h: New file.
11730         * ppc64-tdep.c: New file.
11731         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11732         ppc-linux-tdep.c to here.
11733         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11734         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11735         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11736         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11737         from ppc-linux-tdep.c to here.
11738         (ppc64_convert_from_func_ptr_addr): Rename from
11739         ppc64_linux_convert_from_func_ptr_addr to
11740         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11741         here.
11742         * rs6000-tdep.c:
11743         (read_insn): Move from ppc-linux-tdep.c to here.
11744         (insns_match_pattern, insn_d_field, insn_ds_field): Move
11745         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11746         * ppc-linux-tdep.c: Include ppc64-tdep.h.
11747         Removed above functions.
11748         (ppc_linux_init_abi): Adjust.
11749
11750 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
11751
11752         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11753
11754 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
11755
11756         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11757
11758 2013-02-01  Pedro Alves  <palves@redhat.com>
11759
11760         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11761         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11762
11763 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11764
11765         * elfread.c (elf_symfile_read): Limit separate debug info additions to
11766         files with no separate debug info.
11767         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11768         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11769         only for files with no separate debug info.
11770
11771 2013-01-31  Tom Tromey  <tromey@redhat.com>
11772
11773         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11774         change type.
11775         (struct jit_program_space_data): Rename from jit_inferior_data.
11776         Update comments.
11777         (get_jit_program_space_data): Rename from get_jit_inferior_data.
11778         Change return type.  Attach data to program space.
11779         (jit_program_space_data_cleanup): Rename from
11780         jit_inferior_data_cleanup; change argument type.
11781         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11782         change type.
11783         (jit_register_code): Update.
11784         (jit_update_inferior_cache): Remove.
11785         (jit_breakpoint_deleted): Get jit data from the location's program
11786         space.
11787         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11788         'ps_data', change type.
11789         (jit_inferior_init, jit_breakpoint_re_set_internal)
11790         (jit_event_handler): Update.
11791         (free_objfile_data): Get data from objfile's program space.
11792         (_initialize_jit): Update.
11793
11794 2013-01-31  Tom Tromey  <tromey@redhat.com>
11795
11796         PR gdb/13987:
11797         * jit.c (struct jit_inferior_data) <cached_code_address,
11798         jit_breakpoint>: New fields.
11799         (jit_breakpoint_re_set_internal): Fix logging.  Only create
11800         breakpoint if cached address has changed.
11801         (jit_update_inferior_cache, jit_breakpoint_deleted): New
11802         functions.
11803         (_initialize_jit): Register breakpoint deleted observer.
11804
11805 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11806
11807         * infrun.c (handle_syscall_event): Remove unused gdbarch.
11808         (save_infcall_suspend_state): Ifdef out unused inf.
11809         (restore_infcall_suspend_state): Ifdef out unused inf.
11810         * jit.c (jit_register_code): Remove unused i, b, inf_data.
11811         (jit_frame_sniffer): Remove unused inf_data.
11812
11813 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11814
11815         * c-exp.y (classify_inner_name): Remove unused type.
11816         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11817         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11818         need_escape.
11819         (c_get_string): Remove unused kind.
11820         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11821
11822 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11823
11824         * charset.c (intermediate_encoding): Remove unused i.
11825         * completer.c (signal_completer): Remove unused i.
11826         * continuations.c (discard_my_continuations_1): Remove unused
11827         continuation_ptr.
11828         * corelow.c (core_close): Remove unuseD name.
11829         (get_core_siginfo): Remove unused pid.
11830         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11831         i, cps.
11832         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11833         (loclist_describe_location): Remove unused first.
11834         * event-top.c (command_line_handler): Remove unused got_eof.
11835         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11836         (resize_section_table): Remove unused old_value.
11837         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11838         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11839         * i386-tdep.c (i386_process_record): Remove unused rex.
11840         * infcmd.c (get_return_value): Remove unused uiout.
11841         * jv-lang.c (type_from_class): Remove unused is_array.
11842         * jv-valprint.c (java_val_print): Remove unused i.
11843         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11844         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11845         * m2-typeprint.c (m2_print_type): Remove unused code.
11846         * macroexp.c (get_character_constant): Remove unused body_start.
11847         (macro_stringify): Remove unused result.
11848         * objc-lang.c (find_methods): Remove unused gdbarch.
11849         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11850         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11851         * stack.c (print_frame_args): Remove unused summary.
11852         * thread.c (thread_apply_command): Remove unused p.
11853         * valarith.c (value_x_unop): Remove unused mangle_ptr.
11854         * valops.c (search_struct_method): Remove unused skip.
11855         * valprint.c (generic_val_print): Remove unused byte_order.
11856         * varobj.c (varobj_update): Remove unused changed.
11857         * cli/cli-cmds.c (complete_command): Remove unused next_item.
11858         (alias_command): Remove unused c.
11859         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11860         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11861         format.
11862         (mi_cmd_data_write_memory): Remove unused word_format.
11863         (mi_cmd_data_write_memory_bytes): Remove unused r.
11864         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11865         p_start, p_end.
11866         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11867         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11868         line_width.
11869
11870 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11871
11872         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11873         * symtab.c (iterate_over_symtabs): Remove unused s.
11874         (find_pc_sect_symtab): Remove unused pspAce.
11875         (find_pc_sect_line): Remove unused alt_symtab.
11876         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11877         (completion_list_add_name): Remove unused newsize.
11878
11879 2013-01-31  Tom Tromey  <tromey@redhat.com>
11880
11881         PR c++/14998:
11882         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11883         TYPE_CODE_FUNC.
11884
11885 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11886
11887         * target.c (target_read_string): Remove unused origlen.
11888
11889 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11890
11891         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11892         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11893         * ax-general.c (ax_print): Remove unused is_float.
11894         * blockframe.c (block_innermost_frame): Remove unused start, end.
11895         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11896
11897 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11898
11899         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11900         (svr4_read_so_list): Remove unused lmo.
11901         * solib-target.c (solib_target_relocate_section_addresses): Remove
11902         unused flags.
11903
11904 2013-01-30  Tom Tromey  <tromey@redhat.com>
11905
11906         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11907
11908 2013-01-30  Tom Tromey  <tromey@redhat.com>
11909
11910         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11911         * utils.c (gnu_debuglink_crc32): Remove.
11912         * utils.h (gnu_debuglink_crc32): Don't declare.
11913
11914 2013-01-30  Tom Tromey  <tromey@redhat.com>
11915
11916         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11917         (read_structure_type, read_enumeration_type): Remove cast.
11918
11919 2013-01-30  Tom Tromey  <tromey@redhat.com>
11920
11921         * dwarf2read.c (read_namespace_type): Remove cast.
11922         (read_typedef): Likewise.
11923
11924 2013-01-29  Tom Tromey  <tromey@redhat.com>
11925
11926         * dwarf2read.c (free_dwo_file): Remove assert.
11927
11928 2013-01-29  Tom Tromey  <tromey@redhat.com>
11929
11930         * value.c (deprecated_set_value_modifiable): Remove.
11931         * value.h (deprecated_set_value_modifiable): Remove.
11932
11933 2013-01-28  Doug Evans  <dje@google.com>
11934
11935         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11936         to addresses from dwo files.
11937
11938 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
11939
11940         * valops.c (find_overload_match): Remove unused argument 'lax'.
11941         * value.h: Remove unused argument 'lax' from the declaration of
11942         find_overload_match.
11943         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11944         to find_overload_match.
11945         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11946         argument to find_overload_match.
11947
11948 2013-01-25  Tom Tromey  <tromey@redhat.com>
11949
11950         * dwarf2read.c (processing_has_namespace_info): Remove.
11951         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11952         (process_die, read_func_scope, dwarf2_start_symtab)
11953         (new_symbol_full): Update.
11954
11955 2013-01-25  Tom Tromey  <tromey@redhat.com>
11956
11957         * cp-namespace.c (cp_set_block_scope): Remove.
11958         * cp-support.h (cp_set_block_scope): Remove.
11959         * dbxread.c: Include block.h.
11960         (cp_set_block_scope): New function.
11961         (process_one_symbol): Update.
11962         * dwarf2read.c (read_func_scope): Use block_set_scope.
11963
11964 2013-01-25  Pedro Alves  <palves@redhat.com>
11965
11966         * remote.c (add_current_inferior_and_thread): Tweak comment.
11967
11968 2013-01-25  Tom Tromey  <tromey@redhat.com>
11969
11970         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11971         (cp_add_using_directive): Add 'copy_names' argument.
11972         * cp-support.h (cp_add_using_directive): Update.
11973         (struct using_direct) <import_src, import_dest, alias,
11974         declaration>: Now const.
11975         * dwarf2read.c (read_import_statement): Use obconcat.
11976         Don't copy names passed to cp_add_using_directive.
11977
11978 2013-01-25  Tom Tromey  <tromey@redhat.com>
11979
11980         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11981
11982 2013-01-25  Pedro Alves  <palves@redhat.com>
11983
11984         * remote.c (stop_reply_extract_thread): New.
11985         (add_current_inferior_and_thread): New parameter 'wait_status'.
11986         Handle it.
11987         (remote_start_remote): Pass wait status to
11988         add_current_inferior_and_thread.
11989         (extended_remote_run): Update comment.
11990         (extended_remote_create_inferior_1): Pass wait status to
11991         add_current_inferior_and_thread.
11992
11993 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
11994             Ulrich Weigand  <uweigand@de.ibm.com>
11995
11996         * valarith.c (value_vector_widen): New function for replicating a
11997         scalar into a vector.
11998         (value_binop): Use value_vector_widen to widen scalar to vector
11999         rather than casting, this better matches gcc C behaviour.
12000         * valops.c (value_casst): Update logic for casting between vector
12001         types, and for casting from scalar to vector, try to match gcc C
12002         behaviour.
12003         * value.h (value_vector_widen): Declare.
12004         * opencl-lang.c (opencl_value_cast): New opencl specific casting
12005         function, handle special case for casting scalar to vector.
12006         (opencl_relop): Use opencl_value_cast.
12007         (evaluate_subexp_opencl): Use opencl_value_cast instead of
12008         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12009         in order to use opencl_value_cast.
12010
12011 2013-01-25  Yao Qi  <yao@codesourcery.com>
12012
12013         * event-loop.c: Include "queue.h".
12014         (gdb_event_p): New typedef.
12015         (DECLARE_QUEUE_P): Use.
12016         (DEFINE_QUEUE_P): Use.
12017         (async_queue_event): Remove.
12018         (gdb_event_xfree): New.
12019         (initialize_event_loop): New.
12020         (process_event): Use QUEUE macros.
12021         (event_queue): Remove.
12022         (gdb_wait_for_event): Caller update.
12023         (check_async_event_handlers): Likewise.
12024         (poll_timers): Likewise.
12025         * event-loop.h (initialize_event_loop): Declare.
12026         * event-loop.c (gdb_event_xfree): New.
12027         * top.c (gdb_init): Call initialize_event_loop.
12028
12029 2013-01-25  Yao Qi  <yao@codesourcery.com>
12030
12031         * event-loop.c (async_queue_event): Remove one parameter
12032         'position'.  Remove code handling 'position' == TAIL.
12033         (gdb_wait_for_event): Caller update.
12034         (check_async_event_handlers): Caller update.
12035         (poll_timers): Caller update.
12036         * event-loop.h (enum queue_position): Remove.
12037
12038 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
12039
12040         * MAINTAINERS: Update my email.
12041
12042 2013-01-25  Yao Qi  <yao@codesourcery.com>
12043
12044         * main.c (print_gdb_help): Remove "--epoch" from the help
12045         message.
12046
12047 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
12048
12049         * symtab.c (skip_prologue_using_sal): Consider a file
12050         change the same as an increased line number
12051
12052 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12053
12054         * MAINTAINERS (Write After Approval): Add myself to the list.
12055
12056 2013-01-24  Tom Tromey  <tromey@redhat.com>
12057
12058         * ada-lang.h (ada_decode_symbol): Make return type const.
12059         * ada-lang.c (ada_decode_symbol): Likewise.
12060
12061 2013-01-23  Doug Evans  <dje@google.com>
12062
12063         * linespec.c (find_linespec_symbols): Make static.
12064
12065 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12066
12067         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12068         type on float conversion for complex type.
12069
12070 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
12071
12072         Add a new class gdb.Architecture which exposes GDB's
12073         internal representation of architecture via GDB Python API.
12074         * Makefile.in: Add entries corresponding to the new file
12075         python/py-arch.c.
12076         * NEWS (Python Scripting): Add entries for the new class
12077         gdb.Architecture and the new method gdb.Frame.architecture.
12078         * python/py-arch.c: Implement gdb.Architecture class.
12079         * python/py-frame.c (frapy_arch): Implement the method
12080         gdb.Frame.architecture().
12081         (frame_object_methods): Add 'architecture' to the method table.
12082         * python/python-internal.h: Add declarations of new utility
12083         functions.
12084         * python/python.c (_initialize_python): Initialize
12085         gdb.Architecture class.
12086
12087 2013-01-23  Doug Evans  <dje@google.com>
12088
12089         Work around binutils/15021.
12090         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12091         type_unit_group out of union s.  All uses updated.
12092         (read_index_from_section): Watch for index version 8.
12093         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12094         an imported symtab.
12095         (write_psymtabs_to_index): Increment version number to 8.
12096
12097 2013-01-22  Pedro Alves  <palves@redhat.com>
12098
12099         * annotate.c (breakpoint_changed): Skip if breakpoint is not
12100         user-visible.
12101
12102 2013-01-22  Pedro Alves  <palves@redhat.com>
12103
12104         * annotate.c (annotate_breakpoints_changed): Rename to ...
12105         (annotate_breakpoints_invalid): ... this.  Make static.
12106         (breakpoint_changed): Adjust.
12107         (_initialize_annotate): Always install the observers.  Install a
12108         "breakpoint_created" observer.
12109         * annotate.h (annotate_breakpoints_changed): Delete declaration.
12110         * breakpoint.c (set_breakpoint_condition)
12111         (breakpoint_set_commands, do_map_commands_command)
12112         (init_raw_breakpoint, clear_command, set_ignore_count)
12113         (enable_breakpoint_disp): No longer call
12114         annotate_breakpoints_changed.
12115
12116 2013-01-22  Pedro Alves  <palves@redhat.com>
12117
12118         * annotate.c: Include "inferior.h".
12119         (frames_invalid_emitted)
12120         (breakpoints_invalid_emitted): New globals.
12121         (async_background_execution_p): New function.
12122         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12123         emitting the annotation if it has already been emitted.
12124         (annotate_display_prompt): New function.
12125         * annotate.h (annotate_display_prompt): New declaration.
12126         * event-top.c: Include annotate.h.
12127         (display_gdb_prompt): Call annotate_display_prompt.
12128
12129 2013-01-22  Pedro Alves  <palves@redhat.com>
12130
12131         * annotate.c (ignore_count_changed): Delete.
12132         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12133         (annotate_ignore_count_change): Delete.
12134         (annotate_stopped): Don't emit a delayed breakpoints-changed
12135         annotation.
12136         * annotate.h (annotate_ignore_count_change): Delete.
12137         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12138         annotate_ignore_count_change.
12139
12140 2013-01-22  Tom Tromey  <tromey@redhat.com>
12141
12142         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12143         require_rvalue for a register location.
12144
12145 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
12146
12147         * breakpoint.c (print_one_breakpoint_location): Add MI
12148         field 'thread-groups' when printing a breakpoint.
12149         (output_thread_groups): New function.
12150
12151 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
12152
12153         * python/lib/gdb/commands/explore.py
12154         (CompoundExplorer.explore_expr): Correct the name of a method
12155         being invoked.
12156         (ExploreTypeCommand.invoke): Add a missing 'return'.
12157
12158 2013-01-21  Tom Tromey  <tromey@redhat.com>
12159
12160         * gdb_obstack.h (obconcat): Move declaration here, from...
12161         * symfile.h (obconcat): ... here.
12162         * gdb_obstack.c: New file.
12163         (obconcat): Move from...
12164         * symfile.c (obconcat): ... here.
12165         * Makefile.in (SFILES): Add gdb_obstack.c.
12166         (COMMON_OBS): Add gdb_obstack.o.
12167
12168 2013-01-21  Tom Tromey  <tromey@redhat.com>
12169
12170         * symfile.h (obsavestring): Don't declare.
12171         * symfile.c (obsavestring): Remove.
12172         * ada-exp.y: Use obstack_copy0, not obsavestring.
12173         * ada-lang.c: Use obstack_copy0, not obsavestring.
12174         * coffread.c: Use obstack_copy0, not obsavestring.
12175         * cp-namespace.c: Use obstack_copy0, not obsavestring.
12176         * dbxread.c: Use obstack_copy0, not obsavestring.
12177         * dwarf2read.c: Use obstack_copy0, not obsavestring.
12178         * jit.c: Use obstack_copy0, not obsavestring.
12179         * mdebugread.c: Use obstack_copy0, not obsavestring.
12180         * psymtab.c: Use obstack_copy0, not obsavestring.
12181         * stabsread.c: Use obstack_copy0, not obsavestring.
12182         * xcoffread.c: Use obstack_copy0, not obsavestring.
12183
12184 2013-01-21  Tom Tromey  <tromey@redhat.com>
12185
12186         * dwarf2read.c (fixup_go_packaging): Save package name
12187         on objfile obstack.
12188         * gdbtypes.c (init_type): Don't copy name.
12189
12190 2013-01-21  Tom Tromey  <tromey@redhat.com>
12191
12192         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12193         const.
12194         (struct attribute) <u.str>: Now const.
12195         (struct fnfieldlist) <name>: Now const.
12196         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12197         (partial_die_parent_scope): Make return type const.
12198         (partial_die_full_name, add_partial_symbol): Update.
12199         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12200         'name' const.
12201         (find_file_and_directory): Make 'name' and 'comp_dir' const.
12202         (read_file_scope, read_func_scope, dwarf2_add_field)
12203         (dwarf2_add_member_fn, read_structure_type)
12204         (process_enumeration_scope, read_array_type, read_module_type)
12205         (read_base_type, read_subrange_type): Update.
12206         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12207         (new_symbol_full, guess_full_die_structure_name): Update.
12208         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
12209         (dwarf2_name): Return const type.
12210         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12211         const.
12212
12213 2013-01-21  Tom Tromey  <tromey@redhat.com>
12214
12215         * gdbtypes.c (init_type): Make 'name' const.
12216         * gdbtypes.h (init_type): Update.
12217
12218 2013-01-21  Tom Tromey  <tromey@redhat.com>
12219
12220         * buildsym.c (patch_subfile_names): Use set_last_source_file.
12221         (start_symtab): Make 'name' and 'dirname' const.  Use
12222         set_last_source_file.
12223         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12224         (last_source_file): Define.  Now static.
12225         (set_last_source_file, get_last_source_file): New functions.
12226         * buildsym.h (last_source_file): Don't declare.
12227         (start_symtab): Update.
12228         (set_last_source_file, get_last_source_file): Declare.
12229         * coffread.c (complete_symtab): Use set_last_source_file.
12230         (coff_end_symtab): Likewise.
12231         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12232         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12233         set_last_source_file.
12234         (process_one_symbol): Use get_last_source_file.
12235         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12236         (psymtab_to_symtab_1): Use get_last_source_file.
12237         * xcoffread.c (process_linenos): Use get_last_source_file.
12238         (complete_symtab): Use set_last_source_file.
12239         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12240         (scan_xcoff_symtab): Use set_last_source_file.
12241
12242 2013-01-21  Tom Tromey  <tromey@redhat.com>
12243
12244         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12245         (symbol_set_names): Remove casts.  Handle field const-ness.
12246
12247 2013-01-21  Tom Tromey  <tromey@redhat.com>
12248
12249         * dwarf2read.c (new_symbol_full): Remove cast.
12250         * symtab.c (symbol_set_demangled_name): Make 'name' const.
12251         * symtab.h (symbol_set_demangled_name): Update.
12252
12253 2013-01-21  Tom Tromey  <tromey@redhat.com>
12254
12255         * main.c (captured_main): Call bfd_init.
12256
12257 2013-01-21  Tom Tromey  <tromey@redhat.com>
12258
12259         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12260         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12261         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12262         * NEWS: Update.
12263
12264 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
12265
12266         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12267
12268 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
12269
12270         Fix gdb.fortran/common-block.exp crash in PIE mode.
12271         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12272         LOC_COMMON_BLOCK.
12273         * f-valprint.c (info_common_command_for_block): Expect
12274         LOC_COMMON_BLOCK in gdb_assert.
12275         * symtab.h (struct general_symbol_info): Update comment for the
12276         common_block member.
12277         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12278         (enum address_class): New member LOC_COMMON_BLOCK.
12279
12280 2013-01-18  David Blaikie  <dblaikie@gmail.com>
12281
12282         * MAINTAINERS (Write After Approval): Add "David Blaikie".
12283
12284 2013-01-18  Tom Tromey  <tromey@redhat.com>
12285
12286         PR c++/14999:
12287         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12288         Call require_rvalue.
12289
12290 2013-01-18  Yao Qi  <yao@codesourcery.com>
12291
12292         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12293         (dbx_read_symtab): New declaration.
12294         (dbx_psymtab_to_symtab): Delete.
12295         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12296         Rename parameter PST to SELF.  Exchanged two parameters.
12297         (start_psymtab): Caller update.
12298         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12299         (dwarf2_read_symtab): New declaration.
12300         (dwarf2_psymtab_to_symtab): Delete.
12301         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12302         Rename parameter PST to SELF.  Exchanged two parameters.
12303         (create_partial_symtab): Caller update.
12304         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12305         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12306         Rename parameter PST to SELF.  Exchanged two parameters.
12307         (parse_partial_symbols, new_psymtab): Caller update.
12308         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12309         two parameters.
12310         * psymtab.c (psymtab_to_symtab): Caller update.
12311         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12312         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12313         Rename parameter PST to SELF.  Exchanged two parameters.
12314         (xcoff_start_psymtab): Caller update.
12315
12316 2013-01-18  Yao Qi  <yao@codesourcery.com>
12317
12318         * infrun.c (proceed): Rename local variable 'oneproc' to
12319         'force_step'.
12320
12321 2013-01-17  Doug Evans  <dje@google.com>
12322
12323         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12324         (dw2_build_type_unit_groups): Delete.  All uses updated.
12325
12326         * symtab.h (struct symbol_search): Add comment.
12327
12328 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
12329
12330         * symtab.c (compare_filenames_for_search): New comment for
12331         HAS_DRIVE_SPEC.
12332
12333 2013-01-17  Tom Tromey  <tromey@redhat.com>
12334
12335         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12336
12337 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
12338
12339         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12340         initialize it by existing make_cleanup.  Call new do_cleanups.
12341
12342 2013-01-17  Tom Tromey  <tromey@redhat.com>
12343
12344         * cp-abi.c (cp_abi_completer): New function.
12345         (_initialize_cp_abi): Set completer for "set cp-abi".
12346
12347 2013-01-17  Tom Tromey  <tromey@redhat.com>
12348
12349         * mem-break.c: Remove obsolete comment.
12350         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12351
12352 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
12353
12354         * jit.c (jit_reader_load_command): Interpret the jit reader name
12355         as an absolute path if it begins with a forward slash.
12356
12357 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
12358
12359         PR gdb/14550
12360
12361         * jit.c (finalize_symtab): Ensure that only the global block has a
12362         NULL superblock.
12363
12364 2013-01-17  Pedro Alves  <palves@redhat.com>
12365
12366         * acinclude.m4: Include ../config/plugins.m4,
12367         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
12368         * Makefile.in (aclocal_m4_deps): Update.
12369         * aclocal.m4: Renegerate.
12370
12371 2013-01-16  Doug Evans  <dje@google.com>
12372
12373         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12374
12375 2013-01-16  Pedro Alves  <palves@redhat.com>
12376             Tom Tromey  <tromey@redhat.com>
12377
12378         PR cli/7221:
12379         * NEWS: Add "catch signal".
12380         * breakpoint.c (base_breakpoint_ops): No longer static.
12381         (bpstat_explains_signal): New function.
12382         (init_catchpoint): No longer static.
12383         (base_breakpoint_explains_signal): New function.
12384         (base_breakpoint_ops): Initialize new field.
12385         * breakpoint.h (enum bpstat_signal_value): New.
12386         (struct breakpoint_ops) <explains_signal>: New field.
12387         (bpstat_explains_signal): Remove macro, declare as function.
12388         (base_breakpoint_ops, init_catchpoint): Declare.
12389         * break-catch-sig.c: New file.
12390         * inferior.h (signal_catch_update): Declare.
12391         * infrun.c (signal_catch): New global.
12392         (handle_syscall_event): Update for change to
12393         bpstat_explains_signal.
12394         (handle_inferior_event): Likewise.  Always handle random signals
12395         via bpstats.
12396         (signal_cache_update): Check signal_catch.
12397         (signal_catch_update): New function.
12398         (_initialize_infrun): Initialize signal_catch.
12399         * Makefile.in (SFILES): Add break-catch-sig.c.
12400         (COMMON_OBS): Add break-catch-sig.o.
12401
12402 2013-01-16  Tom Tromey  <tromey@redhat.com>
12403
12404         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12405         (print_one_catch_solib, print_one_catch_syscall)
12406         (print_one_catch_exec, print_one_exception_catchpoint): Emit
12407         "catch-type".
12408
12409 2013-01-16  Yao Qi  <yao@codesourcery.com>
12410
12411         * printcmd.c (current_display_number): Make it static.
12412
12413 2013-01-16  Yao Qi  <yao@codesourcery.com>
12414
12415         * infcmd.c (step_once): Don't check '!single_inst' as it was
12416         checked before.
12417
12418 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
12419
12420         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12421
12422 2013-01-14  Tom Tromey  <tromey@redhat.com>
12423
12424         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12425         set command.
12426         * command.h (add_setshow_string_noescape_cmd): Update.
12427         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12428         (complete_set_gnutarget): New function.
12429         (_initialize_core): Set the "set gnutarget" completer.
12430
12431 2013-01-14  Tom Tromey  <tromey@redhat.com>
12432
12433         PR symtab/14442:
12434         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12435         (c_type_print_modifier): Likewise.
12436         * dwarf2read.c (read_tag_restrict_type): New function.
12437         (read_type_die_1): Handle DW_TAG_restrict_type.
12438         * gdbtypes.c (make_restrict_type): New function.
12439         (recursive_dump_type): Handle TYPE_RESTRICT.
12440         * gdbtypes.h (enum type_flag_values): Renumber.
12441         (enum type_instance_flag_value): Add
12442         TYPE_INSTANCE_FLAG_RESTRICT.
12443         (TYPE_RESTRICT): New macro.
12444         (make_restrict_type): Declare.
12445
12446 2013-01-14  Tom Tromey  <tromey@redhat.com>
12447
12448         PR symtab/14931:
12449         * psymtab.c (struct psymtab_state): New.
12450         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12451         functions.
12452         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12453         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12454
12455 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
12456             Pedro Alves  <palves@redhat.com>
12457
12458         PR remote/14786
12459
12460         * remote.c (remote_threads_info): Make a copy of the reply from
12461         qfThreadInfo and use that instead of rs->buf.
12462
12463 2013-01-14  Yao Qi  <yao@codesourcery.com>
12464
12465         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12466         (dbx_psymtab_to_symtab): Likewise.
12467         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12468         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12469         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12470
12471 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12472
12473         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
12474         make_cleanup_restore_current_language.  Call set_language.  Move
12475         OLD_CHAIN and INNER_CHAIN cleanups.
12476         * utils.c (do_restore_current_language)
12477         (make_cleanup_restore_current_language): New functions.
12478         * utils.h (make_cleanup_restore_current_language): New declaration.
12479
12480 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12481
12482         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12483         non-existing files.
12484
12485         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12486         non-existing files if FILENAME is already absolute.
12487
12488 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12489
12490         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12491         fputs_filtered.  Append trailing newline.
12492
12493 2013-01-11  Yao Qi  <yao@codesourcery.com>
12494             Stan Shebs  <stan@codesourcery.com>
12495
12496         * psymtab.c (init_psymbol_list): Clarify the comment.
12497
12498 2013-01-11  Yao Qi  <yao@codesourcery.com>
12499
12500         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12501         (update_dprintf_command_list): Assert that 'printf_line' is
12502         non-null.  Remove condition check.
12503
12504 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12505
12506         Code cleanup.
12507         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12508         type const char *.
12509         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12510         const char *.
12511         * tui/tui-source.h (tui_source_is_displayed): Likewise.
12512
12513 2013-01-09  Anthony Green  <green@moxielogic.com>
12514
12515         * cp-abi.c (cplus_print_vtable): Don't return value from void
12516         function.
12517         * ada-lang.c (re_set_catch_assert): Ditto.
12518
12519 2013-01-09  Doug Evans  <dje@google.com>
12520
12521         * symfile.h (quick_symbol_functions): Delete member
12522         pre_expand_symtabs_matching.  All uses removed.
12523         * dwarf2read.c (dw2_lookup_symbol): Implement.
12524         (dw2_do_expand_symtabs_matching): Delete.
12525         (dw2_pre_expand_symtabs_matching): Delete.
12526         (struct dw2_symtab_iterator): New type.
12527         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12528         (dw2_expand_symtabs_for_function): Rewrite.
12529         (dwarf2_gdb_index_functions): Update.
12530         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12531         (psym_functions): Update.
12532
12533 2013-01-09  Tom Tromey  <tromey@redhat.com>
12534
12535         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12536         * configure: Rebuild.
12537         * configure.ac: Add somread.o to the build if BFD has SOM
12538         support.
12539         * somread.c: Include som/aout.h, not syms.h.
12540         (som_symtab_read): Use som_external_symbol_dictionary_record.
12541         Unpack records manually.
12542         (_initialize_somread): Declare.
12543
12544 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
12545
12546         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12547         Cast return_address to 64bits.
12548
12549 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
12550
12551         * printcmd.c: Remove define of function output_command.
12552         * tracepoint.c: Remove extern of function output_command.
12553         * valprint.h: (output_command): New extern.
12554
12555 2013-01-07  Tom Tromey  <tromey@redhat.com>
12556
12557         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12558         Remove.
12559         (objc_language_defn): Use c_printchar, c_printstr,
12560         c_emit_char.
12561
12562 2013-01-07  Tom Tromey  <tromey@redhat.com>
12563
12564         PR cli/7719:
12565         * NEWS: Update.
12566         * ada-valprint.c (printstr, print_field_values): Remove
12567         "inspect_it" code.
12568         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12569         code.
12570         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12571         code.
12572         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12573         * main.c (captured_main): Remove "epoch" argument.
12574         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12575         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12576         * p-valprint.c (pascal_object_print_value_fields): Remove
12577         "inspect_it" code.
12578         * printcmd.c (print_command_1): Remove 'inspect' argument.
12579         (print_command, call_command): Update.
12580         (inspect_command): Remove.
12581         (_initialize_printcmd): Make "inspect" an alias for "print".
12582         * top.c (epoch_interface): Remove.
12583         * top.h (epoch_interface): Remove.
12584         * valprint.c (user_print_options): Update.
12585         (print_converted_chars_to_obstack): Remove "inspect_it" code.
12586         * valprint.h (struct value_print_options) <inspect_it>: Remove
12587         field.
12588
12589 2013-01-04  Tom Tromey  <tromey@redhat.com>
12590
12591         * valprint.h (read_string): Add 'extern'.
12592
12593 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
12594
12595         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12596         used to decide whether to define darwin_read_dyld_info or not.
12597
12598 2013-01-03  Pierre Muller  <muller@sourceware.org>
12599
12600         * main.c (relocate_gdb_directory): Avoid calling stat function
12601         if DIR is empty.
12602
12603 2013-01-03  Yao Qi  <yao@codesourcery.com>
12604
12605         * psymtab.c (fixup_psymbol_section): Update declaration.
12606         (fixup_psymbol_section): Remove code returning value.
12607
12608 2013-01-03  Yao Qi  <yao@codesourcery.com>
12609
12610         * symtab.h: Remove some out of date comments.
12611          (enum exception_event_kind): Move it ...
12612         * breakpoint.c: ... here.
12613
12614 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
12615
12616         PR gdb/14405
12617         * darwin-nat.c (darwin_read_dyld_info): Only build if
12618         TASK_DYLD_INFO_COUNT is defined.
12619         (darwin_xfer_partial): Call darwin_read_dyld_info only if
12620         TASK_DYLD_INFO_COUNT is defined.
12621
12622 2013-01-02  Tom Tromey  <tromey@redhat.com>
12623
12624         * symfile.h (struct ecoff_debug_hack): Remove.
12625         * objfiles.c: Don't include mdebugread.h.
12626
12627 2013-01-02  Tom Tromey  <tromey@redhat.com>
12628
12629         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12630         * configure.ac: Check for Mach-O support in BFD.  Update
12631         CONFIG_OBS.
12632         * configure: Rebuild.
12633
12634 2013-01-02  Tom Tromey  <tromey@redhat.com>
12635
12636         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12637         * configure.ac: Use GDB_AC_CHECK_BFD.
12638         * configure: Rebuild.
12639
12640 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
12641
12642         * MAINTAINERS: Update my email.
12643
12644 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
12645
12646         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12647
12648 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
12649
12650         * rs6000-nat.c (bss_data_overlap): New function.
12651         (vmap_symtab): Use it to adjust the .bss section's offset.
12652
12653 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
12654
12655         Update year range in copyright notice of all files.
12656
12657 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
12658
12659         * top.c (print_gdb_version): Update copyright year.
12660
12661 For older changes see ChangeLog-2012.
12662 \f
12663 Local Variables:
12664 mode: change-log
12665 left-margin: 8
12666 fill-column: 74
12667 version-control: never
12668 coding: utf-8
12669 End: