1 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
4 registers on the range of registers to be read from
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,
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
24 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
25 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
27 (i386_bnd_type): New function.
28 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
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
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
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.
58 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
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.
76 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
78 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
79 Modified logic of creating a bitfield to be in sync with
82 2013-11-20 Will Newton <will.newton@linaro.org>
84 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
87 2013-11-20 Yao Qi <yao@codesourcery.com>
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.
102 2013-11-20 Yao Qi <yao@codesourcery.com>
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.
111 2013-11-20 Yao Qi <yao@codesourcery.com>
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
118 * memattr.c: Include "target-dcache.h".
120 * tracepoint.c: Likewise.
121 * target.c: (stack_cache_enabled_p_1): Move to
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
133 (target_dcache_get): Likewise.
134 * target-dcache.c: New.
135 * target-dcache.h: New.
137 2013-11-20 Yao Qi <yao@codesourcery.com>
139 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
142 2013-11-20 Yao Qi <yao@codesourcery.com>
144 * dcache.c (last_cache): Remove.
145 (dcache_free, dcache_init): Update.
147 (dcache_print_line): Add parameter 'dcache'. Replace
148 'target_dcache' with 'dcache'.
149 (dcache_info): Move code to dcache_info_1. Call
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.
162 2013-11-19 Yao Qi <yao@codesourcery.com>
164 * varobj.c (varobj_get_type): Fix typo.
166 2013-11-19 Joel Brobecker <brobecker@adacore.com>
168 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
170 2013-11-19 Joel Brobecker <brobecker@adacore.com>
172 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
175 2013-11-18 Tom Tromey <tromey@redhat.com>
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.
212 2013-11-18 Tom Tromey <tromey@redhat.com>
214 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
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.
228 2013-11-18 Tom Tromey <tromey@redhat.com>
230 * configure: Rebuild.
231 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
233 2013-11-18 Tom Tromey <tromey@redhat.com>
235 * configure: Rebuild.
236 * configure.ac: Don't check for unistd.h.
238 2013-11-18 Tom Tromey <tromey@redhat.com>
240 * configure: Rebuild.
241 * configure.ac: Don't check for stdlib.h
242 * defs.h: Include stdlib.h unconditionally.
244 2013-11-18 Tom Tromey <tromey@redhat.com>
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
252 2013-11-18 Tom Tromey <tromey@redhat.com>
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.
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.
267 2013-11-18 Tom Tromey <tromey@redhat.com>
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.
280 2013-11-18 Tom Tromey <tromey@redhat.com>
282 * configure: Rebuild.
283 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
286 2013-11-18 Tom Tromey <tromey@redhat.com>
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.
585 2013-11-18 Tom Tromey <tromey@redhat.com>
587 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
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.
607 2013-11-18 Tom Tromey <tromey@redhat.com>
609 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
612 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
614 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
615 * sparc-tdep.h: And its prototype.
617 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
619 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
621 2013-11-18 Pedro Alves <palves@redhat.com>
623 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
626 2013-11-18 Joel Brobecker <brobecker@adacore.com>
628 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
629 to -list-features output.
631 2013-11-17 Joel Brobecker <brobecker@adacore.com>
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".
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
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.
649 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
651 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
653 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
655 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
658 2013-11-15 Tom Tromey <tromey@redhat.com>
661 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
662 (classify_name): Likewise. Prefer a field of "this" over a
664 (classify_inner_name, yylex): Update.
666 2013-11-15 Joel Brobecker <brobecker@adacore.com>
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"
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.
680 2013-11-15 Alan Modra <amodra@gmail.com>
682 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
683 (ppc64_desc_entry_point): ..this. Update comments here and at
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
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.
695 2013-11-14 Pedro Alves <palves@redhat.com>
697 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
698 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
700 2013-11-14 Pedro Alves <palves@redhat.com>
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
709 (handle_signal_stop): New function, factored out from
710 handle_inferior_event.
712 2013-11-14 Pedro Alves <palves@redhat.com>
714 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
716 * breakpoint.c (bpstat_explains_signal): Adjust to return a
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.
727 2013-11-14 Pedro Alves <palves@redhat.com>
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
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.
737 2013-11-14 Pedro Alves <palves@redhat.com>
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
750 2013-11-14 Pedro Alves <palves@redhat.com>
752 * infrun.c (handle_inferior_event): Move comment from the
753 function's body to the function's description, adjusted.
755 2013-11-14 Pedro Alves <palves@redhat.com>
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
762 2013-11-14 Tom Tromey <tromey@redhat.com>
764 * python/py-linetable.c (ltpy_has_line)
765 (ltpy_get_all_source_lines): Fix loop termination condition.
767 2013-11-14 Joel Brobecker <brobecker@adacore.com>
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.
775 * NEWS: Add entry mentioning the new "--language" command option.
777 2013-11-14 Pedro Alves <palves@redhat.com>
778 Joel Brobecker <brobecker@adacore.com>
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.
784 2013-11-14 Joel Brobecker <brobecker@adacore.com>
786 * language.h: Add "symtab.h" #include.
788 2013-11-13 Doug Evans <xdje42@gmail.com>
790 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
791 specific breakpoints, don't evaluate breakpoint condition if
794 2013-11-13 Keith Seitz <keiths@redhat.com>
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.
810 2013-11-13 Keith Seitz <keiths@redhat.com>
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.
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
824 2013-11-13 Doug Evans <xdje42@gmail.com>
826 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
828 2013-11-13 Joel Brobecker <brobecker@adacore.com>
830 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
831 entry with "ada-exceptions".
833 2013-11-13 Joel Brobecker <brobecker@adacore.com>
835 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
836 after re-initialization of OBJFILE's obstack.
838 2013-11-12 Doug Evans <xdje42@gmail.com>
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.
844 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
846 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
849 2013-11-12 Doug Evans <dje@google.com>
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.
858 2013-11-12 Joel Brobecker <brobecker@adacore.com>
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
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".
867 2013-11-12 Joel Brobecker <brobecker@adacore.com>
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.
883 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
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.
895 2013-11-11 Joel Brobecker <brobecker@adacore.com>
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
905 2013-11-11 Tom Tromey <tromey@redhat.com>
907 * config.in, configure: Rebuild.
908 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
910 2013-11-11 Joel Brobecker <brobecker@adacore.com>
912 * remote-sim.c (gdbsim_detach): Break declaration into
913 shorter lines. No code change.
915 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
917 * remote-sim.c (gdbsim_detach): Fix prototype.
919 2013-11-08 Doug Evans <dje@google.com>
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.
928 2013-11-08 Tom Tromey <tromey@redhat.com>
930 * configure: Rebuild.
931 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
933 2013-11-08 Tom Tromey <tromey@redhat.com>
935 * configure, config.in: Rebuild.
936 * configure.ac: Remove unused configury.
938 2013-11-08 Tom Tromey <tromey@redhat.com>
940 * m32c-tdep.c: Use gdb_string.h.
942 2013-11-08 Tom Tromey <tromey@redhat.com>
944 * configure, config.in: Rebuild.
945 * configure.ac: Remove all link.h-related checks.
947 2013-11-08 Tom Tromey <tromey@redhat.com>
949 * acinclude.m4: Include common.m4.
950 * common/common.m4: New file.
951 * configure, config.in: Rebuild.
952 * configure.ac: Use GDB_AC_COMMON.
954 2013-11-08 Doug Evans <dje@google.com>
956 * NEWS: Mention that "set debug symtab-create" now accepts a
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
968 * symtab.h (set_symtab_primary): Declare.
969 (symtab_create_debug): Update decl.
971 2013-11-08 Tom Tromey <tromey@redhat.com>
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.
1003 2013-11-07 Doug Evans <dje@google.com>
1006 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1007 and align fields for PT_GNU_RELRO segments.
1009 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1012 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1014 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
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.
1021 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1023 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1024 removed to allow analyzing unconditional branch instructions
1025 with PC-relative offsets of zero.
1027 2013-11-07 Yao Qi <yao@codesourcery.com>
1029 * mi/mi-cmd-var.c: Include "language.h".
1030 (mi_cmd_var_info_expression): Get language name from
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.
1041 2013-11-07 Yao Qi <yao@codesourcery.com>
1043 * language.h (struct language_defn) <la_natural_name>: New
1045 * ada-lang.c (ada_language_defn): Initialize field
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.
1060 2013-11-07 Yao Qi <yao@codesourcery.com>
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.
1067 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069 * s390-linux-nat.c (s390_read_description): Consider the TE field
1070 in the HWCAP for determining 'have_regset_tdb'.
1072 2013-11-06 Will Newton <will.newton@linaro.org>
1075 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1076 values. (read_partial_die): Likewise.
1078 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1081 * top.c (command_line_input): Unify interactivity tests to use
1082 input_from_terminal_p.
1083 * event-top.c (command_line_handler): Likewise.
1085 2013-11-06 Yao Qi <yao@codesourcery.com>
1087 * Makefile.in (check-perf): New target.
1089 2013-11-05 Will Newton <will.newton@linaro.org>
1092 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1093 (arm_print_float_info): Likewise.
1095 2013-11-04 Anton Blanchard <anton@samba.org>
1097 * target.c (memory_xfer_partial): Cap write to 4KB.
1099 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1101 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1102 probe scan even when the arch provides no get_longjmp_target.
1104 2013-10-31 Pedro Alves <palves@redhat.com>
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
1115 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1117 * breakpoint.c (update_watchpoint): Update error message and add
1118 an additional error message.
1120 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
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 ->
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 ->
1136 (ALLDEPFILES): Reflect rename of .c files.
1138 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1140 * s390-nat.c: Whitespace cleanup.
1141 * s390-tdep.c: Likewise.
1142 * s390-tdep.h: Remove empty line at end of file.
1144 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1146 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1149 2013-10-29 Tom Tromey <tromey@redhat.com>
1151 * utils.c (reg): Move undefinition...
1152 * gdb_curses.h: ... here. Update comment to mention AIX.
1154 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
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.
1174 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
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.
1180 2013-10-29 Yao Qi <yao@codesourcery.com>
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.
1192 2013-10-28 Pedro Alves <palves@redhat.com>
1194 * breakpoint.c (watchpoints_triggered)
1195 <!target_stopped_data_address>: Hardcode return 1.
1197 2013-10-28 Pedro Alves <palves@redhat.com>
1199 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1202 2013-10-28 Pedro Alves <palves@redhat.com>
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.
1209 2013-10-28 Pedro Alves <palves@redhat.com>
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.
1215 2013-10-28 Pedro Alves <palves@redhat.com>
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.
1224 2013-10-28 Pedro Alves <palves@redhat.com>
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'.
1230 2013-10-27 Yao Qi <yao@codesourcery.com>
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.
1240 2013-10-25 Yao Qi <yao@codesourcery.com>
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
1247 * c-lang.c: Include "varobj.h"
1248 (c_language_defn): Initialize field 'la_varobj_ops' with
1250 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1252 (asm_language_defn): Initialize field 'la_varobj_ops' with
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.
1270 2013-10-25 Pedro Alves <palves@redhat.com>
1272 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
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
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
1283 * value.c (value_static_field): Return an optimized out value
1286 2013-10-25 Yao Qi <yao@codesourcery.com>
1288 * remote.c (remote_traceframe_info): Return early if
1289 traceframe is not selected.
1291 2013-10-25 Yao Qi <yao@codesourcery.com>
1293 * tracepoint.c (traceframe_fun): Remove.
1294 (traceframe_sal): Remove.
1295 (set_traceframe_context): Add local variables.
1297 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1299 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1302 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1304 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1305 failure from register information collection.
1307 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1309 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1311 (linux_corefile_thread_callback): Update accordingly.
1312 (linux_make_corefile_notes): Likewise.
1314 2013-10-24 Pedro Alves <palves@redhat.com>
1316 * NEWS (New options): Mention set/show startup-with-shell.
1317 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
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
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.
1332 2013-10-23 Pedro Alves <palves@redhat.com>
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
1342 * target/waitstatus.c (target_waitstatus_to_string): Print the
1343 signal's enum value as string instead of the (POSIX) signal name.
1345 2013-10-23 Gary Benson <gbenson@redhat.com>
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
1358 2013-10-22 Pedro Alves <palves@redhat.com>
1360 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1361 set ecs->random signal.
1363 2013-10-22 Pedro Alves <palves@redhat.com>
1365 * infrun.c (keep_going): Update comments.
1367 2013-10-22 Pedro Alves <palves@redhat.com>
1369 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1370 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1372 2013-10-22 Pedro Alves <palves@redhat.com>
1374 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
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.
1386 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1388 * MAINTAINERS (Write After Approval): Add myself to the list.
1390 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
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.
1398 2013-10-18 Pedro Alves <palves@redhat.com>
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
1405 2013-10-18 Yao Qi <yao@codesourcery.com>
1407 * c-varobj.c (cplus_number_of_children): Fix indentation.
1409 2013-10-17 Tom Tromey <tromey@redhat.com>
1412 * printcmd.c (printcmd): Call gdb_flush.
1414 2013-10-17 Tom Tromey <tromey@redhat.com>
1416 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1417 (elf_locate_sections): Update.
1419 2013-10-17 Yao Qi <yao@codesourcery.com>
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.
1431 2013-10-17 Yao Qi <yao@codesourcery.com>
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
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.
1471 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
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
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.
1515 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1517 * target/waitstatus.h (target_waitkind): Remove spurious
1518 character from the comments.
1520 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1522 * gdbarch.sh (get_longjmp_target): Add method documentation.
1523 * gdbarch.h: Regenerate.
1525 2013-10-16 Tom Tromey <tromey@redhat.com>
1527 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1530 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1532 * gcore.in: Call GDB using the full path to the gcore script.
1533 Error out if the GDB binary is not found.
1535 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1538 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1541 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1544 * target.c (target_disable_btrace): Fix invalid return value for
1546 (target_teardown_btrace): Likewise.
1548 2013-10-14 Yao Qi <yao@codesourcery.com>
1550 * varobj.c (struct varobj): Move most of the fields to
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.
1568 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
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.
1578 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1580 Canonicalize directories for EXEC_FILENAME.
1581 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1583 * utils.c (gdb_realpath_keepfile): New function.
1584 * utils.h (gdb_realpath_keepfile): New declaration.
1586 2013-10-11 Doug Evans <dje@google.com>
1588 * Makefile.in (GDBFLAGS): New variable.
1591 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1593 * NEWS: Add entry documenting the new "-catch-assert" and
1594 "-catch-exception" GDB/MI commands.
1596 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1598 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
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
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.
1613 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
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.
1620 2013-10-11 Joel Brobecker <brobecker@adacore.com>
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
1627 2013-10-11 Joel Brobecker <brobecker@adacore.com>
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.
1646 2013-10-11 Joel Brobecker <brobecker@adacore.com>
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.
1653 2013-10-11 Joel Brobecker <brobecker@adacore.com>
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.
1659 2013-10-11 Yao Qi <yao@codesourcery.com>
1661 * remote.c (discard_pending_stop_replies_in_queue): Update
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
1668 (remote_parse_stop_reply): Initialize field 'rs'.
1670 2013-10-10 Will Newton <will.newton@linaro.org>
1672 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1675 2013-10-10 Joel Brobecker <brobecker@adacore.com>
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".
1689 2013-10-09 Pedro Alves <palves@redhat.com>
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.
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,
1710 * target.h (target_read, target_insert_breakpoint)
1711 (target_remove_breakpoint): Adjust comments.
1712 * valprint.c (partial_memory_read): Rename parameter, and adjust
1714 (val_print_string): Use memory_error_message to build the memory
1717 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
1723 2013-10-09 Pedro Alves <palves@redhat.com>
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
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.
1734 2013-10-09 Tom Tromey <tromey@redhat.com>
1736 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1737 bfd_get_alt_debug_link_info.
1739 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
1749 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1751 * objfiles.h (OBJF_NOT_FILENAME): New.
1753 2013-10-08 Tom Tromey <tromey@redhat.com>
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
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.
1766 2013-10-08 Joel Brobecker <brobecker@adacore.com>
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.
1774 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1776 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1778 2013-10-07 Tom Tromey <tromey@redhat.com>
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.
1792 2013-10-07 Tom Tromey <tromey@redhat.com>
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.
1801 2013-10-07 Pedro Alves <palves@redhat.com>
1803 PR breakpoints/11568
1804 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1805 the thread list" instead of "gone".
1807 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
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.
1817 2013-10-06 Yao Qi <yao@codesourcery.com>
1819 * varobj.h: Add comments to enum varobj_languages.
1821 2013-10-04 Doug Evans <dje@google.com>
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,
1832 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
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.
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.
1862 2013-10-04 Pedro Alves <palves@redhat.com>
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.
1875 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1877 * aix-thread.c (sync_threadlists): Add missing ')' in call
1880 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1882 * procfs.c (procfs_init_inferior): Fix typo causing the build
1885 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1887 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1889 2013-10-04 Joel Brobecker <brobecker@adacore.com>
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.
1898 2013-10-04 Yao Qi <yao@codesourcery.com>
1900 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1901 (struct notif_client) <pending_event>: Moved
1902 to struct remote_notif_state.
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.
1927 2013-10-04 Yao Qi <yao@codesourcery.com>
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.
1958 2013-10-04 Yao Qi <yao@codesourcery.com>
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
1965 (varobj_add_child): Likewise.
1966 (create_child_with_value): Likewise. Update comments. Don't
1968 (update_dynamic_varobj_children): Duplicate 'name'
1969 and pass it to install_dynamic_child.
1971 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
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.
1979 2013-10-03 Pedro Alves <palves@redhat.com>
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.
1989 2013-10-03 Tristan Gingold <gingold@adacore.com>
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
1996 Remove trailing spaces.
1998 2013-10-02 Pedro Alves <palves@redhat.com>
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>.
2028 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2030 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2031 strcmp to compare two symtab filenames.
2033 2013-10-02 Joel Brobecker <brobecker@adacore.com>
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.
2040 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2043 * python/python.c: Document gdb.execute command in Python help.
2045 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2047 * python/py-frame.c (frame_info_to_frame_object): Use
2048 gdbpy_convert_exception. Clean up Python object on failure.
2050 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2052 * python/lib/gdb/command/frame_filters.py
2053 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2054 (ShowFrameFilterPriority.invoke): Ditto.
2056 2013-10-01 Keith Seitz <keiths@redhat.com>
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 *
2066 * objc-lang.c (find_imps): Make argument 'method' const.
2068 * objc-lang.h (find_imps): Likewise.
2070 2013-10-01 Keith Seitz <keiths@redhat.com>
2072 * completer.c (skip_quoted_chars): Make all arguments 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.
2082 2013-10-01 Keith Seitz <keiths@redhat.com>
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'
2096 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2098 * f-exp.y (parse_number): Make first argument const.
2099 (match_string_literal): Make local variable 'tokstart'
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
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.
2140 2013-10-01 Keith Seitz <keiths@redhat.com>
2142 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
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
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
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
2160 (linespec_lexer_lex_string): Make local variables 'start' and
2162 Use skip_spaces_const instead of skip_spaces.
2163 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2165 (parse_linespec): Temporarily cast 'argptr' to const for
2166 'parser->lexer.stream'.
2167 * m2-exp.y (yylex): Remove temporary cast to char * for
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.
2175 2013-10-01 Doug Evans <dje@google.com>
2177 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2179 2013-10-01 Yao Qi <yao@codesourcery.com>
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.
2193 2013-10-01 Yao Qi <yao@codesourcery.com>
2195 * varobj.c (varobj_format_string): Remove "unknown".
2196 (languages): Remove the first element.
2197 * varobj.h (enum varobj_languages): Remove vlang_c.
2199 2013-10-01 Yao Qi <yao@codesourcery.com>
2201 * varobj.c (struct language_specific) <language>: Remove.
2202 (languages): Update the initialization.
2204 2013-10-01 Yao Qi <yao@codesourcery.com>
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.
2213 2013-10-01 Yao Qi <yao@codesourcery.com>
2215 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
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
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
2230 * windows-tdep.h (windows_init_abi): Declare.
2231 (windows_iterate_over_objfiles_in_search_order): Remove
2234 2013-10-01 Jerome Guitton <guitton@adacore.com>
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.
2243 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2245 * ada-lang.c (ada_has_this_exception_support): Ignore
2246 mst_solib_trampoline minimal symbols.
2248 2013-09-30 Tristan Gingold <gingold@adacore.com>
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.
2258 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
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.
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.
2308 2013-09-28 Mike Frysinger <vapier@gentoo.org>
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.
2314 2013-09-27 Doug Evans <dje@google.com>
2316 * dwarf2read.c (dwarf2_section_info): Add comment.
2317 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
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.
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.
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
2336 (create_dwo_in_dwp): Tweak comments.
2337 (read_str_index): Tweak comment. Record dwarf form name in static
2340 2013-09-27 Pedro Alves <palves@redhat.com>
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
2351 2013-09-27 Pedro Alves <palves@redhat.com>
2353 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2355 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2358 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
2364 2013-09-26 Pierre Muller <muller@sourceware.org>
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.
2373 2013-09-25 Doug Evans <dje@google.com>
2375 * objfiles.c (allocate_objfile): Move comment to better place.
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.
2389 * symfile.h (struct sym_fns): Delete member "sym_flavour".
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.
2398 * symfile.h (struct sym_fns): Add "objfile" argument to
2399 sym_read_linetable. All uses updated.
2401 * symtab.c (domain_name, search_domain_name): New functions.
2402 * symtab.h (domain_name, search_domain_name): Declare.
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.
2409 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2412 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2415 2013-09-24 Doug Evans <dje@google.com>
2417 * objfiles.c (free_objfile): Move comment.
2419 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2421 * ada-exp.y (string_to_operator): Delete.
2422 (dummy_string_to_ada_operator): Delete.
2424 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2427 * i386-tdep.h (enum amd64_reg_class): New, moved here from
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.
2445 2013-09-24 Joel Brobecker <brobecker@adacore.com>
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.
2452 2013-09-24 Joel Brobecker <brobecker@adacore.com>
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.
2460 2013-09-24 Joel Brobecker <brobecker@adacore.com>
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.
2476 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2478 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2479 objfile->original_name.
2481 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
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
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
2518 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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):
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
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):
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
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
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
2592 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2595 * probe.c (parse_probes): Rename variable objfile_name to
2598 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
2609 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
2627 2013-09-23 Tom Tromey <tromey@redhat.com>
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.
2637 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2639 * regcache.c: Add include of valprint.h.
2640 (dump_endian_bytes): Delete.
2641 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2643 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2645 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2647 2013-09-19 Pedro Alves <palves@redhat.com>
2649 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2652 2013-09-19 Pedro Alves <palves@redhat.com>
2653 Thomas Schwinge <thomas@codesourcery.com>
2654 Yue Lu <hacklu.newborn@gmail.com>
2656 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2657 Take a gdb_byte pointer instead of a char pointer.
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.
2665 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
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
2677 (symbol_file_add_main): Make args parameter const.
2679 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2680 Ulrich Weigand <uweigand@de.ibm.com>
2682 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2684 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2686 2013-09-18 Pedro Alves <palves@redhat.com>
2687 Yue Lu <hacklu.newborn@gmail.com>
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.
2696 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
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.
2703 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2705 * infrun.c (handle_inferior_event): Check if we know the
2706 function start address before setting a resume breakpoint.
2708 2013-09-18 Pedro Alves <palves@redhat.com>
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.
2714 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2716 * main.h (get_gdb_program_name): Remove extra whitespace.
2718 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2720 * main.h (get_gdb_program_name): Add declaration.
2721 * main.c (get_gdb_program_name): Add definition.
2723 2013-09-17 Doug Evans <dje@google.com>
2725 * dwarf2read.c: Move definitions of complaint functions to after
2726 forward declarations of local functions.
2728 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2729 Pedro Alves <palves@redhat.com>
2732 * breakpoint.c (remove_threaded_breakpoints): New function.
2733 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2734 as thread_exit observer.
2736 2013-09-17 Pedro Alves <palves@redhat.com>
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
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):
2751 * remote-mips.c (common_open): Likewise.
2752 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2754 (print_frame_info): New 'set_current_sal' parameter. Set the last
2755 displayed sal depending on the new paremeter instead of looking at
2757 (backtrace_command_1, select_and_print_frame, frame_command)
2758 (current_frame_command, up_command, down_command): Adjust call to
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.
2768 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2770 * value.c (isvoid_internal_fn): Replace "parameter" with
2773 2013-09-16 Stan Shebs <stan@codesourcery.com>
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
2783 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2785 * NEWS: Mention new convenience function $_isvoid.
2786 * value.c (isvoid_internal_fn): New function.
2787 (_initialize_values): Add new convenience function $_isvoid.
2789 2013-09-16 Pierre Muller <muller@sourceware.org>
2791 * arm-linux-tdep.c: Add "elf/common.h" header.
2792 Remove AT_HWCAP macro definintion as it is provided in
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.
2800 2013-09-14 Pierre Muller <muller@sourceware.org>
2801 Tom Tromey <tromey@redhat.com>
2802 Pedro Alves <palves@redhat.com>
2804 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2805 mode if operating system doesn't know O_CLOEXEC.
2807 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2810 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2813 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
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
2875 * gdbserver/Makefile.in (clean): Add removal of new makefile
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
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.
2892 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
2922 2013-09-12 Andrew Pinski <apinski@cavium.com>
2924 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2926 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2928 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2930 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2932 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2934 2013-09-06 Pedro Alves <palves@redhat.com>
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
2943 2013-09-06 Pedro Alves <palves@redhat.com>
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.
2953 2013-09-06 Pedro Alves <palves@redhat.com>
2955 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2956 host_address_to_string, and send debug output to gdb_stdlog.
2958 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
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.
2971 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2973 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2974 to deprecated_init_ui_hook.
2976 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
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
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.
2990 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2992 * cris-tdep.c (cris_gdbarch_init): Add call to
2993 get_gdbarch_fetch_tls_load_module_address.
2995 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
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.
3002 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3004 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3006 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
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
3014 * top.c (deprecated_command_loop_hook): Remove.
3016 2013-09-05 Pedro Alves <palves@redhat.com>
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.
3022 2013-09-05 Tristan Gingold <gingold@adacore.com>
3024 * MAINTAINERS: Remove avr maintainership.
3026 2013-09-05 Pedro Alves <palves@redhat.com>
3028 * findvar.c (value_of_register): Rework in terms of
3029 value_of_register_lazy.
3031 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3033 * symfile.c (add_symbol_file_command): Remove trailing
3034 whitespaces and blank line after comment.
3036 2013-09-05 Pedro Alves <palves@redhat.com>
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.
3044 2013-09-05 Pedro Alves <palves@redhat.com>
3047 * tui/tui-regs.c (tui_show_registers): Show registers of the
3048 selected frame, not the current frame.
3050 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3052 * MAINTAINERS (Write After Approval): Add myself to the list.
3054 2013-09-04 Doug Evans <dje@google.com>
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.
3064 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
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
3074 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
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.
3083 2013-09-04 Doug Evans <dje@google.com>
3085 * progspace.c (save_current_space_and_thread): Remove unnecessary
3086 call to save_current_inferior.
3088 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3090 * sh64-tdep.c (sh64_do_register): Return after printing message
3091 about unavailable register contents.
3093 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3094 Pedro Alves <palves@redhat.com>
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.
3100 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3102 * inf-child.c (inf_child_follow_fork): New parameter
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
3109 (follow_fork): Pass detach_fork parameter to
3111 * linux-nat.c (linux_child_follow_fork): New parameter
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
3117 (target_follow_fork): New parameter detach_fork.
3119 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3121 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3122 Replace sec->bfd by sec->the_bfd_section->owner.
3124 2013-09-03 Yao Qi <yao@codesourcery.com>
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
3133 2013-09-03 Yao Qi <yao@codesourcery.com>
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
3142 * osabi.c (gdb_osabi_names): Remove "Interix".
3144 2013-09-03 Yao Qi <yao@codesourcery.com>
3146 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3148 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
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.
3155 2013-09-02 Pierre Muller <muller@sourceware.org>
3157 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3160 2013-09-02 Pierre Muller <muller@sourceware.org>
3162 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3163 by use of plongest function.
3165 2013-09-02 Tristan Gingold <gingold@adacore.com>
3167 * NEWS: Add entry mentioning support for native Windows x64
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.
3184 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3188 2013-08-30 Pedro Alves <palves@redhat.com>
3190 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3193 2013-08-30 Pedro Alves <palves@redhat.com>
3195 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3198 2013-08-30 Pedro Alves <palves@redhat.com>
3200 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3201 Adjust arguments to print_stack_frame.
3203 2013-08-30 Pedro Alves <palves@redhat.com>
3205 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3207 2013-08-30 Pedro Alves <palves@redhat.com>
3209 * frame.h (show_and_print_stack_frame): Delete declaration.
3211 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3214 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3215 (archpy_name): Check for valid architecture.
3216 (archpy_disassemble): Ditto.
3218 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3220 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3221 instead of "long long" in call to ptrace64.
3223 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
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
3235 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3237 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3240 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3242 * value.c (allocate_value_contents): Make static.
3243 * value.h (allocate_value_contents): Remove prototype.
3245 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
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.
3254 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3256 * value.c (value_from_contents_and_address): Replace allocate_value and
3257 memcpy with value_from_contents.
3259 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
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,
3278 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3281 * python/py-framefilter.c (apply_frame_filter): Check
3282 gdb_python_initialized. Exit if the Python frame-filter code
3283 cannot be initialized.
3285 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3288 * top.c (print_gdb_version): Remove erroneous newline after help
3291 2013-08-29 Yao Qi <yao@codesourcery.com>
3293 * varobj.c (install_dynamic_child): Remove trailing space.
3294 Add one blank line after variable declaration.
3296 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
3314 2013-08-28 Will Newton <will.newton@linaro.org>
3316 * common/linux-ptrace.c: Include stdint.h unconditionally.
3318 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3321 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3323 2013-08-28 Yao Qi <yao@codesourcery.com>
3324 Pedro Alves <palves@redhat.com>
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.
3335 2013-08-27 Doug Evans <dje@google.com>
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.
3343 2013-08-27 Pedro Alves <palves@redhat.com>
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.
3351 2013-08-27 Pedro Alves <palves@redhat.com>
3353 * darwin-nat.c (darwin_xfer_memory): Delete.
3354 (_initialize_darwin_inferior): Don't install a
3355 deprecated_xfer_memory method.
3357 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3358 Yao Qi <yao@codesourcery.com>
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.
3368 (list_args_or_locals): New parameter 'skip_unavailable'.
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.
3377 * NEWS: Mention the new option "--skip-unavailable" to MI
3378 commands '-stack-list-locals', '-stack-list-arguments' and
3379 '-stack-list-variables'.
3381 2013-08-27 Yao Qi <yao@codesourcery.com>
3383 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3384 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3386 * mi/mi-getopt.c (mi_getopt): Remove.
3387 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3389 (mi_getopt): Call mi_getopt_1.
3390 (mi_getopt_silent): New.
3391 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3393 2013-08-26 Doug Evans <dje@google.com>
3396 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3397 .gdb_index is in use.
3398 * symfile.c (reread_symbols): Reset objfile->sf.
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".
3405 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3406 missing debug info checks.
3408 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3409 Ulrich Weigand <uweigand@de.ibm.com>
3411 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3412 line tables generated by XLC compiled binaries.
3414 2013-08-23 Doug Evans <dje@google.com>
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".
3421 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3422 debugging printf to better location.
3424 2013-08-23 Pedro Alves <palves@redhat.com>
3426 * target.c (target_read_live_memory): Change type of 'ret' local
3429 2013-08-23 Pedro Alves <palves@redhat.com>
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.
3439 2013-08-23 Pierre Muller <muller@sourceware.org>
3441 ARI fix: Push # directives to start of line.
3442 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3444 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3447 * breakpoint.c (enable_command, disable_command): Iterate over
3448 all specified breakpoint locations.
3450 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
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
3457 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
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
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.
3538 2013-08-22 Samuel Bronson <naesten@gmail.com>
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.
3548 2013-08-22 Pedro Alves <palves@redhat.com>
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
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.
3564 2013-08-22 Alan Modra <amodra@gmail.com>
3566 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3567 * configure.tgt: Likewise as targets.
3569 2013-08-20 Doug Evans <dje@google.com>
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
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
3584 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3585 * buildsym.h (get_macro_table): Declare.
3587 2013-08-20 Tom Tromey <tromey@redhat.com>
3589 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3591 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3593 2013-08-20 Doug Evans <dje@google.com>
3595 * blockframe.c: Remove #include "psymtab.h".
3596 * cp-support.c: Ditto.
3600 2013-08-20 Tom Tromey <tromey@redhat.com>
3603 * exceptions.h (return_mask): Now an enum.
3604 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3607 2013-08-20 Tom Tromey <tromey@redhat.com>
3609 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
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,
3621 (struct objfile) <gdbarch>: ... here. Remove.
3622 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3624 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3626 2013-08-20 Alan Modra <amodra@gmail.com>
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.
3639 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
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
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
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.
3665 2013-08-19 Pedro Alves <palves@redhat.com>
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.
3673 2013-08-15 Kevin Buettner <kevinb@redhat.com>
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.
3682 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3685 * top.c (quit_force): Skip writing history file
3686 if input is not from terminal.
3688 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3696 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3704 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3711 2013-08-14 Tom Tromey <tromey@redhat.com>
3713 * remote.c (sizeof_pkt): Remove.
3714 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3716 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3723 2013-08-14 Tom Tromey <tromey@redhat.com>
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
3730 2013-08-14 Tom Tromey <tromey@redhat.com>
3732 * remote.c (struct remote_state) <last_sent_step>:
3734 (last_sent_step): Remove.
3735 (remote_resume, remote_wait_as): Update.
3737 2013-08-14 Tom Tromey <tromey@redhat.com>
3739 * remote.c (struct remote_state) <last_sent_signal>:
3741 (last_sent_signal): Remove.
3742 (new_remote_state, remote_resume, remote_wait_as): Update.
3744 2013-08-14 Tom Tromey <tromey@redhat.com>
3746 * remote.c (struct remote_state) <last_program_signals_packet>:
3748 (last_program_signals_packet): Remove.
3749 (remote_program_signals, remote_open_1): Update.
3751 2013-08-14 Tom Tromey <tromey@redhat.com>
3753 * remote.c (struct remote_state) <last_pass_packet>:
3755 (last_pass_packet): Remove.
3756 (remote_pass_signals, remote_open_1): Update.
3758 2013-08-14 Tom Tromey <tromey@redhat.com>
3760 * remote.c (struct remote_state) <remote_traceframe_number>:
3762 (remote_traceframe_number): Remove.
3763 (new_remote_state, remote_open_1, set_remote_traceframe)
3764 (remote_trace_find): Update.
3766 2013-08-14 Tom Tromey <tromey@redhat.com>
3768 * remote.c (struct remote_state) <general_thread, continue_thread>:
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.
3775 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3786 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3793 2013-08-14 Tom Tromey <tromey@redhat.com>
3795 * remote.c (remote_protocol_features): Now const.
3797 2013-08-14 Tom Tromey <tromey@redhat.com>
3799 * remote.c (crc32_table, crc32): Remove.
3800 (remote_verify_memory): Use xcrc32.
3802 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3804 * value.h (create_internalvar_type_lazy): Adjust prototype
3807 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3809 * common/format.c (parse_format_string): Don't allow '#' flag for
3810 pointer arguments in format string.
3812 2013-08-13 Pierre Muller <muller@sourceware.org>
3814 * utils.c (init_page_info): Only call tgetnum function
3815 if rl_get_screen_size did not return useful values.
3817 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3819 PR breakpoints/15117
3820 * linespec.c (linespec_parse_basic): Check for convenience
3821 variable or history value while parsing.
3823 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3825 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3827 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3828 different signals between the generic Linux kernel implementation
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.
3834 2013-08-09 Doug Evans <dje@google.com>
3836 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3839 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
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
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.
3881 2013-08-09 Pedro Alves <palves@redhat.com>
3883 * avr-tdep.c (XMALLOC): Delete macro.
3884 * cli/cli-dump.c (XMALLOC): Delete macro.
3886 2013-08-09 Pedro Alves <palves@redhat.com>
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
3895 2013-08-09 Pedro Alves <palves@redhat.com>
3897 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3900 2013-08-09 Pedro Alves <palves@redhat.com>
3902 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3905 2013-08-09 Pedro Alves <palves@redhat.com>
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.
3911 2013-08-09 Yao Qi <yao@codesourcery.com>
3913 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3916 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3918 * gcore.c (create_gcore_bfd): Use tilde_expand.
3920 2013-08-08 Yao Qi <yao@codesourcery.com>
3922 * frame.h (read_frame_local): Declare.
3923 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3925 * stack.c (read_frame_local): New.
3927 2013-08-08 Yao Qi <yao@codesourcery.com>
3929 * mi/mi-cmd-stack.c: Update comments to function
3930 list_args_or_locals.
3932 2013-08-07 Tom Tromey <tromey@redhat.com>
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"
3939 (dwarf2_build_psymtabs_hard): Update.
3940 (scan_partial_symbols): Pass CU's language to
3941 process_psymtab_comp_unit.
3943 2013-08-07 Tom Tromey <tromey@redhat.com>
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>:
3952 2013-08-07 Tom Tromey <tromey@redhat.com>
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.
3959 2013-08-07 Tom Tromey <tromey@redhat.com>
3961 * dwarf2read.c (recursively_compute_inclusions): Add
3962 "immediate_parent" argument. Set symtab's "user" field
3964 (compute_symtab_includes): Update.
3966 2013-08-07 Tom Tromey <tromey@redhat.com>
3968 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3969 when adding label symbols.
3971 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3972 Ulrich Weigand <uweigand@de.ibm.com>
3974 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3975 * configure.host (powerpc64-*-aix*): Likewise.
3977 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3978 Ulrich Weigand <uweigand@de.ibm.com>
3980 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
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.
3988 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3989 Ulrich Weigand <uweigand@de.ibm.com>
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.
4000 2013-08-07 Anton Blanchard <anton@samba.org>
4002 * MAINTAINERS: Add myself to Write After Approval.
4004 2013-08-05 Tom Tromey <tromey@redhat.com>
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.
4019 2013-08-05 Tom Tromey <tromey@redhat.com>
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.
4056 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4059 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
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
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.
4091 2013-08-02 Tom Tromey <tromey@redhat.com>
4094 * breakpoint.c (update_watchpoint, watchpoint_check)
4095 (watch_command_1): Update.
4096 * eval.c (fetch_subexp_value): Add "preserve_errors"
4098 * ppc-linux-nat.c (check_condition): Update.
4099 * value.h (fetch_subexp_value): Update.
4101 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4103 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4106 2013-08-01 Doug Evans <dje@google.com>
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.
4117 * valops.c (value_struct_elt): Add missing call to check_typedef.
4118 (value_find_oload_method_list): Ditto.
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.
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
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
4145 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4147 * cli/cli-script.c (script_from_file): Remove use of
4149 * main.c (captured_main): Remove use of error_pre_print and
4151 * utils.c (error_pre_print, quit_pre_print): Remove.
4152 * utils.h (error_pre_print, quit_pre_print): Likewise.
4154 2013-08-01 Yao Qi <yao@codesourcery.com>
4156 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4158 (mi_cmd_stack_list_variables): Likewise.
4160 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4162 * exceptions.c (deprecated_throw_reason): Remove.
4163 * exceptions.h (deprecated_throw_reason): Remove.
4165 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
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.
4171 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
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.
4180 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4182 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4185 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4186 Yao Qi <yao@codesourcery.com>
4188 * tracepoint.c (trace_dump_command): Select the current frame.
4190 2013-07-30 Doug Evans <dje@google.com>
4192 * dwarf2read.c (process_queue): Add type signature to debug output.
4194 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4196 * value.c (value_fetch_lazy): Mark optimized out values as such
4197 rather than raising an error.
4199 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
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
4205 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
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"
4213 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
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.
4231 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
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.
4238 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4240 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4242 (attr_form_is_ref): Moved below attr_form_is_constant.
4244 2013-07-29 Doug Evans <dje@google.com>
4246 * main.c (captured_command_loop): Tweak comment.
4248 * target.c (target_async_permitted_1): Fix comment.
4250 * symtab.c (iterate_over_some_symtabs): Add comment.
4252 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4254 2013-07-27 Yao Qi <yao@codesourcery.com>
4256 * NEWS: Mention that GDBserver now supports hardware
4257 watchpoints on the MIPS GNU/Linux target.
4259 2013-07-27 Yao Qi <yao@codesourcery.com>
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.
4289 2013-07-27 Yao Qi <yao@codesourcery.com>
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.
4325 2013-07-27 Yao Qi <yao@codesourcery.com>
4327 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
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.
4338 2013-07-27 Yao Qi <yao@codesourcery.com>
4340 * breakpoint.h: Include break-common.h.
4341 (enum target_hw_bp_type): Move to ...
4342 * common/break-common.h: ... here. New.
4344 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4346 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4347 process group regardless of having tty on stdin.
4349 2013-07-25 Doug Evans <dje@google.com>
4351 * linux-fork.h (detach_fork): Delete.
4353 2013-07-25 Tom Tromey <tromey@redhat.com>
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
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.
4368 2013-07-25 Tom Tromey <tromey@redhat.com>
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.
4377 2013-07-25 Mark Kettenis <kettenis@gnu.org>
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.
4388 2013-07-25 Mark Kettenis <kettenis@gnu.org>
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.
4394 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
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.
4400 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
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
4407 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4409 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4412 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4414 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4415 interface can evaluate arguments. Fallback to the old mode if it
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
4421 * probe.c (can_evaluate_probe_arguments): New function.
4422 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
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
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
4433 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4434 New function pointer.
4436 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
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.
4452 2013-07-24 Doug Evans <dje@google.com>
4454 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4457 2013-07-23 Yao Qi <yao@codesourcery.com>
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):
4467 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4470 2013-07-23 Tom Tromey <tromey@redhat.com>
4472 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4475 2013-07-22 Doug Evans <dje@google.com>
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.
4486 2013-07-22 Tom Tromey <tromey@redhat.com>
4488 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4490 2013-07-22 Tom Tromey <tromey@redhat.com>
4492 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4493 Simplify cleanup handling.
4495 2013-07-22 Tom Tromey <tromey@redhat.com>
4497 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4498 on all return paths.
4500 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
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).
4506 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4508 * top.c (print_gdb_version): Add help, apropos description and
4509 url to online documentation.
4511 2013-07-19 Hui Zhu <hui@codesourcery.com>
4514 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4516 2013-07-19 Yao Qi <yao@codesourcery.com>
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
4522 * valops.c (read_value_memory): Call
4523 traceframe_available_memory unconditionally.
4525 2013-07-18 Yao Qi <yao@codesourcery.com>
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'.
4532 2013-07-17 Doug Evans <dje@google.com>
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.
4544 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4545 of all *list variables.
4547 * gdbcmd.h (togglelist): Delete.
4548 * cli/cli-cmds.c (togglelist): Delete.
4549 (init_cmd_lists): Update.
4550 * cli/cli-cmds.h (togglelist): Delete.
4552 2013-07-17 Tom Tromey <tromey@redhat.com>
4554 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4557 2013-07-16 Doug Evans <dje@google.com>
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.
4565 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4567 * common/format.c (parse_format_string): Add checks for NULL
4568 character before calling strchr.
4570 2013-07-16 Doug Evans <dje@google.com>
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.
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.
4593 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
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.
4612 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4614 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4615 numbers with enum values.
4617 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4620 * thread.c (thread_apply_all_command): Check for valid threads
4622 (thread_array_cleanup): New struct.
4623 (set_thread_refcount): New function.
4625 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4627 * infcmd.c (default_print_one_register_info): Reuse function
4630 2013-07-10 Tom Tromey <tromey@redhat.com>
4632 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4633 (ada-exp.o): New target.
4635 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
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
4642 2013-07-09 Pedro Alves <palves@redhat.com>
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.
4650 2013-07-09 Doug Evans <dje@google.com>
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
4669 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
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.
4675 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4676 Pedro Alves <palves@redhat.com>
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.
4682 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4684 * top.c (print_gdb_configuration): Explain in output of
4685 --configuration what does "relocatable" mean.
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.
4691 2013-07-06 Yao Qi <yao@codesourcery.com>
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'.
4703 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
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.
4709 2013-07-04 Pedro Alves <palves@redhat.com>
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.
4717 2013-07-04 Pedro Alves <palves@redhat.com>
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
4723 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
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.
4733 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
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.
4740 2013-07-04 Yao Qi <yao@codesourcery.com>
4743 2013-06-27 Yao Qi <yao@codesourcery.com>
4745 * common/create-version.sh: Update comments. Handle the case
4746 that TARGET_ALIAS is empty.
4748 2013-07-03 Pedro Alves <palves@redhat.com>
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.
4760 2013-07-02 Tom Tromey <tromey@redhat.com>
4762 * contrib/ari/update-web-ari.sh: Update for version.in change.
4764 2013-07-02 Tom Tromey <tromey@redhat.com>
4766 * common/ptid.h: Comment fixes.
4768 2013-07-01 Tom Tromey <tromey@redhat.com>
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.
4774 2013-07-01 Tom Tromey <tromey@redhat.com>
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;
4782 2013-07-01 Tom Tromey <tromey@redhat.com>
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",
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",
4793 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4795 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4797 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4799 (v850_dbtrap_breakpoint_from_pc): Likewise.
4800 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4803 2013-07-01 Tom Tromey <tromey@redhat.com>
4805 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4806 * configure: Rebuild.
4808 2013-07-01 Pedro Alves <palves@redhat.com>
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
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.
4841 2013-07-01 Pedro Alves <palves@redhat.com>
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.
4855 2013-07-01 Pedro Alves <palves@redhat.com>
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
4863 * top.h (gdbinit): Make const.
4864 * configure, config.in: Regenerate.
4866 2013-07-01 Pedro Alves <palves@redhat.com>
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.
4879 2013-07-01 Pedro Alves <palves@redhat.com>
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
4886 2013-07-01 Pedro Alves <palves@redhat.com>
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.
4908 2013-07-01 Pedro Alves <palves@redhat.com>
4910 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4911 defined instead of checking HAVE_UNISTD_H.
4913 2013-07-01 Pedro Alves <palves@redhat.com>
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.
4925 2013-07-01 Pedro Alves <palves@redhat.com>
4927 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4929 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4932 * remote.c (async_remote_interrupt_twice): Make it static.
4933 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4935 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
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.
4941 2013-06-28 Tom Tromey <tromey@redhat.com>
4943 * Makefile.in (version.c): Use version.in, not
4945 * common/create-version.sh: Likewise.
4946 * common/version.in: Move...
4947 * version.in: ...here.
4949 2013-06-28 Pedro Alves <palves@redhat.com>
4951 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4953 * utils.h (pagination_enabled): Declare.
4955 2013-06-28 Pedro Alves <palves@redhat.com>
4957 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4958 Move higher up in file.
4960 2013-06-28 Tom Tromey <tromey@redhat.com>
4962 * tracepoint.c (deprecated_readline_begin_hook)
4963 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4966 2013-06-28 Pedro Alves <palves@redhat.com>
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.
4974 2013-06-27 Tom Tromey <tromey@redhat.com>
4976 * target.c (find_run_target): Remove.
4977 * target.h (find_run_target): Remove.
4979 2013-06-27 Tom Tromey <tromey@redhat.com>
4981 * corelow.c (core_gdbarch): Now static.
4983 2013-06-27 Tom Tromey <tromey@redhat.com>
4985 * target.c (target_struct_index): Remove.
4987 2013-06-27 Pedro Alves <palves@redhat.com>
4989 * infrun.c: Remove comment describing the 'stepping over runtime
4990 loader dynamic symbol resolution code' mechanism; moved to
4993 2013-06-27 Pedro Alves <palves@redhat.com>
4995 * exceptions.c (catch_command_errors): Remove spurious space.
4996 * exceptions.h (catch_command_errors): Second parameter is "arg",
4999 2013-06-27 Yao Qi <yao@codesourcery.com>
5001 * common/create-version.sh: Update comments. Handle the case
5002 that TARGET_ALIAS is empty.
5004 2013-06-26 Pedro Alves <palves@redhat.com>
5006 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5009 2013-06-26 Pedro Alves <palves@redhat.com>
5011 * infrun.c: Update comments on stepping over runtime loader
5012 dynamic symbol resolution code.
5014 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5016 * ax-gdb.h (union exp_element): Forward declare.
5017 * parser-defs.h: Include expression.h.
5019 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5021 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5023 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5025 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5027 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
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.
5034 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5036 * mips-tdep.c (mips_next_pc): Fix a typo.
5038 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5040 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5042 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5043 Yao Qi <yao@codesourcery.com>
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.
5072 * NEWS: Mention new MI command -trace-frame-collected.
5074 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5075 Yao Qi <yao@codesourcery.com>
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
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.
5094 * NEWS: Mention the change in GDB and GDBserver.
5096 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5097 Yao Qi <yao@codesourcery.com>
5099 * tracepoint.c (trace_dump_command): Move code to ...
5100 (get_traceframe_location): ... here. New.
5102 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5103 Yao Qi <yao@codesourcery.com>
5105 * tracepoint.c (trace_dump_command): GDB emits an error
5106 instead of a warning when a traceframe is not selected.
5108 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5109 Yao Qi <yao@codesourcery.com>
5111 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5112 (clear_collection_list): Free fields 'aexpre_list' and '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'.
5122 2013-06-25 Tom Tromey <tromey@redhat.com>
5124 * common/create-version.sh (date): Use "$", not "$$" in sed
5127 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5129 * NEWS (New targets): Add entry for TI MSP430.
5131 2013-06-25 Yao Qi <yao@codesourcery.com>
5133 * remote.c (remote_start_remote): Move code to upload tsv
5136 2013-06-25 Yao Qi <yao@codesourcery.com>
5137 Hui Zhu <hui@codesourcery.com>
5138 Pedro Alves <palves@redhat.com>
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.
5152 2013-06-24 Kevin Buettner <kevinb@redhat.com>
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.
5159 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5161 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5162 microMIPS synthetic symbols.
5164 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
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
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
5195 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5196 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
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.
5212 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5214 * common/create-version.sh: Fix expansion of $host_alias
5215 and $target_alias in generation of HOST_NAME and TARGET_NAME
5218 2013-06-24 Tom Tromey <tromey@redhat.com>
5220 * common/create-version.sh: New file.
5221 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
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.
5229 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5231 * gdb/gnulib/Makefile.in: Update date in copyright header.
5232 * gdb/gnulib/configure.ac: Ditto.
5233 * gdb/gnulib/update-gnulib.sh: Ditto.
5235 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5237 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5238 "gdb/gnulib/import".
5240 2013-06-21 Will Newton <will.newton@linaro.org>
5242 * doublest.c (ldfrexp): Remove function.
5243 (convert_doublest_to_floatformat): Call frexpl instead of
5246 2013-06-21 Will Newton <will.newton@linaro.org>
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.
5280 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
5286 2013-06-20 Doug Evans <dje@google.com>
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.
5294 * dwarf2read.c (struct dwp_file): Fix comment.
5295 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5297 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5300 2013-06-20 Yao Qi <yao@codesourcery.com>
5302 * breakpoint.c (create_breakpoint): Fix code indentation.
5304 2013-06-20 Yao Qi <yao@codesourcery.com>
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.
5311 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5312 Yao Qi <yao@codesourcery.com>
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.
5321 2013-06-19 Mike Frysinger <vapier@gentoo.org>
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
5331 (cpu_supports_btrace): Likewise.
5332 * go32-nat.c: Include i386-cpuid.h.
5333 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5335 2013-06-19 Doug Evans <dje@google.com>
5337 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5338 (get_section_index): Ditto.
5340 2013-06-19 Tom Tromey <tromey@redhat.com>
5342 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5345 2013-06-18 Doug Evans <dje@google.com>
5347 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5349 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5350 Move test of cu_index closer to use. Print complaint if cu_index
5353 2013-06-18 Joel Brobecker <brobecker@adacore.com>
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.
5364 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5366 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5367 DWARF2_PER_OBJFILE by uses of DATA instead.
5369 2013-06-18 Tom Tromey <tromey@redhat.com>
5371 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
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
5379 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5381 (bpstat_explains_signal): Likewise.
5382 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5384 2013-06-18 Tom Tromey <tromey@redhat.com>
5386 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5388 2013-06-18 Tom Tromey <tromey@redhat.com>
5390 * python/python.c (finish_python_initialization): Decref
5391 'pythondir' on failure path as well.
5393 2013-06-18 Tom Tromey <tromey@redhat.com>
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.
5401 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5403 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5405 2013-06-17 Pierre Muller <muller@sourceware.org>
5407 * corelow.c (core_open): Print GDB signal name instead of target
5410 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5412 * .gitignore: Add /gcore.
5414 2013-06-13 Doug Evans <dje@google.com>
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 '/'.
5419 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5421 * stack.c (backtrace_command_1): Fix indentation.
5423 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5425 * window-nat.c (thread_rec): Add missing empty line after
5426 local variable declaration.
5428 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5430 * windows-nat.c (thread_rec): Revert format used to print
5431 error code returned by SuspendThread from %d back to %u.
5433 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5435 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5437 (get_windows_debug_event): Likewise, for all debug traces.
5439 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5441 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5444 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5445 Yao Qi <yao@codesourcery.com>
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.
5455 2013-06-07 Pedro Alves <palves@redhat.com>
5457 * darwin-nat.c: Fix formating in copyright header.
5458 * darwin-nat.h: Likewise.
5459 * gnu-nat.c: Likewise.
5460 * machoread.c: Likewise.
5462 2013-06-07 Pedro Alves <palves@redhat.com>
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.
5470 2013-06-07 Will Newton <will.newton@linaro.org>
5472 * printcmd.c (build_address_symbolic): Call
5473 gdbarch_addr_bits_remove for text minimal symbols.
5475 2013-06-07 Will Newton <will.newton@linaro.org>
5477 * MAINTAINERS: Add myself to Write After Approval.
5479 2013-06-07 Yao Qi <yao@codesourcery.com>
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.
5491 2013-06-06 Doug Evans <dje@google.com>
5493 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5494 and fix header docs.
5496 2013-06-05 Doug Evans <dje@google.com>
5497 Keith Seitz <keiths@redhat.com>
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.
5507 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5509 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5510 minimal symbols pointing to function descriptors.
5512 2013-06-05 Tom Tromey <tromey@redhat.com>
5514 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5516 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5517 Pedro Alves <palves@redhat.com>
5519 * remote.c (remote_wait_as): Restore signal handler before returning
5520 when GDB gets a notification.
5522 2013-06-04 Gary Benson <gbenson@redhat.com>
5525 * breakpoint.h (handle_solib_event): Moved function declaration
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
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
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
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.
5576 2013-06-04 Gary Benson <gbenson@redhat.com>
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.
5592 2013-06-04 Gary Benson <gbenson@redhat.com>
5596 2013-06-04 Gary Benson <gbenson@redhat.com>
5598 * objfiles.h (inhibit_section_map_updates): New function
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.
5615 2013-06-04 Gary Benson <gbenson@redhat.com>
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.
5623 2013-06-04 Alan Modra <amodra@gmail.com>
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.
5641 2013-06-04 Yao Qi <yao@codesourcery.com>
5643 * solib.c (solib_find): Don't need dir separator if path has
5646 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5648 Revert (indirectly causes a SIGSEGV):
5649 * machoread.c (macho_symfile_read): Assign first cleanup to
5652 2013-06-03 Yao Qi <yao@codesourcery.com>
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.
5669 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5670 Yao Qi <yao@codesourcery.com>
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.
5677 2013-05-30 Tom Tromey <tromey@redhat.com>
5679 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5681 2013-05-30 Tom Tromey <tromey@redhat.com>
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
5692 2013-05-30 Tom Tromey <tromey@redhat.com>
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.
5699 2013-05-30 Tom Tromey <tromey@redhat.com>
5701 * infrun.c (adjust_pc_after_break): Introduce an outer null
5704 2013-05-30 Tom Tromey <tromey@redhat.com>
5706 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5708 2013-05-30 Tom Tromey <tromey@redhat.com>
5710 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5711 for 'old_chain'. Do not check 'head' before processing
5714 2013-05-30 Tom Tromey <tromey@redhat.com>
5716 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5719 2013-05-30 Tom Tromey <tromey@redhat.com>
5721 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5722 inner scope. Unconditionally call do_cleanups.
5724 2013-05-30 Tom Tromey <tromey@redhat.com>
5726 * source.c (find_and_open_source): Call do_cleanups.
5728 2013-05-30 Tom Tromey <tromey@redhat.com>
5730 * linux-thread-db.c (thread_db_load_search): Unconditionally
5733 2013-05-30 Tom Tromey <tromey@redhat.com>
5735 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5736 for 'cleanup'; instead use a later one.
5738 2013-05-30 Tom Tromey <tromey@redhat.com>
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.
5745 2013-05-30 Tom Tromey <tromey@redhat.com>
5747 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5748 do_cleanups on all return paths.
5750 2013-05-30 Tom Tromey <tromey@redhat.com>
5752 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5754 2013-05-30 Tom Tromey <tromey@redhat.com>
5756 * stabsread.c (read_struct_type): Call do_cleanups along
5759 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5761 * mips-linux-tdep.c: Adjust formatting throughout.
5763 2013-05-30 Tom Tromey <tromey@redhat.com>
5765 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5766 along all return paths.
5768 2013-05-30 Tom Tromey <tromey@redhat.com>
5770 * symfile.c (find_separate_debug_file): Call do_cleanups
5771 along all return paths.
5773 2013-05-30 Tom Tromey <tromey@redhat.com>
5775 * symtab.c (search_symbols): Introduce a null cleanup for
5778 2013-05-30 Tom Tromey <tromey@redhat.com>
5780 * python/py-value.c (valpy_binop): Call do_cleanups before
5783 2013-05-30 Tom Tromey <tromey@redhat.com>
5785 * python/py-prettyprint.c (print_children): Remove extra
5788 2013-05-30 Tom Tromey <tromey@redhat.com>
5790 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5793 2013-05-30 Tom Tromey <tromey@redhat.com>
5795 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5796 along all return paths.
5798 2013-05-30 Tom Tromey <tromey@redhat.com>
5800 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5803 2013-05-30 Tom Tromey <tromey@redhat.com>
5805 * varobj.c (c_value_of_root): Call do_cleanups along all
5808 2013-05-30 Tom Tromey <tromey@redhat.com>
5810 * tracepoint.c (trace_dump_command): Unconditionally call
5813 2013-05-30 Tom Tromey <tromey@redhat.com>
5815 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5816 do_cleanups earlier.
5818 2013-05-30 Tom Tromey <tromey@redhat.com>
5820 * machoread.c (macho_symfile_read): Assign first cleanup to
5823 2013-05-30 Tom Tromey <tromey@redhat.com>
5825 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5827 2013-05-30 Tom Tromey <tromey@redhat.com>
5829 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5831 2013-05-30 Tom Tromey <tromey@redhat.com>
5833 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5834 call discard_cleanups.
5835 (inf_ptrace_attach): Likewise.
5837 2013-05-30 Tom Tromey <tromey@redhat.com>
5839 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5841 (mips_initialize): Likewise.
5842 (common_open): Call do_cleanups.
5844 2013-05-30 Tom Tromey <tromey@redhat.com>
5846 * utils.c (internal_vproblem): Call do_cleanups.
5848 2013-05-30 Tom Tromey <tromey@redhat.com>
5850 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5852 2013-05-30 Tom Tromey <tromey@redhat.com>
5854 * cli/cli-script.c (setup_user_args): Don't return after error.
5856 2013-05-30 Tom Tromey <tromey@redhat.com>
5858 * somread.c (som_symtab_read): Call do_cleanups.
5860 2013-05-30 Tom Tromey <tromey@redhat.com>
5862 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5864 2013-05-30 Tom Tromey <tromey@redhat.com>
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):
5872 * symfile.c (load_command): Call do_cleanups.
5874 2013-05-30 Tom Tromey <tromey@redhat.com>
5876 * contrib/cleanup_check.py: New file.
5877 * contrib/gcc-with-excheck: Add option parsing.
5879 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5881 * windows-nat.c (windows_delete_thread): Add missing space
5884 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5886 * inferior.c (top level): Include tilde.h.
5887 (add_inferior_command): Call tilde_expand on the value of 'exec'
5890 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5891 Yao Qi <yao@codesourcery.com>
5893 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5895 (encode_actions): Likewise.
5896 * remote.c (remote_download_tracepoint): Caller update.
5897 * tracepoint.h (encode_actions): Update declaration.
5899 2013-05-30 Pedro Alves <palves@redhat.com>
5901 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5904 2013-05-30 Yao Qi <yao@codesourcery.com>
5906 * remote.c (remote_check_symbols): Remove unused parameter
5909 (remote_start_remote, remote_new_objfile): Caller update.
5911 2013-05-30 Yao Qi <yao@codesourcery.com>
5913 * mi/mi-cmds.c (mi_cmds): Define MI command
5914 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5917 2013-05-29 Pedro Alves <palves@redhat.com>
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
5926 2013-05-29 Pedro Alves <palves@redhat.com>
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.
5936 2013-05-28 Yao Qi <yao@codesourcery.com>
5938 * tracepoint.c (stringify_collection_list): Remove parameter
5940 (encode_actions): Caller update. Remove local variables.
5942 2013-05-24 Yao Qi <yao@codesourcery.com>
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
5952 2013-05-23 Doug Evans <dje@google.com>
5954 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5956 2013-05-23 Pedro Alves <palves@redhat.com>
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.
5965 2013-05-23 Pedro Alves <palves@redhat.com>
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.
5971 2013-05-23 Pedro Alves <palves@redhat.com>
5973 * NEWS: Mention GDBserver range stepping support.
5975 2013-05-23 Yao Qi <yao@codesourcery.com>
5976 Pedro Alves <palves@redhat.com>
5978 * gdbthread.h (struct thread_control_state) <may_range_step>: New
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
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.
6001 2013-05-23 Yao Qi <yao@codesourcery.com>
6002 Pedro Alves <palves@redhat.com>
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.
6009 2013-05-23 Yao Qi <yao@codesourcery.com>
6010 Pedro Alves <palves@redhat.com>
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.
6016 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6018 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6021 2013-05-22 Keith Seitz <keiths@redhat.com>
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
6034 * stack.h (find_frame_funname): Remove "const" from
6035 'funname' parameter.
6037 2013-05-22 Tom Tromey <tromey@redhat.com>
6040 * c-valprint.c (c_value_print): Use value_addr for
6041 references. Convert back to reference type with value_ref.
6043 2013-05-22 Eli Zaretskii <eliz@gnu.org>
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
6050 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
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
6060 (ui_out_destroy): Add vector cleanup.
6062 2013-05-22 Pedro Alves <palves@redhat.com>
6064 * python/python-internal.h (gdb_Py_DECREF): Tag with
6065 "ARI: editCase function".
6067 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6069 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6071 2013-05-21 Pedro Alves <palves@redhat.com>
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
6078 2013-05-21 Pedro Alves <palves@redhat.com>
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.
6085 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6087 * breakpoints.c (detach_breakpoints): Do not
6088 detach breakpoints locations with loc_type bp_loc_other.
6090 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6092 Workaround Python 2.6.
6093 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6096 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
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
6106 * solib.h (set_solib_ops): Make the new_ops parameter const.
6108 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6110 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
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.
6125 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6127 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6129 2013-05-21 Hui Zhu <hui@codesourcery.com>
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.
6141 2013-05-20 Tom Tromey <tromey@redhat.com>
6143 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6145 2013-05-20 Tom Tromey <tromey@redhat.com>
6147 * python/py-value.c (valpy_get_dynamic_type): Simplify
6148 dynamic_type assignment. Use Py_XINCREF.
6150 2013-05-20 Tom Tromey <tromey@redhat.com>
6152 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6154 2013-05-20 Tom Tromey <tromey@redhat.com>
6156 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6157 (gdbpy_selected_frame): Move object-construction code
6160 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
6207 2013-05-20 Tom Tromey <tromey@redhat.com>
6209 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6210 * python/py-param.c (get_set_value, get_show_value): Use
6212 * python/python.c (start_type_printers, apply_type_printers):
6213 Use explicit decrefs.
6215 2013-05-20 Tom Tromey <tromey@redhat.com>
6217 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6220 2013-05-20 Tom Tromey <tromey@redhat.com>
6222 * python/python.c (gdbpy_run_events): Decref the result
6223 of PyObject_CallObject.
6225 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
6231 2013-05-20 Tom Tromey <tromey@redhat.com>
6233 * python/py-param.c (compute_enum_values): Decref 'item'.
6235 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
6258 2013-05-20 Tom Tromey <tromey@redhat.com>
6260 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6262 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6263 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6265 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6267 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6269 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
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'.
6277 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6278 Return 'int'. Check errors.
6279 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6281 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6283 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6285 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6287 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6289 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6291 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6293 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6295 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6297 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6299 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6301 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6303 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
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.
6328 2013-05-20 Tom Tromey <tromey@redhat.com>
6330 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6331 Decref the reslut of PyObject_CallMethod.
6333 2013-05-20 Tom Tromey <tromey@redhat.com>
6335 * python/py-event.c (gdbpy_initialize_event_generic): Return
6336 early if PyType_Ready fails.
6338 2013-05-20 Tom Tromey <tromey@redhat.com>
6340 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6341 as 'default' in the switch.
6343 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
6353 2013-05-20 Tom Tromey <tromey@redhat.com>
6355 * python/py-event.c (evpy_emit_event): Decref the
6356 result of PyObject_CallFunctionObjArgs.
6358 2013-05-20 Tom Tromey <tromey@redhat.com>
6360 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6363 2013-05-20 Tom Tromey <tromey@redhat.com>
6365 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6367 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
6376 2013-05-20 Tom Tromey <tromey@redhat.com>
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
6384 (GDB_PY_HANDLE_EXCEPTION): Update.
6385 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6387 2013-05-20 Tom Tromey <tromey@redhat.com>
6389 * python/python-internal.h (events_object_type): Remove.
6391 2013-05-20 Tom Tromey <tromey@redhat.com>
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):
6398 2013-05-20 Tom Tromey <tromey@redhat.com>
6400 * py-evtregistry.c (create_event_object): Decref
6401 eventregistry_object if PyList_New fails.
6403 2013-05-20 Tom Tromey <tromey@redhat.com>
6405 * py-cmd.c (gdbpy_string_to_argv): Check result of
6408 2013-05-20 Tom Tromey <tromey@redhat.com>
6410 * python/python.c (before_prompt_hook): Add cleanup to
6413 2013-05-20 Tom Tromey <tromey@redhat.com>
6415 * python/py-function.c (fnpy_init): Decref result of
6416 PyObject_GetAttrString.
6418 2013-05-20 Tom Tromey <tromey@redhat.com>
6420 * python/py-threadevent.c (get_event_thread): Use
6421 CPYCHECKER_RETURNS_BORROWED_REF.
6422 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6424 (pspace_to_pspace_object, objfile_to_objfile_object)
6425 (find_thread_object): Use it.
6427 2013-05-20 Tom Tromey <tromey@redhat.com>
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
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.
6477 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6479 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6480 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6482 2013-05-20 Doug Evans <dje@google.com>
6484 When reading CU, stay in DWO. Be more tolerent of bad debug info.
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.
6510 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6512 * windows-nat.c (handle_unload_dll): Add missing empty line.
6514 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6516 * dwarf2read.c (prototyped_function_p): New function.
6517 (read_subroutine_type): Use it.
6519 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6521 * rs6000-aix-tdep.c: De-indent some example code provided
6524 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
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
6530 2013-05-17 Doug Evans <dje@google.com>
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
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"
6545 2013-05-17 Tom Tromey <tromey@redhat.com>
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.
6552 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6554 * acinclude.m4: Add check for dlopen in libdl.
6555 * configure.ac: Ditto.
6556 * configure: Regenerate.
6558 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
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
6565 (frame_stash_add): Convert function to add an entry to a hash
6567 (frame_stash_find): Convert function to search the hash table.
6568 (frame_stash_invalidate): Convert function to empty the hash
6570 (get_frame_id): Only add to stash if a frame_id is created.
6571 (_initialize_frame): Call frame_stash_create.
6573 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6575 * configure.ac: Ensure MIG is available when building for GNU Hurd
6577 * configure: Regenerate.
6579 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6581 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6583 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6585 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6586 all cleanups are done before returning from this function.
6588 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6590 * utils.h: #include "exceptions.h".
6591 (enum errors): Remove partial declaration.
6593 2013-05-15 Joel Brobecker <brobecker@adacore.com>
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
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
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):
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.
6625 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
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".
6635 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6637 * linespec.c (convert_linespec_to_sals): New comment for
6638 SOURCE_FILENAME assignment.
6640 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6642 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6645 2013-05-14 Tom Tromey <tromey@redhat.com>
6647 * eval.c (parse_and_eval_long): Make 'exp' const.
6648 * value.h (parse_and_eval_long): Update.
6650 2013-05-14 Tom Tromey <tromey@redhat.com>
6652 * ui-file.c (gdb_fopen): Make arguments const.
6653 * ui-file.h (gdb_fopen): Make arguments const.
6655 2013-05-14 Tom Tromey <tromey@redhat.com>
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.
6661 2013-05-14 Tom Tromey <tromey@redhat.com>
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
6671 2013-05-13 Tom Tromey <tromey@redhat.com>
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'
6679 (target_save_record): Likewise.
6681 2013-05-13 Tom Tromey <tromey@redhat.com>
6684 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6685 ranges section has been read.
6687 2013-05-13 Tom Tromey <tromey@redhat.com>
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.
6696 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6698 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6699 floating point registers to register type before storing
6701 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6704 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6705 Tom Tromey <tromey@redhat.com>
6707 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6709 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
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.
6716 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6717 Tom Tromey <tromey@redhat.com>
6720 * configure: Rebuild.
6721 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6724 2013-05-10 Pedro Alves <palves@redhat.com>
6726 * remote.c (_initialize_remote): Fix spelling of
6727 qXfer:traceframe-info:read packet in packet config command.
6729 2013-05-10 David Taylor <dtaylor@emc.com>
6733 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6734 "QTro" at start of packet.
6736 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6738 * solib-aix.c (solib_aix_relocate_section_addresses):
6739 For the .bss section action, apply the same offset as
6742 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6744 * solib-aix.c (solib_aix_relocate_section_addresses):
6745 Remove FIXME comment.
6747 2013-05-10 Joel Brobecker <brobecker@adacore.com>
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.
6756 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6758 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
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
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
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
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
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.
6805 2013-05-09 Doug Evans <dje@google.com>
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.
6815 * symfile.c (decrement_reading_symtab): Add assert.
6816 (increment_reading_symtab): Ditto.
6818 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6820 * source.c (forward_search_command): Replace call to getc
6822 (reverse_search_command): Likewise.
6824 2013-05-08 Doug Evans <dje@google.com>
6826 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6829 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6831 * sol-thread.c (info_cb): Factorize the code a little.
6833 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6835 * sol-thread.c (info_cb): Rework the output of the "maintenance
6836 info sol-threads" command a bit.
6838 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6840 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6841 Replace ti.ti_startfunc by ti.ti_pc.
6843 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6845 * solib-aix.c (solib_aix_free_library_list): New function
6846 for the case where HAVE_LIBEXPAT is not defined.
6848 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
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.
6855 2013-05-07 Pierre Muller <muller@sourceware.org>
6857 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6858 instead of <sys/wait.h>.
6860 2013-05-07 Pierre Muller <muller@sourceware.org>
6862 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6863 trailing new line from warning message.
6865 2013-05-07 Pierre Muller <muller@sourceware.org>
6867 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6868 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6870 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6872 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6873 error message (ARI fix).
6875 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6877 * features/library-list-aix.dtd: Replace library-list by
6879 * rs6000-nat.c: Replace library-list by library-list-aix
6881 * solib-aix.c: Likewise.
6883 2013-05-07 Joel Brobecker <brobecker@adacore.com>
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.
6891 2013-05-07 Yao Qi <yao@codesourcery.com>
6893 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6894 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6896 2013-05-07 Yao Qi <yao@codesourcery.com>
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.
6904 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6906 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6907 debug state prior to replicating existing hardware watchpoints or
6910 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6912 * gcore.c (gcore_create_callback): Ignore sections with
6913 separate_debug_objfile_backlink != NULL.
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>
6920 Based on the nios2-elf port from Altera Corporation.
6922 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
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
6941 2013-05-06 Doug Evans <dje@google.com>
6943 * symfile.c: Whitespace cleanup.
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.
6951 2013-05-06 Tom Tromey <tromey@redhat.com>
6953 * ada-lang.c (ada_value_primitive_packed_val): Don't
6955 * value.c (set_value_parent): Incref the new parent and decref
6957 (value_copy, value_primitive_field): Use set_value_parent.
6959 2013-05-06 Tom Tromey <tromey@redhat.com>
6961 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6962 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6964 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6965 * dwarf2read.c (write_constant_as_bytes)
6966 (dwarf2_fetch_constant_bytes): New functions.
6968 2013-05-06 Tom Tromey <tromey@redhat.com>
6970 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6972 (dwarf2_const_value_attr): Update.
6974 2013-05-06 Tom Tromey <tromey@redhat.com>
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.
6981 2013-05-06 Tom Tromey <tromey@redhat.com>
6983 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6986 2013-05-06 Doug Evans <dje@google.com>
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
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
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.
7014 * symfile.c (syms_from_objfile_1): Use correct section count when
7015 objfile->sf == NULL.
7017 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7019 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7021 2013-05-06 Doug Evans <dje@google.com>
7023 * psympriv.h (struct partial_symtab): Augment comment for member
7026 2013-05-06 Joel Brobecker <brobecker@adacore.com>
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
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
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.
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
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.
7092 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7094 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7095 to target_write_memory and target_read_memory.
7097 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7099 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7100 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7102 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7104 * darwin-nat.c: Replace all "%x" instances in format strings
7105 into "0x%x" throughout.
7107 2013-05-06 Joel Brobecker <brobecker@adacore.com>
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.
7118 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7120 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7122 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7124 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7126 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
7133 2013-05-04 Eli Zaretskii <eliz@gnu.org>
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.
7142 2013-05-03 Kevin Buettner <kevinb@redhat.com>
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
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.
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.
7170 2013-05-03 Doug Evans <dje@google.com>
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.
7179 2013-05-03 Kevin Buettner <kevinb@redhat.com>
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().
7190 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7192 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7193 ignore SIGINT and SIGTRAP in case these internal signals are
7196 2013-05-01 Joel Brobecker <brobecker@adacore.com>
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 *".
7204 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7206 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7207 of &info->load_map from "char *" to "gdb_byte *".
7209 2013-05-01 Joel Brobecker <brobecker@adacore.com>
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.
7215 2013-04-30 Doug Evans <dje@google.com>
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.
7222 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7223 calling init_cutu_and_read_dies.
7225 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7227 * target-descriptions.c (maint_print_c_tdesc_cmd):
7228 Add case to parse structures as register types and
7231 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7233 * MAINTAINERS (Write After Approval): Add myself to the list.
7235 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7237 * sol-thread.c (rw_common): Change type of parameter "buf"
7239 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7240 rw_common to "gdb_byte *" instead of "char *".
7242 2013-04-30 Joel Brobecker <brobecker@adacore.com>
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.
7249 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7251 * i386gnu-nat.c (CREG_OFFSET): New macro.
7252 (creg_offset): New array.
7253 (CREG_ADDR): Use creg_offset instead of reg_offset.
7255 2013-04-30 Joel Brobecker <brobecker@adacore.com>
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.
7261 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7263 * common/filestuff.c: Replace #include <dirent.h> by
7264 #include "gdb_dirent.h".
7266 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7268 * common/filestuff.c: Replace #include <sys/stat.h> by
7269 #include "gdb_stat.h".
7271 2013-04-29 Pierre Muller <muller@sourceware.org>
7273 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7274 editCase function rule.
7275 (get_DW_AT_signature_type): Likewise.
7277 2013-04-29 Joel Brobecker <brobecker@adacore.com>
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.
7283 2013-04-29 Pierre Muller <muller@sourceware.org>
7285 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7287 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7289 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7291 2013-04-28 Yao Qi <yao@codesourcery.com>
7293 * solib-dsbt.c (fetch_loadmap): Re-indent.
7294 (displacement_from_map, enable_break2): Likewise.
7295 (dsbt_relocate_section_addresses): Likewise.
7297 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7301 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7304 * dwarf2read.c (process_full_comp_unit): Always create a static
7307 2013-04-25 Hui Zhu <hui@codesourcery.com>
7309 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7310 to loc->cmd_bytecode.
7312 2013-04-24 Doug Evans <dje@google.com>
7314 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7316 2013-04-22 Keith Seitz <keiths@redhat.com>
7318 * tracepoint.c (trace_save): Call the writer's start method.
7320 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7323 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7326 2013-04-23 Tom Tromey <tromey@redhat.com>
7328 * common/filestuff.c: Check USE_WIN32API before including
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
7338 2013-04-23 Hui Zhu <hui@codesourcery.com>
7341 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7343 2013-04-23 Hui Zhu <hui@codesourcery.com>
7346 * breakpoint.c (dprintf_print_recreate): New.
7347 (save_breakpoints): Let it not save dprintf commands.
7348 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7350 2013-04-22 Tom Tromey <tromey@redhat.com>
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
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
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
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
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
7384 (linux_async_pipe): Use gdb_pipe_cloexec.
7385 * remote-fileio.c (remote_fileio_func_open): Use
7387 * remote.c (remote_file_put, remote_file_get): Use
7389 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
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
7401 * main.c (captured_main): Call notice_open_fds.
7403 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
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
7410 2013-04-22 Yao Qi <yao@codesourcery.com>
7412 * infrun.c: Fix typo in comment.
7414 2013-04-22 Andrew Haley <aph@redhat.com>
7416 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7419 2013-04-20 Yao Qi <yao@codesourcery.com>
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 *'.
7425 2013-04-19 Pedro Alves <palves@redhat.com>
7427 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7429 * configure: Regenerate.
7431 2013-04-19 Pedro Alves <palves@redhat.com>
7433 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7436 2013-04-19 Pedro Alves <palves@redhat.com>
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
7446 2013-04-19 Pedro Alves <palves@redhat.com>
7448 * record.c (validate_history_size): Make parameter 'setting'
7451 2013-04-19 Pedro Alves <palves@redhat.com>
7453 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7456 2013-04-19 Pedro Alves <palves@redhat.com>
7458 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7461 2013-04-19 Pedro Alves <palves@redhat.com>
7463 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7464 * ada-tasks.c (read_fat_string_value): Likewise.
7466 2013-04-19 Pedro Alves <palves@redhat.com>
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.
7472 2013-04-19 Pedro Alves <palves@redhat.com>
7474 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7475 (read_index_from_section): Add cast to 'char *'.
7477 2013-04-19 Pedro Alves <palves@redhat.com>
7479 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7481 2013-04-19 Pedro Alves <palves@redhat.com>
7483 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7485 2013-04-19 Pedro Alves <palves@redhat.com>
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
7491 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7493 2013-04-19 Pedro Alves <palves@redhat.com>
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.
7503 2013-04-19 Pedro Alves <palves@redhat.com>
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
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.
7514 2013-04-19 Pedro Alves <palves@redhat.com>
7516 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7518 2013-04-19 Pedro Alves <palves@redhat.com>
7520 * remote.c (remote_write_bytes_aux, compare_sections_command)
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.
7530 2013-04-19 Pedro Alves <palves@redhat.com>
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.
7544 2013-04-19 Pedro Alves <palves@redhat.com>
7546 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7548 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7550 2013-04-19 Pedro Alves <palves@redhat.com>
7552 * alpha-tdep.c (alpha_extract_return_value): Use
7553 regcache_cooked_read_unsigned to read 'v0'.
7555 2013-04-19 Pedro Alves <palves@redhat.com>
7557 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7558 parameters 'at', 'as' and 'offset' to uint32_t.
7560 2013-04-19 Pedro Alves <palves@redhat.com>
7562 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7563 'is64' to signed 'int'.
7565 2013-04-19 Pedro Alves <palves@redhat.com>
7567 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7570 2013-04-19 Pedro Alves <palves@redhat.com>
7572 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7573 'insnbuf' buffer type to unsigned int[].
7575 2013-04-19 Pedro Alves <palves@redhat.com>
7577 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7579 2013-04-19 Pedro Alves <palves@redhat.com>
7581 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7584 2013-04-19 Pedro Alves <palves@redhat.com>
7586 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7587 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7589 * mips-tdep.c (heuristic_fence_post): Change type to int.
7590 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7592 2013-04-19 Pedro Alves <palves@redhat.com>
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.
7598 2013-04-19 Pedro Alves <palves@redhat.com>
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
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
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.
7619 (info_spu_event_command, info_spu_signal_command): Add casts to
7622 2013-04-19 Pedro Alves <palves@redhat.com>
7624 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
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
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
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
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
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
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
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
7714 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
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.
7724 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7725 Pedro Alves <palves@redhat.com>
7727 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7730 2013-04-17 Doug Evans <dje@google.com>
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.
7749 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7751 * aarch64-tdep.c (aarch64_write_pc): Removed.
7752 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7755 2013-04-17 Yao Qi <yao@codesourcery.com>
7757 * top.c (print_gdb_configuration): Print configure-time
7758 parameter on using libbabeltrace or not.
7760 2013-04-16 Pedro Alves <palves@redhat.com>
7762 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7764 2013-04-16 Pedro Alves <palves@redhat.com>
7766 * common/glibc_thread_db.h: Update from upstream glibc
7767 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7769 2013-04-16 Pedro Alves <palves@redhat.com>
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.
7775 2013-04-16 Will Newton <will.newton@gmail.com>
7776 Pedro Alves <palves@redhat.com>
7780 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7781 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7784 2013-04-16 Pedro Alves <palves@redhat.com>
7785 Eli Zaretskii <eliz@gnu.org>
7787 * NEWS: Mention "set foo unlimited".
7789 2013-04-15 Doug Evans <dje@google.com>
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.
7799 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7801 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7802 (create_dwo_in_dwp): Ditto.
7804 2013-04-15 Tom Tromey <tromey@redhat.com>
7806 * NEWS: Move recent entries into "since 7.6" section.
7808 2013-04-15 Tom Tromey <tromey@redhat.com>
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
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.
7834 2013-04-15 Tom Tromey <tromey@redhat.com>
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.
7848 2013-04-15 Tom Tromey <tromey@redhat.com>
7850 * break-catch-throw.c (struct exception_names): New.
7851 (exception_functions): Change type.
7852 (re_set_exception_catchpoint): Look for SDT probes.
7854 2013-04-15 Tom Tromey <tromey@redhat.com>
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.
7867 2013-04-15 Tom Tromey <tromey@redhat.com>
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.
7876 2013-04-15 Tom Tromey <tromey@redhat.com>
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
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.
7898 2013-04-15 Tom Tromey <tromey@redhat.com>
7900 * elfread.c (elf_symtab_read): Install versioned symbol under
7901 unversioned name as well.
7903 2013-04-15 Tom Tromey <tromey@redhat.com>
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
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.
7923 2013-04-15 Tom Tromey <tromey@redhat.com>
7927 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
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.
7937 2013-04-15 Pierre Muller <muller@sourceware.org>
7939 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7940 set_gdbarch_write_pc as deprecated anymore.
7942 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7944 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7947 2013-04-13 Yao Qi <yao@codesourcery.com>
7949 * ctf.c (_initialize_ctf): Include "completer.h".
7950 Call add_target_with_completer instead of add_target.
7952 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
7961 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7963 * config.in: Regenerate.
7965 2013-04-12 Tom Tromey <tromey@redhat.com>
7967 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
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):
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):
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'
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'
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'
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
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
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
8036 (per_cu_header_read_in): Constify.
8037 * symfile.h (dwarf2_get_section_info): Update.
8039 2013-04-12 Tom Tromey <tromey@redhat.com>
8041 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8043 2013-04-12 Eli Zaretskii <eliz@gnu.org>
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.
8055 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8056 Pedro Alves <palves@redhat.com>
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.
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
8075 * gdb_gcore.sh: Rename to ...
8076 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8077 and GCORE_TRANSFORM_NAME substitutions.
8079 Fix parsing tabs in ${gdb_target_obs}.
8080 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8082 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8084 * remote.c (unpush_and_perror): Add output message final dot.
8086 2013-04-11 Yao Qi <yao@codesourcery.com>
8088 * tracepoint.c (tfile_interp_line): Fit parameters line and
8091 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8093 * solib.c (solib_map_sections): Remove code overwriting
8094 SO->SO_NAME with the bfd's filename.
8096 2013-04-10 Pedro Alves <palves@redhat.com>
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"
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
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>:
8114 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8116 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
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".
8124 2013-04-10 Pedro Alves <palves@redhat.com>
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.
8135 2013-04-10 Hui Zhu <hui@codesourcery.com>
8136 Yao Qi <yao@codesourcery.com>
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
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.
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
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.
8176 * NEWS: Mention new configure option.
8178 2013-04-10 Pedro Alves <palves@redhat.com>
8179 Hui Zhu <hui@codesourcery.com>
8181 * breakpoint.c (dprintf_re_set): New.
8182 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8185 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8187 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8188 Remove solib-svr4.o from the list.
8190 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8192 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8193 Use gdb_assert_not_reached instead of invalid boolean expression.
8195 2013-04-09 Pedro Alves <palves@redhat.com>
8197 * remote.c (unpush_and_perror): New function.
8198 (readchar, remote_serial_write): Use it.
8200 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8202 * NEWS: Mention new btrace RSP packets.
8204 2013-04-08 Tom Tromey <tromey@redhat.com>
8206 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8209 2013-04-08 Tom Tromey <tromey@redhat.com>
8211 * maint.c (print_bfd_section_info): Print the section index.
8212 * symmisc.c (dump_msymbols): Print the section index.
8214 2013-04-08 Tom Tromey <tromey@redhat.com>
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):
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
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):
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.
8253 2013-04-08 Tom Tromey <tromey@redhat.com>
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):
8261 * minsyms.c (prim_record_minimal_symbol): Update.
8262 (prim_record_minimal_symbol_full): Remove 'bfd_section'
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):
8272 2013-04-08 Tom Tromey <tromey@redhat.com>
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
8285 2013-04-08 Tom Tromey <tromey@redhat.com>
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):
8292 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8294 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
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
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.
8315 2013-04-08 Tom Tromey <tromey@redhat.com>
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.
8339 2013-04-08 Tom Tromey <tromey@redhat.com>
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
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.
8363 2013-04-08 Tom Tromey <tromey@redhat.com>
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.
8370 2013-04-08 Tom Tromey <tromey@redhat.com>
8372 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
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.
8388 2013-04-08 Pedro Alves <palves@redhat.com>
8389 Keith Seitz <keiths@redhat.com>
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".
8398 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8400 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8402 2013-04-07 Yao Qi <yao@codesourcery.com>
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
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.
8416 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8418 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8419 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8422 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8424 * main.h (windows_get_absolute_argv0): ...to here.
8426 2013-04-05 Doug Evans <dje@google.com>
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.
8434 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8441 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8448 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8454 2013-04-05 Eli Zaretskii <eliz@gnu.org>
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.
8461 2013-04-04 Pedro Alves <palves@redhat.com>
8462 Hui Zhu <hui@codesourcery.com>
8464 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8465 tracepoint, reset its STEP_COUNT and call validate_actionline.
8467 2013-04-03 Doug Evans <dje@google.com>
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.
8477 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
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.
8486 * psymtab.c (read_psymtabs_with_fullname): Don't call
8487 psymtab_to_fullname if the basenames are different.
8489 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8491 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8492 New entry about "fullname" presence.
8494 2013-04-03 Pedro Alves <palves@redhat.com>
8496 * NEWS: Mention x86_64/Cygwin as new native configuration.
8498 2013-04-02 Doug Evans <dje@google.com>
8500 * dwarf2read.c (read_structure_type): Fix typo in comment.
8502 2013-04-02 Pedro Alves <palves@redhat.com>
8504 * NEWS: Mention "set/show debug aarch64", "set/show debug
8505 coff-pe-read" and "set/show debug mach-o".
8507 2013-04-02 Pedro Alves <palves@redhat.com>
8509 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8511 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8513 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8514 gdb_string.h is now in common/.
8516 2013-04-02 Pedro Alves <palves@redhat.com>
8518 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8519 under "New options".
8521 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8525 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8527 2013-04-02 Pedro Alves <palves@redhat.com>
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.
8535 2013-04-01 Jiong Wang <jiwang@tilera.com>
8537 * NEWS: Mention TILE-Gx in "New native configurations" and
8538 "New targets" sections.
8540 2013-04-01 Doug Evans <dje@google.com>
8542 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8543 (process_enumeration_scope): Simplify.
8545 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
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
8554 (build_type_psymtabs_reader): Assert called for a type unit.
8555 (build_type_psymtab_dependencies): Assert called for a type unit group.
8557 * dwarf2read.c (free_dwo_file): Add comment.
8558 (dwarf2_per_objfile_free): Unref dwp bfd.
8560 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
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'.
8569 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
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'.
8579 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8581 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8582 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8584 2013-03-29 Doug Evans <dje@google.com>
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.
8593 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8594 unnecessary, cleanup.
8596 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
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.
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.
8608 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8609 missing .debug_types section.
8611 2013-03-29 Yao Qi <yao@codesourcery.com>
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.
8622 * target.h: Include "command.h".
8623 (add_target_with_completer): Declare it.
8625 2013-03-28 Joel Brobecker <brobecker@adacore.com>
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.
8631 2013-03-28 Doug Evans <dje@google.com>
8633 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8634 types hash table until we know we need it.
8636 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
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.
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.
8648 2013-03-28 Pedro Alves <palves@redhat.com>
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
8658 2013-03-28 Doug Evans <dje@google.com>
8660 * symfile.c (find_separate_debug_file): Add comment.
8661 (terminate_after_last_dir_separator): Tweak comment.
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.
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.
8672 * typeprint.c (_initialize_typeprint): Improve type help text.
8674 * python/python.c (finish_python_initialization): Provide suggestion
8675 for how to tell gdb to find its python files.
8677 2013-03-28 Pedro Alves <palves@redhat.com>
8681 * source.c (_initialize_source): Change back "set listsize" to an
8684 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8687 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8689 2013-03-27 Pedro Alves <palves@redhat.com>
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
8699 (init_main): Adjust.
8701 2013-03-27 Pedro Alves <palves@redhat.com>
8703 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8704 coff_pe_read" command to "set debug coff-pe-read".
8706 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8708 * record.c (command_size_to_target_size): Fix size comparison.
8709 Change parameter type from pointer to integer to integer.
8712 2013-03-27 Pierre Muller <muller@sourceware.org>
8714 * windows-nat.c (handle_output_debug_string): Avoid typecast
8715 from integer of different size warning.
8717 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8719 * windows-nat.c (handle_output_debug_string): Add empty line
8720 after local block variable definition.
8722 2013-03-26 Pedro Alves <palves@redhat.com>
8724 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8725 (net_open): Make 'polls' local unsigned.
8727 2013-03-26 Pedro Alves <palves@redhat.com>
8729 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8730 a zuinteger command instead of uinteger.
8732 2013-03-26 Pedro Alves <palves@redhat.com>
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).
8743 2013-03-26 Pedro Alves <palves@redhat.com>
8745 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8746 and "set dcache size" commands zuinteger instead of uinteger.
8748 2013-03-26 Pedro Alves <palves@redhat.com>
8750 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8751 command zuinteger instead of uinteger.
8753 2013-03-26 Pedro Alves <palves@redhat.com>
8755 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8756 zuinteger instead of uinteger.
8758 2013-03-26 Pedro Alves <palves@redhat.com>
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".
8772 2013-03-26 Pedro Alves <palves@redhat.com>
8774 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8775 use with history_max_entries use. Remove FIXME note.
8777 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8779 * record-btrace.c (record_btrace_close): Call
8780 record_btrace_auto_disable.
8782 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8784 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8786 2013-03-25 Doug Evans <dje@google.com>
8788 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8790 2013-03-25 Tom Tromey <tromey@redhat.com>
8793 * c-exp.y (exp): Add new productions for destructors after '.' and
8795 (write_destructor_name): New function.
8797 2013-03-25 Tom Tromey <tromey@redhat.com>
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.
8806 2013-03-25 Yao Qi <yao@codesourcery.com>
8808 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8809 instead of '_mkdir'.
8811 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8813 * windows-nat.c (windows_get_absolute_argv0): New function.
8814 * windows-nat.h: Add its prototype.
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.
8823 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
8839 2013-03-22 Pedro Alves <palves@redhat.com>
8840 Yao Qi <yao@codesourcery.com>
8841 Mark Kettenis <kettenis@gnu.org>
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
8848 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8857 2013-03-22 Pedro Alves <palves@redhat.com>
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.
8864 2013-03-22 Pedro Alves <palves@redhat.com>
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.
8870 2013-03-21 Doug Evans <dje@google.com>
8872 New commands "mt set per-command {space,time,symtab} {on,off}".
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
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.
8908 2013-03-21 Tom Tromey <tromey@redhat.com>
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
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
8920 (syms_from_objfile_1): Remove dead 'if' condition. Check
8922 (add_symbol_file_command): Set 'num_sections'.
8923 * symfile-mem.c (symbol_file_add_from_memory): Set
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'.
8929 2013-03-21 Tom Tromey <tromey@redhat.com>
8931 * tracepoint.h (decode_agent_options): Add 'trace_string'
8933 * tracepoint.c (decode_agent_options): Add 'trace_string'
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.
8954 2013-03-21 Tom Tromey <tromey@redhat.com>
8957 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8958 Handle FILENAME token.
8960 2013-03-21 Tom Tromey <tromey@redhat.com>
8962 * c-exp.y (YYPRINT): Define.
8963 (c_print_token): New function.
8965 2013-03-21 Tom Tromey <tromey@redhat.com>
8967 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8969 2013-03-21 Yao Qi <yao@codesourcery.com>
8971 * ctf.c: Include "gdb_stat.h".
8972 [USE_WIN32API]: New macro 'mkdir'.
8973 (ctf_start): Use permission bits macros if they are defined.
8975 2013-03-20 Keith Seitz <keiths@redhat.com>
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.
8981 2013-03-20 Pedro Alves <palves@redhat.com>
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
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
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.
9000 2013-03-20 Tom Tromey <tromey@redhat.com>
9002 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9004 * dwarf2read.c (read_func_scope): Remove old FIXME.
9005 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
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,
9011 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9013 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9014 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9017 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9018 Tom Tromey <tromey@redhat.com>
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
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
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
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.
9076 2013-03-20 Tom Tromey <tromey@redhat.com>
9078 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9079 (print_partial_symbols, recursively_search_psymtabs): Use
9082 2013-03-20 Pierre Muller <muller@sourceware.org>
9084 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9085 addtion, subtraction, multiplication and division binary operator.
9087 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
9119 (push_target, unpush_target, pop_target): Remove parameter quitting from
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
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
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.
9137 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9139 * windows-nat.c (handle_output_debug_string): Replace call
9140 to string_to_core_addr with call to strtoull.
9142 2013-03-20 Yao Qi <yao@codesourcery.com>
9144 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9145 and write it to CTF metadata.
9147 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9149 * windows-nat.c (handle_output_debug_string): Change type of n to
9150 SIZE_T to avoid crash on 64 bit systems.
9152 2013-03-17 Eli Zaretskii <eliz@gnu.org>
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.
9158 2013-03-15 Steve Ellcey <sellcey@mips.com>
9160 * remote-sim.c (sim_command_completer): Make char arguments const.
9162 2013-03-15 Tom Tromey <tromey@redhat.com>
9165 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9167 2013-03-14 Tom Tromey <tromey@redhat.com>
9169 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
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.
9178 2013-03-14 Tom Tromey <tromey@redhat.com>
9180 * symfile.c (get_debug_link_info): Remove.
9181 (find_separate_debug_file_by_debuglink): Use
9182 bfd_get_debug_link_info.
9184 2013-03-14 Tom Tromey <tromey@redhat.com>
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.
9191 2013-03-14 Doug Evans <dje@google.com>
9192 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
9199 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9201 * source.c (print_source_lines_base): Make a local copy of
9204 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9205 Jan Kratochvil <jan.kratochvil@redhat.com>
9207 * source.c (print_source_lines_base): Suppress "file" for TUI.
9209 2013-03-14 Keith Seitz <keiths@redhat.com>
9210 Alan Matsuoka <alanm@redhat.com>
9214 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9216 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9219 2013-03-14 Yao Qi <yao@codesourcery.com>
9221 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9222 status to tfile if trace is stopped by command 'tstop'.
9224 2013-03-14 Yao Qi <yao@codesourcery.com>
9226 * tracepoint.c (tfile_write_status): Write trace notes and user
9227 name into tfile if they are not NULL.
9229 2013-03-14 Hui Zhu <hui@codesourcery.com>
9230 Yao Qi <yao@codesourcery.com>
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.
9248 2013-03-14 Yao Qi <yao@codesourcery.com>
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.
9275 2013-03-13 Pedro Alves <palves@redhat.com>
9277 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9279 2013-03-13 Pedro Alves <palves@redhat.com>
9281 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
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.
9295 2013-03-13 Pedro Alves <palves@redhat.com>
9297 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
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
9305 (catch_syscall_completer): Make "text" and "word" parameters
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
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
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"
9336 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9338 * cli/cli-script.c (validate_comname): Make "tem" local const.
9339 (define_command): New const local "tem_c". Use it in calls to
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
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
9362 (command_completer, signal_completer): Make "text" and "prefix"
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"
9369 * cp-abi.c (cp_abi_completer): Likewise.
9370 * expression.h (parse_expression_for_completion): Change
9372 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9374 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9375 * infrun.c (handle_completer): Make "text" and "word" parameters
9377 * interps.c (interpreter_completer): Make "text" and "word"
9379 * language.h (struct language_defn)
9380 <la_make_symbol_completion_list>: Make "text" and "word"
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
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
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
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"
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"
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
9422 (make_source_files_completion_list): Make "text" and "word"
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
9432 (set_verbose): Make "cmdname" local const.
9433 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9435 (validate_actionline): Make "line" parameter a pointer to const
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
9444 (trace_dump_command): Adjust to validate_actionline prototype
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.
9452 2013-03-13 Pedro Alves <palves@redhat.com>
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**'
9467 * stap-probe.c (stap_parse_register_operand)
9468 (stap_parse_single_operand): Likewise.
9470 2013-03-13 Yao Qi <yao@codesourcery.com>
9472 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9473 the last matched 'V' blcok in trace frame.
9475 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9477 * NEWS: Create a new section for the next release branch.
9478 Rename the section of the current branch, now that it has
9481 2013-03-12 Joel Brobecker <brobecker@adacore.com>
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.
9486 2013-03-12 Keith Seitz <keiths@redhat.com>
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.
9495 (mi_parse): Make "cmd" const.
9497 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9499 2013-03-12 Keith Seitz <keiths@redhat.com>
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.
9515 (watch_command_1): Make "arg" const.
9516 Constify string handling.
9517 Copy the expression string instead of changing the input
9519 (update_breakpoint_location): Pass const pointer to
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.
9560 2013-03-12 Hui Zhu <hui@codesourcery.com>
9562 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9564 2013-03-12 Yao Qi <yao@codesourcery.com>
9565 Hui Zhu <hui@codesourcery.com>
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
9571 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
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.
9579 2013-03-11 Pedro Alves <palves@redhat.com>
9580 Jan Kratochvil <jan.kratochvil@redhat.com>
9582 * configure: Regenerate.
9583 * configure.ac (check dynamic export flag): Link python test with
9586 2013-03-11 Doug Evans <dje@google.com>
9587 Keith Seitz <keiths@redhat.com>
9589 * linespec.c (find_linespec_symbols): Call find_function_symbols
9590 first, and then call lookup_prefix_sym/find_method.
9592 2013-03-11 Pedro Alves <palves@redhat.com>
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.
9604 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9606 * remote.c (remote_set_trace_buffer_size): Move != operator
9607 to the start of next line to fix an ARI warning.
9609 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9611 * NEWS: Add record changes.
9613 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9620 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9628 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9642 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
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.
9662 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9664 * record.h (record_disconnect): New.
9665 (record_detach): New.
9666 (record_mourn_inferior): New.
9668 * record-full.c (record_disconnect, record_detach,
9669 record_mourn_inferior, record_kill): Move to...
9670 * record.c: ...here.
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
9679 (record_mourn_inferior, record_kill): Assert that the target
9680 is of record stratum. Call record_unpush and DEBUG.
9682 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9684 * record-full.h, record-full.c (record_memory_query): Rename
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.
9697 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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
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.
9764 (record_beneath_to_store_registers): Renamed to ...
9765 (record_full_beneath_to_store_registers): ... this.
9767 (record_beneath_to_xfer_partial_ops): Renamed to ...
9768 (record_full_beneath_to_xfer_partial_ops): ... this.
9770 (record_beneath_to_xfer_partial): Renamed to ...
9771 (record_full_beneath_to_xfer_partial): ... this.
9773 (record_beneath_to_insert_breakpoint): Renamed to ...
9774 (record_full_beneath_to_insert_breakpoint): ... this.
9776 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9777 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9779 (record_beneath_to_stopped_data_address): Renamed to ...
9780 (record_full_beneath_to_stopped_data_address): ... this.
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.
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.
9834 (record_async_inferior_event_handler): Renamed to ...
9835 (record_full_async_inferior_event_handler): ... this.
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.
9890 (record_init_record_breakpoints): Renamed to ...
9891 (record_full_init_record_breakpoints): ... this.
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.
9962 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
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
10018 Change "record" command help text.
10019 Move "record restore", "record set", and "record show" commands to
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.
10055 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10057 * target.h (add_deprecated_target_alias): New.
10058 * target.c (add_deprecated_target_alias): New.
10060 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10062 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10064 (linux_supports_btrace): Add kernel and
10066 (kernel_supports_btrace): New function.
10067 (cpu_supports_btrace): New function.
10068 (intel_supports_btrace): New function.
10070 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
10086 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
10099 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
10114 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
10123 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
10142 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
10148 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
10154 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
10160 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10161 DW_AT_linkage_name.
10163 2013-03-08 Yao Qi <yao@codesourcery.com>
10165 * tracepoint.c (_initialize_tracepoint): Indent the code.
10167 2013-03-08 Pedro Alves <palves@redhat.com>
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 *'.
10173 2013-03-08 Stan Shebs <stan@codesourcery.com>
10174 Hafiz Abid Qadeer <abidh@codesourcery.com>
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.
10193 2013-03-08 Tom Tromey <tromey@redhat.com>
10195 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10198 2013-03-07 Pedro Alves <palves@redhat.com>
10200 * target.c (target_read_stralloc, target_fileio_read_alloc):
10201 *Cast pointer to 'gdb_byte *' in target call.
10203 2013-03-07 Pedro Alves <palves@redhat.com>
10205 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10208 2013-03-07 Keith Seitz <keiths@redhat.com>
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.
10263 2013-03-07 Pedro Alves <palves@redhat.com>
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.
10272 2013-03-07 Pedro Alves <palves@redhat.com>
10274 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10276 (make_wchar_iterator): Remove cast to char*.
10277 (wchar_iterate): Change type of local.
10279 2013-03-07 Pedro Alves <palves@redhat.com>
10281 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10282 for 'regcache->register_status'.
10284 2013-03-07 Pedro Alves <palves@redhat.com>
10286 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10289 2013-03-07 Pedro Alves <palves@redhat.com>
10291 * stap-probe.c (handle_stap_probe): Add cast to char*.
10293 2013-03-07 Pedro Alves <palves@redhat.com>
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.
10299 2013-03-07 Pedro Alves <palves@redhat.com>
10301 * remote-notif.c (notif_debug): Change type to int.
10302 * remote-notif.h (notif_debug): Likewise.
10304 2013-03-07 Pedro Alves <palves@redhat.com>
10306 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10308 2013-03-07 Pedro Alves <palves@redhat.com>
10310 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10311 * remote.h (hex2bin, bin2hex): ... here.
10312 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10314 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10316 * utils.c (initialize_utils): Improve doc strings of "set/show
10317 width", "set/show height", and "set/show pagination".
10319 2013-03-06 Keith Seitz <keiths@redhat.com>
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.
10326 2013-03-06 Doug Evans <dje@google.com>
10328 * elfread.c (elf_symfile_read): Move debugging printf to more
10331 2013-03-06 Pedro Alves <palves@redhat.com>
10333 * python/py-utils.c (target_string_to_unicode): Delete function.
10334 * python/python-internal.h (target_string_to_unicode): Delete
10337 2013-03-06 Pierre Muller <muller@sourceware.org>
10339 * linespec.c (get_current_search_block): ARI fix, use (void)
10340 for empty parameter list.
10342 2013-03-05 Doug Evans <dje@google.com>
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.
10362 2013-03-05 Yao Qi <yao@codesourcery.com>
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.
10369 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10371 * NEWS: Mention new target x86_64-*-cygwin*.
10373 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
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.
10379 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10381 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10383 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
10396 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10398 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10399 calling do_cleanup.
10401 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10403 * tracepoint.c (build_traceframe_info): Add code for byte order.
10405 2013-03-02 Kevin Buettner <kevinb@redhat.com>
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.
10411 2013-03-01 Jiong Wang <jiwang@tilera.com>
10412 Pedro Alves <palves@redhat.com>
10414 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10416 (tilegx_skip_prologue): Limit prologue analysis to section end.
10418 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10420 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10423 2013-03-01 Pedro Alves <palves@redhat.com>
10425 Use gdb_byte for bytes from the program being debugged.
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):
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'
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'
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.
10497 2013-03-01 Jiong Wang <jiwang@tilera.com>
10499 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10500 (tilegx_gdbarch_init): Install it.
10502 2013-02-28 Tom Tromey <tromey@redhat.com>
10504 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10507 2013-02-28 Doug Evans <dje@google.com>
10509 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10510 * python/python.c (gdbpy_find_pc_line): Ditto.
10512 2013-02-28 Tom Tromey <tromey@redhat.com>
10514 * contrib/excheck.py: New file.
10515 * contrib/exsummary.py: New file.
10516 * contrib/gcc-with-excheck: New file.
10518 2013-02-28 Tom Tromey <tromey@redhat.com>
10520 * python/python.c (gdbpy_print_stack): Call begin_line and
10521 fprintf_filtered inside TRY_CATCH.
10523 2013-02-28 Tom Tromey <tromey@redhat.com>
10525 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10528 2013-02-28 Tom Tromey <tromey@redhat.com>
10530 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10531 frame_object_to_frame_info inside TRY_CATCH.
10533 2013-02-28 Tom Tromey <tromey@redhat.com>
10535 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10538 2013-02-28 Tom Tromey <tromey@redhat.com>
10540 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10542 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10544 * windows-nat.c: Throughout, fix format strings and casts of
10545 printf-like functions to avoid type related warnings on all
10547 (handle_output_debug_string): Fetch context information address
10548 from debug string using string_to_core_addr.
10550 2013-02-27 Jiong Wang <jiwang@tilera.com>
10552 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10553 * regformats/reg-tilegx32.dat: New.
10555 2013-02-27 Jiong Wang <jiwang@tilera.com>
10557 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10559 2013-02-27 Jiong Wang <jiwang@tilera.com>
10561 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10563 2013-02-27 Yao Qi <yao@codesourcery.com>
10564 Pedro Alves <palves@redhat.com>
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.
10570 2013-02-26 Anthony Green <green@moxielogic.com>
10572 * configure.tgt: Add support for moxie-*-rtems* target.
10574 2013-02-25 Pedro Alves <palves@redhat.com>
10576 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10579 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10581 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10582 if $fp is used as the virtual frame pointer.
10584 2013-02-23 Alan Modra <amodra@gmail.com>
10586 * elfread.c (elf_symtab_read): Do not use udata.p here to find
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.
10593 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
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
10600 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10602 2013-02-21 Alan Modra <amodra@gmail.com>
10604 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10606 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
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.
10613 2013-02-20 Jiong Wang <jiwang@tilera.com>
10615 * MAINTAINERS (Write After Approval): Add myself to the list.
10617 2013-02-19 Pedro Alves <palves@redhat.com>
10619 Garbage collect 'struct monitor_ops'::load_routine.
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'.
10628 2013-02-19 Pedro Alves <palves@redhat.com>
10632 Harmonize with generic_load.
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.
10641 2013-02-19 Kai Tietz <ktietz@redhat.com>
10644 * symfile.c (load_section_data): Change type of load_offset
10646 (generic_load): User strtoulst instead of strtoul for conversion
10649 2013-02-19 Jiong Wang <jiwang@tilera.com>
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.
10656 2013-02-19 Jiong Wang <jiwang@tilera.com>
10658 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10660 2013-02-19 Jiong Wang <jiwang@tilera.com>
10662 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10664 2013-02-19 Jiong Wang <jiwang@tilera.com>
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.
10677 2013-02-19 Jiong Wang <jiwang@tilera.com>
10679 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10680 should be aligned to 64bit.
10682 2013-02-19 Kai Tietz <ktietz@redhat.com>
10684 * windows-nat.c (windows_xfer_memory): Fix debug-output
10687 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10689 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10690 Don't check DSP register number if HAVE_DSP is not set.
10692 2013-02-19 Alan Modra <amodra@gmail.com>
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.
10702 2013-02-18 Tom Tromey <tromey@redhat.com>
10705 * dwarf2read.c (read_subrange_type): Use result of
10708 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10710 * frame.c: Remove one extra white space after #include
10713 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10715 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10717 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10719 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10720 and dir commands into an if block.
10722 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10724 * python/py-breakpoint (struct pybp_code): Use int instead of
10727 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10728 Hafiz Abid Qadeer <abidh@codesourcery.com>
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
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.
10749 2013-02-15 Yao Qi <yao@codesourcery.com>
10751 * remote.c: Fix a typo.
10753 2013-02-14 Pierre Muller <muller@sourceware.org>
10755 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10757 2013-02-14 Pedro Alves <palves@redhat.com>
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.
10765 2013-02-14 Pedro Alves <palves@redhat.com>
10767 * utils.c (savestring): Rename parameter 'size' to 'len'.
10769 2013-02-14 Pedro Alves <palves@redhat.com>
10770 Yufeng Zhang <yufeng.zhang@arm.com>
10772 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10773 (aarch64_inferior_data, struct aarch64_inferior_data):
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.
10803 2013-02-14 Pedro Alves <palves@redhat.com>
10805 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10806 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10809 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10810 Hafiz Abid Qadeer <abidh@codesourcery.com>
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.
10819 2013-02-14 Yao Qi <yao@codesourcery.com>
10821 * infcmd.c (breakpoint_proceeded): Remove it.
10823 2013-02-14 Yao Qi <yao@codesourcery.com>
10825 * tracepoint.c (end_actions_pseudocommand): Make it static.
10826 (while_stepping_pseudocommand): Likewise.
10827 * tracepoint.h (end_actions_pseudocommand): Remove the
10829 (while_stepping_pseudocommand): Likewise.
10831 2013-02-14 Yao Qi <yao@codesourcery.com>
10833 * cli/cli-decode.c (help_cmd): Remove the declaration of
10835 (help_all): Likewise.
10837 2013-02-13 Pedro Alves <palves@redhat.com>
10839 * amd64-linux-nat.c (update_debug_registers_callback):
10841 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
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):
10851 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
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):
10862 (struct i386_process_info): New.
10863 (i386_process_list): New global.
10864 (i386_find_process_pid, i386_add_process, i386_process_info_get):
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
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
10891 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
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
10899 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10900 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10902 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10903 (linux_nat_forget_process): New declarations.
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.
10910 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10912 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10915 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10917 * aarch64-linux-nat.c (debug_reg_change_callback)
10918 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10921 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10923 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10926 2013-02-13 Pedro Alves <palves@redhat.com>
10927 Hafiz Abid Qadeer <abidh@codesourcery.com>
10929 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10931 2013-02-12 Tom Tromey <tromey@redhat.com>
10934 * c-exp.y (lex_one_token): Initialize other fields of yylval on
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.
10941 2013-02-12 Pedro Alves <palves@redhat.com>
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.
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.
10994 2013-02-12 Pedro Alves <palves@redhat.com>
10996 * break-catch-sig.c: Update copyright years.
10998 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
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
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
11016 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11019 2013-02-11 Doug Evans <dje@google.com>
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.
11028 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11030 * valops.c (value_assign): Handling bitfield offset in
11031 `lval_internalvar_component' case.
11033 2013-02-08 Doug Evans <dje@google.com>
11035 * common/format.c (parse_format_string): Fix whitespace.
11037 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11039 * stack.c (return_command): Work around uninitialized variable
11042 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11044 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11045 number of the registers from 36 to 34.
11047 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11049 * NEWS: Mention new AArch64 native and target support.
11051 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11053 * MAINTAINERS (Write After Approval): Add myself.
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>
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.
11065 2013-02-07 Doug Evans <dje@google.com>
11067 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11068 disassemble command.
11070 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11072 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11073 set_gdbarch_fetch_tls_load_module_address.
11075 2013-02-06 David S. Miller <davem@davemloft.net>
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.
11085 2013-02-06 Tom Tromey <tromey@redhat.com>
11087 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11088 outside of TRY_CATCH.
11090 2013-02-06 Yao Qi <yao@codesourcery.com>
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
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".
11107 * NEWS: Mention the new MI notification "=tsv-modified".
11109 2013-02-05 Doug Evans <dje@google.com>
11111 * completer.c (location_completer): Fix typo in comment.
11113 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11115 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11118 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11120 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11121 Refactor if statement to avoid trailing || operator.
11123 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11125 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11127 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
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.
11135 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11136 Denys Vlasenko <dvlasenk@redhat.com>
11137 Pedro Alves <palves@redhat.com>
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
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>
11157 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
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>
11164 * aarch64-newlib-tdep.c: New file.
11165 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
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".
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>
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.
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>
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).
11206 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11208 * contrib/expect-read1.c: New file.
11209 * contrib/expect-read1.sh: New file.
11211 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11213 * dwarf2read.c (file_file_name): New function with code from
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
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
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
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
11243 (new_macro_table): New parameter comp_dir, add a comment for it.
11244 (macro_source_fullname): new declaration.
11246 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
11256 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
11279 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
11319 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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):
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
11336 (create_sals_line_offset, convert_linespec_to_sals): New variable
11337 fullname, initialize it, replace symtab->filename reference by the
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
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.
11402 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11403 Jan Kratochvil <jan.kratochvil@redhat.com>
11405 Add a new variable that controls a way in which filenames are
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'
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.
11419 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
11431 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
11449 * symtab.c (find_line_symtab): Rename the called function to
11450 expand_symtabs_with_fullname.
11452 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
11470 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11472 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11475 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11476 source_file references by symtab field references. Remove variables
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.
11492 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11494 Replace xfullpath calls by gdb_realpath calls.
11495 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
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
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
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
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.
11523 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
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
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.
11551 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11553 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11555 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11557 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11559 2013-02-01 Pedro Alves <palves@redhat.com>
11561 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11562 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11564 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
11572 2013-01-31 Tom Tromey <tromey@redhat.com>
11574 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11576 (struct jit_program_space_data): Rename from jit_inferior_data.
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',
11584 (jit_register_code): Update.
11585 (jit_update_inferior_cache): Remove.
11586 (jit_breakpoint_deleted): Get jit data from the location's program
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.
11595 2013-01-31 Tom Tromey <tromey@redhat.com>
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
11604 (_initialize_jit): Register breakpoint deleted observer.
11606 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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.
11614 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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,
11620 (c_get_string): Remove unused kind.
11621 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11623 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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
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
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
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
11667 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11668 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11671 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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.
11680 2013-01-31 Tom Tromey <tromey@redhat.com>
11683 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11686 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11688 * target.c (target_read_string): Remove unused origlen.
11690 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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.
11698 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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
11705 2013-01-30 Tom Tromey <tromey@redhat.com>
11707 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11709 2013-01-30 Tom Tromey <tromey@redhat.com>
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.
11715 2013-01-30 Tom Tromey <tromey@redhat.com>
11717 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11718 (read_structure_type, read_enumeration_type): Remove cast.
11720 2013-01-30 Tom Tromey <tromey@redhat.com>
11722 * dwarf2read.c (read_namespace_type): Remove cast.
11723 (read_typedef): Likewise.
11725 2013-01-29 Tom Tromey <tromey@redhat.com>
11727 * dwarf2read.c (free_dwo_file): Remove assert.
11729 2013-01-29 Tom Tromey <tromey@redhat.com>
11731 * value.c (deprecated_set_value_modifiable): Remove.
11732 * value.h (deprecated_set_value_modifiable): Remove.
11734 2013-01-28 Doug Evans <dje@google.com>
11736 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11737 to addresses from dwo files.
11739 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
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.
11749 2013-01-25 Tom Tromey <tromey@redhat.com>
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.
11756 2013-01-25 Tom Tromey <tromey@redhat.com>
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.
11765 2013-01-25 Pedro Alves <palves@redhat.com>
11767 * remote.c (add_current_inferior_and_thread): Tweak comment.
11769 2013-01-25 Tom Tromey <tromey@redhat.com>
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.
11779 2013-01-25 Tom Tromey <tromey@redhat.com>
11781 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11783 2013-01-25 Pedro Alves <palves@redhat.com>
11785 * remote.c (stop_reply_extract_thread): New.
11786 (add_current_inferior_and_thread): New parameter 'wait_status'.
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.
11794 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11795 Ulrich Weigand <uweigand@de.ibm.com>
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
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.
11812 2013-01-25 Yao Qi <yao@codesourcery.com>
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.
11830 2013-01-25 Yao Qi <yao@codesourcery.com>
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.
11839 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11841 * MAINTAINERS: Update my email.
11843 2013-01-25 Yao Qi <yao@codesourcery.com>
11845 * main.c (print_gdb_help): Remove "--epoch" from the help
11848 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
11850 * symtab.c (skip_prologue_using_sal): Consider a file
11851 change the same as an increased line number
11853 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11855 * MAINTAINERS (Write After Approval): Add myself to the list.
11857 2013-01-24 Tom Tromey <tromey@redhat.com>
11859 * ada-lang.h (ada_decode_symbol): Make return type const.
11860 * ada-lang.c (ada_decode_symbol): Likewise.
11862 2013-01-23 Doug Evans <dje@google.com>
11864 * linespec.c (find_linespec_symbols): Make static.
11866 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11868 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11869 type on float conversion for complex type.
11871 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
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
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
11885 * python/python.c (_initialize_python): Initialize
11886 gdb.Architecture class.
11888 2013-01-23 Doug Evans <dje@google.com>
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.
11898 2013-01-22 Pedro Alves <palves@redhat.com>
11900 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11903 2013-01-22 Pedro Alves <palves@redhat.com>
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.
11917 2013-01-22 Pedro Alves <palves@redhat.com>
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.
11930 2013-01-22 Pedro Alves <palves@redhat.com>
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
11937 * annotate.h (annotate_ignore_count_change): Delete.
11938 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11939 annotate_ignore_count_change.
11941 2013-01-22 Tom Tromey <tromey@redhat.com>
11943 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11944 require_rvalue for a register location.
11946 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11948 * breakpoint.c (print_one_breakpoint_location): Add MI
11949 field 'thread-groups' when printing a breakpoint.
11950 (output_thread_groups): New function.
11952 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11954 * python/lib/gdb/commands/explore.py
11955 (CompoundExplorer.explore_expr): Correct the name of a method
11957 (ExploreTypeCommand.invoke): Add a missing 'return'.
11959 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
11969 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
11985 2013-01-21 Tom Tromey <tromey@redhat.com>
11987 * dwarf2read.c (fixup_go_packaging): Save package name
11988 on objfile obstack.
11989 * gdbtypes.c (init_type): Don't copy name.
11991 2013-01-21 Tom Tromey <tromey@redhat.com>
11993 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
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
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'
12014 2013-01-21 Tom Tromey <tromey@redhat.com>
12016 * gdbtypes.c (init_type): Make 'name' const.
12017 * gdbtypes.h (init_type): Update.
12019 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
12043 2013-01-21 Tom Tromey <tromey@redhat.com>
12045 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12046 (symbol_set_names): Remove casts. Handle field const-ness.
12048 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
12054 2013-01-21 Tom Tromey <tromey@redhat.com>
12056 * main.c (captured_main): Call bfd_init.
12058 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
12065 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12067 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12069 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12071 Fix gdb.fortran/common-block.exp crash in PIE mode.
12072 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
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.
12081 2013-01-18 David Blaikie <dblaikie@gmail.com>
12083 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12085 2013-01-18 Tom Tromey <tromey@redhat.com>
12088 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12089 Call require_rvalue.
12091 2013-01-18 Yao Qi <yao@codesourcery.com>
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
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.
12117 2013-01-18 Yao Qi <yao@codesourcery.com>
12119 * infrun.c (proceed): Rename local variable 'oneproc' to
12122 2013-01-17 Doug Evans <dje@google.com>
12124 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12125 (dw2_build_type_unit_groups): Delete. All uses updated.
12127 * symtab.h (struct symbol_search): Add comment.
12129 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12131 * symtab.c (compare_filenames_for_search): New comment for
12134 2013-01-17 Tom Tromey <tromey@redhat.com>
12136 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12138 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12140 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12141 initialize it by existing make_cleanup. Call new do_cleanups.
12143 2013-01-17 Tom Tromey <tromey@redhat.com>
12145 * cp-abi.c (cp_abi_completer): New function.
12146 (_initialize_cp_abi): Set completer for "set cp-abi".
12148 2013-01-17 Tom Tromey <tromey@redhat.com>
12150 * mem-break.c: Remove obsolete comment.
12151 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12153 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12155 * jit.c (jit_reader_load_command): Interpret the jit reader name
12156 as an absolute path if it begins with a forward slash.
12158 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12162 * jit.c (finalize_symtab): Ensure that only the global block has a
12165 2013-01-17 Pedro Alves <palves@redhat.com>
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.
12172 2013-01-16 Doug Evans <dje@google.com>
12174 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12176 2013-01-16 Pedro Alves <palves@redhat.com>
12177 Tom Tromey <tromey@redhat.com>
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
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.
12203 2013-01-16 Tom Tromey <tromey@redhat.com>
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
12210 2013-01-16 Yao Qi <yao@codesourcery.com>
12212 * printcmd.c (current_display_number): Make it static.
12214 2013-01-16 Yao Qi <yao@codesourcery.com>
12216 * infcmd.c (step_once): Don't check '!single_inst' as it was
12219 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12221 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12223 2013-01-14 Tom Tromey <tromey@redhat.com>
12225 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
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.
12232 2013-01-14 Tom Tromey <tromey@redhat.com>
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.
12247 2013-01-14 Tom Tromey <tromey@redhat.com>
12250 * psymtab.c (struct psymtab_state): New.
12251 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12253 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12254 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12256 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12257 Pedro Alves <palves@redhat.com>
12261 * remote.c (remote_threads_info): Make a copy of the reply from
12262 qfThreadInfo and use that instead of rs->buf.
12264 2013-01-14 Yao Qi <yao@codesourcery.com>
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.
12272 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
12281 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12283 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12284 non-existing files.
12286 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12287 non-existing files if FILENAME is already absolute.
12289 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12291 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12292 fputs_filtered. Append trailing newline.
12294 2013-01-11 Yao Qi <yao@codesourcery.com>
12295 Stan Shebs <stan@codesourcery.com>
12297 * psymtab.c (init_psymbol_list): Clarify the comment.
12299 2013-01-11 Yao Qi <yao@codesourcery.com>
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.
12305 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12308 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12310 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12312 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12314 2013-01-09 Anthony Green <green@moxielogic.com>
12316 * cp-abi.c (cplus_print_vtable): Don't return value from void
12318 * ada-lang.c (re_set_catch_assert): Ditto.
12320 2013-01-09 Doug Evans <dje@google.com>
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.
12334 2013-01-09 Tom Tromey <tromey@redhat.com>
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
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.
12345 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12347 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12348 Cast return_address to 64bits.
12350 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
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.
12356 2013-01-07 Tom Tromey <tromey@redhat.com>
12358 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12360 (objc_language_defn): Use c_printchar, c_printstr,
12363 2013-01-07 Tom Tromey <tromey@redhat.com>
12367 * ada-valprint.c (printstr, print_field_values): Remove
12369 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12371 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
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
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
12390 2013-01-04 Tom Tromey <tromey@redhat.com>
12392 * valprint.h (read_string): Add 'extern'.
12394 2013-01-07 Joel Brobecker <brobecker@adacore.com>
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.
12399 2013-01-03 Pierre Muller <muller@sourceware.org>
12401 * main.c (relocate_gdb_directory): Avoid calling stat function
12404 2013-01-03 Yao Qi <yao@codesourcery.com>
12406 * psymtab.c (fixup_psymbol_section): Update declaration.
12407 (fixup_psymbol_section): Remove code returning value.
12409 2013-01-03 Yao Qi <yao@codesourcery.com>
12411 * symtab.h: Remove some out of date comments.
12412 (enum exception_event_kind): Move it ...
12413 * breakpoint.c: ... here.
12415 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
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.
12423 2013-01-02 Tom Tromey <tromey@redhat.com>
12425 * symfile.h (struct ecoff_debug_hack): Remove.
12426 * objfiles.c: Don't include mdebugread.h.
12428 2013-01-02 Tom Tromey <tromey@redhat.com>
12430 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12431 * configure.ac: Check for Mach-O support in BFD. Update
12433 * configure: Rebuild.
12435 2013-01-02 Tom Tromey <tromey@redhat.com>
12437 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12438 * configure.ac: Use GDB_AC_CHECK_BFD.
12439 * configure: Rebuild.
12441 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12443 * MAINTAINERS: Update my email.
12445 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12447 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12449 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12451 * rs6000-nat.c (bss_data_overlap): New function.
12452 (vmap_symtab): Use it to adjust the .bss section's offset.
12454 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12456 Update year range in copyright notice of all files.
12458 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12460 * top.c (print_gdb_version): Update copyright year.
12462 For older changes see ChangeLog-2012.
12468 version-control: never