Add MPX support for i386
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
2
3 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
4 registers on the range of registers to be read from
5 xsave buffer.
6 (i386_linux_read_description): Add case for MPX.
7 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
8 (i386_linux_gregset_reg_offset): Add MPX registers.
9 (i386_linux_core_read_description): Initialize also MPX.
10 (_initialize_i386_linux_tdep): Add mpx initialization.
11 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
12 mpx_register_names.
13 (i386_regnum): Add MPX registers.
14 (I386_MPX_NUM_REGS): New macro.
15 (i386_bnd_regnum_p): New function.
16 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
17 number of registers to be the number of BNDSTATUS.
18 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
19 * i386-tdep.c: Include features/i386/i386-mpx.c.
20 (i386_mpx_names): Add MPX register names array.
21 (i386_bnd_names): Add bnd pseudo register names array.
22 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
23 registers.
24 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
25 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
26 registers.
27 (i386_bnd_type): New function.
28 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
29 register types.
30 (i386_pseudo_register_read_into_value): Add bnd case.
31 (i386_pseudo_register_write): Add bnd pseudo registers.
32 (i386_register_reggroup_p): Add MPX register to the group all.
33 (i386_validate_tdesc_p): Add MPX to the target description
34 validation.
35 (i386_pseudo_register_name): Add bnd pseudo registers.
36 (i386_gdbarch_init): Add MPX for architecture initialization.
37 (_initia_initialize_i386_tdep): Add mpx initialization.
38 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
39 XSAVE buffer.
40 (XSAVE_MPX_ADDR): New macro.
41 (i387_supply_xsave): Add MPX case.
42 (i387_collect_xsave): Add MPX case.
43 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
44 (I387_BNDCFGU_REGNUM): New macro.
45 (I387_NUM_MPX_REGS): New macro.
46 (I387_NUM_BND_REGS): New macro.
47 (I387_NUM_MPX_CTRL_REGS): New macro.
48 (I387_MPXEND_REGNUM): New macro.
49 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
50 (I386_XSTATE_BNDCFG): Likewise.
51 (I386_XSTATE_MPX_MASK): Likewise.
52 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
53 (I386_XSTATE_BNDREGS_SIZE): New macro.
54 (I386_XSTATE_BNDCFG_SIZE): Likewise.
55 (I386_XSTATE_SIZE): Adapt for MPX.
56 (I386_XSTATE_MAX_SIZE): Likewise.
57
58 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
59
60 * features/i386/Makefile: Adapts for using MPX registers.
61 * features/i386/32bit-mpx.xml: New file.
62 * features/i386/64bit-mpx.xml: Likewise.
63 * features/i386/amd64-mpx-linux.c: Likewise.
64 * features/i386/amd64-mpx-linux.xml: Likewise.
65 * features/i386/amd64-mpx.c: Likewise.
66 * features/i386/amd64-mpx.xml: Likewise.
67 * features/i386/i386-mpx-linux.c: Likewise.
68 * features/i386/i386-mpx-linux.xml: Likewise.
69 * features/i386/i386-mpx.c: Likewise.
70 * features/i386/i386-mpx.xml: Likewise.
71 * regformats/i386/amd64-mpx-linux.dat: New file.
72 * regformats/i386/amd64-mpx.dat: Likewise.
73 * regformats/i386/i386-mpx-linux.dat: Likewise.
74 * regformats/i386/i386-mpx.dat: Likewise.
75
76 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
77
78 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
79 Modified logic of creating a bitfield to be in sync with
80 tdesc_gdb_type.
81
82 2013-11-20 Will Newton <will.newton@linaro.org>
83
84 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
85 error message.
86
87 2013-11-20 Yao Qi <yao@codesourcery.com>
88
89 * progspace.h (struct address_space_data): Declare.
90 * target-dcache.c: Include "progspace.h".
91 (target_dache): Remove.
92 (target_dcache_aspace_key): New.
93 (target_dcache_cleanup): New function.
94 (target_dcache_init_p): Get data through
95 target_dcache_aspace_key.
96 (target_dcache_invalidate): Likewise.
97 (target_dcache_get): Likewise.
98 (target_dcache_get_or_init): Likewise.
99 (_initialize_target_dcache): Initialize
100 target_dcache_aspace_key.
101
102 2013-11-20 Yao Qi <yao@codesourcery.com>
103
104 * progspace.c (struct address_space): Update comments.
105 <REGISTRY_FIELDS>: New fields.
106 DEFINE_REGISTRY for address_space.
107 (new_address_space): Call address_space_alloc_data.
108 (free_address_space): Call address_space_free_data.
109 * progspace.h: Use DECLARE_REGISTRY.
110
111 2013-11-20 Yao Qi <yao@codesourcery.com>
112
113 * Makefile.in (SFILES):Add target-dcache.c.
114 (HFILES_NO_SRCDIR): Add target-dcache.h.
115 (COMMON_OBS): Add target-dcache.o.
116 * dcache.c: Remove inclusion to "target.h". Include
117 "target-dcache.h".
118 * memattr.c: Include "target-dcache.h".
119 * top.c: Likewise.
120 * tracepoint.c: Likewise.
121 * target.c: (stack_cache_enabled_p_1): Move to
122 target-dcache.c.
123 (stack_cache_enabled_p): Likewise.
124 (set_stack_cache_enabled_p): Likewise.
125 (show_stack_cache_enabled_p): Likewise.
126 (target_dcache, target_dcache_init_p): Likewise.
127 (target_dcache_invalidate): Likewise.
128 (target_dcache_get, target_dcache_get_or_init): Likewise.
129 (memory_xfer_partial_1): Call function stack_cache_enabled.
130 (initialize_target): Move code to target-dcache.c.
131 * target.h (target_dcache_invalidate): Move to
132 target-dcache.h.
133 (target_dcache_get): Likewise.
134 * target-dcache.c: New.
135 * target-dcache.h: New.
136
137 2013-11-20 Yao Qi <yao@codesourcery.com>
138
139 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
140 it is initialized.
141
142 2013-11-20 Yao Qi <yao@codesourcery.com>
143
144 * dcache.c (last_cache): Remove.
145 (dcache_free, dcache_init): Update.
146 (dcache_update):
147 (dcache_print_line): Add parameter 'dcache'. Replace
148 'target_dcache' with 'dcache'.
149 (dcache_info): Move code to dcache_info_1. Call
150 'dcache_info_1'.
151 (dcache_info_1): New function.
152 (set_dcache_size): Call target_dcache_invalidate.
153 (set_dcache_line_size): Call target_dcache_invalidate.
154 * target.c (target_dcache_init_p): New function.
155 (target_dcache_invalidate): Check target_dcache_init_p first.
156 (target_dcache_get, target_dcache_get_or_init): New function.
157 (memory_xfer_partial_1): Adjust.
158 (initialize_target): Don't initialize 'target_dcache'.
159 * target.h (struct dcache_struct): Declare.
160 (target_dcache_get): Declare.
161
162 2013-11-19 Yao Qi <yao@codesourcery.com>
163
164 * varobj.c (varobj_get_type): Fix typo.
165
166 2013-11-19 Joel Brobecker <brobecker@adacore.com>
167
168 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
169
170 2013-11-19 Joel Brobecker <brobecker@adacore.com>
171
172 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
173 "stat.h".
174
175 2013-11-18 Tom Tromey <tromey@redhat.com>
176
177 * common/gdb_stat.h: Remove.
178 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
179 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
180 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
181 * corefile.c: Use sys/stat.h, not gdb_stat.h.
182 * ctf.c: Use sys/stat.h, not gdb_stat.h.
183 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
184 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
185 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
186 * exec.c: Use sys/stat.h, not gdb_stat.h.
187 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
188 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
189 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
190 * jit.c: Use sys/stat.h, not gdb_stat.h.
191 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
192 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
193 * main.c: Use sys/stat.h, not gdb_stat.h.
194 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
195 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
196 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
197 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
198 * procfs.c: Use sys/stat.h, not gdb_stat.h.
199 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
200 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
201 * remote.c: Use sys/stat.h, not gdb_stat.h.
202 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
203 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
204 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
205 * source.c: Use sys/stat.h, not gdb_stat.h.
206 * symfile.c: Use sys/stat.h, not gdb_stat.h.
207 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
208 * symtab.c: Use sys/stat.h, not gdb_stat.h.
209 * top.c: Use sys/stat.h, not gdb_stat.h.
210 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
211
212 2013-11-18 Tom Tromey <tromey@redhat.com>
213
214 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
215 sys_stat.
216 * gnulib/aclocal.m4: Update.
217 * gnulib/config.in: Update.
218 * gnulib/configure: Update.
219 * gnulib/import/Makefile.am: Update.
220 * gnulib/import/Makefile.in: Update.
221 * gnulib/import/m4/gnulib-cache.m4: Update.
222 * gnulib/import/m4/gnulib-comp.m4: Update.
223 * gnulib/import/m4/sys_stat_h.m4: New.
224 * gnulib/import/m4/time_h.m4: New.
225 * gnulib/import/sys_stat.in.h: New.
226 * gnulib/import/time.in.h: New.
227
228 2013-11-18 Tom Tromey <tromey@redhat.com>
229
230 * configure: Rebuild.
231 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
232
233 2013-11-18 Tom Tromey <tromey@redhat.com>
234
235 * configure: Rebuild.
236 * configure.ac: Don't check for unistd.h.
237
238 2013-11-18 Tom Tromey <tromey@redhat.com>
239
240 * configure: Rebuild.
241 * configure.ac: Don't check for stdlib.h
242 * defs.h: Include stdlib.h unconditionally.
243
244 2013-11-18 Tom Tromey <tromey@redhat.com>
245
246 * config.in: Rebuild.
247 * configure: Rebuild.
248 * configure.ac: Don't check for stddef.h.
249 * defs.h: Unconditionally include stddef.h. Remove duplicate
250 inclusion.
251
252 2013-11-18 Tom Tromey <tromey@redhat.com>
253
254 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
255 * common/gdb_dirent.h: Remove.
256 * common/filestuff.c: Use dirent.h.
257 * common/linux-osdata.c: Use dirent.h.
258 (NAMELEN): Define.
259 * config.in: Rebuild.
260 * configure: Rebuild.
261 * configure.ac: Don't use AC_HEADER_DIRENT.
262 * linux-fork.c: Use dirent.h
263 * linux-nat.c: Use dirent.h.
264 * nto-procfs.c: Use dirent.h.
265 * procfs.c: Use dirent.h.
266
267 2013-11-18 Tom Tromey <tromey@redhat.com>
268
269 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
270 * gnulib/aclocal.m4: Update.
271 * gnulib/config.in: Update.
272 * gnulib/configure: Update.
273 * gnulib/import/Makefile.am: Update.
274 * gnulib/import/Makefile.in: Update.
275 * gnulib/import/dirent.in.h: New.
276 * gnulib/import/m4/dirent_h.m4: New.
277 * gnulib/import/m4/gnulib-cache.m4: Update.
278 * gnulib/import/m4/gnulib-comp.m4: Update.
279
280 2013-11-18 Tom Tromey <tromey@redhat.com>
281
282 * configure: Rebuild.
283 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
284 strings.h.
285
286 2013-11-18 Tom Tromey <tromey@redhat.com>
287
288 * common/gdb_string.h: Remove.
289 * aarch64-tdep.c: Use string.h, not gdb_string.h.
290 * ada-exp.y: Use string.h, not gdb_string.h.
291 * ada-lang.c: Use string.h, not gdb_string.h.
292 * ada-lex.l: Use string.h, not gdb_string.h.
293 * ada-typeprint.c: Use string.h, not gdb_string.h.
294 * ada-valprint.c: Use string.h, not gdb_string.h.
295 * aix-thread.c: Use string.h, not gdb_string.h.
296 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
297 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
298 * alpha-nat.c: Use string.h, not gdb_string.h.
299 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
300 * alpha-tdep.c: Use string.h, not gdb_string.h.
301 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
302 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
303 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
304 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
305 * amd64-nat.c: Use string.h, not gdb_string.h.
306 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
307 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
308 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
309 * arch-utils.c: Use string.h, not gdb_string.h.
310 * arm-linux-nat.c: Use string.h, not gdb_string.h.
311 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
312 * arm-tdep.c: Use string.h, not gdb_string.h.
313 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
314 * armbsd-tdep.c: Use string.h, not gdb_string.h.
315 * armnbsd-nat.c: Use string.h, not gdb_string.h.
316 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
317 * armobsd-tdep.c: Use string.h, not gdb_string.h.
318 * avr-tdep.c: Use string.h, not gdb_string.h.
319 * ax-gdb.c: Use string.h, not gdb_string.h.
320 * ax-general.c: Use string.h, not gdb_string.h.
321 * bcache.c: Use string.h, not gdb_string.h.
322 * bfin-tdep.c: Use string.h, not gdb_string.h.
323 * breakpoint.c: Use string.h, not gdb_string.h.
324 * build-id.c: Use string.h, not gdb_string.h.
325 * buildsym.c: Use string.h, not gdb_string.h.
326 * c-exp.y: Use string.h, not gdb_string.h.
327 * c-lang.c: Use string.h, not gdb_string.h.
328 * c-typeprint.c: Use string.h, not gdb_string.h.
329 * c-valprint.c: Use string.h, not gdb_string.h.
330 * charset.c: Use string.h, not gdb_string.h.
331 * cli-out.c: Use string.h, not gdb_string.h.
332 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
333 * cli/cli-decode.c: Use string.h, not gdb_string.h.
334 * cli/cli-dump.c: Use string.h, not gdb_string.h.
335 * cli/cli-interp.c: Use string.h, not gdb_string.h.
336 * cli/cli-logging.c: Use string.h, not gdb_string.h.
337 * cli/cli-script.c: Use string.h, not gdb_string.h.
338 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
339 * cli/cli-utils.c: Use string.h, not gdb_string.h.
340 * coffread.c: Use string.h, not gdb_string.h.
341 * common/common-utils.c: Use string.h, not gdb_string.h.
342 * common/filestuff.c: Use string.h, not gdb_string.h.
343 * common/linux-procfs.c: Use string.h, not gdb_string.h.
344 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
345 * common/signals.c: Use string.h, not gdb_string.h.
346 * common/vec.h: Use string.h, not gdb_string.h.
347 * core-regset.c: Use string.h, not gdb_string.h.
348 * corefile.c: Use string.h, not gdb_string.h.
349 * corelow.c: Use string.h, not gdb_string.h.
350 * cp-abi.c: Use string.h, not gdb_string.h.
351 * cp-support.c: Use string.h, not gdb_string.h.
352 * cp-valprint.c: Use string.h, not gdb_string.h.
353 * cris-tdep.c: Use string.h, not gdb_string.h.
354 * d-lang.c: Use string.h, not gdb_string.h.
355 * dbxread.c: Use string.h, not gdb_string.h.
356 * dcache.c: Use string.h, not gdb_string.h.
357 * demangle.c: Use string.h, not gdb_string.h.
358 * dicos-tdep.c: Use string.h, not gdb_string.h.
359 * disasm.c: Use string.h, not gdb_string.h.
360 * doublest.c: Use string.h, not gdb_string.h.
361 * dsrec.c: Use string.h, not gdb_string.h.
362 * dummy-frame.c: Use string.h, not gdb_string.h.
363 * dwarf2-frame.c: Use string.h, not gdb_string.h.
364 * dwarf2loc.c: Use string.h, not gdb_string.h.
365 * dwarf2read.c: Use string.h, not gdb_string.h.
366 * elfread.c: Use string.h, not gdb_string.h.
367 * environ.c: Use string.h, not gdb_string.h.
368 * eval.c: Use string.h, not gdb_string.h.
369 * event-loop.c: Use string.h, not gdb_string.h.
370 * exceptions.c: Use string.h, not gdb_string.h.
371 * exec.c: Use string.h, not gdb_string.h.
372 * expprint.c: Use string.h, not gdb_string.h.
373 * f-exp.y: Use string.h, not gdb_string.h.
374 * f-lang.c: Use string.h, not gdb_string.h.
375 * f-typeprint.c: Use string.h, not gdb_string.h.
376 * f-valprint.c: Use string.h, not gdb_string.h.
377 * fbsd-nat.c: Use string.h, not gdb_string.h.
378 * findcmd.c: Use string.h, not gdb_string.h.
379 * findvar.c: Use string.h, not gdb_string.h.
380 * fork-child.c: Use string.h, not gdb_string.h.
381 * frame.c: Use string.h, not gdb_string.h.
382 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
383 * frv-tdep.c: Use string.h, not gdb_string.h.
384 * gdb.c: Use string.h, not gdb_string.h.
385 * gdb_bfd.c: Use string.h, not gdb_string.h.
386 * gdbarch.c: Use string.h, not gdb_string.h.
387 * gdbtypes.c: Use string.h, not gdb_string.h.
388 * gnu-nat.c: Use string.h, not gdb_string.h.
389 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
390 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
391 * go-exp.y: Use string.h, not gdb_string.h.
392 * go-lang.c: Use string.h, not gdb_string.h.
393 * go32-nat.c: Use string.h, not gdb_string.h.
394 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
395 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
396 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
397 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
398 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
399 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
400 * i386-linux-nat.c: Use string.h, not gdb_string.h.
401 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
402 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
403 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
404 * i386-tdep.c: Use string.h, not gdb_string.h.
405 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
406 * i386gnu-nat.c: Use string.h, not gdb_string.h.
407 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
408 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
409 * i387-tdep.c: Use string.h, not gdb_string.h.
410 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
411 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
412 * inf-child.c: Use string.h, not gdb_string.h.
413 * inf-ptrace.c: Use string.h, not gdb_string.h.
414 * inf-ttrace.c: Use string.h, not gdb_string.h.
415 * infcall.c: Use string.h, not gdb_string.h.
416 * infcmd.c: Use string.h, not gdb_string.h.
417 * inflow.c: Use string.h, not gdb_string.h.
418 * infrun.c: Use string.h, not gdb_string.h.
419 * interps.c: Use string.h, not gdb_string.h.
420 * iq2000-tdep.c: Use string.h, not gdb_string.h.
421 * irix5-nat.c: Use string.h, not gdb_string.h.
422 * jv-exp.y: Use string.h, not gdb_string.h.
423 * jv-lang.c: Use string.h, not gdb_string.h.
424 * jv-typeprint.c: Use string.h, not gdb_string.h.
425 * jv-valprint.c: Use string.h, not gdb_string.h.
426 * language.c: Use string.h, not gdb_string.h.
427 * linux-fork.c: Use string.h, not gdb_string.h.
428 * linux-nat.c: Use string.h, not gdb_string.h.
429 * lm32-tdep.c: Use string.h, not gdb_string.h.
430 * m2-exp.y: Use string.h, not gdb_string.h.
431 * m2-typeprint.c: Use string.h, not gdb_string.h.
432 * m32c-tdep.c: Use string.h, not gdb_string.h.
433 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
434 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
435 * m32r-rom.c: Use string.h, not gdb_string.h.
436 * m32r-tdep.c: Use string.h, not gdb_string.h.
437 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
438 * m68k-tdep.c: Use string.h, not gdb_string.h.
439 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
440 * m68klinux-nat.c: Use string.h, not gdb_string.h.
441 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
442 * m88k-tdep.c: Use string.h, not gdb_string.h.
443 * macrocmd.c: Use string.h, not gdb_string.h.
444 * main.c: Use string.h, not gdb_string.h.
445 * mdebugread.c: Use string.h, not gdb_string.h.
446 * mem-break.c: Use string.h, not gdb_string.h.
447 * memattr.c: Use string.h, not gdb_string.h.
448 * memory-map.c: Use string.h, not gdb_string.h.
449 * mep-tdep.c: Use string.h, not gdb_string.h.
450 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
451 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
452 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
453 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
454 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
455 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
456 * mi/mi-console.c: Use string.h, not gdb_string.h.
457 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
458 * mi/mi-interp.c: Use string.h, not gdb_string.h.
459 * mi/mi-main.c: Use string.h, not gdb_string.h.
460 * mi/mi-parse.c: Use string.h, not gdb_string.h.
461 * microblaze-rom.c: Use string.h, not gdb_string.h.
462 * microblaze-tdep.c: Use string.h, not gdb_string.h.
463 * mingw-hdep.c: Use string.h, not gdb_string.h.
464 * minidebug.c: Use string.h, not gdb_string.h.
465 * minsyms.c: Use string.h, not gdb_string.h.
466 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
467 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
468 * mips-tdep.c: Use string.h, not gdb_string.h.
469 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
470 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
471 * mipsread.c: Use string.h, not gdb_string.h.
472 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
473 * mn10300-tdep.c: Use string.h, not gdb_string.h.
474 * monitor.c: Use string.h, not gdb_string.h.
475 * moxie-tdep.c: Use string.h, not gdb_string.h.
476 * mt-tdep.c: Use string.h, not gdb_string.h.
477 * nbsd-tdep.c: Use string.h, not gdb_string.h.
478 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
479 * nto-procfs.c: Use string.h, not gdb_string.h.
480 * nto-tdep.c: Use string.h, not gdb_string.h.
481 * objc-lang.c: Use string.h, not gdb_string.h.
482 * objfiles.c: Use string.h, not gdb_string.h.
483 * opencl-lang.c: Use string.h, not gdb_string.h.
484 * osabi.c: Use string.h, not gdb_string.h.
485 * osdata.c: Use string.h, not gdb_string.h.
486 * p-exp.y: Use string.h, not gdb_string.h.
487 * p-lang.c: Use string.h, not gdb_string.h.
488 * p-typeprint.c: Use string.h, not gdb_string.h.
489 * parse.c: Use string.h, not gdb_string.h.
490 * posix-hdep.c: Use string.h, not gdb_string.h.
491 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
492 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
493 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
494 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
495 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
496 * printcmd.c: Use string.h, not gdb_string.h.
497 * procfs.c: Use string.h, not gdb_string.h.
498 * prologue-value.c: Use string.h, not gdb_string.h.
499 * python/py-auto-load.c: Use string.h, not gdb_string.h.
500 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
501 * ravenscar-thread.c: Use string.h, not gdb_string.h.
502 * regcache.c: Use string.h, not gdb_string.h.
503 * registry.c: Use string.h, not gdb_string.h.
504 * remote-fileio.c: Use string.h, not gdb_string.h.
505 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
506 * remote-mips.c: Use string.h, not gdb_string.h.
507 * remote-sim.c: Use string.h, not gdb_string.h.
508 * remote.c: Use string.h, not gdb_string.h.
509 * reverse.c: Use string.h, not gdb_string.h.
510 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
511 * ser-base.c: Use string.h, not gdb_string.h.
512 * ser-go32.c: Use string.h, not gdb_string.h.
513 * ser-mingw.c: Use string.h, not gdb_string.h.
514 * ser-pipe.c: Use string.h, not gdb_string.h.
515 * ser-tcp.c: Use string.h, not gdb_string.h.
516 * ser-unix.c: Use string.h, not gdb_string.h.
517 * serial.c: Use string.h, not gdb_string.h.
518 * sh-tdep.c: Use string.h, not gdb_string.h.
519 * sh64-tdep.c: Use string.h, not gdb_string.h.
520 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
521 * skip.c: Use string.h, not gdb_string.h.
522 * sol-thread.c: Use string.h, not gdb_string.h.
523 * solib-dsbt.c: Use string.h, not gdb_string.h.
524 * solib-frv.c: Use string.h, not gdb_string.h.
525 * solib-osf.c: Use string.h, not gdb_string.h.
526 * solib-spu.c: Use string.h, not gdb_string.h.
527 * solib-target.c: Use string.h, not gdb_string.h.
528 * solib.c: Use string.h, not gdb_string.h.
529 * somread.c: Use string.h, not gdb_string.h.
530 * source.c: Use string.h, not gdb_string.h.
531 * sparc-nat.c: Use string.h, not gdb_string.h.
532 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
533 * sparc-tdep.c: Use string.h, not gdb_string.h.
534 * sparc64-tdep.c: Use string.h, not gdb_string.h.
535 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
536 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
537 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
538 * spu-linux-nat.c: Use string.h, not gdb_string.h.
539 * spu-multiarch.c: Use string.h, not gdb_string.h.
540 * spu-tdep.c: Use string.h, not gdb_string.h.
541 * stabsread.c: Use string.h, not gdb_string.h.
542 * stack.c: Use string.h, not gdb_string.h.
543 * std-regs.c: Use string.h, not gdb_string.h.
544 * symfile.c: Use string.h, not gdb_string.h.
545 * symmisc.c: Use string.h, not gdb_string.h.
546 * symtab.c: Use string.h, not gdb_string.h.
547 * target.c: Use string.h, not gdb_string.h.
548 * thread.c: Use string.h, not gdb_string.h.
549 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
550 * tilegx-tdep.c: Use string.h, not gdb_string.h.
551 * top.c: Use string.h, not gdb_string.h.
552 * tracepoint.c: Use string.h, not gdb_string.h.
553 * tui/tui-command.c: Use string.h, not gdb_string.h.
554 * tui/tui-data.c: Use string.h, not gdb_string.h.
555 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
556 * tui/tui-file.c: Use string.h, not gdb_string.h.
557 * tui/tui-layout.c: Use string.h, not gdb_string.h.
558 * tui/tui-out.c: Use string.h, not gdb_string.h.
559 * tui/tui-regs.c: Use string.h, not gdb_string.h.
560 * tui/tui-source.c: Use string.h, not gdb_string.h.
561 * tui/tui-stack.c: Use string.h, not gdb_string.h.
562 * tui/tui-win.c: Use string.h, not gdb_string.h.
563 * tui/tui-windata.c: Use string.h, not gdb_string.h.
564 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
565 * typeprint.c: Use string.h, not gdb_string.h.
566 * ui-file.c: Use string.h, not gdb_string.h.
567 * ui-out.c: Use string.h, not gdb_string.h.
568 * user-regs.c: Use string.h, not gdb_string.h.
569 * utils.c: Use string.h, not gdb_string.h.
570 * v850-tdep.c: Use string.h, not gdb_string.h.
571 * valarith.c: Use string.h, not gdb_string.h.
572 * valops.c: Use string.h, not gdb_string.h.
573 * valprint.c: Use string.h, not gdb_string.h.
574 * value.c: Use string.h, not gdb_string.h.
575 * varobj.c: Use string.h, not gdb_string.h.
576 * vax-tdep.c: Use string.h, not gdb_string.h.
577 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
578 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
579 * windows-nat.c: Use string.h, not gdb_string.h.
580 * xcoffread.c: Use string.h, not gdb_string.h.
581 * xml-support.c: Use string.h, not gdb_string.h.
582 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
583 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
584
585 2013-11-18 Tom Tromey <tromey@redhat.com>
586
587 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
588 and strstr.
589 * gnulib/aclocal.m4: Update.
590 * gnulib/config.in: Update.
591 * gnulib/configure: Update.
592 * gnulib/import/Makefile.am: Update.
593 * gnulib/import/Makefile.in: Update.
594 * gnulib/import/errno.in.h: New.
595 * gnulib/import/intprops.h: New.
596 * gnulib/import/m4/errno_h.m4: New.
597 * gnulib/import/m4/gnulib-cache.m4: Update.
598 * gnulib/import/m4/gnulib-comp.m4: Update.
599 * gnulib/import/m4/strerror.m4: New.
600 * gnulib/import/m4/strstr.m4: New.
601 * gnulib/import/m4/sys_socket_h.m4: New.
602 * gnulib/import/strerror-override.c: New.
603 * gnulib/import/strerror-override.h: New.
604 * gnulib/import/strerror.c: New.
605 * gnulib/import/strstr.c: New.
606
607 2013-11-18 Tom Tromey <tromey@redhat.com>
608
609 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
610 multiple lines.
611
612 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
613
614 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
615 * sparc-tdep.h: And its prototype.
616
617 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
618 function.
619 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
620
621 2013-11-18 Pedro Alves <palves@redhat.com>
622
623 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
624 use unpack_pointer.
625
626 2013-11-18 Joel Brobecker <brobecker@adacore.com>
627
628 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
629 to -list-features output.
630
631 2013-11-17 Joel Brobecker <brobecker@adacore.com>
632
633 * dwarf2expr.h (struct dwarf_expr_context_funcs)
634 <read_addr_from_reg>: Renames "read_reg".
635 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
636 Adjust comment.
637 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
638 Use read_addr_from_reg in place of read_reg.
639 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
640 in place of read_reg.
641 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
642 dwarf_expr_read_reg.
643 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
644 with dwarf_expr_read_addr_from_reg.
645 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
646 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
647 needs_frame_read_addr_from_reg.
648
649 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
650
651 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
652
653 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
654
655 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
656 NULL.
657
658 2013-11-15 Tom Tromey <tromey@redhat.com>
659
660 PR c++/16117:
661 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
662 (classify_name): Likewise. Prefer a field of "this" over a
663 filename.
664 (classify_inner_name, yylex): Update.
665
666 2013-11-15 Joel Brobecker <brobecker@adacore.com>
667
668 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
669 Extend the documentation a bit.
670 <get_reg_value>: New field.
671 * dwarf2loc.c (dwarf_expr_get_reg_value)
672 (needs_frame_get_reg_value): New functions.
673 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
674 callback.
675 * dwarf2-frame.c (get_reg_value): New function.
676 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
677 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
678 Use new callback to compute result_val.
679
680 2013-11-15 Alan Modra <amodra@gmail.com>
681
682 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
683 (ppc64_desc_entry_point): ..this. Update comments here and at
684 call points.
685 (ppc64_standard_linkage1, ppc64_standard_linkage2,
686 ppc64_standard_linkage3): Update comments.
687 (ppc64_standard_linkage4, ppc64_standard_linkage5,
688 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
689 patterns.
690 (ppc64_standard_linkage4_target): New function.
691 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
692 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
693 nop match. Fix comment wrap.
694
695 2013-11-14 Pedro Alves <palves@redhat.com>
696
697 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
698 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
699
700 2013-11-14 Pedro Alves <palves@redhat.com>
701
702 * infrun.c (struct execution_control_state)
703 <stepped_after_stopped_by_watchpoint>: New field.
704 (get_inferior_stop_soon): New function.
705 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
706 moved to struct execution_control_state -- adjust. Use
707 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
708 new function.
709 (handle_signal_stop): New function, factored out from
710 handle_inferior_event.
711
712 2013-11-14 Pedro Alves <palves@redhat.com>
713
714 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
715 return a boolean.
716 * breakpoint.c (bpstat_explains_signal): Adjust to return a
717 boolean.
718 (explains_signal_watchpoint, base_breakpoint_explains_signal):
719 Adjust to return a boolean.
720 * breakpoint.h (enum bpstat_signal_value): Delete.
721 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
722 (bpstat_explains_signal): Likewise.
723 * infrun.c (handle_inferior_event) <random signal checks>:
724 bpstat_explains_signal now returns a boolean - adjust. No longer
725 consider hiding signals.
726
727 2013-11-14 Pedro Alves <palves@redhat.com>
728
729 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
730 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
731 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
732 BPSTAT_SIGNAL_HIDE.
733 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
734 instead of BPSTAT_SIGNAL_HIDE.
735 * infrun.c (handle_inferior_event): Rework random signal checks.
736
737 2013-11-14 Pedro Alves <palves@redhat.com>
738
739 * infrun.c (struct execution_control_state): Remove
740 'random_signal' field.
741 (handle_syscall_event): Use bpstat_causes_stop instead of
742 bpstat_explains_signal. Don't set ecs->random_signal.
743 (handle_inferior_event): New 'random_signal' local.
744 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
745 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
746 bpstat_explains_signal. Don't set ecs->random_signal.
747 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
748 ecs->random_signal.
749
750 2013-11-14 Pedro Alves <palves@redhat.com>
751
752 * infrun.c (handle_inferior_event): Move comment from the
753 function's body to the function's description, adjusted.
754
755 2013-11-14 Pedro Alves <palves@redhat.com>
756
757 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
758 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
759 Assert we never fall through out of the TARGET_WAITKIND_LOADED
760 case.
761
762 2013-11-14 Tom Tromey <tromey@redhat.com>
763
764 * python/py-linetable.c (ltpy_has_line)
765 (ltpy_get_all_source_lines): Fix loop termination condition.
766
767 2013-11-14 Joel Brobecker <brobecker@adacore.com>
768
769 * mi/mi-parse.h (struct mi_parse) <language>: New field.
770 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
771 PARSE->LANGUAGE during command execution, if set.
772 * mi/mi-parse.c: Add "language.h" #include.
773 (mi_parse): Add parsing of "--language" command option.
774
775 * NEWS: Add entry mentioning the new "--language" command option.
776
777 2013-11-14 Pedro Alves <palves@redhat.com>
778 Joel Brobecker <brobecker@adacore.com>
779
780 * cli/cli-utils.h (extract_arg_const): Add declaration.
781 * cli/cli-utils.c (extract_arg_const): New function.
782 (extract_arg): Reimplement using extract_arg_const.
783
784 2013-11-14 Joel Brobecker <brobecker@adacore.com>
785
786 * language.h: Add "symtab.h" #include.
787
788 2013-11-13 Doug Evans <xdje42@gmail.com>
789
790 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
791 specific breakpoints, don't evaluate breakpoint condition if
792 different thread.
793
794 2013-11-13 Keith Seitz <keiths@redhat.com>
795
796 PR c++/7935
797 PR c++/10541
798 * cp-support.c (insepct_type): Add support for substituting
799 namespace aliases, too.
800 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
801 for DW_TAG_imported_declaration.
802 (add_partial_symbol): Likewise.
803 (process_die): Handle namespace aliases with
804 read_namespace_alias.
805 (die_needs_namespace): Add DW_TAG_imported_declaration.
806 (read_namespace_alias): New function.
807 (load_partial_dies): Load DW_TAG_imported_declaration, too.
808 (new_symbol_full): Handle DW_TAG_imported_declaration.
809
810 2013-11-13 Keith Seitz <keiths@redhat.com>
811
812 * p-exp.y (uptok): Make first parameter const.
813 (yylex): Make `tokstart' and `tokptr' const.
814 Don't copy the lexer input to a temporary buffer.
815 Make `p' const.
816 Remove const workaround for parse_escape.
817 Create a temporary buffer for a convenience variable instead
818 of doing in-place modification of the input.
819 If a match is found with a different case from the input,
820 do not change the input at all.
821 Use `tmp' to construct the resultant stoken instead of
822 `tokstart'.
823
824 2013-11-13 Doug Evans <xdje42@gmail.com>
825
826 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
827
828 2013-11-13 Joel Brobecker <brobecker@adacore.com>
829
830 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
831 entry with "ada-exceptions".
832
833 2013-11-13 Joel Brobecker <brobecker@adacore.com>
834
835 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
836 after re-initialization of OBJFILE's obstack.
837
838 2013-11-12 Doug Evans <xdje42@gmail.com>
839
840 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
841 bs->stop != 0 on entry. Update function comment. Simplify early
842 exit for frame mismatch. Reindent rest of function.
843
844 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
845
846 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
847 NULL.
848
849 2013-11-12 Doug Evans <dje@google.com>
850
851 Work around gold/15646.
852 * dwarf2read.c (read_index_from_section): Update comment.
853 (struct dw2_symtab_iterator): New member global_seen.
854 (dw2_symtab_iter_init): Initialize it.
855 (dw2_symtab_iter_next): Skip duplicate global symbols.
856 (dw2_expand_symtabs_matching): Ditto.
857
858 2013-11-12 Joel Brobecker <brobecker@adacore.com>
859
860 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
861 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
862 command.
863 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
864 (mi_cmd_info_ada_exceptions): New function.
865 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
866
867 2013-11-12 Joel Brobecker <brobecker@adacore.com>
868
869 * ada-lang.h: #include "vec.h".
870 (struct ada_exc_info): New.
871 (ada_exc_info): New typedef.
872 (DEF_VEC_O(ada_exc_info)): New vector.
873 (ada_exceptions_list): Add declaration.
874 * ada-lang.c (ada_is_exception_sym)
875 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
876 (sort_remove_dups_ada_exceptions_list)
877 (ada_exc_search_name_matches, ada_add_standard_exceptions)
878 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
879 (ada_exceptions_list_1, ada_exceptions_list)
880 (info_exceptions_command): New function.
881 (_initialize_ada_language): Add "info exception" command.
882
883 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
884
885 PR python/15629
886 * NEWS: Add linetable feature.
887 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
888 * python/py-linetable.c: New file.
889 * python/py-symtab.c (stpy_get_linetable): New function.
890 * python/python-internal.h (symtab_to_linetable_object): Declare.
891 (gdbpy_initialize_linetable): Ditto.
892 * python/python.c (_initialize_python): Call
893 gdbpy_initialize_linetable.
894
895 2013-11-11 Joel Brobecker <brobecker@adacore.com>
896
897 * ada-lang.c (create_ada_exception_catchpoint): Enhance
898 the documentation of fields "except_string" and "condition".
899 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
900 CONDITION on the heap before passing it to
901 create_ada_exception_catchpoint.
902 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
903 CONDITION.
904
905 2013-11-11 Tom Tromey <tromey@redhat.com>
906
907 * config.in, configure: Rebuild.
908 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
909
910 2013-11-11 Joel Brobecker <brobecker@adacore.com>
911
912 * remote-sim.c (gdbsim_detach): Break declaration into
913 shorter lines. No code change.
914
915 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
916
917 * remote-sim.c (gdbsim_detach): Fix prototype.
918
919 2013-11-08 Doug Evans <dje@google.com>
920
921 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
922 (create_debug_types_hash_table): Only print debugging messages for
923 each TU if dwarf2-read >= 2.
924 (process_queue): Ditto.
925 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
926 Update doc string.
927
928 2013-11-08 Tom Tromey <tromey@redhat.com>
929
930 * configure: Rebuild.
931 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
932
933 2013-11-08 Tom Tromey <tromey@redhat.com>
934
935 * configure, config.in: Rebuild.
936 * configure.ac: Remove unused configury.
937
938 2013-11-08 Tom Tromey <tromey@redhat.com>
939
940 * m32c-tdep.c: Use gdb_string.h.
941
942 2013-11-08 Tom Tromey <tromey@redhat.com>
943
944 * configure, config.in: Rebuild.
945 * configure.ac: Remove all link.h-related checks.
946
947 2013-11-08 Tom Tromey <tromey@redhat.com>
948
949 * acinclude.m4: Include common.m4.
950 * common/common.m4: New file.
951 * configure, config.in: Rebuild.
952 * configure.ac: Use GDB_AC_COMMON.
953
954 2013-11-08 Doug Evans <dje@google.com>
955
956 * NEWS: Mention that "set debug symtab-create" now accepts a
957 verbosity level.
958 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
959 to set the symtab's primary flag.
960 * jit.c (finalize_symtab): Ditto.
961 * mdebugread.c (psymtab_to_symtab_1): Ditto.
962 * symfile.c (allocate_symtab): Only print debugging messages for
963 symtab_create_debug levels 2 and higher.
964 * symtab.c (symtab_create_debug): Change type to unsigned int.
965 (set_symtab_primary): New function.
966 (_initialize_symtab): Change "set debug symtab-create" to a
967 zuinteger option.
968 * symtab.h (set_symtab_primary): Declare.
969 (symtab_create_debug): Update decl.
970
971 2013-11-08 Tom Tromey <tromey@redhat.com>
972
973 * aix-thread.c (aix_thread_detach): Update.
974 * corelow.c (core_detach): Update.
975 * darwin-nat.c (darwin_detach): Update.
976 * dec-thread.c (dec_thread_detach): Update.
977 * gnu-nat.c (gnu_detach): Update.
978 * go32-nat.c (go32_detach): Update.
979 * inf-ptrace.c (inf_ptrace_detach): Update.
980 * inf-ttrace.c (inf_ttrace_detach): Update.
981 * linux-fork.c (linux_fork_detach): Update.
982 * linux-fork.h (linux_fork_detach): Update.
983 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
984 local for const-correctness.
985 * linux-thread-db.c (thread_db_detach): Update.
986 * monitor.c (monitor_detach): Update.
987 * nto-procfs.c (procfs_detach): Update.
988 * procfs.c (procfs_detach): Update.
989 * record.c (record_detach): Update.
990 * record.h (record_detach): Update.
991 * remote-m32r-sdi.c (m32r_detach): Update.
992 * remote-mips.c (mips_detach): Update.
993 * remote-sim.c (gdbsim_detach): Update.
994 * remote.c (remote_detach_1, remote_detach)
995 (extended_remote_detach): Update.
996 * sol-thread.c (sol_thread_detach): Update.
997 * target.c (target_detach): Make "args" const.
998 (init_dummy_target): Update.
999 * target.h (struct target_ops) <to_detach>: Make argument const.
1000 (target_detach): Likewise.
1001 * windows-nat.c (windows_detach): Update.
1002
1003 2013-11-07 Doug Evans <dje@google.com>
1004
1005 PR 11786
1006 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1007 and align fields for PT_GNU_RELRO segments.
1008
1009 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1010
1011 PR python/15747
1012 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1013
1014 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1015
1016 * NEWS: Document Python temporary breakpoint support.
1017 * python/py-breakpoint.c (bppy_get_temporary): New function.
1018 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1019 to temporary if True.
1020
1021 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1022
1023 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1024 removed to allow analyzing unconditional branch instructions
1025 with PC-relative offsets of zero.
1026
1027 2013-11-07 Yao Qi <yao@codesourcery.com>
1028
1029 * mi/mi-cmd-var.c: Include "language.h".
1030 (mi_cmd_var_info_expression): Get language name from
1031 language_defn.
1032 * varobj.c (varobj_language_string): Remove.
1033 (variable_language): Remove declaration.
1034 (languages): Remove.
1035 (varobj_get_language): Change the type of return value.
1036 (variable_language): Remove.
1037 * varobj.h (enum varobj_languages): Remove.
1038 (varobj_language_string): Remove declaration.
1039 (varobj_get_language): Update declaration.
1040
1041 2013-11-07 Yao Qi <yao@codesourcery.com>
1042
1043 * language.h (struct language_defn) <la_natural_name>: New
1044 field.
1045 * ada-lang.c (ada_language_defn): Initialize field
1046 'la_natural_name'.
1047 * c-lang.c (c_language_defn): Likewise.
1048 (cplus_language_defn, asm_language_defn): Likewise.
1049 * d-lang.c (d_language_defn): Likewise.
1050 * f-lang.c (f_language_defn): Likewise.
1051 * go-lang.c (go_language_defn): Likewise.
1052 * jv-lang.c (java_language_defn): Likewise.
1053 * language.c (unknown_language_defn ): Likewise.
1054 (auto_language_defn): Likewise.
1055 * m2-lang.c (m2_language_defn): Likewise.
1056 * objc-lang.c (objc_language_defn): Likewise.
1057 * opencl-lang.c (opencl_language_defn): Likewise.
1058 * p-lang.c (pascal_language_defn): Likewise.
1059
1060 2013-11-07 Yao Qi <yao@codesourcery.com>
1061
1062 * language.c (language_str): Return const char *.
1063 (add_language): Add const to 'language_names'
1064 * language.h (struct language_defn) <la_name>: Add const.
1065 (language_str: Update declaration.
1066
1067 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1068
1069 * s390-linux-nat.c (s390_read_description): Consider the TE field
1070 in the HWCAP for determining 'have_regset_tdb'.
1071
1072 2013-11-06 Will Newton <will.newton@linaro.org>
1073
1074 PR gdb/12866
1075 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1076 values. (read_partial_die): Likewise.
1077
1078 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1079
1080 PR cli/16122
1081 * top.c (command_line_input): Unify interactivity tests to use
1082 input_from_terminal_p.
1083 * event-top.c (command_line_handler): Likewise.
1084
1085 2013-11-06 Yao Qi <yao@codesourcery.com>
1086
1087 * Makefile.in (check-perf): New target.
1088
1089 2013-11-05 Will Newton <will.newton@linaro.org>
1090
1091 PR gdb/7670
1092 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1093 (arm_print_float_info): Likewise.
1094
1095 2013-11-04 Anton Blanchard <anton@samba.org>
1096
1097 * target.c (memory_xfer_partial): Cap write to 4KB.
1098
1099 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1100
1101 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1102 probe scan even when the arch provides no get_longjmp_target.
1103
1104 2013-10-31 Pedro Alves <palves@redhat.com>
1105
1106 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1107 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1108 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1109 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1110 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1111 <bpstat handling>: If the bpstat chain wants the signal to be
1112 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1113 GDB_SIGNAL_TRAP.
1114
1115 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1116
1117 * breakpoint.c (update_watchpoint): Update error message and add
1118 an additional error message.
1119
1120 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1121
1122 * s390-tdep.h: Rename to...
1123 * s390-linux-tdep.h: ...here.
1124 * s390-tdep.c: Rename to...
1125 * s390-linux-tdep.c: ...here. Adjust #include.
1126 * s390-nat.c: Rename to...
1127 * s390-linux-nat.c: ...here. Adjust #include.
1128 * config/s390/s390.mh: Rename to...
1129 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1130 s390-linux-nat.o.
1131 * configure.host: Reflect host rename "s390" -> "linux".
1132 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1133 * Makefile.in (ALL_TARGET_OBS): Likewise.
1134 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1135 s390-linux-tdep.h.
1136 (ALLDEPFILES): Reflect rename of .c files.
1137
1138 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1139
1140 * s390-nat.c: Whitespace cleanup.
1141 * s390-tdep.c: Likewise.
1142 * s390-tdep.h: Remove empty line at end of file.
1143
1144 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1145
1146 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1147 siginfo_size.
1148
1149 2013-10-29 Tom Tromey <tromey@redhat.com>
1150
1151 * utils.c (reg): Move undefinition...
1152 * gdb_curses.h: ... here. Update comment to mention AIX.
1153
1154 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1155
1156 * exec.h (add_target_sections_of_objfile): New declaration.
1157 * exec.c (add_target_sections_of_objfile): New function.
1158 * symfile.c (add_symbol_file_command): Update current target sections.
1159 (remove_symbol_file_command): New command.
1160 (symfile_free_objfile): New function.
1161 (_initialize_symfile): Register observer for free_objfile events.
1162 * NEWS: Add description of the remove-symbol-file command.
1163 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1164 * objfiles.c (free_objfile): Notify free_objfile.
1165 (is_addr_in_objfile): New function.
1166 * objfiles.h (is_addr_in_objfile): New declaration.
1167 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1168 events instead of solib_unloaded events.
1169 (_initialize_printcmd): Register observer for free_objfile instead
1170 of solib_unloaded notifications.
1171 * solib.c (remove_user_added_objfile): New function.
1172 (_initialize_symfile): Add remove-symbol-file.
1173
1174 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1175
1176 * infcmd.c (default_print_one_register_info): Use val_print to
1177 print all values even optimized out or unavailable ones. Don't
1178 try to print a raw form of optimized out or unavailable values.
1179
1180 2013-10-29 Yao Qi <yao@codesourcery.com>
1181
1182 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1183 parameter 'arg' instead of from program_space_data.
1184 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1185 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1186 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1187 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1188 * inflow.c (inflow_inferior_data_cleanup): Get data from
1189 parameter 'arg' instead of inferior_data.
1190 * registry.h: Add comments.
1191
1192 2013-10-28 Pedro Alves <palves@redhat.com>
1193
1194 * breakpoint.c (watchpoints_triggered)
1195 <!target_stopped_data_address>: Hardcode return 1.
1196
1197 2013-10-28 Pedro Alves <palves@redhat.com>
1198
1199 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1200 level and reindent.
1201
1202 2013-10-28 Pedro Alves <palves@redhat.com>
1203
1204 * infrun.c (process_event_stop_test): New function, factored out
1205 from handle_inferior_event.
1206 (handle_inferior_event): 'process_event_stop_test' is now a
1207 function instead of a goto label -- adjust.
1208
1209 2013-10-28 Pedro Alves <palves@redhat.com>
1210
1211 * infrun.c (handle_inferior_event): Move process_event_stop_test
1212 goto label to the else branch of the ecs->random_signal check,
1213 along with FRAME and GDBARCH re-fetching.
1214
1215 2013-10-28 Pedro Alves <palves@redhat.com>
1216
1217 * infrun.c (switch_back_to_stepped_thread): New function, factored
1218 out from handle_inferior_event.
1219 (handle_inferior_event): Adjust to call
1220 switch_back_to_stepped_thread. Call it also at the tail of the
1221 random signal handling, and return, instead of also handling
1222 random signals just before the stepping tests.
1223
1224 2013-10-28 Pedro Alves <palves@redhat.com>
1225
1226 * infrun.c (clear_stop_func): Delete.
1227 (handle_inferior_event): Don't call clear_stop_func and don't
1228 clear 'ecs->random_signal'.
1229
1230 2013-10-27 Yao Qi <yao@codesourcery.com>
1231
1232 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1233 (varobj_create, varobj_get_path_expr): Update.
1234 (varobj_value_has_mutated, varobj_update): Likewise.
1235 (create_child_with_value, new_root_variable): Likewise.
1236 (number_of_children, name_of_variable): Likewise.
1237 (value_of_child, my_value_of_variable): Likewise.
1238 (varobj_value_is_changeable_p): Likewise.
1239
1240 2013-10-25 Yao Qi <yao@codesourcery.com>
1241
1242 * language.h (struct lang_varobj_ops): Declare.
1243 (struct language_defn) <la_varobj_ops>: New field.
1244 * ada-lang.c: Include "varobj.h"
1245 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1246 ada_varobj_ops.
1247 * c-lang.c: Include "varobj.h"
1248 (c_language_defn): Initialize field 'la_varobj_ops' with
1249 c_varobj_ops.
1250 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1251 cplus_varobj_ops.
1252 (asm_language_defn): Initialize field 'la_varobj_ops' with
1253 default_varobj_ops.
1254 (minimal_language_defn): Likewise.
1255 * d-lang.c (d_language_defn): Likewise.
1256 * f-lang.c (f_language_defn): Likewise.
1257 * go-lang.c (go_language_defn): Likewise.
1258 * m2-lang.c (m2_language_defn): Likewise.
1259 * objc-lang.c (objc_language_defn): Likewise.
1260 * opencl-lang.c (opencl_language_defn): Likewise.
1261 * p-lang.c (pascal_language_defn): Likewise.
1262 * language.c (unknown_language_defn): Likewise.
1263 (auto_language_defn): Likewise.
1264 (local_language_defn): Likewise.
1265 * jv-lang.c (java_language_defn): Initialize field
1266 'la_varobj_ops' with java_varobj_ops.
1267 * varobj.c (varobj_create): Update.
1268 * varobj.h (default_varobj_ops): Define macro.
1269
1270 2013-10-25 Pedro Alves <palves@redhat.com>
1271
1272 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1273 static field value.
1274 (cp_print_static_field): If the value is entirely optimized out,
1275 print <optimized out> here.
1276 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1277 static field value.
1278 * p-valprint.c (pascal_object_print_static_field): If the value is
1279 entirely optimized out, print <optimized out> here.
1280 * valops.c (do_search_struct_field)
1281 (value_struct_elt_for_reference): No longer handle a NULL static
1282 field value.
1283 * value.c (value_static_field): Return an optimized out value
1284 instead of NULL.
1285
1286 2013-10-25 Yao Qi <yao@codesourcery.com>
1287
1288 * remote.c (remote_traceframe_info): Return early if
1289 traceframe is not selected.
1290
1291 2013-10-25 Yao Qi <yao@codesourcery.com>
1292
1293 * tracepoint.c (traceframe_fun): Remove.
1294 (traceframe_sal): Remove.
1295 (set_traceframe_context): Add local variables.
1296
1297 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1298
1299 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1300 and parameter name.
1301
1302 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1303
1304 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1305 failure from register information collection.
1306
1307 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1308
1309 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1310 member.
1311 (linux_corefile_thread_callback): Update accordingly.
1312 (linux_make_corefile_notes): Likewise.
1313
1314 2013-10-24 Pedro Alves <palves@redhat.com>
1315
1316 * NEWS (New options): Mention set/show startup-with-shell.
1317 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1318 instead of 3.
1319 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1320 startup-with-shell'.
1321 (show_startup_with_shell): New function.
1322 (_initialize_fork_child): Register the set/show startup-with-shell
1323 commands.
1324 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1325 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1326 * procfs.c (procfs_init_inferior): Remove comment.
1327 * infcmd.c (startup_with_shell): New global.
1328 * inferior.h (startup_with_shell): Declare global.
1329 (STARTUP_WITH_SHELL): Delete.
1330 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1331
1332 2013-10-23 Pedro Alves <palves@redhat.com>
1333
1334 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1335 * common/signals.c: Include "gdb_assert.h".
1336 (signals): New field 'symbol'.
1337 (SET): Use the 'symbol' parameter.
1338 (gdb_signal_to_symbol_string): New function.
1339 * infrun.c (handle_inferior_event) <random signal>: In debug
1340 output, print the random signal enum as string in addition to its
1341 number.
1342 * target/waitstatus.c (target_waitstatus_to_string): Print the
1343 signal's enum value as string instead of the (POSIX) signal name.
1344
1345 2013-10-23 Gary Benson <gbenson@redhat.com>
1346
1347 PR 16013
1348 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1349 from 32 to 18. Adjusted fscanf format string accordingly.
1350 (Avoids leaving cmd unterminated.)
1351 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1352 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1353 that local_address and remote_address will not overflow.
1354 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1355 leaving dependencies unterminated. Parse size as "%u" to match
1356 definition.
1357
1358 2013-10-22 Pedro Alves <palves@redhat.com>
1359
1360 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1361 set ecs->random signal.
1362
1363 2013-10-22 Pedro Alves <palves@redhat.com>
1364
1365 * infrun.c (keep_going): Update comments.
1366
1367 2013-10-22 Pedro Alves <palves@redhat.com>
1368
1369 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1370 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1371
1372 2013-10-22 Pedro Alves <palves@redhat.com>
1373
1374 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1375 GDB_EXC_BAD_ACCESS.
1376 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1377 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1378 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1379 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1380 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1381 (GDB_SIGNAL_LAST): Change description string.
1382 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1383 Adjust to signal renaming.
1384 * darwin-nat.c (darwin_decode_message): Likewise.
1385
1386 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1387
1388 * MAINTAINERS (Write After Approval): Add myself to the list.
1389
1390 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1391
1392 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1393 forced off, downgrade them to software watchpoints if possible,
1394 and error out if not possible.
1395 (watch_command_1): Move watchpoint type selection closer to
1396 watchpoint creation, and extend the comments.
1397
1398 2013-10-18 Pedro Alves <palves@redhat.com>
1399
1400 PR gdb/16062
1401 * infrun.c (handle_inferior_event): Keep going if we got a random
1402 signal we should not stop for, instead of falling through to the
1403 step tests.
1404
1405 2013-10-18 Yao Qi <yao@codesourcery.com>
1406
1407 * c-varobj.c (cplus_number_of_children): Fix indentation.
1408
1409 2013-10-17 Tom Tromey <tromey@redhat.com>
1410
1411 PR gdb/15995:
1412 * printcmd.c (printcmd): Call gdb_flush.
1413
1414 2013-10-17 Tom Tromey <tromey@redhat.com>
1415
1416 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1417 (elf_locate_sections): Update.
1418
1419 2013-10-17 Yao Qi <yao@codesourcery.com>
1420
1421 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1422 * ada-varobj.c: Remove the include of ada-varobj.h.
1423 (ada_varobj_get_number_of_children): Declare.
1424 (ada_varobj_get_name_of_child): Make it static.
1425 (ada_varobj_get_path_expr_of_child): Likewise.
1426 (ada_varobj_get_value_of_child): Likewise.
1427 (ada_varobj_get_type_of_child): Likewise.
1428 (ada_varobj_get_value_of_array_variable): Likewise.
1429 * ada-varobj.h: Remove.
1430
1431 2013-10-17 Yao Qi <yao@codesourcery.com>
1432
1433 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1434 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1435 * ada-varobj.c: Include "varobj.h".
1436 (ada_number_of_children): New. Moved from varobj.c.
1437 (ada_name_of_variable, ada_name_of_child): Likewise.
1438 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1439 (ada_type_of_child, ada_value_of_variable): Likewise.
1440 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1441 (ada_varobj_ops): New.
1442 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1443 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1444 * gdbtypes.h (get_target_type): Declare.
1445 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1446 "ada-lang.h".
1447 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1448 (ANONYMOUS_UNION_NAME): Likewise.
1449 (get_type, get_value_type, get_target_type): Remove declarations.
1450 (value_get_print_value, varobj_value_get_print_value): Likewise.
1451 (c_number_of_children, c_name_of_variable): Likewise.
1452 (c_name_of_child, c_path_expr_of_child): Likewise.
1453 (c_value_of_child, c_type_of_child): Likewise.
1454 (c_value_of_variable, cplus_number_of_children): Likewise.
1455 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1456 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1457 (cplus_value_of_child, cplus_type_of_child): Likewise.
1458 (cplus_value_of_variable, java_number_of_children): Likewise.
1459 (java_name_of_variable, java_name_of_child): Likewise.
1460 (java_path_expr_of_child, java_value_of_child): Likewise.
1461 (java_type_of_child, java_value_of_variable): Likewise.
1462 (ada_number_of_children, ada_name_of_variable): Likewise.
1463 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1464 (ada_value_of_child, ada_type_of_child): Likewise.
1465 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1466 (ada_value_has_mutated): Likewise.
1467 (struct language_specific): Move it to varobj.h.
1468 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1469 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1470 Callers update.
1471 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1472 Make it extern.
1473 (is_anonymous_child): Move it to c-varobj.c and rename to
1474 varobj_is_anonymous_child. Caller update.
1475 (get_type): Move it to c-varobj.c.
1476 (get_value_type): Rename it varobj_get_value_type. Make it
1477 extern.
1478 (get_target_type): Move it gdbtypes.c.
1479 (varobj_formatted_print_options): New function.
1480 (value_get_print_value): Rename it to
1481 varobj_value_get_print_value and make it extern.
1482 (varobj_value_is_changeable_p): Make it extern.
1483 (adjust_value_for_child_access): Move it to c-varobj.c.
1484 (default_value_is_changeable_p): Rename it to
1485 varobj_default_value_is_changeable_p. Make it extern.
1486 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1487 (c_name_of_child, c_path_expr_of_child): Likewise.
1488 (c_value_of_child, c_type_of_child): Likewise.
1489 (c_value_of_variable, cplus_number_of_children): Likewise.
1490 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1491 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1492 (cplus_value_of_child, cplus_type_of_child): Likewise.
1493 (cplus_value_of_variable): Likewise.
1494 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1495 (java_name_of_child, java_path_expr_of_child): Likewise.
1496 (java_value_of_child, java_type_of_child): Likewise.
1497 (java_value_of_variable): Likewise.
1498 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1499 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1500 (ada_value_of_child, ada_type_of_child): Likewise.
1501 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1502 (ada_value_has_mutated): Likewise.
1503 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1504 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1505 (c_varobj_ops, cplus_varobj_ops): Declare.
1506 (java_varobj_ops, ada_varobj_ops): Declare.
1507 (varobj_default_value_is_changeable_p): Declare.
1508 (varobj_value_is_changeable_p): Declare.
1509 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1510 (varobj_get_path_expr_parent): Declare.
1511 (varobj_value_get_print_value): Declare.
1512 (varobj_formatted_print_options): Declare.
1513 (varobj_restrict_range): Declare.
1514
1515 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1516
1517 * target/waitstatus.h (target_waitkind): Remove spurious
1518 character from the comments.
1519
1520 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1521
1522 * gdbarch.sh (get_longjmp_target): Add method documentation.
1523 * gdbarch.h: Regenerate.
1524
1525 2013-10-16 Tom Tromey <tromey@redhat.com>
1526
1527 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1528 label.
1529
1530 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1531
1532 * gcore.in: Call GDB using the full path to the gcore script.
1533 Error out if the GDB binary is not found.
1534
1535 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1536
1537 PR gdb/16014
1538 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1539 sizeof.
1540
1541 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1542
1543 PR gdb/16042
1544 * target.c (target_disable_btrace): Fix invalid return value for
1545 void function.
1546 (target_teardown_btrace): Likewise.
1547
1548 2013-10-14 Yao Qi <yao@codesourcery.com>
1549
1550 * varobj.c (struct varobj): Move most of the fields to
1551 varobj.h.
1552 (struct varobj_dynamic): New struct.
1553 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1554 (varobj_has_more): Likewise.
1555 (dynamic_varobj_has_child_method): Likewise.
1556 (update_dynamic_varobj_children): Likewise.
1557 (varobj_get_num_children): Likewise.
1558 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1559 (install_new_value_visualizer): Likewise.
1560 (install_new_value_visualizer, install_new_value): Likewise.
1561 (varobj_update, new_variable, free_variable): Likewise.
1562 (my_value_of_variable, value_get_print_value): Likewise.
1563 (install_visualizer): Change the type of parameter 'var' to
1564 'struct varobjd_dynamic *'. Callers update.
1565 * varobj.h (struct varobj): Moved from varobj.c.
1566 (struct varobj) <dynamic>: New field.
1567
1568 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1569
1570 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1571 as the preferred name of r30.
1572 * nios2-linux-tdep.c (reg_offsets): Likewise.
1573 * features/nios2-cpu.xml: Likewise.
1574 * features/nios2-linux.c: Regenerated.
1575 * features/nios2.c: Regenerated.
1576 * regformats/nios2-linux.dat: Regenerated.
1577
1578 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1579
1580 Canonicalize directories for EXEC_FILENAME.
1581 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1582 exec_filename.
1583 * utils.c (gdb_realpath_keepfile): New function.
1584 * utils.h (gdb_realpath_keepfile): New declaration.
1585
1586 2013-10-11 Doug Evans <dje@google.com>
1587
1588 * Makefile.in (GDBFLAGS): New variable.
1589 (run): New rule.
1590
1591 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1592
1593 * NEWS: Add entry documenting the new "-catch-assert" and
1594 "-catch-exception" GDB/MI commands.
1595
1596 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1597
1598 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1599 "enabled".
1600 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1601 "enabled". Set B->ENABLE_STATE accordingly.
1602 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1603 ada-lang.c.
1604 (create_ada_exception_catchpoint): Add declaration.
1605 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1606 (create_ada_exception_catchpoint): Make non-static. Add new
1607 parameter "disabled". Use it in call to
1608 init_ada_exception_breakpoint.
1609 (catch_ada_exception_command): Add parameter "enabled" in call
1610 to create_ada_exception_catchpoint.
1611 (catch_assert_command): Likewise.
1612
1613 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1614 Add declarations.
1615 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1616 "catch-exception" commands.
1617 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1618 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1619
1620 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1621
1622 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1623 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1624 of all its enumerates with "ada_". Update the rest of this
1625 file throughout.
1626
1627 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1628
1629 * ada-lang.c (ada_decode_exception_location): Delete.
1630 (create_ada_exception_catchpoint): Remove arguments "sal",
1631 "addr_string" and "ops". Add argument "ex_kind" instead.
1632 Adjust implementation accordingly, calling ada_exception_sal
1633 to get the entities it no longer gets passed as arguments.
1634 Document the function's arguments.
1635 (catch_ada_exception_command): Use catch_ada_exception_command_split
1636 instead of ada_decode_exception_location, and update call to
1637 create_ada_exception_catchpoint.
1638 (catch_ada_assert_command_split): Renames
1639 ada_decode_assert_location. Remove parameters "addr_string" and
1640 "ops", and now returns void. Adjust implementation accordingly.
1641 Update the function documentation.
1642 (catch_assert_command): Use catch_ada_assert_command_split
1643 instead of ada_decode_assert_location. Update call to
1644 create_ada_exception_catchpoint.
1645
1646 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1647
1648 * utils.h (perror_warning_with_name): Add declaration.
1649 * utils.c (perror_warning_with_name): New function.
1650 * cli/cli-cmds.c (source_script_with_search): Add call to
1651 perror_warning_with_name if from_tty is nul.
1652
1653 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1654
1655 * utils.c (perror_string): New function, extracted out of
1656 throw_perror_with_name.
1657 (throw_perror_with_name): Rework to use perror_string.
1658
1659 2013-10-11 Yao Qi <yao@codesourcery.com>
1660
1661 * remote.c (discard_pending_stop_replies_in_queue): Update
1662 declaration.
1663 (struct stop_reply) <rs>: New field.
1664 (remove_stop_reply_of_remote_state): New function.
1665 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1666 Callers update. Pass remove_stop_reply_of_remote_state to
1667 QUEUE_iterate.
1668 (remote_parse_stop_reply): Initialize field 'rs'.
1669
1670 2013-10-10 Will Newton <will.newton@linaro.org>
1671
1672 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1673 linux_init_abi.
1674
1675 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1676
1677 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1678 serial_baud_show_cmd.
1679 (_initialize_cli_cmds): Delete the code creating the
1680 "set/show remotebaud" commands.
1681 * serial.c (baud_rate): Move here from top.c.
1682 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1683 (_initialize_serial): Create "set/show serial baud" commands.
1684 Add "set/show remotebaud" command aliases.
1685 * top.c (baud_rate): Moved to serial.c.
1686 * NEWS: Document the new "set/show serial baud" commands,
1687 replacing "set/show remotebaud".
1688
1689 2013-10-09 Pedro Alves <palves@redhat.com>
1690
1691 * breakpoint.c (insert_bp_location): Use memory_error_message to
1692 build the memory error string.
1693 * c-lang.c: Include "gdbcore.h".
1694 (c_get_string): Use memory_error to throw error.
1695 (target_xfer_memory_error): Delete.
1696 (memory_error_message): New, factored out from
1697 target_xfer_memory_error.
1698 (memory_error): Change parameter type to target_xfer_error.
1699 Rewrite.
1700 (read_memory): Use memory_error instead of
1701 target_xfer_memory_error.
1702 * gdbcore.h: Include "target.h".
1703 (memory_error): Change parameter type to target_xfer_error.
1704 (memory_error_message): Declare function.
1705 * target.c (target_read_memory, target_read_stack)
1706 (target_write_memory, target_write_raw_memory): Return
1707 TARGET_XFER_E_IO on error. Adjust comments.
1708 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1709 instead of EIO.
1710 * target.h (target_read, target_insert_breakpoint)
1711 (target_remove_breakpoint): Adjust comments.
1712 * valprint.c (partial_memory_read): Rename parameter, and adjust
1713 comment.
1714 (val_print_string): Use memory_error_message to build the memory
1715 error string.
1716
1717 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1718
1719 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1720 result variable. Rename variable fopen_e_ever_failed to
1721 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1722
1723 2013-10-09 Pedro Alves <palves@redhat.com>
1724
1725 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1726 (monitor_write_memory_longlongs, monitor_write_memory_block):
1727 Constify 'myaddr' parameter.
1728 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1729 helper.
1730 (monitor_xfer_partial): New function.
1731 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1732 hook. Install a to_xfer_partial hook.
1733
1734 2013-10-09 Tom Tromey <tromey@redhat.com>
1735
1736 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1737 bfd_get_alt_debug_link_info.
1738
1739 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1740
1741 New flag OBJF_NOT_FILENAME.
1742 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1743 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1744 allocate_objfile.
1745 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1746 symbol_file_add_from_bfd.
1747 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1748 allocate_objfile.
1749 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1750 NULL.
1751 * objfiles.h (OBJF_NOT_FILENAME): New.
1752
1753 2013-10-08 Tom Tromey <tromey@redhat.com>
1754
1755 * Makefile.in (SFILES): Add build-id.c.
1756 (HFILES_NO_SRCDIR): Add build-id.h.
1757 * build-id.c: New file, largely from elfread.c. Modified
1758 most functions.
1759 * build-id.h: New file.
1760 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1761 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1762 Search for dwz file using build-id.
1763 * elfread.c (build_id_bfd_get, build_id_verify)
1764 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1765
1766 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1767
1768 * ada-lang.c (compare_names_with_case): Renamed from
1769 compare_names, adding a new parameter "casing" and its handling.
1770 New function documentation.
1771 (compare_names): New function, implemented using
1772 compare_names_with_case.
1773
1774 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1775
1776 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1777
1778 2013-10-07 Tom Tromey <tromey@redhat.com>
1779
1780 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1781 demangled_names_hash.
1782 (free_objfile): Don't delete the demangled_names_hash.
1783 * objfiles.h (struct objfile_per_bfd_storage)
1784 <demangled_names_hash>: New field.
1785 (struct objfile) <demangled_names_hash>: Move to
1786 objfile_per_bfd_storage.
1787 * symfile.c (reread_symbols): Don't delete the
1788 demangled_names_hash.
1789 * symtab.c (create_demangled_names_hash): Update.
1790 (symbol_set_names): Update.
1791
1792 2013-10-07 Tom Tromey <tromey@redhat.com>
1793
1794 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1795 needs_relocations>: New fields.
1796 (gdb_bfd_requires_relocations): New function.
1797 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1798 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1799 the BFD needs relocations applied.
1800
1801 2013-10-07 Pedro Alves <palves@redhat.com>
1802
1803 PR breakpoints/11568
1804 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1805 the thread list" instead of "gone".
1806
1807 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1808
1809 * NEWS: Mention new convenience variable $_exitsignal.
1810 * corelow.c (core_open): Reset exit convenience variables. Set
1811 $_exitsignal to the uncaught signal which generated the corefile.
1812 * infrun.c (handle_inferior_event): Reset exit convenience
1813 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1814 (clear_exit_convenience_vars): New function.
1815 * inferior.h (clear_exit_convenience_vars): New prototype.
1816
1817 2013-10-06 Yao Qi <yao@codesourcery.com>
1818
1819 * varobj.h: Add comments to enum varobj_languages.
1820
1821 2013-10-04 Doug Evans <dje@google.com>
1822
1823 Add support for DWP file format version 2.
1824 * NEWS: Mention support for DWP file format version 2.
1825 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1826 union of asection, containing_section. New fields virtual_offset
1827 and is_virtual. Change type of readin filed from int to char.
1828 (dwo_sections, dwo_file): Tweak comments.
1829 (dwp_v2_section_ids): New enum.
1830 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1831 str_offsets, types.
1832 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1833 All uses updated.
1834 (virtual_v2_dwo_sections): New struct.
1835 (dwp_hash_table): New fields version, nr_columns. Change type of
1836 section_pool field to a union.
1837 (dwp_file): New field version.
1838 (dwarf2_has_info): Check for virtual sections.
1839 (get_containing_section): New function.
1840 (get_section_bfd_owner, get_section_bfd_section): Call it.
1841 (dwarf2_locate_sections): Update.
1842 (dwarf2_section_empty_p): Update.
1843 (dwarf2_read_section): Handle virtual sections.
1844 (locate_dwz_sections): Update.
1845 (create_dwp_hash_table): Document and handle V2 format.
1846 (locate_v1_virtual_dwo_sections): Renamed from
1847 locate_virtual_dwo_sections and update. All callers updated.
1848 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1849 Delete arg htab. Rename arg section_index to unit_index.
1850 All callers updated.
1851 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1852 All uses updated.
1853 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1854 (lookup_dwo_unit_in_dwp): Add V2 support.
1855 (dwarf2_locate_dwo_sections): Update.
1856 (dwarf2_locate_common_dwp_sections): Renamed from
1857 dwarf2_locate_dwp_sections and update. All callers updated.
1858 (dwarf2_locate_v2_dwp_sections): New function.
1859 (open_and_init_dwp_file): Add V2 support.
1860 (read_str_index): New locals str_section, str_offsets_section.
1861
1862 2013-10-04 Pedro Alves <palves@redhat.com>
1863
1864 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1865 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1866 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1867 describing comments with references to ptid.h.
1868 * common/ptid.h: Remove intro description of constructors,
1869 accessors and predicates.
1870 (struct ptid): Reformat.
1871 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1872 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1873 describing comments.
1874
1875 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1876
1877 * aix-thread.c (sync_threadlists): Add missing ')' in call
1878 to ptid_build.
1879
1880 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1881
1882 * procfs.c (procfs_init_inferior): Fix typo causing the build
1883 to fail.
1884
1885 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1886
1887 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1888
1889 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1890
1891 * mi/mi-main.c (run_one_inferior): Add function description.
1892 Make ARG a pointer to an integer whose value determines whether
1893 we should "run" or "start" the program.
1894 (mi_cmd_exec_run): Add handling of the "--start" option.
1895 Reject all other command-line options.
1896 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1897
1898 2013-10-04 Yao Qi <yao@codesourcery.com>
1899
1900 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1901 (struct notif_client) <pending_event>: Moved
1902 to struct remote_notif_state.
1903 <id>: New field.
1904 (struct remote_notif_state) <pending_event>: New field.
1905 (notif_event_xfree): Declare.
1906 * remote-notif.c (handle_notification): Adjust.
1907 (notif_event_xfree): New function.
1908 (do_notif_event_xfree): Call notif_event_xfree.
1909 (remote_notif_state_xfree): Call notif_event_xfree to free
1910 each element in field pending_event.
1911 * remote.c (discard_pending_stop_replies): Remove declaration.
1912 (discard_pending_stop_replies_in_queue): Declare.
1913 (remote_close): Call discard_pending_stop_replies_in_queue
1914 instead of discard_pending_stop_replies.
1915 (remote_start_remote): Adjust.
1916 (stop_reply_xfree): Call notif_event_xfree.
1917 (notif_client_stop): Adjust initialization.
1918 (remote_notif_remove_all): Rename it to ...
1919 (remove_stop_reply_for_inferior): ... this. Update comments.
1920 Don't check INF is NULL.
1921 (discard_pending_stop_replies): Return early if notif_state is
1922 NULL. Adjust. Don't check INF is NULL.
1923 (remote_notif_get_pending_events): Adjust.
1924 (discard_pending_stop_replies_in_queue): New function.
1925 (remote_wait_ns): Likewise.
1926
1927 2013-10-04 Yao Qi <yao@codesourcery.com>
1928
1929 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1930 (notif_queue): Remove.
1931 (remote_notif_process): Add one parameter 'notif_queue'.
1932 Update comments. Callers update.
1933 (remote_async_get_pending_events_token): Remove.
1934 (remote_notif_register_async_event_handler): Remove.
1935 (remote_notif_unregister_async_event_handler): Remove.
1936 (handle_notification): Add parameter 'notif_queue'. Update
1937 comments. Callers update.
1938 (notif_xfree): Remove.
1939 (remote_notif_state_allocate): New function.
1940 (remote_notif_state_xfree): New function.
1941 (_initialize_notif): Remove code to allocate queue.
1942 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1943 (struct remote_notif_state): New.
1944 (handle_notification): Update declaration.
1945 (remote_notif_process): Likewise.
1946 (remote_notif_register_async_event_handler): Remove.
1947 (remote_notif_unregister_async_event_handler): Remove.
1948 (remote_notif_state_allocate): Declare.
1949 (remote_notif_state_xfree): Declare.
1950 * remote.c (struct remote_state) <notif_state>: New field.
1951 (remote_close): Don't call
1952 remote_notif_unregister_async_event_handler. Call
1953 remote_notif_state_xfree.
1954 (remote_open_1): Don't call
1955 remote_notif_register_async_event_handler. Call
1956 remote_notif_state_allocate.
1957
1958 2013-10-04 Yao Qi <yao@codesourcery.com>
1959
1960 * varobj.c (create_child_with_value): Remove 'const' from the
1961 type of parameter 'name'.
1962 (varobj_add_child): Likewise.
1963 (install_dynamic_child): Remove 'const' from the type of
1964 parameter 'name'.
1965 (varobj_add_child): Likewise.
1966 (create_child_with_value): Likewise. Update comments. Don't
1967 duplicate 'name'.
1968 (update_dynamic_varobj_children): Duplicate 'name'
1969 and pass it to install_dynamic_child.
1970
1971 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1972
1973 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1974 conversion logic to occur after PyLong_Check. Comment on order
1975 change significance.
1976 * python/py-arch.c (archpy_disassemble): Comment on order of
1977 conversion for integers and longs.
1978
1979 2013-10-03 Pedro Alves <palves@redhat.com>
1980
1981 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1982 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1983 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1984 PTRACE_O_TRACEFORK is not supported.
1985 (linux_test_for_tracesysgood): New function.
1986 (linux_test_for_tracefork): New function, factored out from
1987 linux_check_ptrace_features, and also don't kill child_pid here.
1988
1989 2013-10-03 Tristan Gingold <gingold@adacore.com>
1990
1991 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1992 Remove verbose error reporting. Use detected state to
1993 thread_set_state call.
1994 (i386_darwin_dr_get): Fix return type. Remove verbose error
1995 report.
1996 Remove trailing spaces.
1997
1998 2013-10-02 Pedro Alves <palves@redhat.com>
1999
2000 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2001 val_print_optimized_out.
2002 * jv-valprint.c (java_print_value_fields): Likewise.
2003 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2004 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2005 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2006 new optimized out value.
2007 * findvar.c (address_from_register): Likewise.
2008 * frame.c (put_frame_register): Tweak error string to say the
2009 register was not saved, rather than optimized out.
2010 * infcmd.c (default_print_one_register_info): Adjust call to
2011 val_print_optimized_out. Use value_of_register instead of
2012 get_frame_register_value.
2013 * mi/mi-main.c (output_register): Use value_of_register instead of
2014 get_frame_register_value.
2015 * valprint.c (valprint_check_validity): Likewise.
2016 (val_print_optimized_out): New value parameter. If the value is
2017 lval_register, print <not saved> instead.
2018 (value_check_printable, val_print_scalar_formatted): Adjust calls
2019 to val_print_optimized_out.
2020 * valprint.h (val_print_optimized_out): New value parameter.
2021 * value.c (struct value) <optimized_out>: Extend comment.
2022 (error_value_optimized_out): New function.
2023 (require_not_optimized_out): Use it. Use a different string for
2024 lval_register values.
2025 * value.h (error_value_optimized_out): New declaration.
2026 * NEWS: Mention <not saved>.
2027
2028 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2029
2030 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2031 strcmp to compare two symtab filenames.
2032
2033 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2034
2035 * symtab.c (search_symbols_equal): Delete.
2036 (sort_search_symbols_remove_dups): Replace call to
2037 search_symbols_equal by call to compare_search_syms,
2038 adjusting as necessary.
2039
2040 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2041
2042 PR python/15579
2043 * python/python.c: Document gdb.execute command in Python help.
2044
2045 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2046
2047 * python/py-frame.c (frame_info_to_frame_object): Use
2048 gdbpy_convert_exception. Clean up Python object on failure.
2049
2050 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2051
2052 * python/lib/gdb/command/frame_filters.py
2053 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2054 (ShowFrameFilterPriority.invoke): Ditto.
2055
2056 2013-10-01 Keith Seitz <keiths@redhat.com>
2057
2058 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2059 (parse_linespec): Make 'argptr' const.
2060 Remove temporary cast of 'argptr' to const char **.
2061 (decode_line_full): Pass const pointer to parse_linespec.
2062 (decode_line_1): Likewise.
2063 (decode_objc): Make local variable 'new_argptr' const.
2064 (find_function_symbols): Remove temporary cast to char *
2065 to find_imps.
2066 * objc-lang.c (find_imps): Make argument 'method' const.
2067 Return const.
2068 * objc-lang.h (find_imps): Likewise.
2069
2070 2013-10-01 Keith Seitz <keiths@redhat.com>
2071
2072 * completer.c (skip_quoted_chars): Make all arguments const.
2073 Return const.
2074 (skip_quoted): Likewise.
2075 * completer.h (skip_quoted_chars): Likewise.
2076 (skip_quoted): Likewise.
2077 * defs.h (skip_quoted): Remove duplicate declaration.
2078 * jv-exp.y: Include completer.h.
2079 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2080 * p-exp.y: Include completer.h.
2081
2082 2013-10-01 Keith Seitz <keiths@redhat.com>
2083
2084 * c-exp.y (parse_number): Make first argument const.
2085 Make a copy of the input to manipulate.
2086 (c_parse_escape): Make first argument const.
2087 Make local variable 'tokptr' const.
2088 (parse_string_or_char): Make first two arguments const.
2089 (macro_original_text): Make const.
2090 (lex_one_token): Make local variable 'tokstart' const.
2091 Likewise for local variables named 'p'.
2092 Cast away const for struct stoken (temporary).
2093 * c-lang.h (c_parse_escpae): Make first argument const.
2094 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2095 const.
2096 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2097 var_string case.
2098 * f-exp.y (parse_number): Make first argument const.
2099 (match_string_literal): Make local variable 'tokstart'
2100 const.
2101 (yylex): Make local variable 'p' const.
2102 Cast away const for struct stoken (temporary).
2103 * go-exp.y (parse_number): Make first argument const.
2104 (parse_string_or_char): Likewise.
2105 Make local variable 'tokstart' const.
2106 (lex_one_token): Likewise for numerous locals called 'p'.
2107 Cast away const for struct stoken (temporary).
2108 * jv-exp.y (parse_number): Make first argument const.
2109 Make local variables 'tokstart' and 'tokptr' const.
2110 Cast away const for call to skip_quoted (temporary).
2111 (yylex): Make local variable 'p' const.
2112 Cast away const for struct stoken (temporary).
2113 * m2-exp.y (parse_number): Make local variable 'p' const.
2114 (yylex): Likewise for 'tokstart'.
2115 Cast away const for struct stoken (temporary).
2116 Make local variable 'p' const.
2117 * macroexp.c (get_character_constant): Pass a const string
2118 to c_parse_escape.
2119 (get_string_literal): Likewise.
2120 (macro_expand_next): Make first argument const.
2121 Cast away const for init_shared_buffer.
2122 * macroexp.h (macro_expand_next): Make first argument const.
2123 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2124 Pass a const string to c_parse_escape.
2125 Make local variables 'p' and 'namestart' const.
2126 * parse.c (lexptr): Make const.
2127 (prev_lexptr): Likewise.
2128 (find_template_name_end): Return const.
2129 Make argument const, too.
2130 (parse_exp_in_context): Make first argument const.
2131 Remove the entire const_hack.
2132 (parse_exp_in_context_1): Make first argument const.
2133 * parser-defs.h (find_template_name_end): Return const.
2134 Make argument const, too.
2135 (lexptr): Make const.
2136 (prev_lexptr): Likewise.
2137 * utils.c (parse_escape): Make second argument const.
2138 * utils.h (parse_escape): Likewise.
2139
2140 2013-10-01 Keith Seitz <keiths@redhat.com>
2141
2142 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2143 is now const.
2144 (block_lookup): Make 'raw_name' and 'name' const.
2145 * ada-lex.l (processString): Update for struct stoken.ptr.
2146 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2147 (operator_stoken): Likewise.
2148 (lex_one_token): Remove temporary cast to char * for
2149 'yylval.sval.ptr'.
2150 * f-exp.y (yylex): Likewise.
2151 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2152 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2153 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2154 'yylval.sval.ptr'.
2155 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2156 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2157 * linespec.c (struct ls_parser): Make 'stream' const.
2158 (find_parameter_list_end): Make argument 'input' and local
2159 variable 'p' const.
2160 (linespec_lexer_lex_string): Make local variables 'start' and
2161 'p' const.
2162 Use skip_spaces_const instead of skip_spaces.
2163 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2164 const.
2165 (parse_linespec): Temporarily cast 'argptr' to const for
2166 'parser->lexer.stream'.
2167 * m2-exp.y (yylex): Remove temporary cast to char * for
2168 'yylval.sval.ptr'.
2169 * objc-lang.c (add_msglist): Make local variable 'p' const.
2170 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2171 (exp : STRING): Make 'sp' const.
2172 (parse_number): Make argument 'p' const.
2173 * parser-defs.h (struct stoken): Make 'ptr' const.
2174
2175 2013-10-01 Doug Evans <dje@google.com>
2176
2177 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2178
2179 2013-10-01 Yao Qi <yao@codesourcery.com>
2180
2181 * varobj.c (c_value_of_root): Remove declaration.
2182 (cplus_value_of_root, java_value_of_root): Likewise.
2183 (ada_value_of_root): Likewise.
2184 (struct language_specific) <value_of_root>: Remove.
2185 (languages): Update initialization.
2186 (check_scope): Move earlier.
2187 (c_value_of_root): Move earlier and rename to ...
2188 (value_of_root_1): ... this.
2189 (value_of_root): Caller update.
2190 (cplus_value_of_root, java_value_of_root): Remove.
2191 (ada_value_of_root): Remove.
2192
2193 2013-10-01 Yao Qi <yao@codesourcery.com>
2194
2195 * varobj.c (varobj_format_string): Remove "unknown".
2196 (languages): Remove the first element.
2197 * varobj.h (enum varobj_languages): Remove vlang_c.
2198
2199 2013-10-01 Yao Qi <yao@codesourcery.com>
2200
2201 * varobj.c (struct language_specific) <language>: Remove.
2202 (languages): Update the initialization.
2203
2204 2013-10-01 Yao Qi <yao@codesourcery.com>
2205
2206 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2207 "solib-target.h". Include "windows-tdep.h".
2208 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2209 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2210 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2211 windows-tdep.o to gdb_target_obs.
2212
2213 2013-10-01 Yao Qi <yao@codesourcery.com>
2214
2215 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2216 "solib-target.h".
2217 (amd64_windows_init_abi): Don't call set_solib_ops and
2218 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2219 windows_init_abi instead.
2220 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2221 "solib-target.h".
2222 (i386_cygwin_init_abi): Don't call set_solib_ops,
2223 set_gdbarch_has_dos_based_file_system and
2224 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2225 windows_init_abi instead.
2226 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2227 (windows_init_abi): New function.
2228 (windows_iterate_over_objfiles_in_search_order): Make it
2229 static.
2230 * windows-tdep.h (windows_init_abi): Declare.
2231 (windows_iterate_over_objfiles_in_search_order): Remove
2232 declaration.
2233
2234 2013-10-01 Jerome Guitton <guitton@adacore.com>
2235
2236 Checked in by Joel Brobecker <brobecker@adacore.com>
2237 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2238 incomplete dictionnary instead of None in case of missing
2239 environment variables.
2240 (elinos_init): in case of an incomplete environment, best
2241 effort to load system libraries instead of abort.
2242
2243 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2244
2245 * ada-lang.c (ada_has_this_exception_support): Ignore
2246 mst_solib_trampoline minimal symbols.
2247
2248 2013-09-30 Tristan Gingold <gingold@adacore.com>
2249
2250 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2251 hardware watchpoint.
2252 (i386_darwin_dr_set): Support 32 and 64 bit states.
2253 (i386_darwin_dr_get): Likewise.
2254 (i386_darwin_dr_set_control): Make static.
2255 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2256 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2257
2258 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2259
2260 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2261 Replace TIDGET with ptid_get_lwp.
2262 Replace GET_LWP with ptid_get_lwp.
2263 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2264 Replace BUILD_THREAD with ptid_build.
2265 Replace BUILD_LWP with ptid_build.
2266 Replace PIDGET with ptid_get_pid.
2267 Replace TIDGET with ptid_get_lwp.
2268 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2269 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2270 Replace TIDGET with ptid_get_lwp.
2271 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2272 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2273 Replace TIDGET with ptid_get_lwp.
2274 Replace GET_LWP with ptid_get_lwp.
2275 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2276 * auxv.c: Likewise.
2277 * breakpoint.c: Likewise.
2278 * common/ptid.c (ptid_is_pid): Condense check for
2279 null_ptid and minus_one_ptid.
2280 (ptid_lwp_p): New function.
2281 (ptid_tid_p): New function.
2282 * common/ptid.h: Update comments for accessors.
2283 (ptid_lwp_p): New prototype.
2284 (ptid_tid_p): New prototype.
2285 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2286 * gcore.c: Replace PIDGET with ptid_get_pid.
2287 * gdbthread.h: Likewise.
2288 * gnu-nat.c: Likewise.
2289 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2290 Replace TIDGET with ptid_get_lwp.
2291 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2292 * hppanbsd-nat.c: Likewise.
2293 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2294 Replace TIDGET with ptid_get_lwp.
2295 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2296 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2297 * infcmd.c: Likewise.
2298 * inferior.h: Likewise.
2299 * inflow.c: Likewise.
2300 * infrun.c: Likewise.
2301 * linux-fork.c: Likewise.
2302 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2303 Replace GET_PID with ptid_get_pid.
2304 Replace is_lwp with ptid_lwp_p.
2305 Replace GET_LWP with ptid_get_lwp.
2306 Replace BUILD_LWP with ptid_build.
2307
2308 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2309
2310 * common/linux-btrace.c: Move sys/syscall.h out of the
2311 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2312 Also check for SYS_perf_event_open before attempting to buid.
2313
2314 2013-09-27 Doug Evans <dje@google.com>
2315
2316 * dwarf2read.c (dwarf2_section_info): Add comment.
2317 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2318 All uses updated.
2319 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2320 (dwarf2_read_section): Delete unused local "header". Add section
2321 name to error message.
2322 (create_dwo_in_dwp): Tweak comment.
2323 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2324
2325 * dwarf2read.c (die_reader_specs): Tweak comment.
2326 (get_section_bfd_owner, get_section_bfd_section): New functions.
2327 (get_section_name, get_section_file_name): New functions.
2328 (get_section_id, get_section_flags): New functions.
2329 (*): Use new functions to access section fields.
2330
2331 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2332 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2333 arg "htab". All callers updated.
2334 (create_debug_types_hash_table): Remove redundant copy of
2335 abbrev_section.
2336 (create_dwo_in_dwp): Tweak comments.
2337 (read_str_index): Tweak comment. Record dwarf form name in static
2338 local.
2339
2340 2013-09-27 Pedro Alves <palves@redhat.com>
2341
2342 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2343 (remote_filename_p): Add comment.
2344 * remote.c (remote_filename_p): Adjust to use
2345 REMOTE_SYSROOT_PREFIX.
2346 * solib.c (solib_find): When deciding whether we need to add a
2347 directory separator, check whether the sysroot is "remote:"
2348 instead of checking whether the patch has a drive spec. Add
2349 comments.
2350
2351 2013-09-27 Pedro Alves <palves@redhat.com>
2352
2353 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2354 Delete fields.
2355 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2356 directly.
2357
2358 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2359
2360 Fix set debug frame output.
2361 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2362 SENTINEL_FRAME entry lower to match enum frame_type order.
2363
2364 2013-09-26 Pierre Muller <muller@sourceware.org>
2365
2366 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2367 AMD64_R15_REGNUM when a register index is expected.
2368 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2369 Substitute in array.
2370 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2371 (amd64_push_arguments): Substitute in integer_regnum array.
2372
2373 2013-09-25 Doug Evans <dje@google.com>
2374
2375 * objfiles.c (allocate_objfile): Move comment to better place.
2376
2377 New option "set debug symfile on".
2378 * NEWS: Mention "set debug symfile".
2379 * Makefile.in (SFILES): Add symfile-debug.c.
2380 (COMMON_OBS): Add symfile-debug.o.
2381 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2382 objfile's symbol functions.
2383 * objfiles.h (objfile_set_sym_fns): Declare.
2384 * symfile-debug.c: New file.
2385 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2386 objfile's symbol functions.
2387 (reread_symbols): Ditto.
2388
2389 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2390 All uses updated.
2391 (add_symtab_fns): Update prototype.
2392 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2393 (registered_sym_fns): ... this.
2394 (symtab_fns): Update.
2395 (add_symtab_fns): New arg "flavour". All callers updated.
2396 (find_sym_fns): Rewrite to use new sym_fns registry.
2397
2398 * symfile.h (struct sym_fns): Add "objfile" argument to
2399 sym_read_linetable. All uses updated.
2400
2401 * symtab.c (domain_name, search_domain_name): New functions.
2402 * symtab.h (domain_name, search_domain_name): Declare.
2403
2404 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2405 map_matching_symbols so objfile is first. All uses updated.
2406 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2407 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2408
2409 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2410
2411 PR shlibs/8882
2412 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2413 link map entries.
2414
2415 2013-09-24 Doug Evans <dje@google.com>
2416
2417 * objfiles.c (free_objfile): Move comment.
2418
2419 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2420
2421 * ada-exp.y (string_to_operator): Delete.
2422 (dummy_string_to_ada_operator): Delete.
2423
2424 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2425
2426 Revert:
2427 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2428 amd64-tdep.c.
2429 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2430 call_dummy_integer_regs, and classify.
2431 * amd64-tdep.h (amd64_classify): Add declaration.
2432 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2433 (amd64_reg_class): Delete, moved to i386-tdep.h.
2434 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2435 Replace call to amd64_classify by call to tdep->classify.
2436 (amd64_push_arguments): Get the list of registers to use for
2437 passing integer parameters from the gdbarch tdep structure,
2438 rather than using a hardcoded one. Replace calls to amd64_classify
2439 by calls to tdep->classify.
2440 (amd64_push_dummy_call): Get the register number used for
2441 the "hidden" argument from tdep->call_dummy_integer_regs.
2442 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2443 and tdep->call_dummy_integer_regs. Set tdep->classify.
2444
2445 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2446
2447 Revert:
2448 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2449 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2450 where tdep->memory_args_by_pointer is non-zero.
2451
2452 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2453
2454 Revert:
2455 * i386-tdep.h (struct gdbarch_tdep): Add new field
2456 integer_param_regs_saved_in_caller_frame.
2457 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2458 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2459
2460 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2461
2462 * amd64-windows-tdep.c: #include "value.h"
2463 (amd64_windows_classify): Delete.
2464 (amd64_windows_passed_by_integer_register)
2465 (amd64_windows_passed_by_xmm_register)
2466 (amd64_windows_passed_by_pointer)
2467 (amd64_windows_adjust_args_passed_by_pointer)
2468 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2469 (amd64_windows_push_dummy_call): New functions.
2470 (amd64_windows_init_abi): Remove setting of
2471 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2472 tdep->classify, tdep->memory_args_by_pointer and
2473 tdep->integer_param_regs_saved_in_caller_frame.
2474 Add call to set_gdbarch_push_dummy_call.
2475
2476 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2477
2478 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2479 objfile->original_name.
2480
2481 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2482
2483 Pass down original filename for objfile.
2484 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2485 * elfread.c (elf_symfile_read): Likewise.
2486 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2487 longer set ORIGINAL_NAME.
2488 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2489 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2490 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2491 symbol_file_add_from_bfd call.
2492 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2493 (macho_check_dsym): Add parameter filenamep. Change function comment.
2494 Set *filenamep.
2495 (macho_symfile_read): New variable dsym_filename. Update
2496 macho_check_dsym call. Use it for symbol_file_add_separate.
2497 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2498 it. Use it for objfile->original_name.
2499 (objfile_name): Return OBFD's filename, if available.
2500 * objfiles.h (allocate_objfile): Add new parameter name.
2501 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2502 * symfile-mem.c (symbol_file_add_from_memory): Update
2503 symbol_file_add_from_bfd call.
2504 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2505 comment for it.
2506 (symbol_file_add_with_addrs): New parameter name, add function comment
2507 for it. Remove variable name. Update allocate_objfile call.
2508 (symbol_file_add_separate): New parameter name, add function comment
2509 for it. Update symbol_file_add_with_addrs call.
2510 (symbol_file_add_from_bfd): New parameter name. Update
2511 symbol_file_add_with_addrs call.
2512 (symbol_file_add): Update symbol_file_add_from_bfd call.
2513 (reread_symbols): New variable original_name. Save
2514 objfile->original_name by it.
2515 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2516 second parameter.
2517
2518 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Code cleanup: Add objfile_name accessor function.
2521 * ada-lang.c (is_known_support_routine): Use objfile_name.
2522 * auto-load.c (source_gdb_script_for_objfile)
2523 (auto_load_objfile_script): Likewise.
2524 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2525 * dbxread.c (dbx_symfile_read): Likewise.
2526 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2527 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2528 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2529 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2530 (lookup_dwp_signatured_type, lookup_dwo_unit)
2531 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2532 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2533 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2534 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2535 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2536 (read_subrange_type, load_partial_dies, read_partial_die)
2537 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2538 (die_containing_type, build_error_marker_type, lookup_die_type)
2539 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2540 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2541 (get_DW_AT_signature_type, write_psymtabs_to_index)
2542 (save_gdb_index_command): Likewise.
2543 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2544 Likewise.
2545 * expprint.c (dump_subexp_body_standard): Likewise.
2546 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2547 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2548 original_name.
2549 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2550 obj_name, use objfile_name for it, use the variable.
2551 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2552 Use objfile_name.
2553 * machoread.c (macho_symtab_read, macho_check_dsym)
2554 (macho_symfile_relocate): Likewise.
2555 * maint.c (maintenance_translate_address): Likewise.
2556 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2557 * minsyms.c (install_minimal_symbols): Likewise.
2558 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2559 original_name.
2560 (filter_overlapping_sections): Use objfile_name.
2561 (objfile_name): New function.
2562 * objfiles.h (struct objfile): Rename field name to original_name.
2563 (objfile_name): New prototype.
2564 * printcmd.c (sym_info, address_info): Use objfile_name.
2565 * probe.c (parse_probes, collect_probes, compare_probes)
2566 (info_probes_for_ops): Likewise.
2567 * progspace.c (clone_program_space): Likewise.
2568 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2569 (maintenance_info_psymtabs): Likewise.
2570 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2571 (source_section_scripts): Likewise.
2572 * python/py-objfile.c (objfpy_get_filename): Likewise.
2573 * python/py-progspace.c (pspy_get_filename): Likewise.
2574 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2575 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2576 * solib.c (solib_read_symbols): Likewise.
2577 * stabsread.c (scan_file_globals): Likewise.
2578 * stap-probe.c (handle_stap_probe): Likewise.
2579 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2580 (find_separate_debug_file_by_debuglink): Likewise.
2581 (reread_symbols): Likewise. Use the objfile field name renamed to
2582 original_name.
2583 (allocate_symtab): Use objfile_name.
2584 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2585 (dump_objfile, dump_msymbols, dump_symtab_1)
2586 (maintenance_print_msymbols, maintenance_print_objfiles)
2587 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2588 * target.c (target_translate_tls_address, target_info): Likewise.
2589 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2590 objfile_name.
2591
2592 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2593
2594 Code cleanup.
2595 * probe.c (parse_probes): Rename variable objfile_name to
2596 objfile_namestr.
2597
2598 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 Remove solib-sunos.c.
2601 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2602 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2603 * objfiles.c (rt_common_objfile): Remove.
2604 (free_objfile): Remove rt_common_objfile comparison.
2605 * objfiles.h (rt_common_objfile): Remove.
2606 * solib-sunos.c: Remove.
2607 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2608
2609 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2610
2611 Remove a.out NetBSD and OpenBSD hosts.
2612 * NEWS (Removed native configurations): New.
2613 * config/arm/nbsdaout.mh: Remove.
2614 * config/i386/nbsdaout.mh: Remove.
2615 * config/i386/obsdaout.mh: Remove.
2616 * config/m68k/nbsdaout.mh: Remove.
2617 * config/sparc/nbsdaout.mh: Remove.
2618 * config/vax/nbsdaout.mh: Remove.
2619 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2620 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2621 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2622 error.
2623 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2624 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2625 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2626
2627 2013-09-23 Tom Tromey <tromey@redhat.com>
2628
2629 * linespec.c (struct minsym_and_objfile): Remove.
2630 (minsym_and_objfile_d): Remove.
2631 (struct linespec, struct collect_info, linespec_parse_basic)
2632 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2633 (compare_msymbols, find_method, find_function_symbols)
2634 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2635 (add_minsym, search_minsyms_for_name): Update.
2636
2637 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2638
2639 * regcache.c: Add include of valprint.h.
2640 (dump_endian_bytes): Delete.
2641 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2642
2643 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2644
2645 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2646
2647 2013-09-19 Pedro Alves <palves@redhat.com>
2648
2649 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2650 breakpoints.
2651
2652 2013-09-19 Pedro Alves <palves@redhat.com>
2653 Thomas Schwinge <thomas@codesourcery.com>
2654 Yue Lu <hacklu.newborn@gmail.com>
2655
2656 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2657 Take a gdb_byte pointer instead of a char pointer.
2658
2659 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2660 gnu_xfer_partial helper.
2661 (gnu_xfer_partial): New function.
2662 (gnu_target): Don't install a deprecated_xfer_memory hook.
2663 Install a to_xfer_partial hook.
2664
2665 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2666
2667 Constification.
2668 * main.c (captured_main): Replace catch_command_errors by
2669 catch_command_errors_const. Twice.
2670 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2671 (symbol_file_add): Make name parameter const.
2672 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2673 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2674 variable name. Change their usage accordingly.
2675 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2676 const.
2677 (symbol_file_add_main): Make args parameter const.
2678
2679 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2680 Ulrich Weigand <uweigand@de.ibm.com>
2681
2682 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2683 of c_value member.
2684 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2685
2686 2013-09-18 Pedro Alves <palves@redhat.com>
2687 Yue Lu <hacklu.newborn@gmail.com>
2688
2689 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2690 (gnu_create_inferior)
2691 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2692 (set_sig_thread_cmd): Use the lwpid field of ptids to
2693 store/extract thread ids instead of the tid field.
2694 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2695
2696 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2697
2698 * infcmd.c (default_print_one_register_info): Add detection of
2699 optimized out values.
2700 (default_print_registers_info): Switch to using
2701 get_frame_register_value.
2702
2703 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2704
2705 * infrun.c (handle_inferior_event): Check if we know the
2706 function start address before setting a resume breakpoint.
2707
2708 2013-09-18 Pedro Alves <palves@redhat.com>
2709
2710 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2711 minus_one_ptid instead of looking at the ptid's tid field and
2712 comparing that to -1.
2713
2714 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2715
2716 * main.h (get_gdb_program_name): Remove extra whitespace.
2717
2718 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2719
2720 * main.h (get_gdb_program_name): Add declaration.
2721 * main.c (get_gdb_program_name): Add definition.
2722
2723 2013-09-17 Doug Evans <dje@google.com>
2724
2725 * dwarf2read.c: Move definitions of complaint functions to after
2726 forward declarations of local functions.
2727
2728 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2729 Pedro Alves <palves@redhat.com>
2730
2731 PR gdb/11568
2732 * breakpoint.c (remove_threaded_breakpoints): New function.
2733 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2734 as thread_exit observer.
2735
2736 2013-09-17 Pedro Alves <palves@redhat.com>
2737
2738 PR gdb/15911
2739 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2740 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2741 * corelow.c (core_open):
2742 * frame.h (print_stack_frame, print_frame_info): New
2743 'set_current_sal' parameter.
2744 * infcmd.c (finish_command, kill_command): Adjust call to
2745 print_stack_frame.
2746 * inferior.c (inferior_command): Likewise.
2747 * infrun.c (normal_stop): Likewise.
2748 * linux-fork.c (linux_fork_context): Likewise.
2749 * record-full.c (record_full_goto_entry, record_full_restore):
2750 Likewise.
2751 * remote-mips.c (common_open): Likewise.
2752 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2753 Use it.
2754 (print_frame_info): New 'set_current_sal' parameter. Set the last
2755 displayed sal depending on the new paremeter instead of looking at
2756 print_what.
2757 (backtrace_command_1, select_and_print_frame, frame_command)
2758 (current_frame_command, up_command, down_command): Adjust call to
2759 print_stack_frame.
2760 * thread.c (print_thread_info, restore_selected_frame)
2761 (do_captured_thread_select): Adjust call to print_stack_frame.
2762 * tracepoint.c (tfind_1): Likewise.
2763 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2764 (mi_cmd_stack_info_frame): Likewise.
2765 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2766 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2767
2768 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2769
2770 * value.c (isvoid_internal_fn): Replace "parameter" with
2771 "argument".
2772
2773 2013-09-16 Stan Shebs <stan@codesourcery.com>
2774
2775 * README: Update references to writing code for GDB.
2776 * configure.ac (build_warnings): Remove obsolete comment.
2777 * configure: Regenerate.
2778 * gdbarch.sh: Remove references to gdbint.texinfo.
2779 * gdbarch.h: Regenerate.
2780 * gdbtypes.c (objfile_type): Remove comments referencing internals
2781 manual and D10V.
2782
2783 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2784
2785 * NEWS: Mention new convenience function $_isvoid.
2786 * value.c (isvoid_internal_fn): New function.
2787 (_initialize_values): Add new convenience function $_isvoid.
2788
2789 2013-09-16 Pierre Muller <muller@sourceware.org>
2790
2791 * arm-linux-tdep.c: Add "elf/common.h" header.
2792 Remove AT_HWCAP macro definintion as it is provided in
2793 added include file.
2794 * s390-tdep.c: Remove system header <elf.h>
2795 Add "elf/common.h" header for AT_HWCAP definition.
2796 (s390_core_read_description): Use correct CORE_ADDR
2797 for hwcap local variable used as third parameter
2798 of function target_auxv_search.
2799
2800 2013-09-14 Pierre Muller <muller@sourceware.org>
2801 Tom Tromey <tromey@redhat.com>
2802 Pedro Alves <palves@redhat.com>
2803
2804 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2805 mode if operating system doesn't know O_CLOEXEC.
2806
2807 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2808
2809 Code cleanup.
2810 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2811 inner block.
2812
2813 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2814
2815 * NEWS: Mention TDB support.
2816 * features/s390-tdb.xml: New file.
2817 * features/s390-te-linux64.xml: New file.
2818 * features/s390x-te-linux64.xml: New file.
2819 * features/Makefile (WHICH): Add new tdescs above.
2820 (s390-te-linux64-expedite): Set.
2821 (s390x-te-linux64-expedite): Set.
2822 * features/s390-te-linux64.c: New file (generated).
2823 * features/s390x-te-linux64.c: New file (generated).
2824 * regformats/s390-te-linux64.dat: New file (generated).
2825 * regformats/s390x-te-linux64.dat: New file (generated).
2826 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2827 (HWCAP_S390_TE): Likewise.
2828 (S390_TDB_DWORD0_REGNUM): Likewise.
2829 (S390_TDB_DWORD0_REGNUM): Likewise.
2830 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2831 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2832 (S390_TDB_ATIA_REGNUM): Likewise.
2833 (S390_TDB_R0_REGNUM): Likewise.
2834 (S390_TDB_R1_REGNUM): Likewise.
2835 (S390_TDB_R2_REGNUM): Likewise.
2836 (S390_TDB_R3_REGNUM): Likewise.
2837 (S390_TDB_R4_REGNUM): Likewise.
2838 (S390_TDB_R5_REGNUM): Likewise.
2839 (S390_TDB_R6_REGNUM): Likewise.
2840 (S390_TDB_R7_REGNUM): Likewise.
2841 (S390_TDB_R8_REGNUM): Likewise.
2842 (S390_TDB_R9_REGNUM): Likewise.
2843 (S390_TDB_R10_REGNUM): Likewise.
2844 (S390_TDB_R11_REGNUM): Likewise.
2845 (S390_TDB_R12_REGNUM): Likewise.
2846 (S390_TDB_R13_REGNUM): Likewise.
2847 (S390_TDB_R14_REGNUM): Likewise.
2848 (S390_TDB_R15_REGNUM): Likewise.
2849 (S390_NUM_REGS): Increase.
2850 (S390_IS_TDBREGSET_REGNUM): New macro.
2851 (s390_regmap_tdb): Declare.
2852 (s390_sizeof_tdbregset): Define.
2853 (tdesc_s390_te_linux64): Declare.
2854 (tdesc_s390x_te_linux64): Likewise.
2855 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2856 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2857 (s390_regmap_tdb): New regmap.
2858 (s390_supply_tdb_regset): New function.
2859 (s390_tdb_regset): New regset.
2860 (s390_linux64v2_regset_sections): Add TDB regset to list.
2861 (s390x_linux64v2_regset_sections): Likewise.
2862 (s390_regset_from_core_section): Recognize TDB core note section.
2863 (s390_core_read_description): If HWCAP indicates TE support,
2864 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2865 (s390_gdbarch_init): Handle TDB regset.
2866 (_initialize_s390_tdep): Initialize new tdescs.
2867 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2868 (have_regset_tdb): New variable.
2869 (s390_native_supply): Support register invalidation.
2870 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2871 (check_regset): Treat ENODATA as "regset exists".
2872 (s390_linux_fetch_inferior_registers): Add TDB.
2873 (s390_read_description): Check for TDB existence and select
2874 appropriate tdesc.
2875 * gdbserver/Makefile.in (clean): Add removal of new makefile
2876 targets.
2877 (s390-te-linux64.c): New makefile target.
2878 (s390x-te-linux64.c): Likewise.
2879 * gdbserver/configure.srv (srv_regobj): Append new objects
2880 s390-te-linux64.o and s390x-te-linux64.o.
2881 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2882 s390x-te-linux64.xml, and s390-tdb.xml.
2883 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2884 declaration.
2885 (tdesc_s390_te_linux64): Likewise.
2886 (init_registers_s390x_te_linux64): Likewise.
2887 (tdesc_s390x_te_linux64): Likewise.
2888 (s390_check_regset): Treat ENODATA as "regset exists".
2889 (s390_arch_setup): Add TDB regset support.
2890 (initialize_low_arch): Initialize registers for new tdescs.
2891
2892 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2893
2894 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2895 (S390_IS_FPREGSET_REGNUM): New macro.
2896 * s390-tdep.c (s390_dwarf_regmap): Make const.
2897 (regnum_is_gpr_full): New function for replacing repeated code.
2898 (s390_pseudo_register_name): Use it.
2899 (s390_pseudo_register_type): Likewise.
2900 (s390_pseudo_register_read): Likewise.
2901 (s390_pseudo_register_write): Likewise.
2902 (s390_unwind_pseudo_register): Likewise.
2903 (s390_regmap_gregset): New format for regmap.
2904 (s390x_regmap_gregset): Likewise.
2905 (s390_regmap_fpregset): Likewise.
2906 (s390_regmap_upper): Likewise.
2907 (s390_regmap_last_break): Likewise.
2908 (s390_regmap_system_call): Likewise.
2909 (s390_supply_regset): Adjust to new regmap format.
2910 (s390_collect_regset): Likewise.
2911 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2912 (s390_native_collect): Likewise.
2913 (supply_gregset): Likewise.
2914 (fill_gregset): Likewise.
2915 (supply_fpregset): Likewise.
2916 (fill_fpregset): Likewise.
2917 (fetch_regset): Likewise.
2918 (store_regset): Likewise.
2919 (s390_linux_fetch_inferior_registers): Likewise.
2920 (s390_linux_fetch_inferior_registers): Likewise.
2921
2922 2013-09-12 Andrew Pinski <apinski@cavium.com>
2923
2924 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2925
2926 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2927
2928 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2929
2930 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2931
2932 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2933
2934 2013-09-06 Pedro Alves <palves@redhat.com>
2935
2936 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2937 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2938 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2939 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2940 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2941 gdb_stdlog.
2942
2943 2013-09-06 Pedro Alves <palves@redhat.com>
2944
2945 * remote-sim.c (dump_mem): Constify buf parameter.
2946 gdbsim_xfer_inferior_memory): Rename to ...
2947 (gdbsim_xfer_memory): ... this. Adjust interface as
2948 target_xfer_partial helper.
2949 (gdbsim_xfer_partial): New function.
2950 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2951 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2952
2953 2013-09-06 Pedro Alves <palves@redhat.com>
2954
2955 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2956 host_address_to_string, and send debug output to gdb_stdlog.
2957
2958 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2959
2960 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2961 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2962 gdb_target_obs for cris target.
2963 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2964 (cris_gdbarch_init): Move calls to
2965 set_gdbarch_fetch_tls_load_module_address and
2966 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2967 Add call to gdbarch_init_osabi.
2968 * cris-linux-tdep.c: New file.
2969 * cris-tdep.h: New file.
2970
2971 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2972
2973 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2974 to deprecated_init_ui_hook.
2975
2976 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2977
2978 * cli/cli-interp.c (_initialize_cli_interp): Add a
2979 command_loop_proc to interp_procs.
2980 * event-top.c (cli_command_loop): Change signature to match
2981 interp_command_loop_ftype.
2982 * event-top.h (cli_command_loop): Same.
2983 * interps.c (interp_new): Require every interpreter to have a
2984 command_loop_proc.
2985 (current_interp_command_loop): Just call the command_loop_proc on
2986 the current interpreter.
2987 * tui/tui-interp.c (_initialize_tui_interp): Add a
2988 command_loop_proc to interp_procs.
2989
2990 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2991
2992 * cris-tdep.c (cris_gdbarch_init): Add call to
2993 get_gdbarch_fetch_tls_load_module_address.
2994
2995 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2996
2997 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2998 (cris_elf_gregset_t): Rename from elf_gregset_t.
2999 (crisv32_elf_gregset_t): Adjust.
3000 (cris_supply_gregset, fetch_core_registers): Adjust.
3001
3002 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3003
3004 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3005
3006 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3007
3008 * defs.h (deprecated_command_loop_hook): Remove, including
3009 references in comments.
3010 * interps.c (current_interp_command_loop): No longer use
3011 deprecated_command_loop_hook.
3012 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3013 setup.
3014 * top.c (deprecated_command_loop_hook): Remove.
3015
3016 2013-09-05 Pedro Alves <palves@redhat.com>
3017
3018 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3019 local is now int instead of ULONGEST. Print it with %d
3020 instead of paddress.
3021
3022 2013-09-05 Tristan Gingold <gingold@adacore.com>
3023
3024 * MAINTAINERS: Remove avr maintainership.
3025
3026 2013-09-05 Pedro Alves <palves@redhat.com>
3027
3028 * findvar.c (value_of_register): Rework in terms of
3029 value_of_register_lazy.
3030
3031 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3032
3033 * symfile.c (add_symbol_file_command): Remove trailing
3034 whitespaces and blank line after comment.
3035
3036 2013-09-05 Pedro Alves <palves@redhat.com>
3037
3038 * tui/tui-regs.c (tui_register_format): Don't look at the
3039 register's name here. Return string representing register
3040 value instead of storing it in the data element.
3041 (tui_get_register): Compare register string representations
3042 instead of register value states and contents.
3043
3044 2013-09-05 Pedro Alves <palves@redhat.com>
3045
3046 PR tui/15933
3047 * tui/tui-regs.c (tui_show_registers): Show registers of the
3048 selected frame, not the current frame.
3049
3050 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3051
3052 * MAINTAINERS (Write After Approval): Add myself to the list.
3053
3054 2013-09-04 Doug Evans <dje@google.com>
3055
3056 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3057 (queue_and_load_dwo_tu): New function.
3058 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3059 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3060 Make dependent_cu optional.
3061 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3062 and an older .gdb_index is in use, queue and load all its TUs too.
3063
3064 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3065
3066 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3067 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3068 variable search_flags.
3069 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3070 (OPF_RETURN_REALPATH): ... here.
3071 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3072 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3073 call. Twice.
3074 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3075 openp call.
3076 * solib.c (solib_find): Likewise. Four times.
3077 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3078 in the function comment and for the realpath_fptr variable.
3079 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3080 (find_and_open_source): Likewise. Twice.
3081 * symfile.c (symfile_bfd_open): Likewise, also twice.
3082
3083 2013-09-04 Doug Evans <dje@google.com>
3084
3085 * progspace.c (save_current_space_and_thread): Remove unnecessary
3086 call to save_current_inferior.
3087
3088 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3089
3090 * sh64-tdep.c (sh64_do_register): Return after printing message
3091 about unavailable register contents.
3092
3093 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3094 Pedro Alves <palves@redhat.com>
3095
3096 * symfile.c (add_symbol_file_command): Error out on unknown
3097 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3098 options and collapse into single conditional branch.
3099
3100 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3101
3102 * inf-child.c (inf_child_follow_fork): New parameter
3103 detach_fork.
3104 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3105 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3106 * inferior.h (detach_fork): Remove.
3107 * infrun.c (detach_fork): Adjust comment and make it
3108 static.
3109 (follow_fork): Pass detach_fork parameter to
3110 target_follow_fork.
3111 * linux-nat.c (linux_child_follow_fork): New parameter
3112 detach_fork.
3113 * target.c (target_follow_fork): New parameter detach_fork.
3114 Pass detach_fork as parameter and print its value.
3115 * target.h (struct target_ops) <to_follow_fork>: New int
3116 parameter.
3117 (target_follow_fork): New parameter detach_fork.
3118
3119 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3120
3121 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3122 Replace sec->bfd by sec->the_bfd_section->owner.
3123
3124 2013-09-03 Yao Qi <yao@codesourcery.com>
3125
3126 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3127 from linux_has_shared_address_space.
3128 (linux_has_shared_address_space): Call linux_is_uclinux.
3129 * linux-tdep.h (linux_is_uclinux): Declare.
3130 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3131 linux_is_uclinux.
3132
3133 2013-09-03 Yao Qi <yao@codesourcery.com>
3134
3135 * config/djgpp/fnchange.lst: Remove entry of
3136 i386-interix-nat.c and i386-interix-tdep.c.
3137 * configure.ac: Remove '*-*-interix*'.
3138 * configure: Re-generated.
3139 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3140 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3141 obsolete comments.
3142 * osabi.c (gdb_osabi_names): Remove "Interix".
3143
3144 2013-09-03 Yao Qi <yao@codesourcery.com>
3145
3146 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3147
3148 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3149
3150 * record.h (record_print_flag) <record_print_src_line,
3151 record_print_insn_range>: Rename into ...
3152 (record_print_flag) <record_print_src_line,
3153 record_print_insn_range>: ... this. Update all users.
3154
3155 2013-09-02 Pierre Muller <muller@sourceware.org>
3156
3157 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3158 error code.
3159
3160 2013-09-02 Pierre Muller <muller@sourceware.org>
3161
3162 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3163 by use of plongest function.
3164
3165 2013-09-02 Tristan Gingold <gingold@adacore.com>
3166
3167 * NEWS: Add entry mentioning support for native Windows x64
3168 SEH data.
3169
3170 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3171 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3172 (struct amd64_windows_frame_cache): New struct.
3173 (amd64_windows_w2gdb_regnum): New global.
3174 (pc_in_range, amd64_windows_frame_decode_epilogue)
3175 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3176 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3177 (amd64_windows_frame_this_id): New functions.
3178 (amd64_windows_frame_unwind): New static global.
3179 (amd64_windows_skip_prologue): New function.
3180 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3181 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3182 with amd64_windows_skip_prologue.
3183
3184 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3185
3186 GDB 7.6.1 released.
3187
3188 2013-08-30 Pedro Alves <palves@redhat.com>
3189
3190 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3191 SRC_AND_LOC.
3192
3193 2013-08-30 Pedro Alves <palves@redhat.com>
3194
3195 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3196 warning text.
3197
3198 2013-08-30 Pedro Alves <palves@redhat.com>
3199
3200 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3201 Adjust arguments to print_stack_frame.
3202
3203 2013-08-30 Pedro Alves <palves@redhat.com>
3204
3205 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3206
3207 2013-08-30 Pedro Alves <palves@redhat.com>
3208
3209 * frame.h (show_and_print_stack_frame): Delete declaration.
3210
3211 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3212
3213 PR python/15461
3214 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3215 (archpy_name): Check for valid architecture.
3216 (archpy_disassemble): Ditto.
3217
3218 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3219
3220 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3221 instead of "long long" in call to ptrace64.
3222
3223 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3224
3225 * mi/mi-interp.c (mi_command_loop): Change signature to match
3226 interp_command_loop_ftype.
3227 (mi1_command_loop): Remove.
3228 (mi2_command_loop): Remove.
3229 (mi3_command_loop): Remove.
3230 (mi_interpreter_resume): Remove setting of
3231 deprecated_command_loop_hook.
3232 (_initialize_mi_interp): Set mi_command_loop as the command loop
3233 callback.
3234
3235 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3236
3237 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3238 value_type.
3239
3240 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3241
3242 * value.c (allocate_value_contents): Make static.
3243 * value.h (allocate_value_contents): Remove prototype.
3244
3245 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3246
3247 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3248 of assembling value via allocate_value_lazy and attribute setter.
3249 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3250 assembling value via allocate_value_lazy and attribute setter.
3251 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3252 assembling value via allocate_value_lazy and attribute setter.
3253
3254 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3255
3256 * value.c (value_from_contents_and_address): Replace allocate_value and
3257 memcpy with value_from_contents.
3258
3259 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3260
3261 * python/py-framefilter.c (py_print_frame): Remove usage of
3262 PyString_AsString. Use python_string_to_host_string instead.
3263 Refactor function to work with a string as a new allocation
3264 instead of a pointer.
3265 (py_print_frame): Ditto.
3266 * python/lib/gdb/frames.py (return_list): Cain iterators together
3267 instead of adding them as a list.
3268 (_sort_list): Call return_list, and remove duplicate code.
3269 (execute_frame_filters): Convert iterator to a list with list().
3270 * python/lib/gdb/command/frame_filters.py
3271 (SetFrameFilterPriority._set_filter_priority): Convert priority
3272 attribute to an integer.
3273 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3274 wrapper function __next__.
3275 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3276 define as "str".
3277
3278 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3279
3280 PR python/15752
3281 * python/py-framefilter.c (apply_frame_filter): Check
3282 gdb_python_initialized. Exit if the Python frame-filter code
3283 cannot be initialized.
3284
3285 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3286
3287 PR cli/15842
3288 * top.c (print_gdb_version): Remove erroneous newline after help
3289 text.
3290
3291 2013-08-29 Yao Qi <yao@codesourcery.com>
3292
3293 * varobj.c (install_dynamic_child): Remove trailing space.
3294 Add one blank line after variable declaration.
3295
3296 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3297
3298 PR gdb/15415
3299 * corefile.c (get_exec_file): Use exec_filename.
3300 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3301 * exec.c (exec_close): Free EXEC_FILENAME.
3302 (exec_file_attach): New variable canonical_pathname. Use
3303 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3304 EXEC_FILENAME.
3305 * exec.h (exec_filename): New.
3306 * inferior.c (print_inferior, inferior_command): Use
3307 PSPACE_EXEC_FILENAME.
3308 * mi/mi-main.c (print_one_inferior): Likewise.
3309 * progspace.c (clone_program_space, print_program_space): Likewise.
3310 * progspace.h (struct program_space): New field pspace_exec_filename.
3311 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3312 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3313
3314 2013-08-28 Will Newton <will.newton@linaro.org>
3315
3316 * common/linux-ptrace.c: Include stdint.h unconditionally.
3317
3318 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3319
3320 Code cleanup.
3321 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3322
3323 2013-08-28 Yao Qi <yao@codesourcery.com>
3324 Pedro Alves <palves@redhat.com>
3325
3326 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3327 instead of stdio_fileopen.
3328 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3329 .Call stderr_fileopen instead of stdio_fileopen.
3330 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3331 [__MINGW32__] (stderr_file_fputs): New function.
3332 (stderr_fileopen): New function.
3333 * ui-file.h (stderr_fileopen): Declare.
3334
3335 2013-08-27 Doug Evans <dje@google.com>
3336
3337 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3338 (struct dwarf2_per_cu_data): Ditto.
3339 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3340 (process_imported_unit_die): Ditto.
3341 (follow_die_sig_1): Simplify assert.
3342
3343 2013-08-27 Pedro Alves <palves@redhat.com>
3344
3345 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3346 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3347 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3348 windows_xfer_memory directly.
3349 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3350
3351 2013-08-27 Pedro Alves <palves@redhat.com>
3352
3353 * darwin-nat.c (darwin_xfer_memory): Delete.
3354 (_initialize_darwin_inferior): Don't install a
3355 deprecated_xfer_memory method.
3356
3357 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3358 Yao Qi <yao@codesourcery.com>
3359
3360 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3361 (parse_no_frames_option): Remove.
3362 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3363 (mi_cmd_stack_list_args): Adjust.
3364 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3365 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3366 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3367 Caller update.
3368 (list_args_or_locals): New parameter 'skip_unavailable'.
3369 Handle it.
3370 * valprint.c (scalar_type_p): Rename to ...
3371 (val_print_scalar_type_p): ... this. Make extern.
3372 (val_print, value_check_printable): Adjust.
3373 * valprint.h (val_print_scalar_type_p): Declare.
3374 * value.c (value_entirely_unavailable): New function.
3375 * value.h (value_entirely_unavailable): Declare.
3376
3377 * NEWS: Mention the new option "--skip-unavailable" to MI
3378 commands '-stack-list-locals', '-stack-list-arguments' and
3379 '-stack-list-variables'.
3380
3381 2013-08-27 Yao Qi <yao@codesourcery.com>
3382
3383 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3384 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3385 options.
3386 * mi/mi-getopt.c (mi_getopt): Remove.
3387 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3388 'error_on_unknown'.
3389 (mi_getopt): Call mi_getopt_1.
3390 (mi_getopt_silent): New.
3391 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3392
3393 2013-08-26 Doug Evans <dje@google.com>
3394
3395 PR symtab/15885
3396 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3397 .gdb_index is in use.
3398 * symfile.c (reread_symbols): Reset objfile->sf.
3399
3400 * NEWS: Document "mt print objfiles" now takes optional regexp.
3401 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3402 regexp of objfiles to print.
3403 (_initialize_symmisc): Update doc string for "mt print objfiles".
3404
3405 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3406 missing debug info checks.
3407
3408 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3409 Ulrich Weigand <uweigand@de.ibm.com>
3410
3411 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3412 line tables generated by XLC compiled binaries.
3413
3414 2013-08-23 Doug Evans <dje@google.com>
3415
3416 * symmisc.c (dump_symtab): Delete prototype.
3417 (dump_msymbols, dump_objfile): Ditto.
3418 (maintenance_info_symtabs): Mark as dont_repeat.
3419 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3420
3421 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3422 debugging printf to better location.
3423
3424 2013-08-23 Pedro Alves <palves@redhat.com>
3425
3426 * target.c (target_read_live_memory): Change type of 'ret' local
3427 to LONGEST.
3428
3429 2013-08-23 Pedro Alves <palves@redhat.com>
3430
3431 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3432 (remote_read_bytes): Change return type to LONGEST, and adjust to
3433 return a target_xfer_error on error.
3434 (remote_xfer_memory): Delete.
3435 (remote_flash_write): Change type of 'ret' local to LONGEST.
3436 (remote_xfer_partial, remote_xfer_partial): Adjust.
3437 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3438
3439 2013-08-23 Pierre Muller <muller@sourceware.org>
3440
3441 ARI fix: Push # directives to start of line.
3442 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3443
3444 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3445
3446 PR gdb/15501
3447 * breakpoint.c (enable_command, disable_command): Iterate over
3448 all specified breakpoint locations.
3449
3450 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3451
3452 * common/linux-ptrace.c (linux_fork_to_function): Push #
3453 directives to the start of the line.
3454 (linux_check_ptrace_features): Fix warning message to use
3455 the "_" markup.
3456
3457 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3458
3459 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3460 nat/linux-waitpid.h.
3461 (linux-waitpid.o): New object file rule.
3462 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3463 (current_ptrace_options): Moved from linux-nat.c.
3464 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3465 parameters.
3466 (linux_fork_to_function): New function.
3467 (linux_grandchild_function): Likewise.
3468 (linux_child_function): Likewise.
3469 (linux_check_ptrace_features): New function, heavily
3470 based on linux-nat.c:linux_test_for_tracefork.
3471 (linux_enable_event_reporting): New function.
3472 (ptrace_supports_feature): Likewise.
3473 (linux_supports_tracefork): Likewise.
3474 (linux_supports_traceclone): Likewise.
3475 (linux_supports_tracevforkdone): Likewise.
3476 (linux_supports_tracesysgood): Likewise.
3477 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3478 gdbserver/linux-low.c.
3479 (linux_enable_event_reporting): New declaration.
3480 (linux_supports_tracefork): Likewise.
3481 (linux_supports_traceclone): Likewise.
3482 (linux_supports_tracevforkdone): Likewise.
3483 (linux_supports_tracesysgood): Likewise.
3484 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3485 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3486 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3487 * config/arm/linux.mh (NATDEPFILES): Likewise.
3488 * config/i386/linux.mh (NATDEPFILES): Likewise.
3489 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3490 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3491 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3492 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3493 * config/mips/linux.mh (NATDEPFILES): Likewise.
3494 * config/pa/linux.mh (NATDEPFILES): Likewise..
3495 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3496 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3497 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3498 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3499 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3500 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3501 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3502 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3503 ptrace's 4th argument's types.
3504 Check the type of PTRACE_TYPE_ARG4.
3505 * configure: Regenerate.
3506 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3507 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3508 (linux_supports_tracefork_flag): Remove.
3509 (linux_supports_tracesysgood_flag): Likewise.
3510 (linux_supports_tracevforkdone_flag): Likewise.
3511 (current_ptrace_options): Moved to
3512 common/linux-ptrace.c.
3513 (linux_tracefork_child): Remove.
3514 (my_waitpid): Remove.
3515 (linux_test_for_tracefork): Renamed to
3516 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3517 (linux_test_for_tracesysgood): Remove.
3518 (linux_supports_tracesysgood): Remove.
3519 (linux_supports_tracefork): Remove.
3520 (linux_supports_tracevforkdone): Remove.
3521 (linux_enable_tracesysgood): Remove.
3522 (linux_enable_event_reporting): Remove.
3523 (linux_init_ptrace): New function.
3524 (linux_child_post_attach): Call linux_init_ptrace.
3525 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3526 (linux_child_follow_fork): Call linux_supports_tracefork
3527 and linux_supports_tracevforkdone.
3528 (linux_child_insert_fork_catchpoint): Call
3529 linux_supports_tracefork.
3530 (linux_child_insert_vfork_catchpoint): Likewise.
3531 (linux_child_set_syscall_catchpoint): Call
3532 linux_supports_tracesysgood.
3533 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3534 * nat/linux-nat.h: New file.
3535 * nat/linux-waitpid.c: New file.
3536 * nat/linux-waitpid.h: New file.
3537
3538 2013-08-22 Samuel Bronson <naesten@gmail.com>
3539
3540 ARM Linux support for `catch syscall'.
3541 * syscalls/arm-linux.py: New file.
3542 * syscalls/arm-linux.xml: Likewise.
3543 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3544 (arm_linux_init_abi): Register the new function and syscall xml file.
3545 * data-directory/Makefile.in: Install the new syscall xml file.
3546 * NEWS: Brag about this.
3547
3548 2013-08-22 Pedro Alves <palves@redhat.com>
3549
3550 PR gdb/15871
3551 * corefile.c (target_xfer_memory_error): New function.
3552 (memory_error): Defer EIO to target_memory_error.
3553 (read_memory): Use target_xfer_partial, and handle finer-grained
3554 target xfer errors.
3555 * target.c (target_xfer_error_to_string): New function.
3556 (memory_xfer_partial_1): If memory is known to be
3557 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3558 (target_xfer_partial): Make extern.
3559 * target.h (enum target_xfer_error): New enum.
3560 (target_xfer_error_to_string): Declare function.
3561 (target_xfer_partial): Declare function.
3562 (struct target_ops) <xfer_partial>: Adjust describing comment.
3563
3564 2013-08-22 Alan Modra <amodra@gmail.com>
3565
3566 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3567 * configure.tgt: Likewise as targets.
3568
3569 2013-08-20 Doug Evans <dje@google.com>
3570
3571 * buildsym.c (subfile_stack): Move here from buildsym.h.
3572 (pending_macros): Ditto.
3573 (get_macro_table): New function.
3574 (buildsym_init): Initialize subfile_stack.
3575 * coffread.c (type_vector,type_vector_length): Moved here from
3576 buildsym.h.
3577 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3578 (coff_symtab_read): Use it.
3579 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3580 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3581 with call to get_macro_table.
3582 * stabsread.c (type_vector,type_vector_length): Moved here from
3583 buildsym.h.
3584 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3585 * buildsym.h (get_macro_table): Declare.
3586
3587 2013-08-20 Tom Tromey <tromey@redhat.com>
3588
3589 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3590 Update.
3591 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3592
3593 2013-08-20 Doug Evans <dje@google.com>
3594
3595 * blockframe.c: Remove #include "psymtab.h".
3596 * cp-support.c: Ditto.
3597 * source.c: Ditto.
3598 * stack.c: Ditto.
3599
3600 2013-08-20 Tom Tromey <tromey@redhat.com>
3601
3602 PR python/15816:
3603 * exceptions.h (return_mask): Now an enum.
3604 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3605 enum constants.
3606
3607 2013-08-20 Tom Tromey <tromey@redhat.com>
3608
3609 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3610 get_objfile_arch.
3611 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3612 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3613 * jit.c (jit_object_close_impl): Update.
3614 * jv-lang.c (get_dynamics_objfile): Update.
3615 * linespec.c (add_minsym): Use get_dynamics_objfile.
3616 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3617 (allocate_objfile): Don't initialize 'gdbarch' field.
3618 (get_objfile_arch): Update.
3619 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3620 moved from...
3621 (struct objfile) <gdbarch>: ... here. Remove.
3622 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3623 get_objfile_arch.
3624 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3625
3626 2013-08-20 Alan Modra <amodra@gmail.com>
3627
3628 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3629 for IBM long double nan and inf.
3630 (floatformat_is_negative, floatformat_classify,
3631 floatformat_mantissa): Similarly.
3632 (floatformat_ieee_single, floatformat_ieee_double,
3633 floatformat_ieee_quad, floatformat_arm_ext,
3634 floatformat_ia64_spill): Delete unused vars.
3635 (_initialize_doublest): Delete unused function.
3636 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3637 little-endian variants of floatformat_ibm_long_double.
3638
3639 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3640
3641 * Makefile.in (SFILES): Remove common/target-common.c and
3642 add target/waitstatus.c.
3643 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3644 target/resume.h, target/wait.h and target/waitstatus.h.
3645 (COMMON_OBS): Remove target-common.o and add
3646 waitstatus.o.
3647 (target-common.o): Remove.
3648 (waitstatus.o): New target object file.
3649 * common/target-common.c: Move contents to
3650 target/waitstatus.c and remove.
3651 * common/target-common.h: Move contents to other files and
3652 remove.
3653 (enum resume_kind: Move to target/resume.h.
3654 (TARGET_WNOHANG): Move to target/wait.h.
3655 (enum target_waitkind): Move to target/waitstatus.h.
3656 (struct target_waitstatus): Likewise.
3657 * target.h: Do not include target-common.h and
3658 include target/resume.h, target/wait.h and
3659 target/waitstatus.h.
3660 * target/resume.h: New file.
3661 * target/wait.h: New file.
3662 * target/waitstatus.h: New file.
3663 * target/waitstatus.c: New file.
3664
3665 2013-08-19 Pedro Alves <palves@redhat.com>
3666
3667 * linux-nat.c (linux_test_for_tracefork)
3668 (linux_test_for_tracesysgood, linux_child_follow_fork)
3669 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3670 (linux_nat_wait_1): Extend comment.
3671 (linux_async_pipe): Add comment.
3672
3673 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3674
3675 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3676 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3677 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3678 Update to account for fact that PC is now a pseudo-register.
3679 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3680 cases for RL78_PC_REGNUM.
3681
3682 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3683
3684 PR cli/15841
3685 * top.c (quit_force): Skip writing history file
3686 if input is not from terminal.
3687
3688 2013-08-14 Tom Tromey <tromey@redhat.com>
3689
3690 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3691 resultthreadlist>: New fields.
3692 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3693 (remote_get_threadlist, remote_threadlist_iterator): Use
3694 new fields. Remove static variables.
3695
3696 2013-08-14 Tom Tromey <tromey@redhat.com>
3697
3698 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3699 remote_watch_data_address>: New fields.
3700 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3701 (process_stop_reply, remote_wait_as)
3702 (remote_check_watch_resources, remote_stopped_data_address): Update.
3703
3704 2013-08-14 Tom Tromey <tromey@redhat.com>
3705
3706 * remote.c (struct remote_state) <async_client_callback,
3707 async_client_context>: New fields.
3708 (async_client_callback, async_client_context): Remove.
3709 (remote_async_serial_handler, remote_async): Update.
3710
3711 2013-08-14 Tom Tromey <tromey@redhat.com>
3712
3713 * remote.c (sizeof_pkt): Remove.
3714 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3715
3716 2013-08-14 Tom Tromey <tromey@redhat.com>
3717
3718 * remote.c (struct remote_state) <use_threadinfo_query,
3719 use_threadextra_query>: New fields.
3720 (remote_threads_info, remote_threads_extra_info)
3721 (remote_open_1): Update.
3722
3723 2013-08-14 Tom Tromey <tromey@redhat.com>
3724
3725 * remote.c (struct remote_state) <finished_object,
3726 finished_annex, finished_offset>: New fields.
3727 (remote_read_qxfer): Use remote_state fields; remove static
3728 variables.
3729
3730 2013-08-14 Tom Tromey <tromey@redhat.com>
3731
3732 * remote.c (struct remote_state) <last_sent_step>:
3733 New field.
3734 (last_sent_step): Remove.
3735 (remote_resume, remote_wait_as): Update.
3736
3737 2013-08-14 Tom Tromey <tromey@redhat.com>
3738
3739 * remote.c (struct remote_state) <last_sent_signal>:
3740 New field.
3741 (last_sent_signal): Remove.
3742 (new_remote_state, remote_resume, remote_wait_as): Update.
3743
3744 2013-08-14 Tom Tromey <tromey@redhat.com>
3745
3746 * remote.c (struct remote_state) <last_program_signals_packet>:
3747 New field.
3748 (last_program_signals_packet): Remove.
3749 (remote_program_signals, remote_open_1): Update.
3750
3751 2013-08-14 Tom Tromey <tromey@redhat.com>
3752
3753 * remote.c (struct remote_state) <last_pass_packet>:
3754 New field.
3755 (last_pass_packet): Remove.
3756 (remote_pass_signals, remote_open_1): Update.
3757
3758 2013-08-14 Tom Tromey <tromey@redhat.com>
3759
3760 * remote.c (struct remote_state) <remote_traceframe_number>:
3761 New field.
3762 (remote_traceframe_number): Remove.
3763 (new_remote_state, remote_open_1, set_remote_traceframe)
3764 (remote_trace_find): Update.
3765
3766 2013-08-14 Tom Tromey <tromey@redhat.com>
3767
3768 * remote.c (struct remote_state) <general_thread, continue_thread>:
3769 New fields.
3770 (general_thread, continue_thread): Remove.
3771 (record_currthread, set_thread, set_general_process)
3772 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3773 (extended_remote_mourn_1): Update.
3774
3775 2013-08-14 Tom Tromey <tromey@redhat.com>
3776
3777 * remote.c (struct remote_state) <remote_desc>: New field.
3778 (remote_desc): Remove.
3779 (remote_threads_info, remote_threads_extra_info, remote_close)
3780 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3781 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3782 (remote_hostio_send_command, remote_file_put, remote_file_get)
3783 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3784 (remote_async, remote_new_objfile, set_range_stepping): Update.
3785
3786 2013-08-14 Tom Tromey <tromey@redhat.com>
3787
3788 * remote.c (remote_state): Now a pointer.
3789 (get_remote_state_raw): Update.
3790 (new_remote_state): New function.
3791 (_initialize_remote): Use new_remote_state.
3792
3793 2013-08-14 Tom Tromey <tromey@redhat.com>
3794
3795 * remote.c (remote_protocol_features): Now const.
3796
3797 2013-08-14 Tom Tromey <tromey@redhat.com>
3798
3799 * remote.c (crc32_table, crc32): Remove.
3800 (remote_verify_memory): Use xcrc32.
3801
3802 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3803
3804 * value.h (create_internalvar_type_lazy): Adjust prototype
3805 declaration.
3806
3807 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3808
3809 * common/format.c (parse_format_string): Don't allow '#' flag for
3810 pointer arguments in format string.
3811
3812 2013-08-13 Pierre Muller <muller@sourceware.org>
3813
3814 * utils.c (init_page_info): Only call tgetnum function
3815 if rl_get_screen_size did not return useful values.
3816
3817 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3818
3819 PR breakpoints/15117
3820 * linespec.c (linespec_parse_basic): Check for convenience
3821 variable or history value while parsing.
3822
3823 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3824
3825 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3826 AVR.
3827 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3828 different signals between the generic Linux kernel implementation
3829 and AVR's.
3830 (avr_linux_gdb_signal_from_target): Delete.
3831 (avr_linux_gdb_signal_to_target): Delete.
3832 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3833
3834 2013-08-09 Doug Evans <dje@google.com>
3835
3836 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3837 entries.
3838
3839 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3840
3841 * linux-tdep.c: Define enum with generic signal numbers.
3842 (linux_gdb_signal_from_target): New function.
3843 (linux_gdb_signal_to_target): Likewise.
3844 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3845 methods to the functions above.
3846 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3847 (linux_gdb_signal_to_target): Likewise.
3848 * alpha-linux-tdep.c: Define new enum with signals different
3849 from generic Linux kernel.
3850 (alpha_linux_gdb_signal_from_target): New function.
3851 (alpha_linux_gdb_signal_to_target): Likewise.
3852 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3853 with the functions mentioned above.
3854 * avr-tdep.c: Define enum with differences between Linux kernel
3855 and AVR signals.
3856 (avr_linux_gdb_signal_from_target): New function.
3857 (avr_linux_gdb_signal_to_target): Likewise.
3858 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3859 the functions mentioned above.
3860 * sparc-linux-tdep.c: Define enum with differences between SPARC
3861 and generic Linux kernel signal numbers.
3862 (sparc32_linux_gdb_signal_from_target): New function.
3863 (sparc32_linux_gdb_signal_to_target): Likewise.
3864 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3865 to the functions defined above.
3866 * xtensa-linux-tdep.c: Define enum with differences between
3867 Xtensa and Linux kernel generic signals.
3868 (xtensa_linux_gdb_signal_from_target): New function.
3869 (xtensa_linux_gdb_signal_to_target): Likewise.
3870 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3871 to the functions defined above.
3872 * mips-linux-tdep.c: Define enum with differences between
3873 signals in MIPS and Linux kernel generic ones.
3874 (mips_gdb_signal_to_target): New function.
3875 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3876 only different signals from the Linux kernel generic.
3877 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3878 the functions defined above.
3879 * mips-linux-tdep.h (enum mips_signals): Remove.
3880
3881 2013-08-09 Pedro Alves <palves@redhat.com>
3882
3883 * avr-tdep.c (XMALLOC): Delete macro.
3884 * cli/cli-dump.c (XMALLOC): Delete macro.
3885
3886 2013-08-09 Pedro Alves <palves@redhat.com>
3887
3888 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3889 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3890 (fopen_with_cleanup, add_dump_command): Make static.
3891 * cli/cli-dump.h: Delete file.
3892 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3893 cli/cli-dump.h.
3894
3895 2013-08-09 Pedro Alves <palves@redhat.com>
3896
3897 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3898 error message.
3899
3900 2013-08-09 Pedro Alves <palves@redhat.com>
3901
3902 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3903 error message.
3904
3905 2013-08-09 Pedro Alves <palves@redhat.com>
3906
3907 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3908 (gcore_command): Use tilde_expand here, and when showing the
3909 filename to the user, show the expanded version.
3910
3911 2013-08-09 Yao Qi <yao@codesourcery.com>
3912
3913 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3914 'entryval' is set.
3915
3916 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3917
3918 * gcore.c (create_gcore_bfd): Use tilde_expand.
3919
3920 2013-08-08 Yao Qi <yao@codesourcery.com>
3921
3922 * frame.h (read_frame_local): Declare.
3923 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3924 read_frame_local.
3925 * stack.c (read_frame_local): New.
3926
3927 2013-08-08 Yao Qi <yao@codesourcery.com>
3928
3929 * mi/mi-cmd-stack.c: Update comments to function
3930 list_args_or_locals.
3931
3932 2013-08-07 Tom Tromey <tromey@redhat.com>
3933
3934 PR symtab/15028:
3935 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3936 (process_psymtab_comp_unit_reader): Use it.
3937 (process_psymtab_comp_unit): Update. Add "pretend_language"
3938 argument.
3939 (dwarf2_build_psymtabs_hard): Update.
3940 (scan_partial_symbols): Pass CU's language to
3941 process_psymtab_comp_unit.
3942
3943 2013-08-07 Tom Tromey <tromey@redhat.com>
3944
3945 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3946 (dwarf2_gdb_index_functions): Update.
3947 * psymtab.c (find_symbol_file_from_partial): Remove.
3948 (psym_functions): Update.
3949 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3950 Remove.
3951
3952 2013-08-07 Tom Tromey <tromey@redhat.com>
3953
3954 * symfile.c (set_initial_language): Look up "main" symbol
3955 and use its language.
3956 * symtab.c (find_main_filename): Remove.
3957 * symtab.h (find_main_filename): Remove.
3958
3959 2013-08-07 Tom Tromey <tromey@redhat.com>
3960
3961 * dwarf2read.c (recursively_compute_inclusions): Add
3962 "immediate_parent" argument. Set symtab's "user" field
3963 if not set.
3964 (compute_symtab_includes): Update.
3965
3966 2013-08-07 Tom Tromey <tromey@redhat.com>
3967
3968 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3969 when adding label symbols.
3970
3971 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3972 Ulrich Weigand <uweigand@de.ibm.com>
3973
3974 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3975 * configure.host (powerpc64-*-aix*): Likewise.
3976
3977 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3978 Ulrich Weigand <uweigand@de.ibm.com>
3979
3980 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3981 is defined.
3982 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3983 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3984 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3985 * configure.ac: Check for ptrace64.
3986 * configure, config.in: Regenerate.
3987
3988 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3989 Ulrich Weigand <uweigand@de.ibm.com>
3990
3991 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3992 Call ptrace64 instead of ptrace if defined.
3993 Add macro addr_ptr to take care of ptrace address argument.
3994 (pdc_read_regs): Likewise.
3995 (pdc_write_regs): Likewise.
3996 (aix_thread_resume): Likewise.
3997 (fetch_regs_kernel_thread): Likewise.
3998 (store_regs_kernel_thread): Likewise.
3999
4000 2013-08-07 Anton Blanchard <anton@samba.org>
4001
4002 * MAINTAINERS: Add myself to Write After Approval.
4003
4004 2013-08-05 Tom Tromey <tromey@redhat.com>
4005
4006 * aix-thread.c (_initialize_aix_thread): Use
4007 complete_target_initialization.
4008 * bsd-uthread.c (_initialize_bsd_uthread): Use
4009 complete_target_initialization.
4010 * dec-thread.c (_initialize_dec_thread): Use
4011 complete_target_initialization.
4012 * ravenscar-thread.c (_initialize_ravenscar): Use
4013 complete_target_initialization.
4014 * sol-thread.c (_initialize_sol_thread): Use
4015 complete_target_initialization.
4016 * spu-multiarch.c (_initialize_spu_multiarch): Use
4017 complete_target_initialization.
4018
4019 2013-08-05 Tom Tromey <tromey@redhat.com>
4020
4021 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4022 * ada-lang.c (ada_lookup_simple_minsym): Return
4023 bound_minimal_symbol.
4024 * ada-lang.h (ada_lookup_simple_minsym): Update.
4025 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4026 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4027 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4028 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4029 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4030 * minsyms.c (msymbol_objfile): Remove.
4031 (lookup_minimal_symbol_internal): New function, from
4032 lookup_minimal_symbol.
4033 (lookup_minimal_symbol): Rewrite using
4034 lookup_minimal_symbol_internal.
4035 (lookup_bound_minimal_symbol): New function.
4036 * minsyms.h (msymbol_objfile): Remove.
4037 (lookup_bound_minimal_symbol): Declare.
4038 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4039 * parse.c (write_exp_msymbol): Change parameter to a
4040 bound_minimal_symbol.
4041 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4042 * parser-defs.h (write_exp_msymbol): Update.
4043 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4044 * symfile.c (simple_read_overlay_table): Use
4045 lookup_bound_minimal_symbol.
4046 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4047 (search_symbols): Likewise.
4048 (print_msymbol_info): Take a bound_minimal_symbol argument.
4049 (symtab_symbol_info, rbreak_command): Update.
4050 * symtab.h (struct symbol_search) <msymbol>: Change type
4051 to bound_minimal_symbol.
4052 * valops.c (find_function_in_inferior): Use
4053 lookup_bound_minimal_symbol.
4054 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4055
4056 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4057
4058 Code cleanup.
4059 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4060 to ...
4061 (async_cleanup_sigint_signal_handler): ... this.
4062 (initialize_sigint_signal_handler): Remove declaration.
4063 (handle_remote_sigint): Rename the declaration to ...
4064 (async_handle_remote_sigint): ... this.
4065 (handle_remote_sigint_twice): Rename the declaration to ...
4066 (async_handle_remote_sigint_twice): ... this.
4067 (async_remote_interrupt, async_remote_interrupt_twice)
4068 (remote_interrupt): Remove the declarations.
4069 (remote_interrupt_twice): Rename the declaration ...
4070 (sync_remote_interrupt_twice): ... this.
4071 (sigint_remote_twice_token): Rename the variable to ...
4072 (async_sigint_remote_twice_token): ... this.
4073 (sigint_remote_token): Rename the variable to ...
4074 (async_sigint_remote_token): ... this.
4075 (initialize_sigint_signal_handler): Rename the function to ...
4076 (async_initialize_sigint_signal_handler): ... this. Update the name
4077 inside.
4078 (handle_remote_sigint): Rename the function to ...
4079 (async_handle_remote_sigint): ... this. Update the names inside.
4080 (handle_remote_sigint_twice): Rename the function to ...
4081 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4082 (cleanup_sigint_signal_handler): Rename the function to ...
4083 (async_cleanup_sigint_signal_handler): ... this.
4084 (remote_interrupt): Rename the function to ...
4085 (sync_remote_interrupt): this. Update the names inside.
4086 (remote_interrupt_twice): Rename the function to ...
4087 (sync_remote_interrupt_twice): this. Update the names inside.
4088 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4089 (_initialize_remote): Update the names inside.
4090
4091 2013-08-02 Tom Tromey <tromey@redhat.com>
4092
4093 PR symtab/15719:
4094 * breakpoint.c (update_watchpoint, watchpoint_check)
4095 (watch_command_1): Update.
4096 * eval.c (fetch_subexp_value): Add "preserve_errors"
4097 parameter.
4098 * ppc-linux-nat.c (check_condition): Update.
4099 * value.h (fetch_subexp_value): Update.
4100
4101 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4102
4103 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4104 add_file_handler.
4105
4106 2013-08-01 Doug Evans <dje@google.com>
4107
4108 PR symtab/15691
4109 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4110 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4111 Add assert of sig_entry->dwo_unit == NULL.
4112 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4113 had already been read.
4114 (read_signatured_type): Set per_cu.tu_read.
4115
4116 PR symtab/15695
4117 * valops.c (value_struct_elt): Add missing call to check_typedef.
4118 (value_find_oload_method_list): Ditto.
4119
4120 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4121 effectively, struct symbol_search **.
4122 (make_cleanup_free_search_symbols): Change arg to struct
4123 symbol_search **. All callers updated.
4124 (compare_search_syms): Compare symtab file name and block as well.
4125 (search_symbols_equal): New function.
4126 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4127 New args new_head, new_tail. Result is now void. Remove dups after
4128 sorting the symbols.
4129 (search_symbols): Sort all found symbols once, after all have been
4130 found, and remove duplicates. Simplify cleanup tracking of result.
4131 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4132
4133 Further workarounds for binutils/15021.
4134 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4135 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4136 Watch for duplicate symtabs coming from type units.
4137 (compute_symtab_includes): Update call to
4138 recursively_compute_inclusions. Build vector of included symtabs
4139 instead of per_cus.
4140 * symtab.h (symtab_ptr): New typedef.
4141 (DEF_VEC_P (symtab_ptr)): New VEC type.
4142 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4143 instead.
4144
4145 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4146
4147 * cli/cli-script.c (script_from_file): Remove use of
4148 error_pre_print.
4149 * main.c (captured_main): Remove use of error_pre_print and
4150 quit_pre_print.
4151 * utils.c (error_pre_print, quit_pre_print): Remove.
4152 * utils.h (error_pre_print, quit_pre_print): Likewise.
4153
4154 2013-08-01 Yao Qi <yao@codesourcery.com>
4155
4156 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4157 with mi_getopt.
4158 (mi_cmd_stack_list_variables): Likewise.
4159
4160 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4161
4162 * exceptions.c (deprecated_throw_reason): Remove.
4163 * exceptions.h (deprecated_throw_reason): Remove.
4164
4165 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4166
4167 * remote-mips.c (mips_error): Replace use of
4168 deprecated_throw_reason with throw_verror. Use the error message
4169 passed to mips_error as the error message for throw_verror.
4170
4171 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4172
4173 * monitor.c (monitor_interrupt_query): Replace use of
4174 deprecated_throw_reason with quit.
4175 * nto-procfs.c (interrupt_query): Likewise.
4176 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4177 * remote-mips.c (mips_kill): Likewise.
4178 * remote.c (interrupt_query): Likewise.
4179
4180 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4181
4182 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4183 with call to fatal.
4184
4185 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4186 Yao Qi <yao@codesourcery.com>
4187
4188 * tracepoint.c (trace_dump_command): Select the current frame.
4189
4190 2013-07-30 Doug Evans <dje@google.com>
4191
4192 * dwarf2read.c (process_queue): Add type signature to debug output.
4193
4194 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4195
4196 * value.c (value_fetch_lazy): Mark optimized out values as such
4197 rather than raising an error.
4198
4199 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4200
4201 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4202 before checking which bits of the parent, not the child, value are
4203 valid.
4204
4205 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4206
4207 PR gdb/15715
4208 * top.c: Include "filenames.h".
4209 (set_history_filename): New function.
4210 (init_main): Install it as set hook of the "set history filename"
4211 command.
4212
4213 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4214
4215 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4216 attribute parameter.
4217 (dwarf2_const_value_data): Constify struct attribute parameter.
4218 (dwarf2_const_value): Constify struct attribute parameter.
4219 (dwarf2_const_value_attr): Constify struct attribute parameter.
4220 (lookup_die_type): Constify struct attribute parameter.
4221 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4222 (follow_die_ref_or_sig): Constify struct attribute parameter.
4223 (follow_die_ref): Constify struct attribute parameter.
4224 (follow_die_sig): Constify struct attribute parameter.
4225 (get_DW_AT_signature_type): Constify struct attribute parameter.
4226 (get_type_unit_group): Constify struct attribute parameter.
4227 (fill_in_loclist_baton): Constify struct attribute parameter.
4228 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4229 (type_unit_group): Constify struct attribute parameter.
4230
4231 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4232
4233 * dwarf2read.c (attr_form_is_block): Make argument const.
4234 (attr_form_is_section_offset): Make argument const.
4235 (attr_form_is_constant): Make argument const.
4236 (attr_form_is_ref): Make argument const.
4237
4238 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4239
4240 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4241 All uses updated.
4242 (attr_form_is_ref): Moved below attr_form_is_constant.
4243
4244 2013-07-29 Doug Evans <dje@google.com>
4245
4246 * main.c (captured_command_loop): Tweak comment.
4247
4248 * target.c (target_async_permitted_1): Fix comment.
4249
4250 * symtab.c (iterate_over_some_symtabs): Add comment.
4251
4252 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4253
4254 2013-07-27 Yao Qi <yao@codesourcery.com>
4255
4256 * NEWS: Mention that GDBserver now supports hardware
4257 watchpoints on the MIPS GNU/Linux target.
4258
4259 2013-07-27 Yao Qi <yao@codesourcery.com>
4260
4261 * Makefile.in (HFILES_NO_SRCDIR): Add
4262 common/mips-linux-watch.h.
4263 (mips-linux-watch.o): New rule.
4264 * common/mips-linux-watch.c: New.
4265 * common/mips-linux-watch.h: New.
4266 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4267 * mips-linux-nat.c: Include mips-linux-watch.h.
4268 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4269 to common/mips-linux-watch.h.
4270 (MAX_DEBUG_REGISTER): Likewise.
4271 (enum pt_watch_style): Likewise.
4272 (struct mips32_watch_regs): Likewise.
4273 (struct mips64_watch_regs): Likewise.
4274 (struct pt_watch_regs): Likewise.
4275 (struct mips_watchpoint): Likewise.
4276 (mips_linux_watch_get_irw_mask): Move to
4277 common/mips-linux-watch.c.
4278 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4279 (mips_linux_watch_get_watchlo): Likewise.
4280 (mips_linux_watch_set_watchlo): Likewise.
4281 (mips_linux_watch_get_watchhi): Likewise.
4282 (mips_linux_watch_set_watchhi): Likewise.
4283 (mips_linux_read_watch_registers): Likewise.
4284 (mips_linux_watch_type_to_irw): Likewise.
4285 (mips_linux_stopped_data_address, fill_mask): Likewise.
4286 (mips_linux_watch_try_one_watch): Likewise.
4287 (mips_linux_watch_populate_regs): Likewise.
4288
4289 2013-07-27 Yao Qi <yao@codesourcery.com>
4290
4291 * mips-linux-nat.c (get_irw_mask): Rename to ...
4292 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4293 'set' to 'n'. Update function comment. All callers changed.
4294 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4295 function comment. All callers changed.
4296 (get_num_valid): Rename to ...
4297 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4298 'set' to 'n'. Update function comment. All callers changed.
4299 (get_watchlo): Rename to ...
4300 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4301 'set' to 'n'. Update function comment. All callers changed.
4302 (set_watchlo): Rename to ...
4303 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4304 'set' to 'n'. Update function comment. All callers changed.
4305 (get_watchhi): Rename to ...
4306 (mips_linux_watch_get_watchhi): ... this. Update function
4307 comment. All callers changed.
4308 (set_watchhi): Rename to ...
4309 (mips_linux_watch_set_watchhi): ... this. Update function
4310 comment. All callers changed.
4311 (mips_linux_read_watch_registers): Update function comment.
4312 Add new parameters 'lwpid', 'watch_readback', and
4313 'watch_readback_valid'. Update.
4314 (type_to_irw): Rename to ...
4315 (mips_linux_watch_type_to_irw): ... this. Update function
4316 comment. All callers changed.
4317 (fill_mask): Update function comment.
4318 (try_one_watch): Rename to ...
4319 (mips_linux_watch_try_one_watch): ... this. Change the type
4320 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4321 (populate_regs_from_watches): Rename to ...
4322 (mips_linux_watch_populate_regs): ... this. Add parameter
4323 'current_watches'. All callers changed.
4324
4325 2013-07-27 Yao Qi <yao@codesourcery.com>
4326
4327 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4328 the code.
4329 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4330 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4331 (struct pt_watch_regs): Likewise.
4332 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4333 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4334 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4335 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4336 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4337
4338 2013-07-27 Yao Qi <yao@codesourcery.com>
4339
4340 * breakpoint.h: Include break-common.h.
4341 (enum target_hw_bp_type): Move to ...
4342 * common/break-common.h: ... here. New.
4343
4344 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4345
4346 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4347 process group regardless of having tty on stdin.
4348
4349 2013-07-25 Doug Evans <dje@google.com>
4350
4351 * linux-fork.h (detach_fork): Delete.
4352
4353 2013-07-25 Tom Tromey <tromey@redhat.com>
4354
4355 PR remote/15256, PR remote/15266:
4356 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4357 * monitor.c (monitor_detach): Use unpush_target.
4358 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4359 * remote-mips.c (mips_detach): Use unpush_target. Don't
4360 call mips_close.
4361 * remote-sim.c (gdbsim_detach): Use unpush_target.
4362 * target.c (pop_target): Remove.
4363 (pop_all_targets_above): Don't call target_close.
4364 (target_close): Assert that the target is unpushed.
4365 * target.h (pop_target): Don't declare.
4366 * tracepoint.c (tfile_open): Use unpush_target.
4367
4368 2013-07-25 Tom Tromey <tromey@redhat.com>
4369
4370 * linux-thread-db.c (init_thread_db_ops): Call
4371 complete_target_initialization.
4372 (_initialize_thread_db): Don't call add_target.
4373 * target.c (complete_target_initialization): New function.
4374 (add_target_with_completer): Call it.
4375 * target.h (complete_target_initialization): Declare.
4376
4377 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4378
4379 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4380 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4381 (HPPANBSD_SIZEOF_GREGS): New define.
4382 (hppaobsd_supply_gregset): Handle additional registers.
4383 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4384 we provide more registers now.
4385 (hppabsd_supply_gregset): Supply additional registers.
4386 (hppabsd_collect_gregset): Collect additional registers.
4387
4388 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4389
4390 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4391 (hppabsd_dwarf2_frame_init_reg): New function.
4392 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4393
4394 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4395
4396 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4397 'z' format code. Remove error for optimized out values, standard
4398 code will handle these fine.
4399
4400 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4401
4402 * NEWS: Mention new 'z' formatter.
4403 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4404 (_initialize_printcmd): Mention 'z' formatter in help text of the
4405 'x' command.
4406
4407 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4408
4409 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4410 formatting.
4411
4412 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4413
4414 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4415 interface can evaluate arguments. Fallback to the old mode if it
4416 cannot.
4417 (create_exception_master_breakpoint): Likewise.
4418 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4419 (struct sym_probe_fns elf_probe_fns): Export function above to the
4420 probe interface.
4421 * probe.c (can_evaluate_probe_arguments): New function.
4422 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4423 function pointer.
4424 (can_evaluate_probe_arguments): New function prototype.
4425 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4426 probe interface can evaluate arguments. Fallback to the old mode
4427 if it cannot.
4428 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4429 interface can evaluate arguments. Warning the user if it cannot.
4430 (stap_can_evaluate_probe_arguments): New function.
4431 (struct probe_ops stap_probe_ops): Export function above to the
4432 probe interface.
4433 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4434 New function pointer.
4435
4436 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4437
4438 * Makefile.in (SFILES): Add common/target-common.c.
4439 Add common/target-common.h to headers.
4440 (COMMON_OBS): Add target-common.o.
4441 (target-common.o): New target.
4442 * linux-nat.h (resume_kind): Move to common/target-common.h.
4443 * target.c (target_waitstatus_to_string): Move to
4444 common/target-common.c.
4445 * target.h: Include target-common.h.
4446 (target_waitkind): Move to common/target-common.h.
4447 (target_waitstatus): Likewise.
4448 (TARGET_WNOHANG): Likewise.
4449 * common/target-common.c: New file.
4450 * common/target-common.h: New file.
4451
4452 2013-07-24 Doug Evans <dje@google.com>
4453
4454 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4455 a warning.
4456
4457 2013-07-23 Yao Qi <yao@codesourcery.com>
4458
4459 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4460 parameter 'gdbarch'.
4461 (i386_stack_tramp_frame_sniffer): Caller update.
4462 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4463 parameter 'gdbarch' and 'target'.
4464 (i386_linux_core_read_description): Caller update.
4465 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4466 Likewise.
4467 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4468 declaration.
4469
4470 2013-07-23 Tom Tromey <tromey@redhat.com>
4471
4472 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4473 2013-07-22.
4474
4475 2013-07-22 Doug Evans <dje@google.com>
4476
4477 * exec.h (remove_target_sections): Delete arg abfd.
4478 * exec.c (exec_close): Update call to remove_target_sections.
4479 (remove_target_sections): Delete arg abfd.
4480 * solib.c (update_solib_list): Ditto.
4481 (reload_shared_libraries_1): Ditto.
4482 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4483 * target.h (struct target_section): Rename key to owner.
4484 All uses updated.
4485
4486 2013-07-22 Tom Tromey <tromey@redhat.com>
4487
4488 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4489
4490 2013-07-22 Tom Tromey <tromey@redhat.com>
4491
4492 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4493 Simplify cleanup handling.
4494
4495 2013-07-22 Tom Tromey <tromey@redhat.com>
4496
4497 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4498 on all return paths.
4499
4500 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4501
4502 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4503 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4504 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4505
4506 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4507
4508 * top.c (print_gdb_version): Add help, apropos description and
4509 url to online documentation.
4510
4511 2013-07-19 Hui Zhu <hui@codesourcery.com>
4512
4513 PR gdb/15692
4514 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4515
4516 2013-07-19 Yao Qi <yao@codesourcery.com>
4517
4518 * target.c (update_current_target): Change the default action
4519 of 'to_traceframe_info' from tcomplain to return_zero.
4520 * target.h (struct target_ops) <to_traceframe_info>: Add more
4521 comments.
4522 * valops.c (read_value_memory): Call
4523 traceframe_available_memory unconditionally.
4524
4525 2013-07-18 Yao Qi <yao@codesourcery.com>
4526
4527 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4528 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4529 symbol without prefix. If found, set its type to
4530 'mst_solib_trampoline'.
4531
4532 2013-07-17 Doug Evans <dje@google.com>
4533
4534 * NEWS: Mention "set print raw frame-arguments".
4535 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4536 * stack.c (print_raw_frame_arguments): New static global.
4537 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4538 (_initialize_stack): New command "set/show print raw frame-arguments".
4539 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4540 (set_print_raw, show_print_raw): New functions.
4541 (_initialize_valprint): New prefix command "set/show print raw".
4542 * valprint.h (value_print_options): Improve comments.
4543
4544 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4545 of all *list variables.
4546
4547 * gdbcmd.h (togglelist): Delete.
4548 * cli/cli-cmds.c (togglelist): Delete.
4549 (init_cmd_lists): Update.
4550 * cli/cli-cmds.h (togglelist): Delete.
4551
4552 2013-07-17 Tom Tromey <tromey@redhat.com>
4553
4554 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4555 dwarf2_per_objfile.
4556
4557 2013-07-16 Doug Evans <dje@google.com>
4558
4559 * nto-tdep.c (nto_relocate_section_addresses): Update,
4560 target_section.bfd deleted.
4561 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4562 * s390-tdep.c (s390_load): Ditto.
4563 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4564
4565 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4566
4567 * common/format.c (parse_format_string): Add checks for NULL
4568 character before calling strchr.
4569
4570 2013-07-16 Doug Evans <dje@google.com>
4571
4572 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4573 temp_pathname argument.
4574 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4575 when opening the file fails.
4576
4577 * target.h (struct target_section): Delete member bfd.
4578 All users updated to use the_bfd_section->owner instead.
4579 * exec.c (add_to_section_table): Assert bfd is expected value.
4580 Remove initialization of target_section.bfd.
4581 (remove_target_sections): Update.
4582 (section_table_available_memory): Update.
4583 (section_table_xfer_memory_partial): Update.
4584 (print_section_info): Update.
4585 (exec_set_section_address): Update.
4586 * record-full.c (record_full_core_xfer_partial): Update.
4587 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4588 * solib-target.c (solib_target_relocate_section_addresses): Update.
4589 * symfile.c (build_section_addr_info_from_section_table): Update.
4590 * target.c (memory_xfer_live_readonly_partial): Update.
4591 (memory_xfer_partial_1): Update.
4592
4593 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4594
4595 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4596 now available for embedded (BookE) and server (BookS) processors,
4597 correct mentions of 'booke' and adjust comments accordingly in order to
4598 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4599 (have_ptrace_booke_interface): Rename function and variable
4600 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4601 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4602 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4603 'hwdebug_point_cmp'. Update all uses.
4604 (booke_find_thread_points_by_tid): Rename function
4605 'booke_find_thread_points_by_tid' to
4606 'hwdebug_find_thread_points_by_tid'. Update all uses.
4607 (booke_insert_point): Rename function 'booke_insert_point' to
4608 'hwdebug_insert_point'. Update all uses.
4609 (booke_remove_point): Rename function 'booke_remove_point' to
4610 'hwdebug_remove_point'. Update all uses.
4611
4612 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4613
4614 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4615 numbers with enum values.
4616
4617 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4618
4619 PR threads/13217
4620 * thread.c (thread_apply_all_command): Check for valid threads
4621 and thread count.
4622 (thread_array_cleanup): New struct.
4623 (set_thread_refcount): New function.
4624
4625 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4626
4627 * infcmd.c (default_print_one_register_info): Reuse function
4628 print_hex_chars.
4629
4630 2013-07-10 Tom Tromey <tromey@redhat.com>
4631
4632 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4633 (ada-exp.o): New target.
4634
4635 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4636
4637 * mt-tdep.c (mt_registers_info): Call
4638 get_no_prettyformat_print_options instead of
4639 get_raw_print_options (regression by last patch from Doug
4640 Evans).
4641
4642 2013-07-09 Pedro Alves <palves@redhat.com>
4643
4644 Checked in by Joel Brobecker <brobecker@adacore.com>.
4645 * ada-lang.c (coerce_unspec_val_to_type): Use
4646 value_optimized_out_const.
4647 * value.c (value_optimized_out_const): New function.
4648 * value.h (value_optimized_out_const): New declaration.
4649
4650 2013-07-09 Doug Evans <dje@google.com>
4651
4652 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4653 Enum values rename as well. All uses updated.
4654 * valprint.h (value_print_options): Rename member pretty to
4655 pretty format. Rename member prettyprint_arrays to
4656 prettyformat_arrays. Rename member prettyprint_structs to
4657 prettyformat_structs. All uses updated.
4658 (get_no_prettyformat_print_options): Renamed from
4659 get_raw_print_options.
4660 * valprint.c (get_no_prettyformat_print_options): Renamed from
4661 get_raw_print_options. All callers updated.
4662 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4663 All callers updated.
4664 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4665 All callers updated.
4666 (_initialize_valprint): Improve help text for "set print pretty" and
4667 "set print arrays".
4668
4669 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4670
4671 * value.c (value_bits_valid): Revert previous change, and change
4672 by Pedro on 2013-07-04, due to regressions in
4673 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4674
4675 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4676 Pedro Alves <palves@redhat.com>
4677
4678 * value.c (value_bits_valid): If the value is not lval_computed
4679 or has no check validity handler then the answer is the
4680 optimized_out flag, otherwise defer to the handler.
4681
4682 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4683
4684 * top.c (print_gdb_configuration): Explain in output of
4685 --configuration what does "relocatable" mean.
4686
4687 * main.c (print_gdb_help): Regroup options in the --help text.
4688 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4689 the relevant discussions.
4690
4691 2013-07-06 Yao Qi <yao@codesourcery.com>
4692
4693 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4694 Remove parameter 'lsal'.
4695 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4696 to inner block. Caller update.
4697 (base_breakpoint_create_breakpoints_sal): Update.
4698 (bkpt_create_breakpoints_sal): Likewise.
4699 (tracepoint_create_breakpoints_sal): Likewise.
4700 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4701 element 0 of vector 'canonical->sals'.
4702
4703 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4704
4705 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4706 register number instead of the pseudo register one.
4707 (rs6000_dwarf2_reg_to_regnum): Likewise.
4708
4709 2013-07-04 Pedro Alves <palves@redhat.com>
4710
4711 * findvar.c (value_of_register): Use allocate_optimized_out_value
4712 if the register has been optimized out, instead of
4713 set_value_optimized_out.
4714 * frame-unwind.c (frame_unwind_got_optimized): Use
4715 allocate_optimized_out_value.
4716
4717 2013-07-04 Pedro Alves <palves@redhat.com>
4718
4719 * value.c (value_bits_valid): If the value is not lval_computed,
4720 or doesn't have a check_validity hook, assume the value is entirely
4721 valid.
4722
4723 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4724
4725 * stack.c (read_frame_arg): No longer fetch lazy values.
4726 * value.c (value_optimized_out): If the value is not already
4727 marked optimized out, and is lazy then fetch it.
4728 (value_primitive_field): Move optimized out check to later in the
4729 function, after we have loaded any lazy values.
4730 (value_fetch_lazy): Use optimized out flag directly rather than
4731 calling optimized_out method.
4732
4733 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4734
4735 * valops.c: Don't include "user-regs.h".
4736 (value_fetch_lazy): Moved to value.c.
4737 * value.c: Include "user-regs.h".
4738 (value_fetch_lazy): Moved from valops.c.
4739
4740 2013-07-04 Yao Qi <yao@codesourcery.com>
4741
4742 Revert:
4743 2013-06-27 Yao Qi <yao@codesourcery.com>
4744
4745 * common/create-version.sh: Update comments. Handle the case
4746 that TARGET_ALIAS is empty.
4747
4748 2013-07-03 Pedro Alves <palves@redhat.com>
4749
4750 * Makefile.in (config.status): Depend on development.sh.
4751 (aclocal_m4_deps): Add libmcheck.m4.
4752 * acinclude.m4: Include libmcheck.m4.
4753 * configure.ac: Source development.sh instead of setting
4754 'development' here. --enable-libmcheck/--disable-libmcheck code
4755 factored out to GDB_AC_LIBMCHECK. Run it.
4756 * development.sh: New file.
4757 * libmcheck.m4: New file.
4758 * configure: Regenerate.
4759
4760 2013-07-02 Tom Tromey <tromey@redhat.com>
4761
4762 * contrib/ari/update-web-ari.sh: Update for version.in change.
4763
4764 2013-07-02 Tom Tromey <tromey@redhat.com>
4765
4766 * common/ptid.h: Comment fixes.
4767
4768 2013-07-01 Tom Tromey <tromey@redhat.com>
4769
4770 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4771 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4772 (dwarf2_read_index, create_all_comp_units): Update.
4773
4774 2013-07-01 Tom Tromey <tromey@redhat.com>
4775
4776 * configure.ac (build_warnings): Add -Wold-style-definition.
4777 * configure: Rebuild.
4778 * machoread.c (_initialize_machoread): Use "(void)".
4779 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4780 use "(void)".
4781
4782 2013-07-01 Tom Tromey <tromey@redhat.com>
4783
4784 * configure.ac (build_warnings): Add -Wold-style-declaration.
4785 * configure: Rebuild.
4786 * dsrec.c (make_srec): Use "static const", not "const static".
4787 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4788 not "const static".
4789 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4790 Use "static const", not "const static".
4791 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4792 not "const static".
4793 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4794 not "const static".
4795 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4796 not "const static".
4797 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4798 not "const static".
4799 (v850_dbtrap_breakpoint_from_pc): Likewise.
4800 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4801 not "const static".
4802
4803 2013-07-01 Tom Tromey <tromey@redhat.com>
4804
4805 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4806 * configure: Rebuild.
4807
4808 2013-07-01 Pedro Alves <palves@redhat.com>
4809
4810 * defs.h: Include "pathmax.h".
4811 * utils.c: Don't include sys/param.h.
4812 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4813 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4814 instead of MAXPATHLEN.
4815 * solib-sunos.c: Don't include sys/param.h.
4816 * xcoffread.c: Don't include sys/param.h.
4817 * bsd-kvm.c: Don't include sys/param.h.
4818 * darwin-nat.c: Don't include sys/param.h.
4819 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4820 * darwin-nat-info.c: Don't include sys/param.h.
4821 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4822 MAXPATHLEN.
4823 * i386obsd-nat.c: Don't include sys/param.h.
4824 * inf-child.c: Don't include sys/param.h.
4825 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4826 * linux-fork.c: Don't include sys/param.h.
4827 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4828 * linux-nat.c: Don't include sys/param.h.
4829 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4830 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4831 * m68klinux-nat.c: Don't include sys/param.h.
4832 * nbsd-nat.c: Don't include sys/param.h.
4833 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4834 * ppc-linux-nat.c: Don't include sys/param.h.
4835 * rs6000-nat.c: Don't include sys/param.h.
4836 * spu-linux-nat.c. Don't include sys/param.h.
4837 * windows-nat.c: Don't include sys/param.h.
4838 * xtensa-linux-nat.c: Don't include sys/param.h.
4839 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4840
4841 2013-07-01 Pedro Alves <palves@redhat.com>
4842
4843 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4844 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4845 * gnulib/aclocal.m4: Regenerate.
4846 * gnulib/config.in: Regenerate.
4847 * gnulib/configure: Regenerate.
4848 * gnulib/import/pathmax.h: New file.
4849 * gnulib/import/Makefile.am: Regenerate.
4850 * gnulib/import/Makefile.in: Regenerate.
4851 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4852 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4853 * gnulib/import/m4/pathmax.m4: New file.
4854
4855 2013-07-01 Pedro Alves <palves@redhat.com>
4856
4857 * configure.ac (GDBINIT): Define, depending on host.
4858 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4859 * top.c (PATH_MAX): Delete fallback definition.
4860 (GDBINIT_FILENAME): Delete.
4861 (gdbinit): Reimplement as const char array set to the GDBINIT
4862 string constant.
4863 * top.h (gdbinit): Make const.
4864 * configure, config.in: Regenerate.
4865
4866 2013-07-01 Pedro Alves <palves@redhat.com>
4867
4868 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4869 * cli/cli-cmds.h (source_script): Likewise.
4870 * exceptions.c (catch_command_errors_const): New function.
4871 * exceptions.h (catch_command_errors_const): Declare.
4872 * main.c (get_init_files): Make parameters const, and adjust.
4873 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4874 'local_gdbinit' locals const. Adjust to use
4875 catch_command_errors_const.
4876 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4877 'local_gdbinit' locals const.
4878
4879 2013-07-01 Pedro Alves <palves@redhat.com>
4880
4881 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4882 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4883 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4884 <unistd.h>.
4885
4886 2013-07-01 Pedro Alves <palves@redhat.com>
4887
4888 Import the "unistd" gnulib module.
4889 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4890 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4891 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4892 import/m4/unistd_h.m4.
4893 * gnulib/aclocal.m4: Renenerate.
4894 * gnulib/config.in: Renenerate.
4895 * gnulib/configure: Renenerate.
4896 * gnulib/import/Makefile.am: Renenerate.
4897 * gnulib/import/Makefile.in: Renenerate.
4898 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4899 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4900 * gnulib/import/m4/off_t.m4: New file.
4901 * gnulib/import/m4/ssize_t.m4: New file.
4902 * gnulib/import/m4/sys_types_h.m4: New file.
4903 * gnulib/import/m4/unistd_h.m4: New file.
4904 * gnulib/import/sys_types.in.h: New file.
4905 * gnulib/import/unistd.c: New file.
4906 * gnulib/import/unistd.in.h: New file.
4907
4908 2013-07-01 Pedro Alves <palves@redhat.com>
4909
4910 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4911 defined instead of checking HAVE_UNISTD_H.
4912
4913 2013-07-01 Pedro Alves <palves@redhat.com>
4914
4915 Reimport gnulib from scratch.
4916 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4917 import/m4/onceonly.m4.
4918 * gnulib/aclocal.m4: Renegerate.
4919 * gnulib/config.in: Renegerate.
4920 * gnulib/configure: Renegerate.
4921 * gnulib/import/Makefile.in: Renegerate.
4922 * gnulib/import/extra/update-copyright: Renegerate.
4923 * gnulib/import/m4/onceonly.m4: Delete.
4924
4925 2013-07-01 Pedro Alves <palves@redhat.com>
4926
4927 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4928
4929 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4930
4931 Code cleanup.
4932 * remote.c (async_remote_interrupt_twice): Make it static.
4933 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4934
4935 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4936
4937 * ia64-linux-tdep.c: Include <ctype.h>.
4938 (ia64_linux_stap_is_single_operand): New function.
4939 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4940
4941 2013-06-28 Tom Tromey <tromey@redhat.com>
4942
4943 * Makefile.in (version.c): Use version.in, not
4944 common/version.in.
4945 * common/create-version.sh: Likewise.
4946 * common/version.in: Move...
4947 * version.in: ...here.
4948
4949 2013-06-28 Pedro Alves <palves@redhat.com>
4950
4951 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4952 here.
4953 * utils.h (pagination_enabled): Declare.
4954
4955 2013-06-28 Pedro Alves <palves@redhat.com>
4956
4957 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4958 Move higher up in file.
4959
4960 2013-06-28 Tom Tromey <tromey@redhat.com>
4961
4962 * tracepoint.c (deprecated_readline_begin_hook)
4963 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4964 declare.
4965
4966 2013-06-28 Pedro Alves <palves@redhat.com>
4967
4968 PR tui/14880
4969 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4970 checking if they're available.
4971 * value.c (value_available_contents_eq): Change comment.
4972 * value.h (value_available_contents_eq): Expand comment.
4973
4974 2013-06-27 Tom Tromey <tromey@redhat.com>
4975
4976 * target.c (find_run_target): Remove.
4977 * target.h (find_run_target): Remove.
4978
4979 2013-06-27 Tom Tromey <tromey@redhat.com>
4980
4981 * corelow.c (core_gdbarch): Now static.
4982
4983 2013-06-27 Tom Tromey <tromey@redhat.com>
4984
4985 * target.c (target_struct_index): Remove.
4986
4987 2013-06-27 Pedro Alves <palves@redhat.com>
4988
4989 * infrun.c: Remove comment describing the 'stepping over runtime
4990 loader dynamic symbol resolution code' mechanism; moved to
4991 gdbint.texinfo.
4992
4993 2013-06-27 Pedro Alves <palves@redhat.com>
4994
4995 * exceptions.c (catch_command_errors): Remove spurious space.
4996 * exceptions.h (catch_command_errors): Second parameter is "arg",
4997 not "command".
4998
4999 2013-06-27 Yao Qi <yao@codesourcery.com>
5000
5001 * common/create-version.sh: Update comments. Handle the case
5002 that TARGET_ALIAS is empty.
5003
5004 2013-06-26 Pedro Alves <palves@redhat.com>
5005
5006 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5007 comment.
5008
5009 2013-06-26 Pedro Alves <palves@redhat.com>
5010
5011 * infrun.c: Update comments on stepping over runtime loader
5012 dynamic symbol resolution code.
5013
5014 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5015
5016 * ax-gdb.h (union exp_element): Forward declare.
5017 * parser-defs.h: Include expression.h.
5018
5019 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5020
5021 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5022
5023 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5024
5025 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5026
5027 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5028
5029 Fix trace-status to output proper start-time and stop-time.
5030 * tracepoint.c (trace_status_command): Fix type of printf arg to
5031 prevent improper type conversion.
5032 (trace_status_mi): Likewise.
5033
5034 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5035
5036 * mips-tdep.c (mips_next_pc): Fix a typo.
5037
5038 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5039
5040 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5041
5042 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5043 Yao Qi <yao@codesourcery.com>
5044
5045 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5046 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5047 * mi/mi-main.c (print_variable_or_computed): New function.
5048 (mi_cmd_trace_frame_collected): New function.
5049 * tracepoint.c (find_trace_state_variable_by_number): New.
5050 (struct traceframe_info): Move to tracepoint.h
5051 (struct collection_list): Likewise.
5052 (do_collect_symbol): Include locals and arguments in the
5053 collected variables list.
5054 (clear_collection_list): Clear wholly collected variables list
5055 and computed variables list.
5056 (append_exp): New function.
5057 (encode_actions_1): Include variables in the wholly
5058 collected variables list. Include memory ranges and
5059 full-fledged expressions in the computed expressions list.
5060 (encode_actions): Move some code to ...
5061 Return the cleanup chain.
5062 (encode_actions_rsp): ... here. New function.
5063 (get_traceframe_location, get_traceframe_info): Remove static.
5064 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5065 (struct collection_list): Moved from tracepoint.c. Add two
5066 new fields 'wholly_collected' and 'computed'.
5067 (find_trace_state_variable_by_number): Declare.
5068 (encode_actions): Adjust declaration.
5069 (encode_actions_rsp): Declare.
5070 (get_traceframe_info, get_traceframe_location): Declare.
5071
5072 * NEWS: Mention new MI command -trace-frame-collected.
5073
5074 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5075 Yao Qi <yao@codesourcery.com>
5076
5077 * ctf.c (ctf_traceframe_info): Push trace state variables
5078 present in the trace data into the traceframe info object.
5079 * breakpoint.c (DEF_VEC_I): Remove.
5080 * common/filestuff.c (DEF_VEC_I): Likewise.
5081 * dwarf2loc.c (DEF_VEC_I): Likewise.
5082 * mi/mi-main.c (DEF_VEC_I): Likewise.
5083 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5084 * features/traceframe-info.dtd: Add tvar element and its
5085 attributes.
5086 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5087 (build_traceframe_info): Push trace state variables present in
5088 the trace data into the traceframe info object.
5089 (traceframe_info_start_tvar): New function.
5090 (tvar_attributes): New.
5091 (traceframe_info_children): Add "tvar" element.
5092 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5093
5094 * NEWS: Mention the change in GDB and GDBserver.
5095
5096 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5097 Yao Qi <yao@codesourcery.com>
5098
5099 * tracepoint.c (trace_dump_command): Move code to ...
5100 (get_traceframe_location): ... here. New.
5101
5102 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5103 Yao Qi <yao@codesourcery.com>
5104
5105 * tracepoint.c (trace_dump_command): GDB emits an error
5106 instead of a warning when a traceframe is not selected.
5107
5108 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5109 Yao Qi <yao@codesourcery.com>
5110
5111 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5112 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5113 in collection_list.
5114 (do_clear_collection_list, init_collection_list): New.
5115 (encode_actions): Add local variables 'tracepoint_list' and
5116 'stepping_list'. Call init_collection_list and make cleanup
5117 which calls do_clear_collection_list. Don't call
5118 clear_collection_list.
5119 (_initialize_tracepoint): Delete references to
5120 'tracepoint_list' and 'stepping_list'.
5121
5122 2013-06-25 Tom Tromey <tromey@redhat.com>
5123
5124 * common/create-version.sh (date): Use "$", not "$$" in sed
5125 expression.
5126
5127 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5128
5129 * NEWS (New targets): Add entry for TI MSP430.
5130
5131 2013-06-25 Yao Qi <yao@codesourcery.com>
5132
5133 * remote.c (remote_start_remote): Move code to upload tsv
5134 earlier.
5135
5136 2013-06-25 Yao Qi <yao@codesourcery.com>
5137 Hui Zhu <hui@codesourcery.com>
5138 Pedro Alves <palves@redhat.com>
5139
5140 PR breakpoints/15075
5141 PR breakpoints/15434
5142 * breakpoint.c (bpstat_stop_status): Call
5143 b->ops->after_condition_true.
5144 (update_dprintf_command_list): Don't append "continue" command
5145 to the command list of dprintf breakpoint.
5146 (base_breakpoint_after_condition_true): New function.
5147 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5148 (dprintf_after_condition_true): New function.
5149 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5150 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5151
5152 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5153
5154 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5155 (ALLDEPFILES): Add msp430-tdep.c.
5156 * configure.tgt (msp430*-*-elf): New target.
5157 * msp430-tdep.c: New file.
5158
5159 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5160
5161 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5162 microMIPS synthetic symbols.
5163
5164 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5165
5166 * objfiles.h (pc_in_section): New prototype.
5167 (in_plt_section): Remove name argument, replace prototype with
5168 static inline function.
5169 * mips-tdep.h: Include "objfiles.h".
5170 (in_mips_stubs_section): New function.
5171 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5172 in_solib_call_trampoline member.
5173 (hppa_in_solib_call_trampoline): Remove name argument.
5174 * objfiles.c (pc_in_section): New function.
5175 (in_plt_section): Remove function.
5176 * mips-linux-tdep.c: Include "objfiles.h".
5177 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5178 name argument. Return 1 rather than the low 16-bit halfword of
5179 any instruction examined.
5180 (mips_linux_in_dynsym_resolve_code): Update
5181 mips_linux_in_dynsym_stub call accordingly.
5182 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5183 rather than an equivalent hand-coded sequence.
5184 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5185 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5186 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5187 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5188 in_opd_section.
5189 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5190 on call to tdep->in_solib_call_trampoline.
5191 (hppa_in_solib_call_trampoline): Remove name argument, update
5192 according to in_plt_section change.
5193 (hppa_skip_trampoline_code): Update according to in_plt_section
5194 change.
5195 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5196 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5197 Likewise.
5198 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5199 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5200 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5201 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5202 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5203 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5204 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5205 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5206 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5207 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5208 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5209 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5210 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5211
5212 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5213
5214 * common/create-version.sh: Fix expansion of $host_alias
5215 and $target_alias in generation of HOST_NAME and TARGET_NAME
5216 (resp.).
5217
5218 2013-06-24 Tom Tromey <tromey@redhat.com>
5219
5220 * common/create-version.sh: New file.
5221 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5222 create-version.sh.
5223 (HFILES_NO_SRCDIR): Use common/version.h.
5224 * version.in: Move to ...
5225 * common/version.in: ... here. Replace date with "DATE".
5226 * version.h: Move to ...
5227 * common/version.h: ... here.
5228
5229 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5230
5231 * gdb/gnulib/Makefile.in: Update date in copyright header.
5232 * gdb/gnulib/configure.ac: Ditto.
5233 * gdb/gnulib/update-gnulib.sh: Ditto.
5234
5235 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5236
5237 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5238 "gdb/gnulib/import".
5239
5240 2013-06-21 Will Newton <will.newton@linaro.org>
5241
5242 * doublest.c (ldfrexp): Remove function.
5243 (convert_doublest_to_floatformat): Call frexpl instead of
5244 ldfrexp.
5245
5246 2013-06-21 Will Newton <will.newton@linaro.org>
5247
5248 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5249 * gnulib/aclocal.m4: Regenerate.
5250 * gnulib/config.in: Regenerate.
5251 * gnulib/configure: Regenerate.
5252 * gnulib/import/Makefile.am: Update.
5253 * gnulib/import/Makefile.in: Update.
5254 * gnulib/import/m4/gnulib-cache.m4: Update.
5255 * gnulib/import/m4/gnulib-comp.m4: Update.
5256 * gnulib/import/float+.h: Import.
5257 * gnulib/import/float.c: Import.
5258 * gnulib/import/float.in.h: Import.
5259 * gnulib/import/fpucw.h: Import.
5260 * gnulib/import/frexp.c: Import.
5261 * gnulib/import/frexpl.c: Import.
5262 * gnulib/import/isnan.c: Import.
5263 * gnulib/import/isnand-nolibm.h: Import.
5264 * gnulib/import/isnand.c: Import.
5265 * gnulib/import/isnanl-nolibm.h: Import.
5266 * gnulib/import/isnanl.c: Import.
5267 * gnulib/import/itold.c: Import.
5268 * gnulib/import/m4/exponentd.m4: Import.
5269 * gnulib/import/m4/exponentl.m4: Import.
5270 * gnulib/import/m4/float_h.m4: Import.
5271 * gnulib/import/m4/fpieee.m4: Import.
5272 * gnulib/import/m4/frexp.m4: Import.
5273 * gnulib/import/m4/frexpl.m4: Import.
5274 * gnulib/import/m4/isnand.m4: Import.
5275 * gnulib/import/m4/isnanl.m4: Import.
5276 * gnulib/import/m4/math_h.m4: Import.
5277 * gnulib/import/math.c: Import.
5278 * gnulib/import/math.in.h: Import.
5279
5280 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5281
5282 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5283 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5284 signature_INTEL_edx comparisons.
5285
5286 2013-06-20 Doug Evans <dje@google.com>
5287
5288 symtab/15652
5289 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5290 All callers updated.
5291 (open_dwp_file): If we can't find the dwp file, search the basename
5292 in debug-file-directory.
5293
5294 * dwarf2read.c (struct dwp_file): Fix comment.
5295 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5296
5297 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5298 better.
5299
5300 2013-06-20 Yao Qi <yao@codesourcery.com>
5301
5302 * breakpoint.c (create_breakpoint): Fix code indentation.
5303
5304 2013-06-20 Yao Qi <yao@codesourcery.com>
5305
5306 * breakpoint.c (create_breakpoints_sal_default): Remove
5307 parameter 'lsal'. Update declaration.
5308 (bkpt_create_breakpoints_sal): Caller update.
5309 (tracepoint_create_breakpoints_sal): Likewise.
5310
5311 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5312 Yao Qi <yao@codesourcery.com>
5313
5314 * NEWS: Mention the new option '--skip-unavailable' of command
5315 -data-list-register-values.
5316 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5317 --skip-unavailable option. Adjust to use output_register.
5318 (output_register): Add new 'skip_unavailable' parameter.
5319 Handle it.
5320
5321 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5322
5323 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5324 common/i386-gcc-cpuid.h.
5325 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5326 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5327 Copy the latest version from upstream gcc.
5328 * common/linux-btrace.c: Include i386-cpuid.h.
5329 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5330 call to i386_cpuid.
5331 (cpu_supports_btrace): Likewise.
5332 * go32-nat.c: Include i386-cpuid.h.
5333 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5334
5335 2013-06-19 Doug Evans <dje@google.com>
5336
5337 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5338 (get_section_index): Ditto.
5339
5340 2013-06-19 Tom Tromey <tromey@redhat.com>
5341
5342 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5343 "dprintf" help.
5344
5345 2013-06-18 Doug Evans <dje@google.com>
5346
5347 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5348 before using it.
5349 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5350 Move test of cu_index closer to use. Print complaint if cu_index
5351 is bad.
5352
5353 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5354
5355 * machoread.c (oso_vector): Delete this global.
5356 (macho_register_oso): Add new parameter "oso_vector_ptr".
5357 Use it instead of the "oso_vector" global.
5358 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5359 (macho_symfile_read): Use a local oso_vector, to be free'ed
5360 at the end of this function, in place of the old "oso_vector"
5361 global. Update various function calls accordingly. Use one
5362 single cleanup chain for the entire function.
5363
5364 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5365
5366 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5367 DWARF2_PER_OBJFILE by uses of DATA instead.
5368
5369 2013-06-18 Tom Tromey <tromey@redhat.com>
5370
5371 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5372 argument.
5373 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5374 Special case signals other than GDB_SIGNAL_TRAP.
5375 (explains_signal_watchpoint): New function.
5376 (base_breakpoint_explains_signal): Add 'sig' argument.
5377 (initialize_breakpoint_ops): Set 'explains_signal' method for
5378 watchpoints.
5379 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5380 signal argument.
5381 (bpstat_explains_signal): Likewise.
5382 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5383
5384 2013-06-18 Tom Tromey <tromey@redhat.com>
5385
5386 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5387
5388 2013-06-18 Tom Tromey <tromey@redhat.com>
5389
5390 * python/python.c (finish_python_initialization): Decref
5391 'pythondir' on failure path as well.
5392
5393 2013-06-18 Tom Tromey <tromey@redhat.com>
5394
5395 PR symtab/15391:
5396 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5397 after taking bits_to_skip into account. Sign extend byte_offset.
5398 * utils.h (gdb_sign_extend): Declare.
5399 * utils.c (gdb_sign_extend): New function.
5400
5401 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5402
5403 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5404
5405 2013-06-17 Pierre Muller <muller@sourceware.org>
5406
5407 * corelow.c (core_open): Print GDB signal name instead of target
5408 signal number.
5409
5410 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5411
5412 * .gitignore: Add /gcore.
5413
5414 2013-06-13 Doug Evans <dje@google.com>
5415
5416 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5417 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5418
5419 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5420
5421 * stack.c (backtrace_command_1): Fix indentation.
5422
5423 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5424
5425 * window-nat.c (thread_rec): Add missing empty line after
5426 local variable declaration.
5427
5428 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5429
5430 * windows-nat.c (thread_rec): Revert format used to print
5431 error code returned by SuspendThread from %d back to %u.
5432
5433 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5434
5435 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5436 ID in debug trace.
5437 (get_windows_debug_event): Likewise, for all debug traces.
5438
5439 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5440
5441 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5442 warning message.
5443
5444 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5445 Yao Qi <yao@codesourcery.com>
5446
5447 * mi/mi-main.c (get_register): Remove declaration.
5448 (output_register): Declare.
5449 (mi_cmd_data_list_register_values): Remove local variable
5450 'tuple_cleanup'. Move some code into output_register.
5451 (get_register): Renamed to ...
5452 (output_register): ... this. Output the register's
5453 "number" ui_out tuple here.
5454
5455 2013-06-07 Pedro Alves <palves@redhat.com>
5456
5457 * darwin-nat.c: Fix formating in copyright header.
5458 * darwin-nat.h: Likewise.
5459 * gnu-nat.c: Likewise.
5460 * machoread.c: Likewise.
5461
5462 2013-06-07 Pedro Alves <palves@redhat.com>
5463
5464 PR server/14823
5465 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5466 static. Output a global target description pointer.
5467 (init_registers_${name}): Adjust to initialize a
5468 target description structure.
5469
5470 2013-06-07 Will Newton <will.newton@linaro.org>
5471
5472 * printcmd.c (build_address_symbolic): Call
5473 gdbarch_addr_bits_remove for text minimal symbols.
5474
5475 2013-06-07 Will Newton <will.newton@linaro.org>
5476
5477 * MAINTAINERS: Add myself to Write After Approval.
5478
5479 2013-06-07 Yao Qi <yao@codesourcery.com>
5480
5481 * tracepoint.c (start_tracing): Move code to ...
5482 (trace_reset_local_state): ... here. New.
5483 (disconnect_tracing): Don't call set_current_traceframe,
5484 set_tracepoint_num, and set_traceframe_context. Call
5485 trace_reset_local_state instead.
5486 (tfile_close): Call trace_reset_local_state.
5487 * ctf.c (ctf_close): Likewise.
5488 * remote.c (remote_close): Likewise.
5489 * tracepoint.h (trace_reset_local_state): Declare.
5490
5491 2013-06-06 Doug Evans <dje@google.com>
5492
5493 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5494 and fix header docs.
5495
5496 2013-06-05 Doug Evans <dje@google.com>
5497 Keith Seitz <keiths@redhat.com>
5498
5499 PR 15519
5500 * cp-namespace.c (find_symbol_in_baseclass): Call
5501 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5502 Check result of call to lookup_symbol_static.
5503 Call lookup_static_symbol_aux unconditionally.
5504 Call check_typedef on base types before accessing them.
5505 (cp_lookup_nested_symbol): Fix comment.
5506
5507 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5508
5509 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5510 minimal symbols pointing to function descriptors.
5511
5512 2013-06-05 Tom Tromey <tromey@redhat.com>
5513
5514 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5515
5516 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5517 Pedro Alves <palves@redhat.com>
5518
5519 * remote.c (remote_wait_as): Restore signal handler before returning
5520 when GDB gets a notification.
5521
5522 2013-06-04 Gary Benson <gbenson@redhat.com>
5523
5524 PR 2328
5525 * breakpoint.h (handle_solib_event): Moved function declaration
5526 to solib.h.
5527 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5528 (bpstat_stop_status): Pass new argument to handle_solib_event.
5529 * solib.h (update_solib_breakpoints): New function declaration.
5530 (handle_solib_event): Moved function declaration from
5531 breakpoint.h.
5532 * solib.c (update_solib_breakpoints): New function.
5533 (handle_solib_event): Moved function from breakpoint.c.
5534 Updated to call solib_ops->handle_event if not NULL.
5535 * solist.h (target_so_ops): New fields "update_breakpoints" and
5536 "handle_event".
5537 * infrun.c (set_stop_on_solib_events): New function.
5538 (_initialize_infrun): Use the above for "set
5539 stop-on-solib-events".
5540 (handle_inferior_event): Pass new argument to handle_solib_event.
5541 * solib-svr4.c (probe.h): New include.
5542 (svr4_free_library_list): New forward declaration.
5543 (probe_action): New enum.
5544 (probe_info): New struct.
5545 (probe_info): New static variable.
5546 (NUM_PROBES): New definition.
5547 (svr4_info): New fields "using_xfer", "probes_table" and
5548 "solib_list".
5549 (free_probes_table): New function.
5550 (free_solib_list): New function.
5551 (svr4_pspace_data_cleanup): Free probes table and solib list.
5552 (svr4_copy_library_list): New function.
5553 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5554 (svr4_read_so_list): New parameter "prev_lm".
5555 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5556 (svr4_current_sos): New function.
5557 (probe_and_action): New struct.
5558 (hash_probe_and_action): New function.
5559 (equal_probe_and_action): Likewise.
5560 (register_solib_event_probe): Likewise.
5561 (solib_event_probe_at): Likewise.
5562 (solib_event_probe_action): Likewise.
5563 (solist_update_full): Likewise.
5564 (solist_update_incremental): Likewise.
5565 (disable_probes_interface_cleanup): Likewise.
5566 (svr4_handle_solib_event): Likewise.
5567 (svr4_update_solib_event_breakpoint): Likewise.
5568 (svr4_update_solib_event_breakpoints): Likewise.
5569 (svr4_create_solib_event_breakpoints): Likewise.
5570 (enable_break): Free probes table before creating breakpoints.
5571 Use svr4_create_solib_event_breakpoints to create breakpoints.
5572 (svr4_solib_create_inferior_hook): Free the solib list.
5573 (_initialize_svr4_solib): Initialise
5574 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5575
5576 2013-06-04 Gary Benson <gbenson@redhat.com>
5577
5578 * target.h (target_ops): New field
5579 "to_augmented_libraries_svr4_read".
5580 (target_augmented_libraries_svr4_read): New macro.
5581 * target.c (update_current_target): Handle
5582 to_augmented_libraries_svr4_read.
5583 * remote.c (remote_state): New field
5584 "augmented_libraries_svr4_read".
5585 (remote_augmented_libraries_svr4_read_feature): New function.
5586 (remote_protocol_features): Add entry for
5587 "augmented-libraries-svr4-read".
5588 (remote_augmented_libraries_svr4_read): New function.
5589 (init_remote_ops): Initialize
5590 remote_ops.to_augmented_libraries_svr4_read.
5591
5592 2013-06-04 Gary Benson <gbenson@redhat.com>
5593
5594 * NEWS: Update.
5595
5596 2013-06-04 Gary Benson <gbenson@redhat.com>
5597
5598 * objfiles.h (inhibit_section_map_updates): New function
5599 declaration.
5600 (resume_section_map_updates): Likewise.
5601 (resume_section_map_updates_cleanup): Likewise.
5602 * objfiles.c (objfile_pspace_info): Removed field
5603 "objfiles_changed_p". New fields "new_objfiles_available",
5604 "section_map_dirty" and "inhibit_updates".
5605 (allocate_objfile): Set new_objfiles_available.
5606 (free_objfile): Set section_map_dirty.
5607 (objfile_relocate1): Likewise.
5608 (in_plt_section): Likewise.
5609 (find_pc_section): Update the conditions under which the
5610 section map will be updated.
5611 (inhibit_section_map_updates): New function.
5612 (resume_section_map_updates): Likewise.
5613 (resume_section_map_updates_cleanup): Likewise.
5614
5615 2013-06-04 Gary Benson <gbenson@redhat.com>
5616
5617 * probe.h (get_probe_argument_count): New declaration.
5618 (evaluate_probe_argument): Likewise.
5619 * probe.c (get_probe_argument_count): New function.
5620 (evaluate_probe_argument): Likewise.
5621 (probe_safe_evaluate_at_pc): Use the above new functions.
5622
5623 2013-06-04 Alan Modra <amodra@gmail.com>
5624
5625 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5626 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5627 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5628 target mem reads on optional insns.
5629 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5630 ppc_insns_match_pattern calls.
5631 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5632 Add match for power7 thread safety insns, and new order of
5633 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5634 invocation in comment, and update rest of comment.
5635 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5636 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5637 (ppc64_standard_linkage2_target): Update insn offsets.
5638 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5639 stubs first. Update calls.
5640
5641 2013-06-04 Yao Qi <yao@codesourcery.com>
5642
5643 * solib.c (solib_find): Don't need dir separator if path has
5644 drive spec.
5645
5646 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5647
5648 Revert (indirectly causes a SIGSEGV):
5649 * machoread.c (macho_symfile_read): Assign first cleanup to
5650 'back_to'.
5651
5652 2013-06-03 Yao Qi <yao@codesourcery.com>
5653
5654 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5655 mi-parse.c. Make them static.
5656 (mi_all_values): Likewise.
5657 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5658 mi_parse_print_values. Make it external.
5659 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5660 Remove the declarations.
5661 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5662 * mi/mi-parse.h (mi_parse_print_values): Declare.
5663 * mi/mi-cmd-stack.c: Include mi-parse.h.
5664 (parse_print_values): Remove
5665 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5666 of parse_print_values.
5667 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5668
5669 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5670 Yao Qi <yao@codesourcery.com>
5671
5672 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5673 (encode_actions): Move code to ...
5674 (all_tracepoint_actions_and_cleanup): ... here. New.
5675 (trace_dump_command): Likewise.
5676
5677 2013-05-30 Tom Tromey <tromey@redhat.com>
5678
5679 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5680
5681 2013-05-30 Tom Tromey <tromey@redhat.com>
5682
5683 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5684 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5685 'old_chain' argument. Add 'parser_result' argument.
5686 (gdb_xml_create_parser_and_cleanup): Remove old version.
5687 (gdb_xml_parse_quick): Update.
5688 (xml_process_xincludes): Update.
5689 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5690 declare.
5691
5692 2013-05-30 Tom Tromey <tromey@redhat.com>
5693
5694 * probe.c (collect_probes): Check arguments for NULL before
5695 calling compile_rx_or_error.
5696 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5697 Remove NULL return.
5698
5699 2013-05-30 Tom Tromey <tromey@redhat.com>
5700
5701 * infrun.c (adjust_pc_after_break): Introduce an outer null
5702 cleanup.
5703
5704 2013-05-30 Tom Tromey <tromey@redhat.com>
5705
5706 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5707
5708 2013-05-30 Tom Tromey <tromey@redhat.com>
5709
5710 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5711 for 'old_chain'. Do not check 'head' before processing
5712 cleanups.
5713
5714 2013-05-30 Tom Tromey <tromey@redhat.com>
5715
5716 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5717 "cleanup_tuple".
5718
5719 2013-05-30 Tom Tromey <tromey@redhat.com>
5720
5721 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5722 inner scope. Unconditionally call do_cleanups.
5723
5724 2013-05-30 Tom Tromey <tromey@redhat.com>
5725
5726 * source.c (find_and_open_source): Call do_cleanups.
5727
5728 2013-05-30 Tom Tromey <tromey@redhat.com>
5729
5730 * linux-thread-db.c (thread_db_load_search): Unconditionally
5731 call do_cleanups.
5732
5733 2013-05-30 Tom Tromey <tromey@redhat.com>
5734
5735 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5736 for 'cleanup'; instead use a later one.
5737
5738 2013-05-30 Tom Tromey <tromey@redhat.com>
5739
5740 * python/py-breakpoint.c (bppy_get_commands): Use
5741 explicit, unconditional return.
5742 * python/py-frame.c (frapy_read_var): Likewise.
5743 * python/python.c (gdbpy_decode_line): Likewise.
5744
5745 2013-05-30 Tom Tromey <tromey@redhat.com>
5746
5747 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5748 do_cleanups on all return paths.
5749
5750 2013-05-30 Tom Tromey <tromey@redhat.com>
5751
5752 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5753
5754 2013-05-30 Tom Tromey <tromey@redhat.com>
5755
5756 * stabsread.c (read_struct_type): Call do_cleanups along
5757 all return paths.
5758
5759 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5760
5761 * mips-linux-tdep.c: Adjust formatting throughout.
5762
5763 2013-05-30 Tom Tromey <tromey@redhat.com>
5764
5765 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5766 along all return paths.
5767
5768 2013-05-30 Tom Tromey <tromey@redhat.com>
5769
5770 * symfile.c (find_separate_debug_file): Call do_cleanups
5771 along all return paths.
5772
5773 2013-05-30 Tom Tromey <tromey@redhat.com>
5774
5775 * symtab.c (search_symbols): Introduce a null cleanup for
5776 'retval_chain'.
5777
5778 2013-05-30 Tom Tromey <tromey@redhat.com>
5779
5780 * python/py-value.c (valpy_binop): Call do_cleanups before
5781 exiting loop.
5782
5783 2013-05-30 Tom Tromey <tromey@redhat.com>
5784
5785 * python/py-prettyprint.c (print_children): Remove extra
5786 do_cleanups call.
5787
5788 2013-05-30 Tom Tromey <tromey@redhat.com>
5789
5790 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5791 all return paths.
5792
5793 2013-05-30 Tom Tromey <tromey@redhat.com>
5794
5795 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5796 along all return paths.
5797
5798 2013-05-30 Tom Tromey <tromey@redhat.com>
5799
5800 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5801 call do_cleanups.
5802
5803 2013-05-30 Tom Tromey <tromey@redhat.com>
5804
5805 * varobj.c (c_value_of_root): Call do_cleanups along all
5806 return paths.
5807
5808 2013-05-30 Tom Tromey <tromey@redhat.com>
5809
5810 * tracepoint.c (trace_dump_command): Unconditionally call
5811 do_cleanups.
5812
5813 2013-05-30 Tom Tromey <tromey@redhat.com>
5814
5815 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5816 do_cleanups earlier.
5817
5818 2013-05-30 Tom Tromey <tromey@redhat.com>
5819
5820 * machoread.c (macho_symfile_read): Assign first cleanup to
5821 'back_to'.
5822
5823 2013-05-30 Tom Tromey <tromey@redhat.com>
5824
5825 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5826
5827 2013-05-30 Tom Tromey <tromey@redhat.com>
5828
5829 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5830
5831 2013-05-30 Tom Tromey <tromey@redhat.com>
5832
5833 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5834 call discard_cleanups.
5835 (inf_ptrace_attach): Likewise.
5836
5837 2013-05-30 Tom Tromey <tromey@redhat.com>
5838
5839 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5840 return paths.
5841 (mips_initialize): Likewise.
5842 (common_open): Call do_cleanups.
5843
5844 2013-05-30 Tom Tromey <tromey@redhat.com>
5845
5846 * utils.c (internal_vproblem): Call do_cleanups.
5847
5848 2013-05-30 Tom Tromey <tromey@redhat.com>
5849
5850 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5851
5852 2013-05-30 Tom Tromey <tromey@redhat.com>
5853
5854 * cli/cli-script.c (setup_user_args): Don't return after error.
5855
5856 2013-05-30 Tom Tromey <tromey@redhat.com>
5857
5858 * somread.c (som_symtab_read): Call do_cleanups.
5859
5860 2013-05-30 Tom Tromey <tromey@redhat.com>
5861
5862 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5863
5864 2013-05-30 Tom Tromey <tromey@redhat.com>
5865
5866 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5867 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5868 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5869 * source.c (show_substitute_path_command): Call do_cleanups.
5870 (unset_substitute_path_command, set_substitute_path_command):
5871 Likewise.
5872 * symfile.c (load_command): Call do_cleanups.
5873
5874 2013-05-30 Tom Tromey <tromey@redhat.com>
5875
5876 * contrib/cleanup_check.py: New file.
5877 * contrib/gcc-with-excheck: Add option parsing.
5878
5879 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5880
5881 * windows-nat.c (windows_delete_thread): Add missing space
5882 in cast expression.
5883
5884 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5885
5886 * inferior.c (top level): Include tilde.h.
5887 (add_inferior_command): Call tilde_expand on the value of 'exec'
5888 argument.
5889
5890 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5891 Yao Qi <yao@codesourcery.com>
5892
5893 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5894 Caller update.
5895 (encode_actions): Likewise.
5896 * remote.c (remote_download_tracepoint): Caller update.
5897 * tracepoint.h (encode_actions): Update declaration.
5898
5899 2013-05-30 Pedro Alves <palves@redhat.com>
5900
5901 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5902 pointer.
5903
5904 2013-05-30 Yao Qi <yao@codesourcery.com>
5905
5906 * remote.c (remote_check_symbols): Remove unused parameter
5907 'objfile'.
5908 Declaration update.
5909 (remote_start_remote, remote_new_objfile): Caller update.
5910
5911 2013-05-30 Yao Qi <yao@codesourcery.com>
5912
5913 * mi/mi-cmds.c (mi_cmds): Define MI command
5914 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5915 DEF_MI_CMD_CLI.
5916
5917 2013-05-29 Pedro Alves <palves@redhat.com>
5918
5919 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5920 (remote_insert_watchpoint, remote_remove_watchpoint)
5921 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5922 (remote_verify_memory, compare_sections_command)
5923 (remote_search_memory): Set the general process/thread on the
5924 remote side.
5925
5926 2013-05-29 Pedro Alves <palves@redhat.com>
5927
5928 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5929 (_initialize_aarch64_tdep): Don't call
5930 initialize_tdesc_aarch64_without_fpu.
5931 * features/Makefile (WHICH): Remove reference to
5932 aarch64-without-fpu.
5933 * features/aarch64-without-fpu.c: Delete file.
5934 * regformats/aarch64-without-fpu.dat: Delete file.
5935
5936 2013-05-28 Yao Qi <yao@codesourcery.com>
5937
5938 * tracepoint.c (stringify_collection_list): Remove parameter
5939 'string'.
5940 (encode_actions): Caller update. Remove local variables.
5941
5942 2013-05-24 Yao Qi <yao@codesourcery.com>
5943
5944 * tracepoint.c (TFILE_PID): Remove.
5945 (tfile_open): Don't add thread and inferior.
5946 (tfile_close): Don't set 'inferior_ptid'. Don't call
5947 exit_inferior_silent.
5948 (tfile_thread_alive): Remove.
5949 (init_tfile_ops): Don't set field 'to_thread_alive' of
5950 tfile_ops.
5951
5952 2013-05-23 Doug Evans <dje@google.com>
5953
5954 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5955
5956 2013-05-23 Pedro Alves <palves@redhat.com>
5957
5958 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5959 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5960 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5961 Only define if HAVE_SOCKETS is defined.
5962 * configure.ac: Check for sys/socket.h.
5963 * config.in, configure: Regenerate.
5964
5965 2013-05-23 Pedro Alves <palves@redhat.com>
5966
5967 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5968 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5969 printing uint32_t variables.
5970
5971 2013-05-23 Pedro Alves <palves@redhat.com>
5972
5973 * NEWS: Mention GDBserver range stepping support.
5974
5975 2013-05-23 Yao Qi <yao@codesourcery.com>
5976 Pedro Alves <palves@redhat.com>
5977
5978 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5979 field.
5980 * infcmd.c (step_once, until_next_command): Enable range stepping.
5981 * infrun.c (displaced_step_prepare): Disable range stepping.
5982 (resume): Disable range stepping if stepping over a breakpoint or
5983 we have software watchpoints. If range stepping is enabled,
5984 assert the thread is in the stepping range.
5985 (clear_proceed_status_thread): Clear may_range_step.
5986 (handle_inferior_event): Disable range stepping as soon as we know
5987 the thread that hit the event. Re-enable it whenever we're going
5988 to step with a step range.
5989 * remote.c (struct vCont_action_support) <r>: New field.
5990 (use_range_stepping): New global.
5991 (remote_vcont_probe): Handle 'r' action.
5992 (append_resumption): Append an 'r' action if the thread may range
5993 step.
5994 (show_range_stepping): New function.
5995 (set_range_stepping): New function.
5996 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5997 'set range-stepping' and 'show range-stepping' commands.
5998 * NEWS: Mention range stepping, the new vCont;r action, and the
5999 new "set/show range-stepping" commands.
6000
6001 2013-05-23 Yao Qi <yao@codesourcery.com>
6002 Pedro Alves <palves@redhat.com>
6003
6004 * remote.c (struct vCont_action_support): New struct.
6005 (struct remote_state) <support_vCont_t>: Remove field.
6006 <vCont_actions_support>: New field.
6007 (remote_vcont_probe, remote_stop_ns): Update.
6008
6009 2013-05-23 Yao Qi <yao@codesourcery.com>
6010 Pedro Alves <palves@redhat.com>
6011
6012 * gdbthread.h (pc_in_thread_step_range): New declaration.
6013 * thread.c (pc_in_thread_step_range): New function.
6014 * infrun.c (handle_inferior_event): Use it.
6015
6016 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6017
6018 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6019 of sprintf.
6020
6021 2013-05-22 Keith Seitz <keiths@redhat.com>
6022
6023 * ada-lang.c (is_known_support_routine): Add explicit free of
6024 'func_name' from find_frame_funname.
6025 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6026 for func_name from find_frame_funname.
6027 * python/py-frame.c (frapy_name): Add explicit free of
6028 'name' from find_frame_funname.
6029 * stack.c (find_frame_funname): Add comment explaining that
6030 funcp must be freed by the caller.
6031 Return copy of symbol names instead of pointers.
6032 (print_frame): Add a cleanup for 'funname' from
6033 find_frame_funname.
6034 * stack.h (find_frame_funname): Remove "const" from
6035 'funname' parameter.
6036
6037 2013-05-22 Tom Tromey <tromey@redhat.com>
6038
6039 PR c++/15401:
6040 * c-valprint.c (c_value_print): Use value_addr for
6041 references. Convert back to reference type with value_ref.
6042
6043 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6044
6045 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6046 unloaded DLL, it will be done by handle_solib_event. See
6047 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6048 details.
6049
6050 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6051
6052 * ui-out.c: Create typedef ui_out_level_p and define vector
6053 operations for that type.
6054 (struct ui_out): Use a vector instead of an array.
6055 (current_level): Return level from a vector.
6056 (push_level): Create a level in a vector.
6057 (pop_level): Delete a level in a vector.
6058 (ui_out_new): Create initial level zero level, and store in a
6059 vector.
6060 (ui_out_destroy): Add vector cleanup.
6061
6062 2013-05-22 Pedro Alves <palves@redhat.com>
6063
6064 * python/python-internal.h (gdb_Py_DECREF): Tag with
6065 "ARI: editCase function".
6066
6067 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6068
6069 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6070
6071 2013-05-21 Pedro Alves <palves@redhat.com>
6072
6073 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6074 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6075 * python/py-utils.c (py_decref): Don't check for NULL before
6076 calling Py_DECREF.
6077
6078 2013-05-21 Pedro Alves <palves@redhat.com>
6079
6080 * python/py-utils.c (py_decref): Remove extra braces.
6081 (gdb_pymodule_addobject): Remove extra braces.
6082 * python-internal.h (gdb_Py_DECREF): New static inline function.
6083 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6084
6085 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6086
6087 * breakpoints.c (detach_breakpoints): Do not
6088 detach breakpoints locations with loc_type bp_loc_other.
6089
6090 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6091
6092 Workaround Python 2.6.
6093 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6094 a block.
6095
6096 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6097
6098 Code cleanup: constification.
6099 * solib.c (solib_ops): Make return type and ops variable type const.
6100 (set_solib_ops): Make the new_ops parameter and ops variable const.
6101 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6102 (solib_add, solib_keep_data_in_core, clear_solib)
6103 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6104 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6105 const.
6106 * solib.h (set_solib_ops): Make the new_ops parameter const.
6107
6108 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6109
6110 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6111 variable.
6112 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6113 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6114 (SYSTEM_GDBINIT_FILES): New variables.
6115 (all): Add stamp-system-gdbinit.
6116 (stamp-system-gdbinit): New rule.
6117 (clean-system-gdbinit, install-system-gdbinit)
6118 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6119 (install-only): Add dependency on install-system-gdbinit.
6120 (uninstall): Add dependency on uninstall-system-gdbinit.
6121 (clean): Add dependency on clean-system-gdbinit.
6122 * system-gdbinit/elinos.py: New file.
6123 * system-gdbinit/wrs-linux.py: New file.
6124
6125 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6126
6127 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6128
6129 2013-05-21 Hui Zhu <hui@codesourcery.com>
6130
6131 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6132 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6133 * mi/mi-cmd-break.c (ctype.h): New include.
6134 (gdb_obstack.h): New include.
6135 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6136 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6137 (mi_cmd_dprintf_insert): New.
6138 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6139 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6140
6141 2013-05-20 Tom Tromey <tromey@redhat.com>
6142
6143 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6144
6145 2013-05-20 Tom Tromey <tromey@redhat.com>
6146
6147 * python/py-value.c (valpy_get_dynamic_type): Simplify
6148 dynamic_type assignment. Use Py_XINCREF.
6149
6150 2013-05-20 Tom Tromey <tromey@redhat.com>
6151
6152 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6153
6154 2013-05-20 Tom Tromey <tromey@redhat.com>
6155
6156 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6157 (gdbpy_selected_frame): Move object-construction code
6158 out of TRY_CATCH.
6159
6160 2013-05-20 Tom Tromey <tromey@redhat.com>
6161
6162 * python/py-arch.c (gdbpy_initialize_arch): Use
6163 gdb_pymodule_addobject.
6164 * python/py-block.c (gdbpy_initialize_blocks): Use
6165 gdb_pymodule_addobject.
6166 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6167 gdb_pymodule_addobject.
6168 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6169 gdb_pymodule_addobject.
6170 * python/py-event.c (gdbpy_initialize_event_generic): Use
6171 gdb_pymodule_addobject.
6172 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6173 gdb_pymodule_addobject.
6174 * python/py-evts.c (add_new_registry): Use
6175 gdb_pymodule_addobject.
6176 (gdbpy_initialize_py_events): Likewise.
6177 * python/py-finishbreakpoint.c
6178 (gdbpy_initialize_finishbreakpoints): Use
6179 gdb_pymodule_addobject.
6180 * python/py-frame.c (gdbpy_initialize_frames): Use
6181 gdb_pymodule_addobject.
6182 * python/py-function.c (gdbpy_initialize_functions): Use
6183 gdb_pymodule_addobject.
6184 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6185 gdb_pymodule_addobject.
6186 * python/py-infthread.c (gdbpy_initialize_thread): Use
6187 gdb_pymodule_addobject.
6188 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6189 gdb_pymodule_addobject.
6190 * python/py-param.c (gdbpy_initialize_parameters): Use
6191 gdb_pymodule_addobject.
6192 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6193 gdb_pymodule_addobject.
6194 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6195 gdb_pymodule_addobject.
6196 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6197 gdb_pymodule_addobject.
6198 * python/py-type.c (gdbpy_initialize_types): Use
6199 gdb_pymodule_addobject.
6200 * python/py-utils.c (gdb_pymodule_addobject): New function.
6201 * python/py-value.c (gdbpy_initialize_values): Use
6202 gdb_pymodule_addobject.
6203 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6204 * python/python.c (_initialize_python): Use
6205 gdb_pymodule_addobject.
6206
6207 2013-05-20 Tom Tromey <tromey@redhat.com>
6208
6209 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6210 * python/py-param.c (get_set_value, get_show_value): Use
6211 explicit decrefs.
6212 * python/python.c (start_type_printers, apply_type_printers):
6213 Use explicit decrefs.
6214
6215 2013-05-20 Tom Tromey <tromey@redhat.com>
6216
6217 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6218 incref the module.
6219
6220 2013-05-20 Tom Tromey <tromey@redhat.com>
6221
6222 * python/python.c (gdbpy_run_events): Decref the result
6223 of PyObject_CallObject.
6224
6225 2013-05-20 Tom Tromey <tromey@redhat.com>
6226
6227 * python/py-symtab.c (set_sal): Use
6228 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6229 (symtab_and_line_to_sal_object): Update.
6230
6231 2013-05-20 Tom Tromey <tromey@redhat.com>
6232
6233 * python/py-param.c (compute_enum_values): Decref 'item'.
6234
6235 2013-05-20 Tom Tromey <tromey@redhat.com>
6236
6237 * mi/mi-main.c: Include python-internal.h.
6238 (mi_cmd_list_features): Check gdb_python_initialized.
6239 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6240 (python_inferior_exit, python_new_objfile, add_thread_object)
6241 (delete_thread_object, py_free_inferior): Check
6242 gdb_python_initialized.
6243 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6244 gdb_python_initialized.
6245 * python/py-type.c (save_objfile_types): Check
6246 gdb_python_initialized.
6247 * python/python-internal.h (gdb_python_initialized): Declare.
6248 * python/python.c (ensure_python_env): Throw exception if
6249 Python not initialized.
6250 (before_prompt_hook, source_python_script_for_objfile)
6251 (start_type_printers, apply_type_printers,
6252 free_type_printers): Check gdb_python_initialized.
6253 * varobj.c (varobj_get_display_hint)
6254 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6255 (install_new_value_visualizer, varobj_set_visualizer)
6256 (value_get_print_value): Check gdb_python_initialized.
6257
6258 2013-05-20 Tom Tromey <tromey@redhat.com>
6259
6260 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6261 Check errors.
6262 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6263 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6264 Check errors.
6265 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6266 Check errors.
6267 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6268 Check errors.
6269 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6270 Check errors.
6271 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6272 init function to return 'int'.
6273 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6274 Return 'int'. Check errors.
6275 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6276 Check errors.
6277 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6278 Return 'int'. Check errors.
6279 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6280 Check errors.
6281 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6282 Check errors.
6283 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6284 Check errors.
6285 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6286 Check errors.
6287 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6288 Check errors.
6289 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6290 Check errors.
6291 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6292 Check errors.
6293 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6294 Check errors.
6295 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6296 Check errors.
6297 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6298 Check errors.
6299 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6300 Check errors.
6301 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6302 Check errors.
6303 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6304 Check errors.
6305 * python/python-internal.h (gdbpy_initialize_auto_load,
6306 gdbpy_initialize_values, gdbpy_initialize_frames,
6307 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6308 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6309 gdbpy_initialize_blocks, gdbpy_initialize_types,
6310 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6311 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6312 gdbpy_initialize_finishbreakpoints,
6313 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6314 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6315 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6316 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6317 gdbpy_initialize_signal_event,
6318 gdbpy_initialize_breakpoint_event,
6319 gdbpy_initialize_continue_event,
6320 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6321 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6322 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6323 * python/python.c (gdb_python_initialized): New global.
6324 (gdbpy_initialize_events): Return 'int'. Check errors.
6325 (_initialize_python): Check errors. Set
6326 gdb_python_initialized.
6327
6328 2013-05-20 Tom Tromey <tromey@redhat.com>
6329
6330 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6331 Decref the reslut of PyObject_CallMethod.
6332
6333 2013-05-20 Tom Tromey <tromey@redhat.com>
6334
6335 * python/py-event.c (gdbpy_initialize_event_generic): Return
6336 early if PyType_Ready fails.
6337
6338 2013-05-20 Tom Tromey <tromey@redhat.com>
6339
6340 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6341 as 'default' in the switch.
6342
6343 2013-05-20 Tom Tromey <tromey@redhat.com>
6344
6345 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6346 get_addr_from_python calls out of TRY_CATCH.
6347 (infpy_write_memory, infpy_search_memory): Likewise.
6348 * python/py-utils.c (get_addr_from_python): Return negative
6349 value on error. Use TRY_CATCH.
6350 * python/python-internal.h (get_addr_from_python): Use
6351 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6352
6353 2013-05-20 Tom Tromey <tromey@redhat.com>
6354
6355 * python/py-event.c (evpy_emit_event): Decref the
6356 result of PyObject_CallFunctionObjArgs.
6357
6358 2013-05-20 Tom Tromey <tromey@redhat.com>
6359
6360 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6361 Correctly decref.
6362
6363 2013-05-20 Tom Tromey <tromey@redhat.com>
6364
6365 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6366
6367 2013-05-20 Tom Tromey <tromey@redhat.com>
6368
6369 * python/py-event.h (gdbpy_initialize_event_generic): Use
6370 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6371 * python/py-evts.c (add_new_registry): Use
6372 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6373 * python/python-internal.h
6374 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6375
6376 2013-05-20 Tom Tromey <tromey@redhat.com>
6377
6378 * python/py-arch.c (archpy_disassemble): Update.
6379 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6380 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6381 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6382 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6383 macro.
6384 (GDB_PY_HANDLE_EXCEPTION): Update.
6385 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6386
6387 2013-05-20 Tom Tromey <tromey@redhat.com>
6388
6389 * python/python-internal.h (events_object_type): Remove.
6390
6391 2013-05-20 Tom Tromey <tromey@redhat.com>
6392
6393 * python/py-event.h (evpy_emit_event): Use
6394 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6395 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6396 New macro.
6397
6398 2013-05-20 Tom Tromey <tromey@redhat.com>
6399
6400 * py-evtregistry.c (create_event_object): Decref
6401 eventregistry_object if PyList_New fails.
6402
6403 2013-05-20 Tom Tromey <tromey@redhat.com>
6404
6405 * py-cmd.c (gdbpy_string_to_argv): Check result of
6406 PyList_New.
6407
6408 2013-05-20 Tom Tromey <tromey@redhat.com>
6409
6410 * python/python.c (before_prompt_hook): Add cleanup to
6411 decref 'hook'.
6412
6413 2013-05-20 Tom Tromey <tromey@redhat.com>
6414
6415 * python/py-function.c (fnpy_init): Decref result of
6416 PyObject_GetAttrString.
6417
6418 2013-05-20 Tom Tromey <tromey@redhat.com>
6419
6420 * python/py-threadevent.c (get_event_thread): Use
6421 CPYCHECKER_RETURNS_BORROWED_REF.
6422 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6423 New define.
6424 (pspace_to_pspace_object, objfile_to_objfile_object)
6425 (find_thread_object): Use it.
6426
6427 2013-05-20 Tom Tromey <tromey@redhat.com>
6428
6429 * python/py-arch.c (arch_object_type): Use
6430 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6431 * python/py-block.c (block_syms_iterator_object_type):
6432 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6433 * python/py-bpevent.c (breakpoint_event_object_type):
6434 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6435 * python/py-cmd.c (cmdpy_object_type): Use
6436 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6437 * python/py-continueevent.c (continue_event_object_type):
6438 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6439 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6440 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6441 * python/py-events.h (thread_event_object_type):
6442 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6443 * python/py-evtregistry.c (eventregistry_object_type): Use
6444 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6445 * python/py-exitedevent.c (exited_event_object_type):
6446 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6447 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6448 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6449 * python/py-function.c (fnpy_object_type): Use
6450 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6451 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6452 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6453 * python/py-infthread.c (thread_object_type): Use
6454 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6455 * python/py-lazy-string.c (lazy_string_object_type):
6456 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6457 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6458 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6459 * python/py-objfile.c (objfile_object_type): Use
6460 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6461 * python/py-param.c (parmpy_object_type):
6462 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6463 * python/py-progspace.c (pspace_object_type):
6464 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6465 * python/py-signalevent.c (signal_event_object_type):
6466 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6467 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6468 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6469 * python/py-type.c (type_object_type, field_object_type)
6470 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6471 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6472 define.
6473 (value_object_type, block_object_type, symbol_object_type)
6474 (event_object_type, stop_event_object_type, breakpoint_object_type)
6475 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6476
6477 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6478
6479 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6480 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6481
6482 2013-05-20 Doug Evans <dje@google.com>
6483
6484 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6485 For Fission.
6486 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6487 reading_dwo_directly.
6488 (struct signatured_type): New member dwo_unit.
6489 (struct die_reader_specs): New member comp_dir.
6490 (create_signatured_type_table_from_index): Use malloc for
6491 all_type_units instead of objfile's obstack.
6492 (create_all_type_units): Ditto.
6493 (fill_in_sig_entry_from_dwo_entry): New function.
6494 (add_type_unit): New function.
6495 (lookup_dwo_signatured_type): New function.
6496 (lookup_dwp_signatured_type): New function.
6497 (lookup_signatured_type): New arg cu. All callers updated.
6498 (init_cu_die_reader): Initialize comp_dir.
6499 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6500 Change assert of matching type signatures to call error on mismatch.
6501 (lookup_dwo_unit): Add assert.
6502 (init_tu_and_read_dwo_dies): New function.
6503 (init_cutu_and_read_dies): Call it.
6504 (build_type_unit_groups): Handle case of no type unit groups created.
6505 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6506 (lookup_dwo_cutu): Tweak complaint.
6507 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6508 (dwarf2_per_objfile_free): Free all_type_units.
6509
6510 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6511
6512 * windows-nat.c (handle_unload_dll): Add missing empty line.
6513
6514 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6515
6516 * dwarf2read.c (prototyped_function_p): New function.
6517 (read_subroutine_type): Use it.
6518
6519 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6520
6521 * rs6000-aix-tdep.c: De-indent some example code provided
6522 as a comment.
6523
6524 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6525
6526 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6527 region is ok for a hardware watchpoint using the new ptrace interface
6528 on Power servers.
6529
6530 2013-05-17 Doug Evans <dje@google.com>
6531
6532 * NEWS: Mention new maintenance commands check-symtabs, and
6533 expand-symtabs, and renamed check-psymtabs.
6534 * psymtab.c (maintenance_check_psymtabs): Renamed from
6535 maintenance_check_symtabs. Only process already-expanded symbol
6536 tables.
6537 (_initialize_psymtab): Update.
6538 * symmisc.c (maintenance_check_symtabs): New function.
6539 (maintenance_expand_name_matcher): New function
6540 (maintenance_expand_file_matcher): New function
6541 (maintenance_expand_symtabs): New function.
6542 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6543 commands.
6544
6545 2013-05-17 Tom Tromey <tromey@redhat.com>
6546
6547 * python/py-inferior.c (infpy_read_memory): Don't call
6548 PyErr_SetString if PyObject_New fails.
6549 * python/py-frame.c (frame_info_to_frame_object): Don't call
6550 PyErr_SetString if PyObject_New fails.
6551
6552 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6553
6554 * acinclude.m4: Add check for dlopen in libdl.
6555 * configure.ac: Ditto.
6556 * configure: Regenerate.
6557
6558 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6559
6560 * frame.c (frame_stash): Convert to htab.
6561 (frame_addr_hash): New function.
6562 (frame_addr_hash_eq): New function.
6563 (frame_stash_create): Convert function to create
6564 a hash table.
6565 (frame_stash_add): Convert function to add an entry to a hash
6566 table.
6567 (frame_stash_find): Convert function to search the hash table.
6568 (frame_stash_invalidate): Convert function to empty the hash
6569 table.
6570 (get_frame_id): Only add to stash if a frame_id is created.
6571 (_initialize_frame): Call frame_stash_create.
6572
6573 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6574
6575 * configure.ac: Ensure MIG is available when building for GNU Hurd
6576 hosts.
6577 * configure: Regenerate.
6578
6579 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6580
6581 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6582
6583 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6584
6585 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6586 all cleanups are done before returning from this function.
6587
6588 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6589
6590 * utils.h: #include "exceptions.h".
6591 (enum errors): Remove partial declaration.
6592
6593 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6594
6595 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6596 * gdbarch.h, gdbarch.c: Regenerate.
6597 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6598 handling.
6599
6600 * rs6000-aix-tdep.h: New file.
6601 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6602 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6603 "xml-utils.h".
6604 (struct field_info, struct ld_info_desc): New types.
6605 (ld_info32_desc, ld_info64_desc): New static constants.
6606 (struct ld_info): New type.
6607 (rs6000_aix_extract_ld_info): New function.
6608 (rs6000_aix_shared_library_to_xml): Likewise.
6609 (rs6000_aix_ld_info_to_xml): Likewise.
6610 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6611 (rs6000_aix_init_osabi): Add call to
6612 set_gdbarch_core_xfer_shared_libraries_aix.
6613 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6614 Remove "xml-utils.h" include.
6615 (LdInfo): Delete typedef.
6616 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6617 Delete macros.
6618 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6619 Adjust code accordingly.
6620 (rs6000_core_ldinfo): Delete, folded into
6621 rs6000_aix_core_xfer_shared_libraries_aix.
6622 (rs6000_xfer_shared_library): Delete.
6623 (rs6000_xfer_shared_libraries): Reimplement.
6624
6625 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6626
6627 * record.c (record_goto_cmdlist): New.
6628 (cmd_record_goto): Split into this ...
6629 (cmd_record_goto_begin): ... this
6630 (cmd_record_goto_end): ... and this.
6631 (_initialize_record): Change "record goto" to prefix command.
6632 Add commands for "record goto begin" and "record goto end".
6633 Add an alias for "record goto start" to "record goto begin".
6634
6635 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6636
6637 * linespec.c (convert_linespec_to_sals): New comment for
6638 SOURCE_FILENAME assignment.
6639
6640 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6641
6642 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6643 internal_warning.
6644
6645 2013-05-14 Tom Tromey <tromey@redhat.com>
6646
6647 * eval.c (parse_and_eval_long): Make 'exp' const.
6648 * value.h (parse_and_eval_long): Update.
6649
6650 2013-05-14 Tom Tromey <tromey@redhat.com>
6651
6652 * ui-file.c (gdb_fopen): Make arguments const.
6653 * ui-file.h (gdb_fopen): Make arguments const.
6654
6655 2013-05-14 Tom Tromey <tromey@redhat.com>
6656
6657 * remote.c (remote_set_trace_notes): Make arguments const.
6658 * target.c (update_current_target): Update cast.
6659 * target.h (to_set_trace_notes): Make arguments const.
6660
6661 2013-05-14 Tom Tromey <tromey@redhat.com>
6662
6663 * go32-nat.c (go32_terminal_info): Make 'args' const.
6664 * inferior.h (child_terminal_info): Update.
6665 * inflow.c (child_terminal_info): Make 'args' const.
6666 * target.c (default_terminal_info): Make 'args' const.
6667 (debug_to_terminal_save_ours): Likewise.
6668 * target.h (struct target_ops) <to_terminal_info>: Make argument
6669 const.
6670
6671 2013-05-13 Tom Tromey <tromey@redhat.com>
6672
6673 * gcore.c (create_gcore_bfd): Make 'filename' const.
6674 * gcore.h (create_gcore_bfd): Make 'filename' const.
6675 * record-full.c (record_full_save): Make 'recfilename' const.
6676 * target.c (target_save_record): Make 'filename' const.
6677 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6678 const.
6679 (target_save_record): Likewise.
6680
6681 2013-05-13 Tom Tromey <tromey@redhat.com>
6682
6683 PR gdb/15338:
6684 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6685 ranges section has been read.
6686
6687 2013-05-13 Tom Tromey <tromey@redhat.com>
6688
6689 PR exp/15364:
6690 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6691 STRUCTOP_PTR>: Return a not_lval value for
6692 EVAL_AVOID_SIDE_EFFECTS.
6693 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6694 for EVAL_AVOID_SIDE_EFFECTS.
6695
6696 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6697
6698 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6699 floating point registers to register type before storing
6700 value.
6701 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6702 Likewise.
6703
6704 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6705 Tom Tromey <tromey@redhat.com>
6706
6707 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6708 New functions.
6709 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6710 Declare.
6711 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6712 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6713 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6714 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6715
6716 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6717 Tom Tromey <tromey@redhat.com>
6718
6719 PR build/15414:
6720 * configure: Rebuild.
6721 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6722 with -Wno-format.
6723
6724 2013-05-10 Pedro Alves <palves@redhat.com>
6725
6726 * remote.c (_initialize_remote): Fix spelling of
6727 qXfer:traceframe-info:read packet in packet config command.
6728
6729 2013-05-10 David Taylor <dtaylor@emc.com>
6730
6731 PR remote/15455
6732
6733 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6734 "QTro" at start of packet.
6735
6736 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6737
6738 * solib-aix.c (solib_aix_relocate_section_addresses):
6739 For the .bss section action, apply the same offset as
6740 the .data section.
6741
6742 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6743
6744 * solib-aix.c (solib_aix_relocate_section_addresses):
6745 Remove FIXME comment.
6746
6747 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6748
6749 PR tdep/15420:
6750 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6751 New functions, directly copied from sparc-sol-thread.c.
6752 * sparc-sol-thread.c: Delete.
6753 * configure.ac: Remove code handling sparc-solaris-thread.c.
6754 * configure: Regenerate.
6755
6756 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6757
6758 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6759 filter logic.
6760 (backtrace_command): Add "no-filters" option parsing.
6761 (_initialize_stack): Alter help to reflect "no-filters" option.
6762 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6763 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6764 (py-frame.o): Add target
6765 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6766 filter files.
6767 * python/python.h: Add new frame filter constants, and flag enum.
6768 (apply_frame_filter): Add definition.
6769 * python/python.c (apply_frame_filter): New non-Python
6770 enabled function.
6771 * python/py-utils.c (py_xdecref): New function.
6772 (make_cleanup_py_xdecref): Ditto.
6773 * python/py-objfile.c: Declare frame_filters dictionary.
6774 (objfpy_dealloc): Add frame_filters dealloc.
6775 (objfpy_new): Initialize frame_filters attribute.
6776 (objfile_to_objfile_object): Ditto.
6777 (objfpy_get_frame_filters): New function.
6778 (objfpy_set_frame_filters): New function.
6779 * python/py-progspace.c: Declare frame_filters dictionary.
6780 (pspy_dealloc): Add frame_filters dealloc.
6781 (pspy_new): Initialize frame_filters attribute.
6782 (pspacee_to_pspace_object): Ditto.
6783 (pspy_get_frame_filters): New function.
6784 (pspy_set_frame_filters): New function.
6785 * python/py-framefilter.c: New file.
6786 * python/lib/gdb/command/frame_filters.py: New file.
6787 * python/lib/gdb/frames.py: New file.
6788 * python/lib/gdb/__init__.py: Initialize global frame_filters
6789 dictionary
6790 * python/lib/gdb/FrameDecorator.py: New file.
6791 * python/lib/gdb/FrameIterator.py: New file.
6792 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6793 * mi/mi-cmds.h: Declare.
6794 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6795 --no-frame-filter logic, and Python frame filter logic.
6796 (stack_enable_frame_filters): New function.
6797 (parse_no_frame_option): Ditto.
6798 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6799 filter logic.
6800 (mi_cmd_stack_list_locals): Ditto.
6801 (mi_cmd_stack_list_args): Ditto.
6802 (mi_cmd_stack_list_variables): Ditto.
6803 * NEWS: Add frame filter note.
6804
6805 2013-05-09 Doug Evans <dje@google.com>
6806
6807 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6808 All callers updated.
6809 (syms_from_objfile): Ditto. Make static.
6810 (symbol_file_add_with_addrs): Renamed from
6811 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6812 num_offsets. All callers updated.
6813 * symfile.h (syms_from_objfile): Delete.
6814
6815 * symfile.c (decrement_reading_symtab): Add assert.
6816 (increment_reading_symtab): Ditto.
6817
6818 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6819
6820 * source.c (forward_search_command): Replace call to getc
6821 by call to fgetc.
6822 (reverse_search_command): Likewise.
6823
6824 2013-05-08 Doug Evans <dje@google.com>
6825
6826 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6827 matching test.
6828
6829 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6830
6831 * sol-thread.c (info_cb): Factorize the code a little.
6832
6833 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6834
6835 * sol-thread.c (info_cb): Rework the output of the "maintenance
6836 info sol-threads" command a bit.
6837
6838 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6839
6840 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6841 Replace ti.ti_startfunc by ti.ti_pc.
6842
6843 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6844
6845 * solib-aix.c (solib_aix_free_library_list): New function
6846 for the case where HAVE_LIBEXPAT is not defined.
6847
6848 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6849
6850 PR breakpoints/15413:
6851 * breakpoint.c (condition_completer): Simplify the code to
6852 disconsider multiple locations of breakpoints when completing the
6853 "condition" command.
6854
6855 2013-05-07 Pierre Muller <muller@sourceware.org>
6856
6857 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6858 instead of <sys/wait.h>.
6859
6860 2013-05-07 Pierre Muller <muller@sourceware.org>
6861
6862 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6863 trailing new line from warning message.
6864
6865 2013-05-07 Pierre Muller <muller@sourceware.org>
6866
6867 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6868 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6869
6870 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6871
6872 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6873 error message (ARI fix).
6874
6875 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6876
6877 * features/library-list-aix.dtd: Replace library-list by
6878 library-list-aix.
6879 * rs6000-nat.c: Replace library-list by library-list-aix
6880 throughout.
6881 * solib-aix.c: Likewise.
6882
6883 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6884
6885 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6886 Renames TARGET_OBJECT_AIX_LIBRARIES.
6887 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6888 TARGET_OBJECT_LIBRARIES_AIX throughout.
6889 * solib-aix.c: Likwise.
6890
6891 2013-05-07 Yao Qi <yao@codesourcery.com>
6892
6893 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6894 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6895
6896 2013-05-07 Yao Qi <yao@codesourcery.com>
6897
6898 * solib-dsbt.c (enable_break): Declare.
6899 (dsbt_current_sos): Remove call to enable_break2.
6900 (enable_break2): Rename to enable_break. Set solib breakpoint
6901 on '_dl_debug_state'.
6902 (enable_break): Remove.
6903
6904 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6905
6906 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6907 debug state prior to replicating existing hardware watchpoints or
6908 breakpoints.
6909
6910 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6911
6912 * gcore.c (gcore_create_callback): Ignore sections with
6913 separate_debug_objfile_backlink != NULL.
6914
6915 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6916 Andrew Jenner <andrew@codesourcery.com>
6917 Chung-Lin Tang <cltang@codesourcery.com>
6918 Julian Brown <julian@codesourcery.com>
6919
6920 Based on the nios2-elf port from Altera Corporation.
6921
6922 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6923 nios2-linux-tdep.o.
6924 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6925 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6926 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6927 * nios2-tdep.h: New.
6928 * nios2-tdep.c: New.
6929 * nios2-linux-tdep.c: New.
6930 * features/Makefile (WHICH): Add nios2-linux.
6931 (nios2-linux-expedite): Set.
6932 * features/nios2-cpu.xml: New.
6933 * features/nios2.xml: New.
6934 * features/nios2-linux.xml: New.
6935 * features/nios2.c: New (autogenerated).
6936 * features/nios2-linux.c: New (autogenerated).
6937 * regformats/nios2-linux.dat: New (autogenerated).
6938 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6939 and commands.
6940
6941 2013-05-06 Doug Evans <dje@google.com>
6942
6943 * symfile.c: Whitespace cleanup.
6944
6945 * solist.h (struct target_so_ops): New member clear_so.
6946 * solib-svr4.c (svr4_clear_so): New function.
6947 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6948 * solib.c (clear_so): Renamed from free_so_symbols.
6949 All callers updated. Call target clear_so if it exists.
6950
6951 2013-05-06 Tom Tromey <tromey@redhat.com>
6952
6953 * ada-lang.c (ada_value_primitive_packed_val): Don't
6954 call value_incref.
6955 * value.c (set_value_parent): Incref the new parent and decref
6956 the old parent.
6957 (value_copy, value_primitive_field): Use set_value_parent.
6958
6959 2013-05-06 Tom Tromey <tromey@redhat.com>
6960
6961 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6962 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6963 if needed.
6964 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6965 * dwarf2read.c (write_constant_as_bytes)
6966 (dwarf2_fetch_constant_bytes): New functions.
6967
6968 2013-05-06 Tom Tromey <tromey@redhat.com>
6969
6970 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6971 parameters.
6972 (dwarf2_const_value_attr): Update.
6973
6974 2013-05-06 Tom Tromey <tromey@redhat.com>
6975
6976 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6977 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6978 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6979 Remove declaration.
6980
6981 2013-05-06 Tom Tromey <tromey@redhat.com>
6982
6983 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6984 objfile's obstack.
6985
6986 2013-05-06 Doug Evans <dje@google.com>
6987
6988 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6989 * stabsread.h (process_one_symbol): Update declaration.
6990 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6991 * elfread.c (elf_symfile_relocate_probe): Ditto.
6992 * psymtab.c (relocate_psymtabs): Ditto.
6993 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6994 (objfile_relocate): Ditto.
6995 * objfiles.h (objfile_relocate): Update declaration.
6996 * symfile.c (relative_addr_info_to_section_offsets): Constify
6997 addrs parameter.
6998 (default_symfile_offsets): Ditto.
6999 (syms_from_objfile_1): Constify offsets parameter.
7000 (syms_from_objfile): Ditto.
7001 (symbol_file_add_with_addrs_or_offsets): Ditto.
7002 (symfile_map_offsets_to_segments): Constify data parameter.
7003 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7004 delta parameters of member relocate.
7005 (struct sym_probe_fns): Constify new_offsets,
7006 delta parameters of member sym_relocate_probe.
7007 (struct sym_fns): Constify section_addr_info parameter of member
7008 sym_offsets.
7009 (relative_addr_info_to_section_offsets): Update declaration.
7010 (default_symfile_offsets): Ditto.
7011 (syms_from_objfile): Ditto.
7012 (symfile_map_offsets_to_segments): Ditto.
7013
7014 * symfile.c (syms_from_objfile_1): Use correct section count when
7015 objfile->sf == NULL.
7016
7017 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7018
7019 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7020
7021 2013-05-06 Doug Evans <dje@google.com>
7022
7023 * psympriv.h (struct partial_symtab): Augment comment for member
7024 section_offsets.
7025
7026 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7027
7028 Reimplement shared library support on ppc-aix...
7029 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7030 * features/library-list-aix.dtd: New file.
7031 * solib-aix.h, solib-aix.c: New file.
7032 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7033 (rs6000_find_toc_address_hook): Delete.
7034 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7035 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7036 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7037 "xml-utils.h".
7038 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7039 (vmap_symtab, fixup_breakpoints): Delete.
7040 (rs6000_xfer_shared_libraries): New function.
7041 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7042 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7043 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7044 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7045 (rs6000_xfer_shared_library): New function.
7046 (find_toc_address): Delete.
7047 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7048 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7049 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7050 before creating minimal symbol. Adjust function description
7051 accordingly.
7052 (scan_xcoff_symtab): Replace call to
7053 prim_record_minimal_symbol_and_info by call to
7054 record_minimal_symbol.
7055 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7056 around default_symfile_offsets.
7057 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7058 powerpc-aix targets.
7059 * config/rs6000/nm-rs6000.h: Delete.
7060 * config/powerpc/aix.mh (NAT_FILE): Delete.
7061 (NATDEPFILES): Remove xcoffsolib.o.
7062 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7063 (ALL_TARGET_OBS): Add solib-aix.o.
7064 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7065 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7066 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7067 * xcoffsolib.h, xcoffsolib.c: Delete.
7068
7069 * solib.c (reload_shared_libraries): Remove reference to
7070 SOLIB_CREATE_INFERIOR_HOOK.
7071 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7072 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7073 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7074 comment.
7075 * corelow.c (deprecated_core_resize_section_table): Delete.
7076 * exec.c: Remove include of xcoffsolib.h".
7077 (map_vmap, vmap): Delete.
7078 (exec_close_1): Remove references to vmap.
7079 (exec_file_attach): Remove vmap handling code, and reference
7080 to DEPRECATED_IBM6000_TARGET.
7081 (bfdsec_to_vmap): Delete.
7082 (exec_files_info): Remove block of code handling VMAP.
7083 * infcmd.c (post_create_inferior): Remove reference to
7084 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7085 * infrun.c (follow_exec): Remove reference to
7086 SOLIB_CREATE_INFERIOR_HOOK.
7087 * stack.c (print_frame): Remove reference to PC_SOLIB.
7088 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7089 (dsbt_relocate_main_executable): Likewise.
7090 * solib-frv.c (frv_current_sos): Likewise.
7091
7092 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7093
7094 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7095 to target_write_memory and target_read_memory.
7096
7097 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7098
7099 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7100 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7101
7102 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7103
7104 * darwin-nat.c: Replace all "%x" instances in format strings
7105 into "0x%x" throughout.
7106
7107 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7108
7109 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7110 gdb_assert by call to MACH_CHECK_ERROR.
7111 (darwin_attach_pid): Raise an error rather than a failed
7112 assertion when various system calls failed. Report a warning
7113 instead of raising a failed assertion when PREV_NOT is not NULL
7114 after call to mach_port_request_notification.
7115 (darwin_ptrace_me): Raise an error rather than a failed
7116 assertion when read returns nonzero.
7117
7118 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7119
7120 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7121
7122 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7123
7124 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7125
7126 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7127
7128 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7129 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7130 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7131 a stale cleanup. Fix double free of NAME.
7132
7133 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7134
7135 * windows-nat.c (windows_delete_thread): Accept an additional
7136 argument, the thread's exit code, and announce thread death when
7137 print_thread_events is non-zero and we are deleting a thread that
7138 is not the main thread.
7139 (get_windows_debug_event): Pass thread exit code to
7140 windows_delete_thread.
7141
7142 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7143
7144 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7145 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7146 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7147 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7148 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7149 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7150 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7151 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7152 (gdbarch_tdep): New struct.
7153 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7154 E_NUM_REGS.
7155 (v850e3v5_register_name): New function.
7156 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7157 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7158 code handling the struct return conventions for the RH850 ABI.
7159 Update all callers.
7160 (v850_eight_byte_align_p): New function.
7161 (v850_push_call_dummy): Push structs by value, not by reference
7162 for the RH850 ABI. Add support for eight byte alignment.
7163 (v850_dbtrap_breakpoint_from_pc): New function.
7164 (v850_gdbarch_init): Add ABI detection code. Register
7165 v850e3v5_register_name for the v850e3v5 architecture. Set the
7166 number of registers for v850e3v5. Register
7167 v850_dbtrap_breakpoint_from_pc as appropriate.
7168 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7169
7170 2013-05-03 Doug Evans <dje@google.com>
7171
7172 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7173 of bfd_count_sections.
7174 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7175 * symfile.c (default_symfile_offsets): Ditto.
7176 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7177 one entry, not bfd_count_sections entries.
7178
7179 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7180
7181 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7182 `save' and `restore' register groups. Don't include SPL
7183 or SPH in these groups.
7184 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7185 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7186 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7187 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7188 dwarf2_append_unwinders().
7189
7190 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7191
7192 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7193 ignore SIGINT and SIGTRAP in case these internal signals are
7194 caught explicitely.
7195
7196 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7197
7198 * darwin-nat.c (darwin_read_write_inferior): Change types
7199 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7200 of copy_count to "mach_msg_type_number_t".
7201 (darwin_read_dyld_info): Change type of parameter
7202 rdaddr to "gdb_byte *".
7203
7204 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7205
7206 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7207 of &info->load_map from "char *" to "gdb_byte *".
7208
7209 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7210
7211 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7212 from "char *" to "gdb_byte *".
7213 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7214
7215 2013-04-30 Doug Evans <dje@google.com>
7216
7217 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7218 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7219 DWO stub. If DWO isn't found, just use stub.
7220 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7221
7222 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7223 calling init_cutu_and_read_dies.
7224
7225 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7226
7227 * target-descriptions.c (maint_print_c_tdesc_cmd):
7228 Add case to parse structures as register types and
7229 bitfields.
7230
7231 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7232
7233 * MAINTAINERS (Write After Approval): Add myself to the list.
7234
7235 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7236
7237 * sol-thread.c (rw_common): Change type of parameter "buf"
7238 to "gdb_byte *".
7239 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7240 rw_common to "gdb_byte *" instead of "char *".
7241
7242 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7243
7244 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7245 of local variable msym to const struct bound_minimal_symbol.
7246 Adjust use accordingly.
7247 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7248
7249 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7250
7251 * i386gnu-nat.c (CREG_OFFSET): New macro.
7252 (creg_offset): New array.
7253 (CREG_ADDR): Use creg_offset instead of reg_offset.
7254
7255 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7256
7257 * mep-tdep.c (mep_write_pc): Delete.
7258 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7259 Add call to set_gdbarch_pc_regnum.
7260
7261 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7262
7263 * common/filestuff.c: Replace #include <dirent.h> by
7264 #include "gdb_dirent.h".
7265
7266 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7267
7268 * common/filestuff.c: Replace #include <sys/stat.h> by
7269 #include "gdb_stat.h".
7270
7271 2013-04-29 Pierre Muller <muller@sourceware.org>
7272
7273 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7274 editCase function rule.
7275 (get_DW_AT_signature_type): Likewise.
7276
7277 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7278
7279 * m32r-tdep.c (m32r_write_pc): Delete.
7280 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7281 Add call to set_gdbarch_pc_regnum.
7282
7283 2013-04-29 Pierre Muller <muller@sourceware.org>
7284
7285 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7286
7287 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7288
7289 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7290
7291 2013-04-28 Yao Qi <yao@codesourcery.com>
7292
7293 * solib-dsbt.c (fetch_loadmap): Re-indent.
7294 (displacement_from_map, enable_break2): Likewise.
7295 (dsbt_relocate_section_addresses): Likewise.
7296
7297 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7298
7299 GDB 7.6 released.
7300
7301 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7302
7303 PR corefiles/14983:
7304 * dwarf2read.c (process_full_comp_unit): Always create a static
7305 block.
7306
7307 2013-04-25 Hui Zhu <hui@codesourcery.com>
7308
7309 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7310 to loc->cmd_bytecode.
7311
7312 2013-04-24 Doug Evans <dje@google.com>
7313
7314 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7315
7316 2013-04-22 Keith Seitz <keiths@redhat.com>
7317
7318 * tracepoint.c (trace_save): Call the writer's start method.
7319
7320 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7321
7322 PR gdb/10462
7323 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7324 before argument.
7325
7326 2013-04-23 Tom Tromey <tromey@redhat.com>
7327
7328 * common/filestuff.c: Check USE_WIN32API before including
7329 sys/socket.h.
7330 (HAVE_F_GETFD): New define.
7331 (mark_cloexec): Check HAVE_F_GETFD.
7332 (gdb_open_cloexec): Change 'mode' to unsigned long.
7333 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7334 (gdb_pipe_cloexec): Check HAVE_PIPE.
7335 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7336 long.
7337
7338 2013-04-23 Hui Zhu <hui@codesourcery.com>
7339
7340 PR gdb/15293
7341 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7342
7343 2013-04-23 Hui Zhu <hui@codesourcery.com>
7344
7345 PR gdb/15165
7346 * breakpoint.c (dprintf_print_recreate): New.
7347 (save_breakpoints): Let it not save dprintf commands.
7348 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7349
7350 2013-04-22 Tom Tromey <tromey@redhat.com>
7351
7352 PR gdb/7912:
7353 * Makefile.in (SFILES): Add filestuff.c
7354 (COMMON_OBS): Add filestuff.o.
7355 (filestuff.o): New target.
7356 * auto-load.c (auto_load_objfile_script_1): Use
7357 gdb_fopen_cloexec.
7358 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7359 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7360 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7361 * common/agent.c (gdb_connect_sync_socket): Use
7362 gdb_socket_cloexec.
7363 * common/filestuff.c: New file.
7364 * common/filestuff.h: New file.
7365 * common/linux-osdata.c (linux_common_core_of_thread)
7366 (command_from_pid, commandline_from_pid, print_source_lines)
7367 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7368 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7369 gdb_fopen_cloexec.
7370 * common/linux-procfs.c (linux_proc_get_int)
7371 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7372 * config.in, configure: Rebuild.
7373 * configure.ac: Don't check for sys/socket.h. Check for
7374 fdwalk, pipe2.
7375 * corelow.c (core_open): Use gdb_open_cloexec.
7376 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7377 * fork-child.c (fork_inferior): Call close_most_fds.
7378 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7379 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7380 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7381 Use gdb_fopen_cloexec.
7382 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7383 gdb_open_cloexec.
7384 (linux_async_pipe): Use gdb_pipe_cloexec.
7385 * remote-fileio.c (remote_fileio_func_open): Use
7386 gdb_open_cloexec.
7387 * remote.c (remote_file_put, remote_file_get): Use
7388 gdb_fopen_cloexec.
7389 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7390 close_most_fds.
7391 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7392 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7393 * solib.c (solib_find): Use gdb_open_cloexec.
7394 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7395 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7396 (tfile_open): Use gdb_open_cloexec.
7397 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7398 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7399 * xml-support.c (xml_fetch_content_from_file): Use
7400 gdb_fopen_cloexec.
7401 * main.c (captured_main): Call notice_open_fds.
7402
7403 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7404
7405 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7406 'char *' to 'gdb_byte *'.
7407 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7408 'gdb_byte'.
7409
7410 2013-04-22 Yao Qi <yao@codesourcery.com>
7411
7412 * infrun.c: Fix typo in comment.
7413
7414 2013-04-22 Andrew Haley <aph@redhat.com>
7415
7416 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7417 instead of "long".
7418
7419 2013-04-20 Yao Qi <yao@codesourcery.com>
7420
7421 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7422 'char *' to 'gdb_byte *'. Cast the return value of
7423 'bt_ctf_get_char_array' to 'gdb_byte *'.
7424
7425 2013-04-19 Pedro Alves <palves@redhat.com>
7426
7427 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7428 -Wpointer-sign.
7429 * configure: Regenerate.
7430
7431 2013-04-19 Pedro Alves <palves@redhat.com>
7432
7433 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7434 'void *'.
7435
7436 2013-04-19 Pedro Alves <palves@redhat.com>
7437
7438 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7439 Change type of 'myaddr' parameter to gdb_byte pointer.
7440 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7441 to 'long long' pointer instead of to 'unsigned long long'.
7442 (monitor_write_memory_block, monitor_read_memory_single)
7443 (monitor_read_memory): Change type of 'myaddr' parameter to
7444 gdb_byte pointer.
7445
7446 2013-04-19 Pedro Alves <palves@redhat.com>
7447
7448 * record.c (validate_history_size): Make parameter 'setting'
7449 unsigned.
7450
7451 2013-04-19 Pedro Alves <palves@redhat.com>
7452
7453 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7454 to 'gdb_byte *'.
7455
7456 2013-04-19 Pedro Alves <palves@redhat.com>
7457
7458 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7459 local to int.
7460
7461 2013-04-19 Pedro Alves <palves@redhat.com>
7462
7463 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7464 * ada-tasks.c (read_fat_string_value): Likewise.
7465
7466 2013-04-19 Pedro Alves <palves@redhat.com>
7467
7468 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7469 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7470 'offset', and adjust.
7471
7472 2013-04-19 Pedro Alves <palves@redhat.com>
7473
7474 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7475 (read_index_from_section): Add cast to 'char *'.
7476
7477 2013-04-19 Pedro Alves <palves@redhat.com>
7478
7479 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7480
7481 2013-04-19 Pedro Alves <palves@redhat.com>
7482
7483 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7484
7485 2013-04-19 Pedro Alves <palves@redhat.com>
7486
7487 * record-full.c (record_full_get_bookmark): Change local 'ret'
7488 type to char * and add cast to gdb_byte *.
7489 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7490 string.
7491 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7492
7493 2013-04-19 Pedro Alves <palves@redhat.com>
7494
7495 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7496 * python/py-prettyprint.c (print_string_repr): Change type of
7497 'output' local to char *. Add cast to gdb_byte * in
7498 LA_PRINT_STRING call.
7499 (print_children): Change type of 'output' local to char *.
7500 * python/py-value.c (valpy_string): Add cast to const char * in
7501 PyUnicode_Decode call.
7502
7503 2013-04-19 Pedro Alves <palves@redhat.com>
7504
7505 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7506 and change its type to 'const char *'. Adjust.
7507 (mips_send_packet): Add cast to 'char *', and remove cast to
7508 'unsigned char *'.
7509 (mips_receive_packet): Remove cast to 'unsigned char *'.
7510 (mips_load_srec): Use bfd_byte.
7511 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7512 (pmon_checkset): Make 'value' parameter unsigned.
7513
7514 2013-04-19 Pedro Alves <palves@redhat.com>
7515
7516 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7517
7518 2013-04-19 Pedro Alves <palves@redhat.com>
7519
7520 * remote.c (remote_write_bytes_aux, compare_sections_command)
7521 (remote_read_qxfer)
7522 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7523 (remote_hostio_readlink, remote_bfd_iovec_pread)
7524 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7525 binary buffer, and char when buffer is used as string.
7526 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7527 (trace_save, tfile_open, traceframe_walk_blocks)
7528 (tfile_fetch_registers): Likewise.
7529
7530 2013-04-19 Pedro Alves <palves@redhat.com>
7531
7532 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7533 buffer and size_t size. Adjust.
7534 * ser-base.h (ser_base_write): Adjust.
7535 * ser-go32.c (cnts): Change type to size_t.
7536 (dos_write): Change prototype -- take 'void *'
7537 buffer and size_t size. Adjust.
7538 (dos_info): Print elements of 'cnts' as unsigned long.
7539 * serial.c (serial_write): Likewise.
7540 * serial.h (serial_write): Adjust.
7541 (struct serial_ops) <write>: Change prototype -- take 'void *'
7542 buffer and size_t size. Adjust.
7543
7544 2013-04-19 Pedro Alves <palves@redhat.com>
7545
7546 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7547 gdb_byte *.
7548 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7549
7550 2013-04-19 Pedro Alves <palves@redhat.com>
7551
7552 * alpha-tdep.c (alpha_extract_return_value): Use
7553 regcache_cooked_read_unsigned to read 'v0'.
7554
7555 2013-04-19 Pedro Alves <palves@redhat.com>
7556
7557 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7558 parameters 'at', 'as' and 'offset' to uint32_t.
7559
7560 2013-04-19 Pedro Alves <palves@redhat.com>
7561
7562 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7563 'is64' to signed 'int'.
7564
7565 2013-04-19 Pedro Alves <palves@redhat.com>
7566
7567 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7568 parameter to int *.
7569
7570 2013-04-19 Pedro Alves <palves@redhat.com>
7571
7572 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7573 'insnbuf' buffer type to unsigned int[].
7574
7575 2013-04-19 Pedro Alves <palves@redhat.com>
7576
7577 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7578
7579 2013-04-19 Pedro Alves <palves@redhat.com>
7580
7581 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7582 unsigned long *.
7583
7584 2013-04-19 Pedro Alves <palves@redhat.com>
7585
7586 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7587 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7588 UINT_MAX.
7589 * mips-tdep.c (heuristic_fence_post): Change type to int.
7590 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7591
7592 2013-04-19 Pedro Alves <palves@redhat.com>
7593
7594 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7595 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7596 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7597
7598 2013-04-19 Pedro Alves <palves@redhat.com>
7599
7600 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7601 it to get a string view of the byte buffer.
7602 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7603 type to gdb_byte *. Adjust.
7604 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7605 Change local to char *.
7606 * solib-darwin.c (find_program_interpreter): Change return type to
7607 char *. Adjust.
7608 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7609 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7610 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7611 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7612 * solib-svr4.c (find_program_interpreter): Change return type to
7613 char *. Adjust.
7614 (enable_break): Change local 'interp_name' to char *.
7615 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7616 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7617 (spu_pseudo_register_write_spu): Use char for string buffer.
7618 Adjust.
7619 (info_spu_event_command, info_spu_signal_command): Add casts to
7620 'char *'.
7621
7622 2013-04-19 Pedro Alves <palves@redhat.com>
7623
7624 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7625 gdb_byte[].
7626 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7627 * ada-lang.c (ada_value_assign): Use gdb_byte.
7628 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7629 (alphanbsd_sigtramp_offset): Use gdb_byte.
7630 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7631 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7632 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7633 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7634 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7635 * arm-tdep.c (arm_stub_unwind_sniffer)
7636 (arm_displaced_init_closure): Use gdb_byte.
7637 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7638 (arm_default_thumb_le_breakpoint)
7639 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7640 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7641 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7642 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7643 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7644 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7645 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7646 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7647 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7648 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7649 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7650 (cris_store_return_value, cris_extract_return_value): Use
7651 gdb_byte.
7652 (constraint): Change type of parameter to char * from signed
7653 char*. Use gdb_byte.
7654 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7655 of local buffer to gdb_byte *.
7656 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7657 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7658 (add_address_entry): Change type of local buffer to gdb_byte[].
7659 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7660 (frv_push_dummy_call): Use gdb_byte.
7661 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7662 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7663 (hppa_hpux_supply_save_state): Use gdb_byte.
7664 * hppa-tdep.c (hppa32_push_dummy_call)
7665 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7666 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7667 (slotN_contents, replace_slotN_contents): Change type of parameter
7668 to gdb_byte *.
7669 (fetch_instruction, ia64_pseudo_register_write)
7670 (ia64_register_to_value, ia64_value_to_register)
7671 (ia64_extract_return_value, ia64_store_return_value)
7672 (ia64_push_dummy_call): Use gdb_byte.
7673 * m32c-tdep.c (m32c_return_value): Remove cast.
7674 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7675 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7676 gdb_byte.
7677 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7678 * mn10300-tdep.c (mn10300_store_return_value)
7679 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7680 gdb_byte.
7681 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7682 (moxie_process_record): Remove casts.
7683 * ppc-ravenscar-thread.c (supply_register_at_address)
7684 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7685 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7686 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7687 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7688 * remote.c (compare_sections_command): Use gdb_byte.
7689 * score-tdep.c (score7_free_memblock): Change type of parameter to
7690 gdb_byte *.
7691 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7692 gdb_byte *. Use gdb_byte.
7693 (sh_push_dummy_call_fpu): Use gdb_byte.
7694 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7695 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7696 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7697 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7698 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7699 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7700 (sh64_store_return_value, sh64_register_convert_to_virtual):
7701 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7702 (sh64_pseudo_register_write): Use gdb_byte.
7703 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7704 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7705 buffer.
7706 (irix_current_sos): Use gdb_byte.
7707 * solib-som.c (som_current_sos): Use gdb_byte.
7708 * sparc-ravenscar-thread.c (supply_register_at_address)
7709 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7710 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7711 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7712 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7713 'gdb_byte *'.
7714 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7715 'gdb_byte *'.
7716 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7717 * xstormy16-tdep.c (xstormy16_extract_return_value)
7718 (xstormy16_store_return_value): Change parameter type to
7719 'gdb_byte *'. Adjust.
7720 (xstormy16_push_dummy_call): Use gdb_byte.
7721 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7722 (call0_analyze_prologue, execute_code): Use gdb_byte.
7723
7724 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7725 Pedro Alves <palves@redhat.com>
7726
7727 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7728 value contents.
7729
7730 2013-04-17 Doug Evans <dje@google.com>
7731
7732 * dwarf2read.c (struct signatured_type): New member type.
7733 (struct attribute): Replace member signatured_type with signature.
7734 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7735 (read_call_site_scope): Call follow_die_ref instead of
7736 follow_die_ref_or_sig.
7737 (read_structure_type): Rewrite handling of signatured types.
7738 (read_enumeration_type): Ditto.
7739 (read_attribute_value): Update.
7740 (build_error_marker_type): New function.
7741 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7742 Don't call error for bad types, just build an error marker type.
7743 (dump_die_shallow): Update.
7744 (follow_die_sig_1): Renamed from follow_die_sig.
7745 Don't call error for bad types, instead return NULL.
7746 (follow_die_sig): New function.
7747 (get_signatured_type, get_DW_AT_signature_type): New functions.
7748
7749 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7750
7751 * aarch64-tdep.c (aarch64_write_pc): Removed.
7752 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7753 function.
7754
7755 2013-04-17 Yao Qi <yao@codesourcery.com>
7756
7757 * top.c (print_gdb_configuration): Print configure-time
7758 parameter on using libbabeltrace or not.
7759
7760 2013-04-16 Pedro Alves <palves@redhat.com>
7761
7762 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7763
7764 2013-04-16 Pedro Alves <palves@redhat.com>
7765
7766 * common/glibc_thread_db.h: Update from upstream glibc
7767 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7768
7769 2013-04-16 Pedro Alves <palves@redhat.com>
7770
7771 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7772 * common/glibc_thread_db.h: ... this new file ...
7773 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7774
7775 2013-04-16 Will Newton <will.newton@gmail.com>
7776 Pedro Alves <palves@redhat.com>
7777
7778 PR build/11881
7779
7780 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7781 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7782 HAVE_THREAD_DB_H.
7783
7784 2013-04-16 Pedro Alves <palves@redhat.com>
7785 Eli Zaretskii <eliz@gnu.org>
7786
7787 * NEWS: Mention "set foo unlimited".
7788
7789 2013-04-15 Doug Evans <dje@google.com>
7790
7791 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7792 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7793 (create_dwo_cu_reader): Renamed from
7794 create_dwo_debug_info_hash_table_reader.
7795 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7796 Remove support for multiple CUs in a DWO file.
7797 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7798
7799 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7800 instead of phex.
7801 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7802 (create_dwo_in_dwp): Ditto.
7803
7804 2013-04-15 Tom Tromey <tromey@redhat.com>
7805
7806 * NEWS: Move recent entries into "since 7.6" section.
7807
7808 2013-04-15 Tom Tromey <tromey@redhat.com>
7809
7810 PR c++/13588:
7811 * NEWS: Update.
7812 * break-catch-throw.c (struct exception_catchpoint)
7813 <exception_rx, pattern>: New fields.
7814 (fetch_probe_arguments, dtor_exception_catchpoint)
7815 (check_status_exception_catchpoint)
7816 (print_one_detail_exception_catchpoint): New functions.
7817 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7818 Compile regular expression if needed.
7819 (extract_exception_regexp): New function.
7820 (catch_exception_command_1): Use extract_exception_regexp.
7821 (compute_exception): Use fetch_probe_arguments.
7822 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7823 and check_status fields.
7824 * cp-abi.c (cplus_typename_from_type_info): New function.
7825 * cp-abi.h (cplus_typename_from_type_info): Declare.
7826 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7827 * gdb_regex.h (compile_rx_or_error): Declare.
7828 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7829 comment.
7830 (init_gnuv3_ops): Set get_type_from_type_info field.
7831 * probe.c (compile_rx_or_error): Move...
7832 * utils.c (compile_rx_or_error): ... here.
7833
7834 2013-04-15 Tom Tromey <tromey@redhat.com>
7835
7836 PR c++/15176:
7837 * NEWS: Update.
7838 * break-catch-throw.c (compute_exception): New function.
7839 (exception_funcs): New global.
7840 (_initialize_break_catch_throw): Create $_exception.
7841 * cp-abi.c (cplus_type_from_type_info): New function.
7842 * cp-abi.h (cplus_type_from_type_info): Declare.
7843 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7844 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7845 (gnuv3_get_type_from_type_info): New functions.
7846 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7847
7848 2013-04-15 Tom Tromey <tromey@redhat.com>
7849
7850 * break-catch-throw.c (struct exception_names): New.
7851 (exception_functions): Change type.
7852 (re_set_exception_catchpoint): Look for SDT probes.
7853
7854 2013-04-15 Tom Tromey <tromey@redhat.com>
7855
7856 PR c++/10119:
7857 * break-catch-throw.c (exception_functions): New global.
7858 (gnu_v3_exception_catchpoint_ops): Move earlier.
7859 (struct exception_catchpoint): New.
7860 (classify_exception_breakpoint): Rewrite.
7861 (re_set_exception_catchpoint): New function.
7862 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7863 Allocate a struct exception_catchpoint.
7864 (catch_exception_command_1): Update.
7865 (initialize_throw_catchpoint_ops): Set 're_set' method.
7866
7867 2013-04-15 Tom Tromey <tromey@redhat.com>
7868
7869 * Makefile.in (SFILES): Add break-catch-throw.c
7870 (COMMON_OBS): Add break-catch-throw.o.
7871 * break-catch-throw.c: New file.
7872 * breakpoint.c: Move exception-catching code to new file.
7873 (ep_parse_optional_if_clause): No longer static.
7874 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7875
7876 2013-04-15 Tom Tromey <tromey@redhat.com>
7877
7878 PR c++/9065:
7879 * NEWS: Update.
7880 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7881 * c-exp.y (TYPEID): New token.
7882 (exp): Add new TYPEID productions.
7883 (ident_tokens): Add "typeid".
7884 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7885 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7886 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7887 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7888 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7889 case.
7890 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7891 (build_std_type_info_type, gnuv3_get_typeid_type)
7892 (gnuv3_get_typeid): New functions.
7893 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7894 new fields on ABI object.
7895 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7896 * std-operator.def (OP_TYPEID): New.
7897
7898 2013-04-15 Tom Tromey <tromey@redhat.com>
7899
7900 * elfread.c (elf_symtab_read): Install versioned symbol under
7901 unversioned name as well.
7902
7903 2013-04-15 Tom Tromey <tromey@redhat.com>
7904
7905 PR c++/11990:
7906 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7907 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7908 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7909 (gdb_demangle): New function.
7910 * cp-support.h (gdb_demangle): Declare.
7911 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7912 (dwarf2_name): Use gdb_demangle.
7913 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7914 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7915 suffixes from name.
7916 (gnuv3_print_method_ptr): Use gdb_demangle.
7917 * jv-lang.c (java_demangle): Use gdb_demangle.
7918 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7919 * language.c (unk_lang_demangle): Use gdb_demangle.
7920 * symtab.c (symbol_find_demangled_name)
7921 (demangle_for_lookup): Use gdb_demangle.
7922
7923 2013-04-15 Tom Tromey <tromey@redhat.com>
7924
7925 PR c++/12824:
7926 * NEWS: Update.
7927 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7928 New constant.
7929 (classify_exception_breakpoint): New function.
7930 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7931 (print_mention_exception_catchpoint)
7932 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7933 (catch_exception_command_1): Handle "rethrow" catchpoint.
7934 (catch_rethrow_command): New function.
7935 (_initialize_breakpoint): Add "catch rethrow" command.
7936
7937 2013-04-15 Pierre Muller <muller@sourceware.org>
7938
7939 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7940 set_gdbarch_write_pc as deprecated anymore.
7941
7942 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7943
7944 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7945 declarations.
7946
7947 2013-04-13 Yao Qi <yao@codesourcery.com>
7948
7949 * ctf.c (_initialize_ctf): Include "completer.h".
7950 Call add_target_with_completer instead of add_target.
7951
7952 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7953
7954 Fix GDB regression related to PR binutils/14813.
7955 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7956 * minidebug.c (lzma_close): Add return value comment.
7957 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7958 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7959 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7960
7961 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7962
7963 * config.in: Regenerate.
7964
7965 2013-04-12 Tom Tromey <tromey@redhat.com>
7966
7967 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7968 const.
7969 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7970 (struct die_reader_specs) <buffer>: Likewise.
7971 (die_reader_func_ftype): Make 'info_ptr' const.
7972 (struct line_header) <include_dirs, statement_program_start,
7973 statement_program_end>: Now const.
7974 (struct file_entry) <name>: Likewise.
7975 (struct partial_die_info) <sibling>: Likewise.
7976 (struct dwarf_block) <data>: Likewise.
7977 (dwarf2_read_section): Remove cast.
7978 (dwarf2_get_section_info): Make 'bufp' const.
7979 (read_index_from_section): Constify.
7980 (dw2_get_file_names_reader): Make 'info_ptr' const.
7981 (dw2_get_primary_filename_reader): Likewise.
7982 (read_comp_unit_head): Make 'info_ptr' and return type const.
7983 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7984 Likewise.
7985 (read_abbrev_offset): Constify.
7986 (dwarf2_create_include_psymtab): Make 'name' const.
7987 (create_debug_types_hash_table): Update.
7988 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7989 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7990 Constify.
7991 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7992 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7993 (read_comp_units_from_section): Constify.
7994 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7995 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7996 const.
7997 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7998 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7999 (create_dwp_hash_table, dwarf2_ranges_read)
8000 (dwarf2_record_block_ranges): Constify.
8001 (read_die_and_children, read_die_and_siblings_1)
8002 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8003 const.
8004 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8005 (abbrev_table_read_table): Constify.
8006 (load_partial_dies): Make 'info_ptr' const.
8007 (read_partial_die, read_attribute_value, read_attribute): Make
8008 'info_ptr' and return type const.
8009 (read_address, read_initial_length)
8010 (read_checked_initial_length_and_offset, read_offset)
8011 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8012 const.
8013 (read_direct_string): Make 'buf' and return type const.
8014 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8015 (read_indirect_string): Make return type const.
8016 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8017 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8018 'info_ptr' const.
8019 (read_str_index): Make return type const.
8020 (add_include_dir): Make 'include_dir' const.
8021 (add_file_name): Make 'name' const.
8022 (dwarf_decode_line_header): Constify.
8023 (psymtab_include_file_name): Make return type const.
8024 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8025 (dwarf2_start_subfile): Make 'filename' const.
8026 (dwarf2_const_value_attr): Make 'bytes' const.
8027 (read_signatured_type_reader): Make 'info_ptr' const.
8028 (decode_locdesc): Constify.
8029 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8030 const.
8031 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8032 'mac_end', and return type const.
8033 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8034 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8035 type const.
8036 (per_cu_header_read_in): Constify.
8037 * symfile.h (dwarf2_get_section_info): Update.
8038
8039 2013-04-12 Tom Tromey <tromey@redhat.com>
8040
8041 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8042
8043 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8044
8045 * NEWS: Mention "show configuration", --configuration.
8046 * top.c (print_gdb_configuration): New function, displays the
8047 details about GDB configure-time parameters.
8048 (print_gdb_version): Mention "show configuration".
8049 * cli/cli-cmds.c (show_configuration): New function.
8050 (_initialize_cli_cmds): Add the "show configuration" command.
8051 * main.c (captured_main) <print_configuration>: New static var.
8052 <long_options>: Use it.
8053 If --configuration was given, call print_gdb_configuration.
8054
8055 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8056 Pedro Alves <palves@redhat.com>
8057
8058 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8059 (generated_files): Add gcore.
8060 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8061 HAVE_NATIVE_GCORE_HOST.
8062 (gcore): New.
8063 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8064 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8065 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8066 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8067 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8068 Add HAVE_NATIVE_GCORE_HOST.
8069 * configure: Regenerate.
8070 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8071 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8072 AC_CONFIG_FILES for gcore.
8073 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8074 gdb_have_gcore.
8075 * gdb_gcore.sh: Rename to ...
8076 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8077 and GCORE_TRANSFORM_NAME substitutions.
8078
8079 Fix parsing tabs in ${gdb_target_obs}.
8080 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8081
8082 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8083
8084 * remote.c (unpush_and_perror): Add output message final dot.
8085
8086 2013-04-11 Yao Qi <yao@codesourcery.com>
8087
8088 * tracepoint.c (tfile_interp_line): Fit parameters line and
8089 utpp in one line.
8090
8091 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8092
8093 * solib.c (solib_map_sections): Remove code overwriting
8094 SO->SO_NAME with the bfd's filename.
8095
8096 2013-04-10 Pedro Alves <palves@redhat.com>
8097
8098 * cli/cli-decode.c (integer_unlimited_completer): New function.
8099 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8100 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8101 completer.
8102 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8103 (is_unlimited_literal): New function.
8104 (do_set_command): Handle literal "unlimited" arguments.
8105 * frame.c (_initialize_frame) <set backtrace limit>: Document
8106 "unlimited".
8107 * printcmd.c (_initialize_printcmd) <set print
8108 max-symbolic-offset>: Add help text.
8109 * record-full.c (_initialize_record_full) <set record full
8110 insn-number-max>: Likewise.
8111 * record.c (_initialize_record) <set record
8112 instruction-history-size, set record function-call-history-size>:
8113 Add help text.
8114 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8115 help text.
8116 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8117 Likewise.
8118 * source.c (_initialize_source) <set listsize>: Add help text.
8119 * utils.c (initialize_utils) <set height, set width>: Likewise.
8120 <set pagination>: Mention "set height unlimited".
8121 * valprint.c (_initialize_valprint) <set print elements, set print
8122 repeats>: Document "unlimited".
8123
8124 2013-04-10 Pedro Alves <palves@redhat.com>
8125
8126 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8127 instead of disconnect_tracing.
8128 * infcmd.c (detach_command, disconnect_command): Call
8129 query_if_trace_running. Adjust.
8130 * top.c: Include "tracepoint.h".
8131 (quit_target): Delete. Contents moved ...
8132 (quit_force): ... here. Wrap each stage of teardown in
8133 TRY_CATCH. Call disconnect_tracing before detaching.
8134
8135 2013-04-10 Hui Zhu <hui@codesourcery.com>
8136 Yao Qi <yao@codesourcery.com>
8137
8138 * configure.ac: Check libbabeltrace is installed.
8139 * config.in: Regenerate.
8140 * configure: Regenerate.
8141 * Makefile.in (LIBBABELTRACE): New.
8142 (CLIBS): Add LIBBABELTRACE.
8143 * ctf.c: Include "exec.h".
8144 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8145 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8146 (ctf_save_metadata_header): Define new type aliases in
8147 metadata.
8148 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8149 in metadata. Start a new faked packet for trace status.
8150 (ctf_write_status): Write trace status to CTF.
8151 (ctf_write_uploaded_tsv): Write TSV to CTF.
8152 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8153 (ctf_write_definition_end): End the faked packet.
8154
8155 (ctx, ctf_iter, trace_dirname): New.
8156 (start_pos): New variable.
8157 (ctf_destroy, ctf_open_dir, ctf_open): New.
8158 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8159 macros.
8160 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8161 (ctf_fetch_registers, ctf_xfer_partial): New.
8162 (ctf_get_trace_state_variable_value): New.
8163 (ctf_get_tpnum_from_frame_event): New.
8164 (ctf_get_traceframe_address): New.
8165 (ctf_trace_find, ctf_has_stack): New.
8166 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8167 (ctf_get_trace_status, ctf_read_status): New.
8168 (_initialize_ctf): New.
8169 * tracepoint.c (get_tracepoint_number): New
8170 (get_uploaded_tsv): Remove 'static'.
8171 (struct traceframe_info, trace_regblock_size): Move it to ...
8172 * tracepoint.h: ... here.
8173 (get_tracepoint_number): Declare it.
8174 (get_uploaded_tsv): Declare it.
8175
8176 * NEWS: Mention new configure option.
8177
8178 2013-04-10 Pedro Alves <palves@redhat.com>
8179 Hui Zhu <hui@codesourcery.com>
8180
8181 * breakpoint.c (dprintf_re_set): New.
8182 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8183 to dprintf_re_set.
8184
8185 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8186
8187 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8188 Remove solib-svr4.o from the list.
8189
8190 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8191
8192 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8193 Use gdb_assert_not_reached instead of invalid boolean expression.
8194
8195 2013-04-09 Pedro Alves <palves@redhat.com>
8196
8197 * remote.c (unpush_and_perror): New function.
8198 (readchar, remote_serial_write): Use it.
8199
8200 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8201
8202 * NEWS: Mention new btrace RSP packets.
8203
8204 2013-04-08 Tom Tromey <tromey@redhat.com>
8205
8206 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8207 long.
8208
8209 2013-04-08 Tom Tromey <tromey@redhat.com>
8210
8211 * maint.c (print_bfd_section_info): Print the section index.
8212 * symmisc.c (dump_msymbols): Print the section index.
8213
8214 2013-04-08 Tom Tromey <tromey@redhat.com>
8215
8216 PR symtab/8424:
8217 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8218 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8219 * breakpoint.c (resolve_sal_pc): Update.
8220 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8221 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8222 (minsym_lookup_iterator_cb): Use it.
8223 (default_read_var_value): Update.
8224 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8225 Update.
8226 * infcmd.c (jump_command): Update.
8227 * linespec.c (minsym_found): Update.
8228 * maint.c (maintenance_translate_address): Update.
8229 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8230 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8231 * parse.c (write_exp_msymbol): Update.
8232 * printcmd.c (address_info): Update.
8233 * psymtab.c (find_pc_sect_psymbol): Update.
8234 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8235 SYMBOL_OBJ_SECTION.
8236 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8237 Don't initialize SYMBOL_OBJ_SECTION.
8238 * spu-tdep.c (spu_catch_start): Update.
8239 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8240 * symmisc.c (dump_msymbols, print_symbol): Update.
8241 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8242 how fallback section is computed.
8243 (fixup_symbol_section): Update.
8244 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8245 Update.
8246 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8247 Initialize SYMBOL_SECTION.
8248 * symtab.h (struct general_symbol_info) <section>: Update comment.
8249 <obj_section>: Remove.
8250 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8251 (SYMBOL_OBJFILE): New macro.
8252
8253 2013-04-08 Tom Tromey <tromey@redhat.com>
8254
8255 * coffread.c (record_minimal_symbol): Update.
8256 * dbxread.c (record_minimal_symbol): Update.
8257 * elfread.c (record_minimal_symbol): Update.
8258 * machoread.c (macho_symtab_add_minsym): Update.
8259 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8260 Update.
8261 * minsyms.c (prim_record_minimal_symbol): Update.
8262 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8263 argument.
8264 (prim_record_minimal_symbol_and_info): Likewise.
8265 * minsyms.h (prim_record_minimal_symbol_full)
8266 (prim_record_minimal_symbol_and_info): Update.
8267 * symtab.c (allocate_symbol, initialize_symbol)
8268 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8269 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8270 Update.
8271
8272 2013-04-08 Tom Tromey <tromey@redhat.com>
8273
8274 PR symtab/8423:
8275 * solib-som.c (som_solib_section_offsets): Use BFD section
8276 indices. Set offsets for all sections.
8277 * somread.c (som_symtab_read): Compute BFD section for
8278 symbol. Use prim_record_minimal_symbol_and_info.
8279 (som_symfile_read): Fix comment.
8280 (struct find_section_offset_arg): New.
8281 (find_section_offset, set_section_index): New functions.
8282 (som_symfile_offsets): Use set_section_index to compute
8283 section indices.
8284
8285 2013-04-08 Tom Tromey <tromey@redhat.com>
8286
8287 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8288 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8289 gdb_bfd_section_index.
8290 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8291 New functions.
8292 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8293 Declare.
8294 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8295 Update.
8296 * objfiles.c (add_to_objfile_sections_full): New function.
8297 (add_to_objfile_sections): Use it.
8298 (build_section_table): Rewrite.
8299 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8300 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8301 (struct objfile) <sections>: Update comment.
8302 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8303 is NULL.
8304 (ALL_OBJSECTIONS): Use it.
8305 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8306 * solib-frv.c (frv_relocate_main_executable): Update.
8307 * solib-target.c (solib_target_relocate_section_addresses):
8308 Use gdb_bfd_section_index.
8309 * symfile.c (build_section_addr_info_from_section_table):
8310 Use gdb_bfd_section_index.
8311 (build_section_addr_info_from_bfd, place_section): Likewise.
8312 * symtab.c (fixup_section): Update.
8313 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8314
8315 2013-04-08 Tom Tromey <tromey@redhat.com>
8316
8317 * minsyms.h (struct bound_minimal_symbol): New.
8318 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8319 Remove objfile argument.
8320 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8321 Return bound_minimal_symbol.
8322 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8323 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8324 Return bound_minimal_symbol.
8325 (in_gnu_ifunc_stub): Update.
8326 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8327 Remove 'objfile_p' argument.
8328 (lookup_solib_trampoline_symbol_by_pc): Update.
8329 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8330 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8331 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8332 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8333 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8334 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8335 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8336 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8337 stack.c, symtab.c, tui/tui-disasm.c: Update.
8338
8339 2013-04-08 Tom Tromey <tromey@redhat.com>
8340
8341 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8342 Use symbol's obstack, not an objfile.
8343 * coffread.c (process_coff_symbol): Update.
8344 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8345 * jv-lang.c (add_class_symbol): Update.
8346 * mdebugread.c (new_symbol): Update.
8347 * minsyms.c (prim_record_minimal_symbol_full)
8348 (terminate_minimal_symbol_table): Update.
8349 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8350 * stabsread.c (define_symbol, read_enum_type): Update.
8351 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8352 Handle Ada specially.
8353 (symbol_set_language): Add 'obstack' argument.
8354 (symbol_set_names): Update.
8355 (symbol_natural_name, symbol_demangled_name): Always use
8356 ada_decode_symbol.
8357 * symtab.h (struct general_symbol_info)
8358 <language_specific::obstack>: New field.
8359 <ada_mangled>: New field.
8360 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8361 (symbol_set_language): Update.
8362
8363 2013-04-08 Tom Tromey <tromey@redhat.com>
8364
8365 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8366 Take an obstack, not an objfile.
8367 (symbol_set_names): Update.
8368 * symtab.h (symbol_set_demangled_name): Update.
8369
8370 2013-04-08 Tom Tromey <tromey@redhat.com>
8371
8372 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8373 allocate_symbol.
8374 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8375 (read_func_scope): Call allocate_template_symbol.
8376 (new_symbol_full): Call allocate_symbol.
8377 * jit.c (finalize_symtab): Call allocate_symbol.
8378 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8379 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8380 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8381 (common_block_end): Call allocate_symbol.
8382 * symtab.c (allocate_symbol, initialize_symbol)
8383 (allocate_template_symbol): New functions.
8384 * symtab.c (allocate_symbol, initialize_symbol)
8385 (allocate_template_symbol): Declare.
8386 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8387
8388 2013-04-08 Pedro Alves <palves@redhat.com>
8389 Keith Seitz <keiths@redhat.com>
8390
8391 * breakpoint.c (create_breakpoint): Rename
8392 "parse_condition_and_thread" parameter to "parse_arg". Update
8393 describing comment. If !PARSE_ARG, then error out if ARG is not
8394 the empty string after extracting the location.
8395 * breakpoint.h (create_breakpoint): Rename
8396 "parse_condition_and_thread" parameter to "parse_arg".
8397
8398 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8399
8400 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8401
8402 2013-04-07 Yao Qi <yao@codesourcery.com>
8403
8404 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8405 and 'addr2' to CORE_ADDR.
8406 * target.c (update_current_target): Update.
8407 * target.h (struct target_ops) <to_trace_find>: Change parameter
8408 type to CORE_ADDR.
8409 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8410 'addr2' to CORE_ADDR.
8411 (tfile_trace_find): Likewise.
8412 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8413 Change local variable 'addr' to type CORE_ADDR.
8414 * tracepoint.h (tfind_1): Update declaration.
8415
8416 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8417
8418 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8419 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8420 Include main.h.
8421
8422 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8423 here...
8424 * main.h (windows_get_absolute_argv0): ...to here.
8425
8426 2013-04-05 Doug Evans <dje@google.com>
8427
8428 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8429 (read_cutu_die_from_dwo): Add comments.
8430 (read_structure_type): Update comment.
8431 (read_enumeration_type, read_namespace_type): Update comment.
8432 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8433
8434 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8437 * Makefile.in (gdb.z): Remove.
8438 (install-only): Remove $(man1dir) and gdb.1 installation.
8439 * gdb.1: Remove.
8440
8441 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8442
8443 Fix compatibility with Linux kernel 3.8.3.
8444 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8445 to more inner block. Remove parsing of NUMBER from outer block.
8446 Parse NUMBER only if KEYWORD has been identified.
8447
8448 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8449
8450 Fix variable name shadowing.
8451 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8452 filename to mapsfilename and update its uses.
8453
8454 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8455
8456 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8457 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8458 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8459 details of the problem.
8460
8461 2013-04-04 Pedro Alves <palves@redhat.com>
8462 Hui Zhu <hui@codesourcery.com>
8463
8464 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8465 tracepoint, reset its STEP_COUNT and call validate_actionline.
8466
8467 2013-04-03 Doug Evans <dje@google.com>
8468
8469 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8470 read_die_and_siblings.
8471 (read_die_and_siblings): New function.
8472 (read_cutu_die_from_dwo): Dump die if requested.
8473 (read_die_and_children): Call read_full_die_1 and
8474 read_die_and_siblings_1.
8475 (read_full_die): Dump die if requested.
8476
8477 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8478
8479 * dwarf2read.c (struct dwo_file): New member comp_dir.
8480 Rename member name to dwo_name. All uses updated.
8481 (hash_dwo_file): Include comp_dir in computation.
8482 (eq_dwo_file): Ditto.
8483 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8484 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8485
8486 * psymtab.c (read_psymtabs_with_fullname): Don't call
8487 psymtab_to_fullname if the basenames are different.
8488
8489 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8490
8491 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8492 New entry about "fullname" presence.
8493
8494 2013-04-03 Pedro Alves <palves@redhat.com>
8495
8496 * NEWS: Mention x86_64/Cygwin as new native configuration.
8497
8498 2013-04-02 Doug Evans <dje@google.com>
8499
8500 * dwarf2read.c (read_structure_type): Fix typo in comment.
8501
8502 2013-04-02 Pedro Alves <palves@redhat.com>
8503
8504 * NEWS: Mention "set/show debug aarch64", "set/show debug
8505 coff-pe-read" and "set/show debug mach-o".
8506
8507 2013-04-02 Pedro Alves <palves@redhat.com>
8508
8509 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8510
8511 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8512
8513 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8514 gdb_string.h is now in common/.
8515
8516 2013-04-02 Pedro Alves <palves@redhat.com>
8517
8518 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8519 under "New options".
8520
8521 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8522
8523 Revert this patch:
8524 PR gdb/15275
8525 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8526
8527 2013-04-02 Pedro Alves <palves@redhat.com>
8528
8529 PR gdb/15275
8530
8531 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8532 (remote_serial_write): New function.
8533 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8534
8535 2013-04-01 Jiong Wang <jiwang@tilera.com>
8536
8537 * NEWS: Mention TILE-Gx in "New native configurations" and
8538 "New targets" sections.
8539
8540 2013-04-01 Doug Evans <dje@google.com>
8541
8542 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8543 (process_enumeration_scope): Simplify.
8544
8545 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8546 type_unit_group ...
8547 (struct signatured_type): ... to here.
8548 (sig_type_ptr): New typedef.
8549 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8550 out of union 't'. All uses updated.
8551 (dw2_get_file_names_reader): Assert not called for a type unit.
8552 (dw2_get_file_names): Assert not called for a type unit or type
8553 unit group.
8554 (build_type_psymtabs_reader): Assert called for a type unit.
8555 (build_type_psymtab_dependencies): Assert called for a type unit group.
8556
8557 * dwarf2read.c (free_dwo_file): Add comment.
8558 (dwarf2_per_objfile_free): Unref dwp bfd.
8559
8560 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8561
8562 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8563 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8564 (read_pe_exported_syms): Remove unused 'exportix'.
8565 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8566 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8567 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8568
8569 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8570
8571 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8572 (print_it_watchpoint): Remove unused 'bl'.
8573 (say_where): Remove unused 'uiout'.
8574 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8575 (bkpt_breakpoint_hit): Remove unused 'b'.
8576 (internal_bkpt_print_it): Remove unused 'uiout'.
8577 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8578
8579 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8580
8581 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8582 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8583
8584 2013-03-29 Doug Evans <dje@google.com>
8585
8586 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8587 Delete arg is_dwp. All callers updated.
8588 (open_dwp_file): New function.
8589 (open_and_init_dwp_file): Call it.
8590 (get_dwp_file): New function.
8591 (lookup_dwo_cutu): Call it.
8592
8593 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8594 unnecessary, cleanup.
8595
8596 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8597
8598 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8599 (lookup_dwo_unit): New function.
8600 (init_cutu_and_read_dies): Move DWO handling to new functions.
8601
8602 * dwarf2read.c (struct signatured_type): Tweak comment.
8603 (struct dwo_unit): Tweak comment.
8604 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8605 (create_dwo_debug_info_hash_table): Tweak comment.
8606 (dwarf2_per_cu_offset_and_type): Tweak comment.
8607
8608 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8609 missing .debug_types section.
8610
8611 2013-03-29 Yao Qi <yao@codesourcery.com>
8612
8613 * corelow.c: Include "completer.h".
8614 (_initialize_corelow): Call add_target_with_completer with
8615 argument 'filename_completer'.
8616 * tracepoint.c: Likewise.
8617 * exec.c (_initialize_exec): Likewise.
8618 * target.c (add_target): Rename to ...
8619 (add_target_with_completer): ... this. Call set_cmd_completer
8620 if parameter completer is not NULL.
8621 (add_target): New.
8622 * target.h: Include "command.h".
8623 (add_target_with_completer): Declare it.
8624
8625 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8626
8627 * coffread.c (is_import_fixup_symbol): New function.
8628 (record_minimal_symbol): Use is_import_fixup_symbol to
8629 detect import fixup symbols, and discard them.
8630
8631 2013-03-28 Doug Evans <dje@google.com>
8632
8633 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8634 types hash table until we know we need it.
8635
8636 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8637 index numbers.
8638
8639 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8640 All callers updated.
8641 (dw2_print_stats): Print #read CUs too.
8642 (dump_die_shallow): Print signatured types better.
8643
8644 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8645 info_or_types_section to section. All uses updated.
8646 (struct dwo_unit): Ditto.
8647
8648 2013-03-28 Pedro Alves <palves@redhat.com>
8649
8650 * NEWS (New options): New section.
8651 (New options): Mention set/show remote trace-status-packet.
8652 * remote.c (PACKET_qTStatus): New enumeration value.
8653 (remote_get_trace_status): Skip sending qTStatus if the packet is
8654 disabled. Use packet_ok.
8655 (_initialize_remote): Register a configuration command for
8656 qTStatus packet.
8657
8658 2013-03-28 Doug Evans <dje@google.com>
8659
8660 * symfile.c (find_separate_debug_file): Add comment.
8661 (terminate_after_last_dir_separator): Tweak comment.
8662
8663 * dwarf2read.c (create_partial_symtab): Add forward decl.
8664 (create_partial_symtab): Move to be closer to other psymtab functions.
8665 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8666
8667 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8668 (compute_symtab_includes): Remove unnecessary forward declaration.
8669 (die_needs_namespace): Add comment marking group of functions for
8670 dwarf2 name computation.
8671
8672 * typeprint.c (_initialize_typeprint): Improve type help text.
8673
8674 * python/python.c (finish_python_initialization): Provide suggestion
8675 for how to tell gdb to find its python files.
8676
8677 2013-03-28 Pedro Alves <palves@redhat.com>
8678
8679 PR gdb/15294
8680
8681 * source.c (_initialize_source): Change back "set listsize" to an
8682 integer command.
8683
8684 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8685
8686 PR gdb/15275
8687 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8688
8689 2013-03-27 Pedro Alves <palves@redhat.com>
8690
8691 * top.c (history_size): Rename to ...
8692 (history_size_setshow_var): ... this. Add comment.
8693 (show_commands): Use readline's 'history_length' instead of
8694 computing the history length by calling history_get in a loop.
8695 (set_history_size_command): Error out for sizes over INT_MAX.
8696 Restore previous history size on invalid size.
8697 (init_history): If HISTSIZE is negative, leave the history size as
8698 zero. Add comments.
8699 (init_main): Adjust.
8700
8701 2013-03-27 Pedro Alves <palves@redhat.com>
8702
8703 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8704 coff_pe_read" command to "set debug coff-pe-read".
8705
8706 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8707
8708 * record.c (command_size_to_target_size): Fix size comparison.
8709 Change parameter type from pointer to integer to integer.
8710 Update all users.
8711
8712 2013-03-27 Pierre Muller <muller@sourceware.org>
8713
8714 * windows-nat.c (handle_output_debug_string): Avoid typecast
8715 from integer of different size warning.
8716
8717 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8718
8719 * windows-nat.c (handle_output_debug_string): Add empty line
8720 after local block variable definition.
8721
8722 2013-03-26 Pedro Alves <palves@redhat.com>
8723
8724 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8725 (net_open): Make 'polls' local unsigned.
8726
8727 2013-03-26 Pedro Alves <palves@redhat.com>
8728
8729 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8730 a zuinteger command instead of uinteger.
8731
8732 2013-03-26 Pedro Alves <palves@redhat.com>
8733
8734 * record-full.c (record_full_insn_num): Make it unsigned.
8735 (record_full_check_insn_num, record_full_message)
8736 (record_full_registers_change, record_full_xfer_partial): Remove
8737 record_full_insn_max_num check (it's always != 0).
8738 (record_full_info, record_full_restore): Use %u as format string.
8739 (): Use %u as format string.
8740 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8741 check (it's always != 0).
8742
8743 2013-03-26 Pedro Alves <palves@redhat.com>
8744
8745 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8746 and "set dcache size" commands zuinteger instead of uinteger.
8747
8748 2013-03-26 Pedro Alves <palves@redhat.com>
8749
8750 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8751 command zuinteger instead of uinteger.
8752
8753 2013-03-26 Pedro Alves <palves@redhat.com>
8754
8755 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8756 zuinteger instead of uinteger.
8757
8758 2013-03-26 Pedro Alves <palves@redhat.com>
8759
8760 * record.c (record_insn_history_size_setshow_var)
8761 (record_call_history_size_setshow_var): New globals.
8762 (command_size_to_target_size): New function.
8763 (cmd_record_insn_history, cmd_record_call_history): Use
8764 command_size_to_target_size instead of cast.
8765 (validate_history_size, set_record_insn_history_size)
8766 (set_record_call_history_size): New functions.
8767 (_initialize_record): Install set_record_insn_history_size and
8768 set_record_call_history_size as "set" hooks of "set record
8769 instruction-history-size" and "set record
8770 function-call-history-size".
8771
8772 2013-03-26 Pedro Alves <palves@redhat.com>
8773
8774 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8775 use with history_max_entries use. Remove FIXME note.
8776
8777 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8778
8779 * record-btrace.c (record_btrace_close): Call
8780 record_btrace_auto_disable.
8781
8782 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8783
8784 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8785
8786 2013-03-25 Doug Evans <dje@google.com>
8787
8788 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8789
8790 2013-03-25 Tom Tromey <tromey@redhat.com>
8791
8792 PR symtab/11462:
8793 * c-exp.y (exp): Add new productions for destructors after '.' and
8794 '->'.
8795 (write_destructor_name): New function.
8796
8797 2013-03-25 Tom Tromey <tromey@redhat.com>
8798
8799 PR c++/9197:
8800 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8801 value_struct_elt, not lookup_struct_elt_type.
8802 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8803 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8804 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8805
8806 2013-03-25 Yao Qi <yao@codesourcery.com>
8807
8808 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8809 instead of '_mkdir'.
8810
8811 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8812
8813 * windows-nat.c (windows_get_absolute_argv0): New function.
8814 * windows-nat.h: Add its prototype.
8815
8816 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8817 Use IS_DIR_SEPARATOR instead of looking for a character inside
8818 SLASH_STRING. Include filenames.h.
8819 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8820 relocate_gdb_directory works when passed gdb_program_name.
8821 Include windows-nat.h.
8822
8823 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8824
8825 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8826 * remote.c (trace_error): Remove the special handling of '2'.
8827 (readchar) <SERIAL_EOF>
8828 (readchar) <SERIAL_ERROR>
8829 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8830 (remote_get_trace_status): Call throw_exception if EX is
8831 TARGET_CLOSE_ERROR.
8832 * utils.c (perror_with_name): Rename to ...
8833 (throw_perror_with_name): ... here. New parameter errcode, describe it
8834 in the function comment.
8835 (perror_with_name): New function wrapper.
8836 * utils.h (enum errors): New stub declaration.
8837 (throw_perror_with_name): New declaration.
8838
8839 2013-03-22 Pedro Alves <palves@redhat.com>
8840 Yao Qi <yao@codesourcery.com>
8841 Mark Kettenis <kettenis@gnu.org>
8842
8843 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8844 Don't let the user set the value to UINT_MAX directly.
8845 <var_integer>: Don't let the user set the value to INT_MAX
8846 directly.
8847
8848 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8849
8850 * remote.c (remote_unpush_target): New function.
8851 (remote_open_1): Remove two pop_target calls, update one comment, add
8852 comment to target_preopen call. Replace pop_target call by
8853 remote_unpush_target call.
8854 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8855 pop_target calls by remote_unpush_target calls.
8856
8857 2013-03-22 Pedro Alves <palves@redhat.com>
8858
8859 * linux-nat.c (linux_child_follow_fork): Don't call
8860 linux_enable_event_reporting.
8861 (linux_handle_extended_wait): Don't call
8862 linux_enable_event_reporting.
8863
8864 2013-03-22 Pedro Alves <palves@redhat.com>
8865
8866 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8867 use it to rewrite the trampoline buffers with type gdb_byte[], and
8868 undefine the macro. Remove char* cast.
8869
8870 2013-03-21 Doug Evans <dje@google.com>
8871
8872 New commands "mt set per-command {space,time,symtab} {on,off}".
8873 * NEWS: Add entry.
8874 * event-top.c: #include "maint.h".
8875 * main.c: #include "maint.h".
8876 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8877 timeval-utils.h, maint.h, cli/cli-setshow.h.
8878 (per_command_time, per_command_space): New static globals.
8879 (per_command_symtab): New static global.
8880 (per_command_setlist, per_command_showlist): New static globals.
8881 (struct cmd_stats): Move here from utils.c.
8882 (set_per_command_time): Renamed from set_display_time in utils.c
8883 and moved here. All callers updated.
8884 (set_per_command_space): Renamed from set_display_space in utils.c
8885 and moved here. All callers updated.
8886 (count_symtabs_and_blocks): New function.
8887 (report_command_stats): Moved here from utils.c. Add support for
8888 printing symtab stats. Only print data if enabled before command
8889 executed.
8890 (make_command_stats_cleanup): Ditto.
8891 (sert_per_command_cmd, show_per_command_cmd): New functions.
8892 (_initialize_maint_cmds): Add new commands
8893 mt set per-command {space,time,symtab} {on,off}.
8894 * maint.h: New file.
8895 * top.c: #include "maint.h".
8896 * utils.c (reset_prompt_for_continue_wait_time): New function.
8897 (get_prompt_for_continue_wait_time): New function.
8898 * utils.h (reset_prompt_for_continue_wait_time): Declare
8899 (get_prompt_for_continue_wait_time): Declare.
8900 (make_command_stats_cleanup): Moved to maint.h.
8901 (set_display_time, set_display_space): Moved to maint.h and renamed
8902 to set_per_command_time, set_per_command_space.
8903 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8904 parse_binary_operation and made non-static. Don't call error,
8905 just return an error marker. All callers updated.
8906 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8907
8908 2013-03-21 Tom Tromey <tromey@redhat.com>
8909
8910 * symfile.c (alloc_section_addr_info): Update header. Don't set
8911 'num_sections' field.
8912 (build_section_addr_info_from_section_table): Set 'num_sections'.
8913 (build_section_addr_info_from_bfd): Likewise.
8914 (build_section_addr_info_from_objfile): Remove dead loop
8915 condition.
8916 (free_section_addr_info): Unconditionally call xfree.
8917 (relative_addr_info_to_section_offsets, addrs_section_sort)
8918 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8919 condition.
8920 (syms_from_objfile_1): Remove dead 'if' condition. Check
8921 'num_sections'.
8922 (add_symbol_file_command): Set 'num_sections'.
8923 * symfile-mem.c (symbol_file_add_from_memory): Set
8924 'num_sections'.
8925 * somread.c (som_symfile_offsets): Remove dead loop condition.
8926 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8927 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8928
8929 2013-03-21 Tom Tromey <tromey@redhat.com>
8930
8931 * tracepoint.h (decode_agent_options): Add 'trace_string'
8932 argument.
8933 * tracepoint.c (decode_agent_options): Add 'trace_string'
8934 argument.
8935 (validate_actionline): Update.
8936 (collect_symbol): Add 'trace_string' argument.
8937 (struct add_local_symbols_data) <trace_string>: New field.
8938 (do_collect_symbol): Update.
8939 (add_local_symbols): Add 'trace_string' argument.
8940 (encode_actions_1): Update.
8941 (trace_dump_actions): Update.
8942 * dwarf2loc.c (access_memory): Update.
8943 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8944 * ax-general.c (new_agent_expr): Update.
8945 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8946 (gen_trace_for_return_address): Add argument.
8947 (trace_kludge, trace_string_kludge): Remove.
8948 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8949 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8950 (gen_trace_for_var): Add 'trace_string' argument.
8951 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8952 (gen_printf, agent_eval_command_one): Update.
8953
8954 2013-03-21 Tom Tromey <tromey@redhat.com>
8955
8956 PR exp/15109:
8957 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8958 Handle FILENAME token.
8959
8960 2013-03-21 Tom Tromey <tromey@redhat.com>
8961
8962 * c-exp.y (YYPRINT): Define.
8963 (c_print_token): New function.
8964
8965 2013-03-21 Tom Tromey <tromey@redhat.com>
8966
8967 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8968
8969 2013-03-21 Yao Qi <yao@codesourcery.com>
8970
8971 * ctf.c: Include "gdb_stat.h".
8972 [USE_WIN32API]: New macro 'mkdir'.
8973 (ctf_start): Use permission bits macros if they are defined.
8974
8975 2013-03-20 Keith Seitz <keiths@redhat.com>
8976
8977 * breakpoint.h (struct breakpoint): Add comment to
8978 extra_string indicating that this member is mallod'd.
8979 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8980
8981 2013-03-20 Pedro Alves <palves@redhat.com>
8982
8983 PR gdb/15289
8984
8985 * cli/cli-setshow.c (do_set_command)
8986 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8987 the result of parsing the command argument. Throw error if the
8988 value is greater than UINT_MAX. Print the invalid value with
8989 plongest.
8990 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8991 result of parsing the command argument. Throw error if the value
8992 is greater than INT_MAX, not greater or equal. Also throw error
8993 if the value is less than INT_MIN. Print the invalid value with
8994 plongest.
8995 <var_zuinteger_unlimited>: Throw error if the value is greater
8996 than INT_MAX, not greater or equal.
8997 (do_show_command) <var_integer, var_zinteger,
8998 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8999
9000 2013-03-20 Tom Tromey <tromey@redhat.com>
9001
9002 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9003 if possible.
9004 * dwarf2read.c (read_func_scope): Remove old FIXME.
9005 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9006 not LOC_COMPUTED.
9007 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9008 Unconditionally call via computed ops, if possible.
9009 * printcmd.c (address_info): Unconditionally call via computed ops,
9010 if possible.
9011 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9012 if possible.
9013 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9014 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9015 if possible.
9016
9017 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9018 Tom Tromey <tromey@redhat.com>
9019
9020 PR symtab/8421:
9021 * coffread.c (coff_register_index): New global.
9022 (process_coff_symbol, coff_read_enum_type): Set
9023 SYMBOL_ACLASS_INDEX.
9024 (_initialize_coffread): Initialize new global.
9025 * dwarf2loc.c (locexpr_find_frame_base_location)
9026 (dwarf2_block_frame_base_locexpr_funcs)
9027 (loclist_find_frame_base_location)
9028 (dwarf2_block_frame_base_loclist_funcs): New.
9029 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9030 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9031 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9032 (dwarf2_block_frame_base_loclist_funcs): New.
9033 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9034 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9035 globals.
9036 (read_func_scope): Update.
9037 (fixup_go_packaging, mark_common_block_symbol_computed)
9038 (var_decode_location, new_symbol_full, dwarf2_const_value):
9039 Set SYMBOL_ACLASS_INDEX.
9040 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9041 (_initialize_dwarf2_read): Initialize new globals.
9042 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9043 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9044 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9045 globals.
9046 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9047 (_initialize_mdebugread): Initialize new globals.
9048 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9049 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9050 (stab_register_index, stab_regparm_index): New globals.
9051 (define_symbol, read_enum_type, common_block_end): Set
9052 SYMBOL_ACLASS_INDEX.
9053 (_initialize_stabsread): Initialize new globals.
9054 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9055 globals.
9056 (MAX_SYMBOL_IMPLS): New define.
9057 (register_symbol_computed_impl, register_symbol_block_impl)
9058 (register_symbol_register_impl)
9059 (initialize_ordinary_address_classes): New functions.
9060 (_initialize_symtab): Call initialize_ordinary_address_classes.
9061 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9062 (struct symbol_impl): New.
9063 (SYMBOL_ACLASS_BITS): New define.
9064 (struct symbol) <aclass, ops>: Remove fields.
9065 <aclass_index>: New field.
9066 (symbol_impls): Declare.
9067 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9068 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9069 (register_symbol_computed_impl, register_symbol_block_impl)
9070 (register_symbol_register_impl): Declare.
9071 (struct symbol_computed_ops): Add location_has_loclist.
9072 (struct symbol_block_ops): New.
9073 (SYMBOL_BLOCK_OPS): New.
9074 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9075
9076 2013-03-20 Tom Tromey <tromey@redhat.com>
9077
9078 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9079 (print_partial_symbols, recursively_search_psymtabs): Use
9080 PSYMBOL_CLASS.
9081
9082 2013-03-20 Pierre Muller <muller@sourceware.org>
9083
9084 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9085 addtion, subtraction, multiplication and division binary operator.
9086
9087 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9088
9089 Code cleanup.
9090 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9091 * bsd-kvm.c (bsd_kvm_close): Likewise.
9092 * bsd-uthread.c (bsd_uthread_close): Likewise.
9093 * corelow.c (core_close): Likewise.
9094 (core_close_cleanup): Remove parameter quitting from a caller.
9095 * event-top.c (async_disconnect): Likewise.
9096 * exec.c (exec_close_1): Remove parameter quitting.
9097 * go32-nat.c (go32_close): Likewise.
9098 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9099 parameter quitting from a caller.
9100 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9101 variable.
9102 (mips_linux_close): Remove parameter quitting. Remove parameter
9103 quitting from a caller.
9104 * monitor.c (monitor_close): Remove parameter quitting.
9105 * monitor.h (monitor_close): Likewise.
9106 * record-btrace.c (record_btrace_close): Likewise.
9107 * record-full.c (record_full_close): Likewise.
9108 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9109 it also from fprintf_unfiltered.
9110 * remote-mips.c (mips_close): Remove parameter quitting.
9111 (mips_detach): Remove parameter quitting from a caller.
9112 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9113 (gdbsim_close): Remove duplicate function comment. Remove parameter
9114 quitting and remove it also from printf_filtered.
9115 * remote.c (remote_close): Remove parameter quitting.
9116 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9117 * target.c (update_current_target): Remove parameter int from to_close
9118 de_fault.
9119 (push_target, unpush_target, pop_target): Remove parameter quitting from
9120 a caller.
9121 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9122 Remove parameter quitting from a caller.
9123 (target_preopen): Remove parameter quitting from a caller.
9124 (target_close): Remove parameter quitting. Remove parameter quitting
9125 from a caller two times. Remove parameter quitting also from
9126 fprintf_unfiltered.
9127 * target.h (struct target_ops): Remove parameter quitting and as int
9128 from fields to_xclose and to_close.
9129 (extern struct target_ops current_target):
9130 (target_close, pop_all_targets): Remove parameter quitting. Update the
9131 comment.
9132 (pop_all_targets_above): Remove parameter quitting.
9133 * top.c (quit_target): Remove parameter quitting from a caller.
9134 * tracepoint.c (tfile_close): Remove parameter quitting.
9135 * windows-nat.c (windows_close): Remove parameter quitting.
9136
9137 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9138
9139 * windows-nat.c (handle_output_debug_string): Replace call
9140 to string_to_core_addr with call to strtoull.
9141
9142 2013-03-20 Yao Qi <yao@codesourcery.com>
9143
9144 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9145 and write it to CTF metadata.
9146
9147 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9148
9149 * windows-nat.c (handle_output_debug_string): Change type of n to
9150 SIZE_T to avoid crash on 64 bit systems.
9151
9152 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9153
9154 * python/python-internal.h (HAVE_SNPRINTF)
9155 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9156 about redefinition of snprintf by pyerrors.h.
9157
9158 2013-03-15 Steve Ellcey <sellcey@mips.com>
9159
9160 * remote-sim.c (sim_command_completer): Make char arguments const.
9161
9162 2013-03-15 Tom Tromey <tromey@redhat.com>
9163
9164 PR c++/15116:
9165 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9166
9167 2013-03-14 Tom Tromey <tromey@redhat.com>
9168
9169 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9170 New fields.
9171 (get_file_crc): Move from symfile.c.
9172 (gdb_bfd_crc): New function.
9173 * gdb_bfd.h (gdb_bfd_crc): Declare.
9174 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9175 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9176 (separate_debug_file_exists): Use gdb_bfd_crc.
9177
9178 2013-03-14 Tom Tromey <tromey@redhat.com>
9179
9180 * symfile.c (get_debug_link_info): Remove.
9181 (find_separate_debug_file_by_debuglink): Use
9182 bfd_get_debug_link_info.
9183
9184 2013-03-14 Tom Tromey <tromey@redhat.com>
9185
9186 * symtab.c (error_in_psymtab_expansion): New function.
9187 (lookup_symbol_aux_quick)
9188 (basic_lookup_transparent_type_quick): Remove "last resort"
9189 code. Use error_in_psymtab_expansion.
9190
9191 2013-03-14 Doug Evans <dje@google.com>
9192 Jan Kratochvil <jan.kratochvil@redhat.com>
9193
9194 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9195 any successful compare_filenames_for_search or FILENAME_CMP.
9196 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9197 * symtab.c (iterate_over_some_symtabs): Likewise.
9198
9199 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9200
9201 * source.c (print_source_lines_base): Make a local copy of
9202 symtab_to_fullname.
9203
9204 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9205 Jan Kratochvil <jan.kratochvil@redhat.com>
9206
9207 * source.c (print_source_lines_base): Suppress "file" for TUI.
9208
9209 2013-03-14 Keith Seitz <keiths@redhat.com>
9210 Alan Matsuoka <alanm@redhat.com>
9211
9212 PR c++/15203
9213 PR c++/15210
9214 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9215 TYPE_CODE_METHOD.
9216 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9217 symbols.
9218
9219 2013-03-14 Yao Qi <yao@codesourcery.com>
9220
9221 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9222 status to tfile if trace is stopped by command 'tstop'.
9223
9224 2013-03-14 Yao Qi <yao@codesourcery.com>
9225
9226 * tracepoint.c (tfile_write_status): Write trace notes and user
9227 name into tfile if they are not NULL.
9228
9229 2013-03-14 Hui Zhu <hui@codesourcery.com>
9230 Yao Qi <yao@codesourcery.com>
9231
9232 * Makefile.in (REMOTE_OBS): Add ctf.o.
9233 (SFILES): Add ctf.c.
9234 (HFILES_NO_SRCDIR): Add ctf.h.
9235 * ctf.c, ctf.h: New files.
9236 * tracepoint.c: Include 'ctf.h'.
9237 (collect_pseudocommand): Remove static.
9238 (trace_save_command): Parse option "-ctf".
9239 Produce different trace file writers per option.
9240 Adjust output message.
9241 (trace_save_tfile, trace_save_ctf): New.
9242 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9243 * mi/mi-main.c: Include 'ctf.h'.
9244 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9245 trace_save_tfile or trace_save_ctf.
9246 * NEWS: Mention these changes.
9247
9248 2013-03-14 Yao Qi <yao@codesourcery.com>
9249
9250 * tracepoint.c (trace_file_writer_xfree): New.
9251 (struct tfile_writer_data): New.
9252 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9253 (tfile_write_header, tfile_write_regblock_type): New.
9254 (tfile_write_status, tfile_write_uploaded_tsv): New.
9255 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9256 (tfile_write_raw_data, (tfile_end): New.
9257 (tfile_write_ops): New global variable.
9258 (TRACE_WRITE_R_BLOCK): New macro.
9259 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9260 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9261 (TRACE_WRITE_V_BLOCK): New macro.
9262 (trace_save): Add extra one parameter WRITER. Make it static.
9263 Use WRITER to writer trace.
9264 (tfile_trace_file_writer_new): New.
9265 (trace_save_command): Caller update.
9266 (trace_save_tfile): Write trace data in TFILE format.
9267 * tracepoint.h (struct trace_frame_write_ops): New.
9268 (struct trace_file_write_ops): New.
9269 (struct trace_file_writer): New.
9270 (trace_save): Remove its declaration.
9271 (trace_save_tfile): Declare it.
9272 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9273 instead of trace_save.
9274
9275 2013-03-13 Pedro Alves <palves@redhat.com>
9276
9277 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9278
9279 2013-03-13 Pedro Alves <palves@redhat.com>
9280
9281 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9282 commented out code.
9283 * demangle.c (current_demangling_style_string): Make it const.
9284 (set_demangling_command): Assert the demangling style is known.
9285 Remove all handling of unknown styles. Set
9286 'current_demangling_style_string' to an element of the
9287 demangling_style_names array.
9288 (set_demangling_style): Delete.
9289 (_initialize_demangler): Set current_demangling_style_string to the
9290 element of the demangling_style_names array that corresponds to
9291 the default demangling style. Remove FIXME note. Don't call
9292 set_demangling_style.
9293 * gdb-demangle.h (set_demangling_style): Remove declaration.
9294
9295 2013-03-13 Pedro Alves <palves@redhat.com>
9296
9297 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9298 fields const.
9299 (ada_make_symbol_completion_list): Make "text0" parameter const.
9300 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9301 * breakpoint.c (condition_completer): Make "text" and "word"
9302 parameters const. Adjust.
9303 (check_tracepoint_command): Adjust to validate_actionline
9304 prototype change.
9305 (catch_syscall_completer): Make "text" and "word" parameters
9306 const.
9307 * cli/cli-cmds.c (show_user): Make "comname" local const.
9308 (valid_command_p): Make "command" parameter const.
9309 (alias_command): Make "alias_prefix" and "command_prefix" locals
9310 const.
9311 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9312 (add_alias_cmd): Make "name" and "oldname" parameters const.
9313 Adjust. No longer make copy of OLDNAME.
9314 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9315 (add_setshow_cmd_full, add_setshow_enum_cmd)
9316 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9317 (add_setshow_filename_cmd, add_setshow_string_cmd)
9318 (add_setshow_string_noescape_cmd)
9319 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9320 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9321 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9322 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9323 Make "name" parameter const.
9324 (help_cmd): Rename "command" parameter to "arg". New const local
9325 "command".
9326 (find_cmd): Make "command" parameter const.
9327 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9328 deprecated_cmd_warning prototype change.
9329 (undef_cmd_error): Make "cmdtype" parameter const.
9330 (lookup_cmd): Make "line" parameter const.
9331 (deprecated_cmd_warning): Change type of "text" parameter to
9332 pointer to const char, from pointer to pointer to char. Adjust.
9333 (lookup_cmd_composition): Make "text" parameter const.
9334 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9335 parameters const.
9336 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9337 const.
9338 * cli/cli-script.c (validate_comname): Make "tem" local const.
9339 (define_command): New const local "tem_c". Use it in calls to
9340 lookup_cmd.
9341 (document_command): Make "tem" and "comfull" locals const.
9342 (show_user_1): Make "prefix" and "name" parameters const.
9343 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9344 const.
9345 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9346 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9347 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9348 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9349 (complete_on_enum, add_setshow_enum_cmd)
9350 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9351 (add_setshow_filename_cmd, add_setshow_string_cmd)
9352 (add_setshow_string_noescape_cmd)
9353 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9354 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9355 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9356 Change prototypes, constifying strings.
9357 * completer.c (noop_completer, filename_completer): Make "text"
9358 and "prefix" parameters const.
9359 (location_completer, expression_completer)
9360 (complete_line_internal): Make "text" and "prefix" parameters
9361 const and adjust.
9362 (command_completer, signal_completer): Make "text" and "prefix"
9363 parameters const.
9364 * completer.h (noop_completer, filename_completer)
9365 (expression_completer, location_completer, command_completer)
9366 (signal_completer): Change prototypes.
9367 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9368 parameters const.
9369 * cp-abi.c (cp_abi_completer): Likewise.
9370 * expression.h (parse_expression_for_completion): Change
9371 prototype.
9372 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9373 parameters const.
9374 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9375 * infrun.c (handle_completer): Make "text" and "word" parameters
9376 const.
9377 * interps.c (interpreter_completer): Make "text" and "word"
9378 parameters const.
9379 * language.h (struct language_defn)
9380 <la_make_symbol_completion_list>: Make "text" and "word"
9381 parameters const.
9382 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9383 (parse_exp_in_context): Rename to ...
9384 (parse_exp_in_context_1): ... this.
9385 (parse_exp_in_context): Reimplement, with const hack from
9386 parse_exp_1.
9387 (parse_expression_for_completion): Make "string" parameter const.
9388 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9389 to pointer to const char. Adjust.
9390 (print_command_1): Make "exp" parameter const.
9391 (output_command): Rename to ...
9392 (output_command_const): ... this. Make "exp" parameter const.
9393 (output_command): Reimplement.
9394 (x_command): Adjust.
9395 (display_command): Rename "exp" parameter to "arg". New "exp"
9396 local, const version of "arg".
9397 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9398 "cmd_name" local const.
9399 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9400 call.
9401 (cmdpy_completer): Make "text" and "word" parameters const.
9402 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9403 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9404 const.
9405 * remote.c (_initialize_remote): Make "cmd_name" local const.
9406 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9407 parameters const. Adjust.
9408 (completion_list_add_fields): Make "sym_text", "text" and "word"
9409 parameters const.
9410 (struct add_name_data) <sym_text, text, word>: Make fields const.
9411 (default_make_symbol_completion_list_break_on): Make "text" and
9412 "word" parameters const. Adjust locals.
9413 (default_make_symbol_completion_list)
9414 (make_symbol_completion_list, make_symbol_completion_type)
9415 (make_symbol_completion_list_fn): Make "text" and "word"
9416 parameters const.
9417 (make_file_symbol_completion_list): Make "text", "word" and
9418 "srcfile" parameters const. Adjust locals.
9419 (add_filename_to_list): Make "text" and "word" parameters const.
9420 (struct add_partial_filename_data) <text, word>: Make fields
9421 const.
9422 (make_source_files_completion_list): Make "text" and "word"
9423 parameters const.
9424 * symtab.h (default_make_symbol_completion_list_break_on)
9425 (default_make_symbol_completion_list, make_symbol_completion_list)
9426 (make_symbol_completion_type enum type_code)
9427 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9428 (make_source_files_completion_list): Change prototype.
9429 * top.c (execute_command): Adjust to pass pointer to pointer to
9430 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9431 change.
9432 (set_verbose): Make "cmdname" local const.
9433 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9434 and adjust.
9435 (validate_actionline): Make "line" parameter a pointer to const
9436 char, and adjust.
9437 (encode_actions_1): Make "action_exp" local const, and adjust.
9438 (encode_actions): Adjust.
9439 (replace_comma): Delete.
9440 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9441 const, and adjust. Don't frob the action string while splitting
9442 it at commas. Instead, make a copy of each split substring in
9443 turn.
9444 (trace_dump_command): Adjust to validate_actionline prototype
9445 change.
9446 * tracepoint.h (decode_agent_options, decode_agent_options)
9447 (encode_actions, validate_actionline): Change prototypes.
9448 * valprint.h (output_command): Delete declaration.
9449 (output_command_const): Declare.
9450 * value.c (function_destroyer): Cast const away in xfree call.
9451
9452 2013-03-13 Pedro Alves <palves@redhat.com>
9453
9454 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9455 rather than casting 'const char * const *' to 'const char **'.
9456 * ada-lex.l (processInt): Make "trailer" local const. Remove
9457 'const char **' cast.
9458 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9459 locals, and use those as strtol output pointer, instead than doing
9460 invalid casts to from 'const char **' to 'char **'.
9461 (_initialize_demangle): Remove cast.
9462 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9463 locals, and use those as strtol output pointer, instead than doing
9464 invalid casts to from 'const char **' to 'char **'.
9465 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9466 casts.
9467 * stap-probe.c (stap_parse_register_operand)
9468 (stap_parse_single_operand): Likewise.
9469
9470 2013-03-13 Yao Qi <yao@codesourcery.com>
9471
9472 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9473 the last matched 'V' blcok in trace frame.
9474
9475 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9476
9477 * NEWS: Create a new section for the next release branch.
9478 Rename the section of the current branch, now that it has
9479 been cut.
9480
9481 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9482
9483 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9484 * version.in: Bump version to 7.6.50.20130312-cvs.
9485
9486 2013-03-12 Keith Seitz <keiths@redhat.com>
9487
9488 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9489 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9490 Remove temporary copy of input string.
9491 (mi_execute_command_wrapper): Make "cmd" const.
9492 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9493 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9494 Use const strings.
9495 (mi_parse): Make "cmd" const.
9496 Use const strings.
9497 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9498
9499 2013-03-12 Keith Seitz <keiths@redhat.com>
9500
9501 * ada-lang.c (ada_read_renaming_var_value): Pass const
9502 pointer to expression string to parse_exp_1.
9503 (create_excep_cond_exprs): Likewise.
9504 * ax-gdb.c (agent_eval_command_one): Likewise.
9505 (maint_agent_printf_command): Likewise.
9506 Constify much of the string handling/parsing.
9507 * breakpoint.c (set_breakpoint_condition): Pass const
9508 pointer to expression string to parse_exp_1.
9509 (update_watchpoint): Likewise.
9510 (parse_cmd_to_aexpr): Constify string handling.
9511 Pass const pointer to parse_exp_1.
9512 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9513 (find_condition_and_thread): Likewise.
9514 Make TOK const.
9515 (watch_command_1): Make "arg" const.
9516 Constify string handling.
9517 Copy the expression string instead of changing the input
9518 string.
9519 (update_breakpoint_location): Pass const pointer to
9520 parse_exp_1.
9521 * eval.c (parse_and_eval_address): Make "exp" const.
9522 (parse_to_comma_and_eval): Make "expp" const.
9523 (parse_and_eval): Make "exp" const.
9524 * expression.h (parse_expression): Make argument const.
9525 (parse_exp_1): Make first argument const.
9526 * findcmd.c (parse_find_args): Treat "args" as const.
9527 * linespec.c (parse_linespec): Pass const pointer to
9528 linespec_expression_to_pc.
9529 (linespec_expression_to_pc): Make "exp_ptr" const.
9530 * parse.c (parse_exp_1): Make "stringptr" const.
9531 Make a copy of the expression to pass to parse_exp_in_context until
9532 this whole interface can be constified.
9533 (parse_expression): Make "string" const.
9534 * printcmd.c (ui_printf): Treat "arg" as const.
9535 Handle const strings.
9536 * tracepoint.c (validate_actionline): Pass const pointer to
9537 all calls to parse_exp_1.
9538 (encode_actions_1): Likewise.
9539 * value.h (parse_to_comma_and_eval): Make argument const.
9540 (parse_and_eval_address): Likewise.
9541 (parse_and_eval): Likewise.
9542 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9543 (varobj_set_value): Likewise.
9544 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9545 constify string handling.
9546 Pass const pointers to parse_and_eval_address and
9547 parse_to_comman_and_eval.
9548 * cli/cli-utils.c (skip_to_space): Rename to ...
9549 (skip_to_space_const): ... this. Handle const strings.
9550 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9551 skip_to_space_const.
9552 (skip_to_space_const): Declare.
9553 * common/format.c (parse_format_string): Make "arg" const.
9554 Handle const strings.
9555 * common/format.h (parse_format_string): Make "arg" const.
9556 * gdbserver/ax.c (ax_printf): Make "format" const.
9557 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9558 of the expression string.
9559
9560 2013-03-12 Hui Zhu <hui@codesourcery.com>
9561
9562 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9563
9564 2013-03-12 Yao Qi <yao@codesourcery.com>
9565 Hui Zhu <hui@codesourcery.com>
9566
9567 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9568 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9569 DW_OP_deref_size.
9570
9571 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9572
9573 * ada-lex.l (rules): Only recognize 'thread' as a
9574 delimiter when followed by numerals, as for c-exp.y.
9575 Use new rewind_to_char function to rewind the input for
9576 expression-delimiting tokens.
9577 (rewind_to_char): New function.
9578
9579 2013-03-11 Pedro Alves <palves@redhat.com>
9580 Jan Kratochvil <jan.kratochvil@redhat.com>
9581
9582 * configure: Regenerate.
9583 * configure.ac (check dynamic export flag): Link python test with
9584 $PYTHON_LIBS.
9585
9586 2013-03-11 Doug Evans <dje@google.com>
9587 Keith Seitz <keiths@redhat.com>
9588
9589 * linespec.c (find_linespec_symbols): Call find_function_symbols
9590 first, and then call lookup_prefix_sym/find_method.
9591
9592 2013-03-11 Pedro Alves <palves@redhat.com>
9593
9594 * charset.c (convert_between_encodings): Don't cast between
9595 different pointer to pointer types. Instead, make the 'inp' local
9596 be of the type iconv expects.
9597 (wchar_iterate): Don't cast between different pointer to pointer
9598 types. Instead, use new pointer local of the type iconv expects.
9599 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9600 Add new local of type char pointer, and use it to get a
9601 char/string view of the byte buffer, instead of casting between
9602 pointer to pointer types.
9603
9604 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9605
9606 * remote.c (remote_set_trace_buffer_size): Move != operator
9607 to the start of next line to fix an ARI warning.
9608
9609 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9610
9611 * NEWS: Add record changes.
9612
9613 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9614
9615 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9616 the instruction history disassembly.
9617 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9618 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9619
9620 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9621
9622 * Makefile.in (SFILES): Add record-btrace.c
9623 (COMMON_OBS): Add record-btrace.o
9624 * record-btrace.c: New.
9625 * objfiles.c: Include btrace.h.
9626 (free_objfile): call btrace_free_objfile.
9627
9628 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9629
9630 * target.c (target_call_history, target_call_history_from,
9631 target_call_history_range): New.
9632 * target.h (target_ops) <to_call_history, to_call_history_from,
9633 to_call_history_range>: New fields.
9634 (target_call_history, target_call_history_from,
9635 target_call_history_range): New declaration.
9636 * record.c (get_call_history_modifiers, cmd_record_call_history,
9637 record_call_history_size): New.
9638 (_initialize_record): Add the "record function-call-history" command.
9639 Add "set/show record function-call-history-size" commands.
9640 * record.h (record_print_flag): New.
9641
9642 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9643
9644 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9645 to_insn_history_range>: New fields.
9646 (target_insn_history): New.
9647 (target_insn_history_from): New.
9648 (target_insn_history_range): New.
9649 * target.c (target_insn_history): New.
9650 (target_insn_history_from): New.
9651 (target_insn_history_range): New.
9652 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9653 (record_insn_history_size): New.
9654 (get_insn_number): New.
9655 (get_context_size): New.
9656 (no_chunk): New.
9657 (get_insn_history_modifiers): New.
9658 (cmd_record_insn_history): New.
9659 (_initialize_record): Add "set/show record instruction-history-size"
9660 command. Add "record instruction-history" command.
9661
9662 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9663
9664 * record.h (record_disconnect): New.
9665 (record_detach): New.
9666 (record_mourn_inferior): New.
9667 (record_kill): New.
9668 * record-full.c (record_disconnect, record_detach,
9669 record_mourn_inferior, record_kill): Move to...
9670 * record.c: ...here.
9671 (DEBUG): New.
9672 (record_stop): New.
9673 (record_unpush): New.
9674 (cmd_record_stop): Call record_stop. Replace unpush_target
9675 call with record_unpush call.
9676 (record_disconnect, record_detach): Assert that the target
9677 is of record stratum. Call record_unpush, record_stop, and
9678 DEBUG.
9679 (record_mourn_inferior, record_kill): Assert that the target
9680 is of record stratum. Call record_unpush and DEBUG.
9681
9682 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9683
9684 * record-full.h, record-full.c (record_memory_query): Rename
9685 to ...
9686 (record_full_memory_query): ...this. Update all users.
9687 (record_arch_list_add_reg): Rename to ...
9688 (record_full_arch_list_add_reg): ...this. Update all users.
9689 (record_arch_list_add_mem): Rename to ...
9690 (record_full_arch_list_add_mem): ...this. Update all users.
9691 (record_arch_list_add_end): Rename to ...
9692 (record_full_arch_list_add_end): ...this. Update all users.
9693 (record_gdb_operation_disable_set): Rename to ...
9694 (record_full_gdb_operation_disable_set): ...this.
9695 Update all users.
9696
9697 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9698
9699 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9700 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9701 (RECORD_IS_REPLAY): Renamed to ...
9702 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9703 (RECORD_FILE_MAGIC): Renamed to ...
9704 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9705 (record_mem_entry): Renamed to ...
9706 (record_full_mem_entry): ... this. Updated all users.
9707 (record_reg_entry): Renamed to ...
9708 (record_full_reg_entry): ... this. Updated all users.
9709 (record_end_entry): Renamed to ...
9710 (record_full_end_entry): ... this. Updated all users.
9711 (record_type) <record_end, record_reg, record_mem>: Renamed
9712 to ...
9713 (record_full_type) <record_full_end, record_full_reg,
9714 record_full_mem>: ... this. Updated all users.
9715 (record_entry): Renamed to ...
9716 (record_full_entry): ... this. Updated all users.
9717 (record_core_buf_entry): Renamed to ...
9718 (record_full_core_buf_entry): ... this. Updated all users.
9719 (record_core_regbuf): Renamed to ...
9720 (record_full_core_regbuf): ... this. Updated all users.
9721 (record_core_start): Renamed to ...
9722 (record_full_core_start): ... this. Updated all users.
9723 (record_core_end): Renamed to ...
9724 (record_full_core_end): ... this. Updated all users.
9725 (record_core_buf_list): Renamed to ...
9726 (record_full_core_buf_list): ... this. Updated all users.
9727 (record_first): Renamed to ...
9728 (record_full_first): ... this. Updated all users.
9729 (record_list): Renamed to ...
9730 (record_full_list): ... this. Updated all users.
9731 (record_arch_list_head): Renamed to ...
9732 (record_full_arch_list_head): ... this. Updated all users.
9733 (record_arch_list_tail): Renamed to ...
9734 (record_full_arch_list_tail): ... this. Updated all users.
9735 (record_stop_at_limit): Renamed to ...
9736 (record_full_stop_at_limit): ... this. Updated all users.
9737 (record_insn_max_num): Renamed to ...
9738 (record_full_insn_max_num): ... this. Updated all users.
9739 (record_insn_num): Renamed to ...
9740 (record_full_insn_num): ... this. Updated all users.
9741 (record_insn_count): Renamed to ...
9742 (record_full_insn_count): ... this. Updated all users.
9743 (record_ops): Renamed to ...
9744 (record_full_ops): ... this. Updated all users.
9745 (record_core_ops): Renamed to ...
9746 (record_full_core_ops): ... this. Updated all users.
9747 (set_record_cmdlist): Renamed to ...
9748 (set_record_full_cmdlist): ... this. Updated all users.
9749 (show_record_cmdlist): Renamed to ...
9750 (show_record_full_cmdlist): ... this. Updated all users.
9751 (record_cmdlist): Renamed to ...
9752 (record_full_cmdlist): ... this. Updated all users.
9753 (record_beneath_to_resume_ops): Renamed to ...
9754 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9755 (record_beneath_to_resume): Renamed to ...
9756 (record_full_beneath_to_resume): ... this. Updated all users.
9757 (record_beneath_to_wait_ops): Renamed to ...
9758 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9759 (record_beneath_to_wait): Renamed to ...
9760 (record_full_beneath_to_wait): ... this. Updated all users.
9761 (record_beneath_to_store_registers_ops): Renamed to ...
9762 (record_full_beneath_to_store_registers_ops): ... this.
9763 Updated all users.
9764 (record_beneath_to_store_registers): Renamed to ...
9765 (record_full_beneath_to_store_registers): ... this.
9766 Updated all users.
9767 (record_beneath_to_xfer_partial_ops): Renamed to ...
9768 (record_full_beneath_to_xfer_partial_ops): ... this.
9769 Updated all users.
9770 (record_beneath_to_xfer_partial): Renamed to ...
9771 (record_full_beneath_to_xfer_partial): ... this.
9772 Updated all users.
9773 (record_beneath_to_insert_breakpoint): Renamed to ...
9774 (record_full_beneath_to_insert_breakpoint): ... this.
9775 Updated all users.
9776 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9777 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9778 Updated all users.
9779 (record_beneath_to_stopped_data_address): Renamed to ...
9780 (record_full_beneath_to_stopped_data_address): ... this.
9781 Updated all users.
9782 (record_beneath_to_async): Renamed to ...
9783 (record_full_beneath_to_async): ... this. Updated all users.
9784 (record_goto_insn): Renamed to ...
9785 (record_full_goto_insn): ... this. Updated all users.
9786 (record_save): Renamed to ...
9787 (record_full_save): ... this. Updated all users.
9788 (record_reg_alloc): Renamed to ...
9789 (record_full_reg_alloc): ... this. Updated all users.
9790 (record_reg_release): Renamed to ...
9791 (record_full_reg_release): ... this. Updated all users.
9792 (record_mem_alloc): Renamed to ...
9793 (record_full_mem_alloc): ... this. Updated all users.
9794 (record_mem_release): Renamed to ...
9795 (record_full_mem_release): ... this. Updated all users.
9796 (record_end_alloc): Renamed to ...
9797 (record_full_end_alloc): ... this. Updated all users.
9798 (record_end_release): Renamed to ...
9799 (record_full_end_release): ... this. Updated all users.
9800 (record_entry_release): Renamed to ...
9801 (record_full_entry_release): ... this. Updated all users.
9802 (record_list_release): Renamed to ...
9803 (record_full_list_release): ... this. Updated all users.
9804 (record_list_release_following): Renamed to ...
9805 (record_full_list_release_following): ... this.
9806 Updated all users.
9807 (record_list_release_first): Renamed to ...
9808 (record_full_list_release_first): ... this. Updated all users.
9809 (record_arch_list_add): Renamed to ...
9810 (record_full_arch_list_add): ... this. Updated all users.
9811 (record_get_loc): Renamed to ...
9812 (record_full_get_loc): ... this. Updated all users.
9813 (record_check_insn_num): Renamed to ...
9814 (record_full_check_insn_num): ... this. Updated all users.
9815 (record_arch_list_cleanups): Renamed to ...
9816 (record_full_arch_list_cleanups): ... this. Updated all users.
9817 (record_message): Renamed to ...
9818 (record_full_message): ... this. Updated all users.
9819 (record_message_wrapper): Renamed to ...
9820 (record_full_message_wrapper): ... this. Updated all users.
9821 (record_message_wrapper_safe): Renamed to ...
9822 (record_full_message_wrapper_safe): ... this. Updated all users.
9823 (record_gdb_operation_disable): Renamed to ...
9824 (record_full_gdb_operation_disable): ... this. Updated all users.
9825 (record_hw_watchpoint): Renamed to ...
9826 (record_full_hw_watchpoint): ... this. Updated all users.
9827 (record_exec_insn): Renamed to ...
9828 (record_full_exec_insn): ... this. Updated all users.
9829 (record_restore): Renamed to ...
9830 (record_full_restore): ... this. Updated all users.
9831 (record_async_inferior_event_token): Renamed to ...
9832 (record_full_async_inferior_event_token): ... this.
9833 Updated all users.
9834 (record_async_inferior_event_handler): Renamed to ...
9835 (record_full_async_inferior_event_handler): ... this.
9836 Updated all users.
9837 (record_core_open_1): Renamed to ...
9838 (record_full_core_open_1): ... this. Updated all users.
9839 (record_open_1): Renamed to ...
9840 (record_full_open_1): ... this. Updated all users.
9841 (record_open): Renamed to ...
9842 (record_full_open): ... this. Updated all users.
9843 (record_close): Renamed to ...
9844 (record_full_close): ... this. Updated all users.
9845 (record_resume_step): Renamed to ...
9846 (record_full_resume_step): ... this. Updated all users.
9847 (record_resumed): Renamed to ...
9848 (record_full_resumed): ... this. Updated all users.
9849 (record_execution_dir): Renamed to ...
9850 (record_full_execution_dir): ... this. Updated all users.
9851 (record_resume): Renamed to ...
9852 (record_full_resume): ... this. Updated all users.
9853 (record_get_sig): Renamed to ...
9854 (record_full_get_sig): ... this. Updated all users.
9855 (record_sig_handler): Renamed to ...
9856 (record_full_sig_handler): ... this. Updated all users.
9857 (record_wait_cleanups): Renamed to ...
9858 (record_full_wait_cleanups): ... this. Updated all users.
9859 (record_wait_1): Renamed to ...
9860 (record_full_wait_1): ... this. Updated all users.
9861 (record_wait): Renamed to ...
9862 (record_full_wait): ... this. Updated all users.
9863 (record_stopped_by_watchpoint): Renamed to ...
9864 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9865 (record_disconnect): Renamed to ...
9866 (record_full_disconnect): ... this. Updated all users.
9867 (record_detach): Renamed to ...
9868 (record_full_detach): ... this. Updated all users.
9869 (record_mourn_inferior): Renamed to ...
9870 (record_full_mourn_inferior): ... this. Updated all users.
9871 (record_kill): Renamed to ...
9872 (record_full_kill): ... this. Updated all users.
9873 (record_stopped_data_address): Renamed to ...
9874 (record_full_stopped_data_address): ... this. Updated all users.
9875 (record_registers_change): Renamed to ...
9876 (record_full_registers_change): ... this. Updated all users.
9877 (record_store_registers): Renamed to ...
9878 (record_full_store_registers): ... this. Updated all users.
9879 (record_xfer_partial): Renamed to ...
9880 (record_full_xfer_partial): ... this. Updated all users.
9881 (record_breakpoint): Renamed to ...
9882 (record_full_breakpoint): ... this. Updated all users.
9883 (record_breakpoint_p): Renamed to ...
9884 (record_full_breakpoint_p): ... this. Updated all users.
9885 (record_breakpoints): Renamed to ...
9886 (record_full_breakpoints): ... this. Updated all users.
9887 (record_sync_record_breakpoints): Renamed to ...
9888 (record_full_sync_record_breakpoints): ... this.
9889 Updated all users.
9890 (record_init_record_breakpoints): Renamed to ...
9891 (record_full_init_record_breakpoints): ... this.
9892 Updated all users.
9893 (record_insert_breakpoint): Renamed to ...
9894 (record_full_insert_breakpoint): ... this. Updated all users.
9895 (record_remove_breakpoint): Renamed to ...
9896 (record_full_remove_breakpoint): ... this. Updated all users.
9897 (record_can_execute_reverse): Renamed to ...
9898 (record_full_can_execute_reverse): ... this. Updated all users.
9899 (record_get_bookmark): Renamed to ...
9900 (record_full_get_bookmark): ... this. Updated all users.
9901 (record_goto_bookmark): Renamed to ...
9902 (record_full_goto_bookmark): ... this. Updated all users.
9903 (record_async): Renamed to ...
9904 (record_full_async): ... this. Updated all users.
9905 (record_can_async_p): Renamed to ...
9906 (record_full_can_async_p): ... this. Updated all users.
9907 (record_is_async_p): Renamed to ...
9908 (record_full_is_async_p): ... this. Updated all users.
9909 (record_execution_direction): Renamed to ...
9910 (record_full_execution_direction): ... this. Updated all users.
9911 (record_info): Renamed to ...
9912 (record_full_info): ... this. Updated all users.
9913 (record_delete): Renamed to ...
9914 (record_full_delete): ... this. Updated all users.
9915 (record_is_replaying): Renamed to ...
9916 (record_full_is_replaying): ... this. Updated all users.
9917 (record_goto_entry): Renamed to ...
9918 (record_full_goto_entry): ... this. Updated all users.
9919 (record_goto_begin): Renamed to ...
9920 (record_full_goto_begin): ... this. Updated all users.
9921 (record_goto_end): Renamed to ...
9922 (record_full_goto_end): ... this. Updated all users.
9923 (record_goto): Renamed to ...
9924 (record_full_goto): ... this. Updated all users.
9925 (init_record_ops): Renamed to ...
9926 (init_record_full_ops): ... this. Updated all users.
9927 (record_core_resume): Renamed to ...
9928 (record_full_core_resume): ... this. Updated all users.
9929 (record_core_kill): Renamed to ...
9930 (record_full_core_kill): ... this. Updated all users.
9931 (record_core_fetch_registers): Renamed to ...
9932 (record_full_core_fetch_registers): ... this. Updated all users.
9933 (record_core_prepare_to_store): Renamed to ...
9934 (record_full_core_prepare_to_store): ... this. Updated all users.
9935 (record_core_store_registers): Renamed to ...
9936 (record_full_core_store_registers): ... this. Updated all users.
9937 (record_core_xfer_partial): Renamed to ...
9938 (record_full_core_xfer_partial): ... this. Updated all users.
9939 (record_core_insert_breakpoint): Renamed to ...
9940 (record_full_core_insert_breakpoint): ... this. Updated all users.
9941 (record_core_remove_breakpoint): Renamed to ...
9942 (record_full_core_remove_breakpoint): ... this. Updated all users.
9943 (record_core_has_execution): Renamed to ...
9944 (record_full_core_has_execution): ... this. Updated all users.
9945 (init_record_core_ops): Renamed to ...
9946 (init_record_full_core_ops): ... this. Updated all users.
9947 (cmd_record_restore): Renamed to ...
9948 (cmd_record_full_restore): ... this. Updated all users.
9949 (record_save_cleanups): Renamed to ...
9950 (record_full_save_cleanups): ... this. Updated all users.
9951 (cmd_record_start): Renamed to ...
9952 (cmd_record_full_start): ... this. Updated all users.
9953 (set_record_insn_max_num): Renamed to ...
9954 (set_record_full_insn_max_num): ... this. Updated all users.
9955 (set_record_command): Renamed to ...
9956 (set_record_full_command): ... this. Updated all users.
9957 (show_record_command): Renamed to ...
9958 (show_record_full_command): ... this. Updated all users.
9959 (_initialize_record): Renamed to ...
9960 (_initialize_record_full): ... this. Updated all users.
9961
9962 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9963
9964 * record.h: Split into this and ...
9965 * record-full.h: ... this.
9966 * record.c: Split into this and ...
9967 * record-full.c: ... this.
9968 * target.h (target_ops): Add new fields to_info_record,
9969 to_save_record, to_delete_record, to_record_is_replaying,
9970 to_goto_record_begin, to_goto_record_end, to_goto_record.
9971 (target_info_record): New.
9972 (target_save_record): New.
9973 (target_supports_delete_record): New.
9974 (target_delete_record): New.
9975 (target_record_is_replaying): New.
9976 (target_goto_record_begin): New.
9977 (target_goto_record_end): New.
9978 (target_goto_record): New.
9979 * target.c (target_info_record): New.
9980 (target_save_record): New.
9981 (target_supports_delete_record): New.
9982 (target_delete_record): New.
9983 (target_record_is_replaying): New.
9984 (target_goto_record_begin): New.
9985 (target_goto_record_end): New.
9986 (target_goto_record): New.
9987 * record.h: Declare struct cmd_list_element.
9988 (record_cmdlist): New declaration.
9989 (set_record_cmdlist): New declaration.
9990 (show_record_cmdlist): New declaration.
9991 (info_record_cmdlist): New declaration.
9992 (cmd_record_goto): New declaration.
9993 * record.c: Remove unnecessary includes.
9994 Include inferior.h.
9995 (cmd_record_goto): Remove declaration.
9996 (record_cmdlist): Now extern. Initialize.
9997 (set_record_cmdlist): Now extern. Initialize.
9998 (show_record_cmdlist): Now extern. Initialize.
9999 (info_record_cmdlist): Now extern. Initialize.
10000 (find_record_target): New.
10001 (require_record_target): New.
10002 (cmd_record_start): Update.
10003 (cmd_record_delete): Remove target-specific code.
10004 Call target_delete_record.
10005 (cmd_record_stop): Unpush any record target.
10006 (set_record_insn_max_num): Move to record-full.c
10007 (set_record_command): Add comment.
10008 (show_record_command): Add comment.
10009 (info_record_command): Update comment.
10010 Remove target-specific code.
10011 Call the record target's to_info_record.
10012 (cmd_record_start): New.
10013 (cmd_record_goto): Now extern.
10014 Remove target-specific code.
10015 Call target_goto_begin, target_goto_end, or target_goto.
10016 (_initialize_record): Move record target ops initialization to
10017 record-full.c.
10018 Change "record" command help text.
10019 Move "record restore", "record set", and "record show" commands to
10020 record-full.c.
10021 * Makefile.in (SFILES): Add record-full.c.
10022 (HFILES_NO_SRCDIR): Add record-full.h.
10023 (COMMON_OBS): Add record-full.o.
10024 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10025 * arm-tdep.c: Include record-full.h.
10026 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10027 * i386-tdep.c: Include record-full.h.
10028 * infrun.c: Include record-full.h.
10029 * linux-record.c: Include record-full.h.
10030 * moxie-tdep.c: Include record-full.h.
10031 * record-full.c: Include record-full.h.
10032 Change module comment.
10033 (set_record_full_cmdlist): New.
10034 (show_record_full_cmdlist): New.
10035 (record_full_cmdlist): New.
10036 (record_goto_insn): New declaration.
10037 (record_save): New declaration.
10038 (record_check_insn_num): Change query string.
10039 (record_info): New.
10040 (record_delete): New.
10041 (record_is_replaying): New.
10042 (record_goto_entry): New.
10043 (record_goto_begin): New.
10044 (record_goto_end): New.
10045 (record_goto): New.
10046 (init_record_ops): Update.
10047 (init_record_core_ops): Update.
10048 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10049 (cmd_record_start): New.
10050 (set_record_insn_max_num): Moved from record.c
10051 (set_record_full_command): New.
10052 (show_record_full_command): New.
10053 (_initialize_record_full): New.
10054
10055 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10056
10057 * target.h (add_deprecated_target_alias): New.
10058 * target.c (add_deprecated_target_alias): New.
10059
10060 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10061
10062 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10063 and signal.h.
10064 (linux_supports_btrace): Add kernel and
10065 cpuid check.
10066 (kernel_supports_btrace): New function.
10067 (cpu_supports_btrace): New function.
10068 (intel_supports_btrace): New function.
10069
10070 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10071
10072 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10073 * remote.c: Include btrace.h.
10074 (struct btrace_target_info): New struct.
10075 (remote_supports_btrace): New function.
10076 (send_Qbtrace): New function.
10077 (remote_enable_btrace): New function.
10078 (remote_disable_btrace): New function.
10079 (remote_teardown_btrace): New function.
10080 (remote_read_btrace): New function.
10081 (init_remote_ops): Add btrace ops.
10082 (enum <unnamed>): Add btrace packets.
10083 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10084 (_initialize_remote): Add packet configuration for branch tracing.
10085
10086 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10087
10088 * features/btrace.dtd: New file.
10089 * Makefile.in (XMLFILES): Add btrace.dtd.
10090 * btrace.h (parse_xml_btrace): New declaration.
10091 * btrace.c: Include xml-support.h.
10092 (parse_xml_btrace): New function.
10093 (parse_xml_btrace_block): New function.
10094 (block_attributes): New struct.
10095 (btrace_attributes): New struct.
10096 (btrace_children): New struct.
10097 (btrace_elements): New struct.
10098
10099 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10100
10101 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10102 (amd64_linux_enable_btrace): New.
10103 (amd64_linux_disable_btrace): New.
10104 (amd64_linux_teardown_btrace): New.
10105 (_initialize_amd64_linux_nat): Initialize btrace ops.
10106 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10107 (i386_linux_enable_btrace): New.
10108 (i386_linux_disable_btrace): New.
10109 (i386_linux_teardown_btrace): New.
10110 (_initialize_i386_linux_nat): Initialize btrace ops.
10111 * config/i386/linux.mh: Add linux-btrace.o.
10112 * config/i386/linux64.mh: Add linux-btrace.o.
10113
10114 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10115
10116 * common/linux_btrace.h: New file.
10117 * common/linux_btrace.c: New file.
10118 * Makefile.in (SFILES): Add btrace.c.
10119 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10120 (COMMON_OBS): Add btrace.o.
10121 (linux-btrace.o): New rule.
10122
10123 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10124
10125 * target.h: Include btrace.h.
10126 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10127 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10128 * target.c (target_supports_btrace): New function.
10129 (target_enable_btrace): New function.
10130 (target_disable_btrace): New function.
10131 (target_teardown_btrace): New function.
10132 (target_read_btrace): New function.
10133 * btrace.h: New file.
10134 * btrace.c: New file.
10135 * Makefile.in: Add btrace.c.
10136 * gdbthread.h: Include btrace.h.
10137 (struct thread_info): Add btrace field.
10138 * thread.c: Include btrace.h.
10139 (clear_thread_inferior_resources): Call target_teardown_btrace.
10140 * common/btrace-common.h: New file.
10141
10142 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10143
10144 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10145 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10146 kill_status to outer block.
10147
10148 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10149
10150 Fix entry-values if the callee called a noreturn function.
10151 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10152 get_frame_address_in_block. Add new comment.
10153
10154 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10155
10156 Fix entry-values in C++ across CUs.
10157 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10158 lookup_minimal_symbol. Add a comment.
10159 * dwarf2read.c
10160 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10161 DW_AT_linkage_name.
10162
10163 2013-03-08 Yao Qi <yao@codesourcery.com>
10164
10165 * tracepoint.c (_initialize_tracepoint): Indent the code.
10166
10167 2013-03-08 Pedro Alves <palves@redhat.com>
10168
10169 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10170 (parse_find_args, find_command): Change type of pattern buffer
10171 locals to 'gdb_byte *'.
10172
10173 2013-03-08 Stan Shebs <stan@codesourcery.com>
10174 Hafiz Abid Qadeer <abidh@codesourcery.com>
10175
10176 * NEWS: Mention set and show trace-buffer-size commands.
10177 Mention new packet.
10178 * target.h (struct target_ops): New method
10179 to_set_trace_buffer_size.
10180 (target_set_trace_buffer_size): New macro.
10181 * target.c (update_current_target): Set up new method.
10182 * tracepoint.c (trace_buffer_size): New global.
10183 (start_tracing): Send it to the target.
10184 (set_trace_buffer_size): New function.
10185 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10186 * remote.c (remote_set_trace_buffer_size): New function.
10187 (_initialize_remote): Use it.
10188 (QTBuffer:size) New remote command.
10189 (PACKET_QTBuffer_size): New enum.
10190 (remote_protocol_features): Add an entry for
10191 PACKET_QTBuffer_size.
10192
10193 2013-03-08 Tom Tromey <tromey@redhat.com>
10194
10195 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10196 variable.
10197
10198 2013-03-07 Pedro Alves <palves@redhat.com>
10199
10200 * target.c (target_read_stralloc, target_fileio_read_alloc):
10201 *Cast pointer to 'gdb_byte *' in target call.
10202
10203 2013-03-07 Pedro Alves <palves@redhat.com>
10204
10205 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10206 call.
10207
10208 2013-03-07 Keith Seitz <keiths@redhat.com>
10209
10210 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10211 (trace_pass_command): Likewise.
10212 * cli/cli-cmds.c: Include cli/cli-utils.h.
10213 (source_command): Use skip-spaces.
10214 (disassemble_command): Likewise.
10215 * findcmd.c: Include cli/cli-utils.h.
10216 (parse_find_args): Use skip_spaces.
10217 * go32-nat.c: Include cli/cli-utils.h.
10218 (go32_sldt): Use skip_spaces.
10219 (go32_sgdt): Likewise.
10220 (go32_sidt): Likewise.
10221 (go32_pde): Likewise.
10222 (go32_pte): Likewise.
10223 (go32_pte_for_address): Likewise.
10224 * infcmd.c: Include cli/cli-utils.h.
10225 (registers_info): Use skip_spaces.
10226 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10227 (linux_info_proc): Likewise.
10228 * linux-thread-db.c: Include cli/cli-utils.h.
10229 (info_auto_load_libthread_db): Use skip_spaces_const.
10230 * m32r-rom.c: Include cli/cli-utils.h.
10231 (m32r_upload_command): Use skip_spaces.
10232 * maint.c: Include cli/cli-utils.h.
10233 (maintenance_translate_address): Use skip_spaces.
10234 * mi/mi-parse.c: Include cli/cli-utils.h.
10235 (mi_parse_argv): Use skip_spaces.
10236 (mi_parse): Likewise.
10237 * minsyms.c: Include cli/cli-utils.h.
10238 (msymbol_hash_iw): Use skip_spaces_const.
10239 * objc-lang.c: Include cli/cli-utils.h.
10240 (parse_selector): Use skip_spaces.
10241 (parse_method): Likewise.
10242 * python/python.c: Include cli/cli-utils.h.
10243 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10244 (python_command)[HAVE_PYTHON]: Likewise.
10245 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10246 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10247 (m32r_load): Use skip_spaces.
10248 * serial.c: Include cli/cli-utils.h.
10249 (serial_open): Use skip_spaces_const.
10250 * stack.c: Include cli/cli-utils.h.
10251 (parse_frame_specification_1): Use skip_spaces_const.
10252 * symfile.c: Include cli/cli-utils.h.
10253 (set_ext_lang_command): Use skip_spaces.
10254 * symtab.c: Include cli/cli-utils.h.
10255 (rbreak_command): Use skip_spaces.
10256 * thread.c (thread_name_command): Use skip_spaces.
10257 * tracepoint.c (validate_actionline): Use skip_spaces.
10258 (encode_actions_1): Likewise.
10259 (trace_find_range_command): Likewise.
10260 (trace_find_outside_command): Likewise.
10261 (trace_dump_actions): Likewise.
10262
10263 2013-03-07 Pedro Alves <palves@redhat.com>
10264
10265 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10266 * expprint.c (print_subexp_standard): Likewise.
10267 * utils.c (host_char_to_target): Likewise.
10268 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10269 * varobj.c (value_get_print_value): Change type of local to char*.
10270 Cast it gdb_byte * in call to language printer.
10271
10272 2013-03-07 Pedro Alves <palves@redhat.com>
10273
10274 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10275 gdb_byte *'.
10276 (make_wchar_iterator): Remove cast to char*.
10277 (wchar_iterate): Change type of local.
10278
10279 2013-03-07 Pedro Alves <palves@redhat.com>
10280
10281 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10282 for 'regcache->register_status'.
10283
10284 2013-03-07 Pedro Alves <palves@redhat.com>
10285
10286 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10287 int.
10288
10289 2013-03-07 Pedro Alves <palves@redhat.com>
10290
10291 * stap-probe.c (handle_stap_probe): Add cast to char*.
10292
10293 2013-03-07 Pedro Alves <palves@redhat.com>
10294
10295 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10296 RECORD_MSGRCV>: Pass a signed variable to
10297 regcache_raw_read_signed, instead of an unsigned one.
10298
10299 2013-03-07 Pedro Alves <palves@redhat.com>
10300
10301 * remote-notif.c (notif_debug): Change type to int.
10302 * remote-notif.h (notif_debug): Likewise.
10303
10304 2013-03-07 Pedro Alves <palves@redhat.com>
10305
10306 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10307
10308 2013-03-07 Pedro Alves <palves@redhat.com>
10309
10310 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10311 * remote.h (hex2bin, bin2hex): ... here.
10312 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10313
10314 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10315
10316 * utils.c (initialize_utils): Improve doc strings of "set/show
10317 width", "set/show height", and "set/show pagination".
10318
10319 2013-03-06 Keith Seitz <keiths@redhat.com>
10320
10321 * ax-gdb.c (gen_printf): Make FORMAT const.
10322 * ax-gdb.h (gen_printf): Likewise.
10323 * ax-general.c (ax_string): Make STR const.
10324 * ax.h (ax_string): Likewise.
10325
10326 2013-03-06 Doug Evans <dje@google.com>
10327
10328 * elfread.c (elf_symfile_read): Move debugging printf to more
10329 logical location.
10330
10331 2013-03-06 Pedro Alves <palves@redhat.com>
10332
10333 * python/py-utils.c (target_string_to_unicode): Delete function.
10334 * python/python-internal.h (target_string_to_unicode): Delete
10335 declaration.
10336
10337 2013-03-06 Pierre Muller <muller@sourceware.org>
10338
10339 * linespec.c (get_current_search_block): ARI fix, use (void)
10340 for empty parameter list.
10341
10342 2013-03-05 Doug Evans <dje@google.com>
10343
10344 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10345 of old ada_lookup_symbol_list. In !full_search case, don't
10346 search superblocks.
10347 (ada_lookup_symbol_list): Delete arg full_search, all callers
10348 updated. Call ada_lookup_symbol_list_worker.
10349 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10350 * ada-lang.h (ada_lookup_symbol_list): Update.
10351 * language.h (language_defn): Update comment for
10352 la_iterate_over_symbols.
10353 * linespec.c (iterate_over_file_blocks): New function.
10354 (iterate_over_all_matching_symtabs): Call it.
10355 (lookup_prefix_sym): Ditto.
10356 (get_current_search_block): New function.
10357 (get_search_block): Delete.
10358 (find_label_symbols): Call get_current_search_block.
10359 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10360 * symtab.c (iterate_over_symbols): Don't search superblocks.
10361
10362 2013-03-05 Yao Qi <yao@codesourcery.com>
10363
10364 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10365 parameter VAR's type from "unsigned int" to "int".
10366 * command.h (var_zuinteger_unlimited): Update its comments.
10367 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10368
10369 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10370
10371 * NEWS: Mention new target x86_64-*-cygwin*.
10372
10373 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10374
10375 * configure.host: Add x86_64-*-cygwin* as host.
10376 * configure.tgt: Add x86_64-*-cygwin* as target.
10377 * config/i386/cygwin64.mh: New file.
10378
10379 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10380
10381 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10382
10383 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10384
10385 * linespec.c (struct linespec_canonical_name): New.
10386 (struct linespec_state): Change canonical_names type to it.
10387 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10388 xrealloc element size. Initialize the different CANONICAL fields.
10389 (canonical_to_fullform): New.
10390 (filter_results): Use it. Add variables canonical, fullform and
10391 cleanup.
10392 (struct decode_line_2_item, decode_line_2_compare_items): New.
10393 (decode_line_2): Remove variables iter and item_names, add variables
10394 items and items_count. Modify the code for these new variables.
10395
10396 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10397
10398 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10399 calling do_cleanup.
10400
10401 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10402
10403 * tracepoint.c (build_traceframe_info): Add code for byte order.
10404
10405 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10406
10407 * v850-tdep.c: (v850e2_register_name): Revise system register
10408 names to match current V850E2M architecture specifications.
10409 Update register number enum comments too.
10410
10411 2013-03-01 Jiong Wang <jiwang@tilera.com>
10412 Pedro Alves <palves@redhat.com>
10413
10414 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10415 to END_ADDR.
10416 (tilegx_skip_prologue): Limit prologue analysis to section end.
10417
10418 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10419
10420 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10421 use it.
10422
10423 2013-03-01 Pedro Alves <palves@redhat.com>
10424
10425 Use gdb_byte for bytes from the program being debugged.
10426
10427 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10428 Change type of local 'buf' to gdb_byte.
10429 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10430 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10431 * cris-tdep.c (cris_sigcontext_addr)
10432 (cris_sigtramp_frame_unwind_cache): Likewise.
10433 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10434 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10435 Likewise.
10436 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10437 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10438 (hppa32_hpux_search_dummy_call_sequence)
10439 (hppa_hpux_supply_save_state): Likewise.
10440 * hppa-linux-tdep.c (insns_match_pattern)
10441 (hppa_linux_find_global_pointer): Likewise.
10442 * hppa-tdep.c (hppa_in_function_epilogue_p)
10443 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10444 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10445 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10446 (i386fbsd_collect_uthread): Likewise.
10447 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10448 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10449 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10450 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10451 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10452 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10453 (ia64_libunwind_frame_prev_register)
10454 (ia64_libunwind_sigtramp_frame_this_id)
10455 (ia64_find_global_pointer_from_dynamic_section)
10456 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10457 (ia64_unwind_pc): Likewise.
10458 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10459 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10460 (m68hc11_extract_return_value): Likewise.
10461 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10462 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10463 (mep_get_insn, mep_push_dummy_call): Likewise.
10464 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10465 (mips_linux_in_dynsym_stub): Likewise.
10466 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10467 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10468 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10469 to gdb_byte.
10470 * remote-mips.c (mips_set_register): Likewise.
10471 * remote-sim.c (gdbsim_fetch_register): Likewise.
10472 * score-tdep.c (score7_fetch_inst): Change type of parameter
10473 'memblock' and local 'buf' to gdb_byte.
10474 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10475 Change type of local 'buf' to gdb_byte. Adjust.
10476 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10477 to gdb_byte**.
10478 (score7_analyze_prologue): Change type of 'memblock' and
10479 'memblock_ptr' locals to gdb_byte*.
10480 * sh64-tdep.c (sh64_extract_return_value)
10481 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10482 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10483 * solib-pa64.c (pa64_solib_create_inferior_hook)
10484 (pa64_open_symbol_file_object): Remove local 'buf'.
10485 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10486 (som_open_symbol_file_object): Likewise.
10487 * solib-spu.c (spu_current_sos): Likewise.
10488 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10489 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10490 (spu_store_registers): Likewise.
10491 * target.c (debug_print_register): Likewise.
10492 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10493 * xstormy16-tdep.c (xstormy16_store_return_value)
10494 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10495 (xstormy16_find_jmp_table_entry): Likewise.
10496
10497 2013-03-01 Jiong Wang <jiwang@tilera.com>
10498
10499 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10500 (tilegx_gdbarch_init): Install it.
10501
10502 2013-02-28 Tom Tromey <tromey@redhat.com>
10503
10504 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10505 PyLong_Check.
10506
10507 2013-02-28 Doug Evans <dje@google.com>
10508
10509 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10510 * python/python.c (gdbpy_find_pc_line): Ditto.
10511
10512 2013-02-28 Tom Tromey <tromey@redhat.com>
10513
10514 * contrib/excheck.py: New file.
10515 * contrib/exsummary.py: New file.
10516 * contrib/gcc-with-excheck: New file.
10517
10518 2013-02-28 Tom Tromey <tromey@redhat.com>
10519
10520 * python/python.c (gdbpy_print_stack): Call begin_line and
10521 fprintf_filtered inside TRY_CATCH.
10522
10523 2013-02-28 Tom Tromey <tromey@redhat.com>
10524
10525 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10526 inside TRY_CATCH.
10527
10528 2013-02-28 Tom Tromey <tromey@redhat.com>
10529
10530 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10531 frame_object_to_frame_info inside TRY_CATCH.
10532
10533 2013-02-28 Tom Tromey <tromey@redhat.com>
10534
10535 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10536 TRY_CATCH.
10537
10538 2013-02-28 Tom Tromey <tromey@redhat.com>
10539
10540 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10541
10542 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10543
10544 * windows-nat.c: Throughout, fix format strings and casts of
10545 printf-like functions to avoid type related warnings on all
10546 platforms.
10547 (handle_output_debug_string): Fetch context information address
10548 from debug string using string_to_core_addr.
10549
10550 2013-02-27 Jiong Wang <jiwang@tilera.com>
10551
10552 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10553 * regformats/reg-tilegx32.dat: New.
10554
10555 2013-02-27 Jiong Wang <jiwang@tilera.com>
10556
10557 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10558
10559 2013-02-27 Jiong Wang <jiwang@tilera.com>
10560
10561 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10562
10563 2013-02-27 Yao Qi <yao@codesourcery.com>
10564 Pedro Alves <palves@redhat.com>
10565
10566 * tracepoint.c (tfile_trace_find): For tfind
10567 pc/tp/range/outside, look for the next trace frame instead of
10568 always starting from frame 0.
10569
10570 2013-02-26 Anthony Green <green@moxielogic.com>
10571
10572 * configure.tgt: Add support for moxie-*-rtems* target.
10573
10574 2013-02-25 Pedro Alves <palves@redhat.com>
10575
10576 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10577 warning text.
10578
10579 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10580
10581 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10582 if $fp is used as the virtual frame pointer.
10583
10584 2013-02-23 Alan Modra <amodra@gmail.com>
10585
10586 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10587 symbol size.
10588 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10589 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10590 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10591 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10592
10593 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10594
10595 Code cleanup.
10596 * elfread.c (build_id_bfd_get): Make the return type const.
10597 (build_id_verify): Make the check parameter const.
10598 (build_id_to_debug_filename): Make the build_id parameter and variable
10599 data const.
10600 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10601
10602 2013-02-21 Alan Modra <amodra@gmail.com>
10603
10604 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10605
10606 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10607
10608 Add a new method 'disassemble' to gdb.Architecture class.
10609 * python/py-arch.c (archpy_disassmble): Implementation of the
10610 new method gdb.Architecture.disassemble.
10611 (arch_object_methods): Add entry for the new method.
10612
10613 2013-02-20 Jiong Wang <jiwang@tilera.com>
10614
10615 * MAINTAINERS (Write After Approval): Add myself to the list.
10616
10617 2013-02-19 Pedro Alves <palves@redhat.com>
10618
10619 Garbage collect 'struct monitor_ops'::load_routine.
10620
10621 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10622 * monitor.c (monitor_load): No longer call
10623 current_monitor->load_routine.
10624 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10625 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10626 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10627
10628 2013-02-19 Pedro Alves <palves@redhat.com>
10629
10630 PR gdb/15161
10631
10632 Harmonize with generic_load.
10633
10634 * monitor.c: Include "readline/readline.h".
10635 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10636 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10637 long/strtol for the 'load_offset' local. Error out if no argument
10638 is given or if too many arguments are given. Tilde expand the
10639 passed in file name.
10640
10641 2013-02-19 Kai Tietz <ktietz@redhat.com>
10642
10643 PR gdb/15161
10644 * symfile.c (load_section_data): Change type of load_offset
10645 to CORE_ADDR.
10646 (generic_load): User strtoulst instead of strtoul for conversion
10647 of load_offset.
10648
10649 2013-02-19 Jiong Wang <jiwang@tilera.com>
10650
10651 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10652 for return address, "lr" register, saved on stack.
10653 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10654 after we invoke tilegx_analyze_prologue.
10655
10656 2013-02-19 Jiong Wang <jiwang@tilera.com>
10657
10658 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10659
10660 2013-02-19 Jiong Wang <jiwang@tilera.com>
10661
10662 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10663
10664 2013-02-19 Jiong Wang <jiwang@tilera.com>
10665
10666 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10667 (tilegx_write_pc): New function.
10668 (tilegx_cannot_reference_register): Return zero if REGNO
10669 is TILEGX_FAULTNUM_REGNUM.
10670 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10671 (tilegx_register_name): Add handling of "faultnum" register.
10672 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10673 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10674 handling of TILEGX_FAULTNUM_REGNUM.
10675 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10676
10677 2013-02-19 Jiong Wang <jiwang@tilera.com>
10678
10679 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10680 should be aligned to 64bit.
10681
10682 2013-02-19 Kai Tietz <ktietz@redhat.com>
10683
10684 * windows-nat.c (windows_xfer_memory): Fix debug-output
10685 for LLP64.
10686
10687 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10688
10689 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10690 Don't check DSP register number if HAVE_DSP is not set.
10691
10692 2013-02-19 Alan Modra <amodra@gmail.com>
10693
10694 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10695 throughout file instead.
10696 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10697 Don't xmalloc return value.
10698 (build_id_verify): Similarly. Don't xfree.
10699 (build_id_to_debug_filename): Update.
10700 (find_separate_debug_file_by_buildid): Update, don't xfree.
10701
10702 2013-02-18 Tom Tromey <tromey@redhat.com>
10703
10704 PR gdb/15102:
10705 * dwarf2read.c (read_subrange_type): Use result of
10706 'check_typedef'.
10707
10708 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10709
10710 * frame.c: Remove one extra white space after #include
10711 directive.
10712
10713 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10714
10715 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10716
10717 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10718
10719 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10720 and dir commands into an if block.
10721
10722 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10723
10724 * python/py-breakpoint (struct pybp_code): Use int instead of
10725 enum type_code.
10726
10727 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10728 Hafiz Abid Qadeer <abidh@codesourcery.com>
10729
10730 * NEWS: Mention new field "trace-file".
10731 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10732 (tfile_open): Record the trace file's filename in the trace
10733 status.
10734 (tfile_files_info): Mention the name of the trace file.
10735 Check the "filename" field explicitely.
10736 (trace_status_command): Explicitely check "filename" field.
10737 (trace_find_command): Ditto.
10738 (trace_find_pc_command): Ditto.
10739 (trace_find_tracepoint_command): Ditto.
10740 (trace_find_line_command): Ditto.
10741 (trace_find_range_command): Ditto.
10742 (trace_find_outside_command): Ditto.
10743 * tracepoint.h (struct trace_status) <from_file>: Rename it
10744 to "filename" and make it hold the trace file's filename
10745 instead of a boolean.
10746 * remote.c (remote_get_trace_status): Initialize "filename"
10747 field with NULL instead of 0.
10748
10749 2013-02-15 Yao Qi <yao@codesourcery.com>
10750
10751 * remote.c: Fix a typo.
10752
10753 2013-02-14 Pierre Muller <muller@sourceware.org>
10754
10755 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10756
10757 2013-02-14 Pedro Alves <palves@redhat.com>
10758
10759 * utils.c (savestring): Don't #undef it. Move function to
10760 common/common-utils.c.
10761 * common/common-utils.c: Include gdb_string.h.
10762 (savestring): Move here from utils.c.
10763 * common/common-utils.h (savestring): Declare.
10764
10765 2013-02-14 Pedro Alves <palves@redhat.com>
10766
10767 * utils.c (savestring): Rename parameter 'size' to 'len'.
10768
10769 2013-02-14 Pedro Alves <palves@redhat.com>
10770 Yufeng Zhang <yufeng.zhang@arm.com>
10771
10772 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10773 (aarch64_inferior_data, struct aarch64_inferior_data):
10774 Delete.
10775 (struct aarch64_process_info): New.
10776 (aarch64_process_list): New global.
10777 (aarch64_find_process_pid, aarch64_add_process)
10778 (aarch64_process_info_get): New functions.
10779 (aarch64_inferior_data_get): Delete.
10780 (aarch64_process_info_get): New function.
10781 (aarch64_forget_process): New function.
10782 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10783 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10784 aarch64_get_debug_reg_state.
10785 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10786 instead of linux_nat_iterate_watchpoint_lwps.
10787 (aarch64_linux_new_fork): New function.
10788 (aarch64_linux_child_post_startup_inferior): Use
10789 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10790 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10791 (aarch64_linux_remove_hw_breakpoint)
10792 (aarch64_handle_aligned_watchpoint)
10793 (aarch64_handle_unaligned_watchpoint)
10794 (aarch64_linux_insert_watchpoint)
10795 (aarch64_linux_remove_watchpoint)
10796 (aarch64_linux_stopped_data_address): Adjust to pass the current
10797 process id to aarch64_debug_reg_state.
10798 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10799 linux_nat_new_fork hook, and aarch64_forget_process as
10800 linux_nat_forget_process hook; remove the call to
10801 register_inferior_data_with_cleanup.
10802
10803 2013-02-14 Pedro Alves <palves@redhat.com>
10804
10805 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10806 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10807 lval_memory.
10808
10809 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10810 Hafiz Abid Qadeer <abidh@codesourcery.com>
10811
10812 * tracepoint.h (validate_trace_state_variable_name): Declare.
10813 * tracepoint.c (validate_trace_state_variable_name): New.
10814 (trace_variable_command): Parse the trace state variable's name
10815 without using parse_expression. Do several validations.
10816 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10817 trace state variable's name with parse_expression. Validate it.
10818
10819 2013-02-14 Yao Qi <yao@codesourcery.com>
10820
10821 * infcmd.c (breakpoint_proceeded): Remove it.
10822
10823 2013-02-14 Yao Qi <yao@codesourcery.com>
10824
10825 * tracepoint.c (end_actions_pseudocommand): Make it static.
10826 (while_stepping_pseudocommand): Likewise.
10827 * tracepoint.h (end_actions_pseudocommand): Remove the
10828 declaration.
10829 (while_stepping_pseudocommand): Likewise.
10830
10831 2013-02-14 Yao Qi <yao@codesourcery.com>
10832
10833 * cli/cli-decode.c (help_cmd): Remove the declaration of
10834 "cmdlist".
10835 (help_all): Likewise.
10836
10837 2013-02-13 Pedro Alves <palves@redhat.com>
10838
10839 * amd64-linux-nat.c (update_debug_registers_callback):
10840 Update comment.
10841 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10842 iterate_over_lwps.
10843 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10844 i386_debug_reg_state.
10845 (amd64_linux_new_fork): New function.
10846 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10847 linux_nat_new_fork hook, and i386_forget_process as
10848 linux_nat_forget_process hook.
10849 * i386-linux-nat.c (update_debug_registers_callback):
10850 Update comment.
10851 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10852 iterate_over_lwps.
10853 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10854 i386_debug_reg_state.
10855 (i386_linux_new_fork): New function.
10856 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10857 linux_nat_new_fork hook, and i386_forget_process as
10858 linux_nat_forget_process hook.
10859 * i386-nat.c (i386_init_dregs): Delete.
10860 (i386_inferior_data, struct i386_inferior_data):
10861 Delete.
10862 (struct i386_process_info): New.
10863 (i386_process_list): New global.
10864 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10865 New functions.
10866 (i386_inferior_data_get): Delete.
10867 (i386_process_info_get): New function.
10868 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10869 (i386_forget_process): New function.
10870 (i386_cleanup_dregs): Rewrite.
10871 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10872 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10873 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10874 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10875 to i386_debug_reg_state.
10876 (i386_use_watchpoints): Don't register inferior data.
10877 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10878 adjust comment.
10879 (i386_forget_process): Declare.
10880 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10881 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10882 New static globals.
10883 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10884 (add_initial_lwp): New, factored out from ...
10885 (add_lwp): ... this. Don't check the number of lwps before
10886 calling linux_nat_new_thread.
10887 (linux_nat_iterate_watchpoint_lwps): Delete.
10888 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10889 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10890 forks and vforks.
10891 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10892 initial lwp.
10893 (linux_nat_kill, linux_nat_mourn_inferior): Call
10894 linux_nat_forget_process.
10895 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10896 (linux_nat_forget_process): New functions.
10897 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10898 type.
10899 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10900 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10901 types.
10902 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10903 (linux_nat_forget_process): New declarations.
10904
10905 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10906 (amd64fbsd_mourn_inferior): New function.
10907 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10908 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10909
10910 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10911
10912 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10913 Adding _().
10914
10915 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10916
10917 * aarch64-linux-nat.c (debug_reg_change_callback)
10918 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10919 %s and phex().
10920
10921 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10922
10923 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10924 with LONGEST.
10925
10926 2013-02-13 Pedro Alves <palves@redhat.com>
10927 Hafiz Abid Qadeer <abidh@codesourcery.com>
10928
10929 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10930
10931 2013-02-12 Tom Tromey <tromey@redhat.com>
10932
10933 PR symtab/11464:
10934 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10935 NAME return.
10936 (classify_inner_name): Remove 'first_name' argument, add
10937 'context'. Remove unused variable.
10938 (yylex): Explicitly maintain the context type. Exit loop earlier
10939 if NAME result is seen.
10940
10941 2013-02-12 Pedro Alves <palves@redhat.com>
10942
10943 * amd64-darwin-tdep.c: Add (C) after Copyright.
10944 * cli/cli-cmds.h: Ditto.
10945 * cli/cli-decode.c: Ditto.
10946 * cli/cli-decode.h: Ditto.
10947 * cli/cli-dump.c: Ditto.
10948 * cli/cli-dump.h: Ditto.
10949 * cli/cli-interp.c: Ditto.
10950 * cli/cli-logging.c: Ditto.
10951 * cli/cli-script.c: Ditto.
10952 * cli/cli-script.h: Ditto.
10953 * cli/cli-setshow.c: Ditto.
10954 * cli/cli-setshow.h: Ditto.
10955 * cli/cli-utils.c: Ditto.
10956 * cli/cli-utils.h: Ditto.
10957 * config/alpha/nm-osf3.h: Ditto.
10958 * config/djgpp/djconfig.sh: Ditto.
10959 * config/i386/nm-fbsd.h: Ditto.
10960 * config/i386/nm-i386gnu.h: Ditto.
10961 * config/nm-linux.h: Ditto.
10962 * config/nm-nto.h: Ditto.
10963 * config/rs6000/nm-rs6000.h: Ditto.
10964 * config/sparc/nm-sol2.h: Ditto.
10965 * darwin-nat-info.c: Ditto.
10966 * dfp.c: Ditto.
10967 * dfp.h: Ditto.
10968 * gdb-demangle.h: Ditto.
10969 * i386-darwin-nat.c: Ditto.
10970 * i386-darwin-tdep.c: Ditto.
10971 * linux-fork.h: Ditto.
10972 * m32c-tdep.c: Ditto.
10973 * microblaze-linux-tdep.c: Ditto.
10974 * microblaze-rom.c: Ditto.
10975 * microblaze-tdep.c: Ditto.
10976 * microblaze-tdep.h: Ditto.
10977 * mips-linux-tdep.h: Ditto.
10978 * ppc-ravenscar-thread.c: Ditto.
10979 * ppc-ravenscar-thread.h: Ditto.
10980 * prologue-value.c: Ditto.
10981 * prologue-value.h: Ditto.
10982 * ravenscar-thread.c: Ditto.
10983 * ravenscar-thread.h: Ditto.
10984 * sparc-ravenscar-thread.c: Ditto.
10985 * sparc-ravenscar-thread.h: Ditto.
10986 * tilegx-linux-tdep.c: Ditto.
10987 * unwind_stop_reasons.def: Ditto.
10988 * windows-nat.h: Ditto.
10989 * xtensa-linux-tdep.c: Ditto.
10990 * xtensa-xtregs.c: Ditto.
10991 * regformats/regdat.sh: Ditto.
10992 * regformats/regdef.h: Ditto.
10993
10994 2013-02-12 Pedro Alves <palves@redhat.com>
10995
10996 * break-catch-sig.c: Update copyright years.
10997
10998 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10999
11000 Add support for a destructor for ui_out data and use it to
11001 provide a ui_out destructor.
11002 * ui-out.h: Declare the new ui_out destructor.
11003 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11004 * ui-out.c (default_data_destroy): Add a default data destructor
11005 which does nothing.
11006 (default_ui_out_impl): Set the new data_destroy field to
11007 default_data_destroy
11008 (uo_data_destroy): Local function which invokes the data
11009 destructor if present.
11010 (clear_table): Local function which clears the table data of a
11011 ui_out object.
11012 (ui_out_destroy): Public function which frees a ui_out object.
11013 (ui_out_table_end): Use the new clear_table function.
11014 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11015 NULL.
11016 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11017 to NULL.
11018
11019 2013-02-11 Doug Evans <dje@google.com>
11020
11021 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11022 (printf_decfloat): New function. Broken out from ui_printf.
11023 Remove unnecessary code to shift the entire format string down.
11024 (printf_pointer): New function.
11025 (ui_printf): Code to print C strings, wide C strings, decfloats,
11026 and pointers moved to separate functions.
11027
11028 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11029
11030 * valops.c (value_assign): Handling bitfield offset in
11031 `lval_internalvar_component' case.
11032
11033 2013-02-08 Doug Evans <dje@google.com>
11034
11035 * common/format.c (parse_format_string): Fix whitespace.
11036
11037 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11038
11039 * stack.c (return_command): Work around uninitialized variable
11040 warning.
11041
11042 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11043
11044 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11045 number of the registers from 36 to 34.
11046
11047 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11048
11049 * NEWS: Mention new AArch64 native and target support.
11050
11051 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11052
11053 * MAINTAINERS (Write After Approval): Add myself.
11054
11055 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11056 Marcus Shawcroft <marcus.shawcroft@arm.com>
11057 Nigel Stephens <nigel.stephens@arm.com>
11058 Yufeng Zhang <yufeng.zhang@arm.com>
11059
11060 * aarch64-linux-nat.c: New file.
11061 * config/aarch64/linux.mh: New file.
11062 * configure.host: Add AArch64.
11063 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11064
11065 2013-02-07 Doug Evans <dje@google.com>
11066
11067 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11068 disassemble command.
11069
11070 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11071
11072 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11073 set_gdbarch_fetch_tls_load_module_address.
11074
11075 2013-02-06 David S. Miller <davem@davemloft.net>
11076
11077 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11078 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11079 * value.c (struct_return_convention): New function.
11080 (using_struct_return): Implement in terms of struct_return_convention.
11081 * value.h (struct_return_convention): Declare.
11082 * stack.c (return_command): Allow successful overriding of the return
11083 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11084
11085 2013-02-06 Tom Tromey <tromey@redhat.com>
11086
11087 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11088 outside of TRY_CATCH.
11089
11090 2013-02-06 Yao Qi <yao@codesourcery.com>
11091
11092 * mi/mi-interp.c: Include "tracepoint.h".
11093 (mi_tsv_modified): Declare.
11094 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11095 (mi_interpreter_init): Call observer_attach_tsv_modified.
11096 (mi_tsv_modified): New.
11097 (mi_tsv_created, mi_tsv_deleted): Update.
11098 * tracepoint.c (trace_variable_command): Call
11099 observer_notify_tsv_modified if the initial value of tsv is
11100 changed.
11101 (delete_trace_state_variable): Call
11102 observer_notify_tsv_deleted earlier.
11103 (trace_variable_command): Caller update.
11104 (create_tsv_from_upload): Likewise.
11105 * observer.sh: Declare "struct trace_state_variable".
11106
11107 * NEWS: Mention the new MI notification "=tsv-modified".
11108
11109 2013-02-05 Doug Evans <dje@google.com>
11110
11111 * completer.c (location_completer): Fix typo in comment.
11112
11113 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11114
11115 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11116 ADDRESS sorted.
11117
11118 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11119
11120 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11121 Refactor if statement to avoid trailing || operator.
11122
11123 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11124
11125 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11126
11127 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11128
11129 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11130 * configure.host: Add powerpc*-*-freebsd* target.
11131 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11132 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11133 * config/powerpc/fbsd.mh: New file.
11134
11135 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11136 Denys Vlasenko <dvlasenk@redhat.com>
11137 Pedro Alves <palves@redhat.com>
11138
11139 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11140 (struct elf_internal_linux_prpsinfo): Forward declare.
11141 * gdbarch.h, gdbarch.c: Regenerate.
11142 * linux-tdep.c: Include `cli/cli-utils.h'.
11143 (linux_fill_prpsinfo): New function.
11144 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11145 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11146 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11147 depending on gdbarch pointer bitness.
11148 * ppc-linux-tdep.c: Include elf-bfd.h.
11149 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11150 on 32-bit.
11151
11152 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11153 Marcus Shawcroft <marcus.shawcroft@arm.com>
11154 Nigel Stephens <nigel.stephens@arm.com>
11155 Yufeng Zhang <yufeng.zhang@arm.com>
11156
11157 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11158
11159 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11160 Marcus Shawcroft <marcus.shawcroft@arm.com>
11161 Nigel Stephens <nigel.stephens@arm.com>
11162 Yufeng Zhang <yufeng.zhang@arm.com>
11163
11164 * aarch64-newlib-tdep.c: New file.
11165 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11166 aarch64*-*-elf.
11167 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11168 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11169 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11170 * osabi.c (gdb_osabi_names): Add "Newlib".
11171
11172 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11173 Marcus Shawcroft <marcus.shawcroft@arm.com>
11174 Nigel Stephens <nigel.stephens@arm.com>
11175 Yufeng Zhang <yufeng.zhang@arm.com>
11176
11177 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11178 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11179 * aarch64-linux-tdep.c: New file.
11180 * aarch64-linux-tdep.h: New file.
11181 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11182 * configure.tgt: Add aarch64-none-linux-gnu.
11183
11184 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11185 Marcus Shawcroft <marcus.shawcroft@arm.com>
11186 Nigel Stephens <nigel.stephens@arm.com>
11187 Yufeng Zhang <yufeng.zhang@arm.com>
11188
11189 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11190 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11191 (ALLDEPFILES): Add aarch64-tdep.c.
11192 * aarch64-tdep.c: New file.
11193 * aarch64-tdep.h: New file.
11194 * configure.tgt: Add AArch64.
11195 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11196 (aarch64-expedite): New definition.
11197 * features/aarch64-core.xml: New file.
11198 * features/aarch64-fpu.xml: New file.
11199 * features/aarch64-without-fpu.c: New file (generated).
11200 * features/aarch64-without-fpu.xml: New file.
11201 * features/aarch64.c: New file (generated).
11202 * features/aarch64.xml: New file.
11203 * regformats/aarch64-without-fpu.dat: New file (generated).
11204 * regformats/aarch64.dat: New file (generated).
11205
11206 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11207
11208 * contrib/expect-read1.c: New file.
11209 * contrib/expect-read1.sh: New file.
11210
11211 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11212
11213 * dwarf2read.c (file_file_name): New function with code from
11214 file_full_name.
11215 (file_full_name): Move most of the code to file_file_name.
11216 (macro_start_file): Rename variable full_name to file_name and use
11217 file_file_name for it. Add comp_dir parameter to new_macro_table.
11218 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11219 macro_source_file->filename access by macro_source_fullname call.
11220 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11221 caller.
11222 * macrotab.c (struct macro_table): New field comp_dir.
11223 (macro_include): New variables link_fullname and source_fullname.
11224 Replace any macro_source_file->filename access by macro_source_fullname
11225 call.
11226 (macro_lookup_inclusion): Remove the partial filenames checking code.
11227 (check_for_redefinition): New variables source_fullname and
11228 found_key_fullname. Replace any macro_source_file->filename access by
11229 macro_source_fullname call.
11230 (macro_undef): New variables source_fullname and key_fullname. Replace
11231 any macro_source_file->filename access by macro_source_fullname call.
11232 (macro_lookup_definition): New variables retval and source_fullname.
11233 Replace any macro_source_file->filename access by macro_source_fullname
11234 call.
11235 (foreach_macro): New variable key_fullname. Replace any
11236 macro_source_file->filename access by macro_source_fullname call.
11237 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11238 macro_source_file->filename access by macro_source_fullname call.
11239 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11240 (macro_source_fullname): New function.
11241 * macrotab.h (struct macro_source_file): Extent the filename field
11242 comment.
11243 (new_macro_table): New parameter comp_dir, add a comment for it.
11244 (macro_source_fullname): new declaration.
11245
11246 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11247
11248 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11249 this_real_name to outer block. Use it also for
11250 compare_filenames_for_search.
11251 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11252 with dw2_get_real_path for file_matcher, considering also
11253 BASENAMES_MAY_DIFFER.
11254 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11255
11256 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11257
11258 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11259 to the file_matcher parameter. Pass 0 to it.
11260 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11261 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11262 NULL psymtab_to_fullname result.
11263 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11264 an expected filename instead.
11265 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11266 file_matcher parameter. Call also psymtab_to_fullname, after newly
11267 considering BASENAMES_MAY_DIFFER.
11268 * source.c (rewrite_source_path): Remove static.
11269 * source.h (rewrite_source_path): New declaration.
11270 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11271 the expand_symtabs_matching field. Comment it.
11272 * symtab.c (file_matches): New function comment. Add parameter
11273 basenames, implement it.
11274 (search_symbols_file_matches): Add basenames parameter. Update the
11275 file_matches caller.
11276 (search_symbols): Match FILES also against symtab_to_fullname.
11277 Optimize it for BASENAMES_MAY_DIFFER.
11278
11279 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11280
11281 * source.c (print_source_lines_base): Print for TUI also "fullname".
11282 * tui/tui-data.c (init_content_element): Change tui_locator_element
11283 field to full_name.
11284 * tui/tui-data.h (struct tui_locator_element): Likewise.
11285 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11286 tui_update_locator_filename calls to tui_update_locator_fullname.
11287 Replace symtab->filename refererence by symtab_to_fullname call.
11288 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11289 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11290 field to full_name. Replace symtab->filename refererence by
11291 symtab_to_fullname call.
11292 (tui_show_symtab_source): Rename parameter to fullname. Change
11293 tui_locator_element field to full_name.
11294 * tui/tui-stack.c: Include source.h.
11295 (tui_set_locator_filename): Rename the declaration to ...
11296 (tui_set_locator_fullname): ... here. Rename its parameter to
11297 fullname, updates its comment.
11298 (tui_set_locator_info): Rename its parameter to fullname.
11299 (tui_set_locator_filename): Rename the definition to ...
11300 (tui_set_locator_fullname): ... here. Rename its parameter to
11301 fullname, updates its comment. Change tui_locator_element field to
11302 full_name.
11303 (tui_set_locator_info): Rename its parameter to fullname.
11304 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11305 (tui_update_locator_filename): Rename to ...
11306 (tui_update_locator_fullname): ... here. Rename callee to
11307 tui_set_locator_fullname.
11308 (tui_show_frame_info): Replace symtab->filename refererence by
11309 symtab_to_fullname call.
11310 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11311 (tui_update_locator_fullname): ... here.
11312 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11313 tui_update_locator_fullname. Replace symtab->filename refererence by
11314 symtab_to_fullname call.
11315 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11316 Rename the callee to tui_update_locator_fullname.
11317 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11318
11319 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11320
11321 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11322 by symtab_to_filename_for_display calls.
11323 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11324 (clear_command): New variable sal_fullname, initialize it. Replace
11325 compare_filenames_for_search by filename_cmp with sal_fullname.
11326 (say_where, update_static_tracepoint): Replace symtab->filename
11327 refererences by symtab_to_filename_for_display calls.
11328 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11329 Likewise.
11330 * dwarf2read.c: Include source.h.
11331 (fixup_go_packaging): Replace symtab->filename refererences by
11332 symtab_to_filename_for_display calls.
11333 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11334 Replace symtab->filename refererences by symtab_to_filename_for_display
11335 calls.
11336 (create_sals_line_offset, convert_linespec_to_sals): New variable
11337 fullname, initialize it, replace symtab->filename reference by the
11338 variable.
11339 * linux-fork.c: Include source.h.
11340 (info_checkpoints_command): Replace symtab->filename refererences by
11341 symtab_to_filename_for_display calls.
11342 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11343 by symtab_to_filename_for_display calls.
11344 * mdebugread.c: Include source.h.
11345 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11346 symtab_to_filename_for_display calls.
11347 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11348 (mi_cmd_file_list_exec_source_files): Likewise.
11349 * printcmd.c: Include source.h.
11350 (build_address_symbolic): Replace symtab->filename refererences by
11351 symtab_to_filename_for_display calls.
11352 * psymtab.c (partial_map_symtabs_matching_filename)
11353 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11354 with psymtab_to_fullname.
11355 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11356 by symtab_to_filename_for_display calls.
11357 (stpy_get_filename): New variable filename, initialize it, use instead
11358 of symtab->filename refererences.
11359 (salpy_str): Make variable filename const char *. Replace
11360 symtab->filename refererences by symtab_to_filename_for_display calls.
11361 * skip.c: Include source.h and filenames.h.
11362 (skip_file_command): Remove const from the symtab variable. Replace
11363 symtab->filename refererences by symtab_to_fullname call.
11364 (function_name_is_marked_for_skip): New variables searched_for_fullname
11365 and fullname. Use them to search also with symtab's fullname.
11366 * source.c (find_source_lines): Replace symtab->filename refererences
11367 by symtab_to_filename_for_display calls.
11368 (print_source_lines_base): New variable filename, use it instead of
11369 symtab->filename. Replace symtab->filename refererences by
11370 symtab_to_filename_for_display calls.
11371 (line_info, forward_search_command): Replace symtab->filename
11372 refererences by symtab_to_filename_for_display calls.
11373 (reverse_search_command): Replace symtab->filename refererences by
11374 symtab_to_filename_for_display calls. New variable filename for it.
11375 * stack.c (frame_info): Likewise.
11376 * symmisc.c: Include source.h.
11377 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11378 (maintenance_info_symtabs): Replace symtab->filename refererences by
11379 symtab_to_filename_for_display calls.
11380 * symtab.c (iterate_over_some_symtabs): Call
11381 compare_filenames_for_search also with symtab_to_fullname.
11382 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11383 symtab->filename refererences by symtab_to_filename_for_display calls.
11384 (find_line_symtab): Replace symtab->filename refererences by
11385 symtab_to_filename_for_display calls.
11386 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11387 (print_symbol_info): Make the last parameter const char *. New
11388 variable s_filename. Use it in the function.
11389 (symtab_symbol_info): Make the last_filename variable const char *.
11390 Replace symtab->filename refererences by symtab_to_filename_for_display
11391 calls.
11392 (rbreak_command): New variable fullname. Use it. Replace
11393 symtab->filename refererence by symtab_to_filename_for_display call.
11394 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11395 (print_one_static_tracepoint_marker): Replace symtab->filename
11396 refererences by symtab_to_filename_for_display calls.
11397 * tui/tui-source.c (tui_set_source_content): New variables filename and
11398 s_filename. Replace symtab->filename refererences by this variable.
11399 Replace other symtab->filename refererences by
11400 symtab_to_filename_for_display calls.
11401
11402 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11403 Jan Kratochvil <jan.kratochvil@redhat.com>
11404
11405 Add a new variable that controls a way in which filenames are
11406 displayed.
11407 * NEWS (set filename-display): New entry.
11408 * source.c (filename_display_basename, filename_display_relative)
11409 (filename_display_absolute, filename_display_kind_names)
11410 (filename_display_string, show_filename_display_string)
11411 (symtab_to_filename_for_display): New.
11412 (_initialize_source): Added initialization of 'filename-display'
11413 variable.
11414 * source.h (symtab_to_filename_for_display): Added declaration.
11415 * stack.c (print_frame): Added new variable and calling of a new
11416 function and condition with this variable. Changed third argument of
11417 calling of a function.
11418
11419 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11420
11421 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11422 Rename field reference filename to fullname.
11423 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11424 fullname. New comment for it.
11425 * tui/tui-source.c (tui_set_source_content): Rename field reference
11426 filename to fullname. Initialize field by symtab_to_fullname now.
11427 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11428 reference filename to fullname. Use symtab_to_fullname during
11429 comparison.
11430
11431 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11432
11433 Code cleanup.
11434 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11435 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11436 filename to fullname. Rename variable this_name to this_fullname.
11437 Lowercase FILENAME_CMP call.
11438 (dw2_find_symbol_file): New comment for the returned string.
11439 (dwarf2_gdb_index_functions): Rename the function to
11440 dw2_expand_symtabs_with_fullname.
11441 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11442 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11443 fullname.
11444 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11445 * symfile.h (struct quick_symbol_functions): Rename field
11446 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11447 parameter filename to fullname. Document returned string meaning for
11448 find_symbol_file.
11449 * symtab.c (find_line_symtab): Rename the called function to
11450 expand_symtabs_with_fullname.
11451
11452 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11453
11454 Code cleanup.
11455 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11456 call of filename_cmp with compare_filenames_for_search.
11457 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11458 is_abs, unify the call of FILENAME_CMP with
11459 compare_filenames_for_search. New gdb_asserts for real_path and name.
11460 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11461 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11462 * symfile.h (struct quick_symbol_functions): Extend the comment for
11463 map_symtabs_matching_filename.
11464 * symtab.c (compare_filenames_for_search): Remove the function comment
11465 relative path requirement. Handle absolute filenames, with a comment.
11466 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11467 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11468 real_path and name. Unify the call of compare_filenames_for_search
11469 with FILENAME_CMP.
11470 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11471
11472 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11473
11474 Code cleanup.
11475 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11476 source_file references by symtab field references. Remove variables
11477 sal and fullname.
11478 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11479 (clear_command, say_where): Replace bp_location field source_file
11480 references by symtab field references.
11481 (bp_location_dtor): Remove the source_file reference.
11482 (update_static_tracepoint): Replace bp_location field source_file
11483 references by symtab field references.
11484 (breakpoint_free_objfile): New function.
11485 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11486 Replace the field source_file by field symtab, extend its comment.
11487 (breakpoint_free_objfile): New declaration.
11488 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11489 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11490 field source_file references by symtab field references.
11491
11492 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11493
11494 Replace xfullpath calls by gdb_realpath calls.
11495 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11496 function comment.
11497 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11498 Remove it from the iterate_over_some_symtabs call.
11499 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11500 Remove it from the dw2_map_expand_apply calls, remove a block handling
11501 it.
11502 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11503 Remove it from the iterate_over_some_symtabs call.
11504 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11505 Remove it from the partial_map_expand_apply calls, remove a block
11506 handling it. Drop gdb_realpath call and cleanups from the real_path
11507 handling.
11508 * source.c (openp): Drop the comment part about xfullpath. Replace
11509 xfullpath calls by gdb_realpath calls.
11510 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11511 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11512 from method map_symtabs_matching_filename and its comment.
11513 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11514 gdb_realpath call.
11515 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11516 remove it also from the function comment, remove a block handling it.
11517 Drop gdb_realpath call and cleanups from the real_path handling.
11518 (iterate_over_symtabs): Drop variable full_path and its use.
11519 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11520 * utils.c (xfullpath): Remove.
11521 * utils.h (xfullpath): Remove.
11522
11523 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11524
11525 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11526 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11527 (ALLDEPFILES): Add ppc64-tdep.c.
11528 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11529 ppc64-tdep.o to gdb_target_obs.
11530 * ppc64-tdep.h: New file.
11531 * ppc64-tdep.c: New file.
11532 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11533 ppc-linux-tdep.c to here.
11534 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11535 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11536 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11537 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11538 from ppc-linux-tdep.c to here.
11539 (ppc64_convert_from_func_ptr_addr): Rename from
11540 ppc64_linux_convert_from_func_ptr_addr to
11541 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11542 here.
11543 * rs6000-tdep.c:
11544 (read_insn): Move from ppc-linux-tdep.c to here.
11545 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11546 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11547 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11548 Removed above functions.
11549 (ppc_linux_init_abi): Adjust.
11550
11551 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11552
11553 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11554
11555 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11556
11557 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11558
11559 2013-02-01 Pedro Alves <palves@redhat.com>
11560
11561 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11562 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11563
11564 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11565
11566 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11567 files with no separate debug info.
11568 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11569 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11570 only for files with no separate debug info.
11571
11572 2013-01-31 Tom Tromey <tromey@redhat.com>
11573
11574 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11575 change type.
11576 (struct jit_program_space_data): Rename from jit_inferior_data.
11577 Update comments.
11578 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11579 Change return type. Attach data to program space.
11580 (jit_program_space_data_cleanup): Rename from
11581 jit_inferior_data_cleanup; change argument type.
11582 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11583 change type.
11584 (jit_register_code): Update.
11585 (jit_update_inferior_cache): Remove.
11586 (jit_breakpoint_deleted): Get jit data from the location's program
11587 space.
11588 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11589 'ps_data', change type.
11590 (jit_inferior_init, jit_breakpoint_re_set_internal)
11591 (jit_event_handler): Update.
11592 (free_objfile_data): Get data from objfile's program space.
11593 (_initialize_jit): Update.
11594
11595 2013-01-31 Tom Tromey <tromey@redhat.com>
11596
11597 PR gdb/13987:
11598 * jit.c (struct jit_inferior_data) <cached_code_address,
11599 jit_breakpoint>: New fields.
11600 (jit_breakpoint_re_set_internal): Fix logging. Only create
11601 breakpoint if cached address has changed.
11602 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11603 functions.
11604 (_initialize_jit): Register breakpoint deleted observer.
11605
11606 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11607
11608 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11609 (save_infcall_suspend_state): Ifdef out unused inf.
11610 (restore_infcall_suspend_state): Ifdef out unused inf.
11611 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11612 (jit_frame_sniffer): Remove unused inf_data.
11613
11614 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11615
11616 * c-exp.y (classify_inner_name): Remove unused type.
11617 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11618 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11619 need_escape.
11620 (c_get_string): Remove unused kind.
11621 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11622
11623 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11624
11625 * charset.c (intermediate_encoding): Remove unused i.
11626 * completer.c (signal_completer): Remove unused i.
11627 * continuations.c (discard_my_continuations_1): Remove unused
11628 continuation_ptr.
11629 * corelow.c (core_close): Remove unuseD name.
11630 (get_core_siginfo): Remove unused pid.
11631 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11632 i, cps.
11633 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11634 (loclist_describe_location): Remove unused first.
11635 * event-top.c (command_line_handler): Remove unused got_eof.
11636 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11637 (resize_section_table): Remove unused old_value.
11638 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11639 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11640 * i386-tdep.c (i386_process_record): Remove unused rex.
11641 * infcmd.c (get_return_value): Remove unused uiout.
11642 * jv-lang.c (type_from_class): Remove unused is_array.
11643 * jv-valprint.c (java_val_print): Remove unused i.
11644 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11645 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11646 * m2-typeprint.c (m2_print_type): Remove unused code.
11647 * macroexp.c (get_character_constant): Remove unused body_start.
11648 (macro_stringify): Remove unused result.
11649 * objc-lang.c (find_methods): Remove unused gdbarch.
11650 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11651 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11652 * stack.c (print_frame_args): Remove unused summary.
11653 * thread.c (thread_apply_command): Remove unused p.
11654 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11655 * valops.c (search_struct_method): Remove unused skip.
11656 * valprint.c (generic_val_print): Remove unused byte_order.
11657 * varobj.c (varobj_update): Remove unused changed.
11658 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11659 (alias_command): Remove unused c.
11660 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11661 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11662 format.
11663 (mi_cmd_data_write_memory): Remove unused word_format.
11664 (mi_cmd_data_write_memory_bytes): Remove unused r.
11665 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11666 p_start, p_end.
11667 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11668 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11669 line_width.
11670
11671 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11672
11673 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11674 * symtab.c (iterate_over_symtabs): Remove unused s.
11675 (find_pc_sect_symtab): Remove unused pspAce.
11676 (find_pc_sect_line): Remove unused alt_symtab.
11677 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11678 (completion_list_add_name): Remove unused newsize.
11679
11680 2013-01-31 Tom Tromey <tromey@redhat.com>
11681
11682 PR c++/14998:
11683 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11684 TYPE_CODE_FUNC.
11685
11686 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11687
11688 * target.c (target_read_string): Remove unused origlen.
11689
11690 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11691
11692 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11693 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11694 * ax-general.c (ax_print): Remove unused is_float.
11695 * blockframe.c (block_innermost_frame): Remove unused start, end.
11696 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11697
11698 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11699
11700 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11701 (svr4_read_so_list): Remove unused lmo.
11702 * solib-target.c (solib_target_relocate_section_addresses): Remove
11703 unused flags.
11704
11705 2013-01-30 Tom Tromey <tromey@redhat.com>
11706
11707 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11708
11709 2013-01-30 Tom Tromey <tromey@redhat.com>
11710
11711 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11712 * utils.c (gnu_debuglink_crc32): Remove.
11713 * utils.h (gnu_debuglink_crc32): Don't declare.
11714
11715 2013-01-30 Tom Tromey <tromey@redhat.com>
11716
11717 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11718 (read_structure_type, read_enumeration_type): Remove cast.
11719
11720 2013-01-30 Tom Tromey <tromey@redhat.com>
11721
11722 * dwarf2read.c (read_namespace_type): Remove cast.
11723 (read_typedef): Likewise.
11724
11725 2013-01-29 Tom Tromey <tromey@redhat.com>
11726
11727 * dwarf2read.c (free_dwo_file): Remove assert.
11728
11729 2013-01-29 Tom Tromey <tromey@redhat.com>
11730
11731 * value.c (deprecated_set_value_modifiable): Remove.
11732 * value.h (deprecated_set_value_modifiable): Remove.
11733
11734 2013-01-28 Doug Evans <dje@google.com>
11735
11736 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11737 to addresses from dwo files.
11738
11739 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11740
11741 * valops.c (find_overload_match): Remove unused argument 'lax'.
11742 * value.h: Remove unused argument 'lax' from the declaration of
11743 find_overload_match.
11744 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11745 to find_overload_match.
11746 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11747 argument to find_overload_match.
11748
11749 2013-01-25 Tom Tromey <tromey@redhat.com>
11750
11751 * dwarf2read.c (processing_has_namespace_info): Remove.
11752 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11753 (process_die, read_func_scope, dwarf2_start_symtab)
11754 (new_symbol_full): Update.
11755
11756 2013-01-25 Tom Tromey <tromey@redhat.com>
11757
11758 * cp-namespace.c (cp_set_block_scope): Remove.
11759 * cp-support.h (cp_set_block_scope): Remove.
11760 * dbxread.c: Include block.h.
11761 (cp_set_block_scope): New function.
11762 (process_one_symbol): Update.
11763 * dwarf2read.c (read_func_scope): Use block_set_scope.
11764
11765 2013-01-25 Pedro Alves <palves@redhat.com>
11766
11767 * remote.c (add_current_inferior_and_thread): Tweak comment.
11768
11769 2013-01-25 Tom Tromey <tromey@redhat.com>
11770
11771 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11772 (cp_add_using_directive): Add 'copy_names' argument.
11773 * cp-support.h (cp_add_using_directive): Update.
11774 (struct using_direct) <import_src, import_dest, alias,
11775 declaration>: Now const.
11776 * dwarf2read.c (read_import_statement): Use obconcat.
11777 Don't copy names passed to cp_add_using_directive.
11778
11779 2013-01-25 Tom Tromey <tromey@redhat.com>
11780
11781 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11782
11783 2013-01-25 Pedro Alves <palves@redhat.com>
11784
11785 * remote.c (stop_reply_extract_thread): New.
11786 (add_current_inferior_and_thread): New parameter 'wait_status'.
11787 Handle it.
11788 (remote_start_remote): Pass wait status to
11789 add_current_inferior_and_thread.
11790 (extended_remote_run): Update comment.
11791 (extended_remote_create_inferior_1): Pass wait status to
11792 add_current_inferior_and_thread.
11793
11794 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11795 Ulrich Weigand <uweigand@de.ibm.com>
11796
11797 * valarith.c (value_vector_widen): New function for replicating a
11798 scalar into a vector.
11799 (value_binop): Use value_vector_widen to widen scalar to vector
11800 rather than casting, this better matches gcc C behaviour.
11801 * valops.c (value_casst): Update logic for casting between vector
11802 types, and for casting from scalar to vector, try to match gcc C
11803 behaviour.
11804 * value.h (value_vector_widen): Declare.
11805 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11806 function, handle special case for casting scalar to vector.
11807 (opencl_relop): Use opencl_value_cast.
11808 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11809 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11810 in order to use opencl_value_cast.
11811
11812 2013-01-25 Yao Qi <yao@codesourcery.com>
11813
11814 * event-loop.c: Include "queue.h".
11815 (gdb_event_p): New typedef.
11816 (DECLARE_QUEUE_P): Use.
11817 (DEFINE_QUEUE_P): Use.
11818 (async_queue_event): Remove.
11819 (gdb_event_xfree): New.
11820 (initialize_event_loop): New.
11821 (process_event): Use QUEUE macros.
11822 (event_queue): Remove.
11823 (gdb_wait_for_event): Caller update.
11824 (check_async_event_handlers): Likewise.
11825 (poll_timers): Likewise.
11826 * event-loop.h (initialize_event_loop): Declare.
11827 * event-loop.c (gdb_event_xfree): New.
11828 * top.c (gdb_init): Call initialize_event_loop.
11829
11830 2013-01-25 Yao Qi <yao@codesourcery.com>
11831
11832 * event-loop.c (async_queue_event): Remove one parameter
11833 'position'. Remove code handling 'position' == TAIL.
11834 (gdb_wait_for_event): Caller update.
11835 (check_async_event_handlers): Caller update.
11836 (poll_timers): Caller update.
11837 * event-loop.h (enum queue_position): Remove.
11838
11839 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11840
11841 * MAINTAINERS: Update my email.
11842
11843 2013-01-25 Yao Qi <yao@codesourcery.com>
11844
11845 * main.c (print_gdb_help): Remove "--epoch" from the help
11846 message.
11847
11848 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11849
11850 * symtab.c (skip_prologue_using_sal): Consider a file
11851 change the same as an increased line number
11852
11853 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11854
11855 * MAINTAINERS (Write After Approval): Add myself to the list.
11856
11857 2013-01-24 Tom Tromey <tromey@redhat.com>
11858
11859 * ada-lang.h (ada_decode_symbol): Make return type const.
11860 * ada-lang.c (ada_decode_symbol): Likewise.
11861
11862 2013-01-23 Doug Evans <dje@google.com>
11863
11864 * linespec.c (find_linespec_symbols): Make static.
11865
11866 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11867
11868 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11869 type on float conversion for complex type.
11870
11871 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11872
11873 Add a new class gdb.Architecture which exposes GDB's
11874 internal representation of architecture via GDB Python API.
11875 * Makefile.in: Add entries corresponding to the new file
11876 python/py-arch.c.
11877 * NEWS (Python Scripting): Add entries for the new class
11878 gdb.Architecture and the new method gdb.Frame.architecture.
11879 * python/py-arch.c: Implement gdb.Architecture class.
11880 * python/py-frame.c (frapy_arch): Implement the method
11881 gdb.Frame.architecture().
11882 (frame_object_methods): Add 'architecture' to the method table.
11883 * python/python-internal.h: Add declarations of new utility
11884 functions.
11885 * python/python.c (_initialize_python): Initialize
11886 gdb.Architecture class.
11887
11888 2013-01-23 Doug Evans <dje@google.com>
11889
11890 Work around binutils/15021.
11891 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11892 type_unit_group out of union s. All uses updated.
11893 (read_index_from_section): Watch for index version 8.
11894 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11895 an imported symtab.
11896 (write_psymtabs_to_index): Increment version number to 8.
11897
11898 2013-01-22 Pedro Alves <palves@redhat.com>
11899
11900 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11901 user-visible.
11902
11903 2013-01-22 Pedro Alves <palves@redhat.com>
11904
11905 * annotate.c (annotate_breakpoints_changed): Rename to ...
11906 (annotate_breakpoints_invalid): ... this. Make static.
11907 (breakpoint_changed): Adjust.
11908 (_initialize_annotate): Always install the observers. Install a
11909 "breakpoint_created" observer.
11910 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11911 * breakpoint.c (set_breakpoint_condition)
11912 (breakpoint_set_commands, do_map_commands_command)
11913 (init_raw_breakpoint, clear_command, set_ignore_count)
11914 (enable_breakpoint_disp): No longer call
11915 annotate_breakpoints_changed.
11916
11917 2013-01-22 Pedro Alves <palves@redhat.com>
11918
11919 * annotate.c: Include "inferior.h".
11920 (frames_invalid_emitted)
11921 (breakpoints_invalid_emitted): New globals.
11922 (async_background_execution_p): New function.
11923 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11924 emitting the annotation if it has already been emitted.
11925 (annotate_display_prompt): New function.
11926 * annotate.h (annotate_display_prompt): New declaration.
11927 * event-top.c: Include annotate.h.
11928 (display_gdb_prompt): Call annotate_display_prompt.
11929
11930 2013-01-22 Pedro Alves <palves@redhat.com>
11931
11932 * annotate.c (ignore_count_changed): Delete.
11933 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11934 (annotate_ignore_count_change): Delete.
11935 (annotate_stopped): Don't emit a delayed breakpoints-changed
11936 annotation.
11937 * annotate.h (annotate_ignore_count_change): Delete.
11938 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11939 annotate_ignore_count_change.
11940
11941 2013-01-22 Tom Tromey <tromey@redhat.com>
11942
11943 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11944 require_rvalue for a register location.
11945
11946 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11947
11948 * breakpoint.c (print_one_breakpoint_location): Add MI
11949 field 'thread-groups' when printing a breakpoint.
11950 (output_thread_groups): New function.
11951
11952 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11953
11954 * python/lib/gdb/commands/explore.py
11955 (CompoundExplorer.explore_expr): Correct the name of a method
11956 being invoked.
11957 (ExploreTypeCommand.invoke): Add a missing 'return'.
11958
11959 2013-01-21 Tom Tromey <tromey@redhat.com>
11960
11961 * gdb_obstack.h (obconcat): Move declaration here, from...
11962 * symfile.h (obconcat): ... here.
11963 * gdb_obstack.c: New file.
11964 (obconcat): Move from...
11965 * symfile.c (obconcat): ... here.
11966 * Makefile.in (SFILES): Add gdb_obstack.c.
11967 (COMMON_OBS): Add gdb_obstack.o.
11968
11969 2013-01-21 Tom Tromey <tromey@redhat.com>
11970
11971 * symfile.h (obsavestring): Don't declare.
11972 * symfile.c (obsavestring): Remove.
11973 * ada-exp.y: Use obstack_copy0, not obsavestring.
11974 * ada-lang.c: Use obstack_copy0, not obsavestring.
11975 * coffread.c: Use obstack_copy0, not obsavestring.
11976 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11977 * dbxread.c: Use obstack_copy0, not obsavestring.
11978 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11979 * jit.c: Use obstack_copy0, not obsavestring.
11980 * mdebugread.c: Use obstack_copy0, not obsavestring.
11981 * psymtab.c: Use obstack_copy0, not obsavestring.
11982 * stabsread.c: Use obstack_copy0, not obsavestring.
11983 * xcoffread.c: Use obstack_copy0, not obsavestring.
11984
11985 2013-01-21 Tom Tromey <tromey@redhat.com>
11986
11987 * dwarf2read.c (fixup_go_packaging): Save package name
11988 on objfile obstack.
11989 * gdbtypes.c (init_type): Don't copy name.
11990
11991 2013-01-21 Tom Tromey <tromey@redhat.com>
11992
11993 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11994 const.
11995 (struct attribute) <u.str>: Now const.
11996 (struct fnfieldlist) <name>: Now const.
11997 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11998 (partial_die_parent_scope): Make return type const.
11999 (partial_die_full_name, add_partial_symbol): Update.
12000 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12001 'name' const.
12002 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12003 (read_file_scope, read_func_scope, dwarf2_add_field)
12004 (dwarf2_add_member_fn, read_structure_type)
12005 (process_enumeration_scope, read_array_type, read_module_type)
12006 (read_base_type, read_subrange_type): Update.
12007 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12008 (new_symbol_full, guess_full_die_structure_name): Update.
12009 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12010 (dwarf2_name): Return const type.
12011 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12012 const.
12013
12014 2013-01-21 Tom Tromey <tromey@redhat.com>
12015
12016 * gdbtypes.c (init_type): Make 'name' const.
12017 * gdbtypes.h (init_type): Update.
12018
12019 2013-01-21 Tom Tromey <tromey@redhat.com>
12020
12021 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12022 (start_symtab): Make 'name' and 'dirname' const. Use
12023 set_last_source_file.
12024 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12025 (last_source_file): Define. Now static.
12026 (set_last_source_file, get_last_source_file): New functions.
12027 * buildsym.h (last_source_file): Don't declare.
12028 (start_symtab): Update.
12029 (set_last_source_file, get_last_source_file): Declare.
12030 * coffread.c (complete_symtab): Use set_last_source_file.
12031 (coff_end_symtab): Likewise.
12032 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12033 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12034 set_last_source_file.
12035 (process_one_symbol): Use get_last_source_file.
12036 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12037 (psymtab_to_symtab_1): Use get_last_source_file.
12038 * xcoffread.c (process_linenos): Use get_last_source_file.
12039 (complete_symtab): Use set_last_source_file.
12040 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12041 (scan_xcoff_symtab): Use set_last_source_file.
12042
12043 2013-01-21 Tom Tromey <tromey@redhat.com>
12044
12045 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12046 (symbol_set_names): Remove casts. Handle field const-ness.
12047
12048 2013-01-21 Tom Tromey <tromey@redhat.com>
12049
12050 * dwarf2read.c (new_symbol_full): Remove cast.
12051 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12052 * symtab.h (symbol_set_demangled_name): Update.
12053
12054 2013-01-21 Tom Tromey <tromey@redhat.com>
12055
12056 * main.c (captured_main): Call bfd_init.
12057
12058 2013-01-21 Tom Tromey <tromey@redhat.com>
12059
12060 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12061 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12062 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12063 * NEWS: Update.
12064
12065 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12066
12067 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12068
12069 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12070
12071 Fix gdb.fortran/common-block.exp crash in PIE mode.
12072 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12073 LOC_COMMON_BLOCK.
12074 * f-valprint.c (info_common_command_for_block): Expect
12075 LOC_COMMON_BLOCK in gdb_assert.
12076 * symtab.h (struct general_symbol_info): Update comment for the
12077 common_block member.
12078 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12079 (enum address_class): New member LOC_COMMON_BLOCK.
12080
12081 2013-01-18 David Blaikie <dblaikie@gmail.com>
12082
12083 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12084
12085 2013-01-18 Tom Tromey <tromey@redhat.com>
12086
12087 PR c++/14999:
12088 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12089 Call require_rvalue.
12090
12091 2013-01-18 Yao Qi <yao@codesourcery.com>
12092
12093 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12094 (dbx_read_symtab): New declaration.
12095 (dbx_psymtab_to_symtab): Delete.
12096 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12097 Rename parameter PST to SELF. Exchanged two parameters.
12098 (start_psymtab): Caller update.
12099 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12100 (dwarf2_read_symtab): New declaration.
12101 (dwarf2_psymtab_to_symtab): Delete.
12102 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12103 Rename parameter PST to SELF. Exchanged two parameters.
12104 (create_partial_symtab): Caller update.
12105 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12106 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12107 Rename parameter PST to SELF. Exchanged two parameters.
12108 (parse_partial_symbols, new_psymtab): Caller update.
12109 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12110 two parameters.
12111 * psymtab.c (psymtab_to_symtab): Caller update.
12112 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12113 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12114 Rename parameter PST to SELF. Exchanged two parameters.
12115 (xcoff_start_psymtab): Caller update.
12116
12117 2013-01-18 Yao Qi <yao@codesourcery.com>
12118
12119 * infrun.c (proceed): Rename local variable 'oneproc' to
12120 'force_step'.
12121
12122 2013-01-17 Doug Evans <dje@google.com>
12123
12124 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12125 (dw2_build_type_unit_groups): Delete. All uses updated.
12126
12127 * symtab.h (struct symbol_search): Add comment.
12128
12129 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12130
12131 * symtab.c (compare_filenames_for_search): New comment for
12132 HAS_DRIVE_SPEC.
12133
12134 2013-01-17 Tom Tromey <tromey@redhat.com>
12135
12136 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12137
12138 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12139
12140 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12141 initialize it by existing make_cleanup. Call new do_cleanups.
12142
12143 2013-01-17 Tom Tromey <tromey@redhat.com>
12144
12145 * cp-abi.c (cp_abi_completer): New function.
12146 (_initialize_cp_abi): Set completer for "set cp-abi".
12147
12148 2013-01-17 Tom Tromey <tromey@redhat.com>
12149
12150 * mem-break.c: Remove obsolete comment.
12151 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12152
12153 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12154
12155 * jit.c (jit_reader_load_command): Interpret the jit reader name
12156 as an absolute path if it begins with a forward slash.
12157
12158 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12159
12160 PR gdb/14550
12161
12162 * jit.c (finalize_symtab): Ensure that only the global block has a
12163 NULL superblock.
12164
12165 2013-01-17 Pedro Alves <palves@redhat.com>
12166
12167 * acinclude.m4: Include ../config/plugins.m4,
12168 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12169 * Makefile.in (aclocal_m4_deps): Update.
12170 * aclocal.m4: Renegerate.
12171
12172 2013-01-16 Doug Evans <dje@google.com>
12173
12174 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12175
12176 2013-01-16 Pedro Alves <palves@redhat.com>
12177 Tom Tromey <tromey@redhat.com>
12178
12179 PR cli/7221:
12180 * NEWS: Add "catch signal".
12181 * breakpoint.c (base_breakpoint_ops): No longer static.
12182 (bpstat_explains_signal): New function.
12183 (init_catchpoint): No longer static.
12184 (base_breakpoint_explains_signal): New function.
12185 (base_breakpoint_ops): Initialize new field.
12186 * breakpoint.h (enum bpstat_signal_value): New.
12187 (struct breakpoint_ops) <explains_signal>: New field.
12188 (bpstat_explains_signal): Remove macro, declare as function.
12189 (base_breakpoint_ops, init_catchpoint): Declare.
12190 * break-catch-sig.c: New file.
12191 * inferior.h (signal_catch_update): Declare.
12192 * infrun.c (signal_catch): New global.
12193 (handle_syscall_event): Update for change to
12194 bpstat_explains_signal.
12195 (handle_inferior_event): Likewise. Always handle random signals
12196 via bpstats.
12197 (signal_cache_update): Check signal_catch.
12198 (signal_catch_update): New function.
12199 (_initialize_infrun): Initialize signal_catch.
12200 * Makefile.in (SFILES): Add break-catch-sig.c.
12201 (COMMON_OBS): Add break-catch-sig.o.
12202
12203 2013-01-16 Tom Tromey <tromey@redhat.com>
12204
12205 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12206 (print_one_catch_solib, print_one_catch_syscall)
12207 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12208 "catch-type".
12209
12210 2013-01-16 Yao Qi <yao@codesourcery.com>
12211
12212 * printcmd.c (current_display_number): Make it static.
12213
12214 2013-01-16 Yao Qi <yao@codesourcery.com>
12215
12216 * infcmd.c (step_once): Don't check '!single_inst' as it was
12217 checked before.
12218
12219 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12220
12221 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12222
12223 2013-01-14 Tom Tromey <tromey@redhat.com>
12224
12225 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12226 set command.
12227 * command.h (add_setshow_string_noescape_cmd): Update.
12228 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12229 (complete_set_gnutarget): New function.
12230 (_initialize_core): Set the "set gnutarget" completer.
12231
12232 2013-01-14 Tom Tromey <tromey@redhat.com>
12233
12234 PR symtab/14442:
12235 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12236 (c_type_print_modifier): Likewise.
12237 * dwarf2read.c (read_tag_restrict_type): New function.
12238 (read_type_die_1): Handle DW_TAG_restrict_type.
12239 * gdbtypes.c (make_restrict_type): New function.
12240 (recursive_dump_type): Handle TYPE_RESTRICT.
12241 * gdbtypes.h (enum type_flag_values): Renumber.
12242 (enum type_instance_flag_value): Add
12243 TYPE_INSTANCE_FLAG_RESTRICT.
12244 (TYPE_RESTRICT): New macro.
12245 (make_restrict_type): Declare.
12246
12247 2013-01-14 Tom Tromey <tromey@redhat.com>
12248
12249 PR symtab/14931:
12250 * psymtab.c (struct psymtab_state): New.
12251 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12252 functions.
12253 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12254 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12255
12256 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12257 Pedro Alves <palves@redhat.com>
12258
12259 PR remote/14786
12260
12261 * remote.c (remote_threads_info): Make a copy of the reply from
12262 qfThreadInfo and use that instead of rs->buf.
12263
12264 2013-01-14 Yao Qi <yao@codesourcery.com>
12265
12266 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12267 (dbx_psymtab_to_symtab): Likewise.
12268 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12269 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12270 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12271
12272 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12273
12274 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12275 make_cleanup_restore_current_language. Call set_language. Move
12276 OLD_CHAIN and INNER_CHAIN cleanups.
12277 * utils.c (do_restore_current_language)
12278 (make_cleanup_restore_current_language): New functions.
12279 * utils.h (make_cleanup_restore_current_language): New declaration.
12280
12281 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12282
12283 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12284 non-existing files.
12285
12286 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12287 non-existing files if FILENAME is already absolute.
12288
12289 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12290
12291 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12292 fputs_filtered. Append trailing newline.
12293
12294 2013-01-11 Yao Qi <yao@codesourcery.com>
12295 Stan Shebs <stan@codesourcery.com>
12296
12297 * psymtab.c (init_psymbol_list): Clarify the comment.
12298
12299 2013-01-11 Yao Qi <yao@codesourcery.com>
12300
12301 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12302 (update_dprintf_command_list): Assert that 'printf_line' is
12303 non-null. Remove condition check.
12304
12305 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12306
12307 Code cleanup.
12308 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12309 type const char *.
12310 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12311 const char *.
12312 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12313
12314 2013-01-09 Anthony Green <green@moxielogic.com>
12315
12316 * cp-abi.c (cplus_print_vtable): Don't return value from void
12317 function.
12318 * ada-lang.c (re_set_catch_assert): Ditto.
12319
12320 2013-01-09 Doug Evans <dje@google.com>
12321
12322 * symfile.h (quick_symbol_functions): Delete member
12323 pre_expand_symtabs_matching. All uses removed.
12324 * dwarf2read.c (dw2_lookup_symbol): Implement.
12325 (dw2_do_expand_symtabs_matching): Delete.
12326 (dw2_pre_expand_symtabs_matching): Delete.
12327 (struct dw2_symtab_iterator): New type.
12328 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12329 (dw2_expand_symtabs_for_function): Rewrite.
12330 (dwarf2_gdb_index_functions): Update.
12331 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12332 (psym_functions): Update.
12333
12334 2013-01-09 Tom Tromey <tromey@redhat.com>
12335
12336 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12337 * configure: Rebuild.
12338 * configure.ac: Add somread.o to the build if BFD has SOM
12339 support.
12340 * somread.c: Include som/aout.h, not syms.h.
12341 (som_symtab_read): Use som_external_symbol_dictionary_record.
12342 Unpack records manually.
12343 (_initialize_somread): Declare.
12344
12345 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12346
12347 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12348 Cast return_address to 64bits.
12349
12350 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12351
12352 * printcmd.c: Remove define of function output_command.
12353 * tracepoint.c: Remove extern of function output_command.
12354 * valprint.h: (output_command): New extern.
12355
12356 2013-01-07 Tom Tromey <tromey@redhat.com>
12357
12358 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12359 Remove.
12360 (objc_language_defn): Use c_printchar, c_printstr,
12361 c_emit_char.
12362
12363 2013-01-07 Tom Tromey <tromey@redhat.com>
12364
12365 PR cli/7719:
12366 * NEWS: Update.
12367 * ada-valprint.c (printstr, print_field_values): Remove
12368 "inspect_it" code.
12369 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12370 code.
12371 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12372 code.
12373 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12374 * main.c (captured_main): Remove "epoch" argument.
12375 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12376 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12377 * p-valprint.c (pascal_object_print_value_fields): Remove
12378 "inspect_it" code.
12379 * printcmd.c (print_command_1): Remove 'inspect' argument.
12380 (print_command, call_command): Update.
12381 (inspect_command): Remove.
12382 (_initialize_printcmd): Make "inspect" an alias for "print".
12383 * top.c (epoch_interface): Remove.
12384 * top.h (epoch_interface): Remove.
12385 * valprint.c (user_print_options): Update.
12386 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12387 * valprint.h (struct value_print_options) <inspect_it>: Remove
12388 field.
12389
12390 2013-01-04 Tom Tromey <tromey@redhat.com>
12391
12392 * valprint.h (read_string): Add 'extern'.
12393
12394 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12395
12396 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12397 used to decide whether to define darwin_read_dyld_info or not.
12398
12399 2013-01-03 Pierre Muller <muller@sourceware.org>
12400
12401 * main.c (relocate_gdb_directory): Avoid calling stat function
12402 if DIR is empty.
12403
12404 2013-01-03 Yao Qi <yao@codesourcery.com>
12405
12406 * psymtab.c (fixup_psymbol_section): Update declaration.
12407 (fixup_psymbol_section): Remove code returning value.
12408
12409 2013-01-03 Yao Qi <yao@codesourcery.com>
12410
12411 * symtab.h: Remove some out of date comments.
12412 (enum exception_event_kind): Move it ...
12413 * breakpoint.c: ... here.
12414
12415 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12416
12417 PR gdb/14405
12418 * darwin-nat.c (darwin_read_dyld_info): Only build if
12419 TASK_DYLD_INFO_COUNT is defined.
12420 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12421 TASK_DYLD_INFO_COUNT is defined.
12422
12423 2013-01-02 Tom Tromey <tromey@redhat.com>
12424
12425 * symfile.h (struct ecoff_debug_hack): Remove.
12426 * objfiles.c: Don't include mdebugread.h.
12427
12428 2013-01-02 Tom Tromey <tromey@redhat.com>
12429
12430 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12431 * configure.ac: Check for Mach-O support in BFD. Update
12432 CONFIG_OBS.
12433 * configure: Rebuild.
12434
12435 2013-01-02 Tom Tromey <tromey@redhat.com>
12436
12437 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12438 * configure.ac: Use GDB_AC_CHECK_BFD.
12439 * configure: Rebuild.
12440
12441 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12442
12443 * MAINTAINERS: Update my email.
12444
12445 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12446
12447 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12448
12449 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12450
12451 * rs6000-nat.c (bss_data_overlap): New function.
12452 (vmap_symtab): Use it to adjust the .bss section's offset.
12453
12454 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12455
12456 Update year range in copyright notice of all files.
12457
12458 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12459
12460 * top.c (print_gdb_version): Update copyright year.
12461
12462 For older changes see ChangeLog-2012.
12463 \f
12464 Local Variables:
12465 mode: change-log
12466 left-margin: 8
12467 fill-column: 74
12468 version-control: never
12469 coding: utf-8
12470 End:
This page took 0.421774 seconds and 5 git commands to generate.