1 2013-11-20 Yao Qi <yao@codesourcery.com>
3 * Makefile.in (SFILES):Add target-dcache.c.
4 (HFILES_NO_SRCDIR): Add target-dcache.h.
5 (COMMON_OBS): Add target-dcache.o.
6 * dcache.c: Remove inclusion to "target.h". Include
8 * memattr.c: Include "target-dcache.h".
10 * tracepoint.c: Likewise.
11 * target.c: (stack_cache_enabled_p_1): Move to
13 (stack_cache_enabled_p): Likewise.
14 (set_stack_cache_enabled_p): Likewise.
15 (show_stack_cache_enabled_p): Likewise.
16 (target_dcache, target_dcache_init_p): Likewise.
17 (target_dcache_invalidate): Likewise.
18 (target_dcache_get, target_dcache_get_or_init): Likewise.
19 (memory_xfer_partial_1): Call function stack_cache_enabled.
20 (initialize_target): Move code to target-dcache.c.
21 * target.h (target_dcache_invalidate): Move to
23 (target_dcache_get): Likewise.
24 * target-dcache.c: New.
25 * target-dcache.h: New.
27 2013-11-20 Yao Qi <yao@codesourcery.com>
29 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
32 2013-11-20 Yao Qi <yao@codesourcery.com>
34 * dcache.c (last_cache): Remove.
35 (dcache_free, dcache_init): Update.
37 (dcache_print_line): Add parameter 'dcache'. Replace
38 'target_dcache' with 'dcache'.
39 (dcache_info): Move code to dcache_info_1. Call
41 (dcache_info_1): New function.
42 (set_dcache_size): Call target_dcache_invalidate.
43 (set_dcache_line_size): Call target_dcache_invalidate.
44 * target.c (target_dcache_init_p): New function.
45 (target_dcache_invalidate): Check target_dcache_init_p first.
46 (target_dcache_get, target_dcache_get_or_init): New function.
47 (memory_xfer_partial_1): Adjust.
48 (initialize_target): Don't initialize 'target_dcache'.
49 * target.h (struct dcache_struct): Declare.
50 (target_dcache_get): Declare.
52 2013-11-19 Yao Qi <yao@codesourcery.com>
54 * varobj.c (varobj_get_type): Fix typo.
56 2013-11-19 Joel Brobecker <brobecker@adacore.com>
58 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
60 2013-11-19 Joel Brobecker <brobecker@adacore.com>
62 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
65 2013-11-18 Tom Tromey <tromey@redhat.com>
67 * common/gdb_stat.h: Remove.
68 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
69 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
70 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
71 * corefile.c: Use sys/stat.h, not gdb_stat.h.
72 * ctf.c: Use sys/stat.h, not gdb_stat.h.
73 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
74 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
75 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
76 * exec.c: Use sys/stat.h, not gdb_stat.h.
77 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
78 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
79 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
80 * jit.c: Use sys/stat.h, not gdb_stat.h.
81 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
82 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
83 * main.c: Use sys/stat.h, not gdb_stat.h.
84 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
85 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
86 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
87 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
88 * procfs.c: Use sys/stat.h, not gdb_stat.h.
89 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
90 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
91 * remote.c: Use sys/stat.h, not gdb_stat.h.
92 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
93 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
94 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
95 * source.c: Use sys/stat.h, not gdb_stat.h.
96 * symfile.c: Use sys/stat.h, not gdb_stat.h.
97 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
98 * symtab.c: Use sys/stat.h, not gdb_stat.h.
99 * top.c: Use sys/stat.h, not gdb_stat.h.
100 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
102 2013-11-18 Tom Tromey <tromey@redhat.com>
104 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
106 * gnulib/aclocal.m4: Update.
107 * gnulib/config.in: Update.
108 * gnulib/configure: Update.
109 * gnulib/import/Makefile.am: Update.
110 * gnulib/import/Makefile.in: Update.
111 * gnulib/import/m4/gnulib-cache.m4: Update.
112 * gnulib/import/m4/gnulib-comp.m4: Update.
113 * gnulib/import/m4/sys_stat_h.m4: New.
114 * gnulib/import/m4/time_h.m4: New.
115 * gnulib/import/sys_stat.in.h: New.
116 * gnulib/import/time.in.h: New.
118 2013-11-18 Tom Tromey <tromey@redhat.com>
120 * configure: Rebuild.
121 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
123 2013-11-18 Tom Tromey <tromey@redhat.com>
125 * configure: Rebuild.
126 * configure.ac: Don't check for unistd.h.
128 2013-11-18 Tom Tromey <tromey@redhat.com>
130 * configure: Rebuild.
131 * configure.ac: Don't check for stdlib.h
132 * defs.h: Include stdlib.h unconditionally.
134 2013-11-18 Tom Tromey <tromey@redhat.com>
136 * config.in: Rebuild.
137 * configure: Rebuild.
138 * configure.ac: Don't check for stddef.h.
139 * defs.h: Unconditionally include stddef.h. Remove duplicate
142 2013-11-18 Tom Tromey <tromey@redhat.com>
144 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
145 * common/gdb_dirent.h: Remove.
146 * common/filestuff.c: Use dirent.h.
147 * common/linux-osdata.c: Use dirent.h.
149 * config.in: Rebuild.
150 * configure: Rebuild.
151 * configure.ac: Don't use AC_HEADER_DIRENT.
152 * linux-fork.c: Use dirent.h
153 * linux-nat.c: Use dirent.h.
154 * nto-procfs.c: Use dirent.h.
155 * procfs.c: Use dirent.h.
157 2013-11-18 Tom Tromey <tromey@redhat.com>
159 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
160 * gnulib/aclocal.m4: Update.
161 * gnulib/config.in: Update.
162 * gnulib/configure: Update.
163 * gnulib/import/Makefile.am: Update.
164 * gnulib/import/Makefile.in: Update.
165 * gnulib/import/dirent.in.h: New.
166 * gnulib/import/m4/dirent_h.m4: New.
167 * gnulib/import/m4/gnulib-cache.m4: Update.
168 * gnulib/import/m4/gnulib-comp.m4: Update.
170 2013-11-18 Tom Tromey <tromey@redhat.com>
172 * configure: Rebuild.
173 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
176 2013-11-18 Tom Tromey <tromey@redhat.com>
178 * common/gdb_string.h: Remove.
179 * aarch64-tdep.c: Use string.h, not gdb_string.h.
180 * ada-exp.y: Use string.h, not gdb_string.h.
181 * ada-lang.c: Use string.h, not gdb_string.h.
182 * ada-lex.l: Use string.h, not gdb_string.h.
183 * ada-typeprint.c: Use string.h, not gdb_string.h.
184 * ada-valprint.c: Use string.h, not gdb_string.h.
185 * aix-thread.c: Use string.h, not gdb_string.h.
186 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
187 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
188 * alpha-nat.c: Use string.h, not gdb_string.h.
189 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
190 * alpha-tdep.c: Use string.h, not gdb_string.h.
191 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
192 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
193 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
194 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
195 * amd64-nat.c: Use string.h, not gdb_string.h.
196 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
197 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
198 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
199 * arch-utils.c: Use string.h, not gdb_string.h.
200 * arm-linux-nat.c: Use string.h, not gdb_string.h.
201 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
202 * arm-tdep.c: Use string.h, not gdb_string.h.
203 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
204 * armbsd-tdep.c: Use string.h, not gdb_string.h.
205 * armnbsd-nat.c: Use string.h, not gdb_string.h.
206 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
207 * armobsd-tdep.c: Use string.h, not gdb_string.h.
208 * avr-tdep.c: Use string.h, not gdb_string.h.
209 * ax-gdb.c: Use string.h, not gdb_string.h.
210 * ax-general.c: Use string.h, not gdb_string.h.
211 * bcache.c: Use string.h, not gdb_string.h.
212 * bfin-tdep.c: Use string.h, not gdb_string.h.
213 * breakpoint.c: Use string.h, not gdb_string.h.
214 * build-id.c: Use string.h, not gdb_string.h.
215 * buildsym.c: Use string.h, not gdb_string.h.
216 * c-exp.y: Use string.h, not gdb_string.h.
217 * c-lang.c: Use string.h, not gdb_string.h.
218 * c-typeprint.c: Use string.h, not gdb_string.h.
219 * c-valprint.c: Use string.h, not gdb_string.h.
220 * charset.c: Use string.h, not gdb_string.h.
221 * cli-out.c: Use string.h, not gdb_string.h.
222 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
223 * cli/cli-decode.c: Use string.h, not gdb_string.h.
224 * cli/cli-dump.c: Use string.h, not gdb_string.h.
225 * cli/cli-interp.c: Use string.h, not gdb_string.h.
226 * cli/cli-logging.c: Use string.h, not gdb_string.h.
227 * cli/cli-script.c: Use string.h, not gdb_string.h.
228 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
229 * cli/cli-utils.c: Use string.h, not gdb_string.h.
230 * coffread.c: Use string.h, not gdb_string.h.
231 * common/common-utils.c: Use string.h, not gdb_string.h.
232 * common/filestuff.c: Use string.h, not gdb_string.h.
233 * common/linux-procfs.c: Use string.h, not gdb_string.h.
234 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
235 * common/signals.c: Use string.h, not gdb_string.h.
236 * common/vec.h: Use string.h, not gdb_string.h.
237 * core-regset.c: Use string.h, not gdb_string.h.
238 * corefile.c: Use string.h, not gdb_string.h.
239 * corelow.c: Use string.h, not gdb_string.h.
240 * cp-abi.c: Use string.h, not gdb_string.h.
241 * cp-support.c: Use string.h, not gdb_string.h.
242 * cp-valprint.c: Use string.h, not gdb_string.h.
243 * cris-tdep.c: Use string.h, not gdb_string.h.
244 * d-lang.c: Use string.h, not gdb_string.h.
245 * dbxread.c: Use string.h, not gdb_string.h.
246 * dcache.c: Use string.h, not gdb_string.h.
247 * demangle.c: Use string.h, not gdb_string.h.
248 * dicos-tdep.c: Use string.h, not gdb_string.h.
249 * disasm.c: Use string.h, not gdb_string.h.
250 * doublest.c: Use string.h, not gdb_string.h.
251 * dsrec.c: Use string.h, not gdb_string.h.
252 * dummy-frame.c: Use string.h, not gdb_string.h.
253 * dwarf2-frame.c: Use string.h, not gdb_string.h.
254 * dwarf2loc.c: Use string.h, not gdb_string.h.
255 * dwarf2read.c: Use string.h, not gdb_string.h.
256 * elfread.c: Use string.h, not gdb_string.h.
257 * environ.c: Use string.h, not gdb_string.h.
258 * eval.c: Use string.h, not gdb_string.h.
259 * event-loop.c: Use string.h, not gdb_string.h.
260 * exceptions.c: Use string.h, not gdb_string.h.
261 * exec.c: Use string.h, not gdb_string.h.
262 * expprint.c: Use string.h, not gdb_string.h.
263 * f-exp.y: Use string.h, not gdb_string.h.
264 * f-lang.c: Use string.h, not gdb_string.h.
265 * f-typeprint.c: Use string.h, not gdb_string.h.
266 * f-valprint.c: Use string.h, not gdb_string.h.
267 * fbsd-nat.c: Use string.h, not gdb_string.h.
268 * findcmd.c: Use string.h, not gdb_string.h.
269 * findvar.c: Use string.h, not gdb_string.h.
270 * fork-child.c: Use string.h, not gdb_string.h.
271 * frame.c: Use string.h, not gdb_string.h.
272 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
273 * frv-tdep.c: Use string.h, not gdb_string.h.
274 * gdb.c: Use string.h, not gdb_string.h.
275 * gdb_bfd.c: Use string.h, not gdb_string.h.
276 * gdbarch.c: Use string.h, not gdb_string.h.
277 * gdbtypes.c: Use string.h, not gdb_string.h.
278 * gnu-nat.c: Use string.h, not gdb_string.h.
279 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
280 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
281 * go-exp.y: Use string.h, not gdb_string.h.
282 * go-lang.c: Use string.h, not gdb_string.h.
283 * go32-nat.c: Use string.h, not gdb_string.h.
284 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
285 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
286 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
287 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
288 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
289 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
290 * i386-linux-nat.c: Use string.h, not gdb_string.h.
291 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
292 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
293 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
294 * i386-tdep.c: Use string.h, not gdb_string.h.
295 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
296 * i386gnu-nat.c: Use string.h, not gdb_string.h.
297 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
298 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
299 * i387-tdep.c: Use string.h, not gdb_string.h.
300 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
301 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
302 * inf-child.c: Use string.h, not gdb_string.h.
303 * inf-ptrace.c: Use string.h, not gdb_string.h.
304 * inf-ttrace.c: Use string.h, not gdb_string.h.
305 * infcall.c: Use string.h, not gdb_string.h.
306 * infcmd.c: Use string.h, not gdb_string.h.
307 * inflow.c: Use string.h, not gdb_string.h.
308 * infrun.c: Use string.h, not gdb_string.h.
309 * interps.c: Use string.h, not gdb_string.h.
310 * iq2000-tdep.c: Use string.h, not gdb_string.h.
311 * irix5-nat.c: Use string.h, not gdb_string.h.
312 * jv-exp.y: Use string.h, not gdb_string.h.
313 * jv-lang.c: Use string.h, not gdb_string.h.
314 * jv-typeprint.c: Use string.h, not gdb_string.h.
315 * jv-valprint.c: Use string.h, not gdb_string.h.
316 * language.c: Use string.h, not gdb_string.h.
317 * linux-fork.c: Use string.h, not gdb_string.h.
318 * linux-nat.c: Use string.h, not gdb_string.h.
319 * lm32-tdep.c: Use string.h, not gdb_string.h.
320 * m2-exp.y: Use string.h, not gdb_string.h.
321 * m2-typeprint.c: Use string.h, not gdb_string.h.
322 * m32c-tdep.c: Use string.h, not gdb_string.h.
323 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
324 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
325 * m32r-rom.c: Use string.h, not gdb_string.h.
326 * m32r-tdep.c: Use string.h, not gdb_string.h.
327 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
328 * m68k-tdep.c: Use string.h, not gdb_string.h.
329 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
330 * m68klinux-nat.c: Use string.h, not gdb_string.h.
331 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
332 * m88k-tdep.c: Use string.h, not gdb_string.h.
333 * macrocmd.c: Use string.h, not gdb_string.h.
334 * main.c: Use string.h, not gdb_string.h.
335 * mdebugread.c: Use string.h, not gdb_string.h.
336 * mem-break.c: Use string.h, not gdb_string.h.
337 * memattr.c: Use string.h, not gdb_string.h.
338 * memory-map.c: Use string.h, not gdb_string.h.
339 * mep-tdep.c: Use string.h, not gdb_string.h.
340 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
341 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
342 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
343 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
344 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
345 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
346 * mi/mi-console.c: Use string.h, not gdb_string.h.
347 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
348 * mi/mi-interp.c: Use string.h, not gdb_string.h.
349 * mi/mi-main.c: Use string.h, not gdb_string.h.
350 * mi/mi-parse.c: Use string.h, not gdb_string.h.
351 * microblaze-rom.c: Use string.h, not gdb_string.h.
352 * microblaze-tdep.c: Use string.h, not gdb_string.h.
353 * mingw-hdep.c: Use string.h, not gdb_string.h.
354 * minidebug.c: Use string.h, not gdb_string.h.
355 * minsyms.c: Use string.h, not gdb_string.h.
356 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
357 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
358 * mips-tdep.c: Use string.h, not gdb_string.h.
359 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
360 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
361 * mipsread.c: Use string.h, not gdb_string.h.
362 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
363 * mn10300-tdep.c: Use string.h, not gdb_string.h.
364 * monitor.c: Use string.h, not gdb_string.h.
365 * moxie-tdep.c: Use string.h, not gdb_string.h.
366 * mt-tdep.c: Use string.h, not gdb_string.h.
367 * nbsd-tdep.c: Use string.h, not gdb_string.h.
368 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
369 * nto-procfs.c: Use string.h, not gdb_string.h.
370 * nto-tdep.c: Use string.h, not gdb_string.h.
371 * objc-lang.c: Use string.h, not gdb_string.h.
372 * objfiles.c: Use string.h, not gdb_string.h.
373 * opencl-lang.c: Use string.h, not gdb_string.h.
374 * osabi.c: Use string.h, not gdb_string.h.
375 * osdata.c: Use string.h, not gdb_string.h.
376 * p-exp.y: Use string.h, not gdb_string.h.
377 * p-lang.c: Use string.h, not gdb_string.h.
378 * p-typeprint.c: Use string.h, not gdb_string.h.
379 * parse.c: Use string.h, not gdb_string.h.
380 * posix-hdep.c: Use string.h, not gdb_string.h.
381 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
382 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
383 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
384 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
385 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
386 * printcmd.c: Use string.h, not gdb_string.h.
387 * procfs.c: Use string.h, not gdb_string.h.
388 * prologue-value.c: Use string.h, not gdb_string.h.
389 * python/py-auto-load.c: Use string.h, not gdb_string.h.
390 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
391 * ravenscar-thread.c: Use string.h, not gdb_string.h.
392 * regcache.c: Use string.h, not gdb_string.h.
393 * registry.c: Use string.h, not gdb_string.h.
394 * remote-fileio.c: Use string.h, not gdb_string.h.
395 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
396 * remote-mips.c: Use string.h, not gdb_string.h.
397 * remote-sim.c: Use string.h, not gdb_string.h.
398 * remote.c: Use string.h, not gdb_string.h.
399 * reverse.c: Use string.h, not gdb_string.h.
400 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
401 * ser-base.c: Use string.h, not gdb_string.h.
402 * ser-go32.c: Use string.h, not gdb_string.h.
403 * ser-mingw.c: Use string.h, not gdb_string.h.
404 * ser-pipe.c: Use string.h, not gdb_string.h.
405 * ser-tcp.c: Use string.h, not gdb_string.h.
406 * ser-unix.c: Use string.h, not gdb_string.h.
407 * serial.c: Use string.h, not gdb_string.h.
408 * sh-tdep.c: Use string.h, not gdb_string.h.
409 * sh64-tdep.c: Use string.h, not gdb_string.h.
410 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
411 * skip.c: Use string.h, not gdb_string.h.
412 * sol-thread.c: Use string.h, not gdb_string.h.
413 * solib-dsbt.c: Use string.h, not gdb_string.h.
414 * solib-frv.c: Use string.h, not gdb_string.h.
415 * solib-osf.c: Use string.h, not gdb_string.h.
416 * solib-spu.c: Use string.h, not gdb_string.h.
417 * solib-target.c: Use string.h, not gdb_string.h.
418 * solib.c: Use string.h, not gdb_string.h.
419 * somread.c: Use string.h, not gdb_string.h.
420 * source.c: Use string.h, not gdb_string.h.
421 * sparc-nat.c: Use string.h, not gdb_string.h.
422 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
423 * sparc-tdep.c: Use string.h, not gdb_string.h.
424 * sparc64-tdep.c: Use string.h, not gdb_string.h.
425 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
426 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
427 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
428 * spu-linux-nat.c: Use string.h, not gdb_string.h.
429 * spu-multiarch.c: Use string.h, not gdb_string.h.
430 * spu-tdep.c: Use string.h, not gdb_string.h.
431 * stabsread.c: Use string.h, not gdb_string.h.
432 * stack.c: Use string.h, not gdb_string.h.
433 * std-regs.c: Use string.h, not gdb_string.h.
434 * symfile.c: Use string.h, not gdb_string.h.
435 * symmisc.c: Use string.h, not gdb_string.h.
436 * symtab.c: Use string.h, not gdb_string.h.
437 * target.c: Use string.h, not gdb_string.h.
438 * thread.c: Use string.h, not gdb_string.h.
439 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
440 * tilegx-tdep.c: Use string.h, not gdb_string.h.
441 * top.c: Use string.h, not gdb_string.h.
442 * tracepoint.c: Use string.h, not gdb_string.h.
443 * tui/tui-command.c: Use string.h, not gdb_string.h.
444 * tui/tui-data.c: Use string.h, not gdb_string.h.
445 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
446 * tui/tui-file.c: Use string.h, not gdb_string.h.
447 * tui/tui-layout.c: Use string.h, not gdb_string.h.
448 * tui/tui-out.c: Use string.h, not gdb_string.h.
449 * tui/tui-regs.c: Use string.h, not gdb_string.h.
450 * tui/tui-source.c: Use string.h, not gdb_string.h.
451 * tui/tui-stack.c: Use string.h, not gdb_string.h.
452 * tui/tui-win.c: Use string.h, not gdb_string.h.
453 * tui/tui-windata.c: Use string.h, not gdb_string.h.
454 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
455 * typeprint.c: Use string.h, not gdb_string.h.
456 * ui-file.c: Use string.h, not gdb_string.h.
457 * ui-out.c: Use string.h, not gdb_string.h.
458 * user-regs.c: Use string.h, not gdb_string.h.
459 * utils.c: Use string.h, not gdb_string.h.
460 * v850-tdep.c: Use string.h, not gdb_string.h.
461 * valarith.c: Use string.h, not gdb_string.h.
462 * valops.c: Use string.h, not gdb_string.h.
463 * valprint.c: Use string.h, not gdb_string.h.
464 * value.c: Use string.h, not gdb_string.h.
465 * varobj.c: Use string.h, not gdb_string.h.
466 * vax-tdep.c: Use string.h, not gdb_string.h.
467 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
468 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
469 * windows-nat.c: Use string.h, not gdb_string.h.
470 * xcoffread.c: Use string.h, not gdb_string.h.
471 * xml-support.c: Use string.h, not gdb_string.h.
472 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
473 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
475 2013-11-18 Tom Tromey <tromey@redhat.com>
477 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
479 * gnulib/aclocal.m4: Update.
480 * gnulib/config.in: Update.
481 * gnulib/configure: Update.
482 * gnulib/import/Makefile.am: Update.
483 * gnulib/import/Makefile.in: Update.
484 * gnulib/import/errno.in.h: New.
485 * gnulib/import/intprops.h: New.
486 * gnulib/import/m4/errno_h.m4: New.
487 * gnulib/import/m4/gnulib-cache.m4: Update.
488 * gnulib/import/m4/gnulib-comp.m4: Update.
489 * gnulib/import/m4/strerror.m4: New.
490 * gnulib/import/m4/strstr.m4: New.
491 * gnulib/import/m4/sys_socket_h.m4: New.
492 * gnulib/import/strerror-override.c: New.
493 * gnulib/import/strerror-override.h: New.
494 * gnulib/import/strerror.c: New.
495 * gnulib/import/strstr.c: New.
497 2013-11-18 Tom Tromey <tromey@redhat.com>
499 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
502 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
504 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
505 * sparc-tdep.h: And its prototype.
507 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
509 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
511 2013-11-18 Pedro Alves <palves@redhat.com>
513 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
516 2013-11-18 Joel Brobecker <brobecker@adacore.com>
518 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
519 to -list-features output.
521 2013-11-17 Joel Brobecker <brobecker@adacore.com>
523 * dwarf2expr.h (struct dwarf_expr_context_funcs)
524 <read_addr_from_reg>: Renames "read_reg".
525 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
527 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
528 Use read_addr_from_reg in place of read_reg.
529 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
530 in place of read_reg.
531 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
533 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
534 with dwarf_expr_read_addr_from_reg.
535 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
536 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
537 needs_frame_read_addr_from_reg.
539 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
541 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
543 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
545 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
548 2013-11-15 Tom Tromey <tromey@redhat.com>
551 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
552 (classify_name): Likewise. Prefer a field of "this" over a
554 (classify_inner_name, yylex): Update.
556 2013-11-15 Joel Brobecker <brobecker@adacore.com>
558 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
559 Extend the documentation a bit.
560 <get_reg_value>: New field.
561 * dwarf2loc.c (dwarf_expr_get_reg_value)
562 (needs_frame_get_reg_value): New functions.
563 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
565 * dwarf2-frame.c (get_reg_value): New function.
566 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
567 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
568 Use new callback to compute result_val.
570 2013-11-15 Alan Modra <amodra@gmail.com>
572 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
573 (ppc64_desc_entry_point): ..this. Update comments here and at
575 (ppc64_standard_linkage1, ppc64_standard_linkage2,
576 ppc64_standard_linkage3): Update comments.
577 (ppc64_standard_linkage4, ppc64_standard_linkage5,
578 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
580 (ppc64_standard_linkage4_target): New function.
581 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
582 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
583 nop match. Fix comment wrap.
585 2013-11-14 Pedro Alves <palves@redhat.com>
587 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
588 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
590 2013-11-14 Pedro Alves <palves@redhat.com>
592 * infrun.c (struct execution_control_state)
593 <stepped_after_stopped_by_watchpoint>: New field.
594 (get_inferior_stop_soon): New function.
595 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
596 moved to struct execution_control_state -- adjust. Use
597 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
599 (handle_signal_stop): New function, factored out from
600 handle_inferior_event.
602 2013-11-14 Pedro Alves <palves@redhat.com>
604 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
606 * breakpoint.c (bpstat_explains_signal): Adjust to return a
608 (explains_signal_watchpoint, base_breakpoint_explains_signal):
609 Adjust to return a boolean.
610 * breakpoint.h (enum bpstat_signal_value): Delete.
611 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
612 (bpstat_explains_signal): Likewise.
613 * infrun.c (handle_inferior_event) <random signal checks>:
614 bpstat_explains_signal now returns a boolean - adjust. No longer
615 consider hiding signals.
617 2013-11-14 Pedro Alves <palves@redhat.com>
619 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
620 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
621 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
623 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
624 instead of BPSTAT_SIGNAL_HIDE.
625 * infrun.c (handle_inferior_event): Rework random signal checks.
627 2013-11-14 Pedro Alves <palves@redhat.com>
629 * infrun.c (struct execution_control_state): Remove
630 'random_signal' field.
631 (handle_syscall_event): Use bpstat_causes_stop instead of
632 bpstat_explains_signal. Don't set ecs->random_signal.
633 (handle_inferior_event): New 'random_signal' local.
634 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
635 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
636 bpstat_explains_signal. Don't set ecs->random_signal.
637 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
640 2013-11-14 Pedro Alves <palves@redhat.com>
642 * infrun.c (handle_inferior_event): Move comment from the
643 function's body to the function's description, adjusted.
645 2013-11-14 Pedro Alves <palves@redhat.com>
647 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
648 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
649 Assert we never fall through out of the TARGET_WAITKIND_LOADED
652 2013-11-14 Tom Tromey <tromey@redhat.com>
654 * python/py-linetable.c (ltpy_has_line)
655 (ltpy_get_all_source_lines): Fix loop termination condition.
657 2013-11-14 Joel Brobecker <brobecker@adacore.com>
659 * mi/mi-parse.h (struct mi_parse) <language>: New field.
660 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
661 PARSE->LANGUAGE during command execution, if set.
662 * mi/mi-parse.c: Add "language.h" #include.
663 (mi_parse): Add parsing of "--language" command option.
665 * NEWS: Add entry mentioning the new "--language" command option.
667 2013-11-14 Pedro Alves <palves@redhat.com>
668 Joel Brobecker <brobecker@adacore.com>
670 * cli/cli-utils.h (extract_arg_const): Add declaration.
671 * cli/cli-utils.c (extract_arg_const): New function.
672 (extract_arg): Reimplement using extract_arg_const.
674 2013-11-14 Joel Brobecker <brobecker@adacore.com>
676 * language.h: Add "symtab.h" #include.
678 2013-11-13 Doug Evans <xdje42@gmail.com>
680 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
681 specific breakpoints, don't evaluate breakpoint condition if
684 2013-11-13 Keith Seitz <keiths@redhat.com>
688 * cp-support.c (insepct_type): Add support for substituting
689 namespace aliases, too.
690 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
691 for DW_TAG_imported_declaration.
692 (add_partial_symbol): Likewise.
693 (process_die): Handle namespace aliases with
694 read_namespace_alias.
695 (die_needs_namespace): Add DW_TAG_imported_declaration.
696 (read_namespace_alias): New function.
697 (load_partial_dies): Load DW_TAG_imported_declaration, too.
698 (new_symbol_full): Handle DW_TAG_imported_declaration.
700 2013-11-13 Keith Seitz <keiths@redhat.com>
702 * p-exp.y (uptok): Make first parameter const.
703 (yylex): Make `tokstart' and `tokptr' const.
704 Don't copy the lexer input to a temporary buffer.
706 Remove const workaround for parse_escape.
707 Create a temporary buffer for a convenience variable instead
708 of doing in-place modification of the input.
709 If a match is found with a different case from the input,
710 do not change the input at all.
711 Use `tmp' to construct the resultant stoken instead of
714 2013-11-13 Doug Evans <xdje42@gmail.com>
716 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
718 2013-11-13 Joel Brobecker <brobecker@adacore.com>
720 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
721 entry with "ada-exceptions".
723 2013-11-13 Joel Brobecker <brobecker@adacore.com>
725 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
726 after re-initialization of OBJFILE's obstack.
728 2013-11-12 Doug Evans <xdje42@gmail.com>
730 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
731 bs->stop != 0 on entry. Update function comment. Simplify early
732 exit for frame mismatch. Reindent rest of function.
734 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
736 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
739 2013-11-12 Doug Evans <dje@google.com>
741 Work around gold/15646.
742 * dwarf2read.c (read_index_from_section): Update comment.
743 (struct dw2_symtab_iterator): New member global_seen.
744 (dw2_symtab_iter_init): Initialize it.
745 (dw2_symtab_iter_next): Skip duplicate global symbols.
746 (dw2_expand_symtabs_matching): Ditto.
748 2013-11-12 Joel Brobecker <brobecker@adacore.com>
750 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
751 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
753 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
754 (mi_cmd_info_ada_exceptions): New function.
755 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
757 2013-11-12 Joel Brobecker <brobecker@adacore.com>
759 * ada-lang.h: #include "vec.h".
760 (struct ada_exc_info): New.
761 (ada_exc_info): New typedef.
762 (DEF_VEC_O(ada_exc_info)): New vector.
763 (ada_exceptions_list): Add declaration.
764 * ada-lang.c (ada_is_exception_sym)
765 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
766 (sort_remove_dups_ada_exceptions_list)
767 (ada_exc_search_name_matches, ada_add_standard_exceptions)
768 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
769 (ada_exceptions_list_1, ada_exceptions_list)
770 (info_exceptions_command): New function.
771 (_initialize_ada_language): Add "info exception" command.
773 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
776 * NEWS: Add linetable feature.
777 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
778 * python/py-linetable.c: New file.
779 * python/py-symtab.c (stpy_get_linetable): New function.
780 * python/python-internal.h (symtab_to_linetable_object): Declare.
781 (gdbpy_initialize_linetable): Ditto.
782 * python/python.c (_initialize_python): Call
783 gdbpy_initialize_linetable.
785 2013-11-11 Joel Brobecker <brobecker@adacore.com>
787 * ada-lang.c (create_ada_exception_catchpoint): Enhance
788 the documentation of fields "except_string" and "condition".
789 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
790 CONDITION on the heap before passing it to
791 create_ada_exception_catchpoint.
792 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
795 2013-11-11 Tom Tromey <tromey@redhat.com>
797 * config.in, configure: Rebuild.
798 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
800 2013-11-11 Joel Brobecker <brobecker@adacore.com>
802 * remote-sim.c (gdbsim_detach): Break declaration into
803 shorter lines. No code change.
805 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
807 * remote-sim.c (gdbsim_detach): Fix prototype.
809 2013-11-08 Doug Evans <dje@google.com>
811 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
812 (create_debug_types_hash_table): Only print debugging messages for
813 each TU if dwarf2-read >= 2.
814 (process_queue): Ditto.
815 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
818 2013-11-08 Tom Tromey <tromey@redhat.com>
820 * configure: Rebuild.
821 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
823 2013-11-08 Tom Tromey <tromey@redhat.com>
825 * configure, config.in: Rebuild.
826 * configure.ac: Remove unused configury.
828 2013-11-08 Tom Tromey <tromey@redhat.com>
830 * m32c-tdep.c: Use gdb_string.h.
832 2013-11-08 Tom Tromey <tromey@redhat.com>
834 * configure, config.in: Rebuild.
835 * configure.ac: Remove all link.h-related checks.
837 2013-11-08 Tom Tromey <tromey@redhat.com>
839 * acinclude.m4: Include common.m4.
840 * common/common.m4: New file.
841 * configure, config.in: Rebuild.
842 * configure.ac: Use GDB_AC_COMMON.
844 2013-11-08 Doug Evans <dje@google.com>
846 * NEWS: Mention that "set debug symtab-create" now accepts a
848 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
849 to set the symtab's primary flag.
850 * jit.c (finalize_symtab): Ditto.
851 * mdebugread.c (psymtab_to_symtab_1): Ditto.
852 * symfile.c (allocate_symtab): Only print debugging messages for
853 symtab_create_debug levels 2 and higher.
854 * symtab.c (symtab_create_debug): Change type to unsigned int.
855 (set_symtab_primary): New function.
856 (_initialize_symtab): Change "set debug symtab-create" to a
858 * symtab.h (set_symtab_primary): Declare.
859 (symtab_create_debug): Update decl.
861 2013-11-08 Tom Tromey <tromey@redhat.com>
863 * aix-thread.c (aix_thread_detach): Update.
864 * corelow.c (core_detach): Update.
865 * darwin-nat.c (darwin_detach): Update.
866 * dec-thread.c (dec_thread_detach): Update.
867 * gnu-nat.c (gnu_detach): Update.
868 * go32-nat.c (go32_detach): Update.
869 * inf-ptrace.c (inf_ptrace_detach): Update.
870 * inf-ttrace.c (inf_ttrace_detach): Update.
871 * linux-fork.c (linux_fork_detach): Update.
872 * linux-fork.h (linux_fork_detach): Update.
873 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
874 local for const-correctness.
875 * linux-thread-db.c (thread_db_detach): Update.
876 * monitor.c (monitor_detach): Update.
877 * nto-procfs.c (procfs_detach): Update.
878 * procfs.c (procfs_detach): Update.
879 * record.c (record_detach): Update.
880 * record.h (record_detach): Update.
881 * remote-m32r-sdi.c (m32r_detach): Update.
882 * remote-mips.c (mips_detach): Update.
883 * remote-sim.c (gdbsim_detach): Update.
884 * remote.c (remote_detach_1, remote_detach)
885 (extended_remote_detach): Update.
886 * sol-thread.c (sol_thread_detach): Update.
887 * target.c (target_detach): Make "args" const.
888 (init_dummy_target): Update.
889 * target.h (struct target_ops) <to_detach>: Make argument const.
890 (target_detach): Likewise.
891 * windows-nat.c (windows_detach): Update.
893 2013-11-07 Doug Evans <dje@google.com>
896 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
897 and align fields for PT_GNU_RELRO segments.
899 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
902 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
904 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
906 * NEWS: Document Python temporary breakpoint support.
907 * python/py-breakpoint.c (bppy_get_temporary): New function.
908 (bppy_init): New keyword: temporary. Parse it and set breakpoint
909 to temporary if True.
911 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
913 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
914 removed to allow analyzing unconditional branch instructions
915 with PC-relative offsets of zero.
917 2013-11-07 Yao Qi <yao@codesourcery.com>
919 * mi/mi-cmd-var.c: Include "language.h".
920 (mi_cmd_var_info_expression): Get language name from
922 * varobj.c (varobj_language_string): Remove.
923 (variable_language): Remove declaration.
925 (varobj_get_language): Change the type of return value.
926 (variable_language): Remove.
927 * varobj.h (enum varobj_languages): Remove.
928 (varobj_language_string): Remove declaration.
929 (varobj_get_language): Update declaration.
931 2013-11-07 Yao Qi <yao@codesourcery.com>
933 * language.h (struct language_defn) <la_natural_name>: New
935 * ada-lang.c (ada_language_defn): Initialize field
937 * c-lang.c (c_language_defn): Likewise.
938 (cplus_language_defn, asm_language_defn): Likewise.
939 * d-lang.c (d_language_defn): Likewise.
940 * f-lang.c (f_language_defn): Likewise.
941 * go-lang.c (go_language_defn): Likewise.
942 * jv-lang.c (java_language_defn): Likewise.
943 * language.c (unknown_language_defn ): Likewise.
944 (auto_language_defn): Likewise.
945 * m2-lang.c (m2_language_defn): Likewise.
946 * objc-lang.c (objc_language_defn): Likewise.
947 * opencl-lang.c (opencl_language_defn): Likewise.
948 * p-lang.c (pascal_language_defn): Likewise.
950 2013-11-07 Yao Qi <yao@codesourcery.com>
952 * language.c (language_str): Return const char *.
953 (add_language): Add const to 'language_names'
954 * language.h (struct language_defn) <la_name>: Add const.
955 (language_str: Update declaration.
957 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
959 * s390-linux-nat.c (s390_read_description): Consider the TE field
960 in the HWCAP for determining 'have_regset_tdb'.
962 2013-11-06 Will Newton <will.newton@linaro.org>
965 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
966 values. (read_partial_die): Likewise.
968 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
971 * top.c (command_line_input): Unify interactivity tests to use
972 input_from_terminal_p.
973 * event-top.c (command_line_handler): Likewise.
975 2013-11-06 Yao Qi <yao@codesourcery.com>
977 * Makefile.in (check-perf): New target.
979 2013-11-05 Will Newton <will.newton@linaro.org>
982 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
983 (arm_print_float_info): Likewise.
985 2013-11-04 Anton Blanchard <anton@samba.org>
987 * target.c (memory_xfer_partial): Cap write to 4KB.
989 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
991 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
992 probe scan even when the arch provides no get_longjmp_target.
994 2013-10-31 Pedro Alves <palves@redhat.com>
996 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
997 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
998 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
999 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1000 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1001 <bpstat handling>: If the bpstat chain wants the signal to be
1002 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1005 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1007 * breakpoint.c (update_watchpoint): Update error message and add
1008 an additional error message.
1010 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1012 * s390-tdep.h: Rename to...
1013 * s390-linux-tdep.h: ...here.
1014 * s390-tdep.c: Rename to...
1015 * s390-linux-tdep.c: ...here. Adjust #include.
1016 * s390-nat.c: Rename to...
1017 * s390-linux-nat.c: ...here. Adjust #include.
1018 * config/s390/s390.mh: Rename to...
1019 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1021 * configure.host: Reflect host rename "s390" -> "linux".
1022 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1023 * Makefile.in (ALL_TARGET_OBS): Likewise.
1024 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1026 (ALLDEPFILES): Reflect rename of .c files.
1028 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1030 * s390-nat.c: Whitespace cleanup.
1031 * s390-tdep.c: Likewise.
1032 * s390-tdep.h: Remove empty line at end of file.
1034 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1036 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1039 2013-10-29 Tom Tromey <tromey@redhat.com>
1041 * utils.c (reg): Move undefinition...
1042 * gdb_curses.h: ... here. Update comment to mention AIX.
1044 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1046 * exec.h (add_target_sections_of_objfile): New declaration.
1047 * exec.c (add_target_sections_of_objfile): New function.
1048 * symfile.c (add_symbol_file_command): Update current target sections.
1049 (remove_symbol_file_command): New command.
1050 (symfile_free_objfile): New function.
1051 (_initialize_symfile): Register observer for free_objfile events.
1052 * NEWS: Add description of the remove-symbol-file command.
1053 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1054 * objfiles.c (free_objfile): Notify free_objfile.
1055 (is_addr_in_objfile): New function.
1056 * objfiles.h (is_addr_in_objfile): New declaration.
1057 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1058 events instead of solib_unloaded events.
1059 (_initialize_printcmd): Register observer for free_objfile instead
1060 of solib_unloaded notifications.
1061 * solib.c (remove_user_added_objfile): New function.
1062 (_initialize_symfile): Add remove-symbol-file.
1064 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1066 * infcmd.c (default_print_one_register_info): Use val_print to
1067 print all values even optimized out or unavailable ones. Don't
1068 try to print a raw form of optimized out or unavailable values.
1070 2013-10-29 Yao Qi <yao@codesourcery.com>
1072 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1073 parameter 'arg' instead of from program_space_data.
1074 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1075 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1076 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1077 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1078 * inflow.c (inflow_inferior_data_cleanup): Get data from
1079 parameter 'arg' instead of inferior_data.
1080 * registry.h: Add comments.
1082 2013-10-28 Pedro Alves <palves@redhat.com>
1084 * breakpoint.c (watchpoints_triggered)
1085 <!target_stopped_data_address>: Hardcode return 1.
1087 2013-10-28 Pedro Alves <palves@redhat.com>
1089 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1092 2013-10-28 Pedro Alves <palves@redhat.com>
1094 * infrun.c (process_event_stop_test): New function, factored out
1095 from handle_inferior_event.
1096 (handle_inferior_event): 'process_event_stop_test' is now a
1097 function instead of a goto label -- adjust.
1099 2013-10-28 Pedro Alves <palves@redhat.com>
1101 * infrun.c (handle_inferior_event): Move process_event_stop_test
1102 goto label to the else branch of the ecs->random_signal check,
1103 along with FRAME and GDBARCH re-fetching.
1105 2013-10-28 Pedro Alves <palves@redhat.com>
1107 * infrun.c (switch_back_to_stepped_thread): New function, factored
1108 out from handle_inferior_event.
1109 (handle_inferior_event): Adjust to call
1110 switch_back_to_stepped_thread. Call it also at the tail of the
1111 random signal handling, and return, instead of also handling
1112 random signals just before the stepping tests.
1114 2013-10-28 Pedro Alves <palves@redhat.com>
1116 * infrun.c (clear_stop_func): Delete.
1117 (handle_inferior_event): Don't call clear_stop_func and don't
1118 clear 'ecs->random_signal'.
1120 2013-10-27 Yao Qi <yao@codesourcery.com>
1122 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1123 (varobj_create, varobj_get_path_expr): Update.
1124 (varobj_value_has_mutated, varobj_update): Likewise.
1125 (create_child_with_value, new_root_variable): Likewise.
1126 (number_of_children, name_of_variable): Likewise.
1127 (value_of_child, my_value_of_variable): Likewise.
1128 (varobj_value_is_changeable_p): Likewise.
1130 2013-10-25 Yao Qi <yao@codesourcery.com>
1132 * language.h (struct lang_varobj_ops): Declare.
1133 (struct language_defn) <la_varobj_ops>: New field.
1134 * ada-lang.c: Include "varobj.h"
1135 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1137 * c-lang.c: Include "varobj.h"
1138 (c_language_defn): Initialize field 'la_varobj_ops' with
1140 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1142 (asm_language_defn): Initialize field 'la_varobj_ops' with
1144 (minimal_language_defn): Likewise.
1145 * d-lang.c (d_language_defn): Likewise.
1146 * f-lang.c (f_language_defn): Likewise.
1147 * go-lang.c (go_language_defn): Likewise.
1148 * m2-lang.c (m2_language_defn): Likewise.
1149 * objc-lang.c (objc_language_defn): Likewise.
1150 * opencl-lang.c (opencl_language_defn): Likewise.
1151 * p-lang.c (pascal_language_defn): Likewise.
1152 * language.c (unknown_language_defn): Likewise.
1153 (auto_language_defn): Likewise.
1154 (local_language_defn): Likewise.
1155 * jv-lang.c (java_language_defn): Initialize field
1156 'la_varobj_ops' with java_varobj_ops.
1157 * varobj.c (varobj_create): Update.
1158 * varobj.h (default_varobj_ops): Define macro.
1160 2013-10-25 Pedro Alves <palves@redhat.com>
1162 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1164 (cp_print_static_field): If the value is entirely optimized out,
1165 print <optimized out> here.
1166 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1168 * p-valprint.c (pascal_object_print_static_field): If the value is
1169 entirely optimized out, print <optimized out> here.
1170 * valops.c (do_search_struct_field)
1171 (value_struct_elt_for_reference): No longer handle a NULL static
1173 * value.c (value_static_field): Return an optimized out value
1176 2013-10-25 Yao Qi <yao@codesourcery.com>
1178 * remote.c (remote_traceframe_info): Return early if
1179 traceframe is not selected.
1181 2013-10-25 Yao Qi <yao@codesourcery.com>
1183 * tracepoint.c (traceframe_fun): Remove.
1184 (traceframe_sal): Remove.
1185 (set_traceframe_context): Add local variables.
1187 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1189 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1192 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1194 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1195 failure from register information collection.
1197 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1199 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1201 (linux_corefile_thread_callback): Update accordingly.
1202 (linux_make_corefile_notes): Likewise.
1204 2013-10-24 Pedro Alves <palves@redhat.com>
1206 * NEWS (New options): Mention set/show startup-with-shell.
1207 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1209 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1210 startup-with-shell'.
1211 (show_startup_with_shell): New function.
1212 (_initialize_fork_child): Register the set/show startup-with-shell
1214 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1215 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1216 * procfs.c (procfs_init_inferior): Remove comment.
1217 * infcmd.c (startup_with_shell): New global.
1218 * inferior.h (startup_with_shell): Declare global.
1219 (STARTUP_WITH_SHELL): Delete.
1220 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1222 2013-10-23 Pedro Alves <palves@redhat.com>
1224 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1225 * common/signals.c: Include "gdb_assert.h".
1226 (signals): New field 'symbol'.
1227 (SET): Use the 'symbol' parameter.
1228 (gdb_signal_to_symbol_string): New function.
1229 * infrun.c (handle_inferior_event) <random signal>: In debug
1230 output, print the random signal enum as string in addition to its
1232 * target/waitstatus.c (target_waitstatus_to_string): Print the
1233 signal's enum value as string instead of the (POSIX) signal name.
1235 2013-10-23 Gary Benson <gbenson@redhat.com>
1238 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1239 from 32 to 18. Adjusted fscanf format string accordingly.
1240 (Avoids leaving cmd unterminated.)
1241 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1242 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1243 that local_address and remote_address will not overflow.
1244 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1245 leaving dependencies unterminated. Parse size as "%u" to match
1248 2013-10-22 Pedro Alves <palves@redhat.com>
1250 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1251 set ecs->random signal.
1253 2013-10-22 Pedro Alves <palves@redhat.com>
1255 * infrun.c (keep_going): Update comments.
1257 2013-10-22 Pedro Alves <palves@redhat.com>
1259 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1260 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1262 2013-10-22 Pedro Alves <palves@redhat.com>
1264 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1266 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1267 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1268 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1269 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1270 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1271 (GDB_SIGNAL_LAST): Change description string.
1272 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1273 Adjust to signal renaming.
1274 * darwin-nat.c (darwin_decode_message): Likewise.
1276 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1278 * MAINTAINERS (Write After Approval): Add myself to the list.
1280 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1282 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1283 forced off, downgrade them to software watchpoints if possible,
1284 and error out if not possible.
1285 (watch_command_1): Move watchpoint type selection closer to
1286 watchpoint creation, and extend the comments.
1288 2013-10-18 Pedro Alves <palves@redhat.com>
1291 * infrun.c (handle_inferior_event): Keep going if we got a random
1292 signal we should not stop for, instead of falling through to the
1295 2013-10-18 Yao Qi <yao@codesourcery.com>
1297 * c-varobj.c (cplus_number_of_children): Fix indentation.
1299 2013-10-17 Tom Tromey <tromey@redhat.com>
1302 * printcmd.c (printcmd): Call gdb_flush.
1304 2013-10-17 Tom Tromey <tromey@redhat.com>
1306 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1307 (elf_locate_sections): Update.
1309 2013-10-17 Yao Qi <yao@codesourcery.com>
1311 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1312 * ada-varobj.c: Remove the include of ada-varobj.h.
1313 (ada_varobj_get_number_of_children): Declare.
1314 (ada_varobj_get_name_of_child): Make it static.
1315 (ada_varobj_get_path_expr_of_child): Likewise.
1316 (ada_varobj_get_value_of_child): Likewise.
1317 (ada_varobj_get_type_of_child): Likewise.
1318 (ada_varobj_get_value_of_array_variable): Likewise.
1319 * ada-varobj.h: Remove.
1321 2013-10-17 Yao Qi <yao@codesourcery.com>
1323 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1324 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1325 * ada-varobj.c: Include "varobj.h".
1326 (ada_number_of_children): New. Moved from varobj.c.
1327 (ada_name_of_variable, ada_name_of_child): Likewise.
1328 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1329 (ada_type_of_child, ada_value_of_variable): Likewise.
1330 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1331 (ada_varobj_ops): New.
1332 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1333 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1334 * gdbtypes.h (get_target_type): Declare.
1335 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1337 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1338 (ANONYMOUS_UNION_NAME): Likewise.
1339 (get_type, get_value_type, get_target_type): Remove declarations.
1340 (value_get_print_value, varobj_value_get_print_value): Likewise.
1341 (c_number_of_children, c_name_of_variable): Likewise.
1342 (c_name_of_child, c_path_expr_of_child): Likewise.
1343 (c_value_of_child, c_type_of_child): Likewise.
1344 (c_value_of_variable, cplus_number_of_children): Likewise.
1345 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1346 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1347 (cplus_value_of_child, cplus_type_of_child): Likewise.
1348 (cplus_value_of_variable, java_number_of_children): Likewise.
1349 (java_name_of_variable, java_name_of_child): Likewise.
1350 (java_path_expr_of_child, java_value_of_child): Likewise.
1351 (java_type_of_child, java_value_of_variable): Likewise.
1352 (ada_number_of_children, ada_name_of_variable): Likewise.
1353 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1354 (ada_value_of_child, ada_type_of_child): Likewise.
1355 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1356 (ada_value_has_mutated): Likewise.
1357 (struct language_specific): Move it to varobj.h.
1358 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1359 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1361 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1363 (is_anonymous_child): Move it to c-varobj.c and rename to
1364 varobj_is_anonymous_child. Caller update.
1365 (get_type): Move it to c-varobj.c.
1366 (get_value_type): Rename it varobj_get_value_type. Make it
1368 (get_target_type): Move it gdbtypes.c.
1369 (varobj_formatted_print_options): New function.
1370 (value_get_print_value): Rename it to
1371 varobj_value_get_print_value and make it extern.
1372 (varobj_value_is_changeable_p): Make it extern.
1373 (adjust_value_for_child_access): Move it to c-varobj.c.
1374 (default_value_is_changeable_p): Rename it to
1375 varobj_default_value_is_changeable_p. Make it extern.
1376 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1377 (c_name_of_child, c_path_expr_of_child): Likewise.
1378 (c_value_of_child, c_type_of_child): Likewise.
1379 (c_value_of_variable, cplus_number_of_children): Likewise.
1380 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1381 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1382 (cplus_value_of_child, cplus_type_of_child): Likewise.
1383 (cplus_value_of_variable): Likewise.
1384 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1385 (java_name_of_child, java_path_expr_of_child): Likewise.
1386 (java_value_of_child, java_type_of_child): Likewise.
1387 (java_value_of_variable): Likewise.
1388 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1389 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1390 (ada_value_of_child, ada_type_of_child): Likewise.
1391 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1392 (ada_value_has_mutated): Likewise.
1393 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1394 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1395 (c_varobj_ops, cplus_varobj_ops): Declare.
1396 (java_varobj_ops, ada_varobj_ops): Declare.
1397 (varobj_default_value_is_changeable_p): Declare.
1398 (varobj_value_is_changeable_p): Declare.
1399 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1400 (varobj_get_path_expr_parent): Declare.
1401 (varobj_value_get_print_value): Declare.
1402 (varobj_formatted_print_options): Declare.
1403 (varobj_restrict_range): Declare.
1405 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1407 * target/waitstatus.h (target_waitkind): Remove spurious
1408 character from the comments.
1410 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1412 * gdbarch.sh (get_longjmp_target): Add method documentation.
1413 * gdbarch.h: Regenerate.
1415 2013-10-16 Tom Tromey <tromey@redhat.com>
1417 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1420 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1422 * gcore.in: Call GDB using the full path to the gcore script.
1423 Error out if the GDB binary is not found.
1425 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1428 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1431 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1434 * target.c (target_disable_btrace): Fix invalid return value for
1436 (target_teardown_btrace): Likewise.
1438 2013-10-14 Yao Qi <yao@codesourcery.com>
1440 * varobj.c (struct varobj): Move most of the fields to
1442 (struct varobj_dynamic): New struct.
1443 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1444 (varobj_has_more): Likewise.
1445 (dynamic_varobj_has_child_method): Likewise.
1446 (update_dynamic_varobj_children): Likewise.
1447 (varobj_get_num_children): Likewise.
1448 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1449 (install_new_value_visualizer): Likewise.
1450 (install_new_value_visualizer, install_new_value): Likewise.
1451 (varobj_update, new_variable, free_variable): Likewise.
1452 (my_value_of_variable, value_get_print_value): Likewise.
1453 (install_visualizer): Change the type of parameter 'var' to
1454 'struct varobjd_dynamic *'. Callers update.
1455 * varobj.h (struct varobj): Moved from varobj.c.
1456 (struct varobj) <dynamic>: New field.
1458 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1460 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1461 as the preferred name of r30.
1462 * nios2-linux-tdep.c (reg_offsets): Likewise.
1463 * features/nios2-cpu.xml: Likewise.
1464 * features/nios2-linux.c: Regenerated.
1465 * features/nios2.c: Regenerated.
1466 * regformats/nios2-linux.dat: Regenerated.
1468 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1470 Canonicalize directories for EXEC_FILENAME.
1471 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1473 * utils.c (gdb_realpath_keepfile): New function.
1474 * utils.h (gdb_realpath_keepfile): New declaration.
1476 2013-10-11 Doug Evans <dje@google.com>
1478 * Makefile.in (GDBFLAGS): New variable.
1481 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1483 * NEWS: Add entry documenting the new "-catch-assert" and
1484 "-catch-exception" GDB/MI commands.
1486 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1488 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1490 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1491 "enabled". Set B->ENABLE_STATE accordingly.
1492 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1494 (create_ada_exception_catchpoint): Add declaration.
1495 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1496 (create_ada_exception_catchpoint): Make non-static. Add new
1497 parameter "disabled". Use it in call to
1498 init_ada_exception_breakpoint.
1499 (catch_ada_exception_command): Add parameter "enabled" in call
1500 to create_ada_exception_catchpoint.
1501 (catch_assert_command): Likewise.
1503 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1505 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1506 "catch-exception" commands.
1507 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1508 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1510 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1512 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1513 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1514 of all its enumerates with "ada_". Update the rest of this
1517 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1519 * ada-lang.c (ada_decode_exception_location): Delete.
1520 (create_ada_exception_catchpoint): Remove arguments "sal",
1521 "addr_string" and "ops". Add argument "ex_kind" instead.
1522 Adjust implementation accordingly, calling ada_exception_sal
1523 to get the entities it no longer gets passed as arguments.
1524 Document the function's arguments.
1525 (catch_ada_exception_command): Use catch_ada_exception_command_split
1526 instead of ada_decode_exception_location, and update call to
1527 create_ada_exception_catchpoint.
1528 (catch_ada_assert_command_split): Renames
1529 ada_decode_assert_location. Remove parameters "addr_string" and
1530 "ops", and now returns void. Adjust implementation accordingly.
1531 Update the function documentation.
1532 (catch_assert_command): Use catch_ada_assert_command_split
1533 instead of ada_decode_assert_location. Update call to
1534 create_ada_exception_catchpoint.
1536 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1538 * utils.h (perror_warning_with_name): Add declaration.
1539 * utils.c (perror_warning_with_name): New function.
1540 * cli/cli-cmds.c (source_script_with_search): Add call to
1541 perror_warning_with_name if from_tty is nul.
1543 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1545 * utils.c (perror_string): New function, extracted out of
1546 throw_perror_with_name.
1547 (throw_perror_with_name): Rework to use perror_string.
1549 2013-10-11 Yao Qi <yao@codesourcery.com>
1551 * remote.c (discard_pending_stop_replies_in_queue): Update
1553 (struct stop_reply) <rs>: New field.
1554 (remove_stop_reply_of_remote_state): New function.
1555 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1556 Callers update. Pass remove_stop_reply_of_remote_state to
1558 (remote_parse_stop_reply): Initialize field 'rs'.
1560 2013-10-10 Will Newton <will.newton@linaro.org>
1562 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1565 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1567 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1568 serial_baud_show_cmd.
1569 (_initialize_cli_cmds): Delete the code creating the
1570 "set/show remotebaud" commands.
1571 * serial.c (baud_rate): Move here from top.c.
1572 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1573 (_initialize_serial): Create "set/show serial baud" commands.
1574 Add "set/show remotebaud" command aliases.
1575 * top.c (baud_rate): Moved to serial.c.
1576 * NEWS: Document the new "set/show serial baud" commands,
1577 replacing "set/show remotebaud".
1579 2013-10-09 Pedro Alves <palves@redhat.com>
1581 * breakpoint.c (insert_bp_location): Use memory_error_message to
1582 build the memory error string.
1583 * c-lang.c: Include "gdbcore.h".
1584 (c_get_string): Use memory_error to throw error.
1585 (target_xfer_memory_error): Delete.
1586 (memory_error_message): New, factored out from
1587 target_xfer_memory_error.
1588 (memory_error): Change parameter type to target_xfer_error.
1590 (read_memory): Use memory_error instead of
1591 target_xfer_memory_error.
1592 * gdbcore.h: Include "target.h".
1593 (memory_error): Change parameter type to target_xfer_error.
1594 (memory_error_message): Declare function.
1595 * target.c (target_read_memory, target_read_stack)
1596 (target_write_memory, target_write_raw_memory): Return
1597 TARGET_XFER_E_IO on error. Adjust comments.
1598 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1600 * target.h (target_read, target_insert_breakpoint)
1601 (target_remove_breakpoint): Adjust comments.
1602 * valprint.c (partial_memory_read): Rename parameter, and adjust
1604 (val_print_string): Use memory_error_message to build the memory
1607 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1609 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1610 result variable. Rename variable fopen_e_ever_failed to
1611 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1613 2013-10-09 Pedro Alves <palves@redhat.com>
1615 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1616 (monitor_write_memory_longlongs, monitor_write_memory_block):
1617 Constify 'myaddr' parameter.
1618 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1620 (monitor_xfer_partial): New function.
1621 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1622 hook. Install a to_xfer_partial hook.
1624 2013-10-09 Tom Tromey <tromey@redhat.com>
1626 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1627 bfd_get_alt_debug_link_info.
1629 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1631 New flag OBJF_NOT_FILENAME.
1632 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1633 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1635 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1636 symbol_file_add_from_bfd.
1637 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1639 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1641 * objfiles.h (OBJF_NOT_FILENAME): New.
1643 2013-10-08 Tom Tromey <tromey@redhat.com>
1645 * Makefile.in (SFILES): Add build-id.c.
1646 (HFILES_NO_SRCDIR): Add build-id.h.
1647 * build-id.c: New file, largely from elfread.c. Modified
1649 * build-id.h: New file.
1650 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1651 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1652 Search for dwz file using build-id.
1653 * elfread.c (build_id_bfd_get, build_id_verify)
1654 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1656 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1658 * ada-lang.c (compare_names_with_case): Renamed from
1659 compare_names, adding a new parameter "casing" and its handling.
1660 New function documentation.
1661 (compare_names): New function, implemented using
1662 compare_names_with_case.
1664 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1666 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1668 2013-10-07 Tom Tromey <tromey@redhat.com>
1670 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1671 demangled_names_hash.
1672 (free_objfile): Don't delete the demangled_names_hash.
1673 * objfiles.h (struct objfile_per_bfd_storage)
1674 <demangled_names_hash>: New field.
1675 (struct objfile) <demangled_names_hash>: Move to
1676 objfile_per_bfd_storage.
1677 * symfile.c (reread_symbols): Don't delete the
1678 demangled_names_hash.
1679 * symtab.c (create_demangled_names_hash): Update.
1680 (symbol_set_names): Update.
1682 2013-10-07 Tom Tromey <tromey@redhat.com>
1684 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1685 needs_relocations>: New fields.
1686 (gdb_bfd_requires_relocations): New function.
1687 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1688 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1689 the BFD needs relocations applied.
1691 2013-10-07 Pedro Alves <palves@redhat.com>
1693 PR breakpoints/11568
1694 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1695 the thread list" instead of "gone".
1697 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1699 * NEWS: Mention new convenience variable $_exitsignal.
1700 * corelow.c (core_open): Reset exit convenience variables. Set
1701 $_exitsignal to the uncaught signal which generated the corefile.
1702 * infrun.c (handle_inferior_event): Reset exit convenience
1703 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1704 (clear_exit_convenience_vars): New function.
1705 * inferior.h (clear_exit_convenience_vars): New prototype.
1707 2013-10-06 Yao Qi <yao@codesourcery.com>
1709 * varobj.h: Add comments to enum varobj_languages.
1711 2013-10-04 Doug Evans <dje@google.com>
1713 Add support for DWP file format version 2.
1714 * NEWS: Mention support for DWP file format version 2.
1715 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1716 union of asection, containing_section. New fields virtual_offset
1717 and is_virtual. Change type of readin filed from int to char.
1718 (dwo_sections, dwo_file): Tweak comments.
1719 (dwp_v2_section_ids): New enum.
1720 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1722 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1724 (virtual_v2_dwo_sections): New struct.
1725 (dwp_hash_table): New fields version, nr_columns. Change type of
1726 section_pool field to a union.
1727 (dwp_file): New field version.
1728 (dwarf2_has_info): Check for virtual sections.
1729 (get_containing_section): New function.
1730 (get_section_bfd_owner, get_section_bfd_section): Call it.
1731 (dwarf2_locate_sections): Update.
1732 (dwarf2_section_empty_p): Update.
1733 (dwarf2_read_section): Handle virtual sections.
1734 (locate_dwz_sections): Update.
1735 (create_dwp_hash_table): Document and handle V2 format.
1736 (locate_v1_virtual_dwo_sections): Renamed from
1737 locate_virtual_dwo_sections and update. All callers updated.
1738 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1739 Delete arg htab. Rename arg section_index to unit_index.
1740 All callers updated.
1741 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1743 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1744 (lookup_dwo_unit_in_dwp): Add V2 support.
1745 (dwarf2_locate_dwo_sections): Update.
1746 (dwarf2_locate_common_dwp_sections): Renamed from
1747 dwarf2_locate_dwp_sections and update. All callers updated.
1748 (dwarf2_locate_v2_dwp_sections): New function.
1749 (open_and_init_dwp_file): Add V2 support.
1750 (read_str_index): New locals str_section, str_offsets_section.
1752 2013-10-04 Pedro Alves <palves@redhat.com>
1754 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1755 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1756 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1757 describing comments with references to ptid.h.
1758 * common/ptid.h: Remove intro description of constructors,
1759 accessors and predicates.
1760 (struct ptid): Reformat.
1761 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1762 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1763 describing comments.
1765 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1767 * aix-thread.c (sync_threadlists): Add missing ')' in call
1770 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1772 * procfs.c (procfs_init_inferior): Fix typo causing the build
1775 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1777 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1779 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1781 * mi/mi-main.c (run_one_inferior): Add function description.
1782 Make ARG a pointer to an integer whose value determines whether
1783 we should "run" or "start" the program.
1784 (mi_cmd_exec_run): Add handling of the "--start" option.
1785 Reject all other command-line options.
1786 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1788 2013-10-04 Yao Qi <yao@codesourcery.com>
1790 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1791 (struct notif_client) <pending_event>: Moved
1792 to struct remote_notif_state.
1794 (struct remote_notif_state) <pending_event>: New field.
1795 (notif_event_xfree): Declare.
1796 * remote-notif.c (handle_notification): Adjust.
1797 (notif_event_xfree): New function.
1798 (do_notif_event_xfree): Call notif_event_xfree.
1799 (remote_notif_state_xfree): Call notif_event_xfree to free
1800 each element in field pending_event.
1801 * remote.c (discard_pending_stop_replies): Remove declaration.
1802 (discard_pending_stop_replies_in_queue): Declare.
1803 (remote_close): Call discard_pending_stop_replies_in_queue
1804 instead of discard_pending_stop_replies.
1805 (remote_start_remote): Adjust.
1806 (stop_reply_xfree): Call notif_event_xfree.
1807 (notif_client_stop): Adjust initialization.
1808 (remote_notif_remove_all): Rename it to ...
1809 (remove_stop_reply_for_inferior): ... this. Update comments.
1810 Don't check INF is NULL.
1811 (discard_pending_stop_replies): Return early if notif_state is
1812 NULL. Adjust. Don't check INF is NULL.
1813 (remote_notif_get_pending_events): Adjust.
1814 (discard_pending_stop_replies_in_queue): New function.
1815 (remote_wait_ns): Likewise.
1817 2013-10-04 Yao Qi <yao@codesourcery.com>
1819 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1820 (notif_queue): Remove.
1821 (remote_notif_process): Add one parameter 'notif_queue'.
1822 Update comments. Callers update.
1823 (remote_async_get_pending_events_token): Remove.
1824 (remote_notif_register_async_event_handler): Remove.
1825 (remote_notif_unregister_async_event_handler): Remove.
1826 (handle_notification): Add parameter 'notif_queue'. Update
1827 comments. Callers update.
1828 (notif_xfree): Remove.
1829 (remote_notif_state_allocate): New function.
1830 (remote_notif_state_xfree): New function.
1831 (_initialize_notif): Remove code to allocate queue.
1832 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1833 (struct remote_notif_state): New.
1834 (handle_notification): Update declaration.
1835 (remote_notif_process): Likewise.
1836 (remote_notif_register_async_event_handler): Remove.
1837 (remote_notif_unregister_async_event_handler): Remove.
1838 (remote_notif_state_allocate): Declare.
1839 (remote_notif_state_xfree): Declare.
1840 * remote.c (struct remote_state) <notif_state>: New field.
1841 (remote_close): Don't call
1842 remote_notif_unregister_async_event_handler. Call
1843 remote_notif_state_xfree.
1844 (remote_open_1): Don't call
1845 remote_notif_register_async_event_handler. Call
1846 remote_notif_state_allocate.
1848 2013-10-04 Yao Qi <yao@codesourcery.com>
1850 * varobj.c (create_child_with_value): Remove 'const' from the
1851 type of parameter 'name'.
1852 (varobj_add_child): Likewise.
1853 (install_dynamic_child): Remove 'const' from the type of
1855 (varobj_add_child): Likewise.
1856 (create_child_with_value): Likewise. Update comments. Don't
1858 (update_dynamic_varobj_children): Duplicate 'name'
1859 and pass it to install_dynamic_child.
1861 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1863 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1864 conversion logic to occur after PyLong_Check. Comment on order
1865 change significance.
1866 * python/py-arch.c (archpy_disassemble): Comment on order of
1867 conversion for integers and longs.
1869 2013-10-03 Pedro Alves <palves@redhat.com>
1871 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1872 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1873 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1874 PTRACE_O_TRACEFORK is not supported.
1875 (linux_test_for_tracesysgood): New function.
1876 (linux_test_for_tracefork): New function, factored out from
1877 linux_check_ptrace_features, and also don't kill child_pid here.
1879 2013-10-03 Tristan Gingold <gingold@adacore.com>
1881 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1882 Remove verbose error reporting. Use detected state to
1883 thread_set_state call.
1884 (i386_darwin_dr_get): Fix return type. Remove verbose error
1886 Remove trailing spaces.
1888 2013-10-02 Pedro Alves <palves@redhat.com>
1890 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1891 val_print_optimized_out.
1892 * jv-valprint.c (java_print_value_fields): Likewise.
1893 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1894 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1895 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1896 new optimized out value.
1897 * findvar.c (address_from_register): Likewise.
1898 * frame.c (put_frame_register): Tweak error string to say the
1899 register was not saved, rather than optimized out.
1900 * infcmd.c (default_print_one_register_info): Adjust call to
1901 val_print_optimized_out. Use value_of_register instead of
1902 get_frame_register_value.
1903 * mi/mi-main.c (output_register): Use value_of_register instead of
1904 get_frame_register_value.
1905 * valprint.c (valprint_check_validity): Likewise.
1906 (val_print_optimized_out): New value parameter. If the value is
1907 lval_register, print <not saved> instead.
1908 (value_check_printable, val_print_scalar_formatted): Adjust calls
1909 to val_print_optimized_out.
1910 * valprint.h (val_print_optimized_out): New value parameter.
1911 * value.c (struct value) <optimized_out>: Extend comment.
1912 (error_value_optimized_out): New function.
1913 (require_not_optimized_out): Use it. Use a different string for
1914 lval_register values.
1915 * value.h (error_value_optimized_out): New declaration.
1916 * NEWS: Mention <not saved>.
1918 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1920 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1921 strcmp to compare two symtab filenames.
1923 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1925 * symtab.c (search_symbols_equal): Delete.
1926 (sort_search_symbols_remove_dups): Replace call to
1927 search_symbols_equal by call to compare_search_syms,
1928 adjusting as necessary.
1930 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1933 * python/python.c: Document gdb.execute command in Python help.
1935 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1937 * python/py-frame.c (frame_info_to_frame_object): Use
1938 gdbpy_convert_exception. Clean up Python object on failure.
1940 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1942 * python/lib/gdb/command/frame_filters.py
1943 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1944 (ShowFrameFilterPriority.invoke): Ditto.
1946 2013-10-01 Keith Seitz <keiths@redhat.com>
1948 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1949 (parse_linespec): Make 'argptr' const.
1950 Remove temporary cast of 'argptr' to const char **.
1951 (decode_line_full): Pass const pointer to parse_linespec.
1952 (decode_line_1): Likewise.
1953 (decode_objc): Make local variable 'new_argptr' const.
1954 (find_function_symbols): Remove temporary cast to char *
1956 * objc-lang.c (find_imps): Make argument 'method' const.
1958 * objc-lang.h (find_imps): Likewise.
1960 2013-10-01 Keith Seitz <keiths@redhat.com>
1962 * completer.c (skip_quoted_chars): Make all arguments const.
1964 (skip_quoted): Likewise.
1965 * completer.h (skip_quoted_chars): Likewise.
1966 (skip_quoted): Likewise.
1967 * defs.h (skip_quoted): Remove duplicate declaration.
1968 * jv-exp.y: Include completer.h.
1969 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1970 * p-exp.y: Include completer.h.
1972 2013-10-01 Keith Seitz <keiths@redhat.com>
1974 * c-exp.y (parse_number): Make first argument const.
1975 Make a copy of the input to manipulate.
1976 (c_parse_escape): Make first argument const.
1977 Make local variable 'tokptr' const.
1978 (parse_string_or_char): Make first two arguments const.
1979 (macro_original_text): Make const.
1980 (lex_one_token): Make local variable 'tokstart' const.
1981 Likewise for local variables named 'p'.
1982 Cast away const for struct stoken (temporary).
1983 * c-lang.h (c_parse_escpae): Make first argument const.
1984 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1986 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1988 * f-exp.y (parse_number): Make first argument const.
1989 (match_string_literal): Make local variable 'tokstart'
1991 (yylex): Make local variable 'p' const.
1992 Cast away const for struct stoken (temporary).
1993 * go-exp.y (parse_number): Make first argument const.
1994 (parse_string_or_char): Likewise.
1995 Make local variable 'tokstart' const.
1996 (lex_one_token): Likewise for numerous locals called 'p'.
1997 Cast away const for struct stoken (temporary).
1998 * jv-exp.y (parse_number): Make first argument const.
1999 Make local variables 'tokstart' and 'tokptr' const.
2000 Cast away const for call to skip_quoted (temporary).
2001 (yylex): Make local variable 'p' const.
2002 Cast away const for struct stoken (temporary).
2003 * m2-exp.y (parse_number): Make local variable 'p' const.
2004 (yylex): Likewise for 'tokstart'.
2005 Cast away const for struct stoken (temporary).
2006 Make local variable 'p' const.
2007 * macroexp.c (get_character_constant): Pass a const string
2009 (get_string_literal): Likewise.
2010 (macro_expand_next): Make first argument const.
2011 Cast away const for init_shared_buffer.
2012 * macroexp.h (macro_expand_next): Make first argument const.
2013 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2014 Pass a const string to c_parse_escape.
2015 Make local variables 'p' and 'namestart' const.
2016 * parse.c (lexptr): Make const.
2017 (prev_lexptr): Likewise.
2018 (find_template_name_end): Return const.
2019 Make argument const, too.
2020 (parse_exp_in_context): Make first argument const.
2021 Remove the entire const_hack.
2022 (parse_exp_in_context_1): Make first argument const.
2023 * parser-defs.h (find_template_name_end): Return const.
2024 Make argument const, too.
2025 (lexptr): Make const.
2026 (prev_lexptr): Likewise.
2027 * utils.c (parse_escape): Make second argument const.
2028 * utils.h (parse_escape): Likewise.
2030 2013-10-01 Keith Seitz <keiths@redhat.com>
2032 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2034 (block_lookup): Make 'raw_name' and 'name' const.
2035 * ada-lex.l (processString): Update for struct stoken.ptr.
2036 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2037 (operator_stoken): Likewise.
2038 (lex_one_token): Remove temporary cast to char * for
2040 * f-exp.y (yylex): Likewise.
2041 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2042 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2043 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2045 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2046 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2047 * linespec.c (struct ls_parser): Make 'stream' const.
2048 (find_parameter_list_end): Make argument 'input' and local
2050 (linespec_lexer_lex_string): Make local variables 'start' and
2052 Use skip_spaces_const instead of skip_spaces.
2053 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2055 (parse_linespec): Temporarily cast 'argptr' to const for
2056 'parser->lexer.stream'.
2057 * m2-exp.y (yylex): Remove temporary cast to char * for
2059 * objc-lang.c (add_msglist): Make local variable 'p' const.
2060 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2061 (exp : STRING): Make 'sp' const.
2062 (parse_number): Make argument 'p' const.
2063 * parser-defs.h (struct stoken): Make 'ptr' const.
2065 2013-10-01 Doug Evans <dje@google.com>
2067 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2069 2013-10-01 Yao Qi <yao@codesourcery.com>
2071 * varobj.c (c_value_of_root): Remove declaration.
2072 (cplus_value_of_root, java_value_of_root): Likewise.
2073 (ada_value_of_root): Likewise.
2074 (struct language_specific) <value_of_root>: Remove.
2075 (languages): Update initialization.
2076 (check_scope): Move earlier.
2077 (c_value_of_root): Move earlier and rename to ...
2078 (value_of_root_1): ... this.
2079 (value_of_root): Caller update.
2080 (cplus_value_of_root, java_value_of_root): Remove.
2081 (ada_value_of_root): Remove.
2083 2013-10-01 Yao Qi <yao@codesourcery.com>
2085 * varobj.c (varobj_format_string): Remove "unknown".
2086 (languages): Remove the first element.
2087 * varobj.h (enum varobj_languages): Remove vlang_c.
2089 2013-10-01 Yao Qi <yao@codesourcery.com>
2091 * varobj.c (struct language_specific) <language>: Remove.
2092 (languages): Update the initialization.
2094 2013-10-01 Yao Qi <yao@codesourcery.com>
2096 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2097 "solib-target.h". Include "windows-tdep.h".
2098 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2099 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2100 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2101 windows-tdep.o to gdb_target_obs.
2103 2013-10-01 Yao Qi <yao@codesourcery.com>
2105 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2107 (amd64_windows_init_abi): Don't call set_solib_ops and
2108 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2109 windows_init_abi instead.
2110 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2112 (i386_cygwin_init_abi): Don't call set_solib_ops,
2113 set_gdbarch_has_dos_based_file_system and
2114 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2115 windows_init_abi instead.
2116 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2117 (windows_init_abi): New function.
2118 (windows_iterate_over_objfiles_in_search_order): Make it
2120 * windows-tdep.h (windows_init_abi): Declare.
2121 (windows_iterate_over_objfiles_in_search_order): Remove
2124 2013-10-01 Jerome Guitton <guitton@adacore.com>
2126 Checked in by Joel Brobecker <brobecker@adacore.com>
2127 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2128 incomplete dictionnary instead of None in case of missing
2129 environment variables.
2130 (elinos_init): in case of an incomplete environment, best
2131 effort to load system libraries instead of abort.
2133 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2135 * ada-lang.c (ada_has_this_exception_support): Ignore
2136 mst_solib_trampoline minimal symbols.
2138 2013-09-30 Tristan Gingold <gingold@adacore.com>
2140 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2141 hardware watchpoint.
2142 (i386_darwin_dr_set): Support 32 and 64 bit states.
2143 (i386_darwin_dr_get): Likewise.
2144 (i386_darwin_dr_set_control): Make static.
2145 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2146 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2148 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2150 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2151 Replace TIDGET with ptid_get_lwp.
2152 Replace GET_LWP with ptid_get_lwp.
2153 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2154 Replace BUILD_THREAD with ptid_build.
2155 Replace BUILD_LWP with ptid_build.
2156 Replace PIDGET with ptid_get_pid.
2157 Replace TIDGET with ptid_get_lwp.
2158 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2159 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2160 Replace TIDGET with ptid_get_lwp.
2161 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2162 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2163 Replace TIDGET with ptid_get_lwp.
2164 Replace GET_LWP with ptid_get_lwp.
2165 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2167 * breakpoint.c: Likewise.
2168 * common/ptid.c (ptid_is_pid): Condense check for
2169 null_ptid and minus_one_ptid.
2170 (ptid_lwp_p): New function.
2171 (ptid_tid_p): New function.
2172 * common/ptid.h: Update comments for accessors.
2173 (ptid_lwp_p): New prototype.
2174 (ptid_tid_p): New prototype.
2175 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2176 * gcore.c: Replace PIDGET with ptid_get_pid.
2177 * gdbthread.h: Likewise.
2178 * gnu-nat.c: Likewise.
2179 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2180 Replace TIDGET with ptid_get_lwp.
2181 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2182 * hppanbsd-nat.c: Likewise.
2183 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2184 Replace TIDGET with ptid_get_lwp.
2185 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2186 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2187 * infcmd.c: Likewise.
2188 * inferior.h: Likewise.
2189 * inflow.c: Likewise.
2190 * infrun.c: Likewise.
2191 * linux-fork.c: Likewise.
2192 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2193 Replace GET_PID with ptid_get_pid.
2194 Replace is_lwp with ptid_lwp_p.
2195 Replace GET_LWP with ptid_get_lwp.
2196 Replace BUILD_LWP with ptid_build.
2198 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2200 * common/linux-btrace.c: Move sys/syscall.h out of the
2201 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2202 Also check for SYS_perf_event_open before attempting to buid.
2204 2013-09-27 Doug Evans <dje@google.com>
2206 * dwarf2read.c (dwarf2_section_info): Add comment.
2207 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2209 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2210 (dwarf2_read_section): Delete unused local "header". Add section
2211 name to error message.
2212 (create_dwo_in_dwp): Tweak comment.
2213 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2215 * dwarf2read.c (die_reader_specs): Tweak comment.
2216 (get_section_bfd_owner, get_section_bfd_section): New functions.
2217 (get_section_name, get_section_file_name): New functions.
2218 (get_section_id, get_section_flags): New functions.
2219 (*): Use new functions to access section fields.
2221 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2222 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2223 arg "htab". All callers updated.
2224 (create_debug_types_hash_table): Remove redundant copy of
2226 (create_dwo_in_dwp): Tweak comments.
2227 (read_str_index): Tweak comment. Record dwarf form name in static
2230 2013-09-27 Pedro Alves <palves@redhat.com>
2232 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2233 (remote_filename_p): Add comment.
2234 * remote.c (remote_filename_p): Adjust to use
2235 REMOTE_SYSROOT_PREFIX.
2236 * solib.c (solib_find): When deciding whether we need to add a
2237 directory separator, check whether the sysroot is "remote:"
2238 instead of checking whether the patch has a drive spec. Add
2241 2013-09-27 Pedro Alves <palves@redhat.com>
2243 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2245 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2248 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 Fix set debug frame output.
2251 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2252 SENTINEL_FRAME entry lower to match enum frame_type order.
2254 2013-09-26 Pierre Muller <muller@sourceware.org>
2256 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2257 AMD64_R15_REGNUM when a register index is expected.
2258 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2259 Substitute in array.
2260 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2261 (amd64_push_arguments): Substitute in integer_regnum array.
2263 2013-09-25 Doug Evans <dje@google.com>
2265 * objfiles.c (allocate_objfile): Move comment to better place.
2267 New option "set debug symfile on".
2268 * NEWS: Mention "set debug symfile".
2269 * Makefile.in (SFILES): Add symfile-debug.c.
2270 (COMMON_OBS): Add symfile-debug.o.
2271 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2272 objfile's symbol functions.
2273 * objfiles.h (objfile_set_sym_fns): Declare.
2274 * symfile-debug.c: New file.
2275 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2276 objfile's symbol functions.
2277 (reread_symbols): Ditto.
2279 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2281 (add_symtab_fns): Update prototype.
2282 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2283 (registered_sym_fns): ... this.
2284 (symtab_fns): Update.
2285 (add_symtab_fns): New arg "flavour". All callers updated.
2286 (find_sym_fns): Rewrite to use new sym_fns registry.
2288 * symfile.h (struct sym_fns): Add "objfile" argument to
2289 sym_read_linetable. All uses updated.
2291 * symtab.c (domain_name, search_domain_name): New functions.
2292 * symtab.h (domain_name, search_domain_name): Declare.
2294 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2295 map_matching_symbols so objfile is first. All uses updated.
2296 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2297 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2299 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2302 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2305 2013-09-24 Doug Evans <dje@google.com>
2307 * objfiles.c (free_objfile): Move comment.
2309 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2311 * ada-exp.y (string_to_operator): Delete.
2312 (dummy_string_to_ada_operator): Delete.
2314 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2317 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2319 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2320 call_dummy_integer_regs, and classify.
2321 * amd64-tdep.h (amd64_classify): Add declaration.
2322 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2323 (amd64_reg_class): Delete, moved to i386-tdep.h.
2324 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2325 Replace call to amd64_classify by call to tdep->classify.
2326 (amd64_push_arguments): Get the list of registers to use for
2327 passing integer parameters from the gdbarch tdep structure,
2328 rather than using a hardcoded one. Replace calls to amd64_classify
2329 by calls to tdep->classify.
2330 (amd64_push_dummy_call): Get the register number used for
2331 the "hidden" argument from tdep->call_dummy_integer_regs.
2332 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2333 and tdep->call_dummy_integer_regs. Set tdep->classify.
2335 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2338 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2339 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2340 where tdep->memory_args_by_pointer is non-zero.
2342 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2345 * i386-tdep.h (struct gdbarch_tdep): Add new field
2346 integer_param_regs_saved_in_caller_frame.
2347 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2348 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2350 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2352 * amd64-windows-tdep.c: #include "value.h"
2353 (amd64_windows_classify): Delete.
2354 (amd64_windows_passed_by_integer_register)
2355 (amd64_windows_passed_by_xmm_register)
2356 (amd64_windows_passed_by_pointer)
2357 (amd64_windows_adjust_args_passed_by_pointer)
2358 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2359 (amd64_windows_push_dummy_call): New functions.
2360 (amd64_windows_init_abi): Remove setting of
2361 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2362 tdep->classify, tdep->memory_args_by_pointer and
2363 tdep->integer_param_regs_saved_in_caller_frame.
2364 Add call to set_gdbarch_push_dummy_call.
2366 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2368 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2369 objfile->original_name.
2371 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 Pass down original filename for objfile.
2374 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2375 * elfread.c (elf_symfile_read): Likewise.
2376 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2377 longer set ORIGINAL_NAME.
2378 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2379 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2380 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2381 symbol_file_add_from_bfd call.
2382 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2383 (macho_check_dsym): Add parameter filenamep. Change function comment.
2385 (macho_symfile_read): New variable dsym_filename. Update
2386 macho_check_dsym call. Use it for symbol_file_add_separate.
2387 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2388 it. Use it for objfile->original_name.
2389 (objfile_name): Return OBFD's filename, if available.
2390 * objfiles.h (allocate_objfile): Add new parameter name.
2391 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2392 * symfile-mem.c (symbol_file_add_from_memory): Update
2393 symbol_file_add_from_bfd call.
2394 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2396 (symbol_file_add_with_addrs): New parameter name, add function comment
2397 for it. Remove variable name. Update allocate_objfile call.
2398 (symbol_file_add_separate): New parameter name, add function comment
2399 for it. Update symbol_file_add_with_addrs call.
2400 (symbol_file_add_from_bfd): New parameter name. Update
2401 symbol_file_add_with_addrs call.
2402 (symbol_file_add): Update symbol_file_add_from_bfd call.
2403 (reread_symbols): New variable original_name. Save
2404 objfile->original_name by it.
2405 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2408 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2410 Code cleanup: Add objfile_name accessor function.
2411 * ada-lang.c (is_known_support_routine): Use objfile_name.
2412 * auto-load.c (source_gdb_script_for_objfile)
2413 (auto_load_objfile_script): Likewise.
2414 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2415 * dbxread.c (dbx_symfile_read): Likewise.
2416 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2417 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2418 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2419 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2420 (lookup_dwp_signatured_type, lookup_dwo_unit)
2421 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2422 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2423 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2424 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2425 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2426 (read_subrange_type, load_partial_dies, read_partial_die)
2427 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2428 (die_containing_type, build_error_marker_type, lookup_die_type)
2429 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2430 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2431 (get_DW_AT_signature_type, write_psymtabs_to_index)
2432 (save_gdb_index_command): Likewise.
2433 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2435 * expprint.c (dump_subexp_body_standard): Likewise.
2436 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2437 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2439 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2440 obj_name, use objfile_name for it, use the variable.
2441 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2443 * machoread.c (macho_symtab_read, macho_check_dsym)
2444 (macho_symfile_relocate): Likewise.
2445 * maint.c (maintenance_translate_address): Likewise.
2446 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2447 * minsyms.c (install_minimal_symbols): Likewise.
2448 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2450 (filter_overlapping_sections): Use objfile_name.
2451 (objfile_name): New function.
2452 * objfiles.h (struct objfile): Rename field name to original_name.
2453 (objfile_name): New prototype.
2454 * printcmd.c (sym_info, address_info): Use objfile_name.
2455 * probe.c (parse_probes, collect_probes, compare_probes)
2456 (info_probes_for_ops): Likewise.
2457 * progspace.c (clone_program_space): Likewise.
2458 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2459 (maintenance_info_psymtabs): Likewise.
2460 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2461 (source_section_scripts): Likewise.
2462 * python/py-objfile.c (objfpy_get_filename): Likewise.
2463 * python/py-progspace.c (pspy_get_filename): Likewise.
2464 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2465 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2466 * solib.c (solib_read_symbols): Likewise.
2467 * stabsread.c (scan_file_globals): Likewise.
2468 * stap-probe.c (handle_stap_probe): Likewise.
2469 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2470 (find_separate_debug_file_by_debuglink): Likewise.
2471 (reread_symbols): Likewise. Use the objfile field name renamed to
2473 (allocate_symtab): Use objfile_name.
2474 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2475 (dump_objfile, dump_msymbols, dump_symtab_1)
2476 (maintenance_print_msymbols, maintenance_print_objfiles)
2477 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2478 * target.c (target_translate_tls_address, target_info): Likewise.
2479 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2482 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2485 * probe.c (parse_probes): Rename variable objfile_name to
2488 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2490 Remove solib-sunos.c.
2491 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2492 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2493 * objfiles.c (rt_common_objfile): Remove.
2494 (free_objfile): Remove rt_common_objfile comparison.
2495 * objfiles.h (rt_common_objfile): Remove.
2496 * solib-sunos.c: Remove.
2497 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2499 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2501 Remove a.out NetBSD and OpenBSD hosts.
2502 * NEWS (Removed native configurations): New.
2503 * config/arm/nbsdaout.mh: Remove.
2504 * config/i386/nbsdaout.mh: Remove.
2505 * config/i386/obsdaout.mh: Remove.
2506 * config/m68k/nbsdaout.mh: Remove.
2507 * config/sparc/nbsdaout.mh: Remove.
2508 * config/vax/nbsdaout.mh: Remove.
2509 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2510 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2511 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2513 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2514 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2515 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2517 2013-09-23 Tom Tromey <tromey@redhat.com>
2519 * linespec.c (struct minsym_and_objfile): Remove.
2520 (minsym_and_objfile_d): Remove.
2521 (struct linespec, struct collect_info, linespec_parse_basic)
2522 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2523 (compare_msymbols, find_method, find_function_symbols)
2524 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2525 (add_minsym, search_minsyms_for_name): Update.
2527 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2529 * regcache.c: Add include of valprint.h.
2530 (dump_endian_bytes): Delete.
2531 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2533 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2535 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2537 2013-09-19 Pedro Alves <palves@redhat.com>
2539 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2542 2013-09-19 Pedro Alves <palves@redhat.com>
2543 Thomas Schwinge <thomas@codesourcery.com>
2544 Yue Lu <hacklu.newborn@gmail.com>
2546 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2547 Take a gdb_byte pointer instead of a char pointer.
2549 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2550 gnu_xfer_partial helper.
2551 (gnu_xfer_partial): New function.
2552 (gnu_target): Don't install a deprecated_xfer_memory hook.
2553 Install a to_xfer_partial hook.
2555 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 * main.c (captured_main): Replace catch_command_errors by
2559 catch_command_errors_const. Twice.
2560 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2561 (symbol_file_add): Make name parameter const.
2562 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2563 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2564 variable name. Change their usage accordingly.
2565 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2567 (symbol_file_add_main): Make args parameter const.
2569 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2570 Ulrich Weigand <uweigand@de.ibm.com>
2572 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2574 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2576 2013-09-18 Pedro Alves <palves@redhat.com>
2577 Yue Lu <hacklu.newborn@gmail.com>
2579 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2580 (gnu_create_inferior)
2581 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2582 (set_sig_thread_cmd): Use the lwpid field of ptids to
2583 store/extract thread ids instead of the tid field.
2584 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2586 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2588 * infcmd.c (default_print_one_register_info): Add detection of
2589 optimized out values.
2590 (default_print_registers_info): Switch to using
2591 get_frame_register_value.
2593 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2595 * infrun.c (handle_inferior_event): Check if we know the
2596 function start address before setting a resume breakpoint.
2598 2013-09-18 Pedro Alves <palves@redhat.com>
2600 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2601 minus_one_ptid instead of looking at the ptid's tid field and
2602 comparing that to -1.
2604 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2606 * main.h (get_gdb_program_name): Remove extra whitespace.
2608 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2610 * main.h (get_gdb_program_name): Add declaration.
2611 * main.c (get_gdb_program_name): Add definition.
2613 2013-09-17 Doug Evans <dje@google.com>
2615 * dwarf2read.c: Move definitions of complaint functions to after
2616 forward declarations of local functions.
2618 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2619 Pedro Alves <palves@redhat.com>
2622 * breakpoint.c (remove_threaded_breakpoints): New function.
2623 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2624 as thread_exit observer.
2626 2013-09-17 Pedro Alves <palves@redhat.com>
2629 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2630 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2631 * corelow.c (core_open):
2632 * frame.h (print_stack_frame, print_frame_info): New
2633 'set_current_sal' parameter.
2634 * infcmd.c (finish_command, kill_command): Adjust call to
2636 * inferior.c (inferior_command): Likewise.
2637 * infrun.c (normal_stop): Likewise.
2638 * linux-fork.c (linux_fork_context): Likewise.
2639 * record-full.c (record_full_goto_entry, record_full_restore):
2641 * remote-mips.c (common_open): Likewise.
2642 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2644 (print_frame_info): New 'set_current_sal' parameter. Set the last
2645 displayed sal depending on the new paremeter instead of looking at
2647 (backtrace_command_1, select_and_print_frame, frame_command)
2648 (current_frame_command, up_command, down_command): Adjust call to
2650 * thread.c (print_thread_info, restore_selected_frame)
2651 (do_captured_thread_select): Adjust call to print_stack_frame.
2652 * tracepoint.c (tfind_1): Likewise.
2653 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2654 (mi_cmd_stack_info_frame): Likewise.
2655 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2656 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2658 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2660 * value.c (isvoid_internal_fn): Replace "parameter" with
2663 2013-09-16 Stan Shebs <stan@codesourcery.com>
2665 * README: Update references to writing code for GDB.
2666 * configure.ac (build_warnings): Remove obsolete comment.
2667 * configure: Regenerate.
2668 * gdbarch.sh: Remove references to gdbint.texinfo.
2669 * gdbarch.h: Regenerate.
2670 * gdbtypes.c (objfile_type): Remove comments referencing internals
2673 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2675 * NEWS: Mention new convenience function $_isvoid.
2676 * value.c (isvoid_internal_fn): New function.
2677 (_initialize_values): Add new convenience function $_isvoid.
2679 2013-09-16 Pierre Muller <muller@sourceware.org>
2681 * arm-linux-tdep.c: Add "elf/common.h" header.
2682 Remove AT_HWCAP macro definintion as it is provided in
2684 * s390-tdep.c: Remove system header <elf.h>
2685 Add "elf/common.h" header for AT_HWCAP definition.
2686 (s390_core_read_description): Use correct CORE_ADDR
2687 for hwcap local variable used as third parameter
2688 of function target_auxv_search.
2690 2013-09-14 Pierre Muller <muller@sourceware.org>
2691 Tom Tromey <tromey@redhat.com>
2692 Pedro Alves <palves@redhat.com>
2694 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2695 mode if operating system doesn't know O_CLOEXEC.
2697 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2700 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2703 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2705 * NEWS: Mention TDB support.
2706 * features/s390-tdb.xml: New file.
2707 * features/s390-te-linux64.xml: New file.
2708 * features/s390x-te-linux64.xml: New file.
2709 * features/Makefile (WHICH): Add new tdescs above.
2710 (s390-te-linux64-expedite): Set.
2711 (s390x-te-linux64-expedite): Set.
2712 * features/s390-te-linux64.c: New file (generated).
2713 * features/s390x-te-linux64.c: New file (generated).
2714 * regformats/s390-te-linux64.dat: New file (generated).
2715 * regformats/s390x-te-linux64.dat: New file (generated).
2716 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2717 (HWCAP_S390_TE): Likewise.
2718 (S390_TDB_DWORD0_REGNUM): Likewise.
2719 (S390_TDB_DWORD0_REGNUM): Likewise.
2720 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2721 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2722 (S390_TDB_ATIA_REGNUM): Likewise.
2723 (S390_TDB_R0_REGNUM): Likewise.
2724 (S390_TDB_R1_REGNUM): Likewise.
2725 (S390_TDB_R2_REGNUM): Likewise.
2726 (S390_TDB_R3_REGNUM): Likewise.
2727 (S390_TDB_R4_REGNUM): Likewise.
2728 (S390_TDB_R5_REGNUM): Likewise.
2729 (S390_TDB_R6_REGNUM): Likewise.
2730 (S390_TDB_R7_REGNUM): Likewise.
2731 (S390_TDB_R8_REGNUM): Likewise.
2732 (S390_TDB_R9_REGNUM): Likewise.
2733 (S390_TDB_R10_REGNUM): Likewise.
2734 (S390_TDB_R11_REGNUM): Likewise.
2735 (S390_TDB_R12_REGNUM): Likewise.
2736 (S390_TDB_R13_REGNUM): Likewise.
2737 (S390_TDB_R14_REGNUM): Likewise.
2738 (S390_TDB_R15_REGNUM): Likewise.
2739 (S390_NUM_REGS): Increase.
2740 (S390_IS_TDBREGSET_REGNUM): New macro.
2741 (s390_regmap_tdb): Declare.
2742 (s390_sizeof_tdbregset): Define.
2743 (tdesc_s390_te_linux64): Declare.
2744 (tdesc_s390x_te_linux64): Likewise.
2745 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2746 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2747 (s390_regmap_tdb): New regmap.
2748 (s390_supply_tdb_regset): New function.
2749 (s390_tdb_regset): New regset.
2750 (s390_linux64v2_regset_sections): Add TDB regset to list.
2751 (s390x_linux64v2_regset_sections): Likewise.
2752 (s390_regset_from_core_section): Recognize TDB core note section.
2753 (s390_core_read_description): If HWCAP indicates TE support,
2754 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2755 (s390_gdbarch_init): Handle TDB regset.
2756 (_initialize_s390_tdep): Initialize new tdescs.
2757 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2758 (have_regset_tdb): New variable.
2759 (s390_native_supply): Support register invalidation.
2760 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2761 (check_regset): Treat ENODATA as "regset exists".
2762 (s390_linux_fetch_inferior_registers): Add TDB.
2763 (s390_read_description): Check for TDB existence and select
2765 * gdbserver/Makefile.in (clean): Add removal of new makefile
2767 (s390-te-linux64.c): New makefile target.
2768 (s390x-te-linux64.c): Likewise.
2769 * gdbserver/configure.srv (srv_regobj): Append new objects
2770 s390-te-linux64.o and s390x-te-linux64.o.
2771 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2772 s390x-te-linux64.xml, and s390-tdb.xml.
2773 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2775 (tdesc_s390_te_linux64): Likewise.
2776 (init_registers_s390x_te_linux64): Likewise.
2777 (tdesc_s390x_te_linux64): Likewise.
2778 (s390_check_regset): Treat ENODATA as "regset exists".
2779 (s390_arch_setup): Add TDB regset support.
2780 (initialize_low_arch): Initialize registers for new tdescs.
2782 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2784 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2785 (S390_IS_FPREGSET_REGNUM): New macro.
2786 * s390-tdep.c (s390_dwarf_regmap): Make const.
2787 (regnum_is_gpr_full): New function for replacing repeated code.
2788 (s390_pseudo_register_name): Use it.
2789 (s390_pseudo_register_type): Likewise.
2790 (s390_pseudo_register_read): Likewise.
2791 (s390_pseudo_register_write): Likewise.
2792 (s390_unwind_pseudo_register): Likewise.
2793 (s390_regmap_gregset): New format for regmap.
2794 (s390x_regmap_gregset): Likewise.
2795 (s390_regmap_fpregset): Likewise.
2796 (s390_regmap_upper): Likewise.
2797 (s390_regmap_last_break): Likewise.
2798 (s390_regmap_system_call): Likewise.
2799 (s390_supply_regset): Adjust to new regmap format.
2800 (s390_collect_regset): Likewise.
2801 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2802 (s390_native_collect): Likewise.
2803 (supply_gregset): Likewise.
2804 (fill_gregset): Likewise.
2805 (supply_fpregset): Likewise.
2806 (fill_fpregset): Likewise.
2807 (fetch_regset): Likewise.
2808 (store_regset): Likewise.
2809 (s390_linux_fetch_inferior_registers): Likewise.
2810 (s390_linux_fetch_inferior_registers): Likewise.
2812 2013-09-12 Andrew Pinski <apinski@cavium.com>
2814 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2816 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2818 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2820 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2822 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2824 2013-09-06 Pedro Alves <palves@redhat.com>
2826 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2827 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2828 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2829 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2830 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2833 2013-09-06 Pedro Alves <palves@redhat.com>
2835 * remote-sim.c (dump_mem): Constify buf parameter.
2836 gdbsim_xfer_inferior_memory): Rename to ...
2837 (gdbsim_xfer_memory): ... this. Adjust interface as
2838 target_xfer_partial helper.
2839 (gdbsim_xfer_partial): New function.
2840 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2841 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2843 2013-09-06 Pedro Alves <palves@redhat.com>
2845 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2846 host_address_to_string, and send debug output to gdb_stdlog.
2848 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2850 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2851 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2852 gdb_target_obs for cris target.
2853 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2854 (cris_gdbarch_init): Move calls to
2855 set_gdbarch_fetch_tls_load_module_address and
2856 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2857 Add call to gdbarch_init_osabi.
2858 * cris-linux-tdep.c: New file.
2859 * cris-tdep.h: New file.
2861 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2863 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2864 to deprecated_init_ui_hook.
2866 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2868 * cli/cli-interp.c (_initialize_cli_interp): Add a
2869 command_loop_proc to interp_procs.
2870 * event-top.c (cli_command_loop): Change signature to match
2871 interp_command_loop_ftype.
2872 * event-top.h (cli_command_loop): Same.
2873 * interps.c (interp_new): Require every interpreter to have a
2875 (current_interp_command_loop): Just call the command_loop_proc on
2876 the current interpreter.
2877 * tui/tui-interp.c (_initialize_tui_interp): Add a
2878 command_loop_proc to interp_procs.
2880 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2882 * cris-tdep.c (cris_gdbarch_init): Add call to
2883 get_gdbarch_fetch_tls_load_module_address.
2885 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2887 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2888 (cris_elf_gregset_t): Rename from elf_gregset_t.
2889 (crisv32_elf_gregset_t): Adjust.
2890 (cris_supply_gregset, fetch_core_registers): Adjust.
2892 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2894 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2896 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2898 * defs.h (deprecated_command_loop_hook): Remove, including
2899 references in comments.
2900 * interps.c (current_interp_command_loop): No longer use
2901 deprecated_command_loop_hook.
2902 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2904 * top.c (deprecated_command_loop_hook): Remove.
2906 2013-09-05 Pedro Alves <palves@redhat.com>
2908 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2909 local is now int instead of ULONGEST. Print it with %d
2910 instead of paddress.
2912 2013-09-05 Tristan Gingold <gingold@adacore.com>
2914 * MAINTAINERS: Remove avr maintainership.
2916 2013-09-05 Pedro Alves <palves@redhat.com>
2918 * findvar.c (value_of_register): Rework in terms of
2919 value_of_register_lazy.
2921 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2923 * symfile.c (add_symbol_file_command): Remove trailing
2924 whitespaces and blank line after comment.
2926 2013-09-05 Pedro Alves <palves@redhat.com>
2928 * tui/tui-regs.c (tui_register_format): Don't look at the
2929 register's name here. Return string representing register
2930 value instead of storing it in the data element.
2931 (tui_get_register): Compare register string representations
2932 instead of register value states and contents.
2934 2013-09-05 Pedro Alves <palves@redhat.com>
2937 * tui/tui-regs.c (tui_show_registers): Show registers of the
2938 selected frame, not the current frame.
2940 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2942 * MAINTAINERS (Write After Approval): Add myself to the list.
2944 2013-09-04 Doug Evans <dje@google.com>
2946 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2947 (queue_and_load_dwo_tu): New function.
2948 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2949 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2950 Make dependent_cu optional.
2951 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2952 and an older .gdb_index is in use, queue and load all its TUs too.
2954 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2956 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2957 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2958 variable search_flags.
2959 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2960 (OPF_RETURN_REALPATH): ... here.
2961 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2962 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2964 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2966 * solib.c (solib_find): Likewise. Four times.
2967 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2968 in the function comment and for the realpath_fptr variable.
2969 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2970 (find_and_open_source): Likewise. Twice.
2971 * symfile.c (symfile_bfd_open): Likewise, also twice.
2973 2013-09-04 Doug Evans <dje@google.com>
2975 * progspace.c (save_current_space_and_thread): Remove unnecessary
2976 call to save_current_inferior.
2978 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2980 * sh64-tdep.c (sh64_do_register): Return after printing message
2981 about unavailable register contents.
2983 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2984 Pedro Alves <palves@redhat.com>
2986 * symfile.c (add_symbol_file_command): Error out on unknown
2987 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2988 options and collapse into single conditional branch.
2990 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2992 * inf-child.c (inf_child_follow_fork): New parameter
2994 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2995 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2996 * inferior.h (detach_fork): Remove.
2997 * infrun.c (detach_fork): Adjust comment and make it
2999 (follow_fork): Pass detach_fork parameter to
3001 * linux-nat.c (linux_child_follow_fork): New parameter
3003 * target.c (target_follow_fork): New parameter detach_fork.
3004 Pass detach_fork as parameter and print its value.
3005 * target.h (struct target_ops) <to_follow_fork>: New int
3007 (target_follow_fork): New parameter detach_fork.
3009 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3011 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3012 Replace sec->bfd by sec->the_bfd_section->owner.
3014 2013-09-03 Yao Qi <yao@codesourcery.com>
3016 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3017 from linux_has_shared_address_space.
3018 (linux_has_shared_address_space): Call linux_is_uclinux.
3019 * linux-tdep.h (linux_is_uclinux): Declare.
3020 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3023 2013-09-03 Yao Qi <yao@codesourcery.com>
3025 * config/djgpp/fnchange.lst: Remove entry of
3026 i386-interix-nat.c and i386-interix-tdep.c.
3027 * configure.ac: Remove '*-*-interix*'.
3028 * configure: Re-generated.
3029 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3030 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3032 * osabi.c (gdb_osabi_names): Remove "Interix".
3034 2013-09-03 Yao Qi <yao@codesourcery.com>
3036 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3038 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3040 * record.h (record_print_flag) <record_print_src_line,
3041 record_print_insn_range>: Rename into ...
3042 (record_print_flag) <record_print_src_line,
3043 record_print_insn_range>: ... this. Update all users.
3045 2013-09-02 Pierre Muller <muller@sourceware.org>
3047 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3050 2013-09-02 Pierre Muller <muller@sourceware.org>
3052 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3053 by use of plongest function.
3055 2013-09-02 Tristan Gingold <gingold@adacore.com>
3057 * NEWS: Add entry mentioning support for native Windows x64
3060 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3061 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3062 (struct amd64_windows_frame_cache): New struct.
3063 (amd64_windows_w2gdb_regnum): New global.
3064 (pc_in_range, amd64_windows_frame_decode_epilogue)
3065 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3066 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3067 (amd64_windows_frame_this_id): New functions.
3068 (amd64_windows_frame_unwind): New static global.
3069 (amd64_windows_skip_prologue): New function.
3070 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3071 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3072 with amd64_windows_skip_prologue.
3074 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3078 2013-08-30 Pedro Alves <palves@redhat.com>
3080 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3083 2013-08-30 Pedro Alves <palves@redhat.com>
3085 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3088 2013-08-30 Pedro Alves <palves@redhat.com>
3090 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3091 Adjust arguments to print_stack_frame.
3093 2013-08-30 Pedro Alves <palves@redhat.com>
3095 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3097 2013-08-30 Pedro Alves <palves@redhat.com>
3099 * frame.h (show_and_print_stack_frame): Delete declaration.
3101 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3104 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3105 (archpy_name): Check for valid architecture.
3106 (archpy_disassemble): Ditto.
3108 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3110 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3111 instead of "long long" in call to ptrace64.
3113 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3115 * mi/mi-interp.c (mi_command_loop): Change signature to match
3116 interp_command_loop_ftype.
3117 (mi1_command_loop): Remove.
3118 (mi2_command_loop): Remove.
3119 (mi3_command_loop): Remove.
3120 (mi_interpreter_resume): Remove setting of
3121 deprecated_command_loop_hook.
3122 (_initialize_mi_interp): Set mi_command_loop as the command loop
3125 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3127 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3130 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3132 * value.c (allocate_value_contents): Make static.
3133 * value.h (allocate_value_contents): Remove prototype.
3135 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3137 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3138 of assembling value via allocate_value_lazy and attribute setter.
3139 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3140 assembling value via allocate_value_lazy and attribute setter.
3141 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3142 assembling value via allocate_value_lazy and attribute setter.
3144 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3146 * value.c (value_from_contents_and_address): Replace allocate_value and
3147 memcpy with value_from_contents.
3149 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3151 * python/py-framefilter.c (py_print_frame): Remove usage of
3152 PyString_AsString. Use python_string_to_host_string instead.
3153 Refactor function to work with a string as a new allocation
3154 instead of a pointer.
3155 (py_print_frame): Ditto.
3156 * python/lib/gdb/frames.py (return_list): Cain iterators together
3157 instead of adding them as a list.
3158 (_sort_list): Call return_list, and remove duplicate code.
3159 (execute_frame_filters): Convert iterator to a list with list().
3160 * python/lib/gdb/command/frame_filters.py
3161 (SetFrameFilterPriority._set_filter_priority): Convert priority
3162 attribute to an integer.
3163 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3164 wrapper function __next__.
3165 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3168 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3171 * python/py-framefilter.c (apply_frame_filter): Check
3172 gdb_python_initialized. Exit if the Python frame-filter code
3173 cannot be initialized.
3175 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3178 * top.c (print_gdb_version): Remove erroneous newline after help
3181 2013-08-29 Yao Qi <yao@codesourcery.com>
3183 * varobj.c (install_dynamic_child): Remove trailing space.
3184 Add one blank line after variable declaration.
3186 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 * corefile.c (get_exec_file): Use exec_filename.
3190 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3191 * exec.c (exec_close): Free EXEC_FILENAME.
3192 (exec_file_attach): New variable canonical_pathname. Use
3193 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3195 * exec.h (exec_filename): New.
3196 * inferior.c (print_inferior, inferior_command): Use
3197 PSPACE_EXEC_FILENAME.
3198 * mi/mi-main.c (print_one_inferior): Likewise.
3199 * progspace.c (clone_program_space, print_program_space): Likewise.
3200 * progspace.h (struct program_space): New field pspace_exec_filename.
3201 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3202 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3204 2013-08-28 Will Newton <will.newton@linaro.org>
3206 * common/linux-ptrace.c: Include stdint.h unconditionally.
3208 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3211 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3213 2013-08-28 Yao Qi <yao@codesourcery.com>
3214 Pedro Alves <palves@redhat.com>
3216 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3217 instead of stdio_fileopen.
3218 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3219 .Call stderr_fileopen instead of stdio_fileopen.
3220 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3221 [__MINGW32__] (stderr_file_fputs): New function.
3222 (stderr_fileopen): New function.
3223 * ui-file.h (stderr_fileopen): Declare.
3225 2013-08-27 Doug Evans <dje@google.com>
3227 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3228 (struct dwarf2_per_cu_data): Ditto.
3229 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3230 (process_imported_unit_die): Ditto.
3231 (follow_die_sig_1): Simplify assert.
3233 2013-08-27 Pedro Alves <palves@redhat.com>
3235 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3236 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3237 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3238 windows_xfer_memory directly.
3239 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3241 2013-08-27 Pedro Alves <palves@redhat.com>
3243 * darwin-nat.c (darwin_xfer_memory): Delete.
3244 (_initialize_darwin_inferior): Don't install a
3245 deprecated_xfer_memory method.
3247 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3248 Yao Qi <yao@codesourcery.com>
3250 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3251 (parse_no_frames_option): Remove.
3252 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3253 (mi_cmd_stack_list_args): Adjust.
3254 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3255 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3256 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3258 (list_args_or_locals): New parameter 'skip_unavailable'.
3260 * valprint.c (scalar_type_p): Rename to ...
3261 (val_print_scalar_type_p): ... this. Make extern.
3262 (val_print, value_check_printable): Adjust.
3263 * valprint.h (val_print_scalar_type_p): Declare.
3264 * value.c (value_entirely_unavailable): New function.
3265 * value.h (value_entirely_unavailable): Declare.
3267 * NEWS: Mention the new option "--skip-unavailable" to MI
3268 commands '-stack-list-locals', '-stack-list-arguments' and
3269 '-stack-list-variables'.
3271 2013-08-27 Yao Qi <yao@codesourcery.com>
3273 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3274 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3276 * mi/mi-getopt.c (mi_getopt): Remove.
3277 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3279 (mi_getopt): Call mi_getopt_1.
3280 (mi_getopt_silent): New.
3281 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3283 2013-08-26 Doug Evans <dje@google.com>
3286 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3287 .gdb_index is in use.
3288 * symfile.c (reread_symbols): Reset objfile->sf.
3290 * NEWS: Document "mt print objfiles" now takes optional regexp.
3291 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3292 regexp of objfiles to print.
3293 (_initialize_symmisc): Update doc string for "mt print objfiles".
3295 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3296 missing debug info checks.
3298 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3299 Ulrich Weigand <uweigand@de.ibm.com>
3301 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3302 line tables generated by XLC compiled binaries.
3304 2013-08-23 Doug Evans <dje@google.com>
3306 * symmisc.c (dump_symtab): Delete prototype.
3307 (dump_msymbols, dump_objfile): Ditto.
3308 (maintenance_info_symtabs): Mark as dont_repeat.
3309 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3311 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3312 debugging printf to better location.
3314 2013-08-23 Pedro Alves <palves@redhat.com>
3316 * target.c (target_read_live_memory): Change type of 'ret' local
3319 2013-08-23 Pedro Alves <palves@redhat.com>
3321 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3322 (remote_read_bytes): Change return type to LONGEST, and adjust to
3323 return a target_xfer_error on error.
3324 (remote_xfer_memory): Delete.
3325 (remote_flash_write): Change type of 'ret' local to LONGEST.
3326 (remote_xfer_partial, remote_xfer_partial): Adjust.
3327 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3329 2013-08-23 Pierre Muller <muller@sourceware.org>
3331 ARI fix: Push # directives to start of line.
3332 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3334 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3337 * breakpoint.c (enable_command, disable_command): Iterate over
3338 all specified breakpoint locations.
3340 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3342 * common/linux-ptrace.c (linux_fork_to_function): Push #
3343 directives to the start of the line.
3344 (linux_check_ptrace_features): Fix warning message to use
3347 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3349 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3350 nat/linux-waitpid.h.
3351 (linux-waitpid.o): New object file rule.
3352 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3353 (current_ptrace_options): Moved from linux-nat.c.
3354 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3356 (linux_fork_to_function): New function.
3357 (linux_grandchild_function): Likewise.
3358 (linux_child_function): Likewise.
3359 (linux_check_ptrace_features): New function, heavily
3360 based on linux-nat.c:linux_test_for_tracefork.
3361 (linux_enable_event_reporting): New function.
3362 (ptrace_supports_feature): Likewise.
3363 (linux_supports_tracefork): Likewise.
3364 (linux_supports_traceclone): Likewise.
3365 (linux_supports_tracevforkdone): Likewise.
3366 (linux_supports_tracesysgood): Likewise.
3367 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3368 gdbserver/linux-low.c.
3369 (linux_enable_event_reporting): New declaration.
3370 (linux_supports_tracefork): Likewise.
3371 (linux_supports_traceclone): Likewise.
3372 (linux_supports_tracevforkdone): Likewise.
3373 (linux_supports_tracesysgood): Likewise.
3374 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3375 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3376 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3377 * config/arm/linux.mh (NATDEPFILES): Likewise.
3378 * config/i386/linux.mh (NATDEPFILES): Likewise.
3379 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3380 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3381 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3382 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3383 * config/mips/linux.mh (NATDEPFILES): Likewise.
3384 * config/pa/linux.mh (NATDEPFILES): Likewise..
3385 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3386 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3387 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3388 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3389 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3390 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3391 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3392 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3393 ptrace's 4th argument's types.
3394 Check the type of PTRACE_TYPE_ARG4.
3395 * configure: Regenerate.
3396 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3397 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3398 (linux_supports_tracefork_flag): Remove.
3399 (linux_supports_tracesysgood_flag): Likewise.
3400 (linux_supports_tracevforkdone_flag): Likewise.
3401 (current_ptrace_options): Moved to
3402 common/linux-ptrace.c.
3403 (linux_tracefork_child): Remove.
3404 (my_waitpid): Remove.
3405 (linux_test_for_tracefork): Renamed to
3406 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3407 (linux_test_for_tracesysgood): Remove.
3408 (linux_supports_tracesysgood): Remove.
3409 (linux_supports_tracefork): Remove.
3410 (linux_supports_tracevforkdone): Remove.
3411 (linux_enable_tracesysgood): Remove.
3412 (linux_enable_event_reporting): Remove.
3413 (linux_init_ptrace): New function.
3414 (linux_child_post_attach): Call linux_init_ptrace.
3415 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3416 (linux_child_follow_fork): Call linux_supports_tracefork
3417 and linux_supports_tracevforkdone.
3418 (linux_child_insert_fork_catchpoint): Call
3419 linux_supports_tracefork.
3420 (linux_child_insert_vfork_catchpoint): Likewise.
3421 (linux_child_set_syscall_catchpoint): Call
3422 linux_supports_tracesysgood.
3423 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3424 * nat/linux-nat.h: New file.
3425 * nat/linux-waitpid.c: New file.
3426 * nat/linux-waitpid.h: New file.
3428 2013-08-22 Samuel Bronson <naesten@gmail.com>
3430 ARM Linux support for `catch syscall'.
3431 * syscalls/arm-linux.py: New file.
3432 * syscalls/arm-linux.xml: Likewise.
3433 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3434 (arm_linux_init_abi): Register the new function and syscall xml file.
3435 * data-directory/Makefile.in: Install the new syscall xml file.
3436 * NEWS: Brag about this.
3438 2013-08-22 Pedro Alves <palves@redhat.com>
3441 * corefile.c (target_xfer_memory_error): New function.
3442 (memory_error): Defer EIO to target_memory_error.
3443 (read_memory): Use target_xfer_partial, and handle finer-grained
3445 * target.c (target_xfer_error_to_string): New function.
3446 (memory_xfer_partial_1): If memory is known to be
3447 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3448 (target_xfer_partial): Make extern.
3449 * target.h (enum target_xfer_error): New enum.
3450 (target_xfer_error_to_string): Declare function.
3451 (target_xfer_partial): Declare function.
3452 (struct target_ops) <xfer_partial>: Adjust describing comment.
3454 2013-08-22 Alan Modra <amodra@gmail.com>
3456 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3457 * configure.tgt: Likewise as targets.
3459 2013-08-20 Doug Evans <dje@google.com>
3461 * buildsym.c (subfile_stack): Move here from buildsym.h.
3462 (pending_macros): Ditto.
3463 (get_macro_table): New function.
3464 (buildsym_init): Initialize subfile_stack.
3465 * coffread.c (type_vector,type_vector_length): Moved here from
3467 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3468 (coff_symtab_read): Use it.
3469 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3470 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3471 with call to get_macro_table.
3472 * stabsread.c (type_vector,type_vector_length): Moved here from
3474 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3475 * buildsym.h (get_macro_table): Declare.
3477 2013-08-20 Tom Tromey <tromey@redhat.com>
3479 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3481 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3483 2013-08-20 Doug Evans <dje@google.com>
3485 * blockframe.c: Remove #include "psymtab.h".
3486 * cp-support.c: Ditto.
3490 2013-08-20 Tom Tromey <tromey@redhat.com>
3493 * exceptions.h (return_mask): Now an enum.
3494 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3497 2013-08-20 Tom Tromey <tromey@redhat.com>
3499 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3501 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3502 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3503 * jit.c (jit_object_close_impl): Update.
3504 * jv-lang.c (get_dynamics_objfile): Update.
3505 * linespec.c (add_minsym): Use get_dynamics_objfile.
3506 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3507 (allocate_objfile): Don't initialize 'gdbarch' field.
3508 (get_objfile_arch): Update.
3509 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3511 (struct objfile) <gdbarch>: ... here. Remove.
3512 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3514 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3516 2013-08-20 Alan Modra <amodra@gmail.com>
3518 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3519 for IBM long double nan and inf.
3520 (floatformat_is_negative, floatformat_classify,
3521 floatformat_mantissa): Similarly.
3522 (floatformat_ieee_single, floatformat_ieee_double,
3523 floatformat_ieee_quad, floatformat_arm_ext,
3524 floatformat_ia64_spill): Delete unused vars.
3525 (_initialize_doublest): Delete unused function.
3526 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3527 little-endian variants of floatformat_ibm_long_double.
3529 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3531 * Makefile.in (SFILES): Remove common/target-common.c and
3532 add target/waitstatus.c.
3533 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3534 target/resume.h, target/wait.h and target/waitstatus.h.
3535 (COMMON_OBS): Remove target-common.o and add
3537 (target-common.o): Remove.
3538 (waitstatus.o): New target object file.
3539 * common/target-common.c: Move contents to
3540 target/waitstatus.c and remove.
3541 * common/target-common.h: Move contents to other files and
3543 (enum resume_kind: Move to target/resume.h.
3544 (TARGET_WNOHANG): Move to target/wait.h.
3545 (enum target_waitkind): Move to target/waitstatus.h.
3546 (struct target_waitstatus): Likewise.
3547 * target.h: Do not include target-common.h and
3548 include target/resume.h, target/wait.h and
3549 target/waitstatus.h.
3550 * target/resume.h: New file.
3551 * target/wait.h: New file.
3552 * target/waitstatus.h: New file.
3553 * target/waitstatus.c: New file.
3555 2013-08-19 Pedro Alves <palves@redhat.com>
3557 * linux-nat.c (linux_test_for_tracefork)
3558 (linux_test_for_tracesysgood, linux_child_follow_fork)
3559 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3560 (linux_nat_wait_1): Extend comment.
3561 (linux_async_pipe): Add comment.
3563 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3565 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3566 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3567 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3568 Update to account for fact that PC is now a pseudo-register.
3569 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3570 cases for RL78_PC_REGNUM.
3572 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3575 * top.c (quit_force): Skip writing history file
3576 if input is not from terminal.
3578 2013-08-14 Tom Tromey <tromey@redhat.com>
3580 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3581 resultthreadlist>: New fields.
3582 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3583 (remote_get_threadlist, remote_threadlist_iterator): Use
3584 new fields. Remove static variables.
3586 2013-08-14 Tom Tromey <tromey@redhat.com>
3588 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3589 remote_watch_data_address>: New fields.
3590 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3591 (process_stop_reply, remote_wait_as)
3592 (remote_check_watch_resources, remote_stopped_data_address): Update.
3594 2013-08-14 Tom Tromey <tromey@redhat.com>
3596 * remote.c (struct remote_state) <async_client_callback,
3597 async_client_context>: New fields.
3598 (async_client_callback, async_client_context): Remove.
3599 (remote_async_serial_handler, remote_async): Update.
3601 2013-08-14 Tom Tromey <tromey@redhat.com>
3603 * remote.c (sizeof_pkt): Remove.
3604 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3606 2013-08-14 Tom Tromey <tromey@redhat.com>
3608 * remote.c (struct remote_state) <use_threadinfo_query,
3609 use_threadextra_query>: New fields.
3610 (remote_threads_info, remote_threads_extra_info)
3611 (remote_open_1): Update.
3613 2013-08-14 Tom Tromey <tromey@redhat.com>
3615 * remote.c (struct remote_state) <finished_object,
3616 finished_annex, finished_offset>: New fields.
3617 (remote_read_qxfer): Use remote_state fields; remove static
3620 2013-08-14 Tom Tromey <tromey@redhat.com>
3622 * remote.c (struct remote_state) <last_sent_step>:
3624 (last_sent_step): Remove.
3625 (remote_resume, remote_wait_as): Update.
3627 2013-08-14 Tom Tromey <tromey@redhat.com>
3629 * remote.c (struct remote_state) <last_sent_signal>:
3631 (last_sent_signal): Remove.
3632 (new_remote_state, remote_resume, remote_wait_as): Update.
3634 2013-08-14 Tom Tromey <tromey@redhat.com>
3636 * remote.c (struct remote_state) <last_program_signals_packet>:
3638 (last_program_signals_packet): Remove.
3639 (remote_program_signals, remote_open_1): Update.
3641 2013-08-14 Tom Tromey <tromey@redhat.com>
3643 * remote.c (struct remote_state) <last_pass_packet>:
3645 (last_pass_packet): Remove.
3646 (remote_pass_signals, remote_open_1): Update.
3648 2013-08-14 Tom Tromey <tromey@redhat.com>
3650 * remote.c (struct remote_state) <remote_traceframe_number>:
3652 (remote_traceframe_number): Remove.
3653 (new_remote_state, remote_open_1, set_remote_traceframe)
3654 (remote_trace_find): Update.
3656 2013-08-14 Tom Tromey <tromey@redhat.com>
3658 * remote.c (struct remote_state) <general_thread, continue_thread>:
3660 (general_thread, continue_thread): Remove.
3661 (record_currthread, set_thread, set_general_process)
3662 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3663 (extended_remote_mourn_1): Update.
3665 2013-08-14 Tom Tromey <tromey@redhat.com>
3667 * remote.c (struct remote_state) <remote_desc>: New field.
3668 (remote_desc): Remove.
3669 (remote_threads_info, remote_threads_extra_info, remote_close)
3670 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3671 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3672 (remote_hostio_send_command, remote_file_put, remote_file_get)
3673 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3674 (remote_async, remote_new_objfile, set_range_stepping): Update.
3676 2013-08-14 Tom Tromey <tromey@redhat.com>
3678 * remote.c (remote_state): Now a pointer.
3679 (get_remote_state_raw): Update.
3680 (new_remote_state): New function.
3681 (_initialize_remote): Use new_remote_state.
3683 2013-08-14 Tom Tromey <tromey@redhat.com>
3685 * remote.c (remote_protocol_features): Now const.
3687 2013-08-14 Tom Tromey <tromey@redhat.com>
3689 * remote.c (crc32_table, crc32): Remove.
3690 (remote_verify_memory): Use xcrc32.
3692 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3694 * value.h (create_internalvar_type_lazy): Adjust prototype
3697 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3699 * common/format.c (parse_format_string): Don't allow '#' flag for
3700 pointer arguments in format string.
3702 2013-08-13 Pierre Muller <muller@sourceware.org>
3704 * utils.c (init_page_info): Only call tgetnum function
3705 if rl_get_screen_size did not return useful values.
3707 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3709 PR breakpoints/15117
3710 * linespec.c (linespec_parse_basic): Check for convenience
3711 variable or history value while parsing.
3713 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3715 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3717 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3718 different signals between the generic Linux kernel implementation
3720 (avr_linux_gdb_signal_from_target): Delete.
3721 (avr_linux_gdb_signal_to_target): Delete.
3722 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3724 2013-08-09 Doug Evans <dje@google.com>
3726 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3729 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3731 * linux-tdep.c: Define enum with generic signal numbers.
3732 (linux_gdb_signal_from_target): New function.
3733 (linux_gdb_signal_to_target): Likewise.
3734 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3735 methods to the functions above.
3736 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3737 (linux_gdb_signal_to_target): Likewise.
3738 * alpha-linux-tdep.c: Define new enum with signals different
3739 from generic Linux kernel.
3740 (alpha_linux_gdb_signal_from_target): New function.
3741 (alpha_linux_gdb_signal_to_target): Likewise.
3742 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3743 with the functions mentioned above.
3744 * avr-tdep.c: Define enum with differences between Linux kernel
3746 (avr_linux_gdb_signal_from_target): New function.
3747 (avr_linux_gdb_signal_to_target): Likewise.
3748 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3749 the functions mentioned above.
3750 * sparc-linux-tdep.c: Define enum with differences between SPARC
3751 and generic Linux kernel signal numbers.
3752 (sparc32_linux_gdb_signal_from_target): New function.
3753 (sparc32_linux_gdb_signal_to_target): Likewise.
3754 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3755 to the functions defined above.
3756 * xtensa-linux-tdep.c: Define enum with differences between
3757 Xtensa and Linux kernel generic signals.
3758 (xtensa_linux_gdb_signal_from_target): New function.
3759 (xtensa_linux_gdb_signal_to_target): Likewise.
3760 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3761 to the functions defined above.
3762 * mips-linux-tdep.c: Define enum with differences between
3763 signals in MIPS and Linux kernel generic ones.
3764 (mips_gdb_signal_to_target): New function.
3765 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3766 only different signals from the Linux kernel generic.
3767 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3768 the functions defined above.
3769 * mips-linux-tdep.h (enum mips_signals): Remove.
3771 2013-08-09 Pedro Alves <palves@redhat.com>
3773 * avr-tdep.c (XMALLOC): Delete macro.
3774 * cli/cli-dump.c (XMALLOC): Delete macro.
3776 2013-08-09 Pedro Alves <palves@redhat.com>
3778 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3779 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3780 (fopen_with_cleanup, add_dump_command): Make static.
3781 * cli/cli-dump.h: Delete file.
3782 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3785 2013-08-09 Pedro Alves <palves@redhat.com>
3787 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3790 2013-08-09 Pedro Alves <palves@redhat.com>
3792 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3795 2013-08-09 Pedro Alves <palves@redhat.com>
3797 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3798 (gcore_command): Use tilde_expand here, and when showing the
3799 filename to the user, show the expanded version.
3801 2013-08-09 Yao Qi <yao@codesourcery.com>
3803 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3806 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3808 * gcore.c (create_gcore_bfd): Use tilde_expand.
3810 2013-08-08 Yao Qi <yao@codesourcery.com>
3812 * frame.h (read_frame_local): Declare.
3813 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3815 * stack.c (read_frame_local): New.
3817 2013-08-08 Yao Qi <yao@codesourcery.com>
3819 * mi/mi-cmd-stack.c: Update comments to function
3820 list_args_or_locals.
3822 2013-08-07 Tom Tromey <tromey@redhat.com>
3825 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3826 (process_psymtab_comp_unit_reader): Use it.
3827 (process_psymtab_comp_unit): Update. Add "pretend_language"
3829 (dwarf2_build_psymtabs_hard): Update.
3830 (scan_partial_symbols): Pass CU's language to
3831 process_psymtab_comp_unit.
3833 2013-08-07 Tom Tromey <tromey@redhat.com>
3835 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3836 (dwarf2_gdb_index_functions): Update.
3837 * psymtab.c (find_symbol_file_from_partial): Remove.
3838 (psym_functions): Update.
3839 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3842 2013-08-07 Tom Tromey <tromey@redhat.com>
3844 * symfile.c (set_initial_language): Look up "main" symbol
3845 and use its language.
3846 * symtab.c (find_main_filename): Remove.
3847 * symtab.h (find_main_filename): Remove.
3849 2013-08-07 Tom Tromey <tromey@redhat.com>
3851 * dwarf2read.c (recursively_compute_inclusions): Add
3852 "immediate_parent" argument. Set symtab's "user" field
3854 (compute_symtab_includes): Update.
3856 2013-08-07 Tom Tromey <tromey@redhat.com>
3858 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3859 when adding label symbols.
3861 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3862 Ulrich Weigand <uweigand@de.ibm.com>
3864 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3865 * configure.host (powerpc64-*-aix*): Likewise.
3867 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3868 Ulrich Weigand <uweigand@de.ibm.com>
3870 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3872 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3873 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3874 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3875 * configure.ac: Check for ptrace64.
3876 * configure, config.in: Regenerate.
3878 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3879 Ulrich Weigand <uweigand@de.ibm.com>
3881 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3882 Call ptrace64 instead of ptrace if defined.
3883 Add macro addr_ptr to take care of ptrace address argument.
3884 (pdc_read_regs): Likewise.
3885 (pdc_write_regs): Likewise.
3886 (aix_thread_resume): Likewise.
3887 (fetch_regs_kernel_thread): Likewise.
3888 (store_regs_kernel_thread): Likewise.
3890 2013-08-07 Anton Blanchard <anton@samba.org>
3892 * MAINTAINERS: Add myself to Write After Approval.
3894 2013-08-05 Tom Tromey <tromey@redhat.com>
3896 * aix-thread.c (_initialize_aix_thread): Use
3897 complete_target_initialization.
3898 * bsd-uthread.c (_initialize_bsd_uthread): Use
3899 complete_target_initialization.
3900 * dec-thread.c (_initialize_dec_thread): Use
3901 complete_target_initialization.
3902 * ravenscar-thread.c (_initialize_ravenscar): Use
3903 complete_target_initialization.
3904 * sol-thread.c (_initialize_sol_thread): Use
3905 complete_target_initialization.
3906 * spu-multiarch.c (_initialize_spu_multiarch): Use
3907 complete_target_initialization.
3909 2013-08-05 Tom Tromey <tromey@redhat.com>
3911 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3912 * ada-lang.c (ada_lookup_simple_minsym): Return
3913 bound_minimal_symbol.
3914 * ada-lang.h (ada_lookup_simple_minsym): Update.
3915 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3916 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3917 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3918 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3919 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3920 * minsyms.c (msymbol_objfile): Remove.
3921 (lookup_minimal_symbol_internal): New function, from
3922 lookup_minimal_symbol.
3923 (lookup_minimal_symbol): Rewrite using
3924 lookup_minimal_symbol_internal.
3925 (lookup_bound_minimal_symbol): New function.
3926 * minsyms.h (msymbol_objfile): Remove.
3927 (lookup_bound_minimal_symbol): Declare.
3928 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3929 * parse.c (write_exp_msymbol): Change parameter to a
3930 bound_minimal_symbol.
3931 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3932 * parser-defs.h (write_exp_msymbol): Update.
3933 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3934 * symfile.c (simple_read_overlay_table): Use
3935 lookup_bound_minimal_symbol.
3936 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3937 (search_symbols): Likewise.
3938 (print_msymbol_info): Take a bound_minimal_symbol argument.
3939 (symtab_symbol_info, rbreak_command): Update.
3940 * symtab.h (struct symbol_search) <msymbol>: Change type
3941 to bound_minimal_symbol.
3942 * valops.c (find_function_in_inferior): Use
3943 lookup_bound_minimal_symbol.
3944 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3946 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3949 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3951 (async_cleanup_sigint_signal_handler): ... this.
3952 (initialize_sigint_signal_handler): Remove declaration.
3953 (handle_remote_sigint): Rename the declaration to ...
3954 (async_handle_remote_sigint): ... this.
3955 (handle_remote_sigint_twice): Rename the declaration to ...
3956 (async_handle_remote_sigint_twice): ... this.
3957 (async_remote_interrupt, async_remote_interrupt_twice)
3958 (remote_interrupt): Remove the declarations.
3959 (remote_interrupt_twice): Rename the declaration ...
3960 (sync_remote_interrupt_twice): ... this.
3961 (sigint_remote_twice_token): Rename the variable to ...
3962 (async_sigint_remote_twice_token): ... this.
3963 (sigint_remote_token): Rename the variable to ...
3964 (async_sigint_remote_token): ... this.
3965 (initialize_sigint_signal_handler): Rename the function to ...
3966 (async_initialize_sigint_signal_handler): ... this. Update the name
3968 (handle_remote_sigint): Rename the function to ...
3969 (async_handle_remote_sigint): ... this. Update the names inside.
3970 (handle_remote_sigint_twice): Rename the function to ...
3971 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3972 (cleanup_sigint_signal_handler): Rename the function to ...
3973 (async_cleanup_sigint_signal_handler): ... this.
3974 (remote_interrupt): Rename the function to ...
3975 (sync_remote_interrupt): this. Update the names inside.
3976 (remote_interrupt_twice): Rename the function to ...
3977 (sync_remote_interrupt_twice): this. Update the names inside.
3978 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3979 (_initialize_remote): Update the names inside.
3981 2013-08-02 Tom Tromey <tromey@redhat.com>
3984 * breakpoint.c (update_watchpoint, watchpoint_check)
3985 (watch_command_1): Update.
3986 * eval.c (fetch_subexp_value): Add "preserve_errors"
3988 * ppc-linux-nat.c (check_condition): Update.
3989 * value.h (fetch_subexp_value): Update.
3991 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3993 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3996 2013-08-01 Doug Evans <dje@google.com>
3999 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4000 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4001 Add assert of sig_entry->dwo_unit == NULL.
4002 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4003 had already been read.
4004 (read_signatured_type): Set per_cu.tu_read.
4007 * valops.c (value_struct_elt): Add missing call to check_typedef.
4008 (value_find_oload_method_list): Ditto.
4010 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4011 effectively, struct symbol_search **.
4012 (make_cleanup_free_search_symbols): Change arg to struct
4013 symbol_search **. All callers updated.
4014 (compare_search_syms): Compare symtab file name and block as well.
4015 (search_symbols_equal): New function.
4016 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4017 New args new_head, new_tail. Result is now void. Remove dups after
4018 sorting the symbols.
4019 (search_symbols): Sort all found symbols once, after all have been
4020 found, and remove duplicates. Simplify cleanup tracking of result.
4021 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4023 Further workarounds for binutils/15021.
4024 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4025 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4026 Watch for duplicate symtabs coming from type units.
4027 (compute_symtab_includes): Update call to
4028 recursively_compute_inclusions. Build vector of included symtabs
4030 * symtab.h (symtab_ptr): New typedef.
4031 (DEF_VEC_P (symtab_ptr)): New VEC type.
4032 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4035 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4037 * cli/cli-script.c (script_from_file): Remove use of
4039 * main.c (captured_main): Remove use of error_pre_print and
4041 * utils.c (error_pre_print, quit_pre_print): Remove.
4042 * utils.h (error_pre_print, quit_pre_print): Likewise.
4044 2013-08-01 Yao Qi <yao@codesourcery.com>
4046 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4048 (mi_cmd_stack_list_variables): Likewise.
4050 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4052 * exceptions.c (deprecated_throw_reason): Remove.
4053 * exceptions.h (deprecated_throw_reason): Remove.
4055 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4057 * remote-mips.c (mips_error): Replace use of
4058 deprecated_throw_reason with throw_verror. Use the error message
4059 passed to mips_error as the error message for throw_verror.
4061 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4063 * monitor.c (monitor_interrupt_query): Replace use of
4064 deprecated_throw_reason with quit.
4065 * nto-procfs.c (interrupt_query): Likewise.
4066 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4067 * remote-mips.c (mips_kill): Likewise.
4068 * remote.c (interrupt_query): Likewise.
4070 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4072 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4075 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4076 Yao Qi <yao@codesourcery.com>
4078 * tracepoint.c (trace_dump_command): Select the current frame.
4080 2013-07-30 Doug Evans <dje@google.com>
4082 * dwarf2read.c (process_queue): Add type signature to debug output.
4084 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4086 * value.c (value_fetch_lazy): Mark optimized out values as such
4087 rather than raising an error.
4089 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4091 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4092 before checking which bits of the parent, not the child, value are
4095 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4098 * top.c: Include "filenames.h".
4099 (set_history_filename): New function.
4100 (init_main): Install it as set hook of the "set history filename"
4103 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4105 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4106 attribute parameter.
4107 (dwarf2_const_value_data): Constify struct attribute parameter.
4108 (dwarf2_const_value): Constify struct attribute parameter.
4109 (dwarf2_const_value_attr): Constify struct attribute parameter.
4110 (lookup_die_type): Constify struct attribute parameter.
4111 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4112 (follow_die_ref_or_sig): Constify struct attribute parameter.
4113 (follow_die_ref): Constify struct attribute parameter.
4114 (follow_die_sig): Constify struct attribute parameter.
4115 (get_DW_AT_signature_type): Constify struct attribute parameter.
4116 (get_type_unit_group): Constify struct attribute parameter.
4117 (fill_in_loclist_baton): Constify struct attribute parameter.
4118 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4119 (type_unit_group): Constify struct attribute parameter.
4121 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4123 * dwarf2read.c (attr_form_is_block): Make argument const.
4124 (attr_form_is_section_offset): Make argument const.
4125 (attr_form_is_constant): Make argument const.
4126 (attr_form_is_ref): Make argument const.
4128 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4130 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4132 (attr_form_is_ref): Moved below attr_form_is_constant.
4134 2013-07-29 Doug Evans <dje@google.com>
4136 * main.c (captured_command_loop): Tweak comment.
4138 * target.c (target_async_permitted_1): Fix comment.
4140 * symtab.c (iterate_over_some_symtabs): Add comment.
4142 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4144 2013-07-27 Yao Qi <yao@codesourcery.com>
4146 * NEWS: Mention that GDBserver now supports hardware
4147 watchpoints on the MIPS GNU/Linux target.
4149 2013-07-27 Yao Qi <yao@codesourcery.com>
4151 * Makefile.in (HFILES_NO_SRCDIR): Add
4152 common/mips-linux-watch.h.
4153 (mips-linux-watch.o): New rule.
4154 * common/mips-linux-watch.c: New.
4155 * common/mips-linux-watch.h: New.
4156 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4157 * mips-linux-nat.c: Include mips-linux-watch.h.
4158 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4159 to common/mips-linux-watch.h.
4160 (MAX_DEBUG_REGISTER): Likewise.
4161 (enum pt_watch_style): Likewise.
4162 (struct mips32_watch_regs): Likewise.
4163 (struct mips64_watch_regs): Likewise.
4164 (struct pt_watch_regs): Likewise.
4165 (struct mips_watchpoint): Likewise.
4166 (mips_linux_watch_get_irw_mask): Move to
4167 common/mips-linux-watch.c.
4168 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4169 (mips_linux_watch_get_watchlo): Likewise.
4170 (mips_linux_watch_set_watchlo): Likewise.
4171 (mips_linux_watch_get_watchhi): Likewise.
4172 (mips_linux_watch_set_watchhi): Likewise.
4173 (mips_linux_read_watch_registers): Likewise.
4174 (mips_linux_watch_type_to_irw): Likewise.
4175 (mips_linux_stopped_data_address, fill_mask): Likewise.
4176 (mips_linux_watch_try_one_watch): Likewise.
4177 (mips_linux_watch_populate_regs): Likewise.
4179 2013-07-27 Yao Qi <yao@codesourcery.com>
4181 * mips-linux-nat.c (get_irw_mask): Rename to ...
4182 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4183 'set' to 'n'. Update function comment. All callers changed.
4184 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4185 function comment. All callers changed.
4186 (get_num_valid): Rename to ...
4187 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4188 'set' to 'n'. Update function comment. All callers changed.
4189 (get_watchlo): Rename to ...
4190 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4191 'set' to 'n'. Update function comment. All callers changed.
4192 (set_watchlo): Rename to ...
4193 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4194 'set' to 'n'. Update function comment. All callers changed.
4195 (get_watchhi): Rename to ...
4196 (mips_linux_watch_get_watchhi): ... this. Update function
4197 comment. All callers changed.
4198 (set_watchhi): Rename to ...
4199 (mips_linux_watch_set_watchhi): ... this. Update function
4200 comment. All callers changed.
4201 (mips_linux_read_watch_registers): Update function comment.
4202 Add new parameters 'lwpid', 'watch_readback', and
4203 'watch_readback_valid'. Update.
4204 (type_to_irw): Rename to ...
4205 (mips_linux_watch_type_to_irw): ... this. Update function
4206 comment. All callers changed.
4207 (fill_mask): Update function comment.
4208 (try_one_watch): Rename to ...
4209 (mips_linux_watch_try_one_watch): ... this. Change the type
4210 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4211 (populate_regs_from_watches): Rename to ...
4212 (mips_linux_watch_populate_regs): ... this. Add parameter
4213 'current_watches'. All callers changed.
4215 2013-07-27 Yao Qi <yao@codesourcery.com>
4217 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4219 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4220 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4221 (struct pt_watch_regs): Likewise.
4222 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4223 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4224 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4225 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4226 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4228 2013-07-27 Yao Qi <yao@codesourcery.com>
4230 * breakpoint.h: Include break-common.h.
4231 (enum target_hw_bp_type): Move to ...
4232 * common/break-common.h: ... here. New.
4234 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4236 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4237 process group regardless of having tty on stdin.
4239 2013-07-25 Doug Evans <dje@google.com>
4241 * linux-fork.h (detach_fork): Delete.
4243 2013-07-25 Tom Tromey <tromey@redhat.com>
4245 PR remote/15256, PR remote/15266:
4246 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4247 * monitor.c (monitor_detach): Use unpush_target.
4248 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4249 * remote-mips.c (mips_detach): Use unpush_target. Don't
4251 * remote-sim.c (gdbsim_detach): Use unpush_target.
4252 * target.c (pop_target): Remove.
4253 (pop_all_targets_above): Don't call target_close.
4254 (target_close): Assert that the target is unpushed.
4255 * target.h (pop_target): Don't declare.
4256 * tracepoint.c (tfile_open): Use unpush_target.
4258 2013-07-25 Tom Tromey <tromey@redhat.com>
4260 * linux-thread-db.c (init_thread_db_ops): Call
4261 complete_target_initialization.
4262 (_initialize_thread_db): Don't call add_target.
4263 * target.c (complete_target_initialization): New function.
4264 (add_target_with_completer): Call it.
4265 * target.h (complete_target_initialization): Declare.
4267 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4269 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4270 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4271 (HPPANBSD_SIZEOF_GREGS): New define.
4272 (hppaobsd_supply_gregset): Handle additional registers.
4273 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4274 we provide more registers now.
4275 (hppabsd_supply_gregset): Supply additional registers.
4276 (hppabsd_collect_gregset): Collect additional registers.
4278 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4280 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4281 (hppabsd_dwarf2_frame_init_reg): New function.
4282 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4284 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4286 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4287 'z' format code. Remove error for optimized out values, standard
4288 code will handle these fine.
4290 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4292 * NEWS: Mention new 'z' formatter.
4293 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4294 (_initialize_printcmd): Mention 'z' formatter in help text of the
4297 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4299 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4302 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4304 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4305 interface can evaluate arguments. Fallback to the old mode if it
4307 (create_exception_master_breakpoint): Likewise.
4308 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4309 (struct sym_probe_fns elf_probe_fns): Export function above to the
4311 * probe.c (can_evaluate_probe_arguments): New function.
4312 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4314 (can_evaluate_probe_arguments): New function prototype.
4315 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4316 probe interface can evaluate arguments. Fallback to the old mode
4318 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4319 interface can evaluate arguments. Warning the user if it cannot.
4320 (stap_can_evaluate_probe_arguments): New function.
4321 (struct probe_ops stap_probe_ops): Export function above to the
4323 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4324 New function pointer.
4326 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4328 * Makefile.in (SFILES): Add common/target-common.c.
4329 Add common/target-common.h to headers.
4330 (COMMON_OBS): Add target-common.o.
4331 (target-common.o): New target.
4332 * linux-nat.h (resume_kind): Move to common/target-common.h.
4333 * target.c (target_waitstatus_to_string): Move to
4334 common/target-common.c.
4335 * target.h: Include target-common.h.
4336 (target_waitkind): Move to common/target-common.h.
4337 (target_waitstatus): Likewise.
4338 (TARGET_WNOHANG): Likewise.
4339 * common/target-common.c: New file.
4340 * common/target-common.h: New file.
4342 2013-07-24 Doug Evans <dje@google.com>
4344 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4347 2013-07-23 Yao Qi <yao@codesourcery.com>
4349 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4350 parameter 'gdbarch'.
4351 (i386_stack_tramp_frame_sniffer): Caller update.
4352 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4353 parameter 'gdbarch' and 'target'.
4354 (i386_linux_core_read_description): Caller update.
4355 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4357 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4360 2013-07-23 Tom Tromey <tromey@redhat.com>
4362 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4365 2013-07-22 Doug Evans <dje@google.com>
4367 * exec.h (remove_target_sections): Delete arg abfd.
4368 * exec.c (exec_close): Update call to remove_target_sections.
4369 (remove_target_sections): Delete arg abfd.
4370 * solib.c (update_solib_list): Ditto.
4371 (reload_shared_libraries_1): Ditto.
4372 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4373 * target.h (struct target_section): Rename key to owner.
4376 2013-07-22 Tom Tromey <tromey@redhat.com>
4378 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4380 2013-07-22 Tom Tromey <tromey@redhat.com>
4382 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4383 Simplify cleanup handling.
4385 2013-07-22 Tom Tromey <tromey@redhat.com>
4387 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4388 on all return paths.
4390 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4392 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4393 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4394 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4396 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4398 * top.c (print_gdb_version): Add help, apropos description and
4399 url to online documentation.
4401 2013-07-19 Hui Zhu <hui@codesourcery.com>
4404 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4406 2013-07-19 Yao Qi <yao@codesourcery.com>
4408 * target.c (update_current_target): Change the default action
4409 of 'to_traceframe_info' from tcomplain to return_zero.
4410 * target.h (struct target_ops) <to_traceframe_info>: Add more
4412 * valops.c (read_value_memory): Call
4413 traceframe_available_memory unconditionally.
4415 2013-07-18 Yao Qi <yao@codesourcery.com>
4417 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4418 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4419 symbol without prefix. If found, set its type to
4420 'mst_solib_trampoline'.
4422 2013-07-17 Doug Evans <dje@google.com>
4424 * NEWS: Mention "set print raw frame-arguments".
4425 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4426 * stack.c (print_raw_frame_arguments): New static global.
4427 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4428 (_initialize_stack): New command "set/show print raw frame-arguments".
4429 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4430 (set_print_raw, show_print_raw): New functions.
4431 (_initialize_valprint): New prefix command "set/show print raw".
4432 * valprint.h (value_print_options): Improve comments.
4434 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4435 of all *list variables.
4437 * gdbcmd.h (togglelist): Delete.
4438 * cli/cli-cmds.c (togglelist): Delete.
4439 (init_cmd_lists): Update.
4440 * cli/cli-cmds.h (togglelist): Delete.
4442 2013-07-17 Tom Tromey <tromey@redhat.com>
4444 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4447 2013-07-16 Doug Evans <dje@google.com>
4449 * nto-tdep.c (nto_relocate_section_addresses): Update,
4450 target_section.bfd deleted.
4451 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4452 * s390-tdep.c (s390_load): Ditto.
4453 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4455 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4457 * common/format.c (parse_format_string): Add checks for NULL
4458 character before calling strchr.
4460 2013-07-16 Doug Evans <dje@google.com>
4462 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4463 temp_pathname argument.
4464 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4465 when opening the file fails.
4467 * target.h (struct target_section): Delete member bfd.
4468 All users updated to use the_bfd_section->owner instead.
4469 * exec.c (add_to_section_table): Assert bfd is expected value.
4470 Remove initialization of target_section.bfd.
4471 (remove_target_sections): Update.
4472 (section_table_available_memory): Update.
4473 (section_table_xfer_memory_partial): Update.
4474 (print_section_info): Update.
4475 (exec_set_section_address): Update.
4476 * record-full.c (record_full_core_xfer_partial): Update.
4477 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4478 * solib-target.c (solib_target_relocate_section_addresses): Update.
4479 * symfile.c (build_section_addr_info_from_section_table): Update.
4480 * target.c (memory_xfer_live_readonly_partial): Update.
4481 (memory_xfer_partial_1): Update.
4483 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4485 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4486 now available for embedded (BookE) and server (BookS) processors,
4487 correct mentions of 'booke' and adjust comments accordingly in order to
4488 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4489 (have_ptrace_booke_interface): Rename function and variable
4490 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4491 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4492 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4493 'hwdebug_point_cmp'. Update all uses.
4494 (booke_find_thread_points_by_tid): Rename function
4495 'booke_find_thread_points_by_tid' to
4496 'hwdebug_find_thread_points_by_tid'. Update all uses.
4497 (booke_insert_point): Rename function 'booke_insert_point' to
4498 'hwdebug_insert_point'. Update all uses.
4499 (booke_remove_point): Rename function 'booke_remove_point' to
4500 'hwdebug_remove_point'. Update all uses.
4502 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4504 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4505 numbers with enum values.
4507 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4510 * thread.c (thread_apply_all_command): Check for valid threads
4512 (thread_array_cleanup): New struct.
4513 (set_thread_refcount): New function.
4515 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4517 * infcmd.c (default_print_one_register_info): Reuse function
4520 2013-07-10 Tom Tromey <tromey@redhat.com>
4522 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4523 (ada-exp.o): New target.
4525 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4527 * mt-tdep.c (mt_registers_info): Call
4528 get_no_prettyformat_print_options instead of
4529 get_raw_print_options (regression by last patch from Doug
4532 2013-07-09 Pedro Alves <palves@redhat.com>
4534 Checked in by Joel Brobecker <brobecker@adacore.com>.
4535 * ada-lang.c (coerce_unspec_val_to_type): Use
4536 value_optimized_out_const.
4537 * value.c (value_optimized_out_const): New function.
4538 * value.h (value_optimized_out_const): New declaration.
4540 2013-07-09 Doug Evans <dje@google.com>
4542 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4543 Enum values rename as well. All uses updated.
4544 * valprint.h (value_print_options): Rename member pretty to
4545 pretty format. Rename member prettyprint_arrays to
4546 prettyformat_arrays. Rename member prettyprint_structs to
4547 prettyformat_structs. All uses updated.
4548 (get_no_prettyformat_print_options): Renamed from
4549 get_raw_print_options.
4550 * valprint.c (get_no_prettyformat_print_options): Renamed from
4551 get_raw_print_options. All callers updated.
4552 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4553 All callers updated.
4554 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4555 All callers updated.
4556 (_initialize_valprint): Improve help text for "set print pretty" and
4559 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4561 * value.c (value_bits_valid): Revert previous change, and change
4562 by Pedro on 2013-07-04, due to regressions in
4563 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4565 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4566 Pedro Alves <palves@redhat.com>
4568 * value.c (value_bits_valid): If the value is not lval_computed
4569 or has no check validity handler then the answer is the
4570 optimized_out flag, otherwise defer to the handler.
4572 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4574 * top.c (print_gdb_configuration): Explain in output of
4575 --configuration what does "relocatable" mean.
4577 * main.c (print_gdb_help): Regroup options in the --help text.
4578 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4579 the relevant discussions.
4581 2013-07-06 Yao Qi <yao@codesourcery.com>
4583 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4584 Remove parameter 'lsal'.
4585 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4586 to inner block. Caller update.
4587 (base_breakpoint_create_breakpoints_sal): Update.
4588 (bkpt_create_breakpoints_sal): Likewise.
4589 (tracepoint_create_breakpoints_sal): Likewise.
4590 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4591 element 0 of vector 'canonical->sals'.
4593 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4595 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4596 register number instead of the pseudo register one.
4597 (rs6000_dwarf2_reg_to_regnum): Likewise.
4599 2013-07-04 Pedro Alves <palves@redhat.com>
4601 * findvar.c (value_of_register): Use allocate_optimized_out_value
4602 if the register has been optimized out, instead of
4603 set_value_optimized_out.
4604 * frame-unwind.c (frame_unwind_got_optimized): Use
4605 allocate_optimized_out_value.
4607 2013-07-04 Pedro Alves <palves@redhat.com>
4609 * value.c (value_bits_valid): If the value is not lval_computed,
4610 or doesn't have a check_validity hook, assume the value is entirely
4613 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4615 * stack.c (read_frame_arg): No longer fetch lazy values.
4616 * value.c (value_optimized_out): If the value is not already
4617 marked optimized out, and is lazy then fetch it.
4618 (value_primitive_field): Move optimized out check to later in the
4619 function, after we have loaded any lazy values.
4620 (value_fetch_lazy): Use optimized out flag directly rather than
4621 calling optimized_out method.
4623 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4625 * valops.c: Don't include "user-regs.h".
4626 (value_fetch_lazy): Moved to value.c.
4627 * value.c: Include "user-regs.h".
4628 (value_fetch_lazy): Moved from valops.c.
4630 2013-07-04 Yao Qi <yao@codesourcery.com>
4633 2013-06-27 Yao Qi <yao@codesourcery.com>
4635 * common/create-version.sh: Update comments. Handle the case
4636 that TARGET_ALIAS is empty.
4638 2013-07-03 Pedro Alves <palves@redhat.com>
4640 * Makefile.in (config.status): Depend on development.sh.
4641 (aclocal_m4_deps): Add libmcheck.m4.
4642 * acinclude.m4: Include libmcheck.m4.
4643 * configure.ac: Source development.sh instead of setting
4644 'development' here. --enable-libmcheck/--disable-libmcheck code
4645 factored out to GDB_AC_LIBMCHECK. Run it.
4646 * development.sh: New file.
4647 * libmcheck.m4: New file.
4648 * configure: Regenerate.
4650 2013-07-02 Tom Tromey <tromey@redhat.com>
4652 * contrib/ari/update-web-ari.sh: Update for version.in change.
4654 2013-07-02 Tom Tromey <tromey@redhat.com>
4656 * common/ptid.h: Comment fixes.
4658 2013-07-01 Tom Tromey <tromey@redhat.com>
4660 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4661 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4662 (dwarf2_read_index, create_all_comp_units): Update.
4664 2013-07-01 Tom Tromey <tromey@redhat.com>
4666 * configure.ac (build_warnings): Add -Wold-style-definition.
4667 * configure: Rebuild.
4668 * machoread.c (_initialize_machoread): Use "(void)".
4669 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4672 2013-07-01 Tom Tromey <tromey@redhat.com>
4674 * configure.ac (build_warnings): Add -Wold-style-declaration.
4675 * configure: Rebuild.
4676 * dsrec.c (make_srec): Use "static const", not "const static".
4677 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4679 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4680 Use "static const", not "const static".
4681 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4683 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4685 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4687 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4689 (v850_dbtrap_breakpoint_from_pc): Likewise.
4690 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4693 2013-07-01 Tom Tromey <tromey@redhat.com>
4695 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4696 * configure: Rebuild.
4698 2013-07-01 Pedro Alves <palves@redhat.com>
4700 * defs.h: Include "pathmax.h".
4701 * utils.c: Don't include sys/param.h.
4702 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4703 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4704 instead of MAXPATHLEN.
4705 * solib-sunos.c: Don't include sys/param.h.
4706 * xcoffread.c: Don't include sys/param.h.
4707 * bsd-kvm.c: Don't include sys/param.h.
4708 * darwin-nat.c: Don't include sys/param.h.
4709 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4710 * darwin-nat-info.c: Don't include sys/param.h.
4711 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4713 * i386obsd-nat.c: Don't include sys/param.h.
4714 * inf-child.c: Don't include sys/param.h.
4715 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4716 * linux-fork.c: Don't include sys/param.h.
4717 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4718 * linux-nat.c: Don't include sys/param.h.
4719 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4720 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4721 * m68klinux-nat.c: Don't include sys/param.h.
4722 * nbsd-nat.c: Don't include sys/param.h.
4723 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4724 * ppc-linux-nat.c: Don't include sys/param.h.
4725 * rs6000-nat.c: Don't include sys/param.h.
4726 * spu-linux-nat.c. Don't include sys/param.h.
4727 * windows-nat.c: Don't include sys/param.h.
4728 * xtensa-linux-nat.c: Don't include sys/param.h.
4729 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4731 2013-07-01 Pedro Alves <palves@redhat.com>
4733 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4734 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4735 * gnulib/aclocal.m4: Regenerate.
4736 * gnulib/config.in: Regenerate.
4737 * gnulib/configure: Regenerate.
4738 * gnulib/import/pathmax.h: New file.
4739 * gnulib/import/Makefile.am: Regenerate.
4740 * gnulib/import/Makefile.in: Regenerate.
4741 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4742 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4743 * gnulib/import/m4/pathmax.m4: New file.
4745 2013-07-01 Pedro Alves <palves@redhat.com>
4747 * configure.ac (GDBINIT): Define, depending on host.
4748 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4749 * top.c (PATH_MAX): Delete fallback definition.
4750 (GDBINIT_FILENAME): Delete.
4751 (gdbinit): Reimplement as const char array set to the GDBINIT
4753 * top.h (gdbinit): Make const.
4754 * configure, config.in: Regenerate.
4756 2013-07-01 Pedro Alves <palves@redhat.com>
4758 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4759 * cli/cli-cmds.h (source_script): Likewise.
4760 * exceptions.c (catch_command_errors_const): New function.
4761 * exceptions.h (catch_command_errors_const): Declare.
4762 * main.c (get_init_files): Make parameters const, and adjust.
4763 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4764 'local_gdbinit' locals const. Adjust to use
4765 catch_command_errors_const.
4766 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4767 'local_gdbinit' locals const.
4769 2013-07-01 Pedro Alves <palves@redhat.com>
4771 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4772 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4773 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4776 2013-07-01 Pedro Alves <palves@redhat.com>
4778 Import the "unistd" gnulib module.
4779 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4780 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4781 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4782 import/m4/unistd_h.m4.
4783 * gnulib/aclocal.m4: Renenerate.
4784 * gnulib/config.in: Renenerate.
4785 * gnulib/configure: Renenerate.
4786 * gnulib/import/Makefile.am: Renenerate.
4787 * gnulib/import/Makefile.in: Renenerate.
4788 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4789 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4790 * gnulib/import/m4/off_t.m4: New file.
4791 * gnulib/import/m4/ssize_t.m4: New file.
4792 * gnulib/import/m4/sys_types_h.m4: New file.
4793 * gnulib/import/m4/unistd_h.m4: New file.
4794 * gnulib/import/sys_types.in.h: New file.
4795 * gnulib/import/unistd.c: New file.
4796 * gnulib/import/unistd.in.h: New file.
4798 2013-07-01 Pedro Alves <palves@redhat.com>
4800 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4801 defined instead of checking HAVE_UNISTD_H.
4803 2013-07-01 Pedro Alves <palves@redhat.com>
4805 Reimport gnulib from scratch.
4806 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4807 import/m4/onceonly.m4.
4808 * gnulib/aclocal.m4: Renegerate.
4809 * gnulib/config.in: Renegerate.
4810 * gnulib/configure: Renegerate.
4811 * gnulib/import/Makefile.in: Renegerate.
4812 * gnulib/import/extra/update-copyright: Renegerate.
4813 * gnulib/import/m4/onceonly.m4: Delete.
4815 2013-07-01 Pedro Alves <palves@redhat.com>
4817 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4819 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4822 * remote.c (async_remote_interrupt_twice): Make it static.
4823 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4825 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4827 * ia64-linux-tdep.c: Include <ctype.h>.
4828 (ia64_linux_stap_is_single_operand): New function.
4829 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4831 2013-06-28 Tom Tromey <tromey@redhat.com>
4833 * Makefile.in (version.c): Use version.in, not
4835 * common/create-version.sh: Likewise.
4836 * common/version.in: Move...
4837 * version.in: ...here.
4839 2013-06-28 Pedro Alves <palves@redhat.com>
4841 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4843 * utils.h (pagination_enabled): Declare.
4845 2013-06-28 Pedro Alves <palves@redhat.com>
4847 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4848 Move higher up in file.
4850 2013-06-28 Tom Tromey <tromey@redhat.com>
4852 * tracepoint.c (deprecated_readline_begin_hook)
4853 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4856 2013-06-28 Pedro Alves <palves@redhat.com>
4859 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4860 checking if they're available.
4861 * value.c (value_available_contents_eq): Change comment.
4862 * value.h (value_available_contents_eq): Expand comment.
4864 2013-06-27 Tom Tromey <tromey@redhat.com>
4866 * target.c (find_run_target): Remove.
4867 * target.h (find_run_target): Remove.
4869 2013-06-27 Tom Tromey <tromey@redhat.com>
4871 * corelow.c (core_gdbarch): Now static.
4873 2013-06-27 Tom Tromey <tromey@redhat.com>
4875 * target.c (target_struct_index): Remove.
4877 2013-06-27 Pedro Alves <palves@redhat.com>
4879 * infrun.c: Remove comment describing the 'stepping over runtime
4880 loader dynamic symbol resolution code' mechanism; moved to
4883 2013-06-27 Pedro Alves <palves@redhat.com>
4885 * exceptions.c (catch_command_errors): Remove spurious space.
4886 * exceptions.h (catch_command_errors): Second parameter is "arg",
4889 2013-06-27 Yao Qi <yao@codesourcery.com>
4891 * common/create-version.sh: Update comments. Handle the case
4892 that TARGET_ALIAS is empty.
4894 2013-06-26 Pedro Alves <palves@redhat.com>
4896 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4899 2013-06-26 Pedro Alves <palves@redhat.com>
4901 * infrun.c: Update comments on stepping over runtime loader
4902 dynamic symbol resolution code.
4904 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4906 * ax-gdb.h (union exp_element): Forward declare.
4907 * parser-defs.h: Include expression.h.
4909 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4911 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4913 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4915 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4917 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4919 Fix trace-status to output proper start-time and stop-time.
4920 * tracepoint.c (trace_status_command): Fix type of printf arg to
4921 prevent improper type conversion.
4922 (trace_status_mi): Likewise.
4924 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4926 * mips-tdep.c (mips_next_pc): Fix a typo.
4928 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4930 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4932 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4933 Yao Qi <yao@codesourcery.com>
4935 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4936 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4937 * mi/mi-main.c (print_variable_or_computed): New function.
4938 (mi_cmd_trace_frame_collected): New function.
4939 * tracepoint.c (find_trace_state_variable_by_number): New.
4940 (struct traceframe_info): Move to tracepoint.h
4941 (struct collection_list): Likewise.
4942 (do_collect_symbol): Include locals and arguments in the
4943 collected variables list.
4944 (clear_collection_list): Clear wholly collected variables list
4945 and computed variables list.
4946 (append_exp): New function.
4947 (encode_actions_1): Include variables in the wholly
4948 collected variables list. Include memory ranges and
4949 full-fledged expressions in the computed expressions list.
4950 (encode_actions): Move some code to ...
4951 Return the cleanup chain.
4952 (encode_actions_rsp): ... here. New function.
4953 (get_traceframe_location, get_traceframe_info): Remove static.
4954 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4955 (struct collection_list): Moved from tracepoint.c. Add two
4956 new fields 'wholly_collected' and 'computed'.
4957 (find_trace_state_variable_by_number): Declare.
4958 (encode_actions): Adjust declaration.
4959 (encode_actions_rsp): Declare.
4960 (get_traceframe_info, get_traceframe_location): Declare.
4962 * NEWS: Mention new MI command -trace-frame-collected.
4964 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4965 Yao Qi <yao@codesourcery.com>
4967 * ctf.c (ctf_traceframe_info): Push trace state variables
4968 present in the trace data into the traceframe info object.
4969 * breakpoint.c (DEF_VEC_I): Remove.
4970 * common/filestuff.c (DEF_VEC_I): Likewise.
4971 * dwarf2loc.c (DEF_VEC_I): Likewise.
4972 * mi/mi-main.c (DEF_VEC_I): Likewise.
4973 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4974 * features/traceframe-info.dtd: Add tvar element and its
4976 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4977 (build_traceframe_info): Push trace state variables present in
4978 the trace data into the traceframe info object.
4979 (traceframe_info_start_tvar): New function.
4980 (tvar_attributes): New.
4981 (traceframe_info_children): Add "tvar" element.
4982 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4984 * NEWS: Mention the change in GDB and GDBserver.
4986 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4987 Yao Qi <yao@codesourcery.com>
4989 * tracepoint.c (trace_dump_command): Move code to ...
4990 (get_traceframe_location): ... here. New.
4992 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4993 Yao Qi <yao@codesourcery.com>
4995 * tracepoint.c (trace_dump_command): GDB emits an error
4996 instead of a warning when a traceframe is not selected.
4998 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4999 Yao Qi <yao@codesourcery.com>
5001 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5002 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5004 (do_clear_collection_list, init_collection_list): New.
5005 (encode_actions): Add local variables 'tracepoint_list' and
5006 'stepping_list'. Call init_collection_list and make cleanup
5007 which calls do_clear_collection_list. Don't call
5008 clear_collection_list.
5009 (_initialize_tracepoint): Delete references to
5010 'tracepoint_list' and 'stepping_list'.
5012 2013-06-25 Tom Tromey <tromey@redhat.com>
5014 * common/create-version.sh (date): Use "$", not "$$" in sed
5017 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5019 * NEWS (New targets): Add entry for TI MSP430.
5021 2013-06-25 Yao Qi <yao@codesourcery.com>
5023 * remote.c (remote_start_remote): Move code to upload tsv
5026 2013-06-25 Yao Qi <yao@codesourcery.com>
5027 Hui Zhu <hui@codesourcery.com>
5028 Pedro Alves <palves@redhat.com>
5030 PR breakpoints/15075
5031 PR breakpoints/15434
5032 * breakpoint.c (bpstat_stop_status): Call
5033 b->ops->after_condition_true.
5034 (update_dprintf_command_list): Don't append "continue" command
5035 to the command list of dprintf breakpoint.
5036 (base_breakpoint_after_condition_true): New function.
5037 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5038 (dprintf_after_condition_true): New function.
5039 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5040 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5042 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5044 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5045 (ALLDEPFILES): Add msp430-tdep.c.
5046 * configure.tgt (msp430*-*-elf): New target.
5047 * msp430-tdep.c: New file.
5049 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5051 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5052 microMIPS synthetic symbols.
5054 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5056 * objfiles.h (pc_in_section): New prototype.
5057 (in_plt_section): Remove name argument, replace prototype with
5058 static inline function.
5059 * mips-tdep.h: Include "objfiles.h".
5060 (in_mips_stubs_section): New function.
5061 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5062 in_solib_call_trampoline member.
5063 (hppa_in_solib_call_trampoline): Remove name argument.
5064 * objfiles.c (pc_in_section): New function.
5065 (in_plt_section): Remove function.
5066 * mips-linux-tdep.c: Include "objfiles.h".
5067 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5068 name argument. Return 1 rather than the low 16-bit halfword of
5069 any instruction examined.
5070 (mips_linux_in_dynsym_resolve_code): Update
5071 mips_linux_in_dynsym_stub call accordingly.
5072 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5073 rather than an equivalent hand-coded sequence.
5074 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5075 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5076 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5077 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5079 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5080 on call to tdep->in_solib_call_trampoline.
5081 (hppa_in_solib_call_trampoline): Remove name argument, update
5082 according to in_plt_section change.
5083 (hppa_skip_trampoline_code): Update according to in_plt_section
5085 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5086 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5088 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5089 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5090 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5091 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5092 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5093 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5094 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5095 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5096 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5097 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5098 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5099 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5100 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5102 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5104 * common/create-version.sh: Fix expansion of $host_alias
5105 and $target_alias in generation of HOST_NAME and TARGET_NAME
5108 2013-06-24 Tom Tromey <tromey@redhat.com>
5110 * common/create-version.sh: New file.
5111 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5113 (HFILES_NO_SRCDIR): Use common/version.h.
5114 * version.in: Move to ...
5115 * common/version.in: ... here. Replace date with "DATE".
5116 * version.h: Move to ...
5117 * common/version.h: ... here.
5119 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5121 * gdb/gnulib/Makefile.in: Update date in copyright header.
5122 * gdb/gnulib/configure.ac: Ditto.
5123 * gdb/gnulib/update-gnulib.sh: Ditto.
5125 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5127 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5128 "gdb/gnulib/import".
5130 2013-06-21 Will Newton <will.newton@linaro.org>
5132 * doublest.c (ldfrexp): Remove function.
5133 (convert_doublest_to_floatformat): Call frexpl instead of
5136 2013-06-21 Will Newton <will.newton@linaro.org>
5138 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5139 * gnulib/aclocal.m4: Regenerate.
5140 * gnulib/config.in: Regenerate.
5141 * gnulib/configure: Regenerate.
5142 * gnulib/import/Makefile.am: Update.
5143 * gnulib/import/Makefile.in: Update.
5144 * gnulib/import/m4/gnulib-cache.m4: Update.
5145 * gnulib/import/m4/gnulib-comp.m4: Update.
5146 * gnulib/import/float+.h: Import.
5147 * gnulib/import/float.c: Import.
5148 * gnulib/import/float.in.h: Import.
5149 * gnulib/import/fpucw.h: Import.
5150 * gnulib/import/frexp.c: Import.
5151 * gnulib/import/frexpl.c: Import.
5152 * gnulib/import/isnan.c: Import.
5153 * gnulib/import/isnand-nolibm.h: Import.
5154 * gnulib/import/isnand.c: Import.
5155 * gnulib/import/isnanl-nolibm.h: Import.
5156 * gnulib/import/isnanl.c: Import.
5157 * gnulib/import/itold.c: Import.
5158 * gnulib/import/m4/exponentd.m4: Import.
5159 * gnulib/import/m4/exponentl.m4: Import.
5160 * gnulib/import/m4/float_h.m4: Import.
5161 * gnulib/import/m4/fpieee.m4: Import.
5162 * gnulib/import/m4/frexp.m4: Import.
5163 * gnulib/import/m4/frexpl.m4: Import.
5164 * gnulib/import/m4/isnand.m4: Import.
5165 * gnulib/import/m4/isnanl.m4: Import.
5166 * gnulib/import/m4/math_h.m4: Import.
5167 * gnulib/import/math.c: Import.
5168 * gnulib/import/math.in.h: Import.
5170 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5172 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5173 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5174 signature_INTEL_edx comparisons.
5176 2013-06-20 Doug Evans <dje@google.com>
5179 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5180 All callers updated.
5181 (open_dwp_file): If we can't find the dwp file, search the basename
5182 in debug-file-directory.
5184 * dwarf2read.c (struct dwp_file): Fix comment.
5185 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5187 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5190 2013-06-20 Yao Qi <yao@codesourcery.com>
5192 * breakpoint.c (create_breakpoint): Fix code indentation.
5194 2013-06-20 Yao Qi <yao@codesourcery.com>
5196 * breakpoint.c (create_breakpoints_sal_default): Remove
5197 parameter 'lsal'. Update declaration.
5198 (bkpt_create_breakpoints_sal): Caller update.
5199 (tracepoint_create_breakpoints_sal): Likewise.
5201 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5202 Yao Qi <yao@codesourcery.com>
5204 * NEWS: Mention the new option '--skip-unavailable' of command
5205 -data-list-register-values.
5206 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5207 --skip-unavailable option. Adjust to use output_register.
5208 (output_register): Add new 'skip_unavailable' parameter.
5211 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5213 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5214 common/i386-gcc-cpuid.h.
5215 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5216 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5217 Copy the latest version from upstream gcc.
5218 * common/linux-btrace.c: Include i386-cpuid.h.
5219 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5221 (cpu_supports_btrace): Likewise.
5222 * go32-nat.c: Include i386-cpuid.h.
5223 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5225 2013-06-19 Doug Evans <dje@google.com>
5227 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5228 (get_section_index): Ditto.
5230 2013-06-19 Tom Tromey <tromey@redhat.com>
5232 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5235 2013-06-18 Doug Evans <dje@google.com>
5237 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5239 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5240 Move test of cu_index closer to use. Print complaint if cu_index
5243 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5245 * machoread.c (oso_vector): Delete this global.
5246 (macho_register_oso): Add new parameter "oso_vector_ptr".
5247 Use it instead of the "oso_vector" global.
5248 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5249 (macho_symfile_read): Use a local oso_vector, to be free'ed
5250 at the end of this function, in place of the old "oso_vector"
5251 global. Update various function calls accordingly. Use one
5252 single cleanup chain for the entire function.
5254 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5256 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5257 DWARF2_PER_OBJFILE by uses of DATA instead.
5259 2013-06-18 Tom Tromey <tromey@redhat.com>
5261 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5263 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5264 Special case signals other than GDB_SIGNAL_TRAP.
5265 (explains_signal_watchpoint): New function.
5266 (base_breakpoint_explains_signal): Add 'sig' argument.
5267 (initialize_breakpoint_ops): Set 'explains_signal' method for
5269 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5271 (bpstat_explains_signal): Likewise.
5272 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5274 2013-06-18 Tom Tromey <tromey@redhat.com>
5276 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5278 2013-06-18 Tom Tromey <tromey@redhat.com>
5280 * python/python.c (finish_python_initialization): Decref
5281 'pythondir' on failure path as well.
5283 2013-06-18 Tom Tromey <tromey@redhat.com>
5286 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5287 after taking bits_to_skip into account. Sign extend byte_offset.
5288 * utils.h (gdb_sign_extend): Declare.
5289 * utils.c (gdb_sign_extend): New function.
5291 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5293 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5295 2013-06-17 Pierre Muller <muller@sourceware.org>
5297 * corelow.c (core_open): Print GDB signal name instead of target
5300 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5302 * .gitignore: Add /gcore.
5304 2013-06-13 Doug Evans <dje@google.com>
5306 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5307 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5309 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5311 * stack.c (backtrace_command_1): Fix indentation.
5313 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5315 * window-nat.c (thread_rec): Add missing empty line after
5316 local variable declaration.
5318 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5320 * windows-nat.c (thread_rec): Revert format used to print
5321 error code returned by SuspendThread from %d back to %u.
5323 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5325 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5327 (get_windows_debug_event): Likewise, for all debug traces.
5329 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5331 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5334 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5335 Yao Qi <yao@codesourcery.com>
5337 * mi/mi-main.c (get_register): Remove declaration.
5338 (output_register): Declare.
5339 (mi_cmd_data_list_register_values): Remove local variable
5340 'tuple_cleanup'. Move some code into output_register.
5341 (get_register): Renamed to ...
5342 (output_register): ... this. Output the register's
5343 "number" ui_out tuple here.
5345 2013-06-07 Pedro Alves <palves@redhat.com>
5347 * darwin-nat.c: Fix formating in copyright header.
5348 * darwin-nat.h: Likewise.
5349 * gnu-nat.c: Likewise.
5350 * machoread.c: Likewise.
5352 2013-06-07 Pedro Alves <palves@redhat.com>
5355 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5356 static. Output a global target description pointer.
5357 (init_registers_${name}): Adjust to initialize a
5358 target description structure.
5360 2013-06-07 Will Newton <will.newton@linaro.org>
5362 * printcmd.c (build_address_symbolic): Call
5363 gdbarch_addr_bits_remove for text minimal symbols.
5365 2013-06-07 Will Newton <will.newton@linaro.org>
5367 * MAINTAINERS: Add myself to Write After Approval.
5369 2013-06-07 Yao Qi <yao@codesourcery.com>
5371 * tracepoint.c (start_tracing): Move code to ...
5372 (trace_reset_local_state): ... here. New.
5373 (disconnect_tracing): Don't call set_current_traceframe,
5374 set_tracepoint_num, and set_traceframe_context. Call
5375 trace_reset_local_state instead.
5376 (tfile_close): Call trace_reset_local_state.
5377 * ctf.c (ctf_close): Likewise.
5378 * remote.c (remote_close): Likewise.
5379 * tracepoint.h (trace_reset_local_state): Declare.
5381 2013-06-06 Doug Evans <dje@google.com>
5383 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5384 and fix header docs.
5386 2013-06-05 Doug Evans <dje@google.com>
5387 Keith Seitz <keiths@redhat.com>
5390 * cp-namespace.c (find_symbol_in_baseclass): Call
5391 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5392 Check result of call to lookup_symbol_static.
5393 Call lookup_static_symbol_aux unconditionally.
5394 Call check_typedef on base types before accessing them.
5395 (cp_lookup_nested_symbol): Fix comment.
5397 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5399 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5400 minimal symbols pointing to function descriptors.
5402 2013-06-05 Tom Tromey <tromey@redhat.com>
5404 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5406 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5407 Pedro Alves <palves@redhat.com>
5409 * remote.c (remote_wait_as): Restore signal handler before returning
5410 when GDB gets a notification.
5412 2013-06-04 Gary Benson <gbenson@redhat.com>
5415 * breakpoint.h (handle_solib_event): Moved function declaration
5417 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5418 (bpstat_stop_status): Pass new argument to handle_solib_event.
5419 * solib.h (update_solib_breakpoints): New function declaration.
5420 (handle_solib_event): Moved function declaration from
5422 * solib.c (update_solib_breakpoints): New function.
5423 (handle_solib_event): Moved function from breakpoint.c.
5424 Updated to call solib_ops->handle_event if not NULL.
5425 * solist.h (target_so_ops): New fields "update_breakpoints" and
5427 * infrun.c (set_stop_on_solib_events): New function.
5428 (_initialize_infrun): Use the above for "set
5429 stop-on-solib-events".
5430 (handle_inferior_event): Pass new argument to handle_solib_event.
5431 * solib-svr4.c (probe.h): New include.
5432 (svr4_free_library_list): New forward declaration.
5433 (probe_action): New enum.
5434 (probe_info): New struct.
5435 (probe_info): New static variable.
5436 (NUM_PROBES): New definition.
5437 (svr4_info): New fields "using_xfer", "probes_table" and
5439 (free_probes_table): New function.
5440 (free_solib_list): New function.
5441 (svr4_pspace_data_cleanup): Free probes table and solib list.
5442 (svr4_copy_library_list): New function.
5443 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5444 (svr4_read_so_list): New parameter "prev_lm".
5445 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5446 (svr4_current_sos): New function.
5447 (probe_and_action): New struct.
5448 (hash_probe_and_action): New function.
5449 (equal_probe_and_action): Likewise.
5450 (register_solib_event_probe): Likewise.
5451 (solib_event_probe_at): Likewise.
5452 (solib_event_probe_action): Likewise.
5453 (solist_update_full): Likewise.
5454 (solist_update_incremental): Likewise.
5455 (disable_probes_interface_cleanup): Likewise.
5456 (svr4_handle_solib_event): Likewise.
5457 (svr4_update_solib_event_breakpoint): Likewise.
5458 (svr4_update_solib_event_breakpoints): Likewise.
5459 (svr4_create_solib_event_breakpoints): Likewise.
5460 (enable_break): Free probes table before creating breakpoints.
5461 Use svr4_create_solib_event_breakpoints to create breakpoints.
5462 (svr4_solib_create_inferior_hook): Free the solib list.
5463 (_initialize_svr4_solib): Initialise
5464 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5466 2013-06-04 Gary Benson <gbenson@redhat.com>
5468 * target.h (target_ops): New field
5469 "to_augmented_libraries_svr4_read".
5470 (target_augmented_libraries_svr4_read): New macro.
5471 * target.c (update_current_target): Handle
5472 to_augmented_libraries_svr4_read.
5473 * remote.c (remote_state): New field
5474 "augmented_libraries_svr4_read".
5475 (remote_augmented_libraries_svr4_read_feature): New function.
5476 (remote_protocol_features): Add entry for
5477 "augmented-libraries-svr4-read".
5478 (remote_augmented_libraries_svr4_read): New function.
5479 (init_remote_ops): Initialize
5480 remote_ops.to_augmented_libraries_svr4_read.
5482 2013-06-04 Gary Benson <gbenson@redhat.com>
5486 2013-06-04 Gary Benson <gbenson@redhat.com>
5488 * objfiles.h (inhibit_section_map_updates): New function
5490 (resume_section_map_updates): Likewise.
5491 (resume_section_map_updates_cleanup): Likewise.
5492 * objfiles.c (objfile_pspace_info): Removed field
5493 "objfiles_changed_p". New fields "new_objfiles_available",
5494 "section_map_dirty" and "inhibit_updates".
5495 (allocate_objfile): Set new_objfiles_available.
5496 (free_objfile): Set section_map_dirty.
5497 (objfile_relocate1): Likewise.
5498 (in_plt_section): Likewise.
5499 (find_pc_section): Update the conditions under which the
5500 section map will be updated.
5501 (inhibit_section_map_updates): New function.
5502 (resume_section_map_updates): Likewise.
5503 (resume_section_map_updates_cleanup): Likewise.
5505 2013-06-04 Gary Benson <gbenson@redhat.com>
5507 * probe.h (get_probe_argument_count): New declaration.
5508 (evaluate_probe_argument): Likewise.
5509 * probe.c (get_probe_argument_count): New function.
5510 (evaluate_probe_argument): Likewise.
5511 (probe_safe_evaluate_at_pc): Use the above new functions.
5513 2013-06-04 Alan Modra <amodra@gmail.com>
5515 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5516 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5517 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5518 target mem reads on optional insns.
5519 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5520 ppc_insns_match_pattern calls.
5521 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5522 Add match for power7 thread safety insns, and new order of
5523 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5524 invocation in comment, and update rest of comment.
5525 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5526 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5527 (ppc64_standard_linkage2_target): Update insn offsets.
5528 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5529 stubs first. Update calls.
5531 2013-06-04 Yao Qi <yao@codesourcery.com>
5533 * solib.c (solib_find): Don't need dir separator if path has
5536 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5538 Revert (indirectly causes a SIGSEGV):
5539 * machoread.c (macho_symfile_read): Assign first cleanup to
5542 2013-06-03 Yao Qi <yao@codesourcery.com>
5544 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5545 mi-parse.c. Make them static.
5546 (mi_all_values): Likewise.
5547 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5548 mi_parse_print_values. Make it external.
5549 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5550 Remove the declarations.
5551 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5552 * mi/mi-parse.h (mi_parse_print_values): Declare.
5553 * mi/mi-cmd-stack.c: Include mi-parse.h.
5554 (parse_print_values): Remove
5555 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5556 of parse_print_values.
5557 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5559 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5560 Yao Qi <yao@codesourcery.com>
5562 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5563 (encode_actions): Move code to ...
5564 (all_tracepoint_actions_and_cleanup): ... here. New.
5565 (trace_dump_command): Likewise.
5567 2013-05-30 Tom Tromey <tromey@redhat.com>
5569 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5571 2013-05-30 Tom Tromey <tromey@redhat.com>
5573 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5574 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5575 'old_chain' argument. Add 'parser_result' argument.
5576 (gdb_xml_create_parser_and_cleanup): Remove old version.
5577 (gdb_xml_parse_quick): Update.
5578 (xml_process_xincludes): Update.
5579 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5582 2013-05-30 Tom Tromey <tromey@redhat.com>
5584 * probe.c (collect_probes): Check arguments for NULL before
5585 calling compile_rx_or_error.
5586 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5589 2013-05-30 Tom Tromey <tromey@redhat.com>
5591 * infrun.c (adjust_pc_after_break): Introduce an outer null
5594 2013-05-30 Tom Tromey <tromey@redhat.com>
5596 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5598 2013-05-30 Tom Tromey <tromey@redhat.com>
5600 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5601 for 'old_chain'. Do not check 'head' before processing
5604 2013-05-30 Tom Tromey <tromey@redhat.com>
5606 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5609 2013-05-30 Tom Tromey <tromey@redhat.com>
5611 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5612 inner scope. Unconditionally call do_cleanups.
5614 2013-05-30 Tom Tromey <tromey@redhat.com>
5616 * source.c (find_and_open_source): Call do_cleanups.
5618 2013-05-30 Tom Tromey <tromey@redhat.com>
5620 * linux-thread-db.c (thread_db_load_search): Unconditionally
5623 2013-05-30 Tom Tromey <tromey@redhat.com>
5625 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5626 for 'cleanup'; instead use a later one.
5628 2013-05-30 Tom Tromey <tromey@redhat.com>
5630 * python/py-breakpoint.c (bppy_get_commands): Use
5631 explicit, unconditional return.
5632 * python/py-frame.c (frapy_read_var): Likewise.
5633 * python/python.c (gdbpy_decode_line): Likewise.
5635 2013-05-30 Tom Tromey <tromey@redhat.com>
5637 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5638 do_cleanups on all return paths.
5640 2013-05-30 Tom Tromey <tromey@redhat.com>
5642 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5644 2013-05-30 Tom Tromey <tromey@redhat.com>
5646 * stabsread.c (read_struct_type): Call do_cleanups along
5649 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5651 * mips-linux-tdep.c: Adjust formatting throughout.
5653 2013-05-30 Tom Tromey <tromey@redhat.com>
5655 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5656 along all return paths.
5658 2013-05-30 Tom Tromey <tromey@redhat.com>
5660 * symfile.c (find_separate_debug_file): Call do_cleanups
5661 along all return paths.
5663 2013-05-30 Tom Tromey <tromey@redhat.com>
5665 * symtab.c (search_symbols): Introduce a null cleanup for
5668 2013-05-30 Tom Tromey <tromey@redhat.com>
5670 * python/py-value.c (valpy_binop): Call do_cleanups before
5673 2013-05-30 Tom Tromey <tromey@redhat.com>
5675 * python/py-prettyprint.c (print_children): Remove extra
5678 2013-05-30 Tom Tromey <tromey@redhat.com>
5680 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5683 2013-05-30 Tom Tromey <tromey@redhat.com>
5685 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5686 along all return paths.
5688 2013-05-30 Tom Tromey <tromey@redhat.com>
5690 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5693 2013-05-30 Tom Tromey <tromey@redhat.com>
5695 * varobj.c (c_value_of_root): Call do_cleanups along all
5698 2013-05-30 Tom Tromey <tromey@redhat.com>
5700 * tracepoint.c (trace_dump_command): Unconditionally call
5703 2013-05-30 Tom Tromey <tromey@redhat.com>
5705 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5706 do_cleanups earlier.
5708 2013-05-30 Tom Tromey <tromey@redhat.com>
5710 * machoread.c (macho_symfile_read): Assign first cleanup to
5713 2013-05-30 Tom Tromey <tromey@redhat.com>
5715 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5717 2013-05-30 Tom Tromey <tromey@redhat.com>
5719 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5721 2013-05-30 Tom Tromey <tromey@redhat.com>
5723 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5724 call discard_cleanups.
5725 (inf_ptrace_attach): Likewise.
5727 2013-05-30 Tom Tromey <tromey@redhat.com>
5729 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5731 (mips_initialize): Likewise.
5732 (common_open): Call do_cleanups.
5734 2013-05-30 Tom Tromey <tromey@redhat.com>
5736 * utils.c (internal_vproblem): Call do_cleanups.
5738 2013-05-30 Tom Tromey <tromey@redhat.com>
5740 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5742 2013-05-30 Tom Tromey <tromey@redhat.com>
5744 * cli/cli-script.c (setup_user_args): Don't return after error.
5746 2013-05-30 Tom Tromey <tromey@redhat.com>
5748 * somread.c (som_symtab_read): Call do_cleanups.
5750 2013-05-30 Tom Tromey <tromey@redhat.com>
5752 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5754 2013-05-30 Tom Tromey <tromey@redhat.com>
5756 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5757 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5758 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5759 * source.c (show_substitute_path_command): Call do_cleanups.
5760 (unset_substitute_path_command, set_substitute_path_command):
5762 * symfile.c (load_command): Call do_cleanups.
5764 2013-05-30 Tom Tromey <tromey@redhat.com>
5766 * contrib/cleanup_check.py: New file.
5767 * contrib/gcc-with-excheck: Add option parsing.
5769 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5771 * windows-nat.c (windows_delete_thread): Add missing space
5774 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5776 * inferior.c (top level): Include tilde.h.
5777 (add_inferior_command): Call tilde_expand on the value of 'exec'
5780 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5781 Yao Qi <yao@codesourcery.com>
5783 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5785 (encode_actions): Likewise.
5786 * remote.c (remote_download_tracepoint): Caller update.
5787 * tracepoint.h (encode_actions): Update declaration.
5789 2013-05-30 Pedro Alves <palves@redhat.com>
5791 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5794 2013-05-30 Yao Qi <yao@codesourcery.com>
5796 * remote.c (remote_check_symbols): Remove unused parameter
5799 (remote_start_remote, remote_new_objfile): Caller update.
5801 2013-05-30 Yao Qi <yao@codesourcery.com>
5803 * mi/mi-cmds.c (mi_cmds): Define MI command
5804 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5807 2013-05-29 Pedro Alves <palves@redhat.com>
5809 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5810 (remote_insert_watchpoint, remote_remove_watchpoint)
5811 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5812 (remote_verify_memory, compare_sections_command)
5813 (remote_search_memory): Set the general process/thread on the
5816 2013-05-29 Pedro Alves <palves@redhat.com>
5818 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5819 (_initialize_aarch64_tdep): Don't call
5820 initialize_tdesc_aarch64_without_fpu.
5821 * features/Makefile (WHICH): Remove reference to
5822 aarch64-without-fpu.
5823 * features/aarch64-without-fpu.c: Delete file.
5824 * regformats/aarch64-without-fpu.dat: Delete file.
5826 2013-05-28 Yao Qi <yao@codesourcery.com>
5828 * tracepoint.c (stringify_collection_list): Remove parameter
5830 (encode_actions): Caller update. Remove local variables.
5832 2013-05-24 Yao Qi <yao@codesourcery.com>
5834 * tracepoint.c (TFILE_PID): Remove.
5835 (tfile_open): Don't add thread and inferior.
5836 (tfile_close): Don't set 'inferior_ptid'. Don't call
5837 exit_inferior_silent.
5838 (tfile_thread_alive): Remove.
5839 (init_tfile_ops): Don't set field 'to_thread_alive' of
5842 2013-05-23 Doug Evans <dje@google.com>
5844 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5846 2013-05-23 Pedro Alves <palves@redhat.com>
5848 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5849 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5850 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5851 Only define if HAVE_SOCKETS is defined.
5852 * configure.ac: Check for sys/socket.h.
5853 * config.in, configure: Regenerate.
5855 2013-05-23 Pedro Alves <palves@redhat.com>
5857 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5858 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5859 printing uint32_t variables.
5861 2013-05-23 Pedro Alves <palves@redhat.com>
5863 * NEWS: Mention GDBserver range stepping support.
5865 2013-05-23 Yao Qi <yao@codesourcery.com>
5866 Pedro Alves <palves@redhat.com>
5868 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5870 * infcmd.c (step_once, until_next_command): Enable range stepping.
5871 * infrun.c (displaced_step_prepare): Disable range stepping.
5872 (resume): Disable range stepping if stepping over a breakpoint or
5873 we have software watchpoints. If range stepping is enabled,
5874 assert the thread is in the stepping range.
5875 (clear_proceed_status_thread): Clear may_range_step.
5876 (handle_inferior_event): Disable range stepping as soon as we know
5877 the thread that hit the event. Re-enable it whenever we're going
5878 to step with a step range.
5879 * remote.c (struct vCont_action_support) <r>: New field.
5880 (use_range_stepping): New global.
5881 (remote_vcont_probe): Handle 'r' action.
5882 (append_resumption): Append an 'r' action if the thread may range
5884 (show_range_stepping): New function.
5885 (set_range_stepping): New function.
5886 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5887 'set range-stepping' and 'show range-stepping' commands.
5888 * NEWS: Mention range stepping, the new vCont;r action, and the
5889 new "set/show range-stepping" commands.
5891 2013-05-23 Yao Qi <yao@codesourcery.com>
5892 Pedro Alves <palves@redhat.com>
5894 * remote.c (struct vCont_action_support): New struct.
5895 (struct remote_state) <support_vCont_t>: Remove field.
5896 <vCont_actions_support>: New field.
5897 (remote_vcont_probe, remote_stop_ns): Update.
5899 2013-05-23 Yao Qi <yao@codesourcery.com>
5900 Pedro Alves <palves@redhat.com>
5902 * gdbthread.h (pc_in_thread_step_range): New declaration.
5903 * thread.c (pc_in_thread_step_range): New function.
5904 * infrun.c (handle_inferior_event): Use it.
5906 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5908 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5911 2013-05-22 Keith Seitz <keiths@redhat.com>
5913 * ada-lang.c (is_known_support_routine): Add explicit free of
5914 'func_name' from find_frame_funname.
5915 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5916 for func_name from find_frame_funname.
5917 * python/py-frame.c (frapy_name): Add explicit free of
5918 'name' from find_frame_funname.
5919 * stack.c (find_frame_funname): Add comment explaining that
5920 funcp must be freed by the caller.
5921 Return copy of symbol names instead of pointers.
5922 (print_frame): Add a cleanup for 'funname' from
5924 * stack.h (find_frame_funname): Remove "const" from
5925 'funname' parameter.
5927 2013-05-22 Tom Tromey <tromey@redhat.com>
5930 * c-valprint.c (c_value_print): Use value_addr for
5931 references. Convert back to reference type with value_ref.
5933 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5935 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5936 unloaded DLL, it will be done by handle_solib_event. See
5937 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5940 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5942 * ui-out.c: Create typedef ui_out_level_p and define vector
5943 operations for that type.
5944 (struct ui_out): Use a vector instead of an array.
5945 (current_level): Return level from a vector.
5946 (push_level): Create a level in a vector.
5947 (pop_level): Delete a level in a vector.
5948 (ui_out_new): Create initial level zero level, and store in a
5950 (ui_out_destroy): Add vector cleanup.
5952 2013-05-22 Pedro Alves <palves@redhat.com>
5954 * python/python-internal.h (gdb_Py_DECREF): Tag with
5955 "ARI: editCase function".
5957 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5959 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5961 2013-05-21 Pedro Alves <palves@redhat.com>
5963 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5964 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5965 * python/py-utils.c (py_decref): Don't check for NULL before
5968 2013-05-21 Pedro Alves <palves@redhat.com>
5970 * python/py-utils.c (py_decref): Remove extra braces.
5971 (gdb_pymodule_addobject): Remove extra braces.
5972 * python-internal.h (gdb_Py_DECREF): New static inline function.
5973 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5975 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5977 * breakpoints.c (detach_breakpoints): Do not
5978 detach breakpoints locations with loc_type bp_loc_other.
5980 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 Workaround Python 2.6.
5983 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5986 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5988 Code cleanup: constification.
5989 * solib.c (solib_ops): Make return type and ops variable type const.
5990 (set_solib_ops): Make the new_ops parameter and ops variable const.
5991 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5992 (solib_add, solib_keep_data_in_core, clear_solib)
5993 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5994 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5996 * solib.h (set_solib_ops): Make the new_ops parameter const.
5998 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6000 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6002 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6003 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6004 (SYSTEM_GDBINIT_FILES): New variables.
6005 (all): Add stamp-system-gdbinit.
6006 (stamp-system-gdbinit): New rule.
6007 (clean-system-gdbinit, install-system-gdbinit)
6008 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6009 (install-only): Add dependency on install-system-gdbinit.
6010 (uninstall): Add dependency on uninstall-system-gdbinit.
6011 (clean): Add dependency on clean-system-gdbinit.
6012 * system-gdbinit/elinos.py: New file.
6013 * system-gdbinit/wrs-linux.py: New file.
6015 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6017 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6019 2013-05-21 Hui Zhu <hui@codesourcery.com>
6021 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6022 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6023 * mi/mi-cmd-break.c (ctype.h): New include.
6024 (gdb_obstack.h): New include.
6025 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6026 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6027 (mi_cmd_dprintf_insert): New.
6028 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6029 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6031 2013-05-20 Tom Tromey <tromey@redhat.com>
6033 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6035 2013-05-20 Tom Tromey <tromey@redhat.com>
6037 * python/py-value.c (valpy_get_dynamic_type): Simplify
6038 dynamic_type assignment. Use Py_XINCREF.
6040 2013-05-20 Tom Tromey <tromey@redhat.com>
6042 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6044 2013-05-20 Tom Tromey <tromey@redhat.com>
6046 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6047 (gdbpy_selected_frame): Move object-construction code
6050 2013-05-20 Tom Tromey <tromey@redhat.com>
6052 * python/py-arch.c (gdbpy_initialize_arch): Use
6053 gdb_pymodule_addobject.
6054 * python/py-block.c (gdbpy_initialize_blocks): Use
6055 gdb_pymodule_addobject.
6056 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6057 gdb_pymodule_addobject.
6058 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6059 gdb_pymodule_addobject.
6060 * python/py-event.c (gdbpy_initialize_event_generic): Use
6061 gdb_pymodule_addobject.
6062 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6063 gdb_pymodule_addobject.
6064 * python/py-evts.c (add_new_registry): Use
6065 gdb_pymodule_addobject.
6066 (gdbpy_initialize_py_events): Likewise.
6067 * python/py-finishbreakpoint.c
6068 (gdbpy_initialize_finishbreakpoints): Use
6069 gdb_pymodule_addobject.
6070 * python/py-frame.c (gdbpy_initialize_frames): Use
6071 gdb_pymodule_addobject.
6072 * python/py-function.c (gdbpy_initialize_functions): Use
6073 gdb_pymodule_addobject.
6074 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6075 gdb_pymodule_addobject.
6076 * python/py-infthread.c (gdbpy_initialize_thread): Use
6077 gdb_pymodule_addobject.
6078 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6079 gdb_pymodule_addobject.
6080 * python/py-param.c (gdbpy_initialize_parameters): Use
6081 gdb_pymodule_addobject.
6082 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6083 gdb_pymodule_addobject.
6084 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6085 gdb_pymodule_addobject.
6086 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6087 gdb_pymodule_addobject.
6088 * python/py-type.c (gdbpy_initialize_types): Use
6089 gdb_pymodule_addobject.
6090 * python/py-utils.c (gdb_pymodule_addobject): New function.
6091 * python/py-value.c (gdbpy_initialize_values): Use
6092 gdb_pymodule_addobject.
6093 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6094 * python/python.c (_initialize_python): Use
6095 gdb_pymodule_addobject.
6097 2013-05-20 Tom Tromey <tromey@redhat.com>
6099 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6100 * python/py-param.c (get_set_value, get_show_value): Use
6102 * python/python.c (start_type_printers, apply_type_printers):
6103 Use explicit decrefs.
6105 2013-05-20 Tom Tromey <tromey@redhat.com>
6107 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6110 2013-05-20 Tom Tromey <tromey@redhat.com>
6112 * python/python.c (gdbpy_run_events): Decref the result
6113 of PyObject_CallObject.
6115 2013-05-20 Tom Tromey <tromey@redhat.com>
6117 * python/py-symtab.c (set_sal): Use
6118 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6119 (symtab_and_line_to_sal_object): Update.
6121 2013-05-20 Tom Tromey <tromey@redhat.com>
6123 * python/py-param.c (compute_enum_values): Decref 'item'.
6125 2013-05-20 Tom Tromey <tromey@redhat.com>
6127 * mi/mi-main.c: Include python-internal.h.
6128 (mi_cmd_list_features): Check gdb_python_initialized.
6129 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6130 (python_inferior_exit, python_new_objfile, add_thread_object)
6131 (delete_thread_object, py_free_inferior): Check
6132 gdb_python_initialized.
6133 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6134 gdb_python_initialized.
6135 * python/py-type.c (save_objfile_types): Check
6136 gdb_python_initialized.
6137 * python/python-internal.h (gdb_python_initialized): Declare.
6138 * python/python.c (ensure_python_env): Throw exception if
6139 Python not initialized.
6140 (before_prompt_hook, source_python_script_for_objfile)
6141 (start_type_printers, apply_type_printers,
6142 free_type_printers): Check gdb_python_initialized.
6143 * varobj.c (varobj_get_display_hint)
6144 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6145 (install_new_value_visualizer, varobj_set_visualizer)
6146 (value_get_print_value): Check gdb_python_initialized.
6148 2013-05-20 Tom Tromey <tromey@redhat.com>
6150 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6152 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6153 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6155 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6157 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6159 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6161 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6162 init function to return 'int'.
6163 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6164 Return 'int'. Check errors.
6165 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6167 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6168 Return 'int'. Check errors.
6169 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6171 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6173 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6175 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6177 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6179 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6181 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6183 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6185 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6187 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6189 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6191 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6193 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6195 * python/python-internal.h (gdbpy_initialize_auto_load,
6196 gdbpy_initialize_values, gdbpy_initialize_frames,
6197 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6198 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6199 gdbpy_initialize_blocks, gdbpy_initialize_types,
6200 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6201 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6202 gdbpy_initialize_finishbreakpoints,
6203 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6204 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6205 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6206 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6207 gdbpy_initialize_signal_event,
6208 gdbpy_initialize_breakpoint_event,
6209 gdbpy_initialize_continue_event,
6210 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6211 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6212 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6213 * python/python.c (gdb_python_initialized): New global.
6214 (gdbpy_initialize_events): Return 'int'. Check errors.
6215 (_initialize_python): Check errors. Set
6216 gdb_python_initialized.
6218 2013-05-20 Tom Tromey <tromey@redhat.com>
6220 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6221 Decref the reslut of PyObject_CallMethod.
6223 2013-05-20 Tom Tromey <tromey@redhat.com>
6225 * python/py-event.c (gdbpy_initialize_event_generic): Return
6226 early if PyType_Ready fails.
6228 2013-05-20 Tom Tromey <tromey@redhat.com>
6230 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6231 as 'default' in the switch.
6233 2013-05-20 Tom Tromey <tromey@redhat.com>
6235 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6236 get_addr_from_python calls out of TRY_CATCH.
6237 (infpy_write_memory, infpy_search_memory): Likewise.
6238 * python/py-utils.c (get_addr_from_python): Return negative
6239 value on error. Use TRY_CATCH.
6240 * python/python-internal.h (get_addr_from_python): Use
6241 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6243 2013-05-20 Tom Tromey <tromey@redhat.com>
6245 * python/py-event.c (evpy_emit_event): Decref the
6246 result of PyObject_CallFunctionObjArgs.
6248 2013-05-20 Tom Tromey <tromey@redhat.com>
6250 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6253 2013-05-20 Tom Tromey <tromey@redhat.com>
6255 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6257 2013-05-20 Tom Tromey <tromey@redhat.com>
6259 * python/py-event.h (gdbpy_initialize_event_generic): Use
6260 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6261 * python/py-evts.c (add_new_registry): Use
6262 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6263 * python/python-internal.h
6264 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6266 2013-05-20 Tom Tromey <tromey@redhat.com>
6268 * python/py-arch.c (archpy_disassemble): Update.
6269 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6270 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6271 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6272 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6274 (GDB_PY_HANDLE_EXCEPTION): Update.
6275 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6277 2013-05-20 Tom Tromey <tromey@redhat.com>
6279 * python/python-internal.h (events_object_type): Remove.
6281 2013-05-20 Tom Tromey <tromey@redhat.com>
6283 * python/py-event.h (evpy_emit_event): Use
6284 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6285 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6288 2013-05-20 Tom Tromey <tromey@redhat.com>
6290 * py-evtregistry.c (create_event_object): Decref
6291 eventregistry_object if PyList_New fails.
6293 2013-05-20 Tom Tromey <tromey@redhat.com>
6295 * py-cmd.c (gdbpy_string_to_argv): Check result of
6298 2013-05-20 Tom Tromey <tromey@redhat.com>
6300 * python/python.c (before_prompt_hook): Add cleanup to
6303 2013-05-20 Tom Tromey <tromey@redhat.com>
6305 * python/py-function.c (fnpy_init): Decref result of
6306 PyObject_GetAttrString.
6308 2013-05-20 Tom Tromey <tromey@redhat.com>
6310 * python/py-threadevent.c (get_event_thread): Use
6311 CPYCHECKER_RETURNS_BORROWED_REF.
6312 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6314 (pspace_to_pspace_object, objfile_to_objfile_object)
6315 (find_thread_object): Use it.
6317 2013-05-20 Tom Tromey <tromey@redhat.com>
6319 * python/py-arch.c (arch_object_type): Use
6320 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6321 * python/py-block.c (block_syms_iterator_object_type):
6322 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6323 * python/py-bpevent.c (breakpoint_event_object_type):
6324 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6325 * python/py-cmd.c (cmdpy_object_type): Use
6326 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6327 * python/py-continueevent.c (continue_event_object_type):
6328 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6329 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6330 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6331 * python/py-events.h (thread_event_object_type):
6332 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6333 * python/py-evtregistry.c (eventregistry_object_type): Use
6334 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6335 * python/py-exitedevent.c (exited_event_object_type):
6336 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6337 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6338 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6339 * python/py-function.c (fnpy_object_type): Use
6340 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6341 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6342 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6343 * python/py-infthread.c (thread_object_type): Use
6344 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6345 * python/py-lazy-string.c (lazy_string_object_type):
6346 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6347 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6348 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6349 * python/py-objfile.c (objfile_object_type): Use
6350 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6351 * python/py-param.c (parmpy_object_type):
6352 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6353 * python/py-progspace.c (pspace_object_type):
6354 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6355 * python/py-signalevent.c (signal_event_object_type):
6356 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6357 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6358 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6359 * python/py-type.c (type_object_type, field_object_type)
6360 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6361 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6363 (value_object_type, block_object_type, symbol_object_type)
6364 (event_object_type, stop_event_object_type, breakpoint_object_type)
6365 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6367 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6369 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6370 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6372 2013-05-20 Doug Evans <dje@google.com>
6374 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6376 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6377 reading_dwo_directly.
6378 (struct signatured_type): New member dwo_unit.
6379 (struct die_reader_specs): New member comp_dir.
6380 (create_signatured_type_table_from_index): Use malloc for
6381 all_type_units instead of objfile's obstack.
6382 (create_all_type_units): Ditto.
6383 (fill_in_sig_entry_from_dwo_entry): New function.
6384 (add_type_unit): New function.
6385 (lookup_dwo_signatured_type): New function.
6386 (lookup_dwp_signatured_type): New function.
6387 (lookup_signatured_type): New arg cu. All callers updated.
6388 (init_cu_die_reader): Initialize comp_dir.
6389 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6390 Change assert of matching type signatures to call error on mismatch.
6391 (lookup_dwo_unit): Add assert.
6392 (init_tu_and_read_dwo_dies): New function.
6393 (init_cutu_and_read_dies): Call it.
6394 (build_type_unit_groups): Handle case of no type unit groups created.
6395 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6396 (lookup_dwo_cutu): Tweak complaint.
6397 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6398 (dwarf2_per_objfile_free): Free all_type_units.
6400 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6402 * windows-nat.c (handle_unload_dll): Add missing empty line.
6404 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6406 * dwarf2read.c (prototyped_function_p): New function.
6407 (read_subroutine_type): Use it.
6409 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6411 * rs6000-aix-tdep.c: De-indent some example code provided
6414 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6416 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6417 region is ok for a hardware watchpoint using the new ptrace interface
6420 2013-05-17 Doug Evans <dje@google.com>
6422 * NEWS: Mention new maintenance commands check-symtabs, and
6423 expand-symtabs, and renamed check-psymtabs.
6424 * psymtab.c (maintenance_check_psymtabs): Renamed from
6425 maintenance_check_symtabs. Only process already-expanded symbol
6427 (_initialize_psymtab): Update.
6428 * symmisc.c (maintenance_check_symtabs): New function.
6429 (maintenance_expand_name_matcher): New function
6430 (maintenance_expand_file_matcher): New function
6431 (maintenance_expand_symtabs): New function.
6432 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6435 2013-05-17 Tom Tromey <tromey@redhat.com>
6437 * python/py-inferior.c (infpy_read_memory): Don't call
6438 PyErr_SetString if PyObject_New fails.
6439 * python/py-frame.c (frame_info_to_frame_object): Don't call
6440 PyErr_SetString if PyObject_New fails.
6442 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6444 * acinclude.m4: Add check for dlopen in libdl.
6445 * configure.ac: Ditto.
6446 * configure: Regenerate.
6448 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6450 * frame.c (frame_stash): Convert to htab.
6451 (frame_addr_hash): New function.
6452 (frame_addr_hash_eq): New function.
6453 (frame_stash_create): Convert function to create
6455 (frame_stash_add): Convert function to add an entry to a hash
6457 (frame_stash_find): Convert function to search the hash table.
6458 (frame_stash_invalidate): Convert function to empty the hash
6460 (get_frame_id): Only add to stash if a frame_id is created.
6461 (_initialize_frame): Call frame_stash_create.
6463 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6465 * configure.ac: Ensure MIG is available when building for GNU Hurd
6467 * configure: Regenerate.
6469 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6471 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6473 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6475 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6476 all cleanups are done before returning from this function.
6478 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6480 * utils.h: #include "exceptions.h".
6481 (enum errors): Remove partial declaration.
6483 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6485 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6486 * gdbarch.h, gdbarch.c: Regenerate.
6487 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6490 * rs6000-aix-tdep.h: New file.
6491 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6492 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6494 (struct field_info, struct ld_info_desc): New types.
6495 (ld_info32_desc, ld_info64_desc): New static constants.
6496 (struct ld_info): New type.
6497 (rs6000_aix_extract_ld_info): New function.
6498 (rs6000_aix_shared_library_to_xml): Likewise.
6499 (rs6000_aix_ld_info_to_xml): Likewise.
6500 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6501 (rs6000_aix_init_osabi): Add call to
6502 set_gdbarch_core_xfer_shared_libraries_aix.
6503 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6504 Remove "xml-utils.h" include.
6505 (LdInfo): Delete typedef.
6506 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6508 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6509 Adjust code accordingly.
6510 (rs6000_core_ldinfo): Delete, folded into
6511 rs6000_aix_core_xfer_shared_libraries_aix.
6512 (rs6000_xfer_shared_library): Delete.
6513 (rs6000_xfer_shared_libraries): Reimplement.
6515 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6517 * record.c (record_goto_cmdlist): New.
6518 (cmd_record_goto): Split into this ...
6519 (cmd_record_goto_begin): ... this
6520 (cmd_record_goto_end): ... and this.
6521 (_initialize_record): Change "record goto" to prefix command.
6522 Add commands for "record goto begin" and "record goto end".
6523 Add an alias for "record goto start" to "record goto begin".
6525 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6527 * linespec.c (convert_linespec_to_sals): New comment for
6528 SOURCE_FILENAME assignment.
6530 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6532 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6535 2013-05-14 Tom Tromey <tromey@redhat.com>
6537 * eval.c (parse_and_eval_long): Make 'exp' const.
6538 * value.h (parse_and_eval_long): Update.
6540 2013-05-14 Tom Tromey <tromey@redhat.com>
6542 * ui-file.c (gdb_fopen): Make arguments const.
6543 * ui-file.h (gdb_fopen): Make arguments const.
6545 2013-05-14 Tom Tromey <tromey@redhat.com>
6547 * remote.c (remote_set_trace_notes): Make arguments const.
6548 * target.c (update_current_target): Update cast.
6549 * target.h (to_set_trace_notes): Make arguments const.
6551 2013-05-14 Tom Tromey <tromey@redhat.com>
6553 * go32-nat.c (go32_terminal_info): Make 'args' const.
6554 * inferior.h (child_terminal_info): Update.
6555 * inflow.c (child_terminal_info): Make 'args' const.
6556 * target.c (default_terminal_info): Make 'args' const.
6557 (debug_to_terminal_save_ours): Likewise.
6558 * target.h (struct target_ops) <to_terminal_info>: Make argument
6561 2013-05-13 Tom Tromey <tromey@redhat.com>
6563 * gcore.c (create_gcore_bfd): Make 'filename' const.
6564 * gcore.h (create_gcore_bfd): Make 'filename' const.
6565 * record-full.c (record_full_save): Make 'recfilename' const.
6566 * target.c (target_save_record): Make 'filename' const.
6567 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6569 (target_save_record): Likewise.
6571 2013-05-13 Tom Tromey <tromey@redhat.com>
6574 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6575 ranges section has been read.
6577 2013-05-13 Tom Tromey <tromey@redhat.com>
6580 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6581 STRUCTOP_PTR>: Return a not_lval value for
6582 EVAL_AVOID_SIDE_EFFECTS.
6583 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6584 for EVAL_AVOID_SIDE_EFFECTS.
6586 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6588 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6589 floating point registers to register type before storing
6591 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6594 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6595 Tom Tromey <tromey@redhat.com>
6597 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6599 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6601 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6602 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6603 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6604 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6606 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6607 Tom Tromey <tromey@redhat.com>
6610 * configure: Rebuild.
6611 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6614 2013-05-10 Pedro Alves <palves@redhat.com>
6616 * remote.c (_initialize_remote): Fix spelling of
6617 qXfer:traceframe-info:read packet in packet config command.
6619 2013-05-10 David Taylor <dtaylor@emc.com>
6623 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6624 "QTro" at start of packet.
6626 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6628 * solib-aix.c (solib_aix_relocate_section_addresses):
6629 For the .bss section action, apply the same offset as
6632 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6634 * solib-aix.c (solib_aix_relocate_section_addresses):
6635 Remove FIXME comment.
6637 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6640 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6641 New functions, directly copied from sparc-sol-thread.c.
6642 * sparc-sol-thread.c: Delete.
6643 * configure.ac: Remove code handling sparc-solaris-thread.c.
6644 * configure: Regenerate.
6646 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6648 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6650 (backtrace_command): Add "no-filters" option parsing.
6651 (_initialize_stack): Alter help to reflect "no-filters" option.
6652 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6653 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6654 (py-frame.o): Add target
6655 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6657 * python/python.h: Add new frame filter constants, and flag enum.
6658 (apply_frame_filter): Add definition.
6659 * python/python.c (apply_frame_filter): New non-Python
6661 * python/py-utils.c (py_xdecref): New function.
6662 (make_cleanup_py_xdecref): Ditto.
6663 * python/py-objfile.c: Declare frame_filters dictionary.
6664 (objfpy_dealloc): Add frame_filters dealloc.
6665 (objfpy_new): Initialize frame_filters attribute.
6666 (objfile_to_objfile_object): Ditto.
6667 (objfpy_get_frame_filters): New function.
6668 (objfpy_set_frame_filters): New function.
6669 * python/py-progspace.c: Declare frame_filters dictionary.
6670 (pspy_dealloc): Add frame_filters dealloc.
6671 (pspy_new): Initialize frame_filters attribute.
6672 (pspacee_to_pspace_object): Ditto.
6673 (pspy_get_frame_filters): New function.
6674 (pspy_set_frame_filters): New function.
6675 * python/py-framefilter.c: New file.
6676 * python/lib/gdb/command/frame_filters.py: New file.
6677 * python/lib/gdb/frames.py: New file.
6678 * python/lib/gdb/__init__.py: Initialize global frame_filters
6680 * python/lib/gdb/FrameDecorator.py: New file.
6681 * python/lib/gdb/FrameIterator.py: New file.
6682 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6683 * mi/mi-cmds.h: Declare.
6684 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6685 --no-frame-filter logic, and Python frame filter logic.
6686 (stack_enable_frame_filters): New function.
6687 (parse_no_frame_option): Ditto.
6688 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6690 (mi_cmd_stack_list_locals): Ditto.
6691 (mi_cmd_stack_list_args): Ditto.
6692 (mi_cmd_stack_list_variables): Ditto.
6693 * NEWS: Add frame filter note.
6695 2013-05-09 Doug Evans <dje@google.com>
6697 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6698 All callers updated.
6699 (syms_from_objfile): Ditto. Make static.
6700 (symbol_file_add_with_addrs): Renamed from
6701 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6702 num_offsets. All callers updated.
6703 * symfile.h (syms_from_objfile): Delete.
6705 * symfile.c (decrement_reading_symtab): Add assert.
6706 (increment_reading_symtab): Ditto.
6708 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6710 * source.c (forward_search_command): Replace call to getc
6712 (reverse_search_command): Likewise.
6714 2013-05-08 Doug Evans <dje@google.com>
6716 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6719 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6721 * sol-thread.c (info_cb): Factorize the code a little.
6723 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6725 * sol-thread.c (info_cb): Rework the output of the "maintenance
6726 info sol-threads" command a bit.
6728 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6730 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6731 Replace ti.ti_startfunc by ti.ti_pc.
6733 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6735 * solib-aix.c (solib_aix_free_library_list): New function
6736 for the case where HAVE_LIBEXPAT is not defined.
6738 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6740 PR breakpoints/15413:
6741 * breakpoint.c (condition_completer): Simplify the code to
6742 disconsider multiple locations of breakpoints when completing the
6743 "condition" command.
6745 2013-05-07 Pierre Muller <muller@sourceware.org>
6747 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6748 instead of <sys/wait.h>.
6750 2013-05-07 Pierre Muller <muller@sourceware.org>
6752 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6753 trailing new line from warning message.
6755 2013-05-07 Pierre Muller <muller@sourceware.org>
6757 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6758 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6760 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6762 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6763 error message (ARI fix).
6765 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6767 * features/library-list-aix.dtd: Replace library-list by
6769 * rs6000-nat.c: Replace library-list by library-list-aix
6771 * solib-aix.c: Likewise.
6773 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6775 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6776 Renames TARGET_OBJECT_AIX_LIBRARIES.
6777 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6778 TARGET_OBJECT_LIBRARIES_AIX throughout.
6779 * solib-aix.c: Likwise.
6781 2013-05-07 Yao Qi <yao@codesourcery.com>
6783 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6784 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6786 2013-05-07 Yao Qi <yao@codesourcery.com>
6788 * solib-dsbt.c (enable_break): Declare.
6789 (dsbt_current_sos): Remove call to enable_break2.
6790 (enable_break2): Rename to enable_break. Set solib breakpoint
6791 on '_dl_debug_state'.
6792 (enable_break): Remove.
6794 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6796 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6797 debug state prior to replicating existing hardware watchpoints or
6800 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6802 * gcore.c (gcore_create_callback): Ignore sections with
6803 separate_debug_objfile_backlink != NULL.
6805 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6806 Andrew Jenner <andrew@codesourcery.com>
6807 Chung-Lin Tang <cltang@codesourcery.com>
6808 Julian Brown <julian@codesourcery.com>
6810 Based on the nios2-elf port from Altera Corporation.
6812 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6814 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6815 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6816 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6817 * nios2-tdep.h: New.
6818 * nios2-tdep.c: New.
6819 * nios2-linux-tdep.c: New.
6820 * features/Makefile (WHICH): Add nios2-linux.
6821 (nios2-linux-expedite): Set.
6822 * features/nios2-cpu.xml: New.
6823 * features/nios2.xml: New.
6824 * features/nios2-linux.xml: New.
6825 * features/nios2.c: New (autogenerated).
6826 * features/nios2-linux.c: New (autogenerated).
6827 * regformats/nios2-linux.dat: New (autogenerated).
6828 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6831 2013-05-06 Doug Evans <dje@google.com>
6833 * symfile.c: Whitespace cleanup.
6835 * solist.h (struct target_so_ops): New member clear_so.
6836 * solib-svr4.c (svr4_clear_so): New function.
6837 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6838 * solib.c (clear_so): Renamed from free_so_symbols.
6839 All callers updated. Call target clear_so if it exists.
6841 2013-05-06 Tom Tromey <tromey@redhat.com>
6843 * ada-lang.c (ada_value_primitive_packed_val): Don't
6845 * value.c (set_value_parent): Incref the new parent and decref
6847 (value_copy, value_primitive_field): Use set_value_parent.
6849 2013-05-06 Tom Tromey <tromey@redhat.com>
6851 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6852 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6854 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6855 * dwarf2read.c (write_constant_as_bytes)
6856 (dwarf2_fetch_constant_bytes): New functions.
6858 2013-05-06 Tom Tromey <tromey@redhat.com>
6860 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6862 (dwarf2_const_value_attr): Update.
6864 2013-05-06 Tom Tromey <tromey@redhat.com>
6866 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6867 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6868 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6871 2013-05-06 Tom Tromey <tromey@redhat.com>
6873 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6876 2013-05-06 Doug Evans <dje@google.com>
6878 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6879 * stabsread.h (process_one_symbol): Update declaration.
6880 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6881 * elfread.c (elf_symfile_relocate_probe): Ditto.
6882 * psymtab.c (relocate_psymtabs): Ditto.
6883 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6884 (objfile_relocate): Ditto.
6885 * objfiles.h (objfile_relocate): Update declaration.
6886 * symfile.c (relative_addr_info_to_section_offsets): Constify
6888 (default_symfile_offsets): Ditto.
6889 (syms_from_objfile_1): Constify offsets parameter.
6890 (syms_from_objfile): Ditto.
6891 (symbol_file_add_with_addrs_or_offsets): Ditto.
6892 (symfile_map_offsets_to_segments): Constify data parameter.
6893 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6894 delta parameters of member relocate.
6895 (struct sym_probe_fns): Constify new_offsets,
6896 delta parameters of member sym_relocate_probe.
6897 (struct sym_fns): Constify section_addr_info parameter of member
6899 (relative_addr_info_to_section_offsets): Update declaration.
6900 (default_symfile_offsets): Ditto.
6901 (syms_from_objfile): Ditto.
6902 (symfile_map_offsets_to_segments): Ditto.
6904 * symfile.c (syms_from_objfile_1): Use correct section count when
6905 objfile->sf == NULL.
6907 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6909 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6911 2013-05-06 Doug Evans <dje@google.com>
6913 * psympriv.h (struct partial_symtab): Augment comment for member
6916 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6918 Reimplement shared library support on ppc-aix...
6919 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6920 * features/library-list-aix.dtd: New file.
6921 * solib-aix.h, solib-aix.c: New file.
6922 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6923 (rs6000_find_toc_address_hook): Delete.
6924 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6925 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6926 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6928 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6929 (vmap_symtab, fixup_breakpoints): Delete.
6930 (rs6000_xfer_shared_libraries): New function.
6931 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6932 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6933 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6934 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6935 (rs6000_xfer_shared_library): New function.
6936 (find_toc_address): Delete.
6937 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6938 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6939 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6940 before creating minimal symbol. Adjust function description
6942 (scan_xcoff_symtab): Replace call to
6943 prim_record_minimal_symbol_and_info by call to
6944 record_minimal_symbol.
6945 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6946 around default_symfile_offsets.
6947 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6948 powerpc-aix targets.
6949 * config/rs6000/nm-rs6000.h: Delete.
6950 * config/powerpc/aix.mh (NAT_FILE): Delete.
6951 (NATDEPFILES): Remove xcoffsolib.o.
6952 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6953 (ALL_TARGET_OBS): Add solib-aix.o.
6954 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6955 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6956 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6957 * xcoffsolib.h, xcoffsolib.c: Delete.
6959 * solib.c (reload_shared_libraries): Remove reference to
6960 SOLIB_CREATE_INFERIOR_HOOK.
6961 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6962 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6963 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6965 * corelow.c (deprecated_core_resize_section_table): Delete.
6966 * exec.c: Remove include of xcoffsolib.h".
6967 (map_vmap, vmap): Delete.
6968 (exec_close_1): Remove references to vmap.
6969 (exec_file_attach): Remove vmap handling code, and reference
6970 to DEPRECATED_IBM6000_TARGET.
6971 (bfdsec_to_vmap): Delete.
6972 (exec_files_info): Remove block of code handling VMAP.
6973 * infcmd.c (post_create_inferior): Remove reference to
6974 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6975 * infrun.c (follow_exec): Remove reference to
6976 SOLIB_CREATE_INFERIOR_HOOK.
6977 * stack.c (print_frame): Remove reference to PC_SOLIB.
6978 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6979 (dsbt_relocate_main_executable): Likewise.
6980 * solib-frv.c (frv_current_sos): Likewise.
6982 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6984 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6985 to target_write_memory and target_read_memory.
6987 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6989 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6990 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6992 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6994 * darwin-nat.c: Replace all "%x" instances in format strings
6995 into "0x%x" throughout.
6997 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6999 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7000 gdb_assert by call to MACH_CHECK_ERROR.
7001 (darwin_attach_pid): Raise an error rather than a failed
7002 assertion when various system calls failed. Report a warning
7003 instead of raising a failed assertion when PREV_NOT is not NULL
7004 after call to mach_port_request_notification.
7005 (darwin_ptrace_me): Raise an error rather than a failed
7006 assertion when read returns nonzero.
7008 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7010 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7012 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7014 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7016 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7018 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7019 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7020 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7021 a stale cleanup. Fix double free of NAME.
7023 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7025 * windows-nat.c (windows_delete_thread): Accept an additional
7026 argument, the thread's exit code, and announce thread death when
7027 print_thread_events is non-zero and we are deleting a thread that
7028 is not the main thread.
7029 (get_windows_debug_event): Pass thread exit code to
7030 windows_delete_thread.
7032 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7034 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7035 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7036 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7037 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7038 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7039 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7040 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7041 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7042 (gdbarch_tdep): New struct.
7043 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7045 (v850e3v5_register_name): New function.
7046 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7047 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7048 code handling the struct return conventions for the RH850 ABI.
7050 (v850_eight_byte_align_p): New function.
7051 (v850_push_call_dummy): Push structs by value, not by reference
7052 for the RH850 ABI. Add support for eight byte alignment.
7053 (v850_dbtrap_breakpoint_from_pc): New function.
7054 (v850_gdbarch_init): Add ABI detection code. Register
7055 v850e3v5_register_name for the v850e3v5 architecture. Set the
7056 number of registers for v850e3v5. Register
7057 v850_dbtrap_breakpoint_from_pc as appropriate.
7058 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7060 2013-05-03 Doug Evans <dje@google.com>
7062 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7063 of bfd_count_sections.
7064 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7065 * symfile.c (default_symfile_offsets): Ditto.
7066 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7067 one entry, not bfd_count_sections entries.
7069 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7071 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7072 `save' and `restore' register groups. Don't include SPL
7073 or SPH in these groups.
7074 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7075 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7076 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7077 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7078 dwarf2_append_unwinders().
7080 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7082 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7083 ignore SIGINT and SIGTRAP in case these internal signals are
7086 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7088 * darwin-nat.c (darwin_read_write_inferior): Change types
7089 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7090 of copy_count to "mach_msg_type_number_t".
7091 (darwin_read_dyld_info): Change type of parameter
7092 rdaddr to "gdb_byte *".
7094 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7096 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7097 of &info->load_map from "char *" to "gdb_byte *".
7099 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7101 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7102 from "char *" to "gdb_byte *".
7103 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7105 2013-04-30 Doug Evans <dje@google.com>
7107 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7108 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7109 DWO stub. If DWO isn't found, just use stub.
7110 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7112 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7113 calling init_cutu_and_read_dies.
7115 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7117 * target-descriptions.c (maint_print_c_tdesc_cmd):
7118 Add case to parse structures as register types and
7121 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7123 * MAINTAINERS (Write After Approval): Add myself to the list.
7125 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7127 * sol-thread.c (rw_common): Change type of parameter "buf"
7129 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7130 rw_common to "gdb_byte *" instead of "char *".
7132 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7134 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7135 of local variable msym to const struct bound_minimal_symbol.
7136 Adjust use accordingly.
7137 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7139 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7141 * i386gnu-nat.c (CREG_OFFSET): New macro.
7142 (creg_offset): New array.
7143 (CREG_ADDR): Use creg_offset instead of reg_offset.
7145 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7147 * mep-tdep.c (mep_write_pc): Delete.
7148 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7149 Add call to set_gdbarch_pc_regnum.
7151 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7153 * common/filestuff.c: Replace #include <dirent.h> by
7154 #include "gdb_dirent.h".
7156 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7158 * common/filestuff.c: Replace #include <sys/stat.h> by
7159 #include "gdb_stat.h".
7161 2013-04-29 Pierre Muller <muller@sourceware.org>
7163 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7164 editCase function rule.
7165 (get_DW_AT_signature_type): Likewise.
7167 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7169 * m32r-tdep.c (m32r_write_pc): Delete.
7170 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7171 Add call to set_gdbarch_pc_regnum.
7173 2013-04-29 Pierre Muller <muller@sourceware.org>
7175 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7177 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7179 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7181 2013-04-28 Yao Qi <yao@codesourcery.com>
7183 * solib-dsbt.c (fetch_loadmap): Re-indent.
7184 (displacement_from_map, enable_break2): Likewise.
7185 (dsbt_relocate_section_addresses): Likewise.
7187 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7191 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7194 * dwarf2read.c (process_full_comp_unit): Always create a static
7197 2013-04-25 Hui Zhu <hui@codesourcery.com>
7199 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7200 to loc->cmd_bytecode.
7202 2013-04-24 Doug Evans <dje@google.com>
7204 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7206 2013-04-22 Keith Seitz <keiths@redhat.com>
7208 * tracepoint.c (trace_save): Call the writer's start method.
7210 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7213 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7216 2013-04-23 Tom Tromey <tromey@redhat.com>
7218 * common/filestuff.c: Check USE_WIN32API before including
7220 (HAVE_F_GETFD): New define.
7221 (mark_cloexec): Check HAVE_F_GETFD.
7222 (gdb_open_cloexec): Change 'mode' to unsigned long.
7223 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7224 (gdb_pipe_cloexec): Check HAVE_PIPE.
7225 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7228 2013-04-23 Hui Zhu <hui@codesourcery.com>
7231 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7233 2013-04-23 Hui Zhu <hui@codesourcery.com>
7236 * breakpoint.c (dprintf_print_recreate): New.
7237 (save_breakpoints): Let it not save dprintf commands.
7238 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7240 2013-04-22 Tom Tromey <tromey@redhat.com>
7243 * Makefile.in (SFILES): Add filestuff.c
7244 (COMMON_OBS): Add filestuff.o.
7245 (filestuff.o): New target.
7246 * auto-load.c (auto_load_objfile_script_1): Use
7248 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7249 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7250 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7251 * common/agent.c (gdb_connect_sync_socket): Use
7253 * common/filestuff.c: New file.
7254 * common/filestuff.h: New file.
7255 * common/linux-osdata.c (linux_common_core_of_thread)
7256 (command_from_pid, commandline_from_pid, print_source_lines)
7257 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7258 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7260 * common/linux-procfs.c (linux_proc_get_int)
7261 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7262 * config.in, configure: Rebuild.
7263 * configure.ac: Don't check for sys/socket.h. Check for
7265 * corelow.c (core_open): Use gdb_open_cloexec.
7266 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7267 * fork-child.c (fork_inferior): Call close_most_fds.
7268 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7269 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7270 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7271 Use gdb_fopen_cloexec.
7272 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7274 (linux_async_pipe): Use gdb_pipe_cloexec.
7275 * remote-fileio.c (remote_fileio_func_open): Use
7277 * remote.c (remote_file_put, remote_file_get): Use
7279 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7281 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7282 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7283 * solib.c (solib_find): Use gdb_open_cloexec.
7284 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7285 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7286 (tfile_open): Use gdb_open_cloexec.
7287 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7288 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7289 * xml-support.c (xml_fetch_content_from_file): Use
7291 * main.c (captured_main): Call notice_open_fds.
7293 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7295 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7296 'char *' to 'gdb_byte *'.
7297 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7300 2013-04-22 Yao Qi <yao@codesourcery.com>
7302 * infrun.c: Fix typo in comment.
7304 2013-04-22 Andrew Haley <aph@redhat.com>
7306 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7309 2013-04-20 Yao Qi <yao@codesourcery.com>
7311 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7312 'char *' to 'gdb_byte *'. Cast the return value of
7313 'bt_ctf_get_char_array' to 'gdb_byte *'.
7315 2013-04-19 Pedro Alves <palves@redhat.com>
7317 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7319 * configure: Regenerate.
7321 2013-04-19 Pedro Alves <palves@redhat.com>
7323 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7326 2013-04-19 Pedro Alves <palves@redhat.com>
7328 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7329 Change type of 'myaddr' parameter to gdb_byte pointer.
7330 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7331 to 'long long' pointer instead of to 'unsigned long long'.
7332 (monitor_write_memory_block, monitor_read_memory_single)
7333 (monitor_read_memory): Change type of 'myaddr' parameter to
7336 2013-04-19 Pedro Alves <palves@redhat.com>
7338 * record.c (validate_history_size): Make parameter 'setting'
7341 2013-04-19 Pedro Alves <palves@redhat.com>
7343 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7346 2013-04-19 Pedro Alves <palves@redhat.com>
7348 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7351 2013-04-19 Pedro Alves <palves@redhat.com>
7353 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7354 * ada-tasks.c (read_fat_string_value): Likewise.
7356 2013-04-19 Pedro Alves <palves@redhat.com>
7358 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7359 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7360 'offset', and adjust.
7362 2013-04-19 Pedro Alves <palves@redhat.com>
7364 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7365 (read_index_from_section): Add cast to 'char *'.
7367 2013-04-19 Pedro Alves <palves@redhat.com>
7369 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7371 2013-04-19 Pedro Alves <palves@redhat.com>
7373 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7375 2013-04-19 Pedro Alves <palves@redhat.com>
7377 * record-full.c (record_full_get_bookmark): Change local 'ret'
7378 type to char * and add cast to gdb_byte *.
7379 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7381 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7383 2013-04-19 Pedro Alves <palves@redhat.com>
7385 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7386 * python/py-prettyprint.c (print_string_repr): Change type of
7387 'output' local to char *. Add cast to gdb_byte * in
7388 LA_PRINT_STRING call.
7389 (print_children): Change type of 'output' local to char *.
7390 * python/py-value.c (valpy_string): Add cast to const char * in
7391 PyUnicode_Decode call.
7393 2013-04-19 Pedro Alves <palves@redhat.com>
7395 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7396 and change its type to 'const char *'. Adjust.
7397 (mips_send_packet): Add cast to 'char *', and remove cast to
7399 (mips_receive_packet): Remove cast to 'unsigned char *'.
7400 (mips_load_srec): Use bfd_byte.
7401 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7402 (pmon_checkset): Make 'value' parameter unsigned.
7404 2013-04-19 Pedro Alves <palves@redhat.com>
7406 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7408 2013-04-19 Pedro Alves <palves@redhat.com>
7410 * remote.c (remote_write_bytes_aux, compare_sections_command)
7412 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7413 (remote_hostio_readlink, remote_bfd_iovec_pread)
7414 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7415 binary buffer, and char when buffer is used as string.
7416 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7417 (trace_save, tfile_open, traceframe_walk_blocks)
7418 (tfile_fetch_registers): Likewise.
7420 2013-04-19 Pedro Alves <palves@redhat.com>
7422 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7423 buffer and size_t size. Adjust.
7424 * ser-base.h (ser_base_write): Adjust.
7425 * ser-go32.c (cnts): Change type to size_t.
7426 (dos_write): Change prototype -- take 'void *'
7427 buffer and size_t size. Adjust.
7428 (dos_info): Print elements of 'cnts' as unsigned long.
7429 * serial.c (serial_write): Likewise.
7430 * serial.h (serial_write): Adjust.
7431 (struct serial_ops) <write>: Change prototype -- take 'void *'
7432 buffer and size_t size. Adjust.
7434 2013-04-19 Pedro Alves <palves@redhat.com>
7436 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7438 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7440 2013-04-19 Pedro Alves <palves@redhat.com>
7442 * alpha-tdep.c (alpha_extract_return_value): Use
7443 regcache_cooked_read_unsigned to read 'v0'.
7445 2013-04-19 Pedro Alves <palves@redhat.com>
7447 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7448 parameters 'at', 'as' and 'offset' to uint32_t.
7450 2013-04-19 Pedro Alves <palves@redhat.com>
7452 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7453 'is64' to signed 'int'.
7455 2013-04-19 Pedro Alves <palves@redhat.com>
7457 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7460 2013-04-19 Pedro Alves <palves@redhat.com>
7462 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7463 'insnbuf' buffer type to unsigned int[].
7465 2013-04-19 Pedro Alves <palves@redhat.com>
7467 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7469 2013-04-19 Pedro Alves <palves@redhat.com>
7471 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7474 2013-04-19 Pedro Alves <palves@redhat.com>
7476 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7477 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7479 * mips-tdep.c (heuristic_fence_post): Change type to int.
7480 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7482 2013-04-19 Pedro Alves <palves@redhat.com>
7484 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7485 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7486 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7488 2013-04-19 Pedro Alves <palves@redhat.com>
7490 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7491 it to get a string view of the byte buffer.
7492 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7493 type to gdb_byte *. Adjust.
7494 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7495 Change local to char *.
7496 * solib-darwin.c (find_program_interpreter): Change return type to
7498 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7499 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7500 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7501 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7502 * solib-svr4.c (find_program_interpreter): Change return type to
7504 (enable_break): Change local 'interp_name' to char *.
7505 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7506 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7507 (spu_pseudo_register_write_spu): Use char for string buffer.
7509 (info_spu_event_command, info_spu_signal_command): Add casts to
7512 2013-04-19 Pedro Alves <palves@redhat.com>
7514 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7516 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7517 * ada-lang.c (ada_value_assign): Use gdb_byte.
7518 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7519 (alphanbsd_sigtramp_offset): Use gdb_byte.
7520 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7521 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7522 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7523 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7524 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7525 * arm-tdep.c (arm_stub_unwind_sniffer)
7526 (arm_displaced_init_closure): Use gdb_byte.
7527 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7528 (arm_default_thumb_le_breakpoint)
7529 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7530 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7531 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7532 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7533 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7534 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7535 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7536 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7537 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7538 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7539 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7540 (cris_store_return_value, cris_extract_return_value): Use
7542 (constraint): Change type of parameter to char * from signed
7543 char*. Use gdb_byte.
7544 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7545 of local buffer to gdb_byte *.
7546 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7547 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7548 (add_address_entry): Change type of local buffer to gdb_byte[].
7549 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7550 (frv_push_dummy_call): Use gdb_byte.
7551 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7552 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7553 (hppa_hpux_supply_save_state): Use gdb_byte.
7554 * hppa-tdep.c (hppa32_push_dummy_call)
7555 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7556 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7557 (slotN_contents, replace_slotN_contents): Change type of parameter
7559 (fetch_instruction, ia64_pseudo_register_write)
7560 (ia64_register_to_value, ia64_value_to_register)
7561 (ia64_extract_return_value, ia64_store_return_value)
7562 (ia64_push_dummy_call): Use gdb_byte.
7563 * m32c-tdep.c (m32c_return_value): Remove cast.
7564 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7565 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7567 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7568 * mn10300-tdep.c (mn10300_store_return_value)
7569 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7571 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7572 (moxie_process_record): Remove casts.
7573 * ppc-ravenscar-thread.c (supply_register_at_address)
7574 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7575 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7576 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7577 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7578 * remote.c (compare_sections_command): Use gdb_byte.
7579 * score-tdep.c (score7_free_memblock): Change type of parameter to
7581 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7582 gdb_byte *. Use gdb_byte.
7583 (sh_push_dummy_call_fpu): Use gdb_byte.
7584 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7585 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7586 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7587 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7588 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7589 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7590 (sh64_store_return_value, sh64_register_convert_to_virtual):
7591 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7592 (sh64_pseudo_register_write): Use gdb_byte.
7593 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7594 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7596 (irix_current_sos): Use gdb_byte.
7597 * solib-som.c (som_current_sos): Use gdb_byte.
7598 * sparc-ravenscar-thread.c (supply_register_at_address)
7599 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7600 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7601 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7602 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7604 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7606 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7607 * xstormy16-tdep.c (xstormy16_extract_return_value)
7608 (xstormy16_store_return_value): Change parameter type to
7609 'gdb_byte *'. Adjust.
7610 (xstormy16_push_dummy_call): Use gdb_byte.
7611 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7612 (call0_analyze_prologue, execute_code): Use gdb_byte.
7614 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7615 Pedro Alves <palves@redhat.com>
7617 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7620 2013-04-17 Doug Evans <dje@google.com>
7622 * dwarf2read.c (struct signatured_type): New member type.
7623 (struct attribute): Replace member signatured_type with signature.
7624 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7625 (read_call_site_scope): Call follow_die_ref instead of
7626 follow_die_ref_or_sig.
7627 (read_structure_type): Rewrite handling of signatured types.
7628 (read_enumeration_type): Ditto.
7629 (read_attribute_value): Update.
7630 (build_error_marker_type): New function.
7631 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7632 Don't call error for bad types, just build an error marker type.
7633 (dump_die_shallow): Update.
7634 (follow_die_sig_1): Renamed from follow_die_sig.
7635 Don't call error for bad types, instead return NULL.
7636 (follow_die_sig): New function.
7637 (get_signatured_type, get_DW_AT_signature_type): New functions.
7639 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7641 * aarch64-tdep.c (aarch64_write_pc): Removed.
7642 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7645 2013-04-17 Yao Qi <yao@codesourcery.com>
7647 * top.c (print_gdb_configuration): Print configure-time
7648 parameter on using libbabeltrace or not.
7650 2013-04-16 Pedro Alves <palves@redhat.com>
7652 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7654 2013-04-16 Pedro Alves <palves@redhat.com>
7656 * common/glibc_thread_db.h: Update from upstream glibc
7657 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7659 2013-04-16 Pedro Alves <palves@redhat.com>
7661 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7662 * common/glibc_thread_db.h: ... this new file ...
7663 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7665 2013-04-16 Will Newton <will.newton@gmail.com>
7666 Pedro Alves <palves@redhat.com>
7670 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7671 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7674 2013-04-16 Pedro Alves <palves@redhat.com>
7675 Eli Zaretskii <eliz@gnu.org>
7677 * NEWS: Mention "set foo unlimited".
7679 2013-04-15 Doug Evans <dje@google.com>
7681 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7682 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7683 (create_dwo_cu_reader): Renamed from
7684 create_dwo_debug_info_hash_table_reader.
7685 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7686 Remove support for multiple CUs in a DWO file.
7687 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7689 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7691 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7692 (create_dwo_in_dwp): Ditto.
7694 2013-04-15 Tom Tromey <tromey@redhat.com>
7696 * NEWS: Move recent entries into "since 7.6" section.
7698 2013-04-15 Tom Tromey <tromey@redhat.com>
7702 * break-catch-throw.c (struct exception_catchpoint)
7703 <exception_rx, pattern>: New fields.
7704 (fetch_probe_arguments, dtor_exception_catchpoint)
7705 (check_status_exception_catchpoint)
7706 (print_one_detail_exception_catchpoint): New functions.
7707 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7708 Compile regular expression if needed.
7709 (extract_exception_regexp): New function.
7710 (catch_exception_command_1): Use extract_exception_regexp.
7711 (compute_exception): Use fetch_probe_arguments.
7712 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7713 and check_status fields.
7714 * cp-abi.c (cplus_typename_from_type_info): New function.
7715 * cp-abi.h (cplus_typename_from_type_info): Declare.
7716 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7717 * gdb_regex.h (compile_rx_or_error): Declare.
7718 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7720 (init_gnuv3_ops): Set get_type_from_type_info field.
7721 * probe.c (compile_rx_or_error): Move...
7722 * utils.c (compile_rx_or_error): ... here.
7724 2013-04-15 Tom Tromey <tromey@redhat.com>
7728 * break-catch-throw.c (compute_exception): New function.
7729 (exception_funcs): New global.
7730 (_initialize_break_catch_throw): Create $_exception.
7731 * cp-abi.c (cplus_type_from_type_info): New function.
7732 * cp-abi.h (cplus_type_from_type_info): Declare.
7733 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7734 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7735 (gnuv3_get_type_from_type_info): New functions.
7736 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7738 2013-04-15 Tom Tromey <tromey@redhat.com>
7740 * break-catch-throw.c (struct exception_names): New.
7741 (exception_functions): Change type.
7742 (re_set_exception_catchpoint): Look for SDT probes.
7744 2013-04-15 Tom Tromey <tromey@redhat.com>
7747 * break-catch-throw.c (exception_functions): New global.
7748 (gnu_v3_exception_catchpoint_ops): Move earlier.
7749 (struct exception_catchpoint): New.
7750 (classify_exception_breakpoint): Rewrite.
7751 (re_set_exception_catchpoint): New function.
7752 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7753 Allocate a struct exception_catchpoint.
7754 (catch_exception_command_1): Update.
7755 (initialize_throw_catchpoint_ops): Set 're_set' method.
7757 2013-04-15 Tom Tromey <tromey@redhat.com>
7759 * Makefile.in (SFILES): Add break-catch-throw.c
7760 (COMMON_OBS): Add break-catch-throw.o.
7761 * break-catch-throw.c: New file.
7762 * breakpoint.c: Move exception-catching code to new file.
7763 (ep_parse_optional_if_clause): No longer static.
7764 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7766 2013-04-15 Tom Tromey <tromey@redhat.com>
7770 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7771 * c-exp.y (TYPEID): New token.
7772 (exp): Add new TYPEID productions.
7773 (ident_tokens): Add "typeid".
7774 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7775 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7776 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7777 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7778 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7780 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7781 (build_std_type_info_type, gnuv3_get_typeid_type)
7782 (gnuv3_get_typeid): New functions.
7783 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7784 new fields on ABI object.
7785 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7786 * std-operator.def (OP_TYPEID): New.
7788 2013-04-15 Tom Tromey <tromey@redhat.com>
7790 * elfread.c (elf_symtab_read): Install versioned symbol under
7791 unversioned name as well.
7793 2013-04-15 Tom Tromey <tromey@redhat.com>
7796 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7797 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7798 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7799 (gdb_demangle): New function.
7800 * cp-support.h (gdb_demangle): Declare.
7801 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7802 (dwarf2_name): Use gdb_demangle.
7803 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7804 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7806 (gnuv3_print_method_ptr): Use gdb_demangle.
7807 * jv-lang.c (java_demangle): Use gdb_demangle.
7808 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7809 * language.c (unk_lang_demangle): Use gdb_demangle.
7810 * symtab.c (symbol_find_demangled_name)
7811 (demangle_for_lookup): Use gdb_demangle.
7813 2013-04-15 Tom Tromey <tromey@redhat.com>
7817 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7819 (classify_exception_breakpoint): New function.
7820 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7821 (print_mention_exception_catchpoint)
7822 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7823 (catch_exception_command_1): Handle "rethrow" catchpoint.
7824 (catch_rethrow_command): New function.
7825 (_initialize_breakpoint): Add "catch rethrow" command.
7827 2013-04-15 Pierre Muller <muller@sourceware.org>
7829 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7830 set_gdbarch_write_pc as deprecated anymore.
7832 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7834 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7837 2013-04-13 Yao Qi <yao@codesourcery.com>
7839 * ctf.c (_initialize_ctf): Include "completer.h".
7840 Call add_target_with_completer instead of add_target.
7842 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7844 Fix GDB regression related to PR binutils/14813.
7845 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7846 * minidebug.c (lzma_close): Add return value comment.
7847 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7848 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7849 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7851 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7853 * config.in: Regenerate.
7855 2013-04-12 Tom Tromey <tromey@redhat.com>
7857 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7859 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7860 (struct die_reader_specs) <buffer>: Likewise.
7861 (die_reader_func_ftype): Make 'info_ptr' const.
7862 (struct line_header) <include_dirs, statement_program_start,
7863 statement_program_end>: Now const.
7864 (struct file_entry) <name>: Likewise.
7865 (struct partial_die_info) <sibling>: Likewise.
7866 (struct dwarf_block) <data>: Likewise.
7867 (dwarf2_read_section): Remove cast.
7868 (dwarf2_get_section_info): Make 'bufp' const.
7869 (read_index_from_section): Constify.
7870 (dw2_get_file_names_reader): Make 'info_ptr' const.
7871 (dw2_get_primary_filename_reader): Likewise.
7872 (read_comp_unit_head): Make 'info_ptr' and return type const.
7873 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7875 (read_abbrev_offset): Constify.
7876 (dwarf2_create_include_psymtab): Make 'name' const.
7877 (create_debug_types_hash_table): Update.
7878 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7879 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7881 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7882 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7883 (read_comp_units_from_section): Constify.
7884 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7885 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7887 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7888 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7889 (create_dwp_hash_table, dwarf2_ranges_read)
7890 (dwarf2_record_block_ranges): Constify.
7891 (read_die_and_children, read_die_and_siblings_1)
7892 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7894 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7895 (abbrev_table_read_table): Constify.
7896 (load_partial_dies): Make 'info_ptr' const.
7897 (read_partial_die, read_attribute_value, read_attribute): Make
7898 'info_ptr' and return type const.
7899 (read_address, read_initial_length)
7900 (read_checked_initial_length_and_offset, read_offset)
7901 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7903 (read_direct_string): Make 'buf' and return type const.
7904 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7905 (read_indirect_string): Make return type const.
7906 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7907 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7909 (read_str_index): Make return type const.
7910 (add_include_dir): Make 'include_dir' const.
7911 (add_file_name): Make 'name' const.
7912 (dwarf_decode_line_header): Constify.
7913 (psymtab_include_file_name): Make return type const.
7914 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7915 (dwarf2_start_subfile): Make 'filename' const.
7916 (dwarf2_const_value_attr): Make 'bytes' const.
7917 (read_signatured_type_reader): Make 'info_ptr' const.
7918 (decode_locdesc): Constify.
7919 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7921 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7922 'mac_end', and return type const.
7923 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7924 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7926 (per_cu_header_read_in): Constify.
7927 * symfile.h (dwarf2_get_section_info): Update.
7929 2013-04-12 Tom Tromey <tromey@redhat.com>
7931 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7933 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7935 * NEWS: Mention "show configuration", --configuration.
7936 * top.c (print_gdb_configuration): New function, displays the
7937 details about GDB configure-time parameters.
7938 (print_gdb_version): Mention "show configuration".
7939 * cli/cli-cmds.c (show_configuration): New function.
7940 (_initialize_cli_cmds): Add the "show configuration" command.
7941 * main.c (captured_main) <print_configuration>: New static var.
7942 <long_options>: Use it.
7943 If --configuration was given, call print_gdb_configuration.
7945 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7946 Pedro Alves <palves@redhat.com>
7948 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7949 (generated_files): Add gcore.
7950 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7951 HAVE_NATIVE_GCORE_HOST.
7953 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7954 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7955 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7956 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7957 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7958 Add HAVE_NATIVE_GCORE_HOST.
7959 * configure: Regenerate.
7960 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7961 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7962 AC_CONFIG_FILES for gcore.
7963 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7965 * gdb_gcore.sh: Rename to ...
7966 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7967 and GCORE_TRANSFORM_NAME substitutions.
7969 Fix parsing tabs in ${gdb_target_obs}.
7970 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7972 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7974 * remote.c (unpush_and_perror): Add output message final dot.
7976 2013-04-11 Yao Qi <yao@codesourcery.com>
7978 * tracepoint.c (tfile_interp_line): Fit parameters line and
7981 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7983 * solib.c (solib_map_sections): Remove code overwriting
7984 SO->SO_NAME with the bfd's filename.
7986 2013-04-10 Pedro Alves <palves@redhat.com>
7988 * cli/cli-decode.c (integer_unlimited_completer): New function.
7989 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7990 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7992 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7993 (is_unlimited_literal): New function.
7994 (do_set_command): Handle literal "unlimited" arguments.
7995 * frame.c (_initialize_frame) <set backtrace limit>: Document
7997 * printcmd.c (_initialize_printcmd) <set print
7998 max-symbolic-offset>: Add help text.
7999 * record-full.c (_initialize_record_full) <set record full
8000 insn-number-max>: Likewise.
8001 * record.c (_initialize_record) <set record
8002 instruction-history-size, set record function-call-history-size>:
8004 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8006 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8008 * source.c (_initialize_source) <set listsize>: Add help text.
8009 * utils.c (initialize_utils) <set height, set width>: Likewise.
8010 <set pagination>: Mention "set height unlimited".
8011 * valprint.c (_initialize_valprint) <set print elements, set print
8012 repeats>: Document "unlimited".
8014 2013-04-10 Pedro Alves <palves@redhat.com>
8016 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8017 instead of disconnect_tracing.
8018 * infcmd.c (detach_command, disconnect_command): Call
8019 query_if_trace_running. Adjust.
8020 * top.c: Include "tracepoint.h".
8021 (quit_target): Delete. Contents moved ...
8022 (quit_force): ... here. Wrap each stage of teardown in
8023 TRY_CATCH. Call disconnect_tracing before detaching.
8025 2013-04-10 Hui Zhu <hui@codesourcery.com>
8026 Yao Qi <yao@codesourcery.com>
8028 * configure.ac: Check libbabeltrace is installed.
8029 * config.in: Regenerate.
8030 * configure: Regenerate.
8031 * Makefile.in (LIBBABELTRACE): New.
8032 (CLIBS): Add LIBBABELTRACE.
8033 * ctf.c: Include "exec.h".
8034 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8035 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8036 (ctf_save_metadata_header): Define new type aliases in
8038 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8039 in metadata. Start a new faked packet for trace status.
8040 (ctf_write_status): Write trace status to CTF.
8041 (ctf_write_uploaded_tsv): Write TSV to CTF.
8042 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8043 (ctf_write_definition_end): End the faked packet.
8045 (ctx, ctf_iter, trace_dirname): New.
8046 (start_pos): New variable.
8047 (ctf_destroy, ctf_open_dir, ctf_open): New.
8048 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8050 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8051 (ctf_fetch_registers, ctf_xfer_partial): New.
8052 (ctf_get_trace_state_variable_value): New.
8053 (ctf_get_tpnum_from_frame_event): New.
8054 (ctf_get_traceframe_address): New.
8055 (ctf_trace_find, ctf_has_stack): New.
8056 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8057 (ctf_get_trace_status, ctf_read_status): New.
8058 (_initialize_ctf): New.
8059 * tracepoint.c (get_tracepoint_number): New
8060 (get_uploaded_tsv): Remove 'static'.
8061 (struct traceframe_info, trace_regblock_size): Move it to ...
8062 * tracepoint.h: ... here.
8063 (get_tracepoint_number): Declare it.
8064 (get_uploaded_tsv): Declare it.
8066 * NEWS: Mention new configure option.
8068 2013-04-10 Pedro Alves <palves@redhat.com>
8069 Hui Zhu <hui@codesourcery.com>
8071 * breakpoint.c (dprintf_re_set): New.
8072 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8075 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8077 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8078 Remove solib-svr4.o from the list.
8080 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8082 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8083 Use gdb_assert_not_reached instead of invalid boolean expression.
8085 2013-04-09 Pedro Alves <palves@redhat.com>
8087 * remote.c (unpush_and_perror): New function.
8088 (readchar, remote_serial_write): Use it.
8090 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8092 * NEWS: Mention new btrace RSP packets.
8094 2013-04-08 Tom Tromey <tromey@redhat.com>
8096 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8099 2013-04-08 Tom Tromey <tromey@redhat.com>
8101 * maint.c (print_bfd_section_info): Print the section index.
8102 * symmisc.c (dump_msymbols): Print the section index.
8104 2013-04-08 Tom Tromey <tromey@redhat.com>
8107 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8108 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8109 * breakpoint.c (resolve_sal_pc): Update.
8110 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8111 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8112 (minsym_lookup_iterator_cb): Use it.
8113 (default_read_var_value): Update.
8114 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8116 * infcmd.c (jump_command): Update.
8117 * linespec.c (minsym_found): Update.
8118 * maint.c (maintenance_translate_address): Update.
8119 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8120 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8121 * parse.c (write_exp_msymbol): Update.
8122 * printcmd.c (address_info): Update.
8123 * psymtab.c (find_pc_sect_psymbol): Update.
8124 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8126 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8127 Don't initialize SYMBOL_OBJ_SECTION.
8128 * spu-tdep.c (spu_catch_start): Update.
8129 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8130 * symmisc.c (dump_msymbols, print_symbol): Update.
8131 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8132 how fallback section is computed.
8133 (fixup_symbol_section): Update.
8134 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8136 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8137 Initialize SYMBOL_SECTION.
8138 * symtab.h (struct general_symbol_info) <section>: Update comment.
8139 <obj_section>: Remove.
8140 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8141 (SYMBOL_OBJFILE): New macro.
8143 2013-04-08 Tom Tromey <tromey@redhat.com>
8145 * coffread.c (record_minimal_symbol): Update.
8146 * dbxread.c (record_minimal_symbol): Update.
8147 * elfread.c (record_minimal_symbol): Update.
8148 * machoread.c (macho_symtab_add_minsym): Update.
8149 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8151 * minsyms.c (prim_record_minimal_symbol): Update.
8152 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8154 (prim_record_minimal_symbol_and_info): Likewise.
8155 * minsyms.h (prim_record_minimal_symbol_full)
8156 (prim_record_minimal_symbol_and_info): Update.
8157 * symtab.c (allocate_symbol, initialize_symbol)
8158 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8159 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8162 2013-04-08 Tom Tromey <tromey@redhat.com>
8165 * solib-som.c (som_solib_section_offsets): Use BFD section
8166 indices. Set offsets for all sections.
8167 * somread.c (som_symtab_read): Compute BFD section for
8168 symbol. Use prim_record_minimal_symbol_and_info.
8169 (som_symfile_read): Fix comment.
8170 (struct find_section_offset_arg): New.
8171 (find_section_offset, set_section_index): New functions.
8172 (som_symfile_offsets): Use set_section_index to compute
8175 2013-04-08 Tom Tromey <tromey@redhat.com>
8177 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8178 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8179 gdb_bfd_section_index.
8180 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8182 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8184 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8186 * objfiles.c (add_to_objfile_sections_full): New function.
8187 (add_to_objfile_sections): Use it.
8188 (build_section_table): Rewrite.
8189 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8190 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8191 (struct objfile) <sections>: Update comment.
8192 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8194 (ALL_OBJSECTIONS): Use it.
8195 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8196 * solib-frv.c (frv_relocate_main_executable): Update.
8197 * solib-target.c (solib_target_relocate_section_addresses):
8198 Use gdb_bfd_section_index.
8199 * symfile.c (build_section_addr_info_from_section_table):
8200 Use gdb_bfd_section_index.
8201 (build_section_addr_info_from_bfd, place_section): Likewise.
8202 * symtab.c (fixup_section): Update.
8203 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8205 2013-04-08 Tom Tromey <tromey@redhat.com>
8207 * minsyms.h (struct bound_minimal_symbol): New.
8208 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8209 Remove objfile argument.
8210 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8211 Return bound_minimal_symbol.
8212 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8213 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8214 Return bound_minimal_symbol.
8215 (in_gnu_ifunc_stub): Update.
8216 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8217 Remove 'objfile_p' argument.
8218 (lookup_solib_trampoline_symbol_by_pc): Update.
8219 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8220 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8221 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8222 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8223 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8224 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8225 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8226 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8227 stack.c, symtab.c, tui/tui-disasm.c: Update.
8229 2013-04-08 Tom Tromey <tromey@redhat.com>
8231 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8232 Use symbol's obstack, not an objfile.
8233 * coffread.c (process_coff_symbol): Update.
8234 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8235 * jv-lang.c (add_class_symbol): Update.
8236 * mdebugread.c (new_symbol): Update.
8237 * minsyms.c (prim_record_minimal_symbol_full)
8238 (terminate_minimal_symbol_table): Update.
8239 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8240 * stabsread.c (define_symbol, read_enum_type): Update.
8241 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8242 Handle Ada specially.
8243 (symbol_set_language): Add 'obstack' argument.
8244 (symbol_set_names): Update.
8245 (symbol_natural_name, symbol_demangled_name): Always use
8247 * symtab.h (struct general_symbol_info)
8248 <language_specific::obstack>: New field.
8249 <ada_mangled>: New field.
8250 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8251 (symbol_set_language): Update.
8253 2013-04-08 Tom Tromey <tromey@redhat.com>
8255 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8256 Take an obstack, not an objfile.
8257 (symbol_set_names): Update.
8258 * symtab.h (symbol_set_demangled_name): Update.
8260 2013-04-08 Tom Tromey <tromey@redhat.com>
8262 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8264 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8265 (read_func_scope): Call allocate_template_symbol.
8266 (new_symbol_full): Call allocate_symbol.
8267 * jit.c (finalize_symtab): Call allocate_symbol.
8268 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8269 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8270 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8271 (common_block_end): Call allocate_symbol.
8272 * symtab.c (allocate_symbol, initialize_symbol)
8273 (allocate_template_symbol): New functions.
8274 * symtab.c (allocate_symbol, initialize_symbol)
8275 (allocate_template_symbol): Declare.
8276 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8278 2013-04-08 Pedro Alves <palves@redhat.com>
8279 Keith Seitz <keiths@redhat.com>
8281 * breakpoint.c (create_breakpoint): Rename
8282 "parse_condition_and_thread" parameter to "parse_arg". Update
8283 describing comment. If !PARSE_ARG, then error out if ARG is not
8284 the empty string after extracting the location.
8285 * breakpoint.h (create_breakpoint): Rename
8286 "parse_condition_and_thread" parameter to "parse_arg".
8288 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8290 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8292 2013-04-07 Yao Qi <yao@codesourcery.com>
8294 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8295 and 'addr2' to CORE_ADDR.
8296 * target.c (update_current_target): Update.
8297 * target.h (struct target_ops) <to_trace_find>: Change parameter
8299 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8300 'addr2' to CORE_ADDR.
8301 (tfile_trace_find): Likewise.
8302 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8303 Change local variable 'addr' to type CORE_ADDR.
8304 * tracepoint.h (tfind_1): Update declaration.
8306 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8308 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8309 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8312 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8314 * main.h (windows_get_absolute_argv0): ...to here.
8316 2013-04-05 Doug Evans <dje@google.com>
8318 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8319 (read_cutu_die_from_dwo): Add comments.
8320 (read_structure_type): Update comment.
8321 (read_enumeration_type, read_namespace_type): Update comment.
8322 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8324 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8326 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8327 * Makefile.in (gdb.z): Remove.
8328 (install-only): Remove $(man1dir) and gdb.1 installation.
8331 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8333 Fix compatibility with Linux kernel 3.8.3.
8334 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8335 to more inner block. Remove parsing of NUMBER from outer block.
8336 Parse NUMBER only if KEYWORD has been identified.
8338 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8340 Fix variable name shadowing.
8341 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8342 filename to mapsfilename and update its uses.
8344 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8346 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8347 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8348 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8349 details of the problem.
8351 2013-04-04 Pedro Alves <palves@redhat.com>
8352 Hui Zhu <hui@codesourcery.com>
8354 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8355 tracepoint, reset its STEP_COUNT and call validate_actionline.
8357 2013-04-03 Doug Evans <dje@google.com>
8359 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8360 read_die_and_siblings.
8361 (read_die_and_siblings): New function.
8362 (read_cutu_die_from_dwo): Dump die if requested.
8363 (read_die_and_children): Call read_full_die_1 and
8364 read_die_and_siblings_1.
8365 (read_full_die): Dump die if requested.
8367 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8369 * dwarf2read.c (struct dwo_file): New member comp_dir.
8370 Rename member name to dwo_name. All uses updated.
8371 (hash_dwo_file): Include comp_dir in computation.
8372 (eq_dwo_file): Ditto.
8373 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8374 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8376 * psymtab.c (read_psymtabs_with_fullname): Don't call
8377 psymtab_to_fullname if the basenames are different.
8379 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8381 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8382 New entry about "fullname" presence.
8384 2013-04-03 Pedro Alves <palves@redhat.com>
8386 * NEWS: Mention x86_64/Cygwin as new native configuration.
8388 2013-04-02 Doug Evans <dje@google.com>
8390 * dwarf2read.c (read_structure_type): Fix typo in comment.
8392 2013-04-02 Pedro Alves <palves@redhat.com>
8394 * NEWS: Mention "set/show debug aarch64", "set/show debug
8395 coff-pe-read" and "set/show debug mach-o".
8397 2013-04-02 Pedro Alves <palves@redhat.com>
8399 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8401 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8403 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8404 gdb_string.h is now in common/.
8406 2013-04-02 Pedro Alves <palves@redhat.com>
8408 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8409 under "New options".
8411 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8415 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8417 2013-04-02 Pedro Alves <palves@redhat.com>
8421 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8422 (remote_serial_write): New function.
8423 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8425 2013-04-01 Jiong Wang <jiwang@tilera.com>
8427 * NEWS: Mention TILE-Gx in "New native configurations" and
8428 "New targets" sections.
8430 2013-04-01 Doug Evans <dje@google.com>
8432 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8433 (process_enumeration_scope): Simplify.
8435 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8437 (struct signatured_type): ... to here.
8438 (sig_type_ptr): New typedef.
8439 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8440 out of union 't'. All uses updated.
8441 (dw2_get_file_names_reader): Assert not called for a type unit.
8442 (dw2_get_file_names): Assert not called for a type unit or type
8444 (build_type_psymtabs_reader): Assert called for a type unit.
8445 (build_type_psymtab_dependencies): Assert called for a type unit group.
8447 * dwarf2read.c (free_dwo_file): Add comment.
8448 (dwarf2_per_objfile_free): Unref dwp bfd.
8450 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8452 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8453 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8454 (read_pe_exported_syms): Remove unused 'exportix'.
8455 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8456 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8457 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8459 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8461 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8462 (print_it_watchpoint): Remove unused 'bl'.
8463 (say_where): Remove unused 'uiout'.
8464 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8465 (bkpt_breakpoint_hit): Remove unused 'b'.
8466 (internal_bkpt_print_it): Remove unused 'uiout'.
8467 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8469 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8471 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8472 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8474 2013-03-29 Doug Evans <dje@google.com>
8476 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8477 Delete arg is_dwp. All callers updated.
8478 (open_dwp_file): New function.
8479 (open_and_init_dwp_file): Call it.
8480 (get_dwp_file): New function.
8481 (lookup_dwo_cutu): Call it.
8483 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8484 unnecessary, cleanup.
8486 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8488 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8489 (lookup_dwo_unit): New function.
8490 (init_cutu_and_read_dies): Move DWO handling to new functions.
8492 * dwarf2read.c (struct signatured_type): Tweak comment.
8493 (struct dwo_unit): Tweak comment.
8494 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8495 (create_dwo_debug_info_hash_table): Tweak comment.
8496 (dwarf2_per_cu_offset_and_type): Tweak comment.
8498 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8499 missing .debug_types section.
8501 2013-03-29 Yao Qi <yao@codesourcery.com>
8503 * corelow.c: Include "completer.h".
8504 (_initialize_corelow): Call add_target_with_completer with
8505 argument 'filename_completer'.
8506 * tracepoint.c: Likewise.
8507 * exec.c (_initialize_exec): Likewise.
8508 * target.c (add_target): Rename to ...
8509 (add_target_with_completer): ... this. Call set_cmd_completer
8510 if parameter completer is not NULL.
8512 * target.h: Include "command.h".
8513 (add_target_with_completer): Declare it.
8515 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8517 * coffread.c (is_import_fixup_symbol): New function.
8518 (record_minimal_symbol): Use is_import_fixup_symbol to
8519 detect import fixup symbols, and discard them.
8521 2013-03-28 Doug Evans <dje@google.com>
8523 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8524 types hash table until we know we need it.
8526 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8529 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8530 All callers updated.
8531 (dw2_print_stats): Print #read CUs too.
8532 (dump_die_shallow): Print signatured types better.
8534 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8535 info_or_types_section to section. All uses updated.
8536 (struct dwo_unit): Ditto.
8538 2013-03-28 Pedro Alves <palves@redhat.com>
8540 * NEWS (New options): New section.
8541 (New options): Mention set/show remote trace-status-packet.
8542 * remote.c (PACKET_qTStatus): New enumeration value.
8543 (remote_get_trace_status): Skip sending qTStatus if the packet is
8544 disabled. Use packet_ok.
8545 (_initialize_remote): Register a configuration command for
8548 2013-03-28 Doug Evans <dje@google.com>
8550 * symfile.c (find_separate_debug_file): Add comment.
8551 (terminate_after_last_dir_separator): Tweak comment.
8553 * dwarf2read.c (create_partial_symtab): Add forward decl.
8554 (create_partial_symtab): Move to be closer to other psymtab functions.
8555 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8557 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8558 (compute_symtab_includes): Remove unnecessary forward declaration.
8559 (die_needs_namespace): Add comment marking group of functions for
8560 dwarf2 name computation.
8562 * typeprint.c (_initialize_typeprint): Improve type help text.
8564 * python/python.c (finish_python_initialization): Provide suggestion
8565 for how to tell gdb to find its python files.
8567 2013-03-28 Pedro Alves <palves@redhat.com>
8571 * source.c (_initialize_source): Change back "set listsize" to an
8574 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8577 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8579 2013-03-27 Pedro Alves <palves@redhat.com>
8581 * top.c (history_size): Rename to ...
8582 (history_size_setshow_var): ... this. Add comment.
8583 (show_commands): Use readline's 'history_length' instead of
8584 computing the history length by calling history_get in a loop.
8585 (set_history_size_command): Error out for sizes over INT_MAX.
8586 Restore previous history size on invalid size.
8587 (init_history): If HISTSIZE is negative, leave the history size as
8589 (init_main): Adjust.
8591 2013-03-27 Pedro Alves <palves@redhat.com>
8593 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8594 coff_pe_read" command to "set debug coff-pe-read".
8596 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8598 * record.c (command_size_to_target_size): Fix size comparison.
8599 Change parameter type from pointer to integer to integer.
8602 2013-03-27 Pierre Muller <muller@sourceware.org>
8604 * windows-nat.c (handle_output_debug_string): Avoid typecast
8605 from integer of different size warning.
8607 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8609 * windows-nat.c (handle_output_debug_string): Add empty line
8610 after local block variable definition.
8612 2013-03-26 Pedro Alves <palves@redhat.com>
8614 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8615 (net_open): Make 'polls' local unsigned.
8617 2013-03-26 Pedro Alves <palves@redhat.com>
8619 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8620 a zuinteger command instead of uinteger.
8622 2013-03-26 Pedro Alves <palves@redhat.com>
8624 * record-full.c (record_full_insn_num): Make it unsigned.
8625 (record_full_check_insn_num, record_full_message)
8626 (record_full_registers_change, record_full_xfer_partial): Remove
8627 record_full_insn_max_num check (it's always != 0).
8628 (record_full_info, record_full_restore): Use %u as format string.
8629 (): Use %u as format string.
8630 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8631 check (it's always != 0).
8633 2013-03-26 Pedro Alves <palves@redhat.com>
8635 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8636 and "set dcache size" commands zuinteger instead of uinteger.
8638 2013-03-26 Pedro Alves <palves@redhat.com>
8640 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8641 command zuinteger instead of uinteger.
8643 2013-03-26 Pedro Alves <palves@redhat.com>
8645 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8646 zuinteger instead of uinteger.
8648 2013-03-26 Pedro Alves <palves@redhat.com>
8650 * record.c (record_insn_history_size_setshow_var)
8651 (record_call_history_size_setshow_var): New globals.
8652 (command_size_to_target_size): New function.
8653 (cmd_record_insn_history, cmd_record_call_history): Use
8654 command_size_to_target_size instead of cast.
8655 (validate_history_size, set_record_insn_history_size)
8656 (set_record_call_history_size): New functions.
8657 (_initialize_record): Install set_record_insn_history_size and
8658 set_record_call_history_size as "set" hooks of "set record
8659 instruction-history-size" and "set record
8660 function-call-history-size".
8662 2013-03-26 Pedro Alves <palves@redhat.com>
8664 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8665 use with history_max_entries use. Remove FIXME note.
8667 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8669 * record-btrace.c (record_btrace_close): Call
8670 record_btrace_auto_disable.
8672 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8674 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8676 2013-03-25 Doug Evans <dje@google.com>
8678 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8680 2013-03-25 Tom Tromey <tromey@redhat.com>
8683 * c-exp.y (exp): Add new productions for destructors after '.' and
8685 (write_destructor_name): New function.
8687 2013-03-25 Tom Tromey <tromey@redhat.com>
8690 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8691 value_struct_elt, not lookup_struct_elt_type.
8692 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8693 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8694 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8696 2013-03-25 Yao Qi <yao@codesourcery.com>
8698 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8699 instead of '_mkdir'.
8701 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8703 * windows-nat.c (windows_get_absolute_argv0): New function.
8704 * windows-nat.h: Add its prototype.
8706 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8707 Use IS_DIR_SEPARATOR instead of looking for a character inside
8708 SLASH_STRING. Include filenames.h.
8709 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8710 relocate_gdb_directory works when passed gdb_program_name.
8711 Include windows-nat.h.
8713 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8715 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8716 * remote.c (trace_error): Remove the special handling of '2'.
8717 (readchar) <SERIAL_EOF>
8718 (readchar) <SERIAL_ERROR>
8719 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8720 (remote_get_trace_status): Call throw_exception if EX is
8722 * utils.c (perror_with_name): Rename to ...
8723 (throw_perror_with_name): ... here. New parameter errcode, describe it
8724 in the function comment.
8725 (perror_with_name): New function wrapper.
8726 * utils.h (enum errors): New stub declaration.
8727 (throw_perror_with_name): New declaration.
8729 2013-03-22 Pedro Alves <palves@redhat.com>
8730 Yao Qi <yao@codesourcery.com>
8731 Mark Kettenis <kettenis@gnu.org>
8733 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8734 Don't let the user set the value to UINT_MAX directly.
8735 <var_integer>: Don't let the user set the value to INT_MAX
8738 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8740 * remote.c (remote_unpush_target): New function.
8741 (remote_open_1): Remove two pop_target calls, update one comment, add
8742 comment to target_preopen call. Replace pop_target call by
8743 remote_unpush_target call.
8744 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8745 pop_target calls by remote_unpush_target calls.
8747 2013-03-22 Pedro Alves <palves@redhat.com>
8749 * linux-nat.c (linux_child_follow_fork): Don't call
8750 linux_enable_event_reporting.
8751 (linux_handle_extended_wait): Don't call
8752 linux_enable_event_reporting.
8754 2013-03-22 Pedro Alves <palves@redhat.com>
8756 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8757 use it to rewrite the trampoline buffers with type gdb_byte[], and
8758 undefine the macro. Remove char* cast.
8760 2013-03-21 Doug Evans <dje@google.com>
8762 New commands "mt set per-command {space,time,symtab} {on,off}".
8764 * event-top.c: #include "maint.h".
8765 * main.c: #include "maint.h".
8766 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8767 timeval-utils.h, maint.h, cli/cli-setshow.h.
8768 (per_command_time, per_command_space): New static globals.
8769 (per_command_symtab): New static global.
8770 (per_command_setlist, per_command_showlist): New static globals.
8771 (struct cmd_stats): Move here from utils.c.
8772 (set_per_command_time): Renamed from set_display_time in utils.c
8773 and moved here. All callers updated.
8774 (set_per_command_space): Renamed from set_display_space in utils.c
8775 and moved here. All callers updated.
8776 (count_symtabs_and_blocks): New function.
8777 (report_command_stats): Moved here from utils.c. Add support for
8778 printing symtab stats. Only print data if enabled before command
8780 (make_command_stats_cleanup): Ditto.
8781 (sert_per_command_cmd, show_per_command_cmd): New functions.
8782 (_initialize_maint_cmds): Add new commands
8783 mt set per-command {space,time,symtab} {on,off}.
8784 * maint.h: New file.
8785 * top.c: #include "maint.h".
8786 * utils.c (reset_prompt_for_continue_wait_time): New function.
8787 (get_prompt_for_continue_wait_time): New function.
8788 * utils.h (reset_prompt_for_continue_wait_time): Declare
8789 (get_prompt_for_continue_wait_time): Declare.
8790 (make_command_stats_cleanup): Moved to maint.h.
8791 (set_display_time, set_display_space): Moved to maint.h and renamed
8792 to set_per_command_time, set_per_command_space.
8793 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8794 parse_binary_operation and made non-static. Don't call error,
8795 just return an error marker. All callers updated.
8796 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8798 2013-03-21 Tom Tromey <tromey@redhat.com>
8800 * symfile.c (alloc_section_addr_info): Update header. Don't set
8801 'num_sections' field.
8802 (build_section_addr_info_from_section_table): Set 'num_sections'.
8803 (build_section_addr_info_from_bfd): Likewise.
8804 (build_section_addr_info_from_objfile): Remove dead loop
8806 (free_section_addr_info): Unconditionally call xfree.
8807 (relative_addr_info_to_section_offsets, addrs_section_sort)
8808 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8810 (syms_from_objfile_1): Remove dead 'if' condition. Check
8812 (add_symbol_file_command): Set 'num_sections'.
8813 * symfile-mem.c (symbol_file_add_from_memory): Set
8815 * somread.c (som_symfile_offsets): Remove dead loop condition.
8816 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8817 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8819 2013-03-21 Tom Tromey <tromey@redhat.com>
8821 * tracepoint.h (decode_agent_options): Add 'trace_string'
8823 * tracepoint.c (decode_agent_options): Add 'trace_string'
8825 (validate_actionline): Update.
8826 (collect_symbol): Add 'trace_string' argument.
8827 (struct add_local_symbols_data) <trace_string>: New field.
8828 (do_collect_symbol): Update.
8829 (add_local_symbols): Add 'trace_string' argument.
8830 (encode_actions_1): Update.
8831 (trace_dump_actions): Update.
8832 * dwarf2loc.c (access_memory): Update.
8833 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8834 * ax-general.c (new_agent_expr): Update.
8835 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8836 (gen_trace_for_return_address): Add argument.
8837 (trace_kludge, trace_string_kludge): Remove.
8838 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8839 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8840 (gen_trace_for_var): Add 'trace_string' argument.
8841 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8842 (gen_printf, agent_eval_command_one): Update.
8844 2013-03-21 Tom Tromey <tromey@redhat.com>
8847 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8848 Handle FILENAME token.
8850 2013-03-21 Tom Tromey <tromey@redhat.com>
8852 * c-exp.y (YYPRINT): Define.
8853 (c_print_token): New function.
8855 2013-03-21 Tom Tromey <tromey@redhat.com>
8857 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8859 2013-03-21 Yao Qi <yao@codesourcery.com>
8861 * ctf.c: Include "gdb_stat.h".
8862 [USE_WIN32API]: New macro 'mkdir'.
8863 (ctf_start): Use permission bits macros if they are defined.
8865 2013-03-20 Keith Seitz <keiths@redhat.com>
8867 * breakpoint.h (struct breakpoint): Add comment to
8868 extra_string indicating that this member is mallod'd.
8869 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8871 2013-03-20 Pedro Alves <palves@redhat.com>
8875 * cli/cli-setshow.c (do_set_command)
8876 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8877 the result of parsing the command argument. Throw error if the
8878 value is greater than UINT_MAX. Print the invalid value with
8880 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8881 result of parsing the command argument. Throw error if the value
8882 is greater than INT_MAX, not greater or equal. Also throw error
8883 if the value is less than INT_MIN. Print the invalid value with
8885 <var_zuinteger_unlimited>: Throw error if the value is greater
8886 than INT_MAX, not greater or equal.
8887 (do_show_command) <var_integer, var_zinteger,
8888 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8890 2013-03-20 Tom Tromey <tromey@redhat.com>
8892 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8894 * dwarf2read.c (read_func_scope): Remove old FIXME.
8895 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8897 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8898 Unconditionally call via computed ops, if possible.
8899 * printcmd.c (address_info): Unconditionally call via computed ops,
8901 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8903 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8904 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8907 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8908 Tom Tromey <tromey@redhat.com>
8911 * coffread.c (coff_register_index): New global.
8912 (process_coff_symbol, coff_read_enum_type): Set
8913 SYMBOL_ACLASS_INDEX.
8914 (_initialize_coffread): Initialize new global.
8915 * dwarf2loc.c (locexpr_find_frame_base_location)
8916 (dwarf2_block_frame_base_locexpr_funcs)
8917 (loclist_find_frame_base_location)
8918 (dwarf2_block_frame_base_loclist_funcs): New.
8919 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8920 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8921 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8922 (dwarf2_block_frame_base_loclist_funcs): New.
8923 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8924 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8926 (read_func_scope): Update.
8927 (fixup_go_packaging, mark_common_block_symbol_computed)
8928 (var_decode_location, new_symbol_full, dwarf2_const_value):
8929 Set SYMBOL_ACLASS_INDEX.
8930 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8931 (_initialize_dwarf2_read): Initialize new globals.
8932 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8933 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8934 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8936 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8937 (_initialize_mdebugread): Initialize new globals.
8938 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8939 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8940 (stab_register_index, stab_regparm_index): New globals.
8941 (define_symbol, read_enum_type, common_block_end): Set
8942 SYMBOL_ACLASS_INDEX.
8943 (_initialize_stabsread): Initialize new globals.
8944 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8946 (MAX_SYMBOL_IMPLS): New define.
8947 (register_symbol_computed_impl, register_symbol_block_impl)
8948 (register_symbol_register_impl)
8949 (initialize_ordinary_address_classes): New functions.
8950 (_initialize_symtab): Call initialize_ordinary_address_classes.
8951 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8952 (struct symbol_impl): New.
8953 (SYMBOL_ACLASS_BITS): New define.
8954 (struct symbol) <aclass, ops>: Remove fields.
8955 <aclass_index>: New field.
8956 (symbol_impls): Declare.
8957 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8958 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8959 (register_symbol_computed_impl, register_symbol_block_impl)
8960 (register_symbol_register_impl): Declare.
8961 (struct symbol_computed_ops): Add location_has_loclist.
8962 (struct symbol_block_ops): New.
8963 (SYMBOL_BLOCK_OPS): New.
8964 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8966 2013-03-20 Tom Tromey <tromey@redhat.com>
8968 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8969 (print_partial_symbols, recursively_search_psymtabs): Use
8972 2013-03-20 Pierre Muller <muller@sourceware.org>
8974 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8975 addtion, subtraction, multiplication and division binary operator.
8977 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8980 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8981 * bsd-kvm.c (bsd_kvm_close): Likewise.
8982 * bsd-uthread.c (bsd_uthread_close): Likewise.
8983 * corelow.c (core_close): Likewise.
8984 (core_close_cleanup): Remove parameter quitting from a caller.
8985 * event-top.c (async_disconnect): Likewise.
8986 * exec.c (exec_close_1): Remove parameter quitting.
8987 * go32-nat.c (go32_close): Likewise.
8988 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8989 parameter quitting from a caller.
8990 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8992 (mips_linux_close): Remove parameter quitting. Remove parameter
8993 quitting from a caller.
8994 * monitor.c (monitor_close): Remove parameter quitting.
8995 * monitor.h (monitor_close): Likewise.
8996 * record-btrace.c (record_btrace_close): Likewise.
8997 * record-full.c (record_full_close): Likewise.
8998 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8999 it also from fprintf_unfiltered.
9000 * remote-mips.c (mips_close): Remove parameter quitting.
9001 (mips_detach): Remove parameter quitting from a caller.
9002 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9003 (gdbsim_close): Remove duplicate function comment. Remove parameter
9004 quitting and remove it also from printf_filtered.
9005 * remote.c (remote_close): Remove parameter quitting.
9006 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9007 * target.c (update_current_target): Remove parameter int from to_close
9009 (push_target, unpush_target, pop_target): Remove parameter quitting from
9011 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9012 Remove parameter quitting from a caller.
9013 (target_preopen): Remove parameter quitting from a caller.
9014 (target_close): Remove parameter quitting. Remove parameter quitting
9015 from a caller two times. Remove parameter quitting also from
9017 * target.h (struct target_ops): Remove parameter quitting and as int
9018 from fields to_xclose and to_close.
9019 (extern struct target_ops current_target):
9020 (target_close, pop_all_targets): Remove parameter quitting. Update the
9022 (pop_all_targets_above): Remove parameter quitting.
9023 * top.c (quit_target): Remove parameter quitting from a caller.
9024 * tracepoint.c (tfile_close): Remove parameter quitting.
9025 * windows-nat.c (windows_close): Remove parameter quitting.
9027 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9029 * windows-nat.c (handle_output_debug_string): Replace call
9030 to string_to_core_addr with call to strtoull.
9032 2013-03-20 Yao Qi <yao@codesourcery.com>
9034 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9035 and write it to CTF metadata.
9037 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9039 * windows-nat.c (handle_output_debug_string): Change type of n to
9040 SIZE_T to avoid crash on 64 bit systems.
9042 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9044 * python/python-internal.h (HAVE_SNPRINTF)
9045 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9046 about redefinition of snprintf by pyerrors.h.
9048 2013-03-15 Steve Ellcey <sellcey@mips.com>
9050 * remote-sim.c (sim_command_completer): Make char arguments const.
9052 2013-03-15 Tom Tromey <tromey@redhat.com>
9055 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9057 2013-03-14 Tom Tromey <tromey@redhat.com>
9059 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9061 (get_file_crc): Move from symfile.c.
9062 (gdb_bfd_crc): New function.
9063 * gdb_bfd.h (gdb_bfd_crc): Declare.
9064 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9065 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9066 (separate_debug_file_exists): Use gdb_bfd_crc.
9068 2013-03-14 Tom Tromey <tromey@redhat.com>
9070 * symfile.c (get_debug_link_info): Remove.
9071 (find_separate_debug_file_by_debuglink): Use
9072 bfd_get_debug_link_info.
9074 2013-03-14 Tom Tromey <tromey@redhat.com>
9076 * symtab.c (error_in_psymtab_expansion): New function.
9077 (lookup_symbol_aux_quick)
9078 (basic_lookup_transparent_type_quick): Remove "last resort"
9079 code. Use error_in_psymtab_expansion.
9081 2013-03-14 Doug Evans <dje@google.com>
9082 Jan Kratochvil <jan.kratochvil@redhat.com>
9084 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9085 any successful compare_filenames_for_search or FILENAME_CMP.
9086 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9087 * symtab.c (iterate_over_some_symtabs): Likewise.
9089 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9091 * source.c (print_source_lines_base): Make a local copy of
9094 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9095 Jan Kratochvil <jan.kratochvil@redhat.com>
9097 * source.c (print_source_lines_base): Suppress "file" for TUI.
9099 2013-03-14 Keith Seitz <keiths@redhat.com>
9100 Alan Matsuoka <alanm@redhat.com>
9104 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9106 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9109 2013-03-14 Yao Qi <yao@codesourcery.com>
9111 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9112 status to tfile if trace is stopped by command 'tstop'.
9114 2013-03-14 Yao Qi <yao@codesourcery.com>
9116 * tracepoint.c (tfile_write_status): Write trace notes and user
9117 name into tfile if they are not NULL.
9119 2013-03-14 Hui Zhu <hui@codesourcery.com>
9120 Yao Qi <yao@codesourcery.com>
9122 * Makefile.in (REMOTE_OBS): Add ctf.o.
9123 (SFILES): Add ctf.c.
9124 (HFILES_NO_SRCDIR): Add ctf.h.
9125 * ctf.c, ctf.h: New files.
9126 * tracepoint.c: Include 'ctf.h'.
9127 (collect_pseudocommand): Remove static.
9128 (trace_save_command): Parse option "-ctf".
9129 Produce different trace file writers per option.
9130 Adjust output message.
9131 (trace_save_tfile, trace_save_ctf): New.
9132 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9133 * mi/mi-main.c: Include 'ctf.h'.
9134 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9135 trace_save_tfile or trace_save_ctf.
9136 * NEWS: Mention these changes.
9138 2013-03-14 Yao Qi <yao@codesourcery.com>
9140 * tracepoint.c (trace_file_writer_xfree): New.
9141 (struct tfile_writer_data): New.
9142 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9143 (tfile_write_header, tfile_write_regblock_type): New.
9144 (tfile_write_status, tfile_write_uploaded_tsv): New.
9145 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9146 (tfile_write_raw_data, (tfile_end): New.
9147 (tfile_write_ops): New global variable.
9148 (TRACE_WRITE_R_BLOCK): New macro.
9149 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9150 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9151 (TRACE_WRITE_V_BLOCK): New macro.
9152 (trace_save): Add extra one parameter WRITER. Make it static.
9153 Use WRITER to writer trace.
9154 (tfile_trace_file_writer_new): New.
9155 (trace_save_command): Caller update.
9156 (trace_save_tfile): Write trace data in TFILE format.
9157 * tracepoint.h (struct trace_frame_write_ops): New.
9158 (struct trace_file_write_ops): New.
9159 (struct trace_file_writer): New.
9160 (trace_save): Remove its declaration.
9161 (trace_save_tfile): Declare it.
9162 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9163 instead of trace_save.
9165 2013-03-13 Pedro Alves <palves@redhat.com>
9167 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9169 2013-03-13 Pedro Alves <palves@redhat.com>
9171 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9173 * demangle.c (current_demangling_style_string): Make it const.
9174 (set_demangling_command): Assert the demangling style is known.
9175 Remove all handling of unknown styles. Set
9176 'current_demangling_style_string' to an element of the
9177 demangling_style_names array.
9178 (set_demangling_style): Delete.
9179 (_initialize_demangler): Set current_demangling_style_string to the
9180 element of the demangling_style_names array that corresponds to
9181 the default demangling style. Remove FIXME note. Don't call
9182 set_demangling_style.
9183 * gdb-demangle.h (set_demangling_style): Remove declaration.
9185 2013-03-13 Pedro Alves <palves@redhat.com>
9187 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9189 (ada_make_symbol_completion_list): Make "text0" parameter const.
9190 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9191 * breakpoint.c (condition_completer): Make "text" and "word"
9192 parameters const. Adjust.
9193 (check_tracepoint_command): Adjust to validate_actionline
9195 (catch_syscall_completer): Make "text" and "word" parameters
9197 * cli/cli-cmds.c (show_user): Make "comname" local const.
9198 (valid_command_p): Make "command" parameter const.
9199 (alias_command): Make "alias_prefix" and "command_prefix" locals
9201 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9202 (add_alias_cmd): Make "name" and "oldname" parameters const.
9203 Adjust. No longer make copy of OLDNAME.
9204 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9205 (add_setshow_cmd_full, add_setshow_enum_cmd)
9206 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9207 (add_setshow_filename_cmd, add_setshow_string_cmd)
9208 (add_setshow_string_noescape_cmd)
9209 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9210 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9211 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9212 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9213 Make "name" parameter const.
9214 (help_cmd): Rename "command" parameter to "arg". New const local
9216 (find_cmd): Make "command" parameter const.
9217 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9218 deprecated_cmd_warning prototype change.
9219 (undef_cmd_error): Make "cmdtype" parameter const.
9220 (lookup_cmd): Make "line" parameter const.
9221 (deprecated_cmd_warning): Change type of "text" parameter to
9222 pointer to const char, from pointer to pointer to char. Adjust.
9223 (lookup_cmd_composition): Make "text" parameter const.
9224 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9226 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9228 * cli/cli-script.c (validate_comname): Make "tem" local const.
9229 (define_command): New const local "tem_c". Use it in calls to
9231 (document_command): Make "tem" and "comfull" locals const.
9232 (show_user_1): Make "prefix" and "name" parameters const.
9233 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9235 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9236 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9237 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9238 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9239 (complete_on_enum, add_setshow_enum_cmd)
9240 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9241 (add_setshow_filename_cmd, add_setshow_string_cmd)
9242 (add_setshow_string_noescape_cmd)
9243 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9244 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9245 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9246 Change prototypes, constifying strings.
9247 * completer.c (noop_completer, filename_completer): Make "text"
9248 and "prefix" parameters const.
9249 (location_completer, expression_completer)
9250 (complete_line_internal): Make "text" and "prefix" parameters
9252 (command_completer, signal_completer): Make "text" and "prefix"
9254 * completer.h (noop_completer, filename_completer)
9255 (expression_completer, location_completer, command_completer)
9256 (signal_completer): Change prototypes.
9257 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9259 * cp-abi.c (cp_abi_completer): Likewise.
9260 * expression.h (parse_expression_for_completion): Change
9262 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9264 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9265 * infrun.c (handle_completer): Make "text" and "word" parameters
9267 * interps.c (interpreter_completer): Make "text" and "word"
9269 * language.h (struct language_defn)
9270 <la_make_symbol_completion_list>: Make "text" and "word"
9272 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9273 (parse_exp_in_context): Rename to ...
9274 (parse_exp_in_context_1): ... this.
9275 (parse_exp_in_context): Reimplement, with const hack from
9277 (parse_expression_for_completion): Make "string" parameter const.
9278 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9279 to pointer to const char. Adjust.
9280 (print_command_1): Make "exp" parameter const.
9281 (output_command): Rename to ...
9282 (output_command_const): ... this. Make "exp" parameter const.
9283 (output_command): Reimplement.
9284 (x_command): Adjust.
9285 (display_command): Rename "exp" parameter to "arg". New "exp"
9286 local, const version of "arg".
9287 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9288 "cmd_name" local const.
9289 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9291 (cmdpy_completer): Make "text" and "word" parameters const.
9292 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9293 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9295 * remote.c (_initialize_remote): Make "cmd_name" local const.
9296 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9297 parameters const. Adjust.
9298 (completion_list_add_fields): Make "sym_text", "text" and "word"
9300 (struct add_name_data) <sym_text, text, word>: Make fields const.
9301 (default_make_symbol_completion_list_break_on): Make "text" and
9302 "word" parameters const. Adjust locals.
9303 (default_make_symbol_completion_list)
9304 (make_symbol_completion_list, make_symbol_completion_type)
9305 (make_symbol_completion_list_fn): Make "text" and "word"
9307 (make_file_symbol_completion_list): Make "text", "word" and
9308 "srcfile" parameters const. Adjust locals.
9309 (add_filename_to_list): Make "text" and "word" parameters const.
9310 (struct add_partial_filename_data) <text, word>: Make fields
9312 (make_source_files_completion_list): Make "text" and "word"
9314 * symtab.h (default_make_symbol_completion_list_break_on)
9315 (default_make_symbol_completion_list, make_symbol_completion_list)
9316 (make_symbol_completion_type enum type_code)
9317 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9318 (make_source_files_completion_list): Change prototype.
9319 * top.c (execute_command): Adjust to pass pointer to pointer to
9320 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9322 (set_verbose): Make "cmdname" local const.
9323 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9325 (validate_actionline): Make "line" parameter a pointer to const
9327 (encode_actions_1): Make "action_exp" local const, and adjust.
9328 (encode_actions): Adjust.
9329 (replace_comma): Delete.
9330 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9331 const, and adjust. Don't frob the action string while splitting
9332 it at commas. Instead, make a copy of each split substring in
9334 (trace_dump_command): Adjust to validate_actionline prototype
9336 * tracepoint.h (decode_agent_options, decode_agent_options)
9337 (encode_actions, validate_actionline): Change prototypes.
9338 * valprint.h (output_command): Delete declaration.
9339 (output_command_const): Declare.
9340 * value.c (function_destroyer): Cast const away in xfree call.
9342 2013-03-13 Pedro Alves <palves@redhat.com>
9344 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9345 rather than casting 'const char * const *' to 'const char **'.
9346 * ada-lex.l (processInt): Make "trailer" local const. Remove
9347 'const char **' cast.
9348 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9349 locals, and use those as strtol output pointer, instead than doing
9350 invalid casts to from 'const char **' to 'char **'.
9351 (_initialize_demangle): Remove cast.
9352 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9353 locals, and use those as strtol output pointer, instead than doing
9354 invalid casts to from 'const char **' to 'char **'.
9355 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9357 * stap-probe.c (stap_parse_register_operand)
9358 (stap_parse_single_operand): Likewise.
9360 2013-03-13 Yao Qi <yao@codesourcery.com>
9362 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9363 the last matched 'V' blcok in trace frame.
9365 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9367 * NEWS: Create a new section for the next release branch.
9368 Rename the section of the current branch, now that it has
9371 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9373 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9374 * version.in: Bump version to 7.6.50.20130312-cvs.
9376 2013-03-12 Keith Seitz <keiths@redhat.com>
9378 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9379 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9380 Remove temporary copy of input string.
9381 (mi_execute_command_wrapper): Make "cmd" const.
9382 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9383 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9385 (mi_parse): Make "cmd" const.
9387 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9389 2013-03-12 Keith Seitz <keiths@redhat.com>
9391 * ada-lang.c (ada_read_renaming_var_value): Pass const
9392 pointer to expression string to parse_exp_1.
9393 (create_excep_cond_exprs): Likewise.
9394 * ax-gdb.c (agent_eval_command_one): Likewise.
9395 (maint_agent_printf_command): Likewise.
9396 Constify much of the string handling/parsing.
9397 * breakpoint.c (set_breakpoint_condition): Pass const
9398 pointer to expression string to parse_exp_1.
9399 (update_watchpoint): Likewise.
9400 (parse_cmd_to_aexpr): Constify string handling.
9401 Pass const pointer to parse_exp_1.
9402 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9403 (find_condition_and_thread): Likewise.
9405 (watch_command_1): Make "arg" const.
9406 Constify string handling.
9407 Copy the expression string instead of changing the input
9409 (update_breakpoint_location): Pass const pointer to
9411 * eval.c (parse_and_eval_address): Make "exp" const.
9412 (parse_to_comma_and_eval): Make "expp" const.
9413 (parse_and_eval): Make "exp" const.
9414 * expression.h (parse_expression): Make argument const.
9415 (parse_exp_1): Make first argument const.
9416 * findcmd.c (parse_find_args): Treat "args" as const.
9417 * linespec.c (parse_linespec): Pass const pointer to
9418 linespec_expression_to_pc.
9419 (linespec_expression_to_pc): Make "exp_ptr" const.
9420 * parse.c (parse_exp_1): Make "stringptr" const.
9421 Make a copy of the expression to pass to parse_exp_in_context until
9422 this whole interface can be constified.
9423 (parse_expression): Make "string" const.
9424 * printcmd.c (ui_printf): Treat "arg" as const.
9425 Handle const strings.
9426 * tracepoint.c (validate_actionline): Pass const pointer to
9427 all calls to parse_exp_1.
9428 (encode_actions_1): Likewise.
9429 * value.h (parse_to_comma_and_eval): Make argument const.
9430 (parse_and_eval_address): Likewise.
9431 (parse_and_eval): Likewise.
9432 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9433 (varobj_set_value): Likewise.
9434 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9435 constify string handling.
9436 Pass const pointers to parse_and_eval_address and
9437 parse_to_comman_and_eval.
9438 * cli/cli-utils.c (skip_to_space): Rename to ...
9439 (skip_to_space_const): ... this. Handle const strings.
9440 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9441 skip_to_space_const.
9442 (skip_to_space_const): Declare.
9443 * common/format.c (parse_format_string): Make "arg" const.
9444 Handle const strings.
9445 * common/format.h (parse_format_string): Make "arg" const.
9446 * gdbserver/ax.c (ax_printf): Make "format" const.
9447 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9448 of the expression string.
9450 2013-03-12 Hui Zhu <hui@codesourcery.com>
9452 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9454 2013-03-12 Yao Qi <yao@codesourcery.com>
9455 Hui Zhu <hui@codesourcery.com>
9457 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9458 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9461 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9463 * ada-lex.l (rules): Only recognize 'thread' as a
9464 delimiter when followed by numerals, as for c-exp.y.
9465 Use new rewind_to_char function to rewind the input for
9466 expression-delimiting tokens.
9467 (rewind_to_char): New function.
9469 2013-03-11 Pedro Alves <palves@redhat.com>
9470 Jan Kratochvil <jan.kratochvil@redhat.com>
9472 * configure: Regenerate.
9473 * configure.ac (check dynamic export flag): Link python test with
9476 2013-03-11 Doug Evans <dje@google.com>
9477 Keith Seitz <keiths@redhat.com>
9479 * linespec.c (find_linespec_symbols): Call find_function_symbols
9480 first, and then call lookup_prefix_sym/find_method.
9482 2013-03-11 Pedro Alves <palves@redhat.com>
9484 * charset.c (convert_between_encodings): Don't cast between
9485 different pointer to pointer types. Instead, make the 'inp' local
9486 be of the type iconv expects.
9487 (wchar_iterate): Don't cast between different pointer to pointer
9488 types. Instead, use new pointer local of the type iconv expects.
9489 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9490 Add new local of type char pointer, and use it to get a
9491 char/string view of the byte buffer, instead of casting between
9492 pointer to pointer types.
9494 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9496 * remote.c (remote_set_trace_buffer_size): Move != operator
9497 to the start of next line to fix an ARI warning.
9499 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9501 * NEWS: Add record changes.
9503 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9505 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9506 the instruction history disassembly.
9507 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9508 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9510 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9512 * Makefile.in (SFILES): Add record-btrace.c
9513 (COMMON_OBS): Add record-btrace.o
9514 * record-btrace.c: New.
9515 * objfiles.c: Include btrace.h.
9516 (free_objfile): call btrace_free_objfile.
9518 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9520 * target.c (target_call_history, target_call_history_from,
9521 target_call_history_range): New.
9522 * target.h (target_ops) <to_call_history, to_call_history_from,
9523 to_call_history_range>: New fields.
9524 (target_call_history, target_call_history_from,
9525 target_call_history_range): New declaration.
9526 * record.c (get_call_history_modifiers, cmd_record_call_history,
9527 record_call_history_size): New.
9528 (_initialize_record): Add the "record function-call-history" command.
9529 Add "set/show record function-call-history-size" commands.
9530 * record.h (record_print_flag): New.
9532 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9534 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9535 to_insn_history_range>: New fields.
9536 (target_insn_history): New.
9537 (target_insn_history_from): New.
9538 (target_insn_history_range): New.
9539 * target.c (target_insn_history): New.
9540 (target_insn_history_from): New.
9541 (target_insn_history_range): New.
9542 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9543 (record_insn_history_size): New.
9544 (get_insn_number): New.
9545 (get_context_size): New.
9547 (get_insn_history_modifiers): New.
9548 (cmd_record_insn_history): New.
9549 (_initialize_record): Add "set/show record instruction-history-size"
9550 command. Add "record instruction-history" command.
9552 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9554 * record.h (record_disconnect): New.
9555 (record_detach): New.
9556 (record_mourn_inferior): New.
9558 * record-full.c (record_disconnect, record_detach,
9559 record_mourn_inferior, record_kill): Move to...
9560 * record.c: ...here.
9563 (record_unpush): New.
9564 (cmd_record_stop): Call record_stop. Replace unpush_target
9565 call with record_unpush call.
9566 (record_disconnect, record_detach): Assert that the target
9567 is of record stratum. Call record_unpush, record_stop, and
9569 (record_mourn_inferior, record_kill): Assert that the target
9570 is of record stratum. Call record_unpush and DEBUG.
9572 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9574 * record-full.h, record-full.c (record_memory_query): Rename
9576 (record_full_memory_query): ...this. Update all users.
9577 (record_arch_list_add_reg): Rename to ...
9578 (record_full_arch_list_add_reg): ...this. Update all users.
9579 (record_arch_list_add_mem): Rename to ...
9580 (record_full_arch_list_add_mem): ...this. Update all users.
9581 (record_arch_list_add_end): Rename to ...
9582 (record_full_arch_list_add_end): ...this. Update all users.
9583 (record_gdb_operation_disable_set): Rename to ...
9584 (record_full_gdb_operation_disable_set): ...this.
9587 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9589 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9590 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9591 (RECORD_IS_REPLAY): Renamed to ...
9592 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9593 (RECORD_FILE_MAGIC): Renamed to ...
9594 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9595 (record_mem_entry): Renamed to ...
9596 (record_full_mem_entry): ... this. Updated all users.
9597 (record_reg_entry): Renamed to ...
9598 (record_full_reg_entry): ... this. Updated all users.
9599 (record_end_entry): Renamed to ...
9600 (record_full_end_entry): ... this. Updated all users.
9601 (record_type) <record_end, record_reg, record_mem>: Renamed
9603 (record_full_type) <record_full_end, record_full_reg,
9604 record_full_mem>: ... this. Updated all users.
9605 (record_entry): Renamed to ...
9606 (record_full_entry): ... this. Updated all users.
9607 (record_core_buf_entry): Renamed to ...
9608 (record_full_core_buf_entry): ... this. Updated all users.
9609 (record_core_regbuf): Renamed to ...
9610 (record_full_core_regbuf): ... this. Updated all users.
9611 (record_core_start): Renamed to ...
9612 (record_full_core_start): ... this. Updated all users.
9613 (record_core_end): Renamed to ...
9614 (record_full_core_end): ... this. Updated all users.
9615 (record_core_buf_list): Renamed to ...
9616 (record_full_core_buf_list): ... this. Updated all users.
9617 (record_first): Renamed to ...
9618 (record_full_first): ... this. Updated all users.
9619 (record_list): Renamed to ...
9620 (record_full_list): ... this. Updated all users.
9621 (record_arch_list_head): Renamed to ...
9622 (record_full_arch_list_head): ... this. Updated all users.
9623 (record_arch_list_tail): Renamed to ...
9624 (record_full_arch_list_tail): ... this. Updated all users.
9625 (record_stop_at_limit): Renamed to ...
9626 (record_full_stop_at_limit): ... this. Updated all users.
9627 (record_insn_max_num): Renamed to ...
9628 (record_full_insn_max_num): ... this. Updated all users.
9629 (record_insn_num): Renamed to ...
9630 (record_full_insn_num): ... this. Updated all users.
9631 (record_insn_count): Renamed to ...
9632 (record_full_insn_count): ... this. Updated all users.
9633 (record_ops): Renamed to ...
9634 (record_full_ops): ... this. Updated all users.
9635 (record_core_ops): Renamed to ...
9636 (record_full_core_ops): ... this. Updated all users.
9637 (set_record_cmdlist): Renamed to ...
9638 (set_record_full_cmdlist): ... this. Updated all users.
9639 (show_record_cmdlist): Renamed to ...
9640 (show_record_full_cmdlist): ... this. Updated all users.
9641 (record_cmdlist): Renamed to ...
9642 (record_full_cmdlist): ... this. Updated all users.
9643 (record_beneath_to_resume_ops): Renamed to ...
9644 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9645 (record_beneath_to_resume): Renamed to ...
9646 (record_full_beneath_to_resume): ... this. Updated all users.
9647 (record_beneath_to_wait_ops): Renamed to ...
9648 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9649 (record_beneath_to_wait): Renamed to ...
9650 (record_full_beneath_to_wait): ... this. Updated all users.
9651 (record_beneath_to_store_registers_ops): Renamed to ...
9652 (record_full_beneath_to_store_registers_ops): ... this.
9654 (record_beneath_to_store_registers): Renamed to ...
9655 (record_full_beneath_to_store_registers): ... this.
9657 (record_beneath_to_xfer_partial_ops): Renamed to ...
9658 (record_full_beneath_to_xfer_partial_ops): ... this.
9660 (record_beneath_to_xfer_partial): Renamed to ...
9661 (record_full_beneath_to_xfer_partial): ... this.
9663 (record_beneath_to_insert_breakpoint): Renamed to ...
9664 (record_full_beneath_to_insert_breakpoint): ... this.
9666 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9667 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9669 (record_beneath_to_stopped_data_address): Renamed to ...
9670 (record_full_beneath_to_stopped_data_address): ... this.
9672 (record_beneath_to_async): Renamed to ...
9673 (record_full_beneath_to_async): ... this. Updated all users.
9674 (record_goto_insn): Renamed to ...
9675 (record_full_goto_insn): ... this. Updated all users.
9676 (record_save): Renamed to ...
9677 (record_full_save): ... this. Updated all users.
9678 (record_reg_alloc): Renamed to ...
9679 (record_full_reg_alloc): ... this. Updated all users.
9680 (record_reg_release): Renamed to ...
9681 (record_full_reg_release): ... this. Updated all users.
9682 (record_mem_alloc): Renamed to ...
9683 (record_full_mem_alloc): ... this. Updated all users.
9684 (record_mem_release): Renamed to ...
9685 (record_full_mem_release): ... this. Updated all users.
9686 (record_end_alloc): Renamed to ...
9687 (record_full_end_alloc): ... this. Updated all users.
9688 (record_end_release): Renamed to ...
9689 (record_full_end_release): ... this. Updated all users.
9690 (record_entry_release): Renamed to ...
9691 (record_full_entry_release): ... this. Updated all users.
9692 (record_list_release): Renamed to ...
9693 (record_full_list_release): ... this. Updated all users.
9694 (record_list_release_following): Renamed to ...
9695 (record_full_list_release_following): ... this.
9697 (record_list_release_first): Renamed to ...
9698 (record_full_list_release_first): ... this. Updated all users.
9699 (record_arch_list_add): Renamed to ...
9700 (record_full_arch_list_add): ... this. Updated all users.
9701 (record_get_loc): Renamed to ...
9702 (record_full_get_loc): ... this. Updated all users.
9703 (record_check_insn_num): Renamed to ...
9704 (record_full_check_insn_num): ... this. Updated all users.
9705 (record_arch_list_cleanups): Renamed to ...
9706 (record_full_arch_list_cleanups): ... this. Updated all users.
9707 (record_message): Renamed to ...
9708 (record_full_message): ... this. Updated all users.
9709 (record_message_wrapper): Renamed to ...
9710 (record_full_message_wrapper): ... this. Updated all users.
9711 (record_message_wrapper_safe): Renamed to ...
9712 (record_full_message_wrapper_safe): ... this. Updated all users.
9713 (record_gdb_operation_disable): Renamed to ...
9714 (record_full_gdb_operation_disable): ... this. Updated all users.
9715 (record_hw_watchpoint): Renamed to ...
9716 (record_full_hw_watchpoint): ... this. Updated all users.
9717 (record_exec_insn): Renamed to ...
9718 (record_full_exec_insn): ... this. Updated all users.
9719 (record_restore): Renamed to ...
9720 (record_full_restore): ... this. Updated all users.
9721 (record_async_inferior_event_token): Renamed to ...
9722 (record_full_async_inferior_event_token): ... this.
9724 (record_async_inferior_event_handler): Renamed to ...
9725 (record_full_async_inferior_event_handler): ... this.
9727 (record_core_open_1): Renamed to ...
9728 (record_full_core_open_1): ... this. Updated all users.
9729 (record_open_1): Renamed to ...
9730 (record_full_open_1): ... this. Updated all users.
9731 (record_open): Renamed to ...
9732 (record_full_open): ... this. Updated all users.
9733 (record_close): Renamed to ...
9734 (record_full_close): ... this. Updated all users.
9735 (record_resume_step): Renamed to ...
9736 (record_full_resume_step): ... this. Updated all users.
9737 (record_resumed): Renamed to ...
9738 (record_full_resumed): ... this. Updated all users.
9739 (record_execution_dir): Renamed to ...
9740 (record_full_execution_dir): ... this. Updated all users.
9741 (record_resume): Renamed to ...
9742 (record_full_resume): ... this. Updated all users.
9743 (record_get_sig): Renamed to ...
9744 (record_full_get_sig): ... this. Updated all users.
9745 (record_sig_handler): Renamed to ...
9746 (record_full_sig_handler): ... this. Updated all users.
9747 (record_wait_cleanups): Renamed to ...
9748 (record_full_wait_cleanups): ... this. Updated all users.
9749 (record_wait_1): Renamed to ...
9750 (record_full_wait_1): ... this. Updated all users.
9751 (record_wait): Renamed to ...
9752 (record_full_wait): ... this. Updated all users.
9753 (record_stopped_by_watchpoint): Renamed to ...
9754 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9755 (record_disconnect): Renamed to ...
9756 (record_full_disconnect): ... this. Updated all users.
9757 (record_detach): Renamed to ...
9758 (record_full_detach): ... this. Updated all users.
9759 (record_mourn_inferior): Renamed to ...
9760 (record_full_mourn_inferior): ... this. Updated all users.
9761 (record_kill): Renamed to ...
9762 (record_full_kill): ... this. Updated all users.
9763 (record_stopped_data_address): Renamed to ...
9764 (record_full_stopped_data_address): ... this. Updated all users.
9765 (record_registers_change): Renamed to ...
9766 (record_full_registers_change): ... this. Updated all users.
9767 (record_store_registers): Renamed to ...
9768 (record_full_store_registers): ... this. Updated all users.
9769 (record_xfer_partial): Renamed to ...
9770 (record_full_xfer_partial): ... this. Updated all users.
9771 (record_breakpoint): Renamed to ...
9772 (record_full_breakpoint): ... this. Updated all users.
9773 (record_breakpoint_p): Renamed to ...
9774 (record_full_breakpoint_p): ... this. Updated all users.
9775 (record_breakpoints): Renamed to ...
9776 (record_full_breakpoints): ... this. Updated all users.
9777 (record_sync_record_breakpoints): Renamed to ...
9778 (record_full_sync_record_breakpoints): ... this.
9780 (record_init_record_breakpoints): Renamed to ...
9781 (record_full_init_record_breakpoints): ... this.
9783 (record_insert_breakpoint): Renamed to ...
9784 (record_full_insert_breakpoint): ... this. Updated all users.
9785 (record_remove_breakpoint): Renamed to ...
9786 (record_full_remove_breakpoint): ... this. Updated all users.
9787 (record_can_execute_reverse): Renamed to ...
9788 (record_full_can_execute_reverse): ... this. Updated all users.
9789 (record_get_bookmark): Renamed to ...
9790 (record_full_get_bookmark): ... this. Updated all users.
9791 (record_goto_bookmark): Renamed to ...
9792 (record_full_goto_bookmark): ... this. Updated all users.
9793 (record_async): Renamed to ...
9794 (record_full_async): ... this. Updated all users.
9795 (record_can_async_p): Renamed to ...
9796 (record_full_can_async_p): ... this. Updated all users.
9797 (record_is_async_p): Renamed to ...
9798 (record_full_is_async_p): ... this. Updated all users.
9799 (record_execution_direction): Renamed to ...
9800 (record_full_execution_direction): ... this. Updated all users.
9801 (record_info): Renamed to ...
9802 (record_full_info): ... this. Updated all users.
9803 (record_delete): Renamed to ...
9804 (record_full_delete): ... this. Updated all users.
9805 (record_is_replaying): Renamed to ...
9806 (record_full_is_replaying): ... this. Updated all users.
9807 (record_goto_entry): Renamed to ...
9808 (record_full_goto_entry): ... this. Updated all users.
9809 (record_goto_begin): Renamed to ...
9810 (record_full_goto_begin): ... this. Updated all users.
9811 (record_goto_end): Renamed to ...
9812 (record_full_goto_end): ... this. Updated all users.
9813 (record_goto): Renamed to ...
9814 (record_full_goto): ... this. Updated all users.
9815 (init_record_ops): Renamed to ...
9816 (init_record_full_ops): ... this. Updated all users.
9817 (record_core_resume): Renamed to ...
9818 (record_full_core_resume): ... this. Updated all users.
9819 (record_core_kill): Renamed to ...
9820 (record_full_core_kill): ... this. Updated all users.
9821 (record_core_fetch_registers): Renamed to ...
9822 (record_full_core_fetch_registers): ... this. Updated all users.
9823 (record_core_prepare_to_store): Renamed to ...
9824 (record_full_core_prepare_to_store): ... this. Updated all users.
9825 (record_core_store_registers): Renamed to ...
9826 (record_full_core_store_registers): ... this. Updated all users.
9827 (record_core_xfer_partial): Renamed to ...
9828 (record_full_core_xfer_partial): ... this. Updated all users.
9829 (record_core_insert_breakpoint): Renamed to ...
9830 (record_full_core_insert_breakpoint): ... this. Updated all users.
9831 (record_core_remove_breakpoint): Renamed to ...
9832 (record_full_core_remove_breakpoint): ... this. Updated all users.
9833 (record_core_has_execution): Renamed to ...
9834 (record_full_core_has_execution): ... this. Updated all users.
9835 (init_record_core_ops): Renamed to ...
9836 (init_record_full_core_ops): ... this. Updated all users.
9837 (cmd_record_restore): Renamed to ...
9838 (cmd_record_full_restore): ... this. Updated all users.
9839 (record_save_cleanups): Renamed to ...
9840 (record_full_save_cleanups): ... this. Updated all users.
9841 (cmd_record_start): Renamed to ...
9842 (cmd_record_full_start): ... this. Updated all users.
9843 (set_record_insn_max_num): Renamed to ...
9844 (set_record_full_insn_max_num): ... this. Updated all users.
9845 (set_record_command): Renamed to ...
9846 (set_record_full_command): ... this. Updated all users.
9847 (show_record_command): Renamed to ...
9848 (show_record_full_command): ... this. Updated all users.
9849 (_initialize_record): Renamed to ...
9850 (_initialize_record_full): ... this. Updated all users.
9852 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9854 * record.h: Split into this and ...
9855 * record-full.h: ... this.
9856 * record.c: Split into this and ...
9857 * record-full.c: ... this.
9858 * target.h (target_ops): Add new fields to_info_record,
9859 to_save_record, to_delete_record, to_record_is_replaying,
9860 to_goto_record_begin, to_goto_record_end, to_goto_record.
9861 (target_info_record): New.
9862 (target_save_record): New.
9863 (target_supports_delete_record): New.
9864 (target_delete_record): New.
9865 (target_record_is_replaying): New.
9866 (target_goto_record_begin): New.
9867 (target_goto_record_end): New.
9868 (target_goto_record): New.
9869 * target.c (target_info_record): New.
9870 (target_save_record): New.
9871 (target_supports_delete_record): New.
9872 (target_delete_record): New.
9873 (target_record_is_replaying): New.
9874 (target_goto_record_begin): New.
9875 (target_goto_record_end): New.
9876 (target_goto_record): New.
9877 * record.h: Declare struct cmd_list_element.
9878 (record_cmdlist): New declaration.
9879 (set_record_cmdlist): New declaration.
9880 (show_record_cmdlist): New declaration.
9881 (info_record_cmdlist): New declaration.
9882 (cmd_record_goto): New declaration.
9883 * record.c: Remove unnecessary includes.
9885 (cmd_record_goto): Remove declaration.
9886 (record_cmdlist): Now extern. Initialize.
9887 (set_record_cmdlist): Now extern. Initialize.
9888 (show_record_cmdlist): Now extern. Initialize.
9889 (info_record_cmdlist): Now extern. Initialize.
9890 (find_record_target): New.
9891 (require_record_target): New.
9892 (cmd_record_start): Update.
9893 (cmd_record_delete): Remove target-specific code.
9894 Call target_delete_record.
9895 (cmd_record_stop): Unpush any record target.
9896 (set_record_insn_max_num): Move to record-full.c
9897 (set_record_command): Add comment.
9898 (show_record_command): Add comment.
9899 (info_record_command): Update comment.
9900 Remove target-specific code.
9901 Call the record target's to_info_record.
9902 (cmd_record_start): New.
9903 (cmd_record_goto): Now extern.
9904 Remove target-specific code.
9905 Call target_goto_begin, target_goto_end, or target_goto.
9906 (_initialize_record): Move record target ops initialization to
9908 Change "record" command help text.
9909 Move "record restore", "record set", and "record show" commands to
9911 * Makefile.in (SFILES): Add record-full.c.
9912 (HFILES_NO_SRCDIR): Add record-full.h.
9913 (COMMON_OBS): Add record-full.o.
9914 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9915 * arm-tdep.c: Include record-full.h.
9916 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9917 * i386-tdep.c: Include record-full.h.
9918 * infrun.c: Include record-full.h.
9919 * linux-record.c: Include record-full.h.
9920 * moxie-tdep.c: Include record-full.h.
9921 * record-full.c: Include record-full.h.
9922 Change module comment.
9923 (set_record_full_cmdlist): New.
9924 (show_record_full_cmdlist): New.
9925 (record_full_cmdlist): New.
9926 (record_goto_insn): New declaration.
9927 (record_save): New declaration.
9928 (record_check_insn_num): Change query string.
9930 (record_delete): New.
9931 (record_is_replaying): New.
9932 (record_goto_entry): New.
9933 (record_goto_begin): New.
9934 (record_goto_end): New.
9936 (init_record_ops): Update.
9937 (init_record_core_ops): Update.
9938 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9939 (cmd_record_start): New.
9940 (set_record_insn_max_num): Moved from record.c
9941 (set_record_full_command): New.
9942 (show_record_full_command): New.
9943 (_initialize_record_full): New.
9945 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9947 * target.h (add_deprecated_target_alias): New.
9948 * target.c (add_deprecated_target_alias): New.
9950 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9952 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9954 (linux_supports_btrace): Add kernel and
9956 (kernel_supports_btrace): New function.
9957 (cpu_supports_btrace): New function.
9958 (intel_supports_btrace): New function.
9960 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9962 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9963 * remote.c: Include btrace.h.
9964 (struct btrace_target_info): New struct.
9965 (remote_supports_btrace): New function.
9966 (send_Qbtrace): New function.
9967 (remote_enable_btrace): New function.
9968 (remote_disable_btrace): New function.
9969 (remote_teardown_btrace): New function.
9970 (remote_read_btrace): New function.
9971 (init_remote_ops): Add btrace ops.
9972 (enum <unnamed>): Add btrace packets.
9973 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9974 (_initialize_remote): Add packet configuration for branch tracing.
9976 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9978 * features/btrace.dtd: New file.
9979 * Makefile.in (XMLFILES): Add btrace.dtd.
9980 * btrace.h (parse_xml_btrace): New declaration.
9981 * btrace.c: Include xml-support.h.
9982 (parse_xml_btrace): New function.
9983 (parse_xml_btrace_block): New function.
9984 (block_attributes): New struct.
9985 (btrace_attributes): New struct.
9986 (btrace_children): New struct.
9987 (btrace_elements): New struct.
9989 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9991 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9992 (amd64_linux_enable_btrace): New.
9993 (amd64_linux_disable_btrace): New.
9994 (amd64_linux_teardown_btrace): New.
9995 (_initialize_amd64_linux_nat): Initialize btrace ops.
9996 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9997 (i386_linux_enable_btrace): New.
9998 (i386_linux_disable_btrace): New.
9999 (i386_linux_teardown_btrace): New.
10000 (_initialize_i386_linux_nat): Initialize btrace ops.
10001 * config/i386/linux.mh: Add linux-btrace.o.
10002 * config/i386/linux64.mh: Add linux-btrace.o.
10004 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10006 * common/linux_btrace.h: New file.
10007 * common/linux_btrace.c: New file.
10008 * Makefile.in (SFILES): Add btrace.c.
10009 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10010 (COMMON_OBS): Add btrace.o.
10011 (linux-btrace.o): New rule.
10013 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10015 * target.h: Include btrace.h.
10016 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10017 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10018 * target.c (target_supports_btrace): New function.
10019 (target_enable_btrace): New function.
10020 (target_disable_btrace): New function.
10021 (target_teardown_btrace): New function.
10022 (target_read_btrace): New function.
10023 * btrace.h: New file.
10024 * btrace.c: New file.
10025 * Makefile.in: Add btrace.c.
10026 * gdbthread.h: Include btrace.h.
10027 (struct thread_info): Add btrace field.
10028 * thread.c: Include btrace.h.
10029 (clear_thread_inferior_resources): Call target_teardown_btrace.
10030 * common/btrace-common.h: New file.
10032 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10034 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10035 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10036 kill_status to outer block.
10038 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10040 Fix entry-values if the callee called a noreturn function.
10041 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10042 get_frame_address_in_block. Add new comment.
10044 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10046 Fix entry-values in C++ across CUs.
10047 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10048 lookup_minimal_symbol. Add a comment.
10050 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10051 DW_AT_linkage_name.
10053 2013-03-08 Yao Qi <yao@codesourcery.com>
10055 * tracepoint.c (_initialize_tracepoint): Indent the code.
10057 2013-03-08 Pedro Alves <palves@redhat.com>
10059 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10060 (parse_find_args, find_command): Change type of pattern buffer
10061 locals to 'gdb_byte *'.
10063 2013-03-08 Stan Shebs <stan@codesourcery.com>
10064 Hafiz Abid Qadeer <abidh@codesourcery.com>
10066 * NEWS: Mention set and show trace-buffer-size commands.
10067 Mention new packet.
10068 * target.h (struct target_ops): New method
10069 to_set_trace_buffer_size.
10070 (target_set_trace_buffer_size): New macro.
10071 * target.c (update_current_target): Set up new method.
10072 * tracepoint.c (trace_buffer_size): New global.
10073 (start_tracing): Send it to the target.
10074 (set_trace_buffer_size): New function.
10075 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10076 * remote.c (remote_set_trace_buffer_size): New function.
10077 (_initialize_remote): Use it.
10078 (QTBuffer:size) New remote command.
10079 (PACKET_QTBuffer_size): New enum.
10080 (remote_protocol_features): Add an entry for
10081 PACKET_QTBuffer_size.
10083 2013-03-08 Tom Tromey <tromey@redhat.com>
10085 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10088 2013-03-07 Pedro Alves <palves@redhat.com>
10090 * target.c (target_read_stralloc, target_fileio_read_alloc):
10091 *Cast pointer to 'gdb_byte *' in target call.
10093 2013-03-07 Pedro Alves <palves@redhat.com>
10095 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10098 2013-03-07 Keith Seitz <keiths@redhat.com>
10100 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10101 (trace_pass_command): Likewise.
10102 * cli/cli-cmds.c: Include cli/cli-utils.h.
10103 (source_command): Use skip-spaces.
10104 (disassemble_command): Likewise.
10105 * findcmd.c: Include cli/cli-utils.h.
10106 (parse_find_args): Use skip_spaces.
10107 * go32-nat.c: Include cli/cli-utils.h.
10108 (go32_sldt): Use skip_spaces.
10109 (go32_sgdt): Likewise.
10110 (go32_sidt): Likewise.
10111 (go32_pde): Likewise.
10112 (go32_pte): Likewise.
10113 (go32_pte_for_address): Likewise.
10114 * infcmd.c: Include cli/cli-utils.h.
10115 (registers_info): Use skip_spaces.
10116 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10117 (linux_info_proc): Likewise.
10118 * linux-thread-db.c: Include cli/cli-utils.h.
10119 (info_auto_load_libthread_db): Use skip_spaces_const.
10120 * m32r-rom.c: Include cli/cli-utils.h.
10121 (m32r_upload_command): Use skip_spaces.
10122 * maint.c: Include cli/cli-utils.h.
10123 (maintenance_translate_address): Use skip_spaces.
10124 * mi/mi-parse.c: Include cli/cli-utils.h.
10125 (mi_parse_argv): Use skip_spaces.
10126 (mi_parse): Likewise.
10127 * minsyms.c: Include cli/cli-utils.h.
10128 (msymbol_hash_iw): Use skip_spaces_const.
10129 * objc-lang.c: Include cli/cli-utils.h.
10130 (parse_selector): Use skip_spaces.
10131 (parse_method): Likewise.
10132 * python/python.c: Include cli/cli-utils.h.
10133 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10134 (python_command)[HAVE_PYTHON]: Likewise.
10135 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10136 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10137 (m32r_load): Use skip_spaces.
10138 * serial.c: Include cli/cli-utils.h.
10139 (serial_open): Use skip_spaces_const.
10140 * stack.c: Include cli/cli-utils.h.
10141 (parse_frame_specification_1): Use skip_spaces_const.
10142 * symfile.c: Include cli/cli-utils.h.
10143 (set_ext_lang_command): Use skip_spaces.
10144 * symtab.c: Include cli/cli-utils.h.
10145 (rbreak_command): Use skip_spaces.
10146 * thread.c (thread_name_command): Use skip_spaces.
10147 * tracepoint.c (validate_actionline): Use skip_spaces.
10148 (encode_actions_1): Likewise.
10149 (trace_find_range_command): Likewise.
10150 (trace_find_outside_command): Likewise.
10151 (trace_dump_actions): Likewise.
10153 2013-03-07 Pedro Alves <palves@redhat.com>
10155 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10156 * expprint.c (print_subexp_standard): Likewise.
10157 * utils.c (host_char_to_target): Likewise.
10158 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10159 * varobj.c (value_get_print_value): Change type of local to char*.
10160 Cast it gdb_byte * in call to language printer.
10162 2013-03-07 Pedro Alves <palves@redhat.com>
10164 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10166 (make_wchar_iterator): Remove cast to char*.
10167 (wchar_iterate): Change type of local.
10169 2013-03-07 Pedro Alves <palves@redhat.com>
10171 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10172 for 'regcache->register_status'.
10174 2013-03-07 Pedro Alves <palves@redhat.com>
10176 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10179 2013-03-07 Pedro Alves <palves@redhat.com>
10181 * stap-probe.c (handle_stap_probe): Add cast to char*.
10183 2013-03-07 Pedro Alves <palves@redhat.com>
10185 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10186 RECORD_MSGRCV>: Pass a signed variable to
10187 regcache_raw_read_signed, instead of an unsigned one.
10189 2013-03-07 Pedro Alves <palves@redhat.com>
10191 * remote-notif.c (notif_debug): Change type to int.
10192 * remote-notif.h (notif_debug): Likewise.
10194 2013-03-07 Pedro Alves <palves@redhat.com>
10196 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10198 2013-03-07 Pedro Alves <palves@redhat.com>
10200 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10201 * remote.h (hex2bin, bin2hex): ... here.
10202 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10204 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10206 * utils.c (initialize_utils): Improve doc strings of "set/show
10207 width", "set/show height", and "set/show pagination".
10209 2013-03-06 Keith Seitz <keiths@redhat.com>
10211 * ax-gdb.c (gen_printf): Make FORMAT const.
10212 * ax-gdb.h (gen_printf): Likewise.
10213 * ax-general.c (ax_string): Make STR const.
10214 * ax.h (ax_string): Likewise.
10216 2013-03-06 Doug Evans <dje@google.com>
10218 * elfread.c (elf_symfile_read): Move debugging printf to more
10221 2013-03-06 Pedro Alves <palves@redhat.com>
10223 * python/py-utils.c (target_string_to_unicode): Delete function.
10224 * python/python-internal.h (target_string_to_unicode): Delete
10227 2013-03-06 Pierre Muller <muller@sourceware.org>
10229 * linespec.c (get_current_search_block): ARI fix, use (void)
10230 for empty parameter list.
10232 2013-03-05 Doug Evans <dje@google.com>
10234 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10235 of old ada_lookup_symbol_list. In !full_search case, don't
10236 search superblocks.
10237 (ada_lookup_symbol_list): Delete arg full_search, all callers
10238 updated. Call ada_lookup_symbol_list_worker.
10239 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10240 * ada-lang.h (ada_lookup_symbol_list): Update.
10241 * language.h (language_defn): Update comment for
10242 la_iterate_over_symbols.
10243 * linespec.c (iterate_over_file_blocks): New function.
10244 (iterate_over_all_matching_symtabs): Call it.
10245 (lookup_prefix_sym): Ditto.
10246 (get_current_search_block): New function.
10247 (get_search_block): Delete.
10248 (find_label_symbols): Call get_current_search_block.
10249 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10250 * symtab.c (iterate_over_symbols): Don't search superblocks.
10252 2013-03-05 Yao Qi <yao@codesourcery.com>
10254 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10255 parameter VAR's type from "unsigned int" to "int".
10256 * command.h (var_zuinteger_unlimited): Update its comments.
10257 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10259 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10261 * NEWS: Mention new target x86_64-*-cygwin*.
10263 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10265 * configure.host: Add x86_64-*-cygwin* as host.
10266 * configure.tgt: Add x86_64-*-cygwin* as target.
10267 * config/i386/cygwin64.mh: New file.
10269 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10271 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10273 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10275 * linespec.c (struct linespec_canonical_name): New.
10276 (struct linespec_state): Change canonical_names type to it.
10277 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10278 xrealloc element size. Initialize the different CANONICAL fields.
10279 (canonical_to_fullform): New.
10280 (filter_results): Use it. Add variables canonical, fullform and
10282 (struct decode_line_2_item, decode_line_2_compare_items): New.
10283 (decode_line_2): Remove variables iter and item_names, add variables
10284 items and items_count. Modify the code for these new variables.
10286 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10288 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10289 calling do_cleanup.
10291 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10293 * tracepoint.c (build_traceframe_info): Add code for byte order.
10295 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10297 * v850-tdep.c: (v850e2_register_name): Revise system register
10298 names to match current V850E2M architecture specifications.
10299 Update register number enum comments too.
10301 2013-03-01 Jiong Wang <jiwang@tilera.com>
10302 Pedro Alves <palves@redhat.com>
10304 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10306 (tilegx_skip_prologue): Limit prologue analysis to section end.
10308 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10310 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10313 2013-03-01 Pedro Alves <palves@redhat.com>
10315 Use gdb_byte for bytes from the program being debugged.
10317 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10318 Change type of local 'buf' to gdb_byte.
10319 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10320 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10321 * cris-tdep.c (cris_sigcontext_addr)
10322 (cris_sigtramp_frame_unwind_cache): Likewise.
10323 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10324 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10326 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10327 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10328 (hppa32_hpux_search_dummy_call_sequence)
10329 (hppa_hpux_supply_save_state): Likewise.
10330 * hppa-linux-tdep.c (insns_match_pattern)
10331 (hppa_linux_find_global_pointer): Likewise.
10332 * hppa-tdep.c (hppa_in_function_epilogue_p)
10333 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10334 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10335 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10336 (i386fbsd_collect_uthread): Likewise.
10337 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10338 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10339 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10340 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10341 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10342 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10343 (ia64_libunwind_frame_prev_register)
10344 (ia64_libunwind_sigtramp_frame_this_id)
10345 (ia64_find_global_pointer_from_dynamic_section)
10346 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10347 (ia64_unwind_pc): Likewise.
10348 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10349 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10350 (m68hc11_extract_return_value): Likewise.
10351 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10352 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10353 (mep_get_insn, mep_push_dummy_call): Likewise.
10354 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10355 (mips_linux_in_dynsym_stub): Likewise.
10356 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10357 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10358 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10360 * remote-mips.c (mips_set_register): Likewise.
10361 * remote-sim.c (gdbsim_fetch_register): Likewise.
10362 * score-tdep.c (score7_fetch_inst): Change type of parameter
10363 'memblock' and local 'buf' to gdb_byte.
10364 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10365 Change type of local 'buf' to gdb_byte. Adjust.
10366 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10368 (score7_analyze_prologue): Change type of 'memblock' and
10369 'memblock_ptr' locals to gdb_byte*.
10370 * sh64-tdep.c (sh64_extract_return_value)
10371 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10372 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10373 * solib-pa64.c (pa64_solib_create_inferior_hook)
10374 (pa64_open_symbol_file_object): Remove local 'buf'.
10375 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10376 (som_open_symbol_file_object): Likewise.
10377 * solib-spu.c (spu_current_sos): Likewise.
10378 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10379 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10380 (spu_store_registers): Likewise.
10381 * target.c (debug_print_register): Likewise.
10382 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10383 * xstormy16-tdep.c (xstormy16_store_return_value)
10384 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10385 (xstormy16_find_jmp_table_entry): Likewise.
10387 2013-03-01 Jiong Wang <jiwang@tilera.com>
10389 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10390 (tilegx_gdbarch_init): Install it.
10392 2013-02-28 Tom Tromey <tromey@redhat.com>
10394 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10397 2013-02-28 Doug Evans <dje@google.com>
10399 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10400 * python/python.c (gdbpy_find_pc_line): Ditto.
10402 2013-02-28 Tom Tromey <tromey@redhat.com>
10404 * contrib/excheck.py: New file.
10405 * contrib/exsummary.py: New file.
10406 * contrib/gcc-with-excheck: New file.
10408 2013-02-28 Tom Tromey <tromey@redhat.com>
10410 * python/python.c (gdbpy_print_stack): Call begin_line and
10411 fprintf_filtered inside TRY_CATCH.
10413 2013-02-28 Tom Tromey <tromey@redhat.com>
10415 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10418 2013-02-28 Tom Tromey <tromey@redhat.com>
10420 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10421 frame_object_to_frame_info inside TRY_CATCH.
10423 2013-02-28 Tom Tromey <tromey@redhat.com>
10425 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10428 2013-02-28 Tom Tromey <tromey@redhat.com>
10430 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10432 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10434 * windows-nat.c: Throughout, fix format strings and casts of
10435 printf-like functions to avoid type related warnings on all
10437 (handle_output_debug_string): Fetch context information address
10438 from debug string using string_to_core_addr.
10440 2013-02-27 Jiong Wang <jiwang@tilera.com>
10442 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10443 * regformats/reg-tilegx32.dat: New.
10445 2013-02-27 Jiong Wang <jiwang@tilera.com>
10447 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10449 2013-02-27 Jiong Wang <jiwang@tilera.com>
10451 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10453 2013-02-27 Yao Qi <yao@codesourcery.com>
10454 Pedro Alves <palves@redhat.com>
10456 * tracepoint.c (tfile_trace_find): For tfind
10457 pc/tp/range/outside, look for the next trace frame instead of
10458 always starting from frame 0.
10460 2013-02-26 Anthony Green <green@moxielogic.com>
10462 * configure.tgt: Add support for moxie-*-rtems* target.
10464 2013-02-25 Pedro Alves <palves@redhat.com>
10466 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10469 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10471 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10472 if $fp is used as the virtual frame pointer.
10474 2013-02-23 Alan Modra <amodra@gmail.com>
10476 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10478 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10479 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10480 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10481 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10483 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10486 * elfread.c (build_id_bfd_get): Make the return type const.
10487 (build_id_verify): Make the check parameter const.
10488 (build_id_to_debug_filename): Make the build_id parameter and variable
10490 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10492 2013-02-21 Alan Modra <amodra@gmail.com>
10494 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10496 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10498 Add a new method 'disassemble' to gdb.Architecture class.
10499 * python/py-arch.c (archpy_disassmble): Implementation of the
10500 new method gdb.Architecture.disassemble.
10501 (arch_object_methods): Add entry for the new method.
10503 2013-02-20 Jiong Wang <jiwang@tilera.com>
10505 * MAINTAINERS (Write After Approval): Add myself to the list.
10507 2013-02-19 Pedro Alves <palves@redhat.com>
10509 Garbage collect 'struct monitor_ops'::load_routine.
10511 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10512 * monitor.c (monitor_load): No longer call
10513 current_monitor->load_routine.
10514 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10515 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10516 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10518 2013-02-19 Pedro Alves <palves@redhat.com>
10522 Harmonize with generic_load.
10524 * monitor.c: Include "readline/readline.h".
10525 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10526 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10527 long/strtol for the 'load_offset' local. Error out if no argument
10528 is given or if too many arguments are given. Tilde expand the
10529 passed in file name.
10531 2013-02-19 Kai Tietz <ktietz@redhat.com>
10534 * symfile.c (load_section_data): Change type of load_offset
10536 (generic_load): User strtoulst instead of strtoul for conversion
10539 2013-02-19 Jiong Wang <jiwang@tilera.com>
10541 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10542 for return address, "lr" register, saved on stack.
10543 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10544 after we invoke tilegx_analyze_prologue.
10546 2013-02-19 Jiong Wang <jiwang@tilera.com>
10548 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10550 2013-02-19 Jiong Wang <jiwang@tilera.com>
10552 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10554 2013-02-19 Jiong Wang <jiwang@tilera.com>
10556 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10557 (tilegx_write_pc): New function.
10558 (tilegx_cannot_reference_register): Return zero if REGNO
10559 is TILEGX_FAULTNUM_REGNUM.
10560 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10561 (tilegx_register_name): Add handling of "faultnum" register.
10562 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10563 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10564 handling of TILEGX_FAULTNUM_REGNUM.
10565 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10567 2013-02-19 Jiong Wang <jiwang@tilera.com>
10569 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10570 should be aligned to 64bit.
10572 2013-02-19 Kai Tietz <ktietz@redhat.com>
10574 * windows-nat.c (windows_xfer_memory): Fix debug-output
10577 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10579 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10580 Don't check DSP register number if HAVE_DSP is not set.
10582 2013-02-19 Alan Modra <amodra@gmail.com>
10584 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10585 throughout file instead.
10586 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10587 Don't xmalloc return value.
10588 (build_id_verify): Similarly. Don't xfree.
10589 (build_id_to_debug_filename): Update.
10590 (find_separate_debug_file_by_buildid): Update, don't xfree.
10592 2013-02-18 Tom Tromey <tromey@redhat.com>
10595 * dwarf2read.c (read_subrange_type): Use result of
10598 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10600 * frame.c: Remove one extra white space after #include
10603 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10605 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10607 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10609 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10610 and dir commands into an if block.
10612 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10614 * python/py-breakpoint (struct pybp_code): Use int instead of
10617 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10618 Hafiz Abid Qadeer <abidh@codesourcery.com>
10620 * NEWS: Mention new field "trace-file".
10621 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10622 (tfile_open): Record the trace file's filename in the trace
10624 (tfile_files_info): Mention the name of the trace file.
10625 Check the "filename" field explicitely.
10626 (trace_status_command): Explicitely check "filename" field.
10627 (trace_find_command): Ditto.
10628 (trace_find_pc_command): Ditto.
10629 (trace_find_tracepoint_command): Ditto.
10630 (trace_find_line_command): Ditto.
10631 (trace_find_range_command): Ditto.
10632 (trace_find_outside_command): Ditto.
10633 * tracepoint.h (struct trace_status) <from_file>: Rename it
10634 to "filename" and make it hold the trace file's filename
10635 instead of a boolean.
10636 * remote.c (remote_get_trace_status): Initialize "filename"
10637 field with NULL instead of 0.
10639 2013-02-15 Yao Qi <yao@codesourcery.com>
10641 * remote.c: Fix a typo.
10643 2013-02-14 Pierre Muller <muller@sourceware.org>
10645 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10647 2013-02-14 Pedro Alves <palves@redhat.com>
10649 * utils.c (savestring): Don't #undef it. Move function to
10650 common/common-utils.c.
10651 * common/common-utils.c: Include gdb_string.h.
10652 (savestring): Move here from utils.c.
10653 * common/common-utils.h (savestring): Declare.
10655 2013-02-14 Pedro Alves <palves@redhat.com>
10657 * utils.c (savestring): Rename parameter 'size' to 'len'.
10659 2013-02-14 Pedro Alves <palves@redhat.com>
10660 Yufeng Zhang <yufeng.zhang@arm.com>
10662 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10663 (aarch64_inferior_data, struct aarch64_inferior_data):
10665 (struct aarch64_process_info): New.
10666 (aarch64_process_list): New global.
10667 (aarch64_find_process_pid, aarch64_add_process)
10668 (aarch64_process_info_get): New functions.
10669 (aarch64_inferior_data_get): Delete.
10670 (aarch64_process_info_get): New function.
10671 (aarch64_forget_process): New function.
10672 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10673 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10674 aarch64_get_debug_reg_state.
10675 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10676 instead of linux_nat_iterate_watchpoint_lwps.
10677 (aarch64_linux_new_fork): New function.
10678 (aarch64_linux_child_post_startup_inferior): Use
10679 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10680 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10681 (aarch64_linux_remove_hw_breakpoint)
10682 (aarch64_handle_aligned_watchpoint)
10683 (aarch64_handle_unaligned_watchpoint)
10684 (aarch64_linux_insert_watchpoint)
10685 (aarch64_linux_remove_watchpoint)
10686 (aarch64_linux_stopped_data_address): Adjust to pass the current
10687 process id to aarch64_debug_reg_state.
10688 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10689 linux_nat_new_fork hook, and aarch64_forget_process as
10690 linux_nat_forget_process hook; remove the call to
10691 register_inferior_data_with_cleanup.
10693 2013-02-14 Pedro Alves <palves@redhat.com>
10695 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10696 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10699 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10700 Hafiz Abid Qadeer <abidh@codesourcery.com>
10702 * tracepoint.h (validate_trace_state_variable_name): Declare.
10703 * tracepoint.c (validate_trace_state_variable_name): New.
10704 (trace_variable_command): Parse the trace state variable's name
10705 without using parse_expression. Do several validations.
10706 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10707 trace state variable's name with parse_expression. Validate it.
10709 2013-02-14 Yao Qi <yao@codesourcery.com>
10711 * infcmd.c (breakpoint_proceeded): Remove it.
10713 2013-02-14 Yao Qi <yao@codesourcery.com>
10715 * tracepoint.c (end_actions_pseudocommand): Make it static.
10716 (while_stepping_pseudocommand): Likewise.
10717 * tracepoint.h (end_actions_pseudocommand): Remove the
10719 (while_stepping_pseudocommand): Likewise.
10721 2013-02-14 Yao Qi <yao@codesourcery.com>
10723 * cli/cli-decode.c (help_cmd): Remove the declaration of
10725 (help_all): Likewise.
10727 2013-02-13 Pedro Alves <palves@redhat.com>
10729 * amd64-linux-nat.c (update_debug_registers_callback):
10731 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10733 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10734 i386_debug_reg_state.
10735 (amd64_linux_new_fork): New function.
10736 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10737 linux_nat_new_fork hook, and i386_forget_process as
10738 linux_nat_forget_process hook.
10739 * i386-linux-nat.c (update_debug_registers_callback):
10741 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10743 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10744 i386_debug_reg_state.
10745 (i386_linux_new_fork): New function.
10746 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10747 linux_nat_new_fork hook, and i386_forget_process as
10748 linux_nat_forget_process hook.
10749 * i386-nat.c (i386_init_dregs): Delete.
10750 (i386_inferior_data, struct i386_inferior_data):
10752 (struct i386_process_info): New.
10753 (i386_process_list): New global.
10754 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10756 (i386_inferior_data_get): Delete.
10757 (i386_process_info_get): New function.
10758 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10759 (i386_forget_process): New function.
10760 (i386_cleanup_dregs): Rewrite.
10761 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10762 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10763 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10764 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10765 to i386_debug_reg_state.
10766 (i386_use_watchpoints): Don't register inferior data.
10767 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10769 (i386_forget_process): Declare.
10770 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10771 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10772 New static globals.
10773 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10774 (add_initial_lwp): New, factored out from ...
10775 (add_lwp): ... this. Don't check the number of lwps before
10776 calling linux_nat_new_thread.
10777 (linux_nat_iterate_watchpoint_lwps): Delete.
10778 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10779 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10781 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10783 (linux_nat_kill, linux_nat_mourn_inferior): Call
10784 linux_nat_forget_process.
10785 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10786 (linux_nat_forget_process): New functions.
10787 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10789 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10790 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10792 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10793 (linux_nat_forget_process): New declarations.
10795 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10796 (amd64fbsd_mourn_inferior): New function.
10797 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10798 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10800 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10802 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10805 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10807 * aarch64-linux-nat.c (debug_reg_change_callback)
10808 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10811 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10813 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10816 2013-02-13 Pedro Alves <palves@redhat.com>
10817 Hafiz Abid Qadeer <abidh@codesourcery.com>
10819 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10821 2013-02-12 Tom Tromey <tromey@redhat.com>
10824 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10826 (classify_inner_name): Remove 'first_name' argument, add
10827 'context'. Remove unused variable.
10828 (yylex): Explicitly maintain the context type. Exit loop earlier
10829 if NAME result is seen.
10831 2013-02-12 Pedro Alves <palves@redhat.com>
10833 * amd64-darwin-tdep.c: Add (C) after Copyright.
10834 * cli/cli-cmds.h: Ditto.
10835 * cli/cli-decode.c: Ditto.
10836 * cli/cli-decode.h: Ditto.
10837 * cli/cli-dump.c: Ditto.
10838 * cli/cli-dump.h: Ditto.
10839 * cli/cli-interp.c: Ditto.
10840 * cli/cli-logging.c: Ditto.
10841 * cli/cli-script.c: Ditto.
10842 * cli/cli-script.h: Ditto.
10843 * cli/cli-setshow.c: Ditto.
10844 * cli/cli-setshow.h: Ditto.
10845 * cli/cli-utils.c: Ditto.
10846 * cli/cli-utils.h: Ditto.
10847 * config/alpha/nm-osf3.h: Ditto.
10848 * config/djgpp/djconfig.sh: Ditto.
10849 * config/i386/nm-fbsd.h: Ditto.
10850 * config/i386/nm-i386gnu.h: Ditto.
10851 * config/nm-linux.h: Ditto.
10852 * config/nm-nto.h: Ditto.
10853 * config/rs6000/nm-rs6000.h: Ditto.
10854 * config/sparc/nm-sol2.h: Ditto.
10855 * darwin-nat-info.c: Ditto.
10858 * gdb-demangle.h: Ditto.
10859 * i386-darwin-nat.c: Ditto.
10860 * i386-darwin-tdep.c: Ditto.
10861 * linux-fork.h: Ditto.
10862 * m32c-tdep.c: Ditto.
10863 * microblaze-linux-tdep.c: Ditto.
10864 * microblaze-rom.c: Ditto.
10865 * microblaze-tdep.c: Ditto.
10866 * microblaze-tdep.h: Ditto.
10867 * mips-linux-tdep.h: Ditto.
10868 * ppc-ravenscar-thread.c: Ditto.
10869 * ppc-ravenscar-thread.h: Ditto.
10870 * prologue-value.c: Ditto.
10871 * prologue-value.h: Ditto.
10872 * ravenscar-thread.c: Ditto.
10873 * ravenscar-thread.h: Ditto.
10874 * sparc-ravenscar-thread.c: Ditto.
10875 * sparc-ravenscar-thread.h: Ditto.
10876 * tilegx-linux-tdep.c: Ditto.
10877 * unwind_stop_reasons.def: Ditto.
10878 * windows-nat.h: Ditto.
10879 * xtensa-linux-tdep.c: Ditto.
10880 * xtensa-xtregs.c: Ditto.
10881 * regformats/regdat.sh: Ditto.
10882 * regformats/regdef.h: Ditto.
10884 2013-02-12 Pedro Alves <palves@redhat.com>
10886 * break-catch-sig.c: Update copyright years.
10888 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10890 Add support for a destructor for ui_out data and use it to
10891 provide a ui_out destructor.
10892 * ui-out.h: Declare the new ui_out destructor.
10893 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10894 * ui-out.c (default_data_destroy): Add a default data destructor
10895 which does nothing.
10896 (default_ui_out_impl): Set the new data_destroy field to
10897 default_data_destroy
10898 (uo_data_destroy): Local function which invokes the data
10899 destructor if present.
10900 (clear_table): Local function which clears the table data of a
10902 (ui_out_destroy): Public function which frees a ui_out object.
10903 (ui_out_table_end): Use the new clear_table function.
10904 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10906 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10909 2013-02-11 Doug Evans <dje@google.com>
10911 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10912 (printf_decfloat): New function. Broken out from ui_printf.
10913 Remove unnecessary code to shift the entire format string down.
10914 (printf_pointer): New function.
10915 (ui_printf): Code to print C strings, wide C strings, decfloats,
10916 and pointers moved to separate functions.
10918 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10920 * valops.c (value_assign): Handling bitfield offset in
10921 `lval_internalvar_component' case.
10923 2013-02-08 Doug Evans <dje@google.com>
10925 * common/format.c (parse_format_string): Fix whitespace.
10927 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10929 * stack.c (return_command): Work around uninitialized variable
10932 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10934 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10935 number of the registers from 36 to 34.
10937 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10939 * NEWS: Mention new AArch64 native and target support.
10941 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10943 * MAINTAINERS (Write After Approval): Add myself.
10945 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10946 Marcus Shawcroft <marcus.shawcroft@arm.com>
10947 Nigel Stephens <nigel.stephens@arm.com>
10948 Yufeng Zhang <yufeng.zhang@arm.com>
10950 * aarch64-linux-nat.c: New file.
10951 * config/aarch64/linux.mh: New file.
10952 * configure.host: Add AArch64.
10953 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10955 2013-02-07 Doug Evans <dje@google.com>
10957 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10958 disassemble command.
10960 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10962 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10963 set_gdbarch_fetch_tls_load_module_address.
10965 2013-02-06 David S. Miller <davem@davemloft.net>
10967 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10968 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10969 * value.c (struct_return_convention): New function.
10970 (using_struct_return): Implement in terms of struct_return_convention.
10971 * value.h (struct_return_convention): Declare.
10972 * stack.c (return_command): Allow successful overriding of the return
10973 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10975 2013-02-06 Tom Tromey <tromey@redhat.com>
10977 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10978 outside of TRY_CATCH.
10980 2013-02-06 Yao Qi <yao@codesourcery.com>
10982 * mi/mi-interp.c: Include "tracepoint.h".
10983 (mi_tsv_modified): Declare.
10984 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10985 (mi_interpreter_init): Call observer_attach_tsv_modified.
10986 (mi_tsv_modified): New.
10987 (mi_tsv_created, mi_tsv_deleted): Update.
10988 * tracepoint.c (trace_variable_command): Call
10989 observer_notify_tsv_modified if the initial value of tsv is
10991 (delete_trace_state_variable): Call
10992 observer_notify_tsv_deleted earlier.
10993 (trace_variable_command): Caller update.
10994 (create_tsv_from_upload): Likewise.
10995 * observer.sh: Declare "struct trace_state_variable".
10997 * NEWS: Mention the new MI notification "=tsv-modified".
10999 2013-02-05 Doug Evans <dje@google.com>
11001 * completer.c (location_completer): Fix typo in comment.
11003 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11005 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11008 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11010 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11011 Refactor if statement to avoid trailing || operator.
11013 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11015 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11017 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11019 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11020 * configure.host: Add powerpc*-*-freebsd* target.
11021 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11022 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11023 * config/powerpc/fbsd.mh: New file.
11025 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11026 Denys Vlasenko <dvlasenk@redhat.com>
11027 Pedro Alves <palves@redhat.com>
11029 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11030 (struct elf_internal_linux_prpsinfo): Forward declare.
11031 * gdbarch.h, gdbarch.c: Regenerate.
11032 * linux-tdep.c: Include `cli/cli-utils.h'.
11033 (linux_fill_prpsinfo): New function.
11034 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11035 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11036 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11037 depending on gdbarch pointer bitness.
11038 * ppc-linux-tdep.c: Include elf-bfd.h.
11039 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11042 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11043 Marcus Shawcroft <marcus.shawcroft@arm.com>
11044 Nigel Stephens <nigel.stephens@arm.com>
11045 Yufeng Zhang <yufeng.zhang@arm.com>
11047 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11049 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11050 Marcus Shawcroft <marcus.shawcroft@arm.com>
11051 Nigel Stephens <nigel.stephens@arm.com>
11052 Yufeng Zhang <yufeng.zhang@arm.com>
11054 * aarch64-newlib-tdep.c: New file.
11055 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11057 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11058 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11059 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11060 * osabi.c (gdb_osabi_names): Add "Newlib".
11062 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11063 Marcus Shawcroft <marcus.shawcroft@arm.com>
11064 Nigel Stephens <nigel.stephens@arm.com>
11065 Yufeng Zhang <yufeng.zhang@arm.com>
11067 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11068 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11069 * aarch64-linux-tdep.c: New file.
11070 * aarch64-linux-tdep.h: New file.
11071 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11072 * configure.tgt: Add aarch64-none-linux-gnu.
11074 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11075 Marcus Shawcroft <marcus.shawcroft@arm.com>
11076 Nigel Stephens <nigel.stephens@arm.com>
11077 Yufeng Zhang <yufeng.zhang@arm.com>
11079 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11080 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11081 (ALLDEPFILES): Add aarch64-tdep.c.
11082 * aarch64-tdep.c: New file.
11083 * aarch64-tdep.h: New file.
11084 * configure.tgt: Add AArch64.
11085 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11086 (aarch64-expedite): New definition.
11087 * features/aarch64-core.xml: New file.
11088 * features/aarch64-fpu.xml: New file.
11089 * features/aarch64-without-fpu.c: New file (generated).
11090 * features/aarch64-without-fpu.xml: New file.
11091 * features/aarch64.c: New file (generated).
11092 * features/aarch64.xml: New file.
11093 * regformats/aarch64-without-fpu.dat: New file (generated).
11094 * regformats/aarch64.dat: New file (generated).
11096 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11098 * contrib/expect-read1.c: New file.
11099 * contrib/expect-read1.sh: New file.
11101 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11103 * dwarf2read.c (file_file_name): New function with code from
11105 (file_full_name): Move most of the code to file_file_name.
11106 (macro_start_file): Rename variable full_name to file_name and use
11107 file_file_name for it. Add comp_dir parameter to new_macro_table.
11108 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11109 macro_source_file->filename access by macro_source_fullname call.
11110 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11112 * macrotab.c (struct macro_table): New field comp_dir.
11113 (macro_include): New variables link_fullname and source_fullname.
11114 Replace any macro_source_file->filename access by macro_source_fullname
11116 (macro_lookup_inclusion): Remove the partial filenames checking code.
11117 (check_for_redefinition): New variables source_fullname and
11118 found_key_fullname. Replace any macro_source_file->filename access by
11119 macro_source_fullname call.
11120 (macro_undef): New variables source_fullname and key_fullname. Replace
11121 any macro_source_file->filename access by macro_source_fullname call.
11122 (macro_lookup_definition): New variables retval and source_fullname.
11123 Replace any macro_source_file->filename access by macro_source_fullname
11125 (foreach_macro): New variable key_fullname. Replace any
11126 macro_source_file->filename access by macro_source_fullname call.
11127 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11128 macro_source_file->filename access by macro_source_fullname call.
11129 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11130 (macro_source_fullname): New function.
11131 * macrotab.h (struct macro_source_file): Extent the filename field
11133 (new_macro_table): New parameter comp_dir, add a comment for it.
11134 (macro_source_fullname): new declaration.
11136 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11138 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11139 this_real_name to outer block. Use it also for
11140 compare_filenames_for_search.
11141 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11142 with dw2_get_real_path for file_matcher, considering also
11143 BASENAMES_MAY_DIFFER.
11144 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11146 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11148 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11149 to the file_matcher parameter. Pass 0 to it.
11150 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11151 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11152 NULL psymtab_to_fullname result.
11153 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11154 an expected filename instead.
11155 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11156 file_matcher parameter. Call also psymtab_to_fullname, after newly
11157 considering BASENAMES_MAY_DIFFER.
11158 * source.c (rewrite_source_path): Remove static.
11159 * source.h (rewrite_source_path): New declaration.
11160 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11161 the expand_symtabs_matching field. Comment it.
11162 * symtab.c (file_matches): New function comment. Add parameter
11163 basenames, implement it.
11164 (search_symbols_file_matches): Add basenames parameter. Update the
11165 file_matches caller.
11166 (search_symbols): Match FILES also against symtab_to_fullname.
11167 Optimize it for BASENAMES_MAY_DIFFER.
11169 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11171 * source.c (print_source_lines_base): Print for TUI also "fullname".
11172 * tui/tui-data.c (init_content_element): Change tui_locator_element
11173 field to full_name.
11174 * tui/tui-data.h (struct tui_locator_element): Likewise.
11175 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11176 tui_update_locator_filename calls to tui_update_locator_fullname.
11177 Replace symtab->filename refererence by symtab_to_fullname call.
11178 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11179 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11180 field to full_name. Replace symtab->filename refererence by
11181 symtab_to_fullname call.
11182 (tui_show_symtab_source): Rename parameter to fullname. Change
11183 tui_locator_element field to full_name.
11184 * tui/tui-stack.c: Include source.h.
11185 (tui_set_locator_filename): Rename the declaration to ...
11186 (tui_set_locator_fullname): ... here. Rename its parameter to
11187 fullname, updates its comment.
11188 (tui_set_locator_info): Rename its parameter to fullname.
11189 (tui_set_locator_filename): Rename the definition to ...
11190 (tui_set_locator_fullname): ... here. Rename its parameter to
11191 fullname, updates its comment. Change tui_locator_element field to
11193 (tui_set_locator_info): Rename its parameter to fullname.
11194 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11195 (tui_update_locator_filename): Rename to ...
11196 (tui_update_locator_fullname): ... here. Rename callee to
11197 tui_set_locator_fullname.
11198 (tui_show_frame_info): Replace symtab->filename refererence by
11199 symtab_to_fullname call.
11200 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11201 (tui_update_locator_fullname): ... here.
11202 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11203 tui_update_locator_fullname. Replace symtab->filename refererence by
11204 symtab_to_fullname call.
11205 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11206 Rename the callee to tui_update_locator_fullname.
11207 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11209 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11211 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11212 by symtab_to_filename_for_display calls.
11213 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11214 (clear_command): New variable sal_fullname, initialize it. Replace
11215 compare_filenames_for_search by filename_cmp with sal_fullname.
11216 (say_where, update_static_tracepoint): Replace symtab->filename
11217 refererences by symtab_to_filename_for_display calls.
11218 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11220 * dwarf2read.c: Include source.h.
11221 (fixup_go_packaging): Replace symtab->filename refererences by
11222 symtab_to_filename_for_display calls.
11223 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11224 Replace symtab->filename refererences by symtab_to_filename_for_display
11226 (create_sals_line_offset, convert_linespec_to_sals): New variable
11227 fullname, initialize it, replace symtab->filename reference by the
11229 * linux-fork.c: Include source.h.
11230 (info_checkpoints_command): Replace symtab->filename refererences by
11231 symtab_to_filename_for_display calls.
11232 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11233 by symtab_to_filename_for_display calls.
11234 * mdebugread.c: Include source.h.
11235 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11236 symtab_to_filename_for_display calls.
11237 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11238 (mi_cmd_file_list_exec_source_files): Likewise.
11239 * printcmd.c: Include source.h.
11240 (build_address_symbolic): Replace symtab->filename refererences by
11241 symtab_to_filename_for_display calls.
11242 * psymtab.c (partial_map_symtabs_matching_filename)
11243 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11244 with psymtab_to_fullname.
11245 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11246 by symtab_to_filename_for_display calls.
11247 (stpy_get_filename): New variable filename, initialize it, use instead
11248 of symtab->filename refererences.
11249 (salpy_str): Make variable filename const char *. Replace
11250 symtab->filename refererences by symtab_to_filename_for_display calls.
11251 * skip.c: Include source.h and filenames.h.
11252 (skip_file_command): Remove const from the symtab variable. Replace
11253 symtab->filename refererences by symtab_to_fullname call.
11254 (function_name_is_marked_for_skip): New variables searched_for_fullname
11255 and fullname. Use them to search also with symtab's fullname.
11256 * source.c (find_source_lines): Replace symtab->filename refererences
11257 by symtab_to_filename_for_display calls.
11258 (print_source_lines_base): New variable filename, use it instead of
11259 symtab->filename. Replace symtab->filename refererences by
11260 symtab_to_filename_for_display calls.
11261 (line_info, forward_search_command): Replace symtab->filename
11262 refererences by symtab_to_filename_for_display calls.
11263 (reverse_search_command): Replace symtab->filename refererences by
11264 symtab_to_filename_for_display calls. New variable filename for it.
11265 * stack.c (frame_info): Likewise.
11266 * symmisc.c: Include source.h.
11267 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11268 (maintenance_info_symtabs): Replace symtab->filename refererences by
11269 symtab_to_filename_for_display calls.
11270 * symtab.c (iterate_over_some_symtabs): Call
11271 compare_filenames_for_search also with symtab_to_fullname.
11272 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11273 symtab->filename refererences by symtab_to_filename_for_display calls.
11274 (find_line_symtab): Replace symtab->filename refererences by
11275 symtab_to_filename_for_display calls.
11276 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11277 (print_symbol_info): Make the last parameter const char *. New
11278 variable s_filename. Use it in the function.
11279 (symtab_symbol_info): Make the last_filename variable const char *.
11280 Replace symtab->filename refererences by symtab_to_filename_for_display
11282 (rbreak_command): New variable fullname. Use it. Replace
11283 symtab->filename refererence by symtab_to_filename_for_display call.
11284 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11285 (print_one_static_tracepoint_marker): Replace symtab->filename
11286 refererences by symtab_to_filename_for_display calls.
11287 * tui/tui-source.c (tui_set_source_content): New variables filename and
11288 s_filename. Replace symtab->filename refererences by this variable.
11289 Replace other symtab->filename refererences by
11290 symtab_to_filename_for_display calls.
11292 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11293 Jan Kratochvil <jan.kratochvil@redhat.com>
11295 Add a new variable that controls a way in which filenames are
11297 * NEWS (set filename-display): New entry.
11298 * source.c (filename_display_basename, filename_display_relative)
11299 (filename_display_absolute, filename_display_kind_names)
11300 (filename_display_string, show_filename_display_string)
11301 (symtab_to_filename_for_display): New.
11302 (_initialize_source): Added initialization of 'filename-display'
11304 * source.h (symtab_to_filename_for_display): Added declaration.
11305 * stack.c (print_frame): Added new variable and calling of a new
11306 function and condition with this variable. Changed third argument of
11307 calling of a function.
11309 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11311 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11312 Rename field reference filename to fullname.
11313 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11314 fullname. New comment for it.
11315 * tui/tui-source.c (tui_set_source_content): Rename field reference
11316 filename to fullname. Initialize field by symtab_to_fullname now.
11317 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11318 reference filename to fullname. Use symtab_to_fullname during
11321 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11324 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11325 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11326 filename to fullname. Rename variable this_name to this_fullname.
11327 Lowercase FILENAME_CMP call.
11328 (dw2_find_symbol_file): New comment for the returned string.
11329 (dwarf2_gdb_index_functions): Rename the function to
11330 dw2_expand_symtabs_with_fullname.
11331 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11332 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11334 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11335 * symfile.h (struct quick_symbol_functions): Rename field
11336 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11337 parameter filename to fullname. Document returned string meaning for
11339 * symtab.c (find_line_symtab): Rename the called function to
11340 expand_symtabs_with_fullname.
11342 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11345 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11346 call of filename_cmp with compare_filenames_for_search.
11347 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11348 is_abs, unify the call of FILENAME_CMP with
11349 compare_filenames_for_search. New gdb_asserts for real_path and name.
11350 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11351 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11352 * symfile.h (struct quick_symbol_functions): Extend the comment for
11353 map_symtabs_matching_filename.
11354 * symtab.c (compare_filenames_for_search): Remove the function comment
11355 relative path requirement. Handle absolute filenames, with a comment.
11356 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11357 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11358 real_path and name. Unify the call of compare_filenames_for_search
11360 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11362 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11365 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11366 source_file references by symtab field references. Remove variables
11368 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11369 (clear_command, say_where): Replace bp_location field source_file
11370 references by symtab field references.
11371 (bp_location_dtor): Remove the source_file reference.
11372 (update_static_tracepoint): Replace bp_location field source_file
11373 references by symtab field references.
11374 (breakpoint_free_objfile): New function.
11375 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11376 Replace the field source_file by field symtab, extend its comment.
11377 (breakpoint_free_objfile): New declaration.
11378 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11379 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11380 field source_file references by symtab field references.
11382 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11384 Replace xfullpath calls by gdb_realpath calls.
11385 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11387 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11388 Remove it from the iterate_over_some_symtabs call.
11389 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11390 Remove it from the dw2_map_expand_apply calls, remove a block handling
11392 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11393 Remove it from the iterate_over_some_symtabs call.
11394 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11395 Remove it from the partial_map_expand_apply calls, remove a block
11396 handling it. Drop gdb_realpath call and cleanups from the real_path
11398 * source.c (openp): Drop the comment part about xfullpath. Replace
11399 xfullpath calls by gdb_realpath calls.
11400 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11401 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11402 from method map_symtabs_matching_filename and its comment.
11403 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11405 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11406 remove it also from the function comment, remove a block handling it.
11407 Drop gdb_realpath call and cleanups from the real_path handling.
11408 (iterate_over_symtabs): Drop variable full_path and its use.
11409 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11410 * utils.c (xfullpath): Remove.
11411 * utils.h (xfullpath): Remove.
11413 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11415 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11416 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11417 (ALLDEPFILES): Add ppc64-tdep.c.
11418 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11419 ppc64-tdep.o to gdb_target_obs.
11420 * ppc64-tdep.h: New file.
11421 * ppc64-tdep.c: New file.
11422 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11423 ppc-linux-tdep.c to here.
11424 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11425 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11426 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11427 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11428 from ppc-linux-tdep.c to here.
11429 (ppc64_convert_from_func_ptr_addr): Rename from
11430 ppc64_linux_convert_from_func_ptr_addr to
11431 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11434 (read_insn): Move from ppc-linux-tdep.c to here.
11435 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11436 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11437 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11438 Removed above functions.
11439 (ppc_linux_init_abi): Adjust.
11441 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11443 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11445 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11447 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11449 2013-02-01 Pedro Alves <palves@redhat.com>
11451 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11452 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11454 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11456 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11457 files with no separate debug info.
11458 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11459 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11460 only for files with no separate debug info.
11462 2013-01-31 Tom Tromey <tromey@redhat.com>
11464 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11466 (struct jit_program_space_data): Rename from jit_inferior_data.
11468 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11469 Change return type. Attach data to program space.
11470 (jit_program_space_data_cleanup): Rename from
11471 jit_inferior_data_cleanup; change argument type.
11472 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11474 (jit_register_code): Update.
11475 (jit_update_inferior_cache): Remove.
11476 (jit_breakpoint_deleted): Get jit data from the location's program
11478 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11479 'ps_data', change type.
11480 (jit_inferior_init, jit_breakpoint_re_set_internal)
11481 (jit_event_handler): Update.
11482 (free_objfile_data): Get data from objfile's program space.
11483 (_initialize_jit): Update.
11485 2013-01-31 Tom Tromey <tromey@redhat.com>
11488 * jit.c (struct jit_inferior_data) <cached_code_address,
11489 jit_breakpoint>: New fields.
11490 (jit_breakpoint_re_set_internal): Fix logging. Only create
11491 breakpoint if cached address has changed.
11492 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11494 (_initialize_jit): Register breakpoint deleted observer.
11496 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11498 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11499 (save_infcall_suspend_state): Ifdef out unused inf.
11500 (restore_infcall_suspend_state): Ifdef out unused inf.
11501 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11502 (jit_frame_sniffer): Remove unused inf_data.
11504 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11506 * c-exp.y (classify_inner_name): Remove unused type.
11507 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11508 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11510 (c_get_string): Remove unused kind.
11511 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11513 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11515 * charset.c (intermediate_encoding): Remove unused i.
11516 * completer.c (signal_completer): Remove unused i.
11517 * continuations.c (discard_my_continuations_1): Remove unused
11519 * corelow.c (core_close): Remove unuseD name.
11520 (get_core_siginfo): Remove unused pid.
11521 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11523 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11524 (loclist_describe_location): Remove unused first.
11525 * event-top.c (command_line_handler): Remove unused got_eof.
11526 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11527 (resize_section_table): Remove unused old_value.
11528 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11529 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11530 * i386-tdep.c (i386_process_record): Remove unused rex.
11531 * infcmd.c (get_return_value): Remove unused uiout.
11532 * jv-lang.c (type_from_class): Remove unused is_array.
11533 * jv-valprint.c (java_val_print): Remove unused i.
11534 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11535 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11536 * m2-typeprint.c (m2_print_type): Remove unused code.
11537 * macroexp.c (get_character_constant): Remove unused body_start.
11538 (macro_stringify): Remove unused result.
11539 * objc-lang.c (find_methods): Remove unused gdbarch.
11540 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11541 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11542 * stack.c (print_frame_args): Remove unused summary.
11543 * thread.c (thread_apply_command): Remove unused p.
11544 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11545 * valops.c (search_struct_method): Remove unused skip.
11546 * valprint.c (generic_val_print): Remove unused byte_order.
11547 * varobj.c (varobj_update): Remove unused changed.
11548 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11549 (alias_command): Remove unused c.
11550 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11551 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11553 (mi_cmd_data_write_memory): Remove unused word_format.
11554 (mi_cmd_data_write_memory_bytes): Remove unused r.
11555 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11557 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11558 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11561 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11563 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11564 * symtab.c (iterate_over_symtabs): Remove unused s.
11565 (find_pc_sect_symtab): Remove unused pspAce.
11566 (find_pc_sect_line): Remove unused alt_symtab.
11567 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11568 (completion_list_add_name): Remove unused newsize.
11570 2013-01-31 Tom Tromey <tromey@redhat.com>
11573 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11576 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11578 * target.c (target_read_string): Remove unused origlen.
11580 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11582 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11583 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11584 * ax-general.c (ax_print): Remove unused is_float.
11585 * blockframe.c (block_innermost_frame): Remove unused start, end.
11586 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11588 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11590 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11591 (svr4_read_so_list): Remove unused lmo.
11592 * solib-target.c (solib_target_relocate_section_addresses): Remove
11595 2013-01-30 Tom Tromey <tromey@redhat.com>
11597 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11599 2013-01-30 Tom Tromey <tromey@redhat.com>
11601 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11602 * utils.c (gnu_debuglink_crc32): Remove.
11603 * utils.h (gnu_debuglink_crc32): Don't declare.
11605 2013-01-30 Tom Tromey <tromey@redhat.com>
11607 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11608 (read_structure_type, read_enumeration_type): Remove cast.
11610 2013-01-30 Tom Tromey <tromey@redhat.com>
11612 * dwarf2read.c (read_namespace_type): Remove cast.
11613 (read_typedef): Likewise.
11615 2013-01-29 Tom Tromey <tromey@redhat.com>
11617 * dwarf2read.c (free_dwo_file): Remove assert.
11619 2013-01-29 Tom Tromey <tromey@redhat.com>
11621 * value.c (deprecated_set_value_modifiable): Remove.
11622 * value.h (deprecated_set_value_modifiable): Remove.
11624 2013-01-28 Doug Evans <dje@google.com>
11626 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11627 to addresses from dwo files.
11629 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11631 * valops.c (find_overload_match): Remove unused argument 'lax'.
11632 * value.h: Remove unused argument 'lax' from the declaration of
11633 find_overload_match.
11634 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11635 to find_overload_match.
11636 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11637 argument to find_overload_match.
11639 2013-01-25 Tom Tromey <tromey@redhat.com>
11641 * dwarf2read.c (processing_has_namespace_info): Remove.
11642 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11643 (process_die, read_func_scope, dwarf2_start_symtab)
11644 (new_symbol_full): Update.
11646 2013-01-25 Tom Tromey <tromey@redhat.com>
11648 * cp-namespace.c (cp_set_block_scope): Remove.
11649 * cp-support.h (cp_set_block_scope): Remove.
11650 * dbxread.c: Include block.h.
11651 (cp_set_block_scope): New function.
11652 (process_one_symbol): Update.
11653 * dwarf2read.c (read_func_scope): Use block_set_scope.
11655 2013-01-25 Pedro Alves <palves@redhat.com>
11657 * remote.c (add_current_inferior_and_thread): Tweak comment.
11659 2013-01-25 Tom Tromey <tromey@redhat.com>
11661 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11662 (cp_add_using_directive): Add 'copy_names' argument.
11663 * cp-support.h (cp_add_using_directive): Update.
11664 (struct using_direct) <import_src, import_dest, alias,
11665 declaration>: Now const.
11666 * dwarf2read.c (read_import_statement): Use obconcat.
11667 Don't copy names passed to cp_add_using_directive.
11669 2013-01-25 Tom Tromey <tromey@redhat.com>
11671 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11673 2013-01-25 Pedro Alves <palves@redhat.com>
11675 * remote.c (stop_reply_extract_thread): New.
11676 (add_current_inferior_and_thread): New parameter 'wait_status'.
11678 (remote_start_remote): Pass wait status to
11679 add_current_inferior_and_thread.
11680 (extended_remote_run): Update comment.
11681 (extended_remote_create_inferior_1): Pass wait status to
11682 add_current_inferior_and_thread.
11684 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11685 Ulrich Weigand <uweigand@de.ibm.com>
11687 * valarith.c (value_vector_widen): New function for replicating a
11688 scalar into a vector.
11689 (value_binop): Use value_vector_widen to widen scalar to vector
11690 rather than casting, this better matches gcc C behaviour.
11691 * valops.c (value_casst): Update logic for casting between vector
11692 types, and for casting from scalar to vector, try to match gcc C
11694 * value.h (value_vector_widen): Declare.
11695 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11696 function, handle special case for casting scalar to vector.
11697 (opencl_relop): Use opencl_value_cast.
11698 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11699 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11700 in order to use opencl_value_cast.
11702 2013-01-25 Yao Qi <yao@codesourcery.com>
11704 * event-loop.c: Include "queue.h".
11705 (gdb_event_p): New typedef.
11706 (DECLARE_QUEUE_P): Use.
11707 (DEFINE_QUEUE_P): Use.
11708 (async_queue_event): Remove.
11709 (gdb_event_xfree): New.
11710 (initialize_event_loop): New.
11711 (process_event): Use QUEUE macros.
11712 (event_queue): Remove.
11713 (gdb_wait_for_event): Caller update.
11714 (check_async_event_handlers): Likewise.
11715 (poll_timers): Likewise.
11716 * event-loop.h (initialize_event_loop): Declare.
11717 * event-loop.c (gdb_event_xfree): New.
11718 * top.c (gdb_init): Call initialize_event_loop.
11720 2013-01-25 Yao Qi <yao@codesourcery.com>
11722 * event-loop.c (async_queue_event): Remove one parameter
11723 'position'. Remove code handling 'position' == TAIL.
11724 (gdb_wait_for_event): Caller update.
11725 (check_async_event_handlers): Caller update.
11726 (poll_timers): Caller update.
11727 * event-loop.h (enum queue_position): Remove.
11729 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11731 * MAINTAINERS: Update my email.
11733 2013-01-25 Yao Qi <yao@codesourcery.com>
11735 * main.c (print_gdb_help): Remove "--epoch" from the help
11738 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
11740 * symtab.c (skip_prologue_using_sal): Consider a file
11741 change the same as an increased line number
11743 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11745 * MAINTAINERS (Write After Approval): Add myself to the list.
11747 2013-01-24 Tom Tromey <tromey@redhat.com>
11749 * ada-lang.h (ada_decode_symbol): Make return type const.
11750 * ada-lang.c (ada_decode_symbol): Likewise.
11752 2013-01-23 Doug Evans <dje@google.com>
11754 * linespec.c (find_linespec_symbols): Make static.
11756 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11758 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11759 type on float conversion for complex type.
11761 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11763 Add a new class gdb.Architecture which exposes GDB's
11764 internal representation of architecture via GDB Python API.
11765 * Makefile.in: Add entries corresponding to the new file
11767 * NEWS (Python Scripting): Add entries for the new class
11768 gdb.Architecture and the new method gdb.Frame.architecture.
11769 * python/py-arch.c: Implement gdb.Architecture class.
11770 * python/py-frame.c (frapy_arch): Implement the method
11771 gdb.Frame.architecture().
11772 (frame_object_methods): Add 'architecture' to the method table.
11773 * python/python-internal.h: Add declarations of new utility
11775 * python/python.c (_initialize_python): Initialize
11776 gdb.Architecture class.
11778 2013-01-23 Doug Evans <dje@google.com>
11780 Work around binutils/15021.
11781 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11782 type_unit_group out of union s. All uses updated.
11783 (read_index_from_section): Watch for index version 8.
11784 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11785 an imported symtab.
11786 (write_psymtabs_to_index): Increment version number to 8.
11788 2013-01-22 Pedro Alves <palves@redhat.com>
11790 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11793 2013-01-22 Pedro Alves <palves@redhat.com>
11795 * annotate.c (annotate_breakpoints_changed): Rename to ...
11796 (annotate_breakpoints_invalid): ... this. Make static.
11797 (breakpoint_changed): Adjust.
11798 (_initialize_annotate): Always install the observers. Install a
11799 "breakpoint_created" observer.
11800 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11801 * breakpoint.c (set_breakpoint_condition)
11802 (breakpoint_set_commands, do_map_commands_command)
11803 (init_raw_breakpoint, clear_command, set_ignore_count)
11804 (enable_breakpoint_disp): No longer call
11805 annotate_breakpoints_changed.
11807 2013-01-22 Pedro Alves <palves@redhat.com>
11809 * annotate.c: Include "inferior.h".
11810 (frames_invalid_emitted)
11811 (breakpoints_invalid_emitted): New globals.
11812 (async_background_execution_p): New function.
11813 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11814 emitting the annotation if it has already been emitted.
11815 (annotate_display_prompt): New function.
11816 * annotate.h (annotate_display_prompt): New declaration.
11817 * event-top.c: Include annotate.h.
11818 (display_gdb_prompt): Call annotate_display_prompt.
11820 2013-01-22 Pedro Alves <palves@redhat.com>
11822 * annotate.c (ignore_count_changed): Delete.
11823 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11824 (annotate_ignore_count_change): Delete.
11825 (annotate_stopped): Don't emit a delayed breakpoints-changed
11827 * annotate.h (annotate_ignore_count_change): Delete.
11828 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11829 annotate_ignore_count_change.
11831 2013-01-22 Tom Tromey <tromey@redhat.com>
11833 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11834 require_rvalue for a register location.
11836 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11838 * breakpoint.c (print_one_breakpoint_location): Add MI
11839 field 'thread-groups' when printing a breakpoint.
11840 (output_thread_groups): New function.
11842 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11844 * python/lib/gdb/commands/explore.py
11845 (CompoundExplorer.explore_expr): Correct the name of a method
11847 (ExploreTypeCommand.invoke): Add a missing 'return'.
11849 2013-01-21 Tom Tromey <tromey@redhat.com>
11851 * gdb_obstack.h (obconcat): Move declaration here, from...
11852 * symfile.h (obconcat): ... here.
11853 * gdb_obstack.c: New file.
11854 (obconcat): Move from...
11855 * symfile.c (obconcat): ... here.
11856 * Makefile.in (SFILES): Add gdb_obstack.c.
11857 (COMMON_OBS): Add gdb_obstack.o.
11859 2013-01-21 Tom Tromey <tromey@redhat.com>
11861 * symfile.h (obsavestring): Don't declare.
11862 * symfile.c (obsavestring): Remove.
11863 * ada-exp.y: Use obstack_copy0, not obsavestring.
11864 * ada-lang.c: Use obstack_copy0, not obsavestring.
11865 * coffread.c: Use obstack_copy0, not obsavestring.
11866 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11867 * dbxread.c: Use obstack_copy0, not obsavestring.
11868 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11869 * jit.c: Use obstack_copy0, not obsavestring.
11870 * mdebugread.c: Use obstack_copy0, not obsavestring.
11871 * psymtab.c: Use obstack_copy0, not obsavestring.
11872 * stabsread.c: Use obstack_copy0, not obsavestring.
11873 * xcoffread.c: Use obstack_copy0, not obsavestring.
11875 2013-01-21 Tom Tromey <tromey@redhat.com>
11877 * dwarf2read.c (fixup_go_packaging): Save package name
11878 on objfile obstack.
11879 * gdbtypes.c (init_type): Don't copy name.
11881 2013-01-21 Tom Tromey <tromey@redhat.com>
11883 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11885 (struct attribute) <u.str>: Now const.
11886 (struct fnfieldlist) <name>: Now const.
11887 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11888 (partial_die_parent_scope): Make return type const.
11889 (partial_die_full_name, add_partial_symbol): Update.
11890 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11892 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11893 (read_file_scope, read_func_scope, dwarf2_add_field)
11894 (dwarf2_add_member_fn, read_structure_type)
11895 (process_enumeration_scope, read_array_type, read_module_type)
11896 (read_base_type, read_subrange_type): Update.
11897 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11898 (new_symbol_full, guess_full_die_structure_name): Update.
11899 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11900 (dwarf2_name): Return const type.
11901 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11904 2013-01-21 Tom Tromey <tromey@redhat.com>
11906 * gdbtypes.c (init_type): Make 'name' const.
11907 * gdbtypes.h (init_type): Update.
11909 2013-01-21 Tom Tromey <tromey@redhat.com>
11911 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11912 (start_symtab): Make 'name' and 'dirname' const. Use
11913 set_last_source_file.
11914 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11915 (last_source_file): Define. Now static.
11916 (set_last_source_file, get_last_source_file): New functions.
11917 * buildsym.h (last_source_file): Don't declare.
11918 (start_symtab): Update.
11919 (set_last_source_file, get_last_source_file): Declare.
11920 * coffread.c (complete_symtab): Use set_last_source_file.
11921 (coff_end_symtab): Likewise.
11922 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11923 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11924 set_last_source_file.
11925 (process_one_symbol): Use get_last_source_file.
11926 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11927 (psymtab_to_symtab_1): Use get_last_source_file.
11928 * xcoffread.c (process_linenos): Use get_last_source_file.
11929 (complete_symtab): Use set_last_source_file.
11930 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11931 (scan_xcoff_symtab): Use set_last_source_file.
11933 2013-01-21 Tom Tromey <tromey@redhat.com>
11935 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11936 (symbol_set_names): Remove casts. Handle field const-ness.
11938 2013-01-21 Tom Tromey <tromey@redhat.com>
11940 * dwarf2read.c (new_symbol_full): Remove cast.
11941 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11942 * symtab.h (symbol_set_demangled_name): Update.
11944 2013-01-21 Tom Tromey <tromey@redhat.com>
11946 * main.c (captured_main): Call bfd_init.
11948 2013-01-21 Tom Tromey <tromey@redhat.com>
11950 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11951 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11952 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11955 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11957 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11959 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11961 Fix gdb.fortran/common-block.exp crash in PIE mode.
11962 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11964 * f-valprint.c (info_common_command_for_block): Expect
11965 LOC_COMMON_BLOCK in gdb_assert.
11966 * symtab.h (struct general_symbol_info): Update comment for the
11967 common_block member.
11968 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11969 (enum address_class): New member LOC_COMMON_BLOCK.
11971 2013-01-18 David Blaikie <dblaikie@gmail.com>
11973 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11975 2013-01-18 Tom Tromey <tromey@redhat.com>
11978 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11979 Call require_rvalue.
11981 2013-01-18 Yao Qi <yao@codesourcery.com>
11983 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11984 (dbx_read_symtab): New declaration.
11985 (dbx_psymtab_to_symtab): Delete.
11986 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11987 Rename parameter PST to SELF. Exchanged two parameters.
11988 (start_psymtab): Caller update.
11989 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11990 (dwarf2_read_symtab): New declaration.
11991 (dwarf2_psymtab_to_symtab): Delete.
11992 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11993 Rename parameter PST to SELF. Exchanged two parameters.
11994 (create_partial_symtab): Caller update.
11995 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11996 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11997 Rename parameter PST to SELF. Exchanged two parameters.
11998 (parse_partial_symbols, new_psymtab): Caller update.
11999 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12001 * psymtab.c (psymtab_to_symtab): Caller update.
12002 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12003 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12004 Rename parameter PST to SELF. Exchanged two parameters.
12005 (xcoff_start_psymtab): Caller update.
12007 2013-01-18 Yao Qi <yao@codesourcery.com>
12009 * infrun.c (proceed): Rename local variable 'oneproc' to
12012 2013-01-17 Doug Evans <dje@google.com>
12014 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12015 (dw2_build_type_unit_groups): Delete. All uses updated.
12017 * symtab.h (struct symbol_search): Add comment.
12019 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12021 * symtab.c (compare_filenames_for_search): New comment for
12024 2013-01-17 Tom Tromey <tromey@redhat.com>
12026 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12028 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12030 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12031 initialize it by existing make_cleanup. Call new do_cleanups.
12033 2013-01-17 Tom Tromey <tromey@redhat.com>
12035 * cp-abi.c (cp_abi_completer): New function.
12036 (_initialize_cp_abi): Set completer for "set cp-abi".
12038 2013-01-17 Tom Tromey <tromey@redhat.com>
12040 * mem-break.c: Remove obsolete comment.
12041 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12043 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12045 * jit.c (jit_reader_load_command): Interpret the jit reader name
12046 as an absolute path if it begins with a forward slash.
12048 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12052 * jit.c (finalize_symtab): Ensure that only the global block has a
12055 2013-01-17 Pedro Alves <palves@redhat.com>
12057 * acinclude.m4: Include ../config/plugins.m4,
12058 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12059 * Makefile.in (aclocal_m4_deps): Update.
12060 * aclocal.m4: Renegerate.
12062 2013-01-16 Doug Evans <dje@google.com>
12064 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12066 2013-01-16 Pedro Alves <palves@redhat.com>
12067 Tom Tromey <tromey@redhat.com>
12070 * NEWS: Add "catch signal".
12071 * breakpoint.c (base_breakpoint_ops): No longer static.
12072 (bpstat_explains_signal): New function.
12073 (init_catchpoint): No longer static.
12074 (base_breakpoint_explains_signal): New function.
12075 (base_breakpoint_ops): Initialize new field.
12076 * breakpoint.h (enum bpstat_signal_value): New.
12077 (struct breakpoint_ops) <explains_signal>: New field.
12078 (bpstat_explains_signal): Remove macro, declare as function.
12079 (base_breakpoint_ops, init_catchpoint): Declare.
12080 * break-catch-sig.c: New file.
12081 * inferior.h (signal_catch_update): Declare.
12082 * infrun.c (signal_catch): New global.
12083 (handle_syscall_event): Update for change to
12084 bpstat_explains_signal.
12085 (handle_inferior_event): Likewise. Always handle random signals
12087 (signal_cache_update): Check signal_catch.
12088 (signal_catch_update): New function.
12089 (_initialize_infrun): Initialize signal_catch.
12090 * Makefile.in (SFILES): Add break-catch-sig.c.
12091 (COMMON_OBS): Add break-catch-sig.o.
12093 2013-01-16 Tom Tromey <tromey@redhat.com>
12095 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12096 (print_one_catch_solib, print_one_catch_syscall)
12097 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12100 2013-01-16 Yao Qi <yao@codesourcery.com>
12102 * printcmd.c (current_display_number): Make it static.
12104 2013-01-16 Yao Qi <yao@codesourcery.com>
12106 * infcmd.c (step_once): Don't check '!single_inst' as it was
12109 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12111 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12113 2013-01-14 Tom Tromey <tromey@redhat.com>
12115 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12117 * command.h (add_setshow_string_noescape_cmd): Update.
12118 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12119 (complete_set_gnutarget): New function.
12120 (_initialize_core): Set the "set gnutarget" completer.
12122 2013-01-14 Tom Tromey <tromey@redhat.com>
12125 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12126 (c_type_print_modifier): Likewise.
12127 * dwarf2read.c (read_tag_restrict_type): New function.
12128 (read_type_die_1): Handle DW_TAG_restrict_type.
12129 * gdbtypes.c (make_restrict_type): New function.
12130 (recursive_dump_type): Handle TYPE_RESTRICT.
12131 * gdbtypes.h (enum type_flag_values): Renumber.
12132 (enum type_instance_flag_value): Add
12133 TYPE_INSTANCE_FLAG_RESTRICT.
12134 (TYPE_RESTRICT): New macro.
12135 (make_restrict_type): Declare.
12137 2013-01-14 Tom Tromey <tromey@redhat.com>
12140 * psymtab.c (struct psymtab_state): New.
12141 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12143 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12144 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12146 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12147 Pedro Alves <palves@redhat.com>
12151 * remote.c (remote_threads_info): Make a copy of the reply from
12152 qfThreadInfo and use that instead of rs->buf.
12154 2013-01-14 Yao Qi <yao@codesourcery.com>
12156 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12157 (dbx_psymtab_to_symtab): Likewise.
12158 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12159 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12160 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12162 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12164 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12165 make_cleanup_restore_current_language. Call set_language. Move
12166 OLD_CHAIN and INNER_CHAIN cleanups.
12167 * utils.c (do_restore_current_language)
12168 (make_cleanup_restore_current_language): New functions.
12169 * utils.h (make_cleanup_restore_current_language): New declaration.
12171 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12173 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12174 non-existing files.
12176 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12177 non-existing files if FILENAME is already absolute.
12179 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12181 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12182 fputs_filtered. Append trailing newline.
12184 2013-01-11 Yao Qi <yao@codesourcery.com>
12185 Stan Shebs <stan@codesourcery.com>
12187 * psymtab.c (init_psymbol_list): Clarify the comment.
12189 2013-01-11 Yao Qi <yao@codesourcery.com>
12191 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12192 (update_dprintf_command_list): Assert that 'printf_line' is
12193 non-null. Remove condition check.
12195 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12198 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12200 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12202 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12204 2013-01-09 Anthony Green <green@moxielogic.com>
12206 * cp-abi.c (cplus_print_vtable): Don't return value from void
12208 * ada-lang.c (re_set_catch_assert): Ditto.
12210 2013-01-09 Doug Evans <dje@google.com>
12212 * symfile.h (quick_symbol_functions): Delete member
12213 pre_expand_symtabs_matching. All uses removed.
12214 * dwarf2read.c (dw2_lookup_symbol): Implement.
12215 (dw2_do_expand_symtabs_matching): Delete.
12216 (dw2_pre_expand_symtabs_matching): Delete.
12217 (struct dw2_symtab_iterator): New type.
12218 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12219 (dw2_expand_symtabs_for_function): Rewrite.
12220 (dwarf2_gdb_index_functions): Update.
12221 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12222 (psym_functions): Update.
12224 2013-01-09 Tom Tromey <tromey@redhat.com>
12226 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12227 * configure: Rebuild.
12228 * configure.ac: Add somread.o to the build if BFD has SOM
12230 * somread.c: Include som/aout.h, not syms.h.
12231 (som_symtab_read): Use som_external_symbol_dictionary_record.
12232 Unpack records manually.
12233 (_initialize_somread): Declare.
12235 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12237 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12238 Cast return_address to 64bits.
12240 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12242 * printcmd.c: Remove define of function output_command.
12243 * tracepoint.c: Remove extern of function output_command.
12244 * valprint.h: (output_command): New extern.
12246 2013-01-07 Tom Tromey <tromey@redhat.com>
12248 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12250 (objc_language_defn): Use c_printchar, c_printstr,
12253 2013-01-07 Tom Tromey <tromey@redhat.com>
12257 * ada-valprint.c (printstr, print_field_values): Remove
12259 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12261 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12263 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12264 * main.c (captured_main): Remove "epoch" argument.
12265 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12266 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12267 * p-valprint.c (pascal_object_print_value_fields): Remove
12269 * printcmd.c (print_command_1): Remove 'inspect' argument.
12270 (print_command, call_command): Update.
12271 (inspect_command): Remove.
12272 (_initialize_printcmd): Make "inspect" an alias for "print".
12273 * top.c (epoch_interface): Remove.
12274 * top.h (epoch_interface): Remove.
12275 * valprint.c (user_print_options): Update.
12276 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12277 * valprint.h (struct value_print_options) <inspect_it>: Remove
12280 2013-01-04 Tom Tromey <tromey@redhat.com>
12282 * valprint.h (read_string): Add 'extern'.
12284 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12286 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12287 used to decide whether to define darwin_read_dyld_info or not.
12289 2013-01-03 Pierre Muller <muller@sourceware.org>
12291 * main.c (relocate_gdb_directory): Avoid calling stat function
12294 2013-01-03 Yao Qi <yao@codesourcery.com>
12296 * psymtab.c (fixup_psymbol_section): Update declaration.
12297 (fixup_psymbol_section): Remove code returning value.
12299 2013-01-03 Yao Qi <yao@codesourcery.com>
12301 * symtab.h: Remove some out of date comments.
12302 (enum exception_event_kind): Move it ...
12303 * breakpoint.c: ... here.
12305 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12308 * darwin-nat.c (darwin_read_dyld_info): Only build if
12309 TASK_DYLD_INFO_COUNT is defined.
12310 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12311 TASK_DYLD_INFO_COUNT is defined.
12313 2013-01-02 Tom Tromey <tromey@redhat.com>
12315 * symfile.h (struct ecoff_debug_hack): Remove.
12316 * objfiles.c: Don't include mdebugread.h.
12318 2013-01-02 Tom Tromey <tromey@redhat.com>
12320 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12321 * configure.ac: Check for Mach-O support in BFD. Update
12323 * configure: Rebuild.
12325 2013-01-02 Tom Tromey <tromey@redhat.com>
12327 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12328 * configure.ac: Use GDB_AC_CHECK_BFD.
12329 * configure: Rebuild.
12331 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12333 * MAINTAINERS: Update my email.
12335 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12337 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12339 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12341 * rs6000-nat.c (bss_data_overlap): New function.
12342 (vmap_symtab): Use it to adjust the .bss section's offset.
12344 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12346 Update year range in copyright notice of all files.
12348 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12350 * top.c (print_gdb_version): Update copyright year.
12352 For older changes see ChangeLog-2012.
12358 version-control: never