1 2013-11-18 Tom Tromey <tromey@redhat.com>
3 * common/gdb_stat.h: Remove.
4 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
5 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
6 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
7 * corefile.c: Use sys/stat.h, not gdb_stat.h.
8 * ctf.c: Use sys/stat.h, not gdb_stat.h.
9 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
10 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
11 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
12 * exec.c: Use sys/stat.h, not gdb_stat.h.
13 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
14 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
15 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
16 * jit.c: Use sys/stat.h, not gdb_stat.h.
17 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
18 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
19 * main.c: Use sys/stat.h, not gdb_stat.h.
20 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
21 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
22 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
23 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
24 * procfs.c: Use sys/stat.h, not gdb_stat.h.
25 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
26 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
27 * remote.c: Use sys/stat.h, not gdb_stat.h.
28 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
29 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
30 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
31 * source.c: Use sys/stat.h, not gdb_stat.h.
32 * symfile.c: Use sys/stat.h, not gdb_stat.h.
33 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
34 * symtab.c: Use sys/stat.h, not gdb_stat.h.
35 * top.c: Use sys/stat.h, not gdb_stat.h.
36 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
38 2013-11-18 Tom Tromey <tromey@redhat.com>
40 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
42 * gnulib/aclocal.m4: Update.
43 * gnulib/config.in: Update.
44 * gnulib/configure: Update.
45 * gnulib/import/Makefile.am: Update.
46 * gnulib/import/Makefile.in: Update.
47 * gnulib/import/m4/gnulib-cache.m4: Update.
48 * gnulib/import/m4/gnulib-comp.m4: Update.
49 * gnulib/import/m4/sys_stat_h.m4: New.
50 * gnulib/import/m4/time_h.m4: New.
51 * gnulib/import/sys_stat.in.h: New.
52 * gnulib/import/time.in.h: New.
54 2013-11-18 Tom Tromey <tromey@redhat.com>
57 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
59 2013-11-18 Tom Tromey <tromey@redhat.com>
62 * configure.ac: Don't check for unistd.h.
64 2013-11-18 Tom Tromey <tromey@redhat.com>
67 * configure.ac: Don't check for stdlib.h
68 * defs.h: Include stdlib.h unconditionally.
70 2013-11-18 Tom Tromey <tromey@redhat.com>
74 * configure.ac: Don't check for stddef.h.
75 * defs.h: Unconditionally include stddef.h. Remove duplicate
78 2013-11-18 Tom Tromey <tromey@redhat.com>
80 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
81 * common/gdb_dirent.h: Remove.
82 * common/filestuff.c: Use dirent.h.
83 * common/linux-osdata.c: Use dirent.h.
87 * configure.ac: Don't use AC_HEADER_DIRENT.
88 * linux-fork.c: Use dirent.h
89 * linux-nat.c: Use dirent.h.
90 * nto-procfs.c: Use dirent.h.
91 * procfs.c: Use dirent.h.
93 2013-11-18 Tom Tromey <tromey@redhat.com>
95 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
96 * gnulib/aclocal.m4: Update.
97 * gnulib/config.in: Update.
98 * gnulib/configure: Update.
99 * gnulib/import/Makefile.am: Update.
100 * gnulib/import/Makefile.in: Update.
101 * gnulib/import/dirent.in.h: New.
102 * gnulib/import/m4/dirent_h.m4: New.
103 * gnulib/import/m4/gnulib-cache.m4: Update.
104 * gnulib/import/m4/gnulib-comp.m4: Update.
106 2013-11-18 Tom Tromey <tromey@redhat.com>
108 * configure: Rebuild.
109 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
112 2013-11-18 Tom Tromey <tromey@redhat.com>
114 * common/gdb_string.h: Remove.
115 * aarch64-tdep.c: Use string.h, not gdb_string.h.
116 * ada-exp.y: Use string.h, not gdb_string.h.
117 * ada-lang.c: Use string.h, not gdb_string.h.
118 * ada-lex.l: Use string.h, not gdb_string.h.
119 * ada-typeprint.c: Use string.h, not gdb_string.h.
120 * ada-valprint.c: Use string.h, not gdb_string.h.
121 * aix-thread.c: Use string.h, not gdb_string.h.
122 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
123 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
124 * alpha-nat.c: Use string.h, not gdb_string.h.
125 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
126 * alpha-tdep.c: Use string.h, not gdb_string.h.
127 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
128 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
129 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
130 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
131 * amd64-nat.c: Use string.h, not gdb_string.h.
132 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
133 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
134 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
135 * arch-utils.c: Use string.h, not gdb_string.h.
136 * arm-linux-nat.c: Use string.h, not gdb_string.h.
137 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
138 * arm-tdep.c: Use string.h, not gdb_string.h.
139 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
140 * armbsd-tdep.c: Use string.h, not gdb_string.h.
141 * armnbsd-nat.c: Use string.h, not gdb_string.h.
142 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
143 * armobsd-tdep.c: Use string.h, not gdb_string.h.
144 * avr-tdep.c: Use string.h, not gdb_string.h.
145 * ax-gdb.c: Use string.h, not gdb_string.h.
146 * ax-general.c: Use string.h, not gdb_string.h.
147 * bcache.c: Use string.h, not gdb_string.h.
148 * bfin-tdep.c: Use string.h, not gdb_string.h.
149 * breakpoint.c: Use string.h, not gdb_string.h.
150 * build-id.c: Use string.h, not gdb_string.h.
151 * buildsym.c: Use string.h, not gdb_string.h.
152 * c-exp.y: Use string.h, not gdb_string.h.
153 * c-lang.c: Use string.h, not gdb_string.h.
154 * c-typeprint.c: Use string.h, not gdb_string.h.
155 * c-valprint.c: Use string.h, not gdb_string.h.
156 * charset.c: Use string.h, not gdb_string.h.
157 * cli-out.c: Use string.h, not gdb_string.h.
158 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
159 * cli/cli-decode.c: Use string.h, not gdb_string.h.
160 * cli/cli-dump.c: Use string.h, not gdb_string.h.
161 * cli/cli-interp.c: Use string.h, not gdb_string.h.
162 * cli/cli-logging.c: Use string.h, not gdb_string.h.
163 * cli/cli-script.c: Use string.h, not gdb_string.h.
164 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
165 * cli/cli-utils.c: Use string.h, not gdb_string.h.
166 * coffread.c: Use string.h, not gdb_string.h.
167 * common/common-utils.c: Use string.h, not gdb_string.h.
168 * common/filestuff.c: Use string.h, not gdb_string.h.
169 * common/linux-procfs.c: Use string.h, not gdb_string.h.
170 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
171 * common/signals.c: Use string.h, not gdb_string.h.
172 * common/vec.h: Use string.h, not gdb_string.h.
173 * core-regset.c: Use string.h, not gdb_string.h.
174 * corefile.c: Use string.h, not gdb_string.h.
175 * corelow.c: Use string.h, not gdb_string.h.
176 * cp-abi.c: Use string.h, not gdb_string.h.
177 * cp-support.c: Use string.h, not gdb_string.h.
178 * cp-valprint.c: Use string.h, not gdb_string.h.
179 * cris-tdep.c: Use string.h, not gdb_string.h.
180 * d-lang.c: Use string.h, not gdb_string.h.
181 * dbxread.c: Use string.h, not gdb_string.h.
182 * dcache.c: Use string.h, not gdb_string.h.
183 * demangle.c: Use string.h, not gdb_string.h.
184 * dicos-tdep.c: Use string.h, not gdb_string.h.
185 * disasm.c: Use string.h, not gdb_string.h.
186 * doublest.c: Use string.h, not gdb_string.h.
187 * dsrec.c: Use string.h, not gdb_string.h.
188 * dummy-frame.c: Use string.h, not gdb_string.h.
189 * dwarf2-frame.c: Use string.h, not gdb_string.h.
190 * dwarf2loc.c: Use string.h, not gdb_string.h.
191 * dwarf2read.c: Use string.h, not gdb_string.h.
192 * elfread.c: Use string.h, not gdb_string.h.
193 * environ.c: Use string.h, not gdb_string.h.
194 * eval.c: Use string.h, not gdb_string.h.
195 * event-loop.c: Use string.h, not gdb_string.h.
196 * exceptions.c: Use string.h, not gdb_string.h.
197 * exec.c: Use string.h, not gdb_string.h.
198 * expprint.c: Use string.h, not gdb_string.h.
199 * f-exp.y: Use string.h, not gdb_string.h.
200 * f-lang.c: Use string.h, not gdb_string.h.
201 * f-typeprint.c: Use string.h, not gdb_string.h.
202 * f-valprint.c: Use string.h, not gdb_string.h.
203 * fbsd-nat.c: Use string.h, not gdb_string.h.
204 * findcmd.c: Use string.h, not gdb_string.h.
205 * findvar.c: Use string.h, not gdb_string.h.
206 * fork-child.c: Use string.h, not gdb_string.h.
207 * frame.c: Use string.h, not gdb_string.h.
208 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
209 * frv-tdep.c: Use string.h, not gdb_string.h.
210 * gdb.c: Use string.h, not gdb_string.h.
211 * gdb_bfd.c: Use string.h, not gdb_string.h.
212 * gdbarch.c: Use string.h, not gdb_string.h.
213 * gdbtypes.c: Use string.h, not gdb_string.h.
214 * gnu-nat.c: Use string.h, not gdb_string.h.
215 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
216 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
217 * go-exp.y: Use string.h, not gdb_string.h.
218 * go-lang.c: Use string.h, not gdb_string.h.
219 * go32-nat.c: Use string.h, not gdb_string.h.
220 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
221 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
222 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
223 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
224 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
225 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
226 * i386-linux-nat.c: Use string.h, not gdb_string.h.
227 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
228 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
229 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
230 * i386-tdep.c: Use string.h, not gdb_string.h.
231 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
232 * i386gnu-nat.c: Use string.h, not gdb_string.h.
233 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
234 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
235 * i387-tdep.c: Use string.h, not gdb_string.h.
236 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
237 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
238 * inf-child.c: Use string.h, not gdb_string.h.
239 * inf-ptrace.c: Use string.h, not gdb_string.h.
240 * inf-ttrace.c: Use string.h, not gdb_string.h.
241 * infcall.c: Use string.h, not gdb_string.h.
242 * infcmd.c: Use string.h, not gdb_string.h.
243 * inflow.c: Use string.h, not gdb_string.h.
244 * infrun.c: Use string.h, not gdb_string.h.
245 * interps.c: Use string.h, not gdb_string.h.
246 * iq2000-tdep.c: Use string.h, not gdb_string.h.
247 * irix5-nat.c: Use string.h, not gdb_string.h.
248 * jv-exp.y: Use string.h, not gdb_string.h.
249 * jv-lang.c: Use string.h, not gdb_string.h.
250 * jv-typeprint.c: Use string.h, not gdb_string.h.
251 * jv-valprint.c: Use string.h, not gdb_string.h.
252 * language.c: Use string.h, not gdb_string.h.
253 * linux-fork.c: Use string.h, not gdb_string.h.
254 * linux-nat.c: Use string.h, not gdb_string.h.
255 * lm32-tdep.c: Use string.h, not gdb_string.h.
256 * m2-exp.y: Use string.h, not gdb_string.h.
257 * m2-typeprint.c: Use string.h, not gdb_string.h.
258 * m32c-tdep.c: Use string.h, not gdb_string.h.
259 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
260 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
261 * m32r-rom.c: Use string.h, not gdb_string.h.
262 * m32r-tdep.c: Use string.h, not gdb_string.h.
263 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
264 * m68k-tdep.c: Use string.h, not gdb_string.h.
265 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
266 * m68klinux-nat.c: Use string.h, not gdb_string.h.
267 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
268 * m88k-tdep.c: Use string.h, not gdb_string.h.
269 * macrocmd.c: Use string.h, not gdb_string.h.
270 * main.c: Use string.h, not gdb_string.h.
271 * mdebugread.c: Use string.h, not gdb_string.h.
272 * mem-break.c: Use string.h, not gdb_string.h.
273 * memattr.c: Use string.h, not gdb_string.h.
274 * memory-map.c: Use string.h, not gdb_string.h.
275 * mep-tdep.c: Use string.h, not gdb_string.h.
276 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
277 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
278 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
279 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
280 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
281 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
282 * mi/mi-console.c: Use string.h, not gdb_string.h.
283 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
284 * mi/mi-interp.c: Use string.h, not gdb_string.h.
285 * mi/mi-main.c: Use string.h, not gdb_string.h.
286 * mi/mi-parse.c: Use string.h, not gdb_string.h.
287 * microblaze-rom.c: Use string.h, not gdb_string.h.
288 * microblaze-tdep.c: Use string.h, not gdb_string.h.
289 * mingw-hdep.c: Use string.h, not gdb_string.h.
290 * minidebug.c: Use string.h, not gdb_string.h.
291 * minsyms.c: Use string.h, not gdb_string.h.
292 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
293 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
294 * mips-tdep.c: Use string.h, not gdb_string.h.
295 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
296 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
297 * mipsread.c: Use string.h, not gdb_string.h.
298 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
299 * mn10300-tdep.c: Use string.h, not gdb_string.h.
300 * monitor.c: Use string.h, not gdb_string.h.
301 * moxie-tdep.c: Use string.h, not gdb_string.h.
302 * mt-tdep.c: Use string.h, not gdb_string.h.
303 * nbsd-tdep.c: Use string.h, not gdb_string.h.
304 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
305 * nto-procfs.c: Use string.h, not gdb_string.h.
306 * nto-tdep.c: Use string.h, not gdb_string.h.
307 * objc-lang.c: Use string.h, not gdb_string.h.
308 * objfiles.c: Use string.h, not gdb_string.h.
309 * opencl-lang.c: Use string.h, not gdb_string.h.
310 * osabi.c: Use string.h, not gdb_string.h.
311 * osdata.c: Use string.h, not gdb_string.h.
312 * p-exp.y: Use string.h, not gdb_string.h.
313 * p-lang.c: Use string.h, not gdb_string.h.
314 * p-typeprint.c: Use string.h, not gdb_string.h.
315 * parse.c: Use string.h, not gdb_string.h.
316 * posix-hdep.c: Use string.h, not gdb_string.h.
317 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
318 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
319 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
320 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
321 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
322 * printcmd.c: Use string.h, not gdb_string.h.
323 * procfs.c: Use string.h, not gdb_string.h.
324 * prologue-value.c: Use string.h, not gdb_string.h.
325 * python/py-auto-load.c: Use string.h, not gdb_string.h.
326 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
327 * ravenscar-thread.c: Use string.h, not gdb_string.h.
328 * regcache.c: Use string.h, not gdb_string.h.
329 * registry.c: Use string.h, not gdb_string.h.
330 * remote-fileio.c: Use string.h, not gdb_string.h.
331 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
332 * remote-mips.c: Use string.h, not gdb_string.h.
333 * remote-sim.c: Use string.h, not gdb_string.h.
334 * remote.c: Use string.h, not gdb_string.h.
335 * reverse.c: Use string.h, not gdb_string.h.
336 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
337 * ser-base.c: Use string.h, not gdb_string.h.
338 * ser-go32.c: Use string.h, not gdb_string.h.
339 * ser-mingw.c: Use string.h, not gdb_string.h.
340 * ser-pipe.c: Use string.h, not gdb_string.h.
341 * ser-tcp.c: Use string.h, not gdb_string.h.
342 * ser-unix.c: Use string.h, not gdb_string.h.
343 * serial.c: Use string.h, not gdb_string.h.
344 * sh-tdep.c: Use string.h, not gdb_string.h.
345 * sh64-tdep.c: Use string.h, not gdb_string.h.
346 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
347 * skip.c: Use string.h, not gdb_string.h.
348 * sol-thread.c: Use string.h, not gdb_string.h.
349 * solib-dsbt.c: Use string.h, not gdb_string.h.
350 * solib-frv.c: Use string.h, not gdb_string.h.
351 * solib-osf.c: Use string.h, not gdb_string.h.
352 * solib-spu.c: Use string.h, not gdb_string.h.
353 * solib-target.c: Use string.h, not gdb_string.h.
354 * solib.c: Use string.h, not gdb_string.h.
355 * somread.c: Use string.h, not gdb_string.h.
356 * source.c: Use string.h, not gdb_string.h.
357 * sparc-nat.c: Use string.h, not gdb_string.h.
358 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
359 * sparc-tdep.c: Use string.h, not gdb_string.h.
360 * sparc64-tdep.c: Use string.h, not gdb_string.h.
361 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
362 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
363 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
364 * spu-linux-nat.c: Use string.h, not gdb_string.h.
365 * spu-multiarch.c: Use string.h, not gdb_string.h.
366 * spu-tdep.c: Use string.h, not gdb_string.h.
367 * stabsread.c: Use string.h, not gdb_string.h.
368 * stack.c: Use string.h, not gdb_string.h.
369 * std-regs.c: Use string.h, not gdb_string.h.
370 * symfile.c: Use string.h, not gdb_string.h.
371 * symmisc.c: Use string.h, not gdb_string.h.
372 * symtab.c: Use string.h, not gdb_string.h.
373 * target.c: Use string.h, not gdb_string.h.
374 * thread.c: Use string.h, not gdb_string.h.
375 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
376 * tilegx-tdep.c: Use string.h, not gdb_string.h.
377 * top.c: Use string.h, not gdb_string.h.
378 * tracepoint.c: Use string.h, not gdb_string.h.
379 * tui/tui-command.c: Use string.h, not gdb_string.h.
380 * tui/tui-data.c: Use string.h, not gdb_string.h.
381 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
382 * tui/tui-file.c: Use string.h, not gdb_string.h.
383 * tui/tui-layout.c: Use string.h, not gdb_string.h.
384 * tui/tui-out.c: Use string.h, not gdb_string.h.
385 * tui/tui-regs.c: Use string.h, not gdb_string.h.
386 * tui/tui-source.c: Use string.h, not gdb_string.h.
387 * tui/tui-stack.c: Use string.h, not gdb_string.h.
388 * tui/tui-win.c: Use string.h, not gdb_string.h.
389 * tui/tui-windata.c: Use string.h, not gdb_string.h.
390 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
391 * typeprint.c: Use string.h, not gdb_string.h.
392 * ui-file.c: Use string.h, not gdb_string.h.
393 * ui-out.c: Use string.h, not gdb_string.h.
394 * user-regs.c: Use string.h, not gdb_string.h.
395 * utils.c: Use string.h, not gdb_string.h.
396 * v850-tdep.c: Use string.h, not gdb_string.h.
397 * valarith.c: Use string.h, not gdb_string.h.
398 * valops.c: Use string.h, not gdb_string.h.
399 * valprint.c: Use string.h, not gdb_string.h.
400 * value.c: Use string.h, not gdb_string.h.
401 * varobj.c: Use string.h, not gdb_string.h.
402 * vax-tdep.c: Use string.h, not gdb_string.h.
403 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
404 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
405 * windows-nat.c: Use string.h, not gdb_string.h.
406 * xcoffread.c: Use string.h, not gdb_string.h.
407 * xml-support.c: Use string.h, not gdb_string.h.
408 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
409 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
411 2013-11-18 Tom Tromey <tromey@redhat.com>
413 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
415 * gnulib/aclocal.m4: Update.
416 * gnulib/config.in: Update.
417 * gnulib/configure: Update.
418 * gnulib/import/Makefile.am: Update.
419 * gnulib/import/Makefile.in: Update.
420 * gnulib/import/errno.in.h: New.
421 * gnulib/import/intprops.h: New.
422 * gnulib/import/m4/errno_h.m4: New.
423 * gnulib/import/m4/gnulib-cache.m4: Update.
424 * gnulib/import/m4/gnulib-comp.m4: Update.
425 * gnulib/import/m4/strerror.m4: New.
426 * gnulib/import/m4/strstr.m4: New.
427 * gnulib/import/m4/sys_socket_h.m4: New.
428 * gnulib/import/strerror-override.c: New.
429 * gnulib/import/strerror-override.h: New.
430 * gnulib/import/strerror.c: New.
431 * gnulib/import/strstr.c: New.
433 2013-11-18 Tom Tromey <tromey@redhat.com>
435 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
438 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
440 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
441 * sparc-tdep.h: And its prototype.
443 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
445 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
447 2013-11-18 Pedro Alves <palves@redhat.com>
449 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
452 2013-11-18 Joel Brobecker <brobecker@adacore.com>
454 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
455 to -list-features output.
457 2013-11-17 Joel Brobecker <brobecker@adacore.com>
459 * dwarf2expr.h (struct dwarf_expr_context_funcs)
460 <read_addr_from_reg>: Renames "read_reg".
461 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
463 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
464 Use read_addr_from_reg in place of read_reg.
465 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
466 in place of read_reg.
467 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
469 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
470 with dwarf_expr_read_addr_from_reg.
471 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
472 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
473 needs_frame_read_addr_from_reg.
475 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
477 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
479 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
481 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
484 2013-11-15 Tom Tromey <tromey@redhat.com>
487 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
488 (classify_name): Likewise. Prefer a field of "this" over a
490 (classify_inner_name, yylex): Update.
492 2013-11-15 Joel Brobecker <brobecker@adacore.com>
494 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
495 Extend the documentation a bit.
496 <get_reg_value>: New field.
497 * dwarf2loc.c (dwarf_expr_get_reg_value)
498 (needs_frame_get_reg_value): New functions.
499 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
501 * dwarf2-frame.c (get_reg_value): New function.
502 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
503 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
504 Use new callback to compute result_val.
506 2013-11-15 Alan Modra <amodra@gmail.com>
508 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
509 (ppc64_desc_entry_point): ..this. Update comments here and at
511 (ppc64_standard_linkage1, ppc64_standard_linkage2,
512 ppc64_standard_linkage3): Update comments.
513 (ppc64_standard_linkage4, ppc64_standard_linkage5,
514 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
516 (ppc64_standard_linkage4_target): New function.
517 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
518 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
519 nop match. Fix comment wrap.
521 2013-11-14 Pedro Alves <palves@redhat.com>
523 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
524 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
526 2013-11-14 Pedro Alves <palves@redhat.com>
528 * infrun.c (struct execution_control_state)
529 <stepped_after_stopped_by_watchpoint>: New field.
530 (get_inferior_stop_soon): New function.
531 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
532 moved to struct execution_control_state -- adjust. Use
533 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
535 (handle_signal_stop): New function, factored out from
536 handle_inferior_event.
538 2013-11-14 Pedro Alves <palves@redhat.com>
540 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
542 * breakpoint.c (bpstat_explains_signal): Adjust to return a
544 (explains_signal_watchpoint, base_breakpoint_explains_signal):
545 Adjust to return a boolean.
546 * breakpoint.h (enum bpstat_signal_value): Delete.
547 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
548 (bpstat_explains_signal): Likewise.
549 * infrun.c (handle_inferior_event) <random signal checks>:
550 bpstat_explains_signal now returns a boolean - adjust. No longer
551 consider hiding signals.
553 2013-11-14 Pedro Alves <palves@redhat.com>
555 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
556 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
557 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
559 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
560 instead of BPSTAT_SIGNAL_HIDE.
561 * infrun.c (handle_inferior_event): Rework random signal checks.
563 2013-11-14 Pedro Alves <palves@redhat.com>
565 * infrun.c (struct execution_control_state): Remove
566 'random_signal' field.
567 (handle_syscall_event): Use bpstat_causes_stop instead of
568 bpstat_explains_signal. Don't set ecs->random_signal.
569 (handle_inferior_event): New 'random_signal' local.
570 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
571 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
572 bpstat_explains_signal. Don't set ecs->random_signal.
573 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
576 2013-11-14 Pedro Alves <palves@redhat.com>
578 * infrun.c (handle_inferior_event): Move comment from the
579 function's body to the function's description, adjusted.
581 2013-11-14 Pedro Alves <palves@redhat.com>
583 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
584 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
585 Assert we never fall through out of the TARGET_WAITKIND_LOADED
588 2013-11-14 Tom Tromey <tromey@redhat.com>
590 * python/py-linetable.c (ltpy_has_line)
591 (ltpy_get_all_source_lines): Fix loop termination condition.
593 2013-11-14 Joel Brobecker <brobecker@adacore.com>
595 * mi/mi-parse.h (struct mi_parse) <language>: New field.
596 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
597 PARSE->LANGUAGE during command execution, if set.
598 * mi/mi-parse.c: Add "language.h" #include.
599 (mi_parse): Add parsing of "--language" command option.
601 * NEWS: Add entry mentioning the new "--language" command option.
603 2013-11-14 Pedro Alves <palves@redhat.com>
604 Joel Brobecker <brobecker@adacore.com>
606 * cli/cli-utils.h (extract_arg_const): Add declaration.
607 * cli/cli-utils.c (extract_arg_const): New function.
608 (extract_arg): Reimplement using extract_arg_const.
610 2013-11-14 Joel Brobecker <brobecker@adacore.com>
612 * language.h: Add "symtab.h" #include.
614 2013-11-13 Doug Evans <xdje42@gmail.com>
616 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
617 specific breakpoints, don't evaluate breakpoint condition if
620 2013-11-13 Keith Seitz <keiths@redhat.com>
624 * cp-support.c (insepct_type): Add support for substituting
625 namespace aliases, too.
626 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
627 for DW_TAG_imported_declaration.
628 (add_partial_symbol): Likewise.
629 (process_die): Handle namespace aliases with
630 read_namespace_alias.
631 (die_needs_namespace): Add DW_TAG_imported_declaration.
632 (read_namespace_alias): New function.
633 (load_partial_dies): Load DW_TAG_imported_declaration, too.
634 (new_symbol_full): Handle DW_TAG_imported_declaration.
636 2013-11-13 Keith Seitz <keiths@redhat.com>
638 * p-exp.y (uptok): Make first parameter const.
639 (yylex): Make `tokstart' and `tokptr' const.
640 Don't copy the lexer input to a temporary buffer.
642 Remove const workaround for parse_escape.
643 Create a temporary buffer for a convenience variable instead
644 of doing in-place modification of the input.
645 If a match is found with a different case from the input,
646 do not change the input at all.
647 Use `tmp' to construct the resultant stoken instead of
650 2013-11-13 Doug Evans <xdje42@gmail.com>
652 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
654 2013-11-13 Joel Brobecker <brobecker@adacore.com>
656 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
657 entry with "ada-exceptions".
659 2013-11-13 Joel Brobecker <brobecker@adacore.com>
661 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
662 after re-initialization of OBJFILE's obstack.
664 2013-11-12 Doug Evans <xdje42@gmail.com>
666 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
667 bs->stop != 0 on entry. Update function comment. Simplify early
668 exit for frame mismatch. Reindent rest of function.
670 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
672 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
675 2013-11-12 Doug Evans <dje@google.com>
677 Work around gold/15646.
678 * dwarf2read.c (read_index_from_section): Update comment.
679 (struct dw2_symtab_iterator): New member global_seen.
680 (dw2_symtab_iter_init): Initialize it.
681 (dw2_symtab_iter_next): Skip duplicate global symbols.
682 (dw2_expand_symtabs_matching): Ditto.
684 2013-11-12 Joel Brobecker <brobecker@adacore.com>
686 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
687 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
689 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
690 (mi_cmd_info_ada_exceptions): New function.
691 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
693 2013-11-12 Joel Brobecker <brobecker@adacore.com>
695 * ada-lang.h: #include "vec.h".
696 (struct ada_exc_info): New.
697 (ada_exc_info): New typedef.
698 (DEF_VEC_O(ada_exc_info)): New vector.
699 (ada_exceptions_list): Add declaration.
700 * ada-lang.c (ada_is_exception_sym)
701 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
702 (sort_remove_dups_ada_exceptions_list)
703 (ada_exc_search_name_matches, ada_add_standard_exceptions)
704 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
705 (ada_exceptions_list_1, ada_exceptions_list)
706 (info_exceptions_command): New function.
707 (_initialize_ada_language): Add "info exception" command.
709 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
712 * NEWS: Add linetable feature.
713 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
714 * python/py-linetable.c: New file.
715 * python/py-symtab.c (stpy_get_linetable): New function.
716 * python/python-internal.h (symtab_to_linetable_object): Declare.
717 (gdbpy_initialize_linetable): Ditto.
718 * python/python.c (_initialize_python): Call
719 gdbpy_initialize_linetable.
721 2013-11-11 Joel Brobecker <brobecker@adacore.com>
723 * ada-lang.c (create_ada_exception_catchpoint): Enhance
724 the documentation of fields "except_string" and "condition".
725 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
726 CONDITION on the heap before passing it to
727 create_ada_exception_catchpoint.
728 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
731 2013-11-11 Tom Tromey <tromey@redhat.com>
733 * config.in, configure: Rebuild.
734 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
736 2013-11-11 Joel Brobecker <brobecker@adacore.com>
738 * remote-sim.c (gdbsim_detach): Break declaration into
739 shorter lines. No code change.
741 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
743 * remote-sim.c (gdbsim_detach): Fix prototype.
745 2013-11-08 Doug Evans <dje@google.com>
747 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
748 (create_debug_types_hash_table): Only print debugging messages for
749 each TU if dwarf2-read >= 2.
750 (process_queue): Ditto.
751 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
754 2013-11-08 Tom Tromey <tromey@redhat.com>
756 * configure: Rebuild.
757 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
759 2013-11-08 Tom Tromey <tromey@redhat.com>
761 * configure, config.in: Rebuild.
762 * configure.ac: Remove unused configury.
764 2013-11-08 Tom Tromey <tromey@redhat.com>
766 * m32c-tdep.c: Use gdb_string.h.
768 2013-11-08 Tom Tromey <tromey@redhat.com>
770 * configure, config.in: Rebuild.
771 * configure.ac: Remove all link.h-related checks.
773 2013-11-08 Tom Tromey <tromey@redhat.com>
775 * acinclude.m4: Include common.m4.
776 * common/common.m4: New file.
777 * configure, config.in: Rebuild.
778 * configure.ac: Use GDB_AC_COMMON.
780 2013-11-08 Doug Evans <dje@google.com>
782 * NEWS: Mention that "set debug symtab-create" now accepts a
784 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
785 to set the symtab's primary flag.
786 * jit.c (finalize_symtab): Ditto.
787 * mdebugread.c (psymtab_to_symtab_1): Ditto.
788 * symfile.c (allocate_symtab): Only print debugging messages for
789 symtab_create_debug levels 2 and higher.
790 * symtab.c (symtab_create_debug): Change type to unsigned int.
791 (set_symtab_primary): New function.
792 (_initialize_symtab): Change "set debug symtab-create" to a
794 * symtab.h (set_symtab_primary): Declare.
795 (symtab_create_debug): Update decl.
797 2013-11-08 Tom Tromey <tromey@redhat.com>
799 * aix-thread.c (aix_thread_detach): Update.
800 * corelow.c (core_detach): Update.
801 * darwin-nat.c (darwin_detach): Update.
802 * dec-thread.c (dec_thread_detach): Update.
803 * gnu-nat.c (gnu_detach): Update.
804 * go32-nat.c (go32_detach): Update.
805 * inf-ptrace.c (inf_ptrace_detach): Update.
806 * inf-ttrace.c (inf_ttrace_detach): Update.
807 * linux-fork.c (linux_fork_detach): Update.
808 * linux-fork.h (linux_fork_detach): Update.
809 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
810 local for const-correctness.
811 * linux-thread-db.c (thread_db_detach): Update.
812 * monitor.c (monitor_detach): Update.
813 * nto-procfs.c (procfs_detach): Update.
814 * procfs.c (procfs_detach): Update.
815 * record.c (record_detach): Update.
816 * record.h (record_detach): Update.
817 * remote-m32r-sdi.c (m32r_detach): Update.
818 * remote-mips.c (mips_detach): Update.
819 * remote-sim.c (gdbsim_detach): Update.
820 * remote.c (remote_detach_1, remote_detach)
821 (extended_remote_detach): Update.
822 * sol-thread.c (sol_thread_detach): Update.
823 * target.c (target_detach): Make "args" const.
824 (init_dummy_target): Update.
825 * target.h (struct target_ops) <to_detach>: Make argument const.
826 (target_detach): Likewise.
827 * windows-nat.c (windows_detach): Update.
829 2013-11-07 Doug Evans <dje@google.com>
832 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
833 and align fields for PT_GNU_RELRO segments.
835 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
838 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
840 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
842 * NEWS: Document Python temporary breakpoint support.
843 * python/py-breakpoint.c (bppy_get_temporary): New function.
844 (bppy_init): New keyword: temporary. Parse it and set breakpoint
845 to temporary if True.
847 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
849 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
850 removed to allow analyzing unconditional branch instructions
851 with PC-relative offsets of zero.
853 2013-11-07 Yao Qi <yao@codesourcery.com>
855 * mi/mi-cmd-var.c: Include "language.h".
856 (mi_cmd_var_info_expression): Get language name from
858 * varobj.c (varobj_language_string): Remove.
859 (variable_language): Remove declaration.
861 (varobj_get_language): Change the type of return value.
862 (variable_language): Remove.
863 * varobj.h (enum varobj_languages): Remove.
864 (varobj_language_string): Remove declaration.
865 (varobj_get_language): Update declaration.
867 2013-11-07 Yao Qi <yao@codesourcery.com>
869 * language.h (struct language_defn) <la_natural_name>: New
871 * ada-lang.c (ada_language_defn): Initialize field
873 * c-lang.c (c_language_defn): Likewise.
874 (cplus_language_defn, asm_language_defn): Likewise.
875 * d-lang.c (d_language_defn): Likewise.
876 * f-lang.c (f_language_defn): Likewise.
877 * go-lang.c (go_language_defn): Likewise.
878 * jv-lang.c (java_language_defn): Likewise.
879 * language.c (unknown_language_defn ): Likewise.
880 (auto_language_defn): Likewise.
881 * m2-lang.c (m2_language_defn): Likewise.
882 * objc-lang.c (objc_language_defn): Likewise.
883 * opencl-lang.c (opencl_language_defn): Likewise.
884 * p-lang.c (pascal_language_defn): Likewise.
886 2013-11-07 Yao Qi <yao@codesourcery.com>
888 * language.c (language_str): Return const char *.
889 (add_language): Add const to 'language_names'
890 * language.h (struct language_defn) <la_name>: Add const.
891 (language_str: Update declaration.
893 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
895 * s390-linux-nat.c (s390_read_description): Consider the TE field
896 in the HWCAP for determining 'have_regset_tdb'.
898 2013-11-06 Will Newton <will.newton@linaro.org>
901 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
902 values. (read_partial_die): Likewise.
904 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
907 * top.c (command_line_input): Unify interactivity tests to use
908 input_from_terminal_p.
909 * event-top.c (command_line_handler): Likewise.
911 2013-11-06 Yao Qi <yao@codesourcery.com>
913 * Makefile.in (check-perf): New target.
915 2013-11-05 Will Newton <will.newton@linaro.org>
918 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
919 (arm_print_float_info): Likewise.
921 2013-11-04 Anton Blanchard <anton@samba.org>
923 * target.c (memory_xfer_partial): Cap write to 4KB.
925 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
927 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
928 probe scan even when the arch provides no get_longjmp_target.
930 2013-10-31 Pedro Alves <palves@redhat.com>
932 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
933 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
934 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
935 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
936 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
937 <bpstat handling>: If the bpstat chain wants the signal to be
938 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
941 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
943 * breakpoint.c (update_watchpoint): Update error message and add
944 an additional error message.
946 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
948 * s390-tdep.h: Rename to...
949 * s390-linux-tdep.h: ...here.
950 * s390-tdep.c: Rename to...
951 * s390-linux-tdep.c: ...here. Adjust #include.
952 * s390-nat.c: Rename to...
953 * s390-linux-nat.c: ...here. Adjust #include.
954 * config/s390/s390.mh: Rename to...
955 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
957 * configure.host: Reflect host rename "s390" -> "linux".
958 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
959 * Makefile.in (ALL_TARGET_OBS): Likewise.
960 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
962 (ALLDEPFILES): Reflect rename of .c files.
964 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
966 * s390-nat.c: Whitespace cleanup.
967 * s390-tdep.c: Likewise.
968 * s390-tdep.h: Remove empty line at end of file.
970 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
972 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
975 2013-10-29 Tom Tromey <tromey@redhat.com>
977 * utils.c (reg): Move undefinition...
978 * gdb_curses.h: ... here. Update comment to mention AIX.
980 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
982 * exec.h (add_target_sections_of_objfile): New declaration.
983 * exec.c (add_target_sections_of_objfile): New function.
984 * symfile.c (add_symbol_file_command): Update current target sections.
985 (remove_symbol_file_command): New command.
986 (symfile_free_objfile): New function.
987 (_initialize_symfile): Register observer for free_objfile events.
988 * NEWS: Add description of the remove-symbol-file command.
989 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
990 * objfiles.c (free_objfile): Notify free_objfile.
991 (is_addr_in_objfile): New function.
992 * objfiles.h (is_addr_in_objfile): New declaration.
993 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
994 events instead of solib_unloaded events.
995 (_initialize_printcmd): Register observer for free_objfile instead
996 of solib_unloaded notifications.
997 * solib.c (remove_user_added_objfile): New function.
998 (_initialize_symfile): Add remove-symbol-file.
1000 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1002 * infcmd.c (default_print_one_register_info): Use val_print to
1003 print all values even optimized out or unavailable ones. Don't
1004 try to print a raw form of optimized out or unavailable values.
1006 2013-10-29 Yao Qi <yao@codesourcery.com>
1008 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1009 parameter 'arg' instead of from program_space_data.
1010 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1011 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1012 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1013 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1014 * inflow.c (inflow_inferior_data_cleanup): Get data from
1015 parameter 'arg' instead of inferior_data.
1016 * registry.h: Add comments.
1018 2013-10-28 Pedro Alves <palves@redhat.com>
1020 * breakpoint.c (watchpoints_triggered)
1021 <!target_stopped_data_address>: Hardcode return 1.
1023 2013-10-28 Pedro Alves <palves@redhat.com>
1025 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1028 2013-10-28 Pedro Alves <palves@redhat.com>
1030 * infrun.c (process_event_stop_test): New function, factored out
1031 from handle_inferior_event.
1032 (handle_inferior_event): 'process_event_stop_test' is now a
1033 function instead of a goto label -- adjust.
1035 2013-10-28 Pedro Alves <palves@redhat.com>
1037 * infrun.c (handle_inferior_event): Move process_event_stop_test
1038 goto label to the else branch of the ecs->random_signal check,
1039 along with FRAME and GDBARCH re-fetching.
1041 2013-10-28 Pedro Alves <palves@redhat.com>
1043 * infrun.c (switch_back_to_stepped_thread): New function, factored
1044 out from handle_inferior_event.
1045 (handle_inferior_event): Adjust to call
1046 switch_back_to_stepped_thread. Call it also at the tail of the
1047 random signal handling, and return, instead of also handling
1048 random signals just before the stepping tests.
1050 2013-10-28 Pedro Alves <palves@redhat.com>
1052 * infrun.c (clear_stop_func): Delete.
1053 (handle_inferior_event): Don't call clear_stop_func and don't
1054 clear 'ecs->random_signal'.
1056 2013-10-27 Yao Qi <yao@codesourcery.com>
1058 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1059 (varobj_create, varobj_get_path_expr): Update.
1060 (varobj_value_has_mutated, varobj_update): Likewise.
1061 (create_child_with_value, new_root_variable): Likewise.
1062 (number_of_children, name_of_variable): Likewise.
1063 (value_of_child, my_value_of_variable): Likewise.
1064 (varobj_value_is_changeable_p): Likewise.
1066 2013-10-25 Yao Qi <yao@codesourcery.com>
1068 * language.h (struct lang_varobj_ops): Declare.
1069 (struct language_defn) <la_varobj_ops>: New field.
1070 * ada-lang.c: Include "varobj.h"
1071 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1073 * c-lang.c: Include "varobj.h"
1074 (c_language_defn): Initialize field 'la_varobj_ops' with
1076 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1078 (asm_language_defn): Initialize field 'la_varobj_ops' with
1080 (minimal_language_defn): Likewise.
1081 * d-lang.c (d_language_defn): Likewise.
1082 * f-lang.c (f_language_defn): Likewise.
1083 * go-lang.c (go_language_defn): Likewise.
1084 * m2-lang.c (m2_language_defn): Likewise.
1085 * objc-lang.c (objc_language_defn): Likewise.
1086 * opencl-lang.c (opencl_language_defn): Likewise.
1087 * p-lang.c (pascal_language_defn): Likewise.
1088 * language.c (unknown_language_defn): Likewise.
1089 (auto_language_defn): Likewise.
1090 (local_language_defn): Likewise.
1091 * jv-lang.c (java_language_defn): Initialize field
1092 'la_varobj_ops' with java_varobj_ops.
1093 * varobj.c (varobj_create): Update.
1094 * varobj.h (default_varobj_ops): Define macro.
1096 2013-10-25 Pedro Alves <palves@redhat.com>
1098 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1100 (cp_print_static_field): If the value is entirely optimized out,
1101 print <optimized out> here.
1102 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1104 * p-valprint.c (pascal_object_print_static_field): If the value is
1105 entirely optimized out, print <optimized out> here.
1106 * valops.c (do_search_struct_field)
1107 (value_struct_elt_for_reference): No longer handle a NULL static
1109 * value.c (value_static_field): Return an optimized out value
1112 2013-10-25 Yao Qi <yao@codesourcery.com>
1114 * remote.c (remote_traceframe_info): Return early if
1115 traceframe is not selected.
1117 2013-10-25 Yao Qi <yao@codesourcery.com>
1119 * tracepoint.c (traceframe_fun): Remove.
1120 (traceframe_sal): Remove.
1121 (set_traceframe_context): Add local variables.
1123 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1125 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1128 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1130 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1131 failure from register information collection.
1133 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1135 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1137 (linux_corefile_thread_callback): Update accordingly.
1138 (linux_make_corefile_notes): Likewise.
1140 2013-10-24 Pedro Alves <palves@redhat.com>
1142 * NEWS (New options): Mention set/show startup-with-shell.
1143 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1145 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1146 startup-with-shell'.
1147 (show_startup_with_shell): New function.
1148 (_initialize_fork_child): Register the set/show startup-with-shell
1150 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1151 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1152 * procfs.c (procfs_init_inferior): Remove comment.
1153 * infcmd.c (startup_with_shell): New global.
1154 * inferior.h (startup_with_shell): Declare global.
1155 (STARTUP_WITH_SHELL): Delete.
1156 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1158 2013-10-23 Pedro Alves <palves@redhat.com>
1160 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1161 * common/signals.c: Include "gdb_assert.h".
1162 (signals): New field 'symbol'.
1163 (SET): Use the 'symbol' parameter.
1164 (gdb_signal_to_symbol_string): New function.
1165 * infrun.c (handle_inferior_event) <random signal>: In debug
1166 output, print the random signal enum as string in addition to its
1168 * target/waitstatus.c (target_waitstatus_to_string): Print the
1169 signal's enum value as string instead of the (POSIX) signal name.
1171 2013-10-23 Gary Benson <gbenson@redhat.com>
1174 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1175 from 32 to 18. Adjusted fscanf format string accordingly.
1176 (Avoids leaving cmd unterminated.)
1177 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1178 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1179 that local_address and remote_address will not overflow.
1180 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1181 leaving dependencies unterminated. Parse size as "%u" to match
1184 2013-10-22 Pedro Alves <palves@redhat.com>
1186 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1187 set ecs->random signal.
1189 2013-10-22 Pedro Alves <palves@redhat.com>
1191 * infrun.c (keep_going): Update comments.
1193 2013-10-22 Pedro Alves <palves@redhat.com>
1195 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1196 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1198 2013-10-22 Pedro Alves <palves@redhat.com>
1200 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1202 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1203 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1204 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1205 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1206 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1207 (GDB_SIGNAL_LAST): Change description string.
1208 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1209 Adjust to signal renaming.
1210 * darwin-nat.c (darwin_decode_message): Likewise.
1212 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1214 * MAINTAINERS (Write After Approval): Add myself to the list.
1216 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1218 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1219 forced off, downgrade them to software watchpoints if possible,
1220 and error out if not possible.
1221 (watch_command_1): Move watchpoint type selection closer to
1222 watchpoint creation, and extend the comments.
1224 2013-10-18 Pedro Alves <palves@redhat.com>
1227 * infrun.c (handle_inferior_event): Keep going if we got a random
1228 signal we should not stop for, instead of falling through to the
1231 2013-10-18 Yao Qi <yao@codesourcery.com>
1233 * c-varobj.c (cplus_number_of_children): Fix indentation.
1235 2013-10-17 Tom Tromey <tromey@redhat.com>
1238 * printcmd.c (printcmd): Call gdb_flush.
1240 2013-10-17 Tom Tromey <tromey@redhat.com>
1242 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1243 (elf_locate_sections): Update.
1245 2013-10-17 Yao Qi <yao@codesourcery.com>
1247 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1248 * ada-varobj.c: Remove the include of ada-varobj.h.
1249 (ada_varobj_get_number_of_children): Declare.
1250 (ada_varobj_get_name_of_child): Make it static.
1251 (ada_varobj_get_path_expr_of_child): Likewise.
1252 (ada_varobj_get_value_of_child): Likewise.
1253 (ada_varobj_get_type_of_child): Likewise.
1254 (ada_varobj_get_value_of_array_variable): Likewise.
1255 * ada-varobj.h: Remove.
1257 2013-10-17 Yao Qi <yao@codesourcery.com>
1259 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1260 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1261 * ada-varobj.c: Include "varobj.h".
1262 (ada_number_of_children): New. Moved from varobj.c.
1263 (ada_name_of_variable, ada_name_of_child): Likewise.
1264 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1265 (ada_type_of_child, ada_value_of_variable): Likewise.
1266 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1267 (ada_varobj_ops): New.
1268 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1269 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1270 * gdbtypes.h (get_target_type): Declare.
1271 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1273 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1274 (ANONYMOUS_UNION_NAME): Likewise.
1275 (get_type, get_value_type, get_target_type): Remove declarations.
1276 (value_get_print_value, varobj_value_get_print_value): Likewise.
1277 (c_number_of_children, c_name_of_variable): Likewise.
1278 (c_name_of_child, c_path_expr_of_child): Likewise.
1279 (c_value_of_child, c_type_of_child): Likewise.
1280 (c_value_of_variable, cplus_number_of_children): Likewise.
1281 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1282 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1283 (cplus_value_of_child, cplus_type_of_child): Likewise.
1284 (cplus_value_of_variable, java_number_of_children): Likewise.
1285 (java_name_of_variable, java_name_of_child): Likewise.
1286 (java_path_expr_of_child, java_value_of_child): Likewise.
1287 (java_type_of_child, java_value_of_variable): Likewise.
1288 (ada_number_of_children, ada_name_of_variable): Likewise.
1289 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1290 (ada_value_of_child, ada_type_of_child): Likewise.
1291 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1292 (ada_value_has_mutated): Likewise.
1293 (struct language_specific): Move it to varobj.h.
1294 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1295 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1297 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1299 (is_anonymous_child): Move it to c-varobj.c and rename to
1300 varobj_is_anonymous_child. Caller update.
1301 (get_type): Move it to c-varobj.c.
1302 (get_value_type): Rename it varobj_get_value_type. Make it
1304 (get_target_type): Move it gdbtypes.c.
1305 (varobj_formatted_print_options): New function.
1306 (value_get_print_value): Rename it to
1307 varobj_value_get_print_value and make it extern.
1308 (varobj_value_is_changeable_p): Make it extern.
1309 (adjust_value_for_child_access): Move it to c-varobj.c.
1310 (default_value_is_changeable_p): Rename it to
1311 varobj_default_value_is_changeable_p. Make it extern.
1312 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1313 (c_name_of_child, c_path_expr_of_child): Likewise.
1314 (c_value_of_child, c_type_of_child): Likewise.
1315 (c_value_of_variable, cplus_number_of_children): Likewise.
1316 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1317 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1318 (cplus_value_of_child, cplus_type_of_child): Likewise.
1319 (cplus_value_of_variable): Likewise.
1320 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1321 (java_name_of_child, java_path_expr_of_child): Likewise.
1322 (java_value_of_child, java_type_of_child): Likewise.
1323 (java_value_of_variable): Likewise.
1324 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1325 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1326 (ada_value_of_child, ada_type_of_child): Likewise.
1327 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1328 (ada_value_has_mutated): Likewise.
1329 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1330 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1331 (c_varobj_ops, cplus_varobj_ops): Declare.
1332 (java_varobj_ops, ada_varobj_ops): Declare.
1333 (varobj_default_value_is_changeable_p): Declare.
1334 (varobj_value_is_changeable_p): Declare.
1335 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1336 (varobj_get_path_expr_parent): Declare.
1337 (varobj_value_get_print_value): Declare.
1338 (varobj_formatted_print_options): Declare.
1339 (varobj_restrict_range): Declare.
1341 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1343 * target/waitstatus.h (target_waitkind): Remove spurious
1344 character from the comments.
1346 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1348 * gdbarch.sh (get_longjmp_target): Add method documentation.
1349 * gdbarch.h: Regenerate.
1351 2013-10-16 Tom Tromey <tromey@redhat.com>
1353 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1356 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1358 * gcore.in: Call GDB using the full path to the gcore script.
1359 Error out if the GDB binary is not found.
1361 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1364 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1367 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1370 * target.c (target_disable_btrace): Fix invalid return value for
1372 (target_teardown_btrace): Likewise.
1374 2013-10-14 Yao Qi <yao@codesourcery.com>
1376 * varobj.c (struct varobj): Move most of the fields to
1378 (struct varobj_dynamic): New struct.
1379 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1380 (varobj_has_more): Likewise.
1381 (dynamic_varobj_has_child_method): Likewise.
1382 (update_dynamic_varobj_children): Likewise.
1383 (varobj_get_num_children): Likewise.
1384 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1385 (install_new_value_visualizer): Likewise.
1386 (install_new_value_visualizer, install_new_value): Likewise.
1387 (varobj_update, new_variable, free_variable): Likewise.
1388 (my_value_of_variable, value_get_print_value): Likewise.
1389 (install_visualizer): Change the type of parameter 'var' to
1390 'struct varobjd_dynamic *'. Callers update.
1391 * varobj.h (struct varobj): Moved from varobj.c.
1392 (struct varobj) <dynamic>: New field.
1394 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1396 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1397 as the preferred name of r30.
1398 * nios2-linux-tdep.c (reg_offsets): Likewise.
1399 * features/nios2-cpu.xml: Likewise.
1400 * features/nios2-linux.c: Regenerated.
1401 * features/nios2.c: Regenerated.
1402 * regformats/nios2-linux.dat: Regenerated.
1404 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1406 Canonicalize directories for EXEC_FILENAME.
1407 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1409 * utils.c (gdb_realpath_keepfile): New function.
1410 * utils.h (gdb_realpath_keepfile): New declaration.
1412 2013-10-11 Doug Evans <dje@google.com>
1414 * Makefile.in (GDBFLAGS): New variable.
1417 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1419 * NEWS: Add entry documenting the new "-catch-assert" and
1420 "-catch-exception" GDB/MI commands.
1422 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1424 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1426 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1427 "enabled". Set B->ENABLE_STATE accordingly.
1428 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1430 (create_ada_exception_catchpoint): Add declaration.
1431 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1432 (create_ada_exception_catchpoint): Make non-static. Add new
1433 parameter "disabled". Use it in call to
1434 init_ada_exception_breakpoint.
1435 (catch_ada_exception_command): Add parameter "enabled" in call
1436 to create_ada_exception_catchpoint.
1437 (catch_assert_command): Likewise.
1439 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1441 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1442 "catch-exception" commands.
1443 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1444 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1446 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1448 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1449 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1450 of all its enumerates with "ada_". Update the rest of this
1453 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1455 * ada-lang.c (ada_decode_exception_location): Delete.
1456 (create_ada_exception_catchpoint): Remove arguments "sal",
1457 "addr_string" and "ops". Add argument "ex_kind" instead.
1458 Adjust implementation accordingly, calling ada_exception_sal
1459 to get the entities it no longer gets passed as arguments.
1460 Document the function's arguments.
1461 (catch_ada_exception_command): Use catch_ada_exception_command_split
1462 instead of ada_decode_exception_location, and update call to
1463 create_ada_exception_catchpoint.
1464 (catch_ada_assert_command_split): Renames
1465 ada_decode_assert_location. Remove parameters "addr_string" and
1466 "ops", and now returns void. Adjust implementation accordingly.
1467 Update the function documentation.
1468 (catch_assert_command): Use catch_ada_assert_command_split
1469 instead of ada_decode_assert_location. Update call to
1470 create_ada_exception_catchpoint.
1472 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1474 * utils.h (perror_warning_with_name): Add declaration.
1475 * utils.c (perror_warning_with_name): New function.
1476 * cli/cli-cmds.c (source_script_with_search): Add call to
1477 perror_warning_with_name if from_tty is nul.
1479 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1481 * utils.c (perror_string): New function, extracted out of
1482 throw_perror_with_name.
1483 (throw_perror_with_name): Rework to use perror_string.
1485 2013-10-11 Yao Qi <yao@codesourcery.com>
1487 * remote.c (discard_pending_stop_replies_in_queue): Update
1489 (struct stop_reply) <rs>: New field.
1490 (remove_stop_reply_of_remote_state): New function.
1491 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1492 Callers update. Pass remove_stop_reply_of_remote_state to
1494 (remote_parse_stop_reply): Initialize field 'rs'.
1496 2013-10-10 Will Newton <will.newton@linaro.org>
1498 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1501 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1503 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1504 serial_baud_show_cmd.
1505 (_initialize_cli_cmds): Delete the code creating the
1506 "set/show remotebaud" commands.
1507 * serial.c (baud_rate): Move here from top.c.
1508 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1509 (_initialize_serial): Create "set/show serial baud" commands.
1510 Add "set/show remotebaud" command aliases.
1511 * top.c (baud_rate): Moved to serial.c.
1512 * NEWS: Document the new "set/show serial baud" commands,
1513 replacing "set/show remotebaud".
1515 2013-10-09 Pedro Alves <palves@redhat.com>
1517 * breakpoint.c (insert_bp_location): Use memory_error_message to
1518 build the memory error string.
1519 * c-lang.c: Include "gdbcore.h".
1520 (c_get_string): Use memory_error to throw error.
1521 (target_xfer_memory_error): Delete.
1522 (memory_error_message): New, factored out from
1523 target_xfer_memory_error.
1524 (memory_error): Change parameter type to target_xfer_error.
1526 (read_memory): Use memory_error instead of
1527 target_xfer_memory_error.
1528 * gdbcore.h: Include "target.h".
1529 (memory_error): Change parameter type to target_xfer_error.
1530 (memory_error_message): Declare function.
1531 * target.c (target_read_memory, target_read_stack)
1532 (target_write_memory, target_write_raw_memory): Return
1533 TARGET_XFER_E_IO on error. Adjust comments.
1534 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1536 * target.h (target_read, target_insert_breakpoint)
1537 (target_remove_breakpoint): Adjust comments.
1538 * valprint.c (partial_memory_read): Rename parameter, and adjust
1540 (val_print_string): Use memory_error_message to build the memory
1543 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1546 result variable. Rename variable fopen_e_ever_failed to
1547 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1549 2013-10-09 Pedro Alves <palves@redhat.com>
1551 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1552 (monitor_write_memory_longlongs, monitor_write_memory_block):
1553 Constify 'myaddr' parameter.
1554 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1556 (monitor_xfer_partial): New function.
1557 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1558 hook. Install a to_xfer_partial hook.
1560 2013-10-09 Tom Tromey <tromey@redhat.com>
1562 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1563 bfd_get_alt_debug_link_info.
1565 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1567 New flag OBJF_NOT_FILENAME.
1568 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1569 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1571 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1572 symbol_file_add_from_bfd.
1573 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1575 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1577 * objfiles.h (OBJF_NOT_FILENAME): New.
1579 2013-10-08 Tom Tromey <tromey@redhat.com>
1581 * Makefile.in (SFILES): Add build-id.c.
1582 (HFILES_NO_SRCDIR): Add build-id.h.
1583 * build-id.c: New file, largely from elfread.c. Modified
1585 * build-id.h: New file.
1586 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1587 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1588 Search for dwz file using build-id.
1589 * elfread.c (build_id_bfd_get, build_id_verify)
1590 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1592 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1594 * ada-lang.c (compare_names_with_case): Renamed from
1595 compare_names, adding a new parameter "casing" and its handling.
1596 New function documentation.
1597 (compare_names): New function, implemented using
1598 compare_names_with_case.
1600 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1602 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1604 2013-10-07 Tom Tromey <tromey@redhat.com>
1606 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1607 demangled_names_hash.
1608 (free_objfile): Don't delete the demangled_names_hash.
1609 * objfiles.h (struct objfile_per_bfd_storage)
1610 <demangled_names_hash>: New field.
1611 (struct objfile) <demangled_names_hash>: Move to
1612 objfile_per_bfd_storage.
1613 * symfile.c (reread_symbols): Don't delete the
1614 demangled_names_hash.
1615 * symtab.c (create_demangled_names_hash): Update.
1616 (symbol_set_names): Update.
1618 2013-10-07 Tom Tromey <tromey@redhat.com>
1620 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1621 needs_relocations>: New fields.
1622 (gdb_bfd_requires_relocations): New function.
1623 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1624 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1625 the BFD needs relocations applied.
1627 2013-10-07 Pedro Alves <palves@redhat.com>
1629 PR breakpoints/11568
1630 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1631 the thread list" instead of "gone".
1633 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1635 * NEWS: Mention new convenience variable $_exitsignal.
1636 * corelow.c (core_open): Reset exit convenience variables. Set
1637 $_exitsignal to the uncaught signal which generated the corefile.
1638 * infrun.c (handle_inferior_event): Reset exit convenience
1639 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1640 (clear_exit_convenience_vars): New function.
1641 * inferior.h (clear_exit_convenience_vars): New prototype.
1643 2013-10-06 Yao Qi <yao@codesourcery.com>
1645 * varobj.h: Add comments to enum varobj_languages.
1647 2013-10-04 Doug Evans <dje@google.com>
1649 Add support for DWP file format version 2.
1650 * NEWS: Mention support for DWP file format version 2.
1651 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1652 union of asection, containing_section. New fields virtual_offset
1653 and is_virtual. Change type of readin filed from int to char.
1654 (dwo_sections, dwo_file): Tweak comments.
1655 (dwp_v2_section_ids): New enum.
1656 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1658 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1660 (virtual_v2_dwo_sections): New struct.
1661 (dwp_hash_table): New fields version, nr_columns. Change type of
1662 section_pool field to a union.
1663 (dwp_file): New field version.
1664 (dwarf2_has_info): Check for virtual sections.
1665 (get_containing_section): New function.
1666 (get_section_bfd_owner, get_section_bfd_section): Call it.
1667 (dwarf2_locate_sections): Update.
1668 (dwarf2_section_empty_p): Update.
1669 (dwarf2_read_section): Handle virtual sections.
1670 (locate_dwz_sections): Update.
1671 (create_dwp_hash_table): Document and handle V2 format.
1672 (locate_v1_virtual_dwo_sections): Renamed from
1673 locate_virtual_dwo_sections and update. All callers updated.
1674 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1675 Delete arg htab. Rename arg section_index to unit_index.
1676 All callers updated.
1677 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1679 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1680 (lookup_dwo_unit_in_dwp): Add V2 support.
1681 (dwarf2_locate_dwo_sections): Update.
1682 (dwarf2_locate_common_dwp_sections): Renamed from
1683 dwarf2_locate_dwp_sections and update. All callers updated.
1684 (dwarf2_locate_v2_dwp_sections): New function.
1685 (open_and_init_dwp_file): Add V2 support.
1686 (read_str_index): New locals str_section, str_offsets_section.
1688 2013-10-04 Pedro Alves <palves@redhat.com>
1690 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1691 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1692 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1693 describing comments with references to ptid.h.
1694 * common/ptid.h: Remove intro description of constructors,
1695 accessors and predicates.
1696 (struct ptid): Reformat.
1697 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1698 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1699 describing comments.
1701 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1703 * aix-thread.c (sync_threadlists): Add missing ')' in call
1706 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1708 * procfs.c (procfs_init_inferior): Fix typo causing the build
1711 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1713 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1715 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1717 * mi/mi-main.c (run_one_inferior): Add function description.
1718 Make ARG a pointer to an integer whose value determines whether
1719 we should "run" or "start" the program.
1720 (mi_cmd_exec_run): Add handling of the "--start" option.
1721 Reject all other command-line options.
1722 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1724 2013-10-04 Yao Qi <yao@codesourcery.com>
1726 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1727 (struct notif_client) <pending_event>: Moved
1728 to struct remote_notif_state.
1730 (struct remote_notif_state) <pending_event>: New field.
1731 (notif_event_xfree): Declare.
1732 * remote-notif.c (handle_notification): Adjust.
1733 (notif_event_xfree): New function.
1734 (do_notif_event_xfree): Call notif_event_xfree.
1735 (remote_notif_state_xfree): Call notif_event_xfree to free
1736 each element in field pending_event.
1737 * remote.c (discard_pending_stop_replies): Remove declaration.
1738 (discard_pending_stop_replies_in_queue): Declare.
1739 (remote_close): Call discard_pending_stop_replies_in_queue
1740 instead of discard_pending_stop_replies.
1741 (remote_start_remote): Adjust.
1742 (stop_reply_xfree): Call notif_event_xfree.
1743 (notif_client_stop): Adjust initialization.
1744 (remote_notif_remove_all): Rename it to ...
1745 (remove_stop_reply_for_inferior): ... this. Update comments.
1746 Don't check INF is NULL.
1747 (discard_pending_stop_replies): Return early if notif_state is
1748 NULL. Adjust. Don't check INF is NULL.
1749 (remote_notif_get_pending_events): Adjust.
1750 (discard_pending_stop_replies_in_queue): New function.
1751 (remote_wait_ns): Likewise.
1753 2013-10-04 Yao Qi <yao@codesourcery.com>
1755 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1756 (notif_queue): Remove.
1757 (remote_notif_process): Add one parameter 'notif_queue'.
1758 Update comments. Callers update.
1759 (remote_async_get_pending_events_token): Remove.
1760 (remote_notif_register_async_event_handler): Remove.
1761 (remote_notif_unregister_async_event_handler): Remove.
1762 (handle_notification): Add parameter 'notif_queue'. Update
1763 comments. Callers update.
1764 (notif_xfree): Remove.
1765 (remote_notif_state_allocate): New function.
1766 (remote_notif_state_xfree): New function.
1767 (_initialize_notif): Remove code to allocate queue.
1768 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1769 (struct remote_notif_state): New.
1770 (handle_notification): Update declaration.
1771 (remote_notif_process): Likewise.
1772 (remote_notif_register_async_event_handler): Remove.
1773 (remote_notif_unregister_async_event_handler): Remove.
1774 (remote_notif_state_allocate): Declare.
1775 (remote_notif_state_xfree): Declare.
1776 * remote.c (struct remote_state) <notif_state>: New field.
1777 (remote_close): Don't call
1778 remote_notif_unregister_async_event_handler. Call
1779 remote_notif_state_xfree.
1780 (remote_open_1): Don't call
1781 remote_notif_register_async_event_handler. Call
1782 remote_notif_state_allocate.
1784 2013-10-04 Yao Qi <yao@codesourcery.com>
1786 * varobj.c (create_child_with_value): Remove 'const' from the
1787 type of parameter 'name'.
1788 (varobj_add_child): Likewise.
1789 (install_dynamic_child): Remove 'const' from the type of
1791 (varobj_add_child): Likewise.
1792 (create_child_with_value): Likewise. Update comments. Don't
1794 (update_dynamic_varobj_children): Duplicate 'name'
1795 and pass it to install_dynamic_child.
1797 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1799 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1800 conversion logic to occur after PyLong_Check. Comment on order
1801 change significance.
1802 * python/py-arch.c (archpy_disassemble): Comment on order of
1803 conversion for integers and longs.
1805 2013-10-03 Pedro Alves <palves@redhat.com>
1807 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1808 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1809 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1810 PTRACE_O_TRACEFORK is not supported.
1811 (linux_test_for_tracesysgood): New function.
1812 (linux_test_for_tracefork): New function, factored out from
1813 linux_check_ptrace_features, and also don't kill child_pid here.
1815 2013-10-03 Tristan Gingold <gingold@adacore.com>
1817 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1818 Remove verbose error reporting. Use detected state to
1819 thread_set_state call.
1820 (i386_darwin_dr_get): Fix return type. Remove verbose error
1822 Remove trailing spaces.
1824 2013-10-02 Pedro Alves <palves@redhat.com>
1826 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1827 val_print_optimized_out.
1828 * jv-valprint.c (java_print_value_fields): Likewise.
1829 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1830 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1831 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1832 new optimized out value.
1833 * findvar.c (address_from_register): Likewise.
1834 * frame.c (put_frame_register): Tweak error string to say the
1835 register was not saved, rather than optimized out.
1836 * infcmd.c (default_print_one_register_info): Adjust call to
1837 val_print_optimized_out. Use value_of_register instead of
1838 get_frame_register_value.
1839 * mi/mi-main.c (output_register): Use value_of_register instead of
1840 get_frame_register_value.
1841 * valprint.c (valprint_check_validity): Likewise.
1842 (val_print_optimized_out): New value parameter. If the value is
1843 lval_register, print <not saved> instead.
1844 (value_check_printable, val_print_scalar_formatted): Adjust calls
1845 to val_print_optimized_out.
1846 * valprint.h (val_print_optimized_out): New value parameter.
1847 * value.c (struct value) <optimized_out>: Extend comment.
1848 (error_value_optimized_out): New function.
1849 (require_not_optimized_out): Use it. Use a different string for
1850 lval_register values.
1851 * value.h (error_value_optimized_out): New declaration.
1852 * NEWS: Mention <not saved>.
1854 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1856 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1857 strcmp to compare two symtab filenames.
1859 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1861 * symtab.c (search_symbols_equal): Delete.
1862 (sort_search_symbols_remove_dups): Replace call to
1863 search_symbols_equal by call to compare_search_syms,
1864 adjusting as necessary.
1866 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1869 * python/python.c: Document gdb.execute command in Python help.
1871 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1873 * python/py-frame.c (frame_info_to_frame_object): Use
1874 gdbpy_convert_exception. Clean up Python object on failure.
1876 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1878 * python/lib/gdb/command/frame_filters.py
1879 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1880 (ShowFrameFilterPriority.invoke): Ditto.
1882 2013-10-01 Keith Seitz <keiths@redhat.com>
1884 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1885 (parse_linespec): Make 'argptr' const.
1886 Remove temporary cast of 'argptr' to const char **.
1887 (decode_line_full): Pass const pointer to parse_linespec.
1888 (decode_line_1): Likewise.
1889 (decode_objc): Make local variable 'new_argptr' const.
1890 (find_function_symbols): Remove temporary cast to char *
1892 * objc-lang.c (find_imps): Make argument 'method' const.
1894 * objc-lang.h (find_imps): Likewise.
1896 2013-10-01 Keith Seitz <keiths@redhat.com>
1898 * completer.c (skip_quoted_chars): Make all arguments const.
1900 (skip_quoted): Likewise.
1901 * completer.h (skip_quoted_chars): Likewise.
1902 (skip_quoted): Likewise.
1903 * defs.h (skip_quoted): Remove duplicate declaration.
1904 * jv-exp.y: Include completer.h.
1905 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1906 * p-exp.y: Include completer.h.
1908 2013-10-01 Keith Seitz <keiths@redhat.com>
1910 * c-exp.y (parse_number): Make first argument const.
1911 Make a copy of the input to manipulate.
1912 (c_parse_escape): Make first argument const.
1913 Make local variable 'tokptr' const.
1914 (parse_string_or_char): Make first two arguments const.
1915 (macro_original_text): Make const.
1916 (lex_one_token): Make local variable 'tokstart' const.
1917 Likewise for local variables named 'p'.
1918 Cast away const for struct stoken (temporary).
1919 * c-lang.h (c_parse_escpae): Make first argument const.
1920 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1922 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1924 * f-exp.y (parse_number): Make first argument const.
1925 (match_string_literal): Make local variable 'tokstart'
1927 (yylex): Make local variable 'p' const.
1928 Cast away const for struct stoken (temporary).
1929 * go-exp.y (parse_number): Make first argument const.
1930 (parse_string_or_char): Likewise.
1931 Make local variable 'tokstart' const.
1932 (lex_one_token): Likewise for numerous locals called 'p'.
1933 Cast away const for struct stoken (temporary).
1934 * jv-exp.y (parse_number): Make first argument const.
1935 Make local variables 'tokstart' and 'tokptr' const.
1936 Cast away const for call to skip_quoted (temporary).
1937 (yylex): Make local variable 'p' const.
1938 Cast away const for struct stoken (temporary).
1939 * m2-exp.y (parse_number): Make local variable 'p' const.
1940 (yylex): Likewise for 'tokstart'.
1941 Cast away const for struct stoken (temporary).
1942 Make local variable 'p' const.
1943 * macroexp.c (get_character_constant): Pass a const string
1945 (get_string_literal): Likewise.
1946 (macro_expand_next): Make first argument const.
1947 Cast away const for init_shared_buffer.
1948 * macroexp.h (macro_expand_next): Make first argument const.
1949 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1950 Pass a const string to c_parse_escape.
1951 Make local variables 'p' and 'namestart' const.
1952 * parse.c (lexptr): Make const.
1953 (prev_lexptr): Likewise.
1954 (find_template_name_end): Return const.
1955 Make argument const, too.
1956 (parse_exp_in_context): Make first argument const.
1957 Remove the entire const_hack.
1958 (parse_exp_in_context_1): Make first argument const.
1959 * parser-defs.h (find_template_name_end): Return const.
1960 Make argument const, too.
1961 (lexptr): Make const.
1962 (prev_lexptr): Likewise.
1963 * utils.c (parse_escape): Make second argument const.
1964 * utils.h (parse_escape): Likewise.
1966 2013-10-01 Keith Seitz <keiths@redhat.com>
1968 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1970 (block_lookup): Make 'raw_name' and 'name' const.
1971 * ada-lex.l (processString): Update for struct stoken.ptr.
1972 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1973 (operator_stoken): Likewise.
1974 (lex_one_token): Remove temporary cast to char * for
1976 * f-exp.y (yylex): Likewise.
1977 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1978 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1979 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1981 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1982 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1983 * linespec.c (struct ls_parser): Make 'stream' const.
1984 (find_parameter_list_end): Make argument 'input' and local
1986 (linespec_lexer_lex_string): Make local variables 'start' and
1988 Use skip_spaces_const instead of skip_spaces.
1989 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1991 (parse_linespec): Temporarily cast 'argptr' to const for
1992 'parser->lexer.stream'.
1993 * m2-exp.y (yylex): Remove temporary cast to char * for
1995 * objc-lang.c (add_msglist): Make local variable 'p' const.
1996 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1997 (exp : STRING): Make 'sp' const.
1998 (parse_number): Make argument 'p' const.
1999 * parser-defs.h (struct stoken): Make 'ptr' const.
2001 2013-10-01 Doug Evans <dje@google.com>
2003 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2005 2013-10-01 Yao Qi <yao@codesourcery.com>
2007 * varobj.c (c_value_of_root): Remove declaration.
2008 (cplus_value_of_root, java_value_of_root): Likewise.
2009 (ada_value_of_root): Likewise.
2010 (struct language_specific) <value_of_root>: Remove.
2011 (languages): Update initialization.
2012 (check_scope): Move earlier.
2013 (c_value_of_root): Move earlier and rename to ...
2014 (value_of_root_1): ... this.
2015 (value_of_root): Caller update.
2016 (cplus_value_of_root, java_value_of_root): Remove.
2017 (ada_value_of_root): Remove.
2019 2013-10-01 Yao Qi <yao@codesourcery.com>
2021 * varobj.c (varobj_format_string): Remove "unknown".
2022 (languages): Remove the first element.
2023 * varobj.h (enum varobj_languages): Remove vlang_c.
2025 2013-10-01 Yao Qi <yao@codesourcery.com>
2027 * varobj.c (struct language_specific) <language>: Remove.
2028 (languages): Update the initialization.
2030 2013-10-01 Yao Qi <yao@codesourcery.com>
2032 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2033 "solib-target.h". Include "windows-tdep.h".
2034 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2035 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2036 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2037 windows-tdep.o to gdb_target_obs.
2039 2013-10-01 Yao Qi <yao@codesourcery.com>
2041 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2043 (amd64_windows_init_abi): Don't call set_solib_ops and
2044 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2045 windows_init_abi instead.
2046 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2048 (i386_cygwin_init_abi): Don't call set_solib_ops,
2049 set_gdbarch_has_dos_based_file_system and
2050 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2051 windows_init_abi instead.
2052 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2053 (windows_init_abi): New function.
2054 (windows_iterate_over_objfiles_in_search_order): Make it
2056 * windows-tdep.h (windows_init_abi): Declare.
2057 (windows_iterate_over_objfiles_in_search_order): Remove
2060 2013-10-01 Jerome Guitton <guitton@adacore.com>
2062 Checked in by Joel Brobecker <brobecker@adacore.com>
2063 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2064 incomplete dictionnary instead of None in case of missing
2065 environment variables.
2066 (elinos_init): in case of an incomplete environment, best
2067 effort to load system libraries instead of abort.
2069 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2071 * ada-lang.c (ada_has_this_exception_support): Ignore
2072 mst_solib_trampoline minimal symbols.
2074 2013-09-30 Tristan Gingold <gingold@adacore.com>
2076 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2077 hardware watchpoint.
2078 (i386_darwin_dr_set): Support 32 and 64 bit states.
2079 (i386_darwin_dr_get): Likewise.
2080 (i386_darwin_dr_set_control): Make static.
2081 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2082 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2084 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2086 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2087 Replace TIDGET with ptid_get_lwp.
2088 Replace GET_LWP with ptid_get_lwp.
2089 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2090 Replace BUILD_THREAD with ptid_build.
2091 Replace BUILD_LWP with ptid_build.
2092 Replace PIDGET with ptid_get_pid.
2093 Replace TIDGET with ptid_get_lwp.
2094 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2095 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2096 Replace TIDGET with ptid_get_lwp.
2097 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2098 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2099 Replace TIDGET with ptid_get_lwp.
2100 Replace GET_LWP with ptid_get_lwp.
2101 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2103 * breakpoint.c: Likewise.
2104 * common/ptid.c (ptid_is_pid): Condense check for
2105 null_ptid and minus_one_ptid.
2106 (ptid_lwp_p): New function.
2107 (ptid_tid_p): New function.
2108 * common/ptid.h: Update comments for accessors.
2109 (ptid_lwp_p): New prototype.
2110 (ptid_tid_p): New prototype.
2111 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2112 * gcore.c: Replace PIDGET with ptid_get_pid.
2113 * gdbthread.h: Likewise.
2114 * gnu-nat.c: Likewise.
2115 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2116 Replace TIDGET with ptid_get_lwp.
2117 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2118 * hppanbsd-nat.c: Likewise.
2119 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2120 Replace TIDGET with ptid_get_lwp.
2121 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2122 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2123 * infcmd.c: Likewise.
2124 * inferior.h: Likewise.
2125 * inflow.c: Likewise.
2126 * infrun.c: Likewise.
2127 * linux-fork.c: Likewise.
2128 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2129 Replace GET_PID with ptid_get_pid.
2130 Replace is_lwp with ptid_lwp_p.
2131 Replace GET_LWP with ptid_get_lwp.
2132 Replace BUILD_LWP with ptid_build.
2134 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2136 * common/linux-btrace.c: Move sys/syscall.h out of the
2137 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2138 Also check for SYS_perf_event_open before attempting to buid.
2140 2013-09-27 Doug Evans <dje@google.com>
2142 * dwarf2read.c (dwarf2_section_info): Add comment.
2143 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2145 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2146 (dwarf2_read_section): Delete unused local "header". Add section
2147 name to error message.
2148 (create_dwo_in_dwp): Tweak comment.
2149 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2151 * dwarf2read.c (die_reader_specs): Tweak comment.
2152 (get_section_bfd_owner, get_section_bfd_section): New functions.
2153 (get_section_name, get_section_file_name): New functions.
2154 (get_section_id, get_section_flags): New functions.
2155 (*): Use new functions to access section fields.
2157 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2158 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2159 arg "htab". All callers updated.
2160 (create_debug_types_hash_table): Remove redundant copy of
2162 (create_dwo_in_dwp): Tweak comments.
2163 (read_str_index): Tweak comment. Record dwarf form name in static
2166 2013-09-27 Pedro Alves <palves@redhat.com>
2168 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2169 (remote_filename_p): Add comment.
2170 * remote.c (remote_filename_p): Adjust to use
2171 REMOTE_SYSROOT_PREFIX.
2172 * solib.c (solib_find): When deciding whether we need to add a
2173 directory separator, check whether the sysroot is "remote:"
2174 instead of checking whether the patch has a drive spec. Add
2177 2013-09-27 Pedro Alves <palves@redhat.com>
2179 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2181 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2184 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2186 Fix set debug frame output.
2187 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2188 SENTINEL_FRAME entry lower to match enum frame_type order.
2190 2013-09-26 Pierre Muller <muller@sourceware.org>
2192 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2193 AMD64_R15_REGNUM when a register index is expected.
2194 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2195 Substitute in array.
2196 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2197 (amd64_push_arguments): Substitute in integer_regnum array.
2199 2013-09-25 Doug Evans <dje@google.com>
2201 * objfiles.c (allocate_objfile): Move comment to better place.
2203 New option "set debug symfile on".
2204 * NEWS: Mention "set debug symfile".
2205 * Makefile.in (SFILES): Add symfile-debug.c.
2206 (COMMON_OBS): Add symfile-debug.o.
2207 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2208 objfile's symbol functions.
2209 * objfiles.h (objfile_set_sym_fns): Declare.
2210 * symfile-debug.c: New file.
2211 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2212 objfile's symbol functions.
2213 (reread_symbols): Ditto.
2215 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2217 (add_symtab_fns): Update prototype.
2218 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2219 (registered_sym_fns): ... this.
2220 (symtab_fns): Update.
2221 (add_symtab_fns): New arg "flavour". All callers updated.
2222 (find_sym_fns): Rewrite to use new sym_fns registry.
2224 * symfile.h (struct sym_fns): Add "objfile" argument to
2225 sym_read_linetable. All uses updated.
2227 * symtab.c (domain_name, search_domain_name): New functions.
2228 * symtab.h (domain_name, search_domain_name): Declare.
2230 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2231 map_matching_symbols so objfile is first. All uses updated.
2232 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2233 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2235 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2238 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2241 2013-09-24 Doug Evans <dje@google.com>
2243 * objfiles.c (free_objfile): Move comment.
2245 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2247 * ada-exp.y (string_to_operator): Delete.
2248 (dummy_string_to_ada_operator): Delete.
2250 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2253 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2255 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2256 call_dummy_integer_regs, and classify.
2257 * amd64-tdep.h (amd64_classify): Add declaration.
2258 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2259 (amd64_reg_class): Delete, moved to i386-tdep.h.
2260 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2261 Replace call to amd64_classify by call to tdep->classify.
2262 (amd64_push_arguments): Get the list of registers to use for
2263 passing integer parameters from the gdbarch tdep structure,
2264 rather than using a hardcoded one. Replace calls to amd64_classify
2265 by calls to tdep->classify.
2266 (amd64_push_dummy_call): Get the register number used for
2267 the "hidden" argument from tdep->call_dummy_integer_regs.
2268 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2269 and tdep->call_dummy_integer_regs. Set tdep->classify.
2271 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2274 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2275 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2276 where tdep->memory_args_by_pointer is non-zero.
2278 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2281 * i386-tdep.h (struct gdbarch_tdep): Add new field
2282 integer_param_regs_saved_in_caller_frame.
2283 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2284 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2286 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2288 * amd64-windows-tdep.c: #include "value.h"
2289 (amd64_windows_classify): Delete.
2290 (amd64_windows_passed_by_integer_register)
2291 (amd64_windows_passed_by_xmm_register)
2292 (amd64_windows_passed_by_pointer)
2293 (amd64_windows_adjust_args_passed_by_pointer)
2294 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2295 (amd64_windows_push_dummy_call): New functions.
2296 (amd64_windows_init_abi): Remove setting of
2297 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2298 tdep->classify, tdep->memory_args_by_pointer and
2299 tdep->integer_param_regs_saved_in_caller_frame.
2300 Add call to set_gdbarch_push_dummy_call.
2302 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2304 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2305 objfile->original_name.
2307 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2309 Pass down original filename for objfile.
2310 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2311 * elfread.c (elf_symfile_read): Likewise.
2312 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2313 longer set ORIGINAL_NAME.
2314 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2315 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2316 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2317 symbol_file_add_from_bfd call.
2318 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2319 (macho_check_dsym): Add parameter filenamep. Change function comment.
2321 (macho_symfile_read): New variable dsym_filename. Update
2322 macho_check_dsym call. Use it for symbol_file_add_separate.
2323 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2324 it. Use it for objfile->original_name.
2325 (objfile_name): Return OBFD's filename, if available.
2326 * objfiles.h (allocate_objfile): Add new parameter name.
2327 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2328 * symfile-mem.c (symbol_file_add_from_memory): Update
2329 symbol_file_add_from_bfd call.
2330 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2332 (symbol_file_add_with_addrs): New parameter name, add function comment
2333 for it. Remove variable name. Update allocate_objfile call.
2334 (symbol_file_add_separate): New parameter name, add function comment
2335 for it. Update symbol_file_add_with_addrs call.
2336 (symbol_file_add_from_bfd): New parameter name. Update
2337 symbol_file_add_with_addrs call.
2338 (symbol_file_add): Update symbol_file_add_from_bfd call.
2339 (reread_symbols): New variable original_name. Save
2340 objfile->original_name by it.
2341 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2344 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2346 Code cleanup: Add objfile_name accessor function.
2347 * ada-lang.c (is_known_support_routine): Use objfile_name.
2348 * auto-load.c (source_gdb_script_for_objfile)
2349 (auto_load_objfile_script): Likewise.
2350 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2351 * dbxread.c (dbx_symfile_read): Likewise.
2352 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2353 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2354 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2355 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2356 (lookup_dwp_signatured_type, lookup_dwo_unit)
2357 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2358 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2359 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2360 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2361 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2362 (read_subrange_type, load_partial_dies, read_partial_die)
2363 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2364 (die_containing_type, build_error_marker_type, lookup_die_type)
2365 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2366 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2367 (get_DW_AT_signature_type, write_psymtabs_to_index)
2368 (save_gdb_index_command): Likewise.
2369 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2371 * expprint.c (dump_subexp_body_standard): Likewise.
2372 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2373 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2375 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2376 obj_name, use objfile_name for it, use the variable.
2377 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2379 * machoread.c (macho_symtab_read, macho_check_dsym)
2380 (macho_symfile_relocate): Likewise.
2381 * maint.c (maintenance_translate_address): Likewise.
2382 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2383 * minsyms.c (install_minimal_symbols): Likewise.
2384 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2386 (filter_overlapping_sections): Use objfile_name.
2387 (objfile_name): New function.
2388 * objfiles.h (struct objfile): Rename field name to original_name.
2389 (objfile_name): New prototype.
2390 * printcmd.c (sym_info, address_info): Use objfile_name.
2391 * probe.c (parse_probes, collect_probes, compare_probes)
2392 (info_probes_for_ops): Likewise.
2393 * progspace.c (clone_program_space): Likewise.
2394 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2395 (maintenance_info_psymtabs): Likewise.
2396 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2397 (source_section_scripts): Likewise.
2398 * python/py-objfile.c (objfpy_get_filename): Likewise.
2399 * python/py-progspace.c (pspy_get_filename): Likewise.
2400 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2401 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2402 * solib.c (solib_read_symbols): Likewise.
2403 * stabsread.c (scan_file_globals): Likewise.
2404 * stap-probe.c (handle_stap_probe): Likewise.
2405 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2406 (find_separate_debug_file_by_debuglink): Likewise.
2407 (reread_symbols): Likewise. Use the objfile field name renamed to
2409 (allocate_symtab): Use objfile_name.
2410 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2411 (dump_objfile, dump_msymbols, dump_symtab_1)
2412 (maintenance_print_msymbols, maintenance_print_objfiles)
2413 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2414 * target.c (target_translate_tls_address, target_info): Likewise.
2415 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2418 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2421 * probe.c (parse_probes): Rename variable objfile_name to
2424 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2426 Remove solib-sunos.c.
2427 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2428 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2429 * objfiles.c (rt_common_objfile): Remove.
2430 (free_objfile): Remove rt_common_objfile comparison.
2431 * objfiles.h (rt_common_objfile): Remove.
2432 * solib-sunos.c: Remove.
2433 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2435 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2437 Remove a.out NetBSD and OpenBSD hosts.
2438 * NEWS (Removed native configurations): New.
2439 * config/arm/nbsdaout.mh: Remove.
2440 * config/i386/nbsdaout.mh: Remove.
2441 * config/i386/obsdaout.mh: Remove.
2442 * config/m68k/nbsdaout.mh: Remove.
2443 * config/sparc/nbsdaout.mh: Remove.
2444 * config/vax/nbsdaout.mh: Remove.
2445 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2446 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2447 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2449 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2450 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2451 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2453 2013-09-23 Tom Tromey <tromey@redhat.com>
2455 * linespec.c (struct minsym_and_objfile): Remove.
2456 (minsym_and_objfile_d): Remove.
2457 (struct linespec, struct collect_info, linespec_parse_basic)
2458 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2459 (compare_msymbols, find_method, find_function_symbols)
2460 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2461 (add_minsym, search_minsyms_for_name): Update.
2463 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2465 * regcache.c: Add include of valprint.h.
2466 (dump_endian_bytes): Delete.
2467 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2469 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2471 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2473 2013-09-19 Pedro Alves <palves@redhat.com>
2475 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2478 2013-09-19 Pedro Alves <palves@redhat.com>
2479 Thomas Schwinge <thomas@codesourcery.com>
2480 Yue Lu <hacklu.newborn@gmail.com>
2482 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2483 Take a gdb_byte pointer instead of a char pointer.
2485 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2486 gnu_xfer_partial helper.
2487 (gnu_xfer_partial): New function.
2488 (gnu_target): Don't install a deprecated_xfer_memory hook.
2489 Install a to_xfer_partial hook.
2491 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2494 * main.c (captured_main): Replace catch_command_errors by
2495 catch_command_errors_const. Twice.
2496 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2497 (symbol_file_add): Make name parameter const.
2498 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2499 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2500 variable name. Change their usage accordingly.
2501 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2503 (symbol_file_add_main): Make args parameter const.
2505 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2506 Ulrich Weigand <uweigand@de.ibm.com>
2508 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2510 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2512 2013-09-18 Pedro Alves <palves@redhat.com>
2513 Yue Lu <hacklu.newborn@gmail.com>
2515 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2516 (gnu_create_inferior)
2517 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2518 (set_sig_thread_cmd): Use the lwpid field of ptids to
2519 store/extract thread ids instead of the tid field.
2520 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2522 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2524 * infcmd.c (default_print_one_register_info): Add detection of
2525 optimized out values.
2526 (default_print_registers_info): Switch to using
2527 get_frame_register_value.
2529 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2531 * infrun.c (handle_inferior_event): Check if we know the
2532 function start address before setting a resume breakpoint.
2534 2013-09-18 Pedro Alves <palves@redhat.com>
2536 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2537 minus_one_ptid instead of looking at the ptid's tid field and
2538 comparing that to -1.
2540 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2542 * main.h (get_gdb_program_name): Remove extra whitespace.
2544 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2546 * main.h (get_gdb_program_name): Add declaration.
2547 * main.c (get_gdb_program_name): Add definition.
2549 2013-09-17 Doug Evans <dje@google.com>
2551 * dwarf2read.c: Move definitions of complaint functions to after
2552 forward declarations of local functions.
2554 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2555 Pedro Alves <palves@redhat.com>
2558 * breakpoint.c (remove_threaded_breakpoints): New function.
2559 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2560 as thread_exit observer.
2562 2013-09-17 Pedro Alves <palves@redhat.com>
2565 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2566 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2567 * corelow.c (core_open):
2568 * frame.h (print_stack_frame, print_frame_info): New
2569 'set_current_sal' parameter.
2570 * infcmd.c (finish_command, kill_command): Adjust call to
2572 * inferior.c (inferior_command): Likewise.
2573 * infrun.c (normal_stop): Likewise.
2574 * linux-fork.c (linux_fork_context): Likewise.
2575 * record-full.c (record_full_goto_entry, record_full_restore):
2577 * remote-mips.c (common_open): Likewise.
2578 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2580 (print_frame_info): New 'set_current_sal' parameter. Set the last
2581 displayed sal depending on the new paremeter instead of looking at
2583 (backtrace_command_1, select_and_print_frame, frame_command)
2584 (current_frame_command, up_command, down_command): Adjust call to
2586 * thread.c (print_thread_info, restore_selected_frame)
2587 (do_captured_thread_select): Adjust call to print_stack_frame.
2588 * tracepoint.c (tfind_1): Likewise.
2589 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2590 (mi_cmd_stack_info_frame): Likewise.
2591 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2592 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2594 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2596 * value.c (isvoid_internal_fn): Replace "parameter" with
2599 2013-09-16 Stan Shebs <stan@codesourcery.com>
2601 * README: Update references to writing code for GDB.
2602 * configure.ac (build_warnings): Remove obsolete comment.
2603 * configure: Regenerate.
2604 * gdbarch.sh: Remove references to gdbint.texinfo.
2605 * gdbarch.h: Regenerate.
2606 * gdbtypes.c (objfile_type): Remove comments referencing internals
2609 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2611 * NEWS: Mention new convenience function $_isvoid.
2612 * value.c (isvoid_internal_fn): New function.
2613 (_initialize_values): Add new convenience function $_isvoid.
2615 2013-09-16 Pierre Muller <muller@sourceware.org>
2617 * arm-linux-tdep.c: Add "elf/common.h" header.
2618 Remove AT_HWCAP macro definintion as it is provided in
2620 * s390-tdep.c: Remove system header <elf.h>
2621 Add "elf/common.h" header for AT_HWCAP definition.
2622 (s390_core_read_description): Use correct CORE_ADDR
2623 for hwcap local variable used as third parameter
2624 of function target_auxv_search.
2626 2013-09-14 Pierre Muller <muller@sourceware.org>
2627 Tom Tromey <tromey@redhat.com>
2628 Pedro Alves <palves@redhat.com>
2630 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2631 mode if operating system doesn't know O_CLOEXEC.
2633 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2636 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2639 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2641 * NEWS: Mention TDB support.
2642 * features/s390-tdb.xml: New file.
2643 * features/s390-te-linux64.xml: New file.
2644 * features/s390x-te-linux64.xml: New file.
2645 * features/Makefile (WHICH): Add new tdescs above.
2646 (s390-te-linux64-expedite): Set.
2647 (s390x-te-linux64-expedite): Set.
2648 * features/s390-te-linux64.c: New file (generated).
2649 * features/s390x-te-linux64.c: New file (generated).
2650 * regformats/s390-te-linux64.dat: New file (generated).
2651 * regformats/s390x-te-linux64.dat: New file (generated).
2652 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2653 (HWCAP_S390_TE): Likewise.
2654 (S390_TDB_DWORD0_REGNUM): Likewise.
2655 (S390_TDB_DWORD0_REGNUM): Likewise.
2656 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2657 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2658 (S390_TDB_ATIA_REGNUM): Likewise.
2659 (S390_TDB_R0_REGNUM): Likewise.
2660 (S390_TDB_R1_REGNUM): Likewise.
2661 (S390_TDB_R2_REGNUM): Likewise.
2662 (S390_TDB_R3_REGNUM): Likewise.
2663 (S390_TDB_R4_REGNUM): Likewise.
2664 (S390_TDB_R5_REGNUM): Likewise.
2665 (S390_TDB_R6_REGNUM): Likewise.
2666 (S390_TDB_R7_REGNUM): Likewise.
2667 (S390_TDB_R8_REGNUM): Likewise.
2668 (S390_TDB_R9_REGNUM): Likewise.
2669 (S390_TDB_R10_REGNUM): Likewise.
2670 (S390_TDB_R11_REGNUM): Likewise.
2671 (S390_TDB_R12_REGNUM): Likewise.
2672 (S390_TDB_R13_REGNUM): Likewise.
2673 (S390_TDB_R14_REGNUM): Likewise.
2674 (S390_TDB_R15_REGNUM): Likewise.
2675 (S390_NUM_REGS): Increase.
2676 (S390_IS_TDBREGSET_REGNUM): New macro.
2677 (s390_regmap_tdb): Declare.
2678 (s390_sizeof_tdbregset): Define.
2679 (tdesc_s390_te_linux64): Declare.
2680 (tdesc_s390x_te_linux64): Likewise.
2681 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2682 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2683 (s390_regmap_tdb): New regmap.
2684 (s390_supply_tdb_regset): New function.
2685 (s390_tdb_regset): New regset.
2686 (s390_linux64v2_regset_sections): Add TDB regset to list.
2687 (s390x_linux64v2_regset_sections): Likewise.
2688 (s390_regset_from_core_section): Recognize TDB core note section.
2689 (s390_core_read_description): If HWCAP indicates TE support,
2690 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2691 (s390_gdbarch_init): Handle TDB regset.
2692 (_initialize_s390_tdep): Initialize new tdescs.
2693 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2694 (have_regset_tdb): New variable.
2695 (s390_native_supply): Support register invalidation.
2696 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2697 (check_regset): Treat ENODATA as "regset exists".
2698 (s390_linux_fetch_inferior_registers): Add TDB.
2699 (s390_read_description): Check for TDB existence and select
2701 * gdbserver/Makefile.in (clean): Add removal of new makefile
2703 (s390-te-linux64.c): New makefile target.
2704 (s390x-te-linux64.c): Likewise.
2705 * gdbserver/configure.srv (srv_regobj): Append new objects
2706 s390-te-linux64.o and s390x-te-linux64.o.
2707 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2708 s390x-te-linux64.xml, and s390-tdb.xml.
2709 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2711 (tdesc_s390_te_linux64): Likewise.
2712 (init_registers_s390x_te_linux64): Likewise.
2713 (tdesc_s390x_te_linux64): Likewise.
2714 (s390_check_regset): Treat ENODATA as "regset exists".
2715 (s390_arch_setup): Add TDB regset support.
2716 (initialize_low_arch): Initialize registers for new tdescs.
2718 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2720 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2721 (S390_IS_FPREGSET_REGNUM): New macro.
2722 * s390-tdep.c (s390_dwarf_regmap): Make const.
2723 (regnum_is_gpr_full): New function for replacing repeated code.
2724 (s390_pseudo_register_name): Use it.
2725 (s390_pseudo_register_type): Likewise.
2726 (s390_pseudo_register_read): Likewise.
2727 (s390_pseudo_register_write): Likewise.
2728 (s390_unwind_pseudo_register): Likewise.
2729 (s390_regmap_gregset): New format for regmap.
2730 (s390x_regmap_gregset): Likewise.
2731 (s390_regmap_fpregset): Likewise.
2732 (s390_regmap_upper): Likewise.
2733 (s390_regmap_last_break): Likewise.
2734 (s390_regmap_system_call): Likewise.
2735 (s390_supply_regset): Adjust to new regmap format.
2736 (s390_collect_regset): Likewise.
2737 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2738 (s390_native_collect): Likewise.
2739 (supply_gregset): Likewise.
2740 (fill_gregset): Likewise.
2741 (supply_fpregset): Likewise.
2742 (fill_fpregset): Likewise.
2743 (fetch_regset): Likewise.
2744 (store_regset): Likewise.
2745 (s390_linux_fetch_inferior_registers): Likewise.
2746 (s390_linux_fetch_inferior_registers): Likewise.
2748 2013-09-12 Andrew Pinski <apinski@cavium.com>
2750 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2752 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2754 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2756 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2758 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2760 2013-09-06 Pedro Alves <palves@redhat.com>
2762 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2763 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2764 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2765 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2766 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2769 2013-09-06 Pedro Alves <palves@redhat.com>
2771 * remote-sim.c (dump_mem): Constify buf parameter.
2772 gdbsim_xfer_inferior_memory): Rename to ...
2773 (gdbsim_xfer_memory): ... this. Adjust interface as
2774 target_xfer_partial helper.
2775 (gdbsim_xfer_partial): New function.
2776 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2777 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2779 2013-09-06 Pedro Alves <palves@redhat.com>
2781 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2782 host_address_to_string, and send debug output to gdb_stdlog.
2784 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2786 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2787 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2788 gdb_target_obs for cris target.
2789 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2790 (cris_gdbarch_init): Move calls to
2791 set_gdbarch_fetch_tls_load_module_address and
2792 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2793 Add call to gdbarch_init_osabi.
2794 * cris-linux-tdep.c: New file.
2795 * cris-tdep.h: New file.
2797 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2799 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2800 to deprecated_init_ui_hook.
2802 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2804 * cli/cli-interp.c (_initialize_cli_interp): Add a
2805 command_loop_proc to interp_procs.
2806 * event-top.c (cli_command_loop): Change signature to match
2807 interp_command_loop_ftype.
2808 * event-top.h (cli_command_loop): Same.
2809 * interps.c (interp_new): Require every interpreter to have a
2811 (current_interp_command_loop): Just call the command_loop_proc on
2812 the current interpreter.
2813 * tui/tui-interp.c (_initialize_tui_interp): Add a
2814 command_loop_proc to interp_procs.
2816 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2818 * cris-tdep.c (cris_gdbarch_init): Add call to
2819 get_gdbarch_fetch_tls_load_module_address.
2821 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2823 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2824 (cris_elf_gregset_t): Rename from elf_gregset_t.
2825 (crisv32_elf_gregset_t): Adjust.
2826 (cris_supply_gregset, fetch_core_registers): Adjust.
2828 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2830 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2832 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2834 * defs.h (deprecated_command_loop_hook): Remove, including
2835 references in comments.
2836 * interps.c (current_interp_command_loop): No longer use
2837 deprecated_command_loop_hook.
2838 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2840 * top.c (deprecated_command_loop_hook): Remove.
2842 2013-09-05 Pedro Alves <palves@redhat.com>
2844 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2845 local is now int instead of ULONGEST. Print it with %d
2846 instead of paddress.
2848 2013-09-05 Tristan Gingold <gingold@adacore.com>
2850 * MAINTAINERS: Remove avr maintainership.
2852 2013-09-05 Pedro Alves <palves@redhat.com>
2854 * findvar.c (value_of_register): Rework in terms of
2855 value_of_register_lazy.
2857 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2859 * symfile.c (add_symbol_file_command): Remove trailing
2860 whitespaces and blank line after comment.
2862 2013-09-05 Pedro Alves <palves@redhat.com>
2864 * tui/tui-regs.c (tui_register_format): Don't look at the
2865 register's name here. Return string representing register
2866 value instead of storing it in the data element.
2867 (tui_get_register): Compare register string representations
2868 instead of register value states and contents.
2870 2013-09-05 Pedro Alves <palves@redhat.com>
2873 * tui/tui-regs.c (tui_show_registers): Show registers of the
2874 selected frame, not the current frame.
2876 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2878 * MAINTAINERS (Write After Approval): Add myself to the list.
2880 2013-09-04 Doug Evans <dje@google.com>
2882 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2883 (queue_and_load_dwo_tu): New function.
2884 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2885 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2886 Make dependent_cu optional.
2887 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2888 and an older .gdb_index is in use, queue and load all its TUs too.
2890 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2892 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2893 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2894 variable search_flags.
2895 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2896 (OPF_RETURN_REALPATH): ... here.
2897 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2898 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2900 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2902 * solib.c (solib_find): Likewise. Four times.
2903 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2904 in the function comment and for the realpath_fptr variable.
2905 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2906 (find_and_open_source): Likewise. Twice.
2907 * symfile.c (symfile_bfd_open): Likewise, also twice.
2909 2013-09-04 Doug Evans <dje@google.com>
2911 * progspace.c (save_current_space_and_thread): Remove unnecessary
2912 call to save_current_inferior.
2914 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2916 * sh64-tdep.c (sh64_do_register): Return after printing message
2917 about unavailable register contents.
2919 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2920 Pedro Alves <palves@redhat.com>
2922 * symfile.c (add_symbol_file_command): Error out on unknown
2923 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2924 options and collapse into single conditional branch.
2926 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2928 * inf-child.c (inf_child_follow_fork): New parameter
2930 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2931 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2932 * inferior.h (detach_fork): Remove.
2933 * infrun.c (detach_fork): Adjust comment and make it
2935 (follow_fork): Pass detach_fork parameter to
2937 * linux-nat.c (linux_child_follow_fork): New parameter
2939 * target.c (target_follow_fork): New parameter detach_fork.
2940 Pass detach_fork as parameter and print its value.
2941 * target.h (struct target_ops) <to_follow_fork>: New int
2943 (target_follow_fork): New parameter detach_fork.
2945 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2947 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2948 Replace sec->bfd by sec->the_bfd_section->owner.
2950 2013-09-03 Yao Qi <yao@codesourcery.com>
2952 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2953 from linux_has_shared_address_space.
2954 (linux_has_shared_address_space): Call linux_is_uclinux.
2955 * linux-tdep.h (linux_is_uclinux): Declare.
2956 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2959 2013-09-03 Yao Qi <yao@codesourcery.com>
2961 * config/djgpp/fnchange.lst: Remove entry of
2962 i386-interix-nat.c and i386-interix-tdep.c.
2963 * configure.ac: Remove '*-*-interix*'.
2964 * configure: Re-generated.
2965 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2966 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2968 * osabi.c (gdb_osabi_names): Remove "Interix".
2970 2013-09-03 Yao Qi <yao@codesourcery.com>
2972 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2974 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2976 * record.h (record_print_flag) <record_print_src_line,
2977 record_print_insn_range>: Rename into ...
2978 (record_print_flag) <record_print_src_line,
2979 record_print_insn_range>: ... this. Update all users.
2981 2013-09-02 Pierre Muller <muller@sourceware.org>
2983 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2986 2013-09-02 Pierre Muller <muller@sourceware.org>
2988 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2989 by use of plongest function.
2991 2013-09-02 Tristan Gingold <gingold@adacore.com>
2993 * NEWS: Add entry mentioning support for native Windows x64
2996 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2997 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2998 (struct amd64_windows_frame_cache): New struct.
2999 (amd64_windows_w2gdb_regnum): New global.
3000 (pc_in_range, amd64_windows_frame_decode_epilogue)
3001 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3002 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3003 (amd64_windows_frame_this_id): New functions.
3004 (amd64_windows_frame_unwind): New static global.
3005 (amd64_windows_skip_prologue): New function.
3006 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3007 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3008 with amd64_windows_skip_prologue.
3010 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3014 2013-08-30 Pedro Alves <palves@redhat.com>
3016 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3019 2013-08-30 Pedro Alves <palves@redhat.com>
3021 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3024 2013-08-30 Pedro Alves <palves@redhat.com>
3026 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3027 Adjust arguments to print_stack_frame.
3029 2013-08-30 Pedro Alves <palves@redhat.com>
3031 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3033 2013-08-30 Pedro Alves <palves@redhat.com>
3035 * frame.h (show_and_print_stack_frame): Delete declaration.
3037 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3040 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3041 (archpy_name): Check for valid architecture.
3042 (archpy_disassemble): Ditto.
3044 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3046 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3047 instead of "long long" in call to ptrace64.
3049 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3051 * mi/mi-interp.c (mi_command_loop): Change signature to match
3052 interp_command_loop_ftype.
3053 (mi1_command_loop): Remove.
3054 (mi2_command_loop): Remove.
3055 (mi3_command_loop): Remove.
3056 (mi_interpreter_resume): Remove setting of
3057 deprecated_command_loop_hook.
3058 (_initialize_mi_interp): Set mi_command_loop as the command loop
3061 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3063 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3066 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3068 * value.c (allocate_value_contents): Make static.
3069 * value.h (allocate_value_contents): Remove prototype.
3071 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3073 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3074 of assembling value via allocate_value_lazy and attribute setter.
3075 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3076 assembling value via allocate_value_lazy and attribute setter.
3077 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3078 assembling value via allocate_value_lazy and attribute setter.
3080 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3082 * value.c (value_from_contents_and_address): Replace allocate_value and
3083 memcpy with value_from_contents.
3085 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3087 * python/py-framefilter.c (py_print_frame): Remove usage of
3088 PyString_AsString. Use python_string_to_host_string instead.
3089 Refactor function to work with a string as a new allocation
3090 instead of a pointer.
3091 (py_print_frame): Ditto.
3092 * python/lib/gdb/frames.py (return_list): Cain iterators together
3093 instead of adding them as a list.
3094 (_sort_list): Call return_list, and remove duplicate code.
3095 (execute_frame_filters): Convert iterator to a list with list().
3096 * python/lib/gdb/command/frame_filters.py
3097 (SetFrameFilterPriority._set_filter_priority): Convert priority
3098 attribute to an integer.
3099 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3100 wrapper function __next__.
3101 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3104 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3107 * python/py-framefilter.c (apply_frame_filter): Check
3108 gdb_python_initialized. Exit if the Python frame-filter code
3109 cannot be initialized.
3111 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3114 * top.c (print_gdb_version): Remove erroneous newline after help
3117 2013-08-29 Yao Qi <yao@codesourcery.com>
3119 * varobj.c (install_dynamic_child): Remove trailing space.
3120 Add one blank line after variable declaration.
3122 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3125 * corefile.c (get_exec_file): Use exec_filename.
3126 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3127 * exec.c (exec_close): Free EXEC_FILENAME.
3128 (exec_file_attach): New variable canonical_pathname. Use
3129 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3131 * exec.h (exec_filename): New.
3132 * inferior.c (print_inferior, inferior_command): Use
3133 PSPACE_EXEC_FILENAME.
3134 * mi/mi-main.c (print_one_inferior): Likewise.
3135 * progspace.c (clone_program_space, print_program_space): Likewise.
3136 * progspace.h (struct program_space): New field pspace_exec_filename.
3137 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3138 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3140 2013-08-28 Will Newton <will.newton@linaro.org>
3142 * common/linux-ptrace.c: Include stdint.h unconditionally.
3144 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3147 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3149 2013-08-28 Yao Qi <yao@codesourcery.com>
3150 Pedro Alves <palves@redhat.com>
3152 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3153 instead of stdio_fileopen.
3154 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3155 .Call stderr_fileopen instead of stdio_fileopen.
3156 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3157 [__MINGW32__] (stderr_file_fputs): New function.
3158 (stderr_fileopen): New function.
3159 * ui-file.h (stderr_fileopen): Declare.
3161 2013-08-27 Doug Evans <dje@google.com>
3163 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3164 (struct dwarf2_per_cu_data): Ditto.
3165 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3166 (process_imported_unit_die): Ditto.
3167 (follow_die_sig_1): Simplify assert.
3169 2013-08-27 Pedro Alves <palves@redhat.com>
3171 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3172 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3173 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3174 windows_xfer_memory directly.
3175 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3177 2013-08-27 Pedro Alves <palves@redhat.com>
3179 * darwin-nat.c (darwin_xfer_memory): Delete.
3180 (_initialize_darwin_inferior): Don't install a
3181 deprecated_xfer_memory method.
3183 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3184 Yao Qi <yao@codesourcery.com>
3186 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3187 (parse_no_frames_option): Remove.
3188 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3189 (mi_cmd_stack_list_args): Adjust.
3190 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3191 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3192 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3194 (list_args_or_locals): New parameter 'skip_unavailable'.
3196 * valprint.c (scalar_type_p): Rename to ...
3197 (val_print_scalar_type_p): ... this. Make extern.
3198 (val_print, value_check_printable): Adjust.
3199 * valprint.h (val_print_scalar_type_p): Declare.
3200 * value.c (value_entirely_unavailable): New function.
3201 * value.h (value_entirely_unavailable): Declare.
3203 * NEWS: Mention the new option "--skip-unavailable" to MI
3204 commands '-stack-list-locals', '-stack-list-arguments' and
3205 '-stack-list-variables'.
3207 2013-08-27 Yao Qi <yao@codesourcery.com>
3209 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3210 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3212 * mi/mi-getopt.c (mi_getopt): Remove.
3213 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3215 (mi_getopt): Call mi_getopt_1.
3216 (mi_getopt_silent): New.
3217 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3219 2013-08-26 Doug Evans <dje@google.com>
3222 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3223 .gdb_index is in use.
3224 * symfile.c (reread_symbols): Reset objfile->sf.
3226 * NEWS: Document "mt print objfiles" now takes optional regexp.
3227 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3228 regexp of objfiles to print.
3229 (_initialize_symmisc): Update doc string for "mt print objfiles".
3231 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3232 missing debug info checks.
3234 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3235 Ulrich Weigand <uweigand@de.ibm.com>
3237 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3238 line tables generated by XLC compiled binaries.
3240 2013-08-23 Doug Evans <dje@google.com>
3242 * symmisc.c (dump_symtab): Delete prototype.
3243 (dump_msymbols, dump_objfile): Ditto.
3244 (maintenance_info_symtabs): Mark as dont_repeat.
3245 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3247 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3248 debugging printf to better location.
3250 2013-08-23 Pedro Alves <palves@redhat.com>
3252 * target.c (target_read_live_memory): Change type of 'ret' local
3255 2013-08-23 Pedro Alves <palves@redhat.com>
3257 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3258 (remote_read_bytes): Change return type to LONGEST, and adjust to
3259 return a target_xfer_error on error.
3260 (remote_xfer_memory): Delete.
3261 (remote_flash_write): Change type of 'ret' local to LONGEST.
3262 (remote_xfer_partial, remote_xfer_partial): Adjust.
3263 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3265 2013-08-23 Pierre Muller <muller@sourceware.org>
3267 ARI fix: Push # directives to start of line.
3268 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3270 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3273 * breakpoint.c (enable_command, disable_command): Iterate over
3274 all specified breakpoint locations.
3276 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3278 * common/linux-ptrace.c (linux_fork_to_function): Push #
3279 directives to the start of the line.
3280 (linux_check_ptrace_features): Fix warning message to use
3283 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3285 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3286 nat/linux-waitpid.h.
3287 (linux-waitpid.o): New object file rule.
3288 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3289 (current_ptrace_options): Moved from linux-nat.c.
3290 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3292 (linux_fork_to_function): New function.
3293 (linux_grandchild_function): Likewise.
3294 (linux_child_function): Likewise.
3295 (linux_check_ptrace_features): New function, heavily
3296 based on linux-nat.c:linux_test_for_tracefork.
3297 (linux_enable_event_reporting): New function.
3298 (ptrace_supports_feature): Likewise.
3299 (linux_supports_tracefork): Likewise.
3300 (linux_supports_traceclone): Likewise.
3301 (linux_supports_tracevforkdone): Likewise.
3302 (linux_supports_tracesysgood): Likewise.
3303 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3304 gdbserver/linux-low.c.
3305 (linux_enable_event_reporting): New declaration.
3306 (linux_supports_tracefork): Likewise.
3307 (linux_supports_traceclone): Likewise.
3308 (linux_supports_tracevforkdone): Likewise.
3309 (linux_supports_tracesysgood): Likewise.
3310 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3311 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3312 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3313 * config/arm/linux.mh (NATDEPFILES): Likewise.
3314 * config/i386/linux.mh (NATDEPFILES): Likewise.
3315 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3316 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3317 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3318 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3319 * config/mips/linux.mh (NATDEPFILES): Likewise.
3320 * config/pa/linux.mh (NATDEPFILES): Likewise..
3321 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3322 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3323 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3324 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3325 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3326 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3327 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3328 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3329 ptrace's 4th argument's types.
3330 Check the type of PTRACE_TYPE_ARG4.
3331 * configure: Regenerate.
3332 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3333 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3334 (linux_supports_tracefork_flag): Remove.
3335 (linux_supports_tracesysgood_flag): Likewise.
3336 (linux_supports_tracevforkdone_flag): Likewise.
3337 (current_ptrace_options): Moved to
3338 common/linux-ptrace.c.
3339 (linux_tracefork_child): Remove.
3340 (my_waitpid): Remove.
3341 (linux_test_for_tracefork): Renamed to
3342 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3343 (linux_test_for_tracesysgood): Remove.
3344 (linux_supports_tracesysgood): Remove.
3345 (linux_supports_tracefork): Remove.
3346 (linux_supports_tracevforkdone): Remove.
3347 (linux_enable_tracesysgood): Remove.
3348 (linux_enable_event_reporting): Remove.
3349 (linux_init_ptrace): New function.
3350 (linux_child_post_attach): Call linux_init_ptrace.
3351 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3352 (linux_child_follow_fork): Call linux_supports_tracefork
3353 and linux_supports_tracevforkdone.
3354 (linux_child_insert_fork_catchpoint): Call
3355 linux_supports_tracefork.
3356 (linux_child_insert_vfork_catchpoint): Likewise.
3357 (linux_child_set_syscall_catchpoint): Call
3358 linux_supports_tracesysgood.
3359 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3360 * nat/linux-nat.h: New file.
3361 * nat/linux-waitpid.c: New file.
3362 * nat/linux-waitpid.h: New file.
3364 2013-08-22 Samuel Bronson <naesten@gmail.com>
3366 ARM Linux support for `catch syscall'.
3367 * syscalls/arm-linux.py: New file.
3368 * syscalls/arm-linux.xml: Likewise.
3369 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3370 (arm_linux_init_abi): Register the new function and syscall xml file.
3371 * data-directory/Makefile.in: Install the new syscall xml file.
3372 * NEWS: Brag about this.
3374 2013-08-22 Pedro Alves <palves@redhat.com>
3377 * corefile.c (target_xfer_memory_error): New function.
3378 (memory_error): Defer EIO to target_memory_error.
3379 (read_memory): Use target_xfer_partial, and handle finer-grained
3381 * target.c (target_xfer_error_to_string): New function.
3382 (memory_xfer_partial_1): If memory is known to be
3383 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3384 (target_xfer_partial): Make extern.
3385 * target.h (enum target_xfer_error): New enum.
3386 (target_xfer_error_to_string): Declare function.
3387 (target_xfer_partial): Declare function.
3388 (struct target_ops) <xfer_partial>: Adjust describing comment.
3390 2013-08-22 Alan Modra <amodra@gmail.com>
3392 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3393 * configure.tgt: Likewise as targets.
3395 2013-08-20 Doug Evans <dje@google.com>
3397 * buildsym.c (subfile_stack): Move here from buildsym.h.
3398 (pending_macros): Ditto.
3399 (get_macro_table): New function.
3400 (buildsym_init): Initialize subfile_stack.
3401 * coffread.c (type_vector,type_vector_length): Moved here from
3403 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3404 (coff_symtab_read): Use it.
3405 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3406 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3407 with call to get_macro_table.
3408 * stabsread.c (type_vector,type_vector_length): Moved here from
3410 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3411 * buildsym.h (get_macro_table): Declare.
3413 2013-08-20 Tom Tromey <tromey@redhat.com>
3415 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3417 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3419 2013-08-20 Doug Evans <dje@google.com>
3421 * blockframe.c: Remove #include "psymtab.h".
3422 * cp-support.c: Ditto.
3426 2013-08-20 Tom Tromey <tromey@redhat.com>
3429 * exceptions.h (return_mask): Now an enum.
3430 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3433 2013-08-20 Tom Tromey <tromey@redhat.com>
3435 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3437 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3438 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3439 * jit.c (jit_object_close_impl): Update.
3440 * jv-lang.c (get_dynamics_objfile): Update.
3441 * linespec.c (add_minsym): Use get_dynamics_objfile.
3442 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3443 (allocate_objfile): Don't initialize 'gdbarch' field.
3444 (get_objfile_arch): Update.
3445 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3447 (struct objfile) <gdbarch>: ... here. Remove.
3448 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3450 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3452 2013-08-20 Alan Modra <amodra@gmail.com>
3454 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3455 for IBM long double nan and inf.
3456 (floatformat_is_negative, floatformat_classify,
3457 floatformat_mantissa): Similarly.
3458 (floatformat_ieee_single, floatformat_ieee_double,
3459 floatformat_ieee_quad, floatformat_arm_ext,
3460 floatformat_ia64_spill): Delete unused vars.
3461 (_initialize_doublest): Delete unused function.
3462 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3463 little-endian variants of floatformat_ibm_long_double.
3465 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3467 * Makefile.in (SFILES): Remove common/target-common.c and
3468 add target/waitstatus.c.
3469 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3470 target/resume.h, target/wait.h and target/waitstatus.h.
3471 (COMMON_OBS): Remove target-common.o and add
3473 (target-common.o): Remove.
3474 (waitstatus.o): New target object file.
3475 * common/target-common.c: Move contents to
3476 target/waitstatus.c and remove.
3477 * common/target-common.h: Move contents to other files and
3479 (enum resume_kind: Move to target/resume.h.
3480 (TARGET_WNOHANG): Move to target/wait.h.
3481 (enum target_waitkind): Move to target/waitstatus.h.
3482 (struct target_waitstatus): Likewise.
3483 * target.h: Do not include target-common.h and
3484 include target/resume.h, target/wait.h and
3485 target/waitstatus.h.
3486 * target/resume.h: New file.
3487 * target/wait.h: New file.
3488 * target/waitstatus.h: New file.
3489 * target/waitstatus.c: New file.
3491 2013-08-19 Pedro Alves <palves@redhat.com>
3493 * linux-nat.c (linux_test_for_tracefork)
3494 (linux_test_for_tracesysgood, linux_child_follow_fork)
3495 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3496 (linux_nat_wait_1): Extend comment.
3497 (linux_async_pipe): Add comment.
3499 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3501 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3502 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3503 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3504 Update to account for fact that PC is now a pseudo-register.
3505 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3506 cases for RL78_PC_REGNUM.
3508 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3511 * top.c (quit_force): Skip writing history file
3512 if input is not from terminal.
3514 2013-08-14 Tom Tromey <tromey@redhat.com>
3516 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3517 resultthreadlist>: New fields.
3518 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3519 (remote_get_threadlist, remote_threadlist_iterator): Use
3520 new fields. Remove static variables.
3522 2013-08-14 Tom Tromey <tromey@redhat.com>
3524 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3525 remote_watch_data_address>: New fields.
3526 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3527 (process_stop_reply, remote_wait_as)
3528 (remote_check_watch_resources, remote_stopped_data_address): Update.
3530 2013-08-14 Tom Tromey <tromey@redhat.com>
3532 * remote.c (struct remote_state) <async_client_callback,
3533 async_client_context>: New fields.
3534 (async_client_callback, async_client_context): Remove.
3535 (remote_async_serial_handler, remote_async): Update.
3537 2013-08-14 Tom Tromey <tromey@redhat.com>
3539 * remote.c (sizeof_pkt): Remove.
3540 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3542 2013-08-14 Tom Tromey <tromey@redhat.com>
3544 * remote.c (struct remote_state) <use_threadinfo_query,
3545 use_threadextra_query>: New fields.
3546 (remote_threads_info, remote_threads_extra_info)
3547 (remote_open_1): Update.
3549 2013-08-14 Tom Tromey <tromey@redhat.com>
3551 * remote.c (struct remote_state) <finished_object,
3552 finished_annex, finished_offset>: New fields.
3553 (remote_read_qxfer): Use remote_state fields; remove static
3556 2013-08-14 Tom Tromey <tromey@redhat.com>
3558 * remote.c (struct remote_state) <last_sent_step>:
3560 (last_sent_step): Remove.
3561 (remote_resume, remote_wait_as): Update.
3563 2013-08-14 Tom Tromey <tromey@redhat.com>
3565 * remote.c (struct remote_state) <last_sent_signal>:
3567 (last_sent_signal): Remove.
3568 (new_remote_state, remote_resume, remote_wait_as): Update.
3570 2013-08-14 Tom Tromey <tromey@redhat.com>
3572 * remote.c (struct remote_state) <last_program_signals_packet>:
3574 (last_program_signals_packet): Remove.
3575 (remote_program_signals, remote_open_1): Update.
3577 2013-08-14 Tom Tromey <tromey@redhat.com>
3579 * remote.c (struct remote_state) <last_pass_packet>:
3581 (last_pass_packet): Remove.
3582 (remote_pass_signals, remote_open_1): Update.
3584 2013-08-14 Tom Tromey <tromey@redhat.com>
3586 * remote.c (struct remote_state) <remote_traceframe_number>:
3588 (remote_traceframe_number): Remove.
3589 (new_remote_state, remote_open_1, set_remote_traceframe)
3590 (remote_trace_find): Update.
3592 2013-08-14 Tom Tromey <tromey@redhat.com>
3594 * remote.c (struct remote_state) <general_thread, continue_thread>:
3596 (general_thread, continue_thread): Remove.
3597 (record_currthread, set_thread, set_general_process)
3598 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3599 (extended_remote_mourn_1): Update.
3601 2013-08-14 Tom Tromey <tromey@redhat.com>
3603 * remote.c (struct remote_state) <remote_desc>: New field.
3604 (remote_desc): Remove.
3605 (remote_threads_info, remote_threads_extra_info, remote_close)
3606 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3607 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3608 (remote_hostio_send_command, remote_file_put, remote_file_get)
3609 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3610 (remote_async, remote_new_objfile, set_range_stepping): Update.
3612 2013-08-14 Tom Tromey <tromey@redhat.com>
3614 * remote.c (remote_state): Now a pointer.
3615 (get_remote_state_raw): Update.
3616 (new_remote_state): New function.
3617 (_initialize_remote): Use new_remote_state.
3619 2013-08-14 Tom Tromey <tromey@redhat.com>
3621 * remote.c (remote_protocol_features): Now const.
3623 2013-08-14 Tom Tromey <tromey@redhat.com>
3625 * remote.c (crc32_table, crc32): Remove.
3626 (remote_verify_memory): Use xcrc32.
3628 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3630 * value.h (create_internalvar_type_lazy): Adjust prototype
3633 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3635 * common/format.c (parse_format_string): Don't allow '#' flag for
3636 pointer arguments in format string.
3638 2013-08-13 Pierre Muller <muller@sourceware.org>
3640 * utils.c (init_page_info): Only call tgetnum function
3641 if rl_get_screen_size did not return useful values.
3643 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3645 PR breakpoints/15117
3646 * linespec.c (linespec_parse_basic): Check for convenience
3647 variable or history value while parsing.
3649 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3651 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3653 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3654 different signals between the generic Linux kernel implementation
3656 (avr_linux_gdb_signal_from_target): Delete.
3657 (avr_linux_gdb_signal_to_target): Delete.
3658 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3660 2013-08-09 Doug Evans <dje@google.com>
3662 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3665 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3667 * linux-tdep.c: Define enum with generic signal numbers.
3668 (linux_gdb_signal_from_target): New function.
3669 (linux_gdb_signal_to_target): Likewise.
3670 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3671 methods to the functions above.
3672 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3673 (linux_gdb_signal_to_target): Likewise.
3674 * alpha-linux-tdep.c: Define new enum with signals different
3675 from generic Linux kernel.
3676 (alpha_linux_gdb_signal_from_target): New function.
3677 (alpha_linux_gdb_signal_to_target): Likewise.
3678 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3679 with the functions mentioned above.
3680 * avr-tdep.c: Define enum with differences between Linux kernel
3682 (avr_linux_gdb_signal_from_target): New function.
3683 (avr_linux_gdb_signal_to_target): Likewise.
3684 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3685 the functions mentioned above.
3686 * sparc-linux-tdep.c: Define enum with differences between SPARC
3687 and generic Linux kernel signal numbers.
3688 (sparc32_linux_gdb_signal_from_target): New function.
3689 (sparc32_linux_gdb_signal_to_target): Likewise.
3690 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3691 to the functions defined above.
3692 * xtensa-linux-tdep.c: Define enum with differences between
3693 Xtensa and Linux kernel generic signals.
3694 (xtensa_linux_gdb_signal_from_target): New function.
3695 (xtensa_linux_gdb_signal_to_target): Likewise.
3696 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3697 to the functions defined above.
3698 * mips-linux-tdep.c: Define enum with differences between
3699 signals in MIPS and Linux kernel generic ones.
3700 (mips_gdb_signal_to_target): New function.
3701 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3702 only different signals from the Linux kernel generic.
3703 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3704 the functions defined above.
3705 * mips-linux-tdep.h (enum mips_signals): Remove.
3707 2013-08-09 Pedro Alves <palves@redhat.com>
3709 * avr-tdep.c (XMALLOC): Delete macro.
3710 * cli/cli-dump.c (XMALLOC): Delete macro.
3712 2013-08-09 Pedro Alves <palves@redhat.com>
3714 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3715 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3716 (fopen_with_cleanup, add_dump_command): Make static.
3717 * cli/cli-dump.h: Delete file.
3718 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3721 2013-08-09 Pedro Alves <palves@redhat.com>
3723 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3726 2013-08-09 Pedro Alves <palves@redhat.com>
3728 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3731 2013-08-09 Pedro Alves <palves@redhat.com>
3733 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3734 (gcore_command): Use tilde_expand here, and when showing the
3735 filename to the user, show the expanded version.
3737 2013-08-09 Yao Qi <yao@codesourcery.com>
3739 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3742 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3744 * gcore.c (create_gcore_bfd): Use tilde_expand.
3746 2013-08-08 Yao Qi <yao@codesourcery.com>
3748 * frame.h (read_frame_local): Declare.
3749 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3751 * stack.c (read_frame_local): New.
3753 2013-08-08 Yao Qi <yao@codesourcery.com>
3755 * mi/mi-cmd-stack.c: Update comments to function
3756 list_args_or_locals.
3758 2013-08-07 Tom Tromey <tromey@redhat.com>
3761 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3762 (process_psymtab_comp_unit_reader): Use it.
3763 (process_psymtab_comp_unit): Update. Add "pretend_language"
3765 (dwarf2_build_psymtabs_hard): Update.
3766 (scan_partial_symbols): Pass CU's language to
3767 process_psymtab_comp_unit.
3769 2013-08-07 Tom Tromey <tromey@redhat.com>
3771 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3772 (dwarf2_gdb_index_functions): Update.
3773 * psymtab.c (find_symbol_file_from_partial): Remove.
3774 (psym_functions): Update.
3775 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3778 2013-08-07 Tom Tromey <tromey@redhat.com>
3780 * symfile.c (set_initial_language): Look up "main" symbol
3781 and use its language.
3782 * symtab.c (find_main_filename): Remove.
3783 * symtab.h (find_main_filename): Remove.
3785 2013-08-07 Tom Tromey <tromey@redhat.com>
3787 * dwarf2read.c (recursively_compute_inclusions): Add
3788 "immediate_parent" argument. Set symtab's "user" field
3790 (compute_symtab_includes): Update.
3792 2013-08-07 Tom Tromey <tromey@redhat.com>
3794 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3795 when adding label symbols.
3797 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3798 Ulrich Weigand <uweigand@de.ibm.com>
3800 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3801 * configure.host (powerpc64-*-aix*): Likewise.
3803 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3804 Ulrich Weigand <uweigand@de.ibm.com>
3806 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3808 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3809 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3810 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3811 * configure.ac: Check for ptrace64.
3812 * configure, config.in: Regenerate.
3814 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3815 Ulrich Weigand <uweigand@de.ibm.com>
3817 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3818 Call ptrace64 instead of ptrace if defined.
3819 Add macro addr_ptr to take care of ptrace address argument.
3820 (pdc_read_regs): Likewise.
3821 (pdc_write_regs): Likewise.
3822 (aix_thread_resume): Likewise.
3823 (fetch_regs_kernel_thread): Likewise.
3824 (store_regs_kernel_thread): Likewise.
3826 2013-08-07 Anton Blanchard <anton@samba.org>
3828 * MAINTAINERS: Add myself to Write After Approval.
3830 2013-08-05 Tom Tromey <tromey@redhat.com>
3832 * aix-thread.c (_initialize_aix_thread): Use
3833 complete_target_initialization.
3834 * bsd-uthread.c (_initialize_bsd_uthread): Use
3835 complete_target_initialization.
3836 * dec-thread.c (_initialize_dec_thread): Use
3837 complete_target_initialization.
3838 * ravenscar-thread.c (_initialize_ravenscar): Use
3839 complete_target_initialization.
3840 * sol-thread.c (_initialize_sol_thread): Use
3841 complete_target_initialization.
3842 * spu-multiarch.c (_initialize_spu_multiarch): Use
3843 complete_target_initialization.
3845 2013-08-05 Tom Tromey <tromey@redhat.com>
3847 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3848 * ada-lang.c (ada_lookup_simple_minsym): Return
3849 bound_minimal_symbol.
3850 * ada-lang.h (ada_lookup_simple_minsym): Update.
3851 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3852 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3853 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3854 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3855 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3856 * minsyms.c (msymbol_objfile): Remove.
3857 (lookup_minimal_symbol_internal): New function, from
3858 lookup_minimal_symbol.
3859 (lookup_minimal_symbol): Rewrite using
3860 lookup_minimal_symbol_internal.
3861 (lookup_bound_minimal_symbol): New function.
3862 * minsyms.h (msymbol_objfile): Remove.
3863 (lookup_bound_minimal_symbol): Declare.
3864 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3865 * parse.c (write_exp_msymbol): Change parameter to a
3866 bound_minimal_symbol.
3867 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3868 * parser-defs.h (write_exp_msymbol): Update.
3869 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3870 * symfile.c (simple_read_overlay_table): Use
3871 lookup_bound_minimal_symbol.
3872 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3873 (search_symbols): Likewise.
3874 (print_msymbol_info): Take a bound_minimal_symbol argument.
3875 (symtab_symbol_info, rbreak_command): Update.
3876 * symtab.h (struct symbol_search) <msymbol>: Change type
3877 to bound_minimal_symbol.
3878 * valops.c (find_function_in_inferior): Use
3879 lookup_bound_minimal_symbol.
3880 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3882 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3885 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3887 (async_cleanup_sigint_signal_handler): ... this.
3888 (initialize_sigint_signal_handler): Remove declaration.
3889 (handle_remote_sigint): Rename the declaration to ...
3890 (async_handle_remote_sigint): ... this.
3891 (handle_remote_sigint_twice): Rename the declaration to ...
3892 (async_handle_remote_sigint_twice): ... this.
3893 (async_remote_interrupt, async_remote_interrupt_twice)
3894 (remote_interrupt): Remove the declarations.
3895 (remote_interrupt_twice): Rename the declaration ...
3896 (sync_remote_interrupt_twice): ... this.
3897 (sigint_remote_twice_token): Rename the variable to ...
3898 (async_sigint_remote_twice_token): ... this.
3899 (sigint_remote_token): Rename the variable to ...
3900 (async_sigint_remote_token): ... this.
3901 (initialize_sigint_signal_handler): Rename the function to ...
3902 (async_initialize_sigint_signal_handler): ... this. Update the name
3904 (handle_remote_sigint): Rename the function to ...
3905 (async_handle_remote_sigint): ... this. Update the names inside.
3906 (handle_remote_sigint_twice): Rename the function to ...
3907 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3908 (cleanup_sigint_signal_handler): Rename the function to ...
3909 (async_cleanup_sigint_signal_handler): ... this.
3910 (remote_interrupt): Rename the function to ...
3911 (sync_remote_interrupt): this. Update the names inside.
3912 (remote_interrupt_twice): Rename the function to ...
3913 (sync_remote_interrupt_twice): this. Update the names inside.
3914 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3915 (_initialize_remote): Update the names inside.
3917 2013-08-02 Tom Tromey <tromey@redhat.com>
3920 * breakpoint.c (update_watchpoint, watchpoint_check)
3921 (watch_command_1): Update.
3922 * eval.c (fetch_subexp_value): Add "preserve_errors"
3924 * ppc-linux-nat.c (check_condition): Update.
3925 * value.h (fetch_subexp_value): Update.
3927 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3929 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3932 2013-08-01 Doug Evans <dje@google.com>
3935 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3936 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3937 Add assert of sig_entry->dwo_unit == NULL.
3938 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3939 had already been read.
3940 (read_signatured_type): Set per_cu.tu_read.
3943 * valops.c (value_struct_elt): Add missing call to check_typedef.
3944 (value_find_oload_method_list): Ditto.
3946 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3947 effectively, struct symbol_search **.
3948 (make_cleanup_free_search_symbols): Change arg to struct
3949 symbol_search **. All callers updated.
3950 (compare_search_syms): Compare symtab file name and block as well.
3951 (search_symbols_equal): New function.
3952 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3953 New args new_head, new_tail. Result is now void. Remove dups after
3954 sorting the symbols.
3955 (search_symbols): Sort all found symbols once, after all have been
3956 found, and remove duplicates. Simplify cleanup tracking of result.
3957 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3959 Further workarounds for binutils/15021.
3960 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3961 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3962 Watch for duplicate symtabs coming from type units.
3963 (compute_symtab_includes): Update call to
3964 recursively_compute_inclusions. Build vector of included symtabs
3966 * symtab.h (symtab_ptr): New typedef.
3967 (DEF_VEC_P (symtab_ptr)): New VEC type.
3968 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3971 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3973 * cli/cli-script.c (script_from_file): Remove use of
3975 * main.c (captured_main): Remove use of error_pre_print and
3977 * utils.c (error_pre_print, quit_pre_print): Remove.
3978 * utils.h (error_pre_print, quit_pre_print): Likewise.
3980 2013-08-01 Yao Qi <yao@codesourcery.com>
3982 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3984 (mi_cmd_stack_list_variables): Likewise.
3986 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3988 * exceptions.c (deprecated_throw_reason): Remove.
3989 * exceptions.h (deprecated_throw_reason): Remove.
3991 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3993 * remote-mips.c (mips_error): Replace use of
3994 deprecated_throw_reason with throw_verror. Use the error message
3995 passed to mips_error as the error message for throw_verror.
3997 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3999 * monitor.c (monitor_interrupt_query): Replace use of
4000 deprecated_throw_reason with quit.
4001 * nto-procfs.c (interrupt_query): Likewise.
4002 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4003 * remote-mips.c (mips_kill): Likewise.
4004 * remote.c (interrupt_query): Likewise.
4006 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4008 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4011 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4012 Yao Qi <yao@codesourcery.com>
4014 * tracepoint.c (trace_dump_command): Select the current frame.
4016 2013-07-30 Doug Evans <dje@google.com>
4018 * dwarf2read.c (process_queue): Add type signature to debug output.
4020 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4022 * value.c (value_fetch_lazy): Mark optimized out values as such
4023 rather than raising an error.
4025 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4027 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4028 before checking which bits of the parent, not the child, value are
4031 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4034 * top.c: Include "filenames.h".
4035 (set_history_filename): New function.
4036 (init_main): Install it as set hook of the "set history filename"
4039 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4041 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4042 attribute parameter.
4043 (dwarf2_const_value_data): Constify struct attribute parameter.
4044 (dwarf2_const_value): Constify struct attribute parameter.
4045 (dwarf2_const_value_attr): Constify struct attribute parameter.
4046 (lookup_die_type): Constify struct attribute parameter.
4047 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4048 (follow_die_ref_or_sig): Constify struct attribute parameter.
4049 (follow_die_ref): Constify struct attribute parameter.
4050 (follow_die_sig): Constify struct attribute parameter.
4051 (get_DW_AT_signature_type): Constify struct attribute parameter.
4052 (get_type_unit_group): Constify struct attribute parameter.
4053 (fill_in_loclist_baton): Constify struct attribute parameter.
4054 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4055 (type_unit_group): Constify struct attribute parameter.
4057 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4059 * dwarf2read.c (attr_form_is_block): Make argument const.
4060 (attr_form_is_section_offset): Make argument const.
4061 (attr_form_is_constant): Make argument const.
4062 (attr_form_is_ref): Make argument const.
4064 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4066 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4068 (attr_form_is_ref): Moved below attr_form_is_constant.
4070 2013-07-29 Doug Evans <dje@google.com>
4072 * main.c (captured_command_loop): Tweak comment.
4074 * target.c (target_async_permitted_1): Fix comment.
4076 * symtab.c (iterate_over_some_symtabs): Add comment.
4078 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4080 2013-07-27 Yao Qi <yao@codesourcery.com>
4082 * NEWS: Mention that GDBserver now supports hardware
4083 watchpoints on the MIPS GNU/Linux target.
4085 2013-07-27 Yao Qi <yao@codesourcery.com>
4087 * Makefile.in (HFILES_NO_SRCDIR): Add
4088 common/mips-linux-watch.h.
4089 (mips-linux-watch.o): New rule.
4090 * common/mips-linux-watch.c: New.
4091 * common/mips-linux-watch.h: New.
4092 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4093 * mips-linux-nat.c: Include mips-linux-watch.h.
4094 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4095 to common/mips-linux-watch.h.
4096 (MAX_DEBUG_REGISTER): Likewise.
4097 (enum pt_watch_style): Likewise.
4098 (struct mips32_watch_regs): Likewise.
4099 (struct mips64_watch_regs): Likewise.
4100 (struct pt_watch_regs): Likewise.
4101 (struct mips_watchpoint): Likewise.
4102 (mips_linux_watch_get_irw_mask): Move to
4103 common/mips-linux-watch.c.
4104 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4105 (mips_linux_watch_get_watchlo): Likewise.
4106 (mips_linux_watch_set_watchlo): Likewise.
4107 (mips_linux_watch_get_watchhi): Likewise.
4108 (mips_linux_watch_set_watchhi): Likewise.
4109 (mips_linux_read_watch_registers): Likewise.
4110 (mips_linux_watch_type_to_irw): Likewise.
4111 (mips_linux_stopped_data_address, fill_mask): Likewise.
4112 (mips_linux_watch_try_one_watch): Likewise.
4113 (mips_linux_watch_populate_regs): Likewise.
4115 2013-07-27 Yao Qi <yao@codesourcery.com>
4117 * mips-linux-nat.c (get_irw_mask): Rename to ...
4118 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4119 'set' to 'n'. Update function comment. All callers changed.
4120 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4121 function comment. All callers changed.
4122 (get_num_valid): Rename to ...
4123 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4124 'set' to 'n'. Update function comment. All callers changed.
4125 (get_watchlo): Rename to ...
4126 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4127 'set' to 'n'. Update function comment. All callers changed.
4128 (set_watchlo): Rename to ...
4129 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4130 'set' to 'n'. Update function comment. All callers changed.
4131 (get_watchhi): Rename to ...
4132 (mips_linux_watch_get_watchhi): ... this. Update function
4133 comment. All callers changed.
4134 (set_watchhi): Rename to ...
4135 (mips_linux_watch_set_watchhi): ... this. Update function
4136 comment. All callers changed.
4137 (mips_linux_read_watch_registers): Update function comment.
4138 Add new parameters 'lwpid', 'watch_readback', and
4139 'watch_readback_valid'. Update.
4140 (type_to_irw): Rename to ...
4141 (mips_linux_watch_type_to_irw): ... this. Update function
4142 comment. All callers changed.
4143 (fill_mask): Update function comment.
4144 (try_one_watch): Rename to ...
4145 (mips_linux_watch_try_one_watch): ... this. Change the type
4146 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4147 (populate_regs_from_watches): Rename to ...
4148 (mips_linux_watch_populate_regs): ... this. Add parameter
4149 'current_watches'. All callers changed.
4151 2013-07-27 Yao Qi <yao@codesourcery.com>
4153 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4155 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4156 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4157 (struct pt_watch_regs): Likewise.
4158 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4159 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4160 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4161 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4162 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4164 2013-07-27 Yao Qi <yao@codesourcery.com>
4166 * breakpoint.h: Include break-common.h.
4167 (enum target_hw_bp_type): Move to ...
4168 * common/break-common.h: ... here. New.
4170 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4172 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4173 process group regardless of having tty on stdin.
4175 2013-07-25 Doug Evans <dje@google.com>
4177 * linux-fork.h (detach_fork): Delete.
4179 2013-07-25 Tom Tromey <tromey@redhat.com>
4181 PR remote/15256, PR remote/15266:
4182 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4183 * monitor.c (monitor_detach): Use unpush_target.
4184 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4185 * remote-mips.c (mips_detach): Use unpush_target. Don't
4187 * remote-sim.c (gdbsim_detach): Use unpush_target.
4188 * target.c (pop_target): Remove.
4189 (pop_all_targets_above): Don't call target_close.
4190 (target_close): Assert that the target is unpushed.
4191 * target.h (pop_target): Don't declare.
4192 * tracepoint.c (tfile_open): Use unpush_target.
4194 2013-07-25 Tom Tromey <tromey@redhat.com>
4196 * linux-thread-db.c (init_thread_db_ops): Call
4197 complete_target_initialization.
4198 (_initialize_thread_db): Don't call add_target.
4199 * target.c (complete_target_initialization): New function.
4200 (add_target_with_completer): Call it.
4201 * target.h (complete_target_initialization): Declare.
4203 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4205 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4206 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4207 (HPPANBSD_SIZEOF_GREGS): New define.
4208 (hppaobsd_supply_gregset): Handle additional registers.
4209 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4210 we provide more registers now.
4211 (hppabsd_supply_gregset): Supply additional registers.
4212 (hppabsd_collect_gregset): Collect additional registers.
4214 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4216 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4217 (hppabsd_dwarf2_frame_init_reg): New function.
4218 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4220 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4222 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4223 'z' format code. Remove error for optimized out values, standard
4224 code will handle these fine.
4226 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4228 * NEWS: Mention new 'z' formatter.
4229 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4230 (_initialize_printcmd): Mention 'z' formatter in help text of the
4233 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4235 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4238 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4240 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4241 interface can evaluate arguments. Fallback to the old mode if it
4243 (create_exception_master_breakpoint): Likewise.
4244 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4245 (struct sym_probe_fns elf_probe_fns): Export function above to the
4247 * probe.c (can_evaluate_probe_arguments): New function.
4248 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4250 (can_evaluate_probe_arguments): New function prototype.
4251 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4252 probe interface can evaluate arguments. Fallback to the old mode
4254 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4255 interface can evaluate arguments. Warning the user if it cannot.
4256 (stap_can_evaluate_probe_arguments): New function.
4257 (struct probe_ops stap_probe_ops): Export function above to the
4259 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4260 New function pointer.
4262 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4264 * Makefile.in (SFILES): Add common/target-common.c.
4265 Add common/target-common.h to headers.
4266 (COMMON_OBS): Add target-common.o.
4267 (target-common.o): New target.
4268 * linux-nat.h (resume_kind): Move to common/target-common.h.
4269 * target.c (target_waitstatus_to_string): Move to
4270 common/target-common.c.
4271 * target.h: Include target-common.h.
4272 (target_waitkind): Move to common/target-common.h.
4273 (target_waitstatus): Likewise.
4274 (TARGET_WNOHANG): Likewise.
4275 * common/target-common.c: New file.
4276 * common/target-common.h: New file.
4278 2013-07-24 Doug Evans <dje@google.com>
4280 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4283 2013-07-23 Yao Qi <yao@codesourcery.com>
4285 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4286 parameter 'gdbarch'.
4287 (i386_stack_tramp_frame_sniffer): Caller update.
4288 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4289 parameter 'gdbarch' and 'target'.
4290 (i386_linux_core_read_description): Caller update.
4291 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4293 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4296 2013-07-23 Tom Tromey <tromey@redhat.com>
4298 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4301 2013-07-22 Doug Evans <dje@google.com>
4303 * exec.h (remove_target_sections): Delete arg abfd.
4304 * exec.c (exec_close): Update call to remove_target_sections.
4305 (remove_target_sections): Delete arg abfd.
4306 * solib.c (update_solib_list): Ditto.
4307 (reload_shared_libraries_1): Ditto.
4308 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4309 * target.h (struct target_section): Rename key to owner.
4312 2013-07-22 Tom Tromey <tromey@redhat.com>
4314 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4316 2013-07-22 Tom Tromey <tromey@redhat.com>
4318 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4319 Simplify cleanup handling.
4321 2013-07-22 Tom Tromey <tromey@redhat.com>
4323 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4324 on all return paths.
4326 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4328 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4329 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4330 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4332 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4334 * top.c (print_gdb_version): Add help, apropos description and
4335 url to online documentation.
4337 2013-07-19 Hui Zhu <hui@codesourcery.com>
4340 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4342 2013-07-19 Yao Qi <yao@codesourcery.com>
4344 * target.c (update_current_target): Change the default action
4345 of 'to_traceframe_info' from tcomplain to return_zero.
4346 * target.h (struct target_ops) <to_traceframe_info>: Add more
4348 * valops.c (read_value_memory): Call
4349 traceframe_available_memory unconditionally.
4351 2013-07-18 Yao Qi <yao@codesourcery.com>
4353 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4354 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4355 symbol without prefix. If found, set its type to
4356 'mst_solib_trampoline'.
4358 2013-07-17 Doug Evans <dje@google.com>
4360 * NEWS: Mention "set print raw frame-arguments".
4361 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4362 * stack.c (print_raw_frame_arguments): New static global.
4363 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4364 (_initialize_stack): New command "set/show print raw frame-arguments".
4365 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4366 (set_print_raw, show_print_raw): New functions.
4367 (_initialize_valprint): New prefix command "set/show print raw".
4368 * valprint.h (value_print_options): Improve comments.
4370 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4371 of all *list variables.
4373 * gdbcmd.h (togglelist): Delete.
4374 * cli/cli-cmds.c (togglelist): Delete.
4375 (init_cmd_lists): Update.
4376 * cli/cli-cmds.h (togglelist): Delete.
4378 2013-07-17 Tom Tromey <tromey@redhat.com>
4380 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4383 2013-07-16 Doug Evans <dje@google.com>
4385 * nto-tdep.c (nto_relocate_section_addresses): Update,
4386 target_section.bfd deleted.
4387 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4388 * s390-tdep.c (s390_load): Ditto.
4389 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4391 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4393 * common/format.c (parse_format_string): Add checks for NULL
4394 character before calling strchr.
4396 2013-07-16 Doug Evans <dje@google.com>
4398 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4399 temp_pathname argument.
4400 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4401 when opening the file fails.
4403 * target.h (struct target_section): Delete member bfd.
4404 All users updated to use the_bfd_section->owner instead.
4405 * exec.c (add_to_section_table): Assert bfd is expected value.
4406 Remove initialization of target_section.bfd.
4407 (remove_target_sections): Update.
4408 (section_table_available_memory): Update.
4409 (section_table_xfer_memory_partial): Update.
4410 (print_section_info): Update.
4411 (exec_set_section_address): Update.
4412 * record-full.c (record_full_core_xfer_partial): Update.
4413 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4414 * solib-target.c (solib_target_relocate_section_addresses): Update.
4415 * symfile.c (build_section_addr_info_from_section_table): Update.
4416 * target.c (memory_xfer_live_readonly_partial): Update.
4417 (memory_xfer_partial_1): Update.
4419 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4421 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4422 now available for embedded (BookE) and server (BookS) processors,
4423 correct mentions of 'booke' and adjust comments accordingly in order to
4424 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4425 (have_ptrace_booke_interface): Rename function and variable
4426 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4427 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4428 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4429 'hwdebug_point_cmp'. Update all uses.
4430 (booke_find_thread_points_by_tid): Rename function
4431 'booke_find_thread_points_by_tid' to
4432 'hwdebug_find_thread_points_by_tid'. Update all uses.
4433 (booke_insert_point): Rename function 'booke_insert_point' to
4434 'hwdebug_insert_point'. Update all uses.
4435 (booke_remove_point): Rename function 'booke_remove_point' to
4436 'hwdebug_remove_point'. Update all uses.
4438 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4440 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4441 numbers with enum values.
4443 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4446 * thread.c (thread_apply_all_command): Check for valid threads
4448 (thread_array_cleanup): New struct.
4449 (set_thread_refcount): New function.
4451 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4453 * infcmd.c (default_print_one_register_info): Reuse function
4456 2013-07-10 Tom Tromey <tromey@redhat.com>
4458 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4459 (ada-exp.o): New target.
4461 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4463 * mt-tdep.c (mt_registers_info): Call
4464 get_no_prettyformat_print_options instead of
4465 get_raw_print_options (regression by last patch from Doug
4468 2013-07-09 Pedro Alves <palves@redhat.com>
4470 Checked in by Joel Brobecker <brobecker@adacore.com>.
4471 * ada-lang.c (coerce_unspec_val_to_type): Use
4472 value_optimized_out_const.
4473 * value.c (value_optimized_out_const): New function.
4474 * value.h (value_optimized_out_const): New declaration.
4476 2013-07-09 Doug Evans <dje@google.com>
4478 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4479 Enum values rename as well. All uses updated.
4480 * valprint.h (value_print_options): Rename member pretty to
4481 pretty format. Rename member prettyprint_arrays to
4482 prettyformat_arrays. Rename member prettyprint_structs to
4483 prettyformat_structs. All uses updated.
4484 (get_no_prettyformat_print_options): Renamed from
4485 get_raw_print_options.
4486 * valprint.c (get_no_prettyformat_print_options): Renamed from
4487 get_raw_print_options. All callers updated.
4488 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4489 All callers updated.
4490 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4491 All callers updated.
4492 (_initialize_valprint): Improve help text for "set print pretty" and
4495 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4497 * value.c (value_bits_valid): Revert previous change, and change
4498 by Pedro on 2013-07-04, due to regressions in
4499 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4501 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4502 Pedro Alves <palves@redhat.com>
4504 * value.c (value_bits_valid): If the value is not lval_computed
4505 or has no check validity handler then the answer is the
4506 optimized_out flag, otherwise defer to the handler.
4508 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4510 * top.c (print_gdb_configuration): Explain in output of
4511 --configuration what does "relocatable" mean.
4513 * main.c (print_gdb_help): Regroup options in the --help text.
4514 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4515 the relevant discussions.
4517 2013-07-06 Yao Qi <yao@codesourcery.com>
4519 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4520 Remove parameter 'lsal'.
4521 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4522 to inner block. Caller update.
4523 (base_breakpoint_create_breakpoints_sal): Update.
4524 (bkpt_create_breakpoints_sal): Likewise.
4525 (tracepoint_create_breakpoints_sal): Likewise.
4526 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4527 element 0 of vector 'canonical->sals'.
4529 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4531 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4532 register number instead of the pseudo register one.
4533 (rs6000_dwarf2_reg_to_regnum): Likewise.
4535 2013-07-04 Pedro Alves <palves@redhat.com>
4537 * findvar.c (value_of_register): Use allocate_optimized_out_value
4538 if the register has been optimized out, instead of
4539 set_value_optimized_out.
4540 * frame-unwind.c (frame_unwind_got_optimized): Use
4541 allocate_optimized_out_value.
4543 2013-07-04 Pedro Alves <palves@redhat.com>
4545 * value.c (value_bits_valid): If the value is not lval_computed,
4546 or doesn't have a check_validity hook, assume the value is entirely
4549 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4551 * stack.c (read_frame_arg): No longer fetch lazy values.
4552 * value.c (value_optimized_out): If the value is not already
4553 marked optimized out, and is lazy then fetch it.
4554 (value_primitive_field): Move optimized out check to later in the
4555 function, after we have loaded any lazy values.
4556 (value_fetch_lazy): Use optimized out flag directly rather than
4557 calling optimized_out method.
4559 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4561 * valops.c: Don't include "user-regs.h".
4562 (value_fetch_lazy): Moved to value.c.
4563 * value.c: Include "user-regs.h".
4564 (value_fetch_lazy): Moved from valops.c.
4566 2013-07-04 Yao Qi <yao@codesourcery.com>
4569 2013-06-27 Yao Qi <yao@codesourcery.com>
4571 * common/create-version.sh: Update comments. Handle the case
4572 that TARGET_ALIAS is empty.
4574 2013-07-03 Pedro Alves <palves@redhat.com>
4576 * Makefile.in (config.status): Depend on development.sh.
4577 (aclocal_m4_deps): Add libmcheck.m4.
4578 * acinclude.m4: Include libmcheck.m4.
4579 * configure.ac: Source development.sh instead of setting
4580 'development' here. --enable-libmcheck/--disable-libmcheck code
4581 factored out to GDB_AC_LIBMCHECK. Run it.
4582 * development.sh: New file.
4583 * libmcheck.m4: New file.
4584 * configure: Regenerate.
4586 2013-07-02 Tom Tromey <tromey@redhat.com>
4588 * contrib/ari/update-web-ari.sh: Update for version.in change.
4590 2013-07-02 Tom Tromey <tromey@redhat.com>
4592 * common/ptid.h: Comment fixes.
4594 2013-07-01 Tom Tromey <tromey@redhat.com>
4596 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4597 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4598 (dwarf2_read_index, create_all_comp_units): Update.
4600 2013-07-01 Tom Tromey <tromey@redhat.com>
4602 * configure.ac (build_warnings): Add -Wold-style-definition.
4603 * configure: Rebuild.
4604 * machoread.c (_initialize_machoread): Use "(void)".
4605 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4608 2013-07-01 Tom Tromey <tromey@redhat.com>
4610 * configure.ac (build_warnings): Add -Wold-style-declaration.
4611 * configure: Rebuild.
4612 * dsrec.c (make_srec): Use "static const", not "const static".
4613 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4615 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4616 Use "static const", not "const static".
4617 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4619 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4621 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4623 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4625 (v850_dbtrap_breakpoint_from_pc): Likewise.
4626 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4629 2013-07-01 Tom Tromey <tromey@redhat.com>
4631 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4632 * configure: Rebuild.
4634 2013-07-01 Pedro Alves <palves@redhat.com>
4636 * defs.h: Include "pathmax.h".
4637 * utils.c: Don't include sys/param.h.
4638 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4639 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4640 instead of MAXPATHLEN.
4641 * solib-sunos.c: Don't include sys/param.h.
4642 * xcoffread.c: Don't include sys/param.h.
4643 * bsd-kvm.c: Don't include sys/param.h.
4644 * darwin-nat.c: Don't include sys/param.h.
4645 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4646 * darwin-nat-info.c: Don't include sys/param.h.
4647 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4649 * i386obsd-nat.c: Don't include sys/param.h.
4650 * inf-child.c: Don't include sys/param.h.
4651 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4652 * linux-fork.c: Don't include sys/param.h.
4653 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4654 * linux-nat.c: Don't include sys/param.h.
4655 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4656 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4657 * m68klinux-nat.c: Don't include sys/param.h.
4658 * nbsd-nat.c: Don't include sys/param.h.
4659 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4660 * ppc-linux-nat.c: Don't include sys/param.h.
4661 * rs6000-nat.c: Don't include sys/param.h.
4662 * spu-linux-nat.c. Don't include sys/param.h.
4663 * windows-nat.c: Don't include sys/param.h.
4664 * xtensa-linux-nat.c: Don't include sys/param.h.
4665 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4667 2013-07-01 Pedro Alves <palves@redhat.com>
4669 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4670 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4671 * gnulib/aclocal.m4: Regenerate.
4672 * gnulib/config.in: Regenerate.
4673 * gnulib/configure: Regenerate.
4674 * gnulib/import/pathmax.h: New file.
4675 * gnulib/import/Makefile.am: Regenerate.
4676 * gnulib/import/Makefile.in: Regenerate.
4677 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4678 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4679 * gnulib/import/m4/pathmax.m4: New file.
4681 2013-07-01 Pedro Alves <palves@redhat.com>
4683 * configure.ac (GDBINIT): Define, depending on host.
4684 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4685 * top.c (PATH_MAX): Delete fallback definition.
4686 (GDBINIT_FILENAME): Delete.
4687 (gdbinit): Reimplement as const char array set to the GDBINIT
4689 * top.h (gdbinit): Make const.
4690 * configure, config.in: Regenerate.
4692 2013-07-01 Pedro Alves <palves@redhat.com>
4694 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4695 * cli/cli-cmds.h (source_script): Likewise.
4696 * exceptions.c (catch_command_errors_const): New function.
4697 * exceptions.h (catch_command_errors_const): Declare.
4698 * main.c (get_init_files): Make parameters const, and adjust.
4699 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4700 'local_gdbinit' locals const. Adjust to use
4701 catch_command_errors_const.
4702 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4703 'local_gdbinit' locals const.
4705 2013-07-01 Pedro Alves <palves@redhat.com>
4707 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4708 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4709 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4712 2013-07-01 Pedro Alves <palves@redhat.com>
4714 Import the "unistd" gnulib module.
4715 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4716 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4717 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4718 import/m4/unistd_h.m4.
4719 * gnulib/aclocal.m4: Renenerate.
4720 * gnulib/config.in: Renenerate.
4721 * gnulib/configure: Renenerate.
4722 * gnulib/import/Makefile.am: Renenerate.
4723 * gnulib/import/Makefile.in: Renenerate.
4724 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4725 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4726 * gnulib/import/m4/off_t.m4: New file.
4727 * gnulib/import/m4/ssize_t.m4: New file.
4728 * gnulib/import/m4/sys_types_h.m4: New file.
4729 * gnulib/import/m4/unistd_h.m4: New file.
4730 * gnulib/import/sys_types.in.h: New file.
4731 * gnulib/import/unistd.c: New file.
4732 * gnulib/import/unistd.in.h: New file.
4734 2013-07-01 Pedro Alves <palves@redhat.com>
4736 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4737 defined instead of checking HAVE_UNISTD_H.
4739 2013-07-01 Pedro Alves <palves@redhat.com>
4741 Reimport gnulib from scratch.
4742 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4743 import/m4/onceonly.m4.
4744 * gnulib/aclocal.m4: Renegerate.
4745 * gnulib/config.in: Renegerate.
4746 * gnulib/configure: Renegerate.
4747 * gnulib/import/Makefile.in: Renegerate.
4748 * gnulib/import/extra/update-copyright: Renegerate.
4749 * gnulib/import/m4/onceonly.m4: Delete.
4751 2013-07-01 Pedro Alves <palves@redhat.com>
4753 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4755 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4758 * remote.c (async_remote_interrupt_twice): Make it static.
4759 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4761 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4763 * ia64-linux-tdep.c: Include <ctype.h>.
4764 (ia64_linux_stap_is_single_operand): New function.
4765 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4767 2013-06-28 Tom Tromey <tromey@redhat.com>
4769 * Makefile.in (version.c): Use version.in, not
4771 * common/create-version.sh: Likewise.
4772 * common/version.in: Move...
4773 * version.in: ...here.
4775 2013-06-28 Pedro Alves <palves@redhat.com>
4777 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4779 * utils.h (pagination_enabled): Declare.
4781 2013-06-28 Pedro Alves <palves@redhat.com>
4783 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4784 Move higher up in file.
4786 2013-06-28 Tom Tromey <tromey@redhat.com>
4788 * tracepoint.c (deprecated_readline_begin_hook)
4789 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4792 2013-06-28 Pedro Alves <palves@redhat.com>
4795 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4796 checking if they're available.
4797 * value.c (value_available_contents_eq): Change comment.
4798 * value.h (value_available_contents_eq): Expand comment.
4800 2013-06-27 Tom Tromey <tromey@redhat.com>
4802 * target.c (find_run_target): Remove.
4803 * target.h (find_run_target): Remove.
4805 2013-06-27 Tom Tromey <tromey@redhat.com>
4807 * corelow.c (core_gdbarch): Now static.
4809 2013-06-27 Tom Tromey <tromey@redhat.com>
4811 * target.c (target_struct_index): Remove.
4813 2013-06-27 Pedro Alves <palves@redhat.com>
4815 * infrun.c: Remove comment describing the 'stepping over runtime
4816 loader dynamic symbol resolution code' mechanism; moved to
4819 2013-06-27 Pedro Alves <palves@redhat.com>
4821 * exceptions.c (catch_command_errors): Remove spurious space.
4822 * exceptions.h (catch_command_errors): Second parameter is "arg",
4825 2013-06-27 Yao Qi <yao@codesourcery.com>
4827 * common/create-version.sh: Update comments. Handle the case
4828 that TARGET_ALIAS is empty.
4830 2013-06-26 Pedro Alves <palves@redhat.com>
4832 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4835 2013-06-26 Pedro Alves <palves@redhat.com>
4837 * infrun.c: Update comments on stepping over runtime loader
4838 dynamic symbol resolution code.
4840 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4842 * ax-gdb.h (union exp_element): Forward declare.
4843 * parser-defs.h: Include expression.h.
4845 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4847 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4849 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4851 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4853 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4855 Fix trace-status to output proper start-time and stop-time.
4856 * tracepoint.c (trace_status_command): Fix type of printf arg to
4857 prevent improper type conversion.
4858 (trace_status_mi): Likewise.
4860 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4862 * mips-tdep.c (mips_next_pc): Fix a typo.
4864 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4866 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4868 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4869 Yao Qi <yao@codesourcery.com>
4871 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4872 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4873 * mi/mi-main.c (print_variable_or_computed): New function.
4874 (mi_cmd_trace_frame_collected): New function.
4875 * tracepoint.c (find_trace_state_variable_by_number): New.
4876 (struct traceframe_info): Move to tracepoint.h
4877 (struct collection_list): Likewise.
4878 (do_collect_symbol): Include locals and arguments in the
4879 collected variables list.
4880 (clear_collection_list): Clear wholly collected variables list
4881 and computed variables list.
4882 (append_exp): New function.
4883 (encode_actions_1): Include variables in the wholly
4884 collected variables list. Include memory ranges and
4885 full-fledged expressions in the computed expressions list.
4886 (encode_actions): Move some code to ...
4887 Return the cleanup chain.
4888 (encode_actions_rsp): ... here. New function.
4889 (get_traceframe_location, get_traceframe_info): Remove static.
4890 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4891 (struct collection_list): Moved from tracepoint.c. Add two
4892 new fields 'wholly_collected' and 'computed'.
4893 (find_trace_state_variable_by_number): Declare.
4894 (encode_actions): Adjust declaration.
4895 (encode_actions_rsp): Declare.
4896 (get_traceframe_info, get_traceframe_location): Declare.
4898 * NEWS: Mention new MI command -trace-frame-collected.
4900 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4901 Yao Qi <yao@codesourcery.com>
4903 * ctf.c (ctf_traceframe_info): Push trace state variables
4904 present in the trace data into the traceframe info object.
4905 * breakpoint.c (DEF_VEC_I): Remove.
4906 * common/filestuff.c (DEF_VEC_I): Likewise.
4907 * dwarf2loc.c (DEF_VEC_I): Likewise.
4908 * mi/mi-main.c (DEF_VEC_I): Likewise.
4909 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4910 * features/traceframe-info.dtd: Add tvar element and its
4912 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4913 (build_traceframe_info): Push trace state variables present in
4914 the trace data into the traceframe info object.
4915 (traceframe_info_start_tvar): New function.
4916 (tvar_attributes): New.
4917 (traceframe_info_children): Add "tvar" element.
4918 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4920 * NEWS: Mention the change in GDB and GDBserver.
4922 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4923 Yao Qi <yao@codesourcery.com>
4925 * tracepoint.c (trace_dump_command): Move code to ...
4926 (get_traceframe_location): ... here. New.
4928 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4929 Yao Qi <yao@codesourcery.com>
4931 * tracepoint.c (trace_dump_command): GDB emits an error
4932 instead of a warning when a traceframe is not selected.
4934 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4935 Yao Qi <yao@codesourcery.com>
4937 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4938 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4940 (do_clear_collection_list, init_collection_list): New.
4941 (encode_actions): Add local variables 'tracepoint_list' and
4942 'stepping_list'. Call init_collection_list and make cleanup
4943 which calls do_clear_collection_list. Don't call
4944 clear_collection_list.
4945 (_initialize_tracepoint): Delete references to
4946 'tracepoint_list' and 'stepping_list'.
4948 2013-06-25 Tom Tromey <tromey@redhat.com>
4950 * common/create-version.sh (date): Use "$", not "$$" in sed
4953 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4955 * NEWS (New targets): Add entry for TI MSP430.
4957 2013-06-25 Yao Qi <yao@codesourcery.com>
4959 * remote.c (remote_start_remote): Move code to upload tsv
4962 2013-06-25 Yao Qi <yao@codesourcery.com>
4963 Hui Zhu <hui@codesourcery.com>
4964 Pedro Alves <palves@redhat.com>
4966 PR breakpoints/15075
4967 PR breakpoints/15434
4968 * breakpoint.c (bpstat_stop_status): Call
4969 b->ops->after_condition_true.
4970 (update_dprintf_command_list): Don't append "continue" command
4971 to the command list of dprintf breakpoint.
4972 (base_breakpoint_after_condition_true): New function.
4973 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4974 (dprintf_after_condition_true): New function.
4975 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4976 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4978 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4980 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4981 (ALLDEPFILES): Add msp430-tdep.c.
4982 * configure.tgt (msp430*-*-elf): New target.
4983 * msp430-tdep.c: New file.
4985 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4987 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4988 microMIPS synthetic symbols.
4990 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4992 * objfiles.h (pc_in_section): New prototype.
4993 (in_plt_section): Remove name argument, replace prototype with
4994 static inline function.
4995 * mips-tdep.h: Include "objfiles.h".
4996 (in_mips_stubs_section): New function.
4997 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4998 in_solib_call_trampoline member.
4999 (hppa_in_solib_call_trampoline): Remove name argument.
5000 * objfiles.c (pc_in_section): New function.
5001 (in_plt_section): Remove function.
5002 * mips-linux-tdep.c: Include "objfiles.h".
5003 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5004 name argument. Return 1 rather than the low 16-bit halfword of
5005 any instruction examined.
5006 (mips_linux_in_dynsym_resolve_code): Update
5007 mips_linux_in_dynsym_stub call accordingly.
5008 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5009 rather than an equivalent hand-coded sequence.
5010 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5011 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5012 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5013 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5015 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5016 on call to tdep->in_solib_call_trampoline.
5017 (hppa_in_solib_call_trampoline): Remove name argument, update
5018 according to in_plt_section change.
5019 (hppa_skip_trampoline_code): Update according to in_plt_section
5021 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5022 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5024 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5025 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5026 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5027 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5028 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5029 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5030 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5031 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5032 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5033 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5034 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5035 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5036 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5038 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5040 * common/create-version.sh: Fix expansion of $host_alias
5041 and $target_alias in generation of HOST_NAME and TARGET_NAME
5044 2013-06-24 Tom Tromey <tromey@redhat.com>
5046 * common/create-version.sh: New file.
5047 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5049 (HFILES_NO_SRCDIR): Use common/version.h.
5050 * version.in: Move to ...
5051 * common/version.in: ... here. Replace date with "DATE".
5052 * version.h: Move to ...
5053 * common/version.h: ... here.
5055 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5057 * gdb/gnulib/Makefile.in: Update date in copyright header.
5058 * gdb/gnulib/configure.ac: Ditto.
5059 * gdb/gnulib/update-gnulib.sh: Ditto.
5061 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5063 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5064 "gdb/gnulib/import".
5066 2013-06-21 Will Newton <will.newton@linaro.org>
5068 * doublest.c (ldfrexp): Remove function.
5069 (convert_doublest_to_floatformat): Call frexpl instead of
5072 2013-06-21 Will Newton <will.newton@linaro.org>
5074 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5075 * gnulib/aclocal.m4: Regenerate.
5076 * gnulib/config.in: Regenerate.
5077 * gnulib/configure: Regenerate.
5078 * gnulib/import/Makefile.am: Update.
5079 * gnulib/import/Makefile.in: Update.
5080 * gnulib/import/m4/gnulib-cache.m4: Update.
5081 * gnulib/import/m4/gnulib-comp.m4: Update.
5082 * gnulib/import/float+.h: Import.
5083 * gnulib/import/float.c: Import.
5084 * gnulib/import/float.in.h: Import.
5085 * gnulib/import/fpucw.h: Import.
5086 * gnulib/import/frexp.c: Import.
5087 * gnulib/import/frexpl.c: Import.
5088 * gnulib/import/isnan.c: Import.
5089 * gnulib/import/isnand-nolibm.h: Import.
5090 * gnulib/import/isnand.c: Import.
5091 * gnulib/import/isnanl-nolibm.h: Import.
5092 * gnulib/import/isnanl.c: Import.
5093 * gnulib/import/itold.c: Import.
5094 * gnulib/import/m4/exponentd.m4: Import.
5095 * gnulib/import/m4/exponentl.m4: Import.
5096 * gnulib/import/m4/float_h.m4: Import.
5097 * gnulib/import/m4/fpieee.m4: Import.
5098 * gnulib/import/m4/frexp.m4: Import.
5099 * gnulib/import/m4/frexpl.m4: Import.
5100 * gnulib/import/m4/isnand.m4: Import.
5101 * gnulib/import/m4/isnanl.m4: Import.
5102 * gnulib/import/m4/math_h.m4: Import.
5103 * gnulib/import/math.c: Import.
5104 * gnulib/import/math.in.h: Import.
5106 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5108 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5109 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5110 signature_INTEL_edx comparisons.
5112 2013-06-20 Doug Evans <dje@google.com>
5115 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5116 All callers updated.
5117 (open_dwp_file): If we can't find the dwp file, search the basename
5118 in debug-file-directory.
5120 * dwarf2read.c (struct dwp_file): Fix comment.
5121 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5123 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5126 2013-06-20 Yao Qi <yao@codesourcery.com>
5128 * breakpoint.c (create_breakpoint): Fix code indentation.
5130 2013-06-20 Yao Qi <yao@codesourcery.com>
5132 * breakpoint.c (create_breakpoints_sal_default): Remove
5133 parameter 'lsal'. Update declaration.
5134 (bkpt_create_breakpoints_sal): Caller update.
5135 (tracepoint_create_breakpoints_sal): Likewise.
5137 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5138 Yao Qi <yao@codesourcery.com>
5140 * NEWS: Mention the new option '--skip-unavailable' of command
5141 -data-list-register-values.
5142 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5143 --skip-unavailable option. Adjust to use output_register.
5144 (output_register): Add new 'skip_unavailable' parameter.
5147 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5149 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5150 common/i386-gcc-cpuid.h.
5151 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5152 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5153 Copy the latest version from upstream gcc.
5154 * common/linux-btrace.c: Include i386-cpuid.h.
5155 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5157 (cpu_supports_btrace): Likewise.
5158 * go32-nat.c: Include i386-cpuid.h.
5159 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5161 2013-06-19 Doug Evans <dje@google.com>
5163 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5164 (get_section_index): Ditto.
5166 2013-06-19 Tom Tromey <tromey@redhat.com>
5168 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5171 2013-06-18 Doug Evans <dje@google.com>
5173 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5175 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5176 Move test of cu_index closer to use. Print complaint if cu_index
5179 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5181 * machoread.c (oso_vector): Delete this global.
5182 (macho_register_oso): Add new parameter "oso_vector_ptr".
5183 Use it instead of the "oso_vector" global.
5184 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5185 (macho_symfile_read): Use a local oso_vector, to be free'ed
5186 at the end of this function, in place of the old "oso_vector"
5187 global. Update various function calls accordingly. Use one
5188 single cleanup chain for the entire function.
5190 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5192 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5193 DWARF2_PER_OBJFILE by uses of DATA instead.
5195 2013-06-18 Tom Tromey <tromey@redhat.com>
5197 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5199 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5200 Special case signals other than GDB_SIGNAL_TRAP.
5201 (explains_signal_watchpoint): New function.
5202 (base_breakpoint_explains_signal): Add 'sig' argument.
5203 (initialize_breakpoint_ops): Set 'explains_signal' method for
5205 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5207 (bpstat_explains_signal): Likewise.
5208 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5210 2013-06-18 Tom Tromey <tromey@redhat.com>
5212 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5214 2013-06-18 Tom Tromey <tromey@redhat.com>
5216 * python/python.c (finish_python_initialization): Decref
5217 'pythondir' on failure path as well.
5219 2013-06-18 Tom Tromey <tromey@redhat.com>
5222 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5223 after taking bits_to_skip into account. Sign extend byte_offset.
5224 * utils.h (gdb_sign_extend): Declare.
5225 * utils.c (gdb_sign_extend): New function.
5227 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5229 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5231 2013-06-17 Pierre Muller <muller@sourceware.org>
5233 * corelow.c (core_open): Print GDB signal name instead of target
5236 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5238 * .gitignore: Add /gcore.
5240 2013-06-13 Doug Evans <dje@google.com>
5242 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5243 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5245 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5247 * stack.c (backtrace_command_1): Fix indentation.
5249 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5251 * window-nat.c (thread_rec): Add missing empty line after
5252 local variable declaration.
5254 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5256 * windows-nat.c (thread_rec): Revert format used to print
5257 error code returned by SuspendThread from %d back to %u.
5259 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5261 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5263 (get_windows_debug_event): Likewise, for all debug traces.
5265 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5267 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5270 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5271 Yao Qi <yao@codesourcery.com>
5273 * mi/mi-main.c (get_register): Remove declaration.
5274 (output_register): Declare.
5275 (mi_cmd_data_list_register_values): Remove local variable
5276 'tuple_cleanup'. Move some code into output_register.
5277 (get_register): Renamed to ...
5278 (output_register): ... this. Output the register's
5279 "number" ui_out tuple here.
5281 2013-06-07 Pedro Alves <palves@redhat.com>
5283 * darwin-nat.c: Fix formating in copyright header.
5284 * darwin-nat.h: Likewise.
5285 * gnu-nat.c: Likewise.
5286 * machoread.c: Likewise.
5288 2013-06-07 Pedro Alves <palves@redhat.com>
5291 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5292 static. Output a global target description pointer.
5293 (init_registers_${name}): Adjust to initialize a
5294 target description structure.
5296 2013-06-07 Will Newton <will.newton@linaro.org>
5298 * printcmd.c (build_address_symbolic): Call
5299 gdbarch_addr_bits_remove for text minimal symbols.
5301 2013-06-07 Will Newton <will.newton@linaro.org>
5303 * MAINTAINERS: Add myself to Write After Approval.
5305 2013-06-07 Yao Qi <yao@codesourcery.com>
5307 * tracepoint.c (start_tracing): Move code to ...
5308 (trace_reset_local_state): ... here. New.
5309 (disconnect_tracing): Don't call set_current_traceframe,
5310 set_tracepoint_num, and set_traceframe_context. Call
5311 trace_reset_local_state instead.
5312 (tfile_close): Call trace_reset_local_state.
5313 * ctf.c (ctf_close): Likewise.
5314 * remote.c (remote_close): Likewise.
5315 * tracepoint.h (trace_reset_local_state): Declare.
5317 2013-06-06 Doug Evans <dje@google.com>
5319 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5320 and fix header docs.
5322 2013-06-05 Doug Evans <dje@google.com>
5323 Keith Seitz <keiths@redhat.com>
5326 * cp-namespace.c (find_symbol_in_baseclass): Call
5327 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5328 Check result of call to lookup_symbol_static.
5329 Call lookup_static_symbol_aux unconditionally.
5330 Call check_typedef on base types before accessing them.
5331 (cp_lookup_nested_symbol): Fix comment.
5333 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5335 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5336 minimal symbols pointing to function descriptors.
5338 2013-06-05 Tom Tromey <tromey@redhat.com>
5340 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5342 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5343 Pedro Alves <palves@redhat.com>
5345 * remote.c (remote_wait_as): Restore signal handler before returning
5346 when GDB gets a notification.
5348 2013-06-04 Gary Benson <gbenson@redhat.com>
5351 * breakpoint.h (handle_solib_event): Moved function declaration
5353 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5354 (bpstat_stop_status): Pass new argument to handle_solib_event.
5355 * solib.h (update_solib_breakpoints): New function declaration.
5356 (handle_solib_event): Moved function declaration from
5358 * solib.c (update_solib_breakpoints): New function.
5359 (handle_solib_event): Moved function from breakpoint.c.
5360 Updated to call solib_ops->handle_event if not NULL.
5361 * solist.h (target_so_ops): New fields "update_breakpoints" and
5363 * infrun.c (set_stop_on_solib_events): New function.
5364 (_initialize_infrun): Use the above for "set
5365 stop-on-solib-events".
5366 (handle_inferior_event): Pass new argument to handle_solib_event.
5367 * solib-svr4.c (probe.h): New include.
5368 (svr4_free_library_list): New forward declaration.
5369 (probe_action): New enum.
5370 (probe_info): New struct.
5371 (probe_info): New static variable.
5372 (NUM_PROBES): New definition.
5373 (svr4_info): New fields "using_xfer", "probes_table" and
5375 (free_probes_table): New function.
5376 (free_solib_list): New function.
5377 (svr4_pspace_data_cleanup): Free probes table and solib list.
5378 (svr4_copy_library_list): New function.
5379 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5380 (svr4_read_so_list): New parameter "prev_lm".
5381 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5382 (svr4_current_sos): New function.
5383 (probe_and_action): New struct.
5384 (hash_probe_and_action): New function.
5385 (equal_probe_and_action): Likewise.
5386 (register_solib_event_probe): Likewise.
5387 (solib_event_probe_at): Likewise.
5388 (solib_event_probe_action): Likewise.
5389 (solist_update_full): Likewise.
5390 (solist_update_incremental): Likewise.
5391 (disable_probes_interface_cleanup): Likewise.
5392 (svr4_handle_solib_event): Likewise.
5393 (svr4_update_solib_event_breakpoint): Likewise.
5394 (svr4_update_solib_event_breakpoints): Likewise.
5395 (svr4_create_solib_event_breakpoints): Likewise.
5396 (enable_break): Free probes table before creating breakpoints.
5397 Use svr4_create_solib_event_breakpoints to create breakpoints.
5398 (svr4_solib_create_inferior_hook): Free the solib list.
5399 (_initialize_svr4_solib): Initialise
5400 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5402 2013-06-04 Gary Benson <gbenson@redhat.com>
5404 * target.h (target_ops): New field
5405 "to_augmented_libraries_svr4_read".
5406 (target_augmented_libraries_svr4_read): New macro.
5407 * target.c (update_current_target): Handle
5408 to_augmented_libraries_svr4_read.
5409 * remote.c (remote_state): New field
5410 "augmented_libraries_svr4_read".
5411 (remote_augmented_libraries_svr4_read_feature): New function.
5412 (remote_protocol_features): Add entry for
5413 "augmented-libraries-svr4-read".
5414 (remote_augmented_libraries_svr4_read): New function.
5415 (init_remote_ops): Initialize
5416 remote_ops.to_augmented_libraries_svr4_read.
5418 2013-06-04 Gary Benson <gbenson@redhat.com>
5422 2013-06-04 Gary Benson <gbenson@redhat.com>
5424 * objfiles.h (inhibit_section_map_updates): New function
5426 (resume_section_map_updates): Likewise.
5427 (resume_section_map_updates_cleanup): Likewise.
5428 * objfiles.c (objfile_pspace_info): Removed field
5429 "objfiles_changed_p". New fields "new_objfiles_available",
5430 "section_map_dirty" and "inhibit_updates".
5431 (allocate_objfile): Set new_objfiles_available.
5432 (free_objfile): Set section_map_dirty.
5433 (objfile_relocate1): Likewise.
5434 (in_plt_section): Likewise.
5435 (find_pc_section): Update the conditions under which the
5436 section map will be updated.
5437 (inhibit_section_map_updates): New function.
5438 (resume_section_map_updates): Likewise.
5439 (resume_section_map_updates_cleanup): Likewise.
5441 2013-06-04 Gary Benson <gbenson@redhat.com>
5443 * probe.h (get_probe_argument_count): New declaration.
5444 (evaluate_probe_argument): Likewise.
5445 * probe.c (get_probe_argument_count): New function.
5446 (evaluate_probe_argument): Likewise.
5447 (probe_safe_evaluate_at_pc): Use the above new functions.
5449 2013-06-04 Alan Modra <amodra@gmail.com>
5451 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5452 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5453 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5454 target mem reads on optional insns.
5455 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5456 ppc_insns_match_pattern calls.
5457 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5458 Add match for power7 thread safety insns, and new order of
5459 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5460 invocation in comment, and update rest of comment.
5461 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5462 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5463 (ppc64_standard_linkage2_target): Update insn offsets.
5464 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5465 stubs first. Update calls.
5467 2013-06-04 Yao Qi <yao@codesourcery.com>
5469 * solib.c (solib_find): Don't need dir separator if path has
5472 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5474 Revert (indirectly causes a SIGSEGV):
5475 * machoread.c (macho_symfile_read): Assign first cleanup to
5478 2013-06-03 Yao Qi <yao@codesourcery.com>
5480 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5481 mi-parse.c. Make them static.
5482 (mi_all_values): Likewise.
5483 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5484 mi_parse_print_values. Make it external.
5485 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5486 Remove the declarations.
5487 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5488 * mi/mi-parse.h (mi_parse_print_values): Declare.
5489 * mi/mi-cmd-stack.c: Include mi-parse.h.
5490 (parse_print_values): Remove
5491 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5492 of parse_print_values.
5493 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5495 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5496 Yao Qi <yao@codesourcery.com>
5498 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5499 (encode_actions): Move code to ...
5500 (all_tracepoint_actions_and_cleanup): ... here. New.
5501 (trace_dump_command): Likewise.
5503 2013-05-30 Tom Tromey <tromey@redhat.com>
5505 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5507 2013-05-30 Tom Tromey <tromey@redhat.com>
5509 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5510 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5511 'old_chain' argument. Add 'parser_result' argument.
5512 (gdb_xml_create_parser_and_cleanup): Remove old version.
5513 (gdb_xml_parse_quick): Update.
5514 (xml_process_xincludes): Update.
5515 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5518 2013-05-30 Tom Tromey <tromey@redhat.com>
5520 * probe.c (collect_probes): Check arguments for NULL before
5521 calling compile_rx_or_error.
5522 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5525 2013-05-30 Tom Tromey <tromey@redhat.com>
5527 * infrun.c (adjust_pc_after_break): Introduce an outer null
5530 2013-05-30 Tom Tromey <tromey@redhat.com>
5532 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5534 2013-05-30 Tom Tromey <tromey@redhat.com>
5536 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5537 for 'old_chain'. Do not check 'head' before processing
5540 2013-05-30 Tom Tromey <tromey@redhat.com>
5542 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5545 2013-05-30 Tom Tromey <tromey@redhat.com>
5547 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5548 inner scope. Unconditionally call do_cleanups.
5550 2013-05-30 Tom Tromey <tromey@redhat.com>
5552 * source.c (find_and_open_source): Call do_cleanups.
5554 2013-05-30 Tom Tromey <tromey@redhat.com>
5556 * linux-thread-db.c (thread_db_load_search): Unconditionally
5559 2013-05-30 Tom Tromey <tromey@redhat.com>
5561 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5562 for 'cleanup'; instead use a later one.
5564 2013-05-30 Tom Tromey <tromey@redhat.com>
5566 * python/py-breakpoint.c (bppy_get_commands): Use
5567 explicit, unconditional return.
5568 * python/py-frame.c (frapy_read_var): Likewise.
5569 * python/python.c (gdbpy_decode_line): Likewise.
5571 2013-05-30 Tom Tromey <tromey@redhat.com>
5573 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5574 do_cleanups on all return paths.
5576 2013-05-30 Tom Tromey <tromey@redhat.com>
5578 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5580 2013-05-30 Tom Tromey <tromey@redhat.com>
5582 * stabsread.c (read_struct_type): Call do_cleanups along
5585 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5587 * mips-linux-tdep.c: Adjust formatting throughout.
5589 2013-05-30 Tom Tromey <tromey@redhat.com>
5591 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5592 along all return paths.
5594 2013-05-30 Tom Tromey <tromey@redhat.com>
5596 * symfile.c (find_separate_debug_file): Call do_cleanups
5597 along all return paths.
5599 2013-05-30 Tom Tromey <tromey@redhat.com>
5601 * symtab.c (search_symbols): Introduce a null cleanup for
5604 2013-05-30 Tom Tromey <tromey@redhat.com>
5606 * python/py-value.c (valpy_binop): Call do_cleanups before
5609 2013-05-30 Tom Tromey <tromey@redhat.com>
5611 * python/py-prettyprint.c (print_children): Remove extra
5614 2013-05-30 Tom Tromey <tromey@redhat.com>
5616 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5619 2013-05-30 Tom Tromey <tromey@redhat.com>
5621 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5622 along all return paths.
5624 2013-05-30 Tom Tromey <tromey@redhat.com>
5626 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5629 2013-05-30 Tom Tromey <tromey@redhat.com>
5631 * varobj.c (c_value_of_root): Call do_cleanups along all
5634 2013-05-30 Tom Tromey <tromey@redhat.com>
5636 * tracepoint.c (trace_dump_command): Unconditionally call
5639 2013-05-30 Tom Tromey <tromey@redhat.com>
5641 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5642 do_cleanups earlier.
5644 2013-05-30 Tom Tromey <tromey@redhat.com>
5646 * machoread.c (macho_symfile_read): Assign first cleanup to
5649 2013-05-30 Tom Tromey <tromey@redhat.com>
5651 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5653 2013-05-30 Tom Tromey <tromey@redhat.com>
5655 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5657 2013-05-30 Tom Tromey <tromey@redhat.com>
5659 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5660 call discard_cleanups.
5661 (inf_ptrace_attach): Likewise.
5663 2013-05-30 Tom Tromey <tromey@redhat.com>
5665 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5667 (mips_initialize): Likewise.
5668 (common_open): Call do_cleanups.
5670 2013-05-30 Tom Tromey <tromey@redhat.com>
5672 * utils.c (internal_vproblem): Call do_cleanups.
5674 2013-05-30 Tom Tromey <tromey@redhat.com>
5676 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5678 2013-05-30 Tom Tromey <tromey@redhat.com>
5680 * cli/cli-script.c (setup_user_args): Don't return after error.
5682 2013-05-30 Tom Tromey <tromey@redhat.com>
5684 * somread.c (som_symtab_read): Call do_cleanups.
5686 2013-05-30 Tom Tromey <tromey@redhat.com>
5688 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5690 2013-05-30 Tom Tromey <tromey@redhat.com>
5692 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5693 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5694 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5695 * source.c (show_substitute_path_command): Call do_cleanups.
5696 (unset_substitute_path_command, set_substitute_path_command):
5698 * symfile.c (load_command): Call do_cleanups.
5700 2013-05-30 Tom Tromey <tromey@redhat.com>
5702 * contrib/cleanup_check.py: New file.
5703 * contrib/gcc-with-excheck: Add option parsing.
5705 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5707 * windows-nat.c (windows_delete_thread): Add missing space
5710 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5712 * inferior.c (top level): Include tilde.h.
5713 (add_inferior_command): Call tilde_expand on the value of 'exec'
5716 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5717 Yao Qi <yao@codesourcery.com>
5719 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5721 (encode_actions): Likewise.
5722 * remote.c (remote_download_tracepoint): Caller update.
5723 * tracepoint.h (encode_actions): Update declaration.
5725 2013-05-30 Pedro Alves <palves@redhat.com>
5727 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5730 2013-05-30 Yao Qi <yao@codesourcery.com>
5732 * remote.c (remote_check_symbols): Remove unused parameter
5735 (remote_start_remote, remote_new_objfile): Caller update.
5737 2013-05-30 Yao Qi <yao@codesourcery.com>
5739 * mi/mi-cmds.c (mi_cmds): Define MI command
5740 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5743 2013-05-29 Pedro Alves <palves@redhat.com>
5745 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5746 (remote_insert_watchpoint, remote_remove_watchpoint)
5747 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5748 (remote_verify_memory, compare_sections_command)
5749 (remote_search_memory): Set the general process/thread on the
5752 2013-05-29 Pedro Alves <palves@redhat.com>
5754 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5755 (_initialize_aarch64_tdep): Don't call
5756 initialize_tdesc_aarch64_without_fpu.
5757 * features/Makefile (WHICH): Remove reference to
5758 aarch64-without-fpu.
5759 * features/aarch64-without-fpu.c: Delete file.
5760 * regformats/aarch64-without-fpu.dat: Delete file.
5762 2013-05-28 Yao Qi <yao@codesourcery.com>
5764 * tracepoint.c (stringify_collection_list): Remove parameter
5766 (encode_actions): Caller update. Remove local variables.
5768 2013-05-24 Yao Qi <yao@codesourcery.com>
5770 * tracepoint.c (TFILE_PID): Remove.
5771 (tfile_open): Don't add thread and inferior.
5772 (tfile_close): Don't set 'inferior_ptid'. Don't call
5773 exit_inferior_silent.
5774 (tfile_thread_alive): Remove.
5775 (init_tfile_ops): Don't set field 'to_thread_alive' of
5778 2013-05-23 Doug Evans <dje@google.com>
5780 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5782 2013-05-23 Pedro Alves <palves@redhat.com>
5784 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5785 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5786 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5787 Only define if HAVE_SOCKETS is defined.
5788 * configure.ac: Check for sys/socket.h.
5789 * config.in, configure: Regenerate.
5791 2013-05-23 Pedro Alves <palves@redhat.com>
5793 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5794 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5795 printing uint32_t variables.
5797 2013-05-23 Pedro Alves <palves@redhat.com>
5799 * NEWS: Mention GDBserver range stepping support.
5801 2013-05-23 Yao Qi <yao@codesourcery.com>
5802 Pedro Alves <palves@redhat.com>
5804 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5806 * infcmd.c (step_once, until_next_command): Enable range stepping.
5807 * infrun.c (displaced_step_prepare): Disable range stepping.
5808 (resume): Disable range stepping if stepping over a breakpoint or
5809 we have software watchpoints. If range stepping is enabled,
5810 assert the thread is in the stepping range.
5811 (clear_proceed_status_thread): Clear may_range_step.
5812 (handle_inferior_event): Disable range stepping as soon as we know
5813 the thread that hit the event. Re-enable it whenever we're going
5814 to step with a step range.
5815 * remote.c (struct vCont_action_support) <r>: New field.
5816 (use_range_stepping): New global.
5817 (remote_vcont_probe): Handle 'r' action.
5818 (append_resumption): Append an 'r' action if the thread may range
5820 (show_range_stepping): New function.
5821 (set_range_stepping): New function.
5822 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5823 'set range-stepping' and 'show range-stepping' commands.
5824 * NEWS: Mention range stepping, the new vCont;r action, and the
5825 new "set/show range-stepping" commands.
5827 2013-05-23 Yao Qi <yao@codesourcery.com>
5828 Pedro Alves <palves@redhat.com>
5830 * remote.c (struct vCont_action_support): New struct.
5831 (struct remote_state) <support_vCont_t>: Remove field.
5832 <vCont_actions_support>: New field.
5833 (remote_vcont_probe, remote_stop_ns): Update.
5835 2013-05-23 Yao Qi <yao@codesourcery.com>
5836 Pedro Alves <palves@redhat.com>
5838 * gdbthread.h (pc_in_thread_step_range): New declaration.
5839 * thread.c (pc_in_thread_step_range): New function.
5840 * infrun.c (handle_inferior_event): Use it.
5842 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5844 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5847 2013-05-22 Keith Seitz <keiths@redhat.com>
5849 * ada-lang.c (is_known_support_routine): Add explicit free of
5850 'func_name' from find_frame_funname.
5851 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5852 for func_name from find_frame_funname.
5853 * python/py-frame.c (frapy_name): Add explicit free of
5854 'name' from find_frame_funname.
5855 * stack.c (find_frame_funname): Add comment explaining that
5856 funcp must be freed by the caller.
5857 Return copy of symbol names instead of pointers.
5858 (print_frame): Add a cleanup for 'funname' from
5860 * stack.h (find_frame_funname): Remove "const" from
5861 'funname' parameter.
5863 2013-05-22 Tom Tromey <tromey@redhat.com>
5866 * c-valprint.c (c_value_print): Use value_addr for
5867 references. Convert back to reference type with value_ref.
5869 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5871 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5872 unloaded DLL, it will be done by handle_solib_event. See
5873 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5876 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5878 * ui-out.c: Create typedef ui_out_level_p and define vector
5879 operations for that type.
5880 (struct ui_out): Use a vector instead of an array.
5881 (current_level): Return level from a vector.
5882 (push_level): Create a level in a vector.
5883 (pop_level): Delete a level in a vector.
5884 (ui_out_new): Create initial level zero level, and store in a
5886 (ui_out_destroy): Add vector cleanup.
5888 2013-05-22 Pedro Alves <palves@redhat.com>
5890 * python/python-internal.h (gdb_Py_DECREF): Tag with
5891 "ARI: editCase function".
5893 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5895 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5897 2013-05-21 Pedro Alves <palves@redhat.com>
5899 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5900 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5901 * python/py-utils.c (py_decref): Don't check for NULL before
5904 2013-05-21 Pedro Alves <palves@redhat.com>
5906 * python/py-utils.c (py_decref): Remove extra braces.
5907 (gdb_pymodule_addobject): Remove extra braces.
5908 * python-internal.h (gdb_Py_DECREF): New static inline function.
5909 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5911 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5913 * breakpoints.c (detach_breakpoints): Do not
5914 detach breakpoints locations with loc_type bp_loc_other.
5916 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5918 Workaround Python 2.6.
5919 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5922 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5924 Code cleanup: constification.
5925 * solib.c (solib_ops): Make return type and ops variable type const.
5926 (set_solib_ops): Make the new_ops parameter and ops variable const.
5927 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5928 (solib_add, solib_keep_data_in_core, clear_solib)
5929 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5930 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5932 * solib.h (set_solib_ops): Make the new_ops parameter const.
5934 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5936 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5938 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5939 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5940 (SYSTEM_GDBINIT_FILES): New variables.
5941 (all): Add stamp-system-gdbinit.
5942 (stamp-system-gdbinit): New rule.
5943 (clean-system-gdbinit, install-system-gdbinit)
5944 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5945 (install-only): Add dependency on install-system-gdbinit.
5946 (uninstall): Add dependency on uninstall-system-gdbinit.
5947 (clean): Add dependency on clean-system-gdbinit.
5948 * system-gdbinit/elinos.py: New file.
5949 * system-gdbinit/wrs-linux.py: New file.
5951 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5953 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5955 2013-05-21 Hui Zhu <hui@codesourcery.com>
5957 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5958 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5959 * mi/mi-cmd-break.c (ctype.h): New include.
5960 (gdb_obstack.h): New include.
5961 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5962 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5963 (mi_cmd_dprintf_insert): New.
5964 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5965 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5967 2013-05-20 Tom Tromey <tromey@redhat.com>
5969 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5971 2013-05-20 Tom Tromey <tromey@redhat.com>
5973 * python/py-value.c (valpy_get_dynamic_type): Simplify
5974 dynamic_type assignment. Use Py_XINCREF.
5976 2013-05-20 Tom Tromey <tromey@redhat.com>
5978 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5980 2013-05-20 Tom Tromey <tromey@redhat.com>
5982 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5983 (gdbpy_selected_frame): Move object-construction code
5986 2013-05-20 Tom Tromey <tromey@redhat.com>
5988 * python/py-arch.c (gdbpy_initialize_arch): Use
5989 gdb_pymodule_addobject.
5990 * python/py-block.c (gdbpy_initialize_blocks): Use
5991 gdb_pymodule_addobject.
5992 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5993 gdb_pymodule_addobject.
5994 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5995 gdb_pymodule_addobject.
5996 * python/py-event.c (gdbpy_initialize_event_generic): Use
5997 gdb_pymodule_addobject.
5998 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5999 gdb_pymodule_addobject.
6000 * python/py-evts.c (add_new_registry): Use
6001 gdb_pymodule_addobject.
6002 (gdbpy_initialize_py_events): Likewise.
6003 * python/py-finishbreakpoint.c
6004 (gdbpy_initialize_finishbreakpoints): Use
6005 gdb_pymodule_addobject.
6006 * python/py-frame.c (gdbpy_initialize_frames): Use
6007 gdb_pymodule_addobject.
6008 * python/py-function.c (gdbpy_initialize_functions): Use
6009 gdb_pymodule_addobject.
6010 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6011 gdb_pymodule_addobject.
6012 * python/py-infthread.c (gdbpy_initialize_thread): Use
6013 gdb_pymodule_addobject.
6014 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6015 gdb_pymodule_addobject.
6016 * python/py-param.c (gdbpy_initialize_parameters): Use
6017 gdb_pymodule_addobject.
6018 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6019 gdb_pymodule_addobject.
6020 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6021 gdb_pymodule_addobject.
6022 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6023 gdb_pymodule_addobject.
6024 * python/py-type.c (gdbpy_initialize_types): Use
6025 gdb_pymodule_addobject.
6026 * python/py-utils.c (gdb_pymodule_addobject): New function.
6027 * python/py-value.c (gdbpy_initialize_values): Use
6028 gdb_pymodule_addobject.
6029 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6030 * python/python.c (_initialize_python): Use
6031 gdb_pymodule_addobject.
6033 2013-05-20 Tom Tromey <tromey@redhat.com>
6035 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6036 * python/py-param.c (get_set_value, get_show_value): Use
6038 * python/python.c (start_type_printers, apply_type_printers):
6039 Use explicit decrefs.
6041 2013-05-20 Tom Tromey <tromey@redhat.com>
6043 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6046 2013-05-20 Tom Tromey <tromey@redhat.com>
6048 * python/python.c (gdbpy_run_events): Decref the result
6049 of PyObject_CallObject.
6051 2013-05-20 Tom Tromey <tromey@redhat.com>
6053 * python/py-symtab.c (set_sal): Use
6054 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6055 (symtab_and_line_to_sal_object): Update.
6057 2013-05-20 Tom Tromey <tromey@redhat.com>
6059 * python/py-param.c (compute_enum_values): Decref 'item'.
6061 2013-05-20 Tom Tromey <tromey@redhat.com>
6063 * mi/mi-main.c: Include python-internal.h.
6064 (mi_cmd_list_features): Check gdb_python_initialized.
6065 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6066 (python_inferior_exit, python_new_objfile, add_thread_object)
6067 (delete_thread_object, py_free_inferior): Check
6068 gdb_python_initialized.
6069 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6070 gdb_python_initialized.
6071 * python/py-type.c (save_objfile_types): Check
6072 gdb_python_initialized.
6073 * python/python-internal.h (gdb_python_initialized): Declare.
6074 * python/python.c (ensure_python_env): Throw exception if
6075 Python not initialized.
6076 (before_prompt_hook, source_python_script_for_objfile)
6077 (start_type_printers, apply_type_printers,
6078 free_type_printers): Check gdb_python_initialized.
6079 * varobj.c (varobj_get_display_hint)
6080 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6081 (install_new_value_visualizer, varobj_set_visualizer)
6082 (value_get_print_value): Check gdb_python_initialized.
6084 2013-05-20 Tom Tromey <tromey@redhat.com>
6086 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6088 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6089 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6091 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6093 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6095 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6097 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6098 init function to return 'int'.
6099 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6100 Return 'int'. Check errors.
6101 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6103 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6104 Return 'int'. Check errors.
6105 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6107 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6109 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6111 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6113 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6115 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6117 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6119 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6121 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6123 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6125 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6127 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6129 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6131 * python/python-internal.h (gdbpy_initialize_auto_load,
6132 gdbpy_initialize_values, gdbpy_initialize_frames,
6133 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6134 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6135 gdbpy_initialize_blocks, gdbpy_initialize_types,
6136 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6137 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6138 gdbpy_initialize_finishbreakpoints,
6139 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6140 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6141 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6142 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6143 gdbpy_initialize_signal_event,
6144 gdbpy_initialize_breakpoint_event,
6145 gdbpy_initialize_continue_event,
6146 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6147 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6148 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6149 * python/python.c (gdb_python_initialized): New global.
6150 (gdbpy_initialize_events): Return 'int'. Check errors.
6151 (_initialize_python): Check errors. Set
6152 gdb_python_initialized.
6154 2013-05-20 Tom Tromey <tromey@redhat.com>
6156 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6157 Decref the reslut of PyObject_CallMethod.
6159 2013-05-20 Tom Tromey <tromey@redhat.com>
6161 * python/py-event.c (gdbpy_initialize_event_generic): Return
6162 early if PyType_Ready fails.
6164 2013-05-20 Tom Tromey <tromey@redhat.com>
6166 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6167 as 'default' in the switch.
6169 2013-05-20 Tom Tromey <tromey@redhat.com>
6171 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6172 get_addr_from_python calls out of TRY_CATCH.
6173 (infpy_write_memory, infpy_search_memory): Likewise.
6174 * python/py-utils.c (get_addr_from_python): Return negative
6175 value on error. Use TRY_CATCH.
6176 * python/python-internal.h (get_addr_from_python): Use
6177 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6179 2013-05-20 Tom Tromey <tromey@redhat.com>
6181 * python/py-event.c (evpy_emit_event): Decref the
6182 result of PyObject_CallFunctionObjArgs.
6184 2013-05-20 Tom Tromey <tromey@redhat.com>
6186 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6189 2013-05-20 Tom Tromey <tromey@redhat.com>
6191 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6193 2013-05-20 Tom Tromey <tromey@redhat.com>
6195 * python/py-event.h (gdbpy_initialize_event_generic): Use
6196 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6197 * python/py-evts.c (add_new_registry): Use
6198 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6199 * python/python-internal.h
6200 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6202 2013-05-20 Tom Tromey <tromey@redhat.com>
6204 * python/py-arch.c (archpy_disassemble): Update.
6205 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6206 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6207 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6208 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6210 (GDB_PY_HANDLE_EXCEPTION): Update.
6211 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6213 2013-05-20 Tom Tromey <tromey@redhat.com>
6215 * python/python-internal.h (events_object_type): Remove.
6217 2013-05-20 Tom Tromey <tromey@redhat.com>
6219 * python/py-event.h (evpy_emit_event): Use
6220 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6221 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6224 2013-05-20 Tom Tromey <tromey@redhat.com>
6226 * py-evtregistry.c (create_event_object): Decref
6227 eventregistry_object if PyList_New fails.
6229 2013-05-20 Tom Tromey <tromey@redhat.com>
6231 * py-cmd.c (gdbpy_string_to_argv): Check result of
6234 2013-05-20 Tom Tromey <tromey@redhat.com>
6236 * python/python.c (before_prompt_hook): Add cleanup to
6239 2013-05-20 Tom Tromey <tromey@redhat.com>
6241 * python/py-function.c (fnpy_init): Decref result of
6242 PyObject_GetAttrString.
6244 2013-05-20 Tom Tromey <tromey@redhat.com>
6246 * python/py-threadevent.c (get_event_thread): Use
6247 CPYCHECKER_RETURNS_BORROWED_REF.
6248 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6250 (pspace_to_pspace_object, objfile_to_objfile_object)
6251 (find_thread_object): Use it.
6253 2013-05-20 Tom Tromey <tromey@redhat.com>
6255 * python/py-arch.c (arch_object_type): Use
6256 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6257 * python/py-block.c (block_syms_iterator_object_type):
6258 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6259 * python/py-bpevent.c (breakpoint_event_object_type):
6260 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6261 * python/py-cmd.c (cmdpy_object_type): Use
6262 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6263 * python/py-continueevent.c (continue_event_object_type):
6264 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6265 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6266 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6267 * python/py-events.h (thread_event_object_type):
6268 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6269 * python/py-evtregistry.c (eventregistry_object_type): Use
6270 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6271 * python/py-exitedevent.c (exited_event_object_type):
6272 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6273 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6274 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6275 * python/py-function.c (fnpy_object_type): Use
6276 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6277 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6278 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6279 * python/py-infthread.c (thread_object_type): Use
6280 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6281 * python/py-lazy-string.c (lazy_string_object_type):
6282 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6283 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6284 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6285 * python/py-objfile.c (objfile_object_type): Use
6286 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6287 * python/py-param.c (parmpy_object_type):
6288 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6289 * python/py-progspace.c (pspace_object_type):
6290 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6291 * python/py-signalevent.c (signal_event_object_type):
6292 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6293 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6294 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6295 * python/py-type.c (type_object_type, field_object_type)
6296 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6297 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6299 (value_object_type, block_object_type, symbol_object_type)
6300 (event_object_type, stop_event_object_type, breakpoint_object_type)
6301 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6303 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6305 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6306 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6308 2013-05-20 Doug Evans <dje@google.com>
6310 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6312 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6313 reading_dwo_directly.
6314 (struct signatured_type): New member dwo_unit.
6315 (struct die_reader_specs): New member comp_dir.
6316 (create_signatured_type_table_from_index): Use malloc for
6317 all_type_units instead of objfile's obstack.
6318 (create_all_type_units): Ditto.
6319 (fill_in_sig_entry_from_dwo_entry): New function.
6320 (add_type_unit): New function.
6321 (lookup_dwo_signatured_type): New function.
6322 (lookup_dwp_signatured_type): New function.
6323 (lookup_signatured_type): New arg cu. All callers updated.
6324 (init_cu_die_reader): Initialize comp_dir.
6325 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6326 Change assert of matching type signatures to call error on mismatch.
6327 (lookup_dwo_unit): Add assert.
6328 (init_tu_and_read_dwo_dies): New function.
6329 (init_cutu_and_read_dies): Call it.
6330 (build_type_unit_groups): Handle case of no type unit groups created.
6331 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6332 (lookup_dwo_cutu): Tweak complaint.
6333 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6334 (dwarf2_per_objfile_free): Free all_type_units.
6336 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6338 * windows-nat.c (handle_unload_dll): Add missing empty line.
6340 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6342 * dwarf2read.c (prototyped_function_p): New function.
6343 (read_subroutine_type): Use it.
6345 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6347 * rs6000-aix-tdep.c: De-indent some example code provided
6350 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6352 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6353 region is ok for a hardware watchpoint using the new ptrace interface
6356 2013-05-17 Doug Evans <dje@google.com>
6358 * NEWS: Mention new maintenance commands check-symtabs, and
6359 expand-symtabs, and renamed check-psymtabs.
6360 * psymtab.c (maintenance_check_psymtabs): Renamed from
6361 maintenance_check_symtabs. Only process already-expanded symbol
6363 (_initialize_psymtab): Update.
6364 * symmisc.c (maintenance_check_symtabs): New function.
6365 (maintenance_expand_name_matcher): New function
6366 (maintenance_expand_file_matcher): New function
6367 (maintenance_expand_symtabs): New function.
6368 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6371 2013-05-17 Tom Tromey <tromey@redhat.com>
6373 * python/py-inferior.c (infpy_read_memory): Don't call
6374 PyErr_SetString if PyObject_New fails.
6375 * python/py-frame.c (frame_info_to_frame_object): Don't call
6376 PyErr_SetString if PyObject_New fails.
6378 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6380 * acinclude.m4: Add check for dlopen in libdl.
6381 * configure.ac: Ditto.
6382 * configure: Regenerate.
6384 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6386 * frame.c (frame_stash): Convert to htab.
6387 (frame_addr_hash): New function.
6388 (frame_addr_hash_eq): New function.
6389 (frame_stash_create): Convert function to create
6391 (frame_stash_add): Convert function to add an entry to a hash
6393 (frame_stash_find): Convert function to search the hash table.
6394 (frame_stash_invalidate): Convert function to empty the hash
6396 (get_frame_id): Only add to stash if a frame_id is created.
6397 (_initialize_frame): Call frame_stash_create.
6399 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6401 * configure.ac: Ensure MIG is available when building for GNU Hurd
6403 * configure: Regenerate.
6405 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6407 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6409 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6411 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6412 all cleanups are done before returning from this function.
6414 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6416 * utils.h: #include "exceptions.h".
6417 (enum errors): Remove partial declaration.
6419 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6421 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6422 * gdbarch.h, gdbarch.c: Regenerate.
6423 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6426 * rs6000-aix-tdep.h: New file.
6427 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6428 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6430 (struct field_info, struct ld_info_desc): New types.
6431 (ld_info32_desc, ld_info64_desc): New static constants.
6432 (struct ld_info): New type.
6433 (rs6000_aix_extract_ld_info): New function.
6434 (rs6000_aix_shared_library_to_xml): Likewise.
6435 (rs6000_aix_ld_info_to_xml): Likewise.
6436 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6437 (rs6000_aix_init_osabi): Add call to
6438 set_gdbarch_core_xfer_shared_libraries_aix.
6439 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6440 Remove "xml-utils.h" include.
6441 (LdInfo): Delete typedef.
6442 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6444 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6445 Adjust code accordingly.
6446 (rs6000_core_ldinfo): Delete, folded into
6447 rs6000_aix_core_xfer_shared_libraries_aix.
6448 (rs6000_xfer_shared_library): Delete.
6449 (rs6000_xfer_shared_libraries): Reimplement.
6451 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6453 * record.c (record_goto_cmdlist): New.
6454 (cmd_record_goto): Split into this ...
6455 (cmd_record_goto_begin): ... this
6456 (cmd_record_goto_end): ... and this.
6457 (_initialize_record): Change "record goto" to prefix command.
6458 Add commands for "record goto begin" and "record goto end".
6459 Add an alias for "record goto start" to "record goto begin".
6461 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6463 * linespec.c (convert_linespec_to_sals): New comment for
6464 SOURCE_FILENAME assignment.
6466 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6468 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6471 2013-05-14 Tom Tromey <tromey@redhat.com>
6473 * eval.c (parse_and_eval_long): Make 'exp' const.
6474 * value.h (parse_and_eval_long): Update.
6476 2013-05-14 Tom Tromey <tromey@redhat.com>
6478 * ui-file.c (gdb_fopen): Make arguments const.
6479 * ui-file.h (gdb_fopen): Make arguments const.
6481 2013-05-14 Tom Tromey <tromey@redhat.com>
6483 * remote.c (remote_set_trace_notes): Make arguments const.
6484 * target.c (update_current_target): Update cast.
6485 * target.h (to_set_trace_notes): Make arguments const.
6487 2013-05-14 Tom Tromey <tromey@redhat.com>
6489 * go32-nat.c (go32_terminal_info): Make 'args' const.
6490 * inferior.h (child_terminal_info): Update.
6491 * inflow.c (child_terminal_info): Make 'args' const.
6492 * target.c (default_terminal_info): Make 'args' const.
6493 (debug_to_terminal_save_ours): Likewise.
6494 * target.h (struct target_ops) <to_terminal_info>: Make argument
6497 2013-05-13 Tom Tromey <tromey@redhat.com>
6499 * gcore.c (create_gcore_bfd): Make 'filename' const.
6500 * gcore.h (create_gcore_bfd): Make 'filename' const.
6501 * record-full.c (record_full_save): Make 'recfilename' const.
6502 * target.c (target_save_record): Make 'filename' const.
6503 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6505 (target_save_record): Likewise.
6507 2013-05-13 Tom Tromey <tromey@redhat.com>
6510 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6511 ranges section has been read.
6513 2013-05-13 Tom Tromey <tromey@redhat.com>
6516 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6517 STRUCTOP_PTR>: Return a not_lval value for
6518 EVAL_AVOID_SIDE_EFFECTS.
6519 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6520 for EVAL_AVOID_SIDE_EFFECTS.
6522 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6524 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6525 floating point registers to register type before storing
6527 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6530 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6531 Tom Tromey <tromey@redhat.com>
6533 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6535 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6537 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6538 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6539 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6540 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6542 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6543 Tom Tromey <tromey@redhat.com>
6546 * configure: Rebuild.
6547 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6550 2013-05-10 Pedro Alves <palves@redhat.com>
6552 * remote.c (_initialize_remote): Fix spelling of
6553 qXfer:traceframe-info:read packet in packet config command.
6555 2013-05-10 David Taylor <dtaylor@emc.com>
6559 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6560 "QTro" at start of packet.
6562 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6564 * solib-aix.c (solib_aix_relocate_section_addresses):
6565 For the .bss section action, apply the same offset as
6568 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6570 * solib-aix.c (solib_aix_relocate_section_addresses):
6571 Remove FIXME comment.
6573 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6576 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6577 New functions, directly copied from sparc-sol-thread.c.
6578 * sparc-sol-thread.c: Delete.
6579 * configure.ac: Remove code handling sparc-solaris-thread.c.
6580 * configure: Regenerate.
6582 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6584 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6586 (backtrace_command): Add "no-filters" option parsing.
6587 (_initialize_stack): Alter help to reflect "no-filters" option.
6588 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6589 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6590 (py-frame.o): Add target
6591 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6593 * python/python.h: Add new frame filter constants, and flag enum.
6594 (apply_frame_filter): Add definition.
6595 * python/python.c (apply_frame_filter): New non-Python
6597 * python/py-utils.c (py_xdecref): New function.
6598 (make_cleanup_py_xdecref): Ditto.
6599 * python/py-objfile.c: Declare frame_filters dictionary.
6600 (objfpy_dealloc): Add frame_filters dealloc.
6601 (objfpy_new): Initialize frame_filters attribute.
6602 (objfile_to_objfile_object): Ditto.
6603 (objfpy_get_frame_filters): New function.
6604 (objfpy_set_frame_filters): New function.
6605 * python/py-progspace.c: Declare frame_filters dictionary.
6606 (pspy_dealloc): Add frame_filters dealloc.
6607 (pspy_new): Initialize frame_filters attribute.
6608 (pspacee_to_pspace_object): Ditto.
6609 (pspy_get_frame_filters): New function.
6610 (pspy_set_frame_filters): New function.
6611 * python/py-framefilter.c: New file.
6612 * python/lib/gdb/command/frame_filters.py: New file.
6613 * python/lib/gdb/frames.py: New file.
6614 * python/lib/gdb/__init__.py: Initialize global frame_filters
6616 * python/lib/gdb/FrameDecorator.py: New file.
6617 * python/lib/gdb/FrameIterator.py: New file.
6618 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6619 * mi/mi-cmds.h: Declare.
6620 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6621 --no-frame-filter logic, and Python frame filter logic.
6622 (stack_enable_frame_filters): New function.
6623 (parse_no_frame_option): Ditto.
6624 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6626 (mi_cmd_stack_list_locals): Ditto.
6627 (mi_cmd_stack_list_args): Ditto.
6628 (mi_cmd_stack_list_variables): Ditto.
6629 * NEWS: Add frame filter note.
6631 2013-05-09 Doug Evans <dje@google.com>
6633 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6634 All callers updated.
6635 (syms_from_objfile): Ditto. Make static.
6636 (symbol_file_add_with_addrs): Renamed from
6637 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6638 num_offsets. All callers updated.
6639 * symfile.h (syms_from_objfile): Delete.
6641 * symfile.c (decrement_reading_symtab): Add assert.
6642 (increment_reading_symtab): Ditto.
6644 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6646 * source.c (forward_search_command): Replace call to getc
6648 (reverse_search_command): Likewise.
6650 2013-05-08 Doug Evans <dje@google.com>
6652 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6655 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6657 * sol-thread.c (info_cb): Factorize the code a little.
6659 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6661 * sol-thread.c (info_cb): Rework the output of the "maintenance
6662 info sol-threads" command a bit.
6664 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6666 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6667 Replace ti.ti_startfunc by ti.ti_pc.
6669 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6671 * solib-aix.c (solib_aix_free_library_list): New function
6672 for the case where HAVE_LIBEXPAT is not defined.
6674 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6676 PR breakpoints/15413:
6677 * breakpoint.c (condition_completer): Simplify the code to
6678 disconsider multiple locations of breakpoints when completing the
6679 "condition" command.
6681 2013-05-07 Pierre Muller <muller@sourceware.org>
6683 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6684 instead of <sys/wait.h>.
6686 2013-05-07 Pierre Muller <muller@sourceware.org>
6688 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6689 trailing new line from warning message.
6691 2013-05-07 Pierre Muller <muller@sourceware.org>
6693 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6694 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6696 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6698 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6699 error message (ARI fix).
6701 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6703 * features/library-list-aix.dtd: Replace library-list by
6705 * rs6000-nat.c: Replace library-list by library-list-aix
6707 * solib-aix.c: Likewise.
6709 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6711 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6712 Renames TARGET_OBJECT_AIX_LIBRARIES.
6713 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6714 TARGET_OBJECT_LIBRARIES_AIX throughout.
6715 * solib-aix.c: Likwise.
6717 2013-05-07 Yao Qi <yao@codesourcery.com>
6719 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6720 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6722 2013-05-07 Yao Qi <yao@codesourcery.com>
6724 * solib-dsbt.c (enable_break): Declare.
6725 (dsbt_current_sos): Remove call to enable_break2.
6726 (enable_break2): Rename to enable_break. Set solib breakpoint
6727 on '_dl_debug_state'.
6728 (enable_break): Remove.
6730 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6732 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6733 debug state prior to replicating existing hardware watchpoints or
6736 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6738 * gcore.c (gcore_create_callback): Ignore sections with
6739 separate_debug_objfile_backlink != NULL.
6741 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6742 Andrew Jenner <andrew@codesourcery.com>
6743 Chung-Lin Tang <cltang@codesourcery.com>
6744 Julian Brown <julian@codesourcery.com>
6746 Based on the nios2-elf port from Altera Corporation.
6748 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6750 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6751 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6752 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6753 * nios2-tdep.h: New.
6754 * nios2-tdep.c: New.
6755 * nios2-linux-tdep.c: New.
6756 * features/Makefile (WHICH): Add nios2-linux.
6757 (nios2-linux-expedite): Set.
6758 * features/nios2-cpu.xml: New.
6759 * features/nios2.xml: New.
6760 * features/nios2-linux.xml: New.
6761 * features/nios2.c: New (autogenerated).
6762 * features/nios2-linux.c: New (autogenerated).
6763 * regformats/nios2-linux.dat: New (autogenerated).
6764 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6767 2013-05-06 Doug Evans <dje@google.com>
6769 * symfile.c: Whitespace cleanup.
6771 * solist.h (struct target_so_ops): New member clear_so.
6772 * solib-svr4.c (svr4_clear_so): New function.
6773 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6774 * solib.c (clear_so): Renamed from free_so_symbols.
6775 All callers updated. Call target clear_so if it exists.
6777 2013-05-06 Tom Tromey <tromey@redhat.com>
6779 * ada-lang.c (ada_value_primitive_packed_val): Don't
6781 * value.c (set_value_parent): Incref the new parent and decref
6783 (value_copy, value_primitive_field): Use set_value_parent.
6785 2013-05-06 Tom Tromey <tromey@redhat.com>
6787 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6788 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6790 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6791 * dwarf2read.c (write_constant_as_bytes)
6792 (dwarf2_fetch_constant_bytes): New functions.
6794 2013-05-06 Tom Tromey <tromey@redhat.com>
6796 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6798 (dwarf2_const_value_attr): Update.
6800 2013-05-06 Tom Tromey <tromey@redhat.com>
6802 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6803 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6804 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6807 2013-05-06 Tom Tromey <tromey@redhat.com>
6809 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6812 2013-05-06 Doug Evans <dje@google.com>
6814 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6815 * stabsread.h (process_one_symbol): Update declaration.
6816 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6817 * elfread.c (elf_symfile_relocate_probe): Ditto.
6818 * psymtab.c (relocate_psymtabs): Ditto.
6819 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6820 (objfile_relocate): Ditto.
6821 * objfiles.h (objfile_relocate): Update declaration.
6822 * symfile.c (relative_addr_info_to_section_offsets): Constify
6824 (default_symfile_offsets): Ditto.
6825 (syms_from_objfile_1): Constify offsets parameter.
6826 (syms_from_objfile): Ditto.
6827 (symbol_file_add_with_addrs_or_offsets): Ditto.
6828 (symfile_map_offsets_to_segments): Constify data parameter.
6829 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6830 delta parameters of member relocate.
6831 (struct sym_probe_fns): Constify new_offsets,
6832 delta parameters of member sym_relocate_probe.
6833 (struct sym_fns): Constify section_addr_info parameter of member
6835 (relative_addr_info_to_section_offsets): Update declaration.
6836 (default_symfile_offsets): Ditto.
6837 (syms_from_objfile): Ditto.
6838 (symfile_map_offsets_to_segments): Ditto.
6840 * symfile.c (syms_from_objfile_1): Use correct section count when
6841 objfile->sf == NULL.
6843 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6845 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6847 2013-05-06 Doug Evans <dje@google.com>
6849 * psympriv.h (struct partial_symtab): Augment comment for member
6852 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6854 Reimplement shared library support on ppc-aix...
6855 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6856 * features/library-list-aix.dtd: New file.
6857 * solib-aix.h, solib-aix.c: New file.
6858 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6859 (rs6000_find_toc_address_hook): Delete.
6860 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6861 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6862 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6864 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6865 (vmap_symtab, fixup_breakpoints): Delete.
6866 (rs6000_xfer_shared_libraries): New function.
6867 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6868 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6869 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6870 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6871 (rs6000_xfer_shared_library): New function.
6872 (find_toc_address): Delete.
6873 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6874 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6875 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6876 before creating minimal symbol. Adjust function description
6878 (scan_xcoff_symtab): Replace call to
6879 prim_record_minimal_symbol_and_info by call to
6880 record_minimal_symbol.
6881 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6882 around default_symfile_offsets.
6883 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6884 powerpc-aix targets.
6885 * config/rs6000/nm-rs6000.h: Delete.
6886 * config/powerpc/aix.mh (NAT_FILE): Delete.
6887 (NATDEPFILES): Remove xcoffsolib.o.
6888 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6889 (ALL_TARGET_OBS): Add solib-aix.o.
6890 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6891 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6892 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6893 * xcoffsolib.h, xcoffsolib.c: Delete.
6895 * solib.c (reload_shared_libraries): Remove reference to
6896 SOLIB_CREATE_INFERIOR_HOOK.
6897 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6898 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6899 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6901 * corelow.c (deprecated_core_resize_section_table): Delete.
6902 * exec.c: Remove include of xcoffsolib.h".
6903 (map_vmap, vmap): Delete.
6904 (exec_close_1): Remove references to vmap.
6905 (exec_file_attach): Remove vmap handling code, and reference
6906 to DEPRECATED_IBM6000_TARGET.
6907 (bfdsec_to_vmap): Delete.
6908 (exec_files_info): Remove block of code handling VMAP.
6909 * infcmd.c (post_create_inferior): Remove reference to
6910 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6911 * infrun.c (follow_exec): Remove reference to
6912 SOLIB_CREATE_INFERIOR_HOOK.
6913 * stack.c (print_frame): Remove reference to PC_SOLIB.
6914 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6915 (dsbt_relocate_main_executable): Likewise.
6916 * solib-frv.c (frv_current_sos): Likewise.
6918 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6920 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6921 to target_write_memory and target_read_memory.
6923 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6925 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6926 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6928 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6930 * darwin-nat.c: Replace all "%x" instances in format strings
6931 into "0x%x" throughout.
6933 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6935 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6936 gdb_assert by call to MACH_CHECK_ERROR.
6937 (darwin_attach_pid): Raise an error rather than a failed
6938 assertion when various system calls failed. Report a warning
6939 instead of raising a failed assertion when PREV_NOT is not NULL
6940 after call to mach_port_request_notification.
6941 (darwin_ptrace_me): Raise an error rather than a failed
6942 assertion when read returns nonzero.
6944 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6946 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6948 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6950 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6952 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6954 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6955 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6956 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6957 a stale cleanup. Fix double free of NAME.
6959 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6961 * windows-nat.c (windows_delete_thread): Accept an additional
6962 argument, the thread's exit code, and announce thread death when
6963 print_thread_events is non-zero and we are deleting a thread that
6964 is not the main thread.
6965 (get_windows_debug_event): Pass thread exit code to
6966 windows_delete_thread.
6968 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6970 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6971 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6972 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6973 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6974 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6975 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6976 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6977 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6978 (gdbarch_tdep): New struct.
6979 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6981 (v850e3v5_register_name): New function.
6982 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6983 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6984 code handling the struct return conventions for the RH850 ABI.
6986 (v850_eight_byte_align_p): New function.
6987 (v850_push_call_dummy): Push structs by value, not by reference
6988 for the RH850 ABI. Add support for eight byte alignment.
6989 (v850_dbtrap_breakpoint_from_pc): New function.
6990 (v850_gdbarch_init): Add ABI detection code. Register
6991 v850e3v5_register_name for the v850e3v5 architecture. Set the
6992 number of registers for v850e3v5. Register
6993 v850_dbtrap_breakpoint_from_pc as appropriate.
6994 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6996 2013-05-03 Doug Evans <dje@google.com>
6998 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6999 of bfd_count_sections.
7000 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7001 * symfile.c (default_symfile_offsets): Ditto.
7002 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7003 one entry, not bfd_count_sections entries.
7005 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7007 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7008 `save' and `restore' register groups. Don't include SPL
7009 or SPH in these groups.
7010 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7011 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7012 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7013 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7014 dwarf2_append_unwinders().
7016 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7018 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7019 ignore SIGINT and SIGTRAP in case these internal signals are
7022 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7024 * darwin-nat.c (darwin_read_write_inferior): Change types
7025 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7026 of copy_count to "mach_msg_type_number_t".
7027 (darwin_read_dyld_info): Change type of parameter
7028 rdaddr to "gdb_byte *".
7030 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7032 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7033 of &info->load_map from "char *" to "gdb_byte *".
7035 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7037 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7038 from "char *" to "gdb_byte *".
7039 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7041 2013-04-30 Doug Evans <dje@google.com>
7043 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7044 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7045 DWO stub. If DWO isn't found, just use stub.
7046 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7048 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7049 calling init_cutu_and_read_dies.
7051 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7053 * target-descriptions.c (maint_print_c_tdesc_cmd):
7054 Add case to parse structures as register types and
7057 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7059 * MAINTAINERS (Write After Approval): Add myself to the list.
7061 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7063 * sol-thread.c (rw_common): Change type of parameter "buf"
7065 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7066 rw_common to "gdb_byte *" instead of "char *".
7068 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7070 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7071 of local variable msym to const struct bound_minimal_symbol.
7072 Adjust use accordingly.
7073 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7075 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7077 * i386gnu-nat.c (CREG_OFFSET): New macro.
7078 (creg_offset): New array.
7079 (CREG_ADDR): Use creg_offset instead of reg_offset.
7081 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7083 * mep-tdep.c (mep_write_pc): Delete.
7084 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7085 Add call to set_gdbarch_pc_regnum.
7087 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7089 * common/filestuff.c: Replace #include <dirent.h> by
7090 #include "gdb_dirent.h".
7092 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7094 * common/filestuff.c: Replace #include <sys/stat.h> by
7095 #include "gdb_stat.h".
7097 2013-04-29 Pierre Muller <muller@sourceware.org>
7099 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7100 editCase function rule.
7101 (get_DW_AT_signature_type): Likewise.
7103 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7105 * m32r-tdep.c (m32r_write_pc): Delete.
7106 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7107 Add call to set_gdbarch_pc_regnum.
7109 2013-04-29 Pierre Muller <muller@sourceware.org>
7111 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7113 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7115 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7117 2013-04-28 Yao Qi <yao@codesourcery.com>
7119 * solib-dsbt.c (fetch_loadmap): Re-indent.
7120 (displacement_from_map, enable_break2): Likewise.
7121 (dsbt_relocate_section_addresses): Likewise.
7123 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7127 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7130 * dwarf2read.c (process_full_comp_unit): Always create a static
7133 2013-04-25 Hui Zhu <hui@codesourcery.com>
7135 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7136 to loc->cmd_bytecode.
7138 2013-04-24 Doug Evans <dje@google.com>
7140 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7142 2013-04-22 Keith Seitz <keiths@redhat.com>
7144 * tracepoint.c (trace_save): Call the writer's start method.
7146 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7149 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7152 2013-04-23 Tom Tromey <tromey@redhat.com>
7154 * common/filestuff.c: Check USE_WIN32API before including
7156 (HAVE_F_GETFD): New define.
7157 (mark_cloexec): Check HAVE_F_GETFD.
7158 (gdb_open_cloexec): Change 'mode' to unsigned long.
7159 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7160 (gdb_pipe_cloexec): Check HAVE_PIPE.
7161 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7164 2013-04-23 Hui Zhu <hui@codesourcery.com>
7167 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7169 2013-04-23 Hui Zhu <hui@codesourcery.com>
7172 * breakpoint.c (dprintf_print_recreate): New.
7173 (save_breakpoints): Let it not save dprintf commands.
7174 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7176 2013-04-22 Tom Tromey <tromey@redhat.com>
7179 * Makefile.in (SFILES): Add filestuff.c
7180 (COMMON_OBS): Add filestuff.o.
7181 (filestuff.o): New target.
7182 * auto-load.c (auto_load_objfile_script_1): Use
7184 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7185 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7186 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7187 * common/agent.c (gdb_connect_sync_socket): Use
7189 * common/filestuff.c: New file.
7190 * common/filestuff.h: New file.
7191 * common/linux-osdata.c (linux_common_core_of_thread)
7192 (command_from_pid, commandline_from_pid, print_source_lines)
7193 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7194 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7196 * common/linux-procfs.c (linux_proc_get_int)
7197 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7198 * config.in, configure: Rebuild.
7199 * configure.ac: Don't check for sys/socket.h. Check for
7201 * corelow.c (core_open): Use gdb_open_cloexec.
7202 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7203 * fork-child.c (fork_inferior): Call close_most_fds.
7204 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7205 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7206 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7207 Use gdb_fopen_cloexec.
7208 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7210 (linux_async_pipe): Use gdb_pipe_cloexec.
7211 * remote-fileio.c (remote_fileio_func_open): Use
7213 * remote.c (remote_file_put, remote_file_get): Use
7215 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7217 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7218 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7219 * solib.c (solib_find): Use gdb_open_cloexec.
7220 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7221 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7222 (tfile_open): Use gdb_open_cloexec.
7223 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7224 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7225 * xml-support.c (xml_fetch_content_from_file): Use
7227 * main.c (captured_main): Call notice_open_fds.
7229 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7231 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7232 'char *' to 'gdb_byte *'.
7233 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7236 2013-04-22 Yao Qi <yao@codesourcery.com>
7238 * infrun.c: Fix typo in comment.
7240 2013-04-22 Andrew Haley <aph@redhat.com>
7242 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7245 2013-04-20 Yao Qi <yao@codesourcery.com>
7247 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7248 'char *' to 'gdb_byte *'. Cast the return value of
7249 'bt_ctf_get_char_array' to 'gdb_byte *'.
7251 2013-04-19 Pedro Alves <palves@redhat.com>
7253 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7255 * configure: Regenerate.
7257 2013-04-19 Pedro Alves <palves@redhat.com>
7259 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7262 2013-04-19 Pedro Alves <palves@redhat.com>
7264 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7265 Change type of 'myaddr' parameter to gdb_byte pointer.
7266 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7267 to 'long long' pointer instead of to 'unsigned long long'.
7268 (monitor_write_memory_block, monitor_read_memory_single)
7269 (monitor_read_memory): Change type of 'myaddr' parameter to
7272 2013-04-19 Pedro Alves <palves@redhat.com>
7274 * record.c (validate_history_size): Make parameter 'setting'
7277 2013-04-19 Pedro Alves <palves@redhat.com>
7279 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7282 2013-04-19 Pedro Alves <palves@redhat.com>
7284 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7287 2013-04-19 Pedro Alves <palves@redhat.com>
7289 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7290 * ada-tasks.c (read_fat_string_value): Likewise.
7292 2013-04-19 Pedro Alves <palves@redhat.com>
7294 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7295 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7296 'offset', and adjust.
7298 2013-04-19 Pedro Alves <palves@redhat.com>
7300 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7301 (read_index_from_section): Add cast to 'char *'.
7303 2013-04-19 Pedro Alves <palves@redhat.com>
7305 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7307 2013-04-19 Pedro Alves <palves@redhat.com>
7309 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7311 2013-04-19 Pedro Alves <palves@redhat.com>
7313 * record-full.c (record_full_get_bookmark): Change local 'ret'
7314 type to char * and add cast to gdb_byte *.
7315 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7317 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7319 2013-04-19 Pedro Alves <palves@redhat.com>
7321 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7322 * python/py-prettyprint.c (print_string_repr): Change type of
7323 'output' local to char *. Add cast to gdb_byte * in
7324 LA_PRINT_STRING call.
7325 (print_children): Change type of 'output' local to char *.
7326 * python/py-value.c (valpy_string): Add cast to const char * in
7327 PyUnicode_Decode call.
7329 2013-04-19 Pedro Alves <palves@redhat.com>
7331 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7332 and change its type to 'const char *'. Adjust.
7333 (mips_send_packet): Add cast to 'char *', and remove cast to
7335 (mips_receive_packet): Remove cast to 'unsigned char *'.
7336 (mips_load_srec): Use bfd_byte.
7337 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7338 (pmon_checkset): Make 'value' parameter unsigned.
7340 2013-04-19 Pedro Alves <palves@redhat.com>
7342 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7344 2013-04-19 Pedro Alves <palves@redhat.com>
7346 * remote.c (remote_write_bytes_aux, compare_sections_command)
7348 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7349 (remote_hostio_readlink, remote_bfd_iovec_pread)
7350 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7351 binary buffer, and char when buffer is used as string.
7352 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7353 (trace_save, tfile_open, traceframe_walk_blocks)
7354 (tfile_fetch_registers): Likewise.
7356 2013-04-19 Pedro Alves <palves@redhat.com>
7358 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7359 buffer and size_t size. Adjust.
7360 * ser-base.h (ser_base_write): Adjust.
7361 * ser-go32.c (cnts): Change type to size_t.
7362 (dos_write): Change prototype -- take 'void *'
7363 buffer and size_t size. Adjust.
7364 (dos_info): Print elements of 'cnts' as unsigned long.
7365 * serial.c (serial_write): Likewise.
7366 * serial.h (serial_write): Adjust.
7367 (struct serial_ops) <write>: Change prototype -- take 'void *'
7368 buffer and size_t size. Adjust.
7370 2013-04-19 Pedro Alves <palves@redhat.com>
7372 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7374 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7376 2013-04-19 Pedro Alves <palves@redhat.com>
7378 * alpha-tdep.c (alpha_extract_return_value): Use
7379 regcache_cooked_read_unsigned to read 'v0'.
7381 2013-04-19 Pedro Alves <palves@redhat.com>
7383 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7384 parameters 'at', 'as' and 'offset' to uint32_t.
7386 2013-04-19 Pedro Alves <palves@redhat.com>
7388 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7389 'is64' to signed 'int'.
7391 2013-04-19 Pedro Alves <palves@redhat.com>
7393 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7396 2013-04-19 Pedro Alves <palves@redhat.com>
7398 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7399 'insnbuf' buffer type to unsigned int[].
7401 2013-04-19 Pedro Alves <palves@redhat.com>
7403 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7405 2013-04-19 Pedro Alves <palves@redhat.com>
7407 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7410 2013-04-19 Pedro Alves <palves@redhat.com>
7412 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7413 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7415 * mips-tdep.c (heuristic_fence_post): Change type to int.
7416 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7418 2013-04-19 Pedro Alves <palves@redhat.com>
7420 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7421 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7422 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7424 2013-04-19 Pedro Alves <palves@redhat.com>
7426 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7427 it to get a string view of the byte buffer.
7428 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7429 type to gdb_byte *. Adjust.
7430 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7431 Change local to char *.
7432 * solib-darwin.c (find_program_interpreter): Change return type to
7434 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7435 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7436 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7437 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7438 * solib-svr4.c (find_program_interpreter): Change return type to
7440 (enable_break): Change local 'interp_name' to char *.
7441 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7442 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7443 (spu_pseudo_register_write_spu): Use char for string buffer.
7445 (info_spu_event_command, info_spu_signal_command): Add casts to
7448 2013-04-19 Pedro Alves <palves@redhat.com>
7450 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7452 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7453 * ada-lang.c (ada_value_assign): Use gdb_byte.
7454 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7455 (alphanbsd_sigtramp_offset): Use gdb_byte.
7456 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7457 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7458 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7459 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7460 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7461 * arm-tdep.c (arm_stub_unwind_sniffer)
7462 (arm_displaced_init_closure): Use gdb_byte.
7463 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7464 (arm_default_thumb_le_breakpoint)
7465 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7466 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7467 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7468 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7469 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7470 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7471 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7472 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7473 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7474 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7475 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7476 (cris_store_return_value, cris_extract_return_value): Use
7478 (constraint): Change type of parameter to char * from signed
7479 char*. Use gdb_byte.
7480 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7481 of local buffer to gdb_byte *.
7482 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7483 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7484 (add_address_entry): Change type of local buffer to gdb_byte[].
7485 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7486 (frv_push_dummy_call): Use gdb_byte.
7487 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7488 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7489 (hppa_hpux_supply_save_state): Use gdb_byte.
7490 * hppa-tdep.c (hppa32_push_dummy_call)
7491 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7492 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7493 (slotN_contents, replace_slotN_contents): Change type of parameter
7495 (fetch_instruction, ia64_pseudo_register_write)
7496 (ia64_register_to_value, ia64_value_to_register)
7497 (ia64_extract_return_value, ia64_store_return_value)
7498 (ia64_push_dummy_call): Use gdb_byte.
7499 * m32c-tdep.c (m32c_return_value): Remove cast.
7500 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7501 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7503 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7504 * mn10300-tdep.c (mn10300_store_return_value)
7505 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7507 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7508 (moxie_process_record): Remove casts.
7509 * ppc-ravenscar-thread.c (supply_register_at_address)
7510 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7511 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7512 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7513 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7514 * remote.c (compare_sections_command): Use gdb_byte.
7515 * score-tdep.c (score7_free_memblock): Change type of parameter to
7517 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7518 gdb_byte *. Use gdb_byte.
7519 (sh_push_dummy_call_fpu): Use gdb_byte.
7520 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7521 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7522 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7523 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7524 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7525 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7526 (sh64_store_return_value, sh64_register_convert_to_virtual):
7527 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7528 (sh64_pseudo_register_write): Use gdb_byte.
7529 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7530 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7532 (irix_current_sos): Use gdb_byte.
7533 * solib-som.c (som_current_sos): Use gdb_byte.
7534 * sparc-ravenscar-thread.c (supply_register_at_address)
7535 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7536 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7537 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7538 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7540 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7542 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7543 * xstormy16-tdep.c (xstormy16_extract_return_value)
7544 (xstormy16_store_return_value): Change parameter type to
7545 'gdb_byte *'. Adjust.
7546 (xstormy16_push_dummy_call): Use gdb_byte.
7547 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7548 (call0_analyze_prologue, execute_code): Use gdb_byte.
7550 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7551 Pedro Alves <palves@redhat.com>
7553 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7556 2013-04-17 Doug Evans <dje@google.com>
7558 * dwarf2read.c (struct signatured_type): New member type.
7559 (struct attribute): Replace member signatured_type with signature.
7560 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7561 (read_call_site_scope): Call follow_die_ref instead of
7562 follow_die_ref_or_sig.
7563 (read_structure_type): Rewrite handling of signatured types.
7564 (read_enumeration_type): Ditto.
7565 (read_attribute_value): Update.
7566 (build_error_marker_type): New function.
7567 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7568 Don't call error for bad types, just build an error marker type.
7569 (dump_die_shallow): Update.
7570 (follow_die_sig_1): Renamed from follow_die_sig.
7571 Don't call error for bad types, instead return NULL.
7572 (follow_die_sig): New function.
7573 (get_signatured_type, get_DW_AT_signature_type): New functions.
7575 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7577 * aarch64-tdep.c (aarch64_write_pc): Removed.
7578 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7581 2013-04-17 Yao Qi <yao@codesourcery.com>
7583 * top.c (print_gdb_configuration): Print configure-time
7584 parameter on using libbabeltrace or not.
7586 2013-04-16 Pedro Alves <palves@redhat.com>
7588 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7590 2013-04-16 Pedro Alves <palves@redhat.com>
7592 * common/glibc_thread_db.h: Update from upstream glibc
7593 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7595 2013-04-16 Pedro Alves <palves@redhat.com>
7597 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7598 * common/glibc_thread_db.h: ... this new file ...
7599 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7601 2013-04-16 Will Newton <will.newton@gmail.com>
7602 Pedro Alves <palves@redhat.com>
7606 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7607 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7610 2013-04-16 Pedro Alves <palves@redhat.com>
7611 Eli Zaretskii <eliz@gnu.org>
7613 * NEWS: Mention "set foo unlimited".
7615 2013-04-15 Doug Evans <dje@google.com>
7617 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7618 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7619 (create_dwo_cu_reader): Renamed from
7620 create_dwo_debug_info_hash_table_reader.
7621 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7622 Remove support for multiple CUs in a DWO file.
7623 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7625 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7627 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7628 (create_dwo_in_dwp): Ditto.
7630 2013-04-15 Tom Tromey <tromey@redhat.com>
7632 * NEWS: Move recent entries into "since 7.6" section.
7634 2013-04-15 Tom Tromey <tromey@redhat.com>
7638 * break-catch-throw.c (struct exception_catchpoint)
7639 <exception_rx, pattern>: New fields.
7640 (fetch_probe_arguments, dtor_exception_catchpoint)
7641 (check_status_exception_catchpoint)
7642 (print_one_detail_exception_catchpoint): New functions.
7643 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7644 Compile regular expression if needed.
7645 (extract_exception_regexp): New function.
7646 (catch_exception_command_1): Use extract_exception_regexp.
7647 (compute_exception): Use fetch_probe_arguments.
7648 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7649 and check_status fields.
7650 * cp-abi.c (cplus_typename_from_type_info): New function.
7651 * cp-abi.h (cplus_typename_from_type_info): Declare.
7652 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7653 * gdb_regex.h (compile_rx_or_error): Declare.
7654 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7656 (init_gnuv3_ops): Set get_type_from_type_info field.
7657 * probe.c (compile_rx_or_error): Move...
7658 * utils.c (compile_rx_or_error): ... here.
7660 2013-04-15 Tom Tromey <tromey@redhat.com>
7664 * break-catch-throw.c (compute_exception): New function.
7665 (exception_funcs): New global.
7666 (_initialize_break_catch_throw): Create $_exception.
7667 * cp-abi.c (cplus_type_from_type_info): New function.
7668 * cp-abi.h (cplus_type_from_type_info): Declare.
7669 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7670 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7671 (gnuv3_get_type_from_type_info): New functions.
7672 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7674 2013-04-15 Tom Tromey <tromey@redhat.com>
7676 * break-catch-throw.c (struct exception_names): New.
7677 (exception_functions): Change type.
7678 (re_set_exception_catchpoint): Look for SDT probes.
7680 2013-04-15 Tom Tromey <tromey@redhat.com>
7683 * break-catch-throw.c (exception_functions): New global.
7684 (gnu_v3_exception_catchpoint_ops): Move earlier.
7685 (struct exception_catchpoint): New.
7686 (classify_exception_breakpoint): Rewrite.
7687 (re_set_exception_catchpoint): New function.
7688 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7689 Allocate a struct exception_catchpoint.
7690 (catch_exception_command_1): Update.
7691 (initialize_throw_catchpoint_ops): Set 're_set' method.
7693 2013-04-15 Tom Tromey <tromey@redhat.com>
7695 * Makefile.in (SFILES): Add break-catch-throw.c
7696 (COMMON_OBS): Add break-catch-throw.o.
7697 * break-catch-throw.c: New file.
7698 * breakpoint.c: Move exception-catching code to new file.
7699 (ep_parse_optional_if_clause): No longer static.
7700 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7702 2013-04-15 Tom Tromey <tromey@redhat.com>
7706 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7707 * c-exp.y (TYPEID): New token.
7708 (exp): Add new TYPEID productions.
7709 (ident_tokens): Add "typeid".
7710 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7711 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7712 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7713 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7714 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7716 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7717 (build_std_type_info_type, gnuv3_get_typeid_type)
7718 (gnuv3_get_typeid): New functions.
7719 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7720 new fields on ABI object.
7721 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7722 * std-operator.def (OP_TYPEID): New.
7724 2013-04-15 Tom Tromey <tromey@redhat.com>
7726 * elfread.c (elf_symtab_read): Install versioned symbol under
7727 unversioned name as well.
7729 2013-04-15 Tom Tromey <tromey@redhat.com>
7732 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7733 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7734 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7735 (gdb_demangle): New function.
7736 * cp-support.h (gdb_demangle): Declare.
7737 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7738 (dwarf2_name): Use gdb_demangle.
7739 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7740 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7742 (gnuv3_print_method_ptr): Use gdb_demangle.
7743 * jv-lang.c (java_demangle): Use gdb_demangle.
7744 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7745 * language.c (unk_lang_demangle): Use gdb_demangle.
7746 * symtab.c (symbol_find_demangled_name)
7747 (demangle_for_lookup): Use gdb_demangle.
7749 2013-04-15 Tom Tromey <tromey@redhat.com>
7753 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7755 (classify_exception_breakpoint): New function.
7756 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7757 (print_mention_exception_catchpoint)
7758 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7759 (catch_exception_command_1): Handle "rethrow" catchpoint.
7760 (catch_rethrow_command): New function.
7761 (_initialize_breakpoint): Add "catch rethrow" command.
7763 2013-04-15 Pierre Muller <muller@sourceware.org>
7765 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7766 set_gdbarch_write_pc as deprecated anymore.
7768 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7770 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7773 2013-04-13 Yao Qi <yao@codesourcery.com>
7775 * ctf.c (_initialize_ctf): Include "completer.h".
7776 Call add_target_with_completer instead of add_target.
7778 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7780 Fix GDB regression related to PR binutils/14813.
7781 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7782 * minidebug.c (lzma_close): Add return value comment.
7783 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7784 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7785 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7787 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7789 * config.in: Regenerate.
7791 2013-04-12 Tom Tromey <tromey@redhat.com>
7793 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7795 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7796 (struct die_reader_specs) <buffer>: Likewise.
7797 (die_reader_func_ftype): Make 'info_ptr' const.
7798 (struct line_header) <include_dirs, statement_program_start,
7799 statement_program_end>: Now const.
7800 (struct file_entry) <name>: Likewise.
7801 (struct partial_die_info) <sibling>: Likewise.
7802 (struct dwarf_block) <data>: Likewise.
7803 (dwarf2_read_section): Remove cast.
7804 (dwarf2_get_section_info): Make 'bufp' const.
7805 (read_index_from_section): Constify.
7806 (dw2_get_file_names_reader): Make 'info_ptr' const.
7807 (dw2_get_primary_filename_reader): Likewise.
7808 (read_comp_unit_head): Make 'info_ptr' and return type const.
7809 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7811 (read_abbrev_offset): Constify.
7812 (dwarf2_create_include_psymtab): Make 'name' const.
7813 (create_debug_types_hash_table): Update.
7814 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7815 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7817 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7818 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7819 (read_comp_units_from_section): Constify.
7820 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7821 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7823 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7824 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7825 (create_dwp_hash_table, dwarf2_ranges_read)
7826 (dwarf2_record_block_ranges): Constify.
7827 (read_die_and_children, read_die_and_siblings_1)
7828 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7830 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7831 (abbrev_table_read_table): Constify.
7832 (load_partial_dies): Make 'info_ptr' const.
7833 (read_partial_die, read_attribute_value, read_attribute): Make
7834 'info_ptr' and return type const.
7835 (read_address, read_initial_length)
7836 (read_checked_initial_length_and_offset, read_offset)
7837 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7839 (read_direct_string): Make 'buf' and return type const.
7840 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7841 (read_indirect_string): Make return type const.
7842 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7843 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7845 (read_str_index): Make return type const.
7846 (add_include_dir): Make 'include_dir' const.
7847 (add_file_name): Make 'name' const.
7848 (dwarf_decode_line_header): Constify.
7849 (psymtab_include_file_name): Make return type const.
7850 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7851 (dwarf2_start_subfile): Make 'filename' const.
7852 (dwarf2_const_value_attr): Make 'bytes' const.
7853 (read_signatured_type_reader): Make 'info_ptr' const.
7854 (decode_locdesc): Constify.
7855 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7857 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7858 'mac_end', and return type const.
7859 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7860 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7862 (per_cu_header_read_in): Constify.
7863 * symfile.h (dwarf2_get_section_info): Update.
7865 2013-04-12 Tom Tromey <tromey@redhat.com>
7867 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7869 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7871 * NEWS: Mention "show configuration", --configuration.
7872 * top.c (print_gdb_configuration): New function, displays the
7873 details about GDB configure-time parameters.
7874 (print_gdb_version): Mention "show configuration".
7875 * cli/cli-cmds.c (show_configuration): New function.
7876 (_initialize_cli_cmds): Add the "show configuration" command.
7877 * main.c (captured_main) <print_configuration>: New static var.
7878 <long_options>: Use it.
7879 If --configuration was given, call print_gdb_configuration.
7881 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7882 Pedro Alves <palves@redhat.com>
7884 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7885 (generated_files): Add gcore.
7886 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7887 HAVE_NATIVE_GCORE_HOST.
7889 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7890 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7891 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7892 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7893 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7894 Add HAVE_NATIVE_GCORE_HOST.
7895 * configure: Regenerate.
7896 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7897 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7898 AC_CONFIG_FILES for gcore.
7899 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7901 * gdb_gcore.sh: Rename to ...
7902 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7903 and GCORE_TRANSFORM_NAME substitutions.
7905 Fix parsing tabs in ${gdb_target_obs}.
7906 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7908 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7910 * remote.c (unpush_and_perror): Add output message final dot.
7912 2013-04-11 Yao Qi <yao@codesourcery.com>
7914 * tracepoint.c (tfile_interp_line): Fit parameters line and
7917 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7919 * solib.c (solib_map_sections): Remove code overwriting
7920 SO->SO_NAME with the bfd's filename.
7922 2013-04-10 Pedro Alves <palves@redhat.com>
7924 * cli/cli-decode.c (integer_unlimited_completer): New function.
7925 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7926 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7928 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7929 (is_unlimited_literal): New function.
7930 (do_set_command): Handle literal "unlimited" arguments.
7931 * frame.c (_initialize_frame) <set backtrace limit>: Document
7933 * printcmd.c (_initialize_printcmd) <set print
7934 max-symbolic-offset>: Add help text.
7935 * record-full.c (_initialize_record_full) <set record full
7936 insn-number-max>: Likewise.
7937 * record.c (_initialize_record) <set record
7938 instruction-history-size, set record function-call-history-size>:
7940 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7942 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7944 * source.c (_initialize_source) <set listsize>: Add help text.
7945 * utils.c (initialize_utils) <set height, set width>: Likewise.
7946 <set pagination>: Mention "set height unlimited".
7947 * valprint.c (_initialize_valprint) <set print elements, set print
7948 repeats>: Document "unlimited".
7950 2013-04-10 Pedro Alves <palves@redhat.com>
7952 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7953 instead of disconnect_tracing.
7954 * infcmd.c (detach_command, disconnect_command): Call
7955 query_if_trace_running. Adjust.
7956 * top.c: Include "tracepoint.h".
7957 (quit_target): Delete. Contents moved ...
7958 (quit_force): ... here. Wrap each stage of teardown in
7959 TRY_CATCH. Call disconnect_tracing before detaching.
7961 2013-04-10 Hui Zhu <hui@codesourcery.com>
7962 Yao Qi <yao@codesourcery.com>
7964 * configure.ac: Check libbabeltrace is installed.
7965 * config.in: Regenerate.
7966 * configure: Regenerate.
7967 * Makefile.in (LIBBABELTRACE): New.
7968 (CLIBS): Add LIBBABELTRACE.
7969 * ctf.c: Include "exec.h".
7970 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7971 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7972 (ctf_save_metadata_header): Define new type aliases in
7974 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7975 in metadata. Start a new faked packet for trace status.
7976 (ctf_write_status): Write trace status to CTF.
7977 (ctf_write_uploaded_tsv): Write TSV to CTF.
7978 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7979 (ctf_write_definition_end): End the faked packet.
7981 (ctx, ctf_iter, trace_dirname): New.
7982 (start_pos): New variable.
7983 (ctf_destroy, ctf_open_dir, ctf_open): New.
7984 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7986 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7987 (ctf_fetch_registers, ctf_xfer_partial): New.
7988 (ctf_get_trace_state_variable_value): New.
7989 (ctf_get_tpnum_from_frame_event): New.
7990 (ctf_get_traceframe_address): New.
7991 (ctf_trace_find, ctf_has_stack): New.
7992 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7993 (ctf_get_trace_status, ctf_read_status): New.
7994 (_initialize_ctf): New.
7995 * tracepoint.c (get_tracepoint_number): New
7996 (get_uploaded_tsv): Remove 'static'.
7997 (struct traceframe_info, trace_regblock_size): Move it to ...
7998 * tracepoint.h: ... here.
7999 (get_tracepoint_number): Declare it.
8000 (get_uploaded_tsv): Declare it.
8002 * NEWS: Mention new configure option.
8004 2013-04-10 Pedro Alves <palves@redhat.com>
8005 Hui Zhu <hui@codesourcery.com>
8007 * breakpoint.c (dprintf_re_set): New.
8008 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8011 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8013 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8014 Remove solib-svr4.o from the list.
8016 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8018 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8019 Use gdb_assert_not_reached instead of invalid boolean expression.
8021 2013-04-09 Pedro Alves <palves@redhat.com>
8023 * remote.c (unpush_and_perror): New function.
8024 (readchar, remote_serial_write): Use it.
8026 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8028 * NEWS: Mention new btrace RSP packets.
8030 2013-04-08 Tom Tromey <tromey@redhat.com>
8032 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8035 2013-04-08 Tom Tromey <tromey@redhat.com>
8037 * maint.c (print_bfd_section_info): Print the section index.
8038 * symmisc.c (dump_msymbols): Print the section index.
8040 2013-04-08 Tom Tromey <tromey@redhat.com>
8043 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8044 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8045 * breakpoint.c (resolve_sal_pc): Update.
8046 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8047 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8048 (minsym_lookup_iterator_cb): Use it.
8049 (default_read_var_value): Update.
8050 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8052 * infcmd.c (jump_command): Update.
8053 * linespec.c (minsym_found): Update.
8054 * maint.c (maintenance_translate_address): Update.
8055 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8056 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8057 * parse.c (write_exp_msymbol): Update.
8058 * printcmd.c (address_info): Update.
8059 * psymtab.c (find_pc_sect_psymbol): Update.
8060 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8062 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8063 Don't initialize SYMBOL_OBJ_SECTION.
8064 * spu-tdep.c (spu_catch_start): Update.
8065 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8066 * symmisc.c (dump_msymbols, print_symbol): Update.
8067 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8068 how fallback section is computed.
8069 (fixup_symbol_section): Update.
8070 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8072 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8073 Initialize SYMBOL_SECTION.
8074 * symtab.h (struct general_symbol_info) <section>: Update comment.
8075 <obj_section>: Remove.
8076 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8077 (SYMBOL_OBJFILE): New macro.
8079 2013-04-08 Tom Tromey <tromey@redhat.com>
8081 * coffread.c (record_minimal_symbol): Update.
8082 * dbxread.c (record_minimal_symbol): Update.
8083 * elfread.c (record_minimal_symbol): Update.
8084 * machoread.c (macho_symtab_add_minsym): Update.
8085 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8087 * minsyms.c (prim_record_minimal_symbol): Update.
8088 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8090 (prim_record_minimal_symbol_and_info): Likewise.
8091 * minsyms.h (prim_record_minimal_symbol_full)
8092 (prim_record_minimal_symbol_and_info): Update.
8093 * symtab.c (allocate_symbol, initialize_symbol)
8094 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8095 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8098 2013-04-08 Tom Tromey <tromey@redhat.com>
8101 * solib-som.c (som_solib_section_offsets): Use BFD section
8102 indices. Set offsets for all sections.
8103 * somread.c (som_symtab_read): Compute BFD section for
8104 symbol. Use prim_record_minimal_symbol_and_info.
8105 (som_symfile_read): Fix comment.
8106 (struct find_section_offset_arg): New.
8107 (find_section_offset, set_section_index): New functions.
8108 (som_symfile_offsets): Use set_section_index to compute
8111 2013-04-08 Tom Tromey <tromey@redhat.com>
8113 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8114 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8115 gdb_bfd_section_index.
8116 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8118 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8120 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8122 * objfiles.c (add_to_objfile_sections_full): New function.
8123 (add_to_objfile_sections): Use it.
8124 (build_section_table): Rewrite.
8125 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8126 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8127 (struct objfile) <sections>: Update comment.
8128 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8130 (ALL_OBJSECTIONS): Use it.
8131 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8132 * solib-frv.c (frv_relocate_main_executable): Update.
8133 * solib-target.c (solib_target_relocate_section_addresses):
8134 Use gdb_bfd_section_index.
8135 * symfile.c (build_section_addr_info_from_section_table):
8136 Use gdb_bfd_section_index.
8137 (build_section_addr_info_from_bfd, place_section): Likewise.
8138 * symtab.c (fixup_section): Update.
8139 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8141 2013-04-08 Tom Tromey <tromey@redhat.com>
8143 * minsyms.h (struct bound_minimal_symbol): New.
8144 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8145 Remove objfile argument.
8146 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8147 Return bound_minimal_symbol.
8148 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8149 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8150 Return bound_minimal_symbol.
8151 (in_gnu_ifunc_stub): Update.
8152 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8153 Remove 'objfile_p' argument.
8154 (lookup_solib_trampoline_symbol_by_pc): Update.
8155 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8156 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8157 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8158 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8159 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8160 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8161 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8162 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8163 stack.c, symtab.c, tui/tui-disasm.c: Update.
8165 2013-04-08 Tom Tromey <tromey@redhat.com>
8167 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8168 Use symbol's obstack, not an objfile.
8169 * coffread.c (process_coff_symbol): Update.
8170 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8171 * jv-lang.c (add_class_symbol): Update.
8172 * mdebugread.c (new_symbol): Update.
8173 * minsyms.c (prim_record_minimal_symbol_full)
8174 (terminate_minimal_symbol_table): Update.
8175 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8176 * stabsread.c (define_symbol, read_enum_type): Update.
8177 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8178 Handle Ada specially.
8179 (symbol_set_language): Add 'obstack' argument.
8180 (symbol_set_names): Update.
8181 (symbol_natural_name, symbol_demangled_name): Always use
8183 * symtab.h (struct general_symbol_info)
8184 <language_specific::obstack>: New field.
8185 <ada_mangled>: New field.
8186 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8187 (symbol_set_language): Update.
8189 2013-04-08 Tom Tromey <tromey@redhat.com>
8191 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8192 Take an obstack, not an objfile.
8193 (symbol_set_names): Update.
8194 * symtab.h (symbol_set_demangled_name): Update.
8196 2013-04-08 Tom Tromey <tromey@redhat.com>
8198 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8200 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8201 (read_func_scope): Call allocate_template_symbol.
8202 (new_symbol_full): Call allocate_symbol.
8203 * jit.c (finalize_symtab): Call allocate_symbol.
8204 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8205 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8206 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8207 (common_block_end): Call allocate_symbol.
8208 * symtab.c (allocate_symbol, initialize_symbol)
8209 (allocate_template_symbol): New functions.
8210 * symtab.c (allocate_symbol, initialize_symbol)
8211 (allocate_template_symbol): Declare.
8212 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8214 2013-04-08 Pedro Alves <palves@redhat.com>
8215 Keith Seitz <keiths@redhat.com>
8217 * breakpoint.c (create_breakpoint): Rename
8218 "parse_condition_and_thread" parameter to "parse_arg". Update
8219 describing comment. If !PARSE_ARG, then error out if ARG is not
8220 the empty string after extracting the location.
8221 * breakpoint.h (create_breakpoint): Rename
8222 "parse_condition_and_thread" parameter to "parse_arg".
8224 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8226 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8228 2013-04-07 Yao Qi <yao@codesourcery.com>
8230 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8231 and 'addr2' to CORE_ADDR.
8232 * target.c (update_current_target): Update.
8233 * target.h (struct target_ops) <to_trace_find>: Change parameter
8235 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8236 'addr2' to CORE_ADDR.
8237 (tfile_trace_find): Likewise.
8238 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8239 Change local variable 'addr' to type CORE_ADDR.
8240 * tracepoint.h (tfind_1): Update declaration.
8242 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8244 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8245 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8248 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8250 * main.h (windows_get_absolute_argv0): ...to here.
8252 2013-04-05 Doug Evans <dje@google.com>
8254 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8255 (read_cutu_die_from_dwo): Add comments.
8256 (read_structure_type): Update comment.
8257 (read_enumeration_type, read_namespace_type): Update comment.
8258 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8260 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8262 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8263 * Makefile.in (gdb.z): Remove.
8264 (install-only): Remove $(man1dir) and gdb.1 installation.
8267 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8269 Fix compatibility with Linux kernel 3.8.3.
8270 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8271 to more inner block. Remove parsing of NUMBER from outer block.
8272 Parse NUMBER only if KEYWORD has been identified.
8274 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8276 Fix variable name shadowing.
8277 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8278 filename to mapsfilename and update its uses.
8280 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8282 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8283 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8284 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8285 details of the problem.
8287 2013-04-04 Pedro Alves <palves@redhat.com>
8288 Hui Zhu <hui@codesourcery.com>
8290 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8291 tracepoint, reset its STEP_COUNT and call validate_actionline.
8293 2013-04-03 Doug Evans <dje@google.com>
8295 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8296 read_die_and_siblings.
8297 (read_die_and_siblings): New function.
8298 (read_cutu_die_from_dwo): Dump die if requested.
8299 (read_die_and_children): Call read_full_die_1 and
8300 read_die_and_siblings_1.
8301 (read_full_die): Dump die if requested.
8303 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8305 * dwarf2read.c (struct dwo_file): New member comp_dir.
8306 Rename member name to dwo_name. All uses updated.
8307 (hash_dwo_file): Include comp_dir in computation.
8308 (eq_dwo_file): Ditto.
8309 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8310 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8312 * psymtab.c (read_psymtabs_with_fullname): Don't call
8313 psymtab_to_fullname if the basenames are different.
8315 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8317 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8318 New entry about "fullname" presence.
8320 2013-04-03 Pedro Alves <palves@redhat.com>
8322 * NEWS: Mention x86_64/Cygwin as new native configuration.
8324 2013-04-02 Doug Evans <dje@google.com>
8326 * dwarf2read.c (read_structure_type): Fix typo in comment.
8328 2013-04-02 Pedro Alves <palves@redhat.com>
8330 * NEWS: Mention "set/show debug aarch64", "set/show debug
8331 coff-pe-read" and "set/show debug mach-o".
8333 2013-04-02 Pedro Alves <palves@redhat.com>
8335 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8337 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8339 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8340 gdb_string.h is now in common/.
8342 2013-04-02 Pedro Alves <palves@redhat.com>
8344 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8345 under "New options".
8347 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8351 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8353 2013-04-02 Pedro Alves <palves@redhat.com>
8357 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8358 (remote_serial_write): New function.
8359 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8361 2013-04-01 Jiong Wang <jiwang@tilera.com>
8363 * NEWS: Mention TILE-Gx in "New native configurations" and
8364 "New targets" sections.
8366 2013-04-01 Doug Evans <dje@google.com>
8368 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8369 (process_enumeration_scope): Simplify.
8371 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8373 (struct signatured_type): ... to here.
8374 (sig_type_ptr): New typedef.
8375 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8376 out of union 't'. All uses updated.
8377 (dw2_get_file_names_reader): Assert not called for a type unit.
8378 (dw2_get_file_names): Assert not called for a type unit or type
8380 (build_type_psymtabs_reader): Assert called for a type unit.
8381 (build_type_psymtab_dependencies): Assert called for a type unit group.
8383 * dwarf2read.c (free_dwo_file): Add comment.
8384 (dwarf2_per_objfile_free): Unref dwp bfd.
8386 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8388 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8389 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8390 (read_pe_exported_syms): Remove unused 'exportix'.
8391 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8392 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8393 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8395 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8397 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8398 (print_it_watchpoint): Remove unused 'bl'.
8399 (say_where): Remove unused 'uiout'.
8400 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8401 (bkpt_breakpoint_hit): Remove unused 'b'.
8402 (internal_bkpt_print_it): Remove unused 'uiout'.
8403 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8405 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8407 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8408 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8410 2013-03-29 Doug Evans <dje@google.com>
8412 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8413 Delete arg is_dwp. All callers updated.
8414 (open_dwp_file): New function.
8415 (open_and_init_dwp_file): Call it.
8416 (get_dwp_file): New function.
8417 (lookup_dwo_cutu): Call it.
8419 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8420 unnecessary, cleanup.
8422 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8424 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8425 (lookup_dwo_unit): New function.
8426 (init_cutu_and_read_dies): Move DWO handling to new functions.
8428 * dwarf2read.c (struct signatured_type): Tweak comment.
8429 (struct dwo_unit): Tweak comment.
8430 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8431 (create_dwo_debug_info_hash_table): Tweak comment.
8432 (dwarf2_per_cu_offset_and_type): Tweak comment.
8434 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8435 missing .debug_types section.
8437 2013-03-29 Yao Qi <yao@codesourcery.com>
8439 * corelow.c: Include "completer.h".
8440 (_initialize_corelow): Call add_target_with_completer with
8441 argument 'filename_completer'.
8442 * tracepoint.c: Likewise.
8443 * exec.c (_initialize_exec): Likewise.
8444 * target.c (add_target): Rename to ...
8445 (add_target_with_completer): ... this. Call set_cmd_completer
8446 if parameter completer is not NULL.
8448 * target.h: Include "command.h".
8449 (add_target_with_completer): Declare it.
8451 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8453 * coffread.c (is_import_fixup_symbol): New function.
8454 (record_minimal_symbol): Use is_import_fixup_symbol to
8455 detect import fixup symbols, and discard them.
8457 2013-03-28 Doug Evans <dje@google.com>
8459 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8460 types hash table until we know we need it.
8462 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8465 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8466 All callers updated.
8467 (dw2_print_stats): Print #read CUs too.
8468 (dump_die_shallow): Print signatured types better.
8470 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8471 info_or_types_section to section. All uses updated.
8472 (struct dwo_unit): Ditto.
8474 2013-03-28 Pedro Alves <palves@redhat.com>
8476 * NEWS (New options): New section.
8477 (New options): Mention set/show remote trace-status-packet.
8478 * remote.c (PACKET_qTStatus): New enumeration value.
8479 (remote_get_trace_status): Skip sending qTStatus if the packet is
8480 disabled. Use packet_ok.
8481 (_initialize_remote): Register a configuration command for
8484 2013-03-28 Doug Evans <dje@google.com>
8486 * symfile.c (find_separate_debug_file): Add comment.
8487 (terminate_after_last_dir_separator): Tweak comment.
8489 * dwarf2read.c (create_partial_symtab): Add forward decl.
8490 (create_partial_symtab): Move to be closer to other psymtab functions.
8491 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8493 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8494 (compute_symtab_includes): Remove unnecessary forward declaration.
8495 (die_needs_namespace): Add comment marking group of functions for
8496 dwarf2 name computation.
8498 * typeprint.c (_initialize_typeprint): Improve type help text.
8500 * python/python.c (finish_python_initialization): Provide suggestion
8501 for how to tell gdb to find its python files.
8503 2013-03-28 Pedro Alves <palves@redhat.com>
8507 * source.c (_initialize_source): Change back "set listsize" to an
8510 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8513 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8515 2013-03-27 Pedro Alves <palves@redhat.com>
8517 * top.c (history_size): Rename to ...
8518 (history_size_setshow_var): ... this. Add comment.
8519 (show_commands): Use readline's 'history_length' instead of
8520 computing the history length by calling history_get in a loop.
8521 (set_history_size_command): Error out for sizes over INT_MAX.
8522 Restore previous history size on invalid size.
8523 (init_history): If HISTSIZE is negative, leave the history size as
8525 (init_main): Adjust.
8527 2013-03-27 Pedro Alves <palves@redhat.com>
8529 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8530 coff_pe_read" command to "set debug coff-pe-read".
8532 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8534 * record.c (command_size_to_target_size): Fix size comparison.
8535 Change parameter type from pointer to integer to integer.
8538 2013-03-27 Pierre Muller <muller@sourceware.org>
8540 * windows-nat.c (handle_output_debug_string): Avoid typecast
8541 from integer of different size warning.
8543 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8545 * windows-nat.c (handle_output_debug_string): Add empty line
8546 after local block variable definition.
8548 2013-03-26 Pedro Alves <palves@redhat.com>
8550 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8551 (net_open): Make 'polls' local unsigned.
8553 2013-03-26 Pedro Alves <palves@redhat.com>
8555 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8556 a zuinteger command instead of uinteger.
8558 2013-03-26 Pedro Alves <palves@redhat.com>
8560 * record-full.c (record_full_insn_num): Make it unsigned.
8561 (record_full_check_insn_num, record_full_message)
8562 (record_full_registers_change, record_full_xfer_partial): Remove
8563 record_full_insn_max_num check (it's always != 0).
8564 (record_full_info, record_full_restore): Use %u as format string.
8565 (): Use %u as format string.
8566 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8567 check (it's always != 0).
8569 2013-03-26 Pedro Alves <palves@redhat.com>
8571 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8572 and "set dcache size" commands zuinteger instead of uinteger.
8574 2013-03-26 Pedro Alves <palves@redhat.com>
8576 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8577 command zuinteger instead of uinteger.
8579 2013-03-26 Pedro Alves <palves@redhat.com>
8581 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8582 zuinteger instead of uinteger.
8584 2013-03-26 Pedro Alves <palves@redhat.com>
8586 * record.c (record_insn_history_size_setshow_var)
8587 (record_call_history_size_setshow_var): New globals.
8588 (command_size_to_target_size): New function.
8589 (cmd_record_insn_history, cmd_record_call_history): Use
8590 command_size_to_target_size instead of cast.
8591 (validate_history_size, set_record_insn_history_size)
8592 (set_record_call_history_size): New functions.
8593 (_initialize_record): Install set_record_insn_history_size and
8594 set_record_call_history_size as "set" hooks of "set record
8595 instruction-history-size" and "set record
8596 function-call-history-size".
8598 2013-03-26 Pedro Alves <palves@redhat.com>
8600 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8601 use with history_max_entries use. Remove FIXME note.
8603 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8605 * record-btrace.c (record_btrace_close): Call
8606 record_btrace_auto_disable.
8608 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8610 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8612 2013-03-25 Doug Evans <dje@google.com>
8614 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8616 2013-03-25 Tom Tromey <tromey@redhat.com>
8619 * c-exp.y (exp): Add new productions for destructors after '.' and
8621 (write_destructor_name): New function.
8623 2013-03-25 Tom Tromey <tromey@redhat.com>
8626 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8627 value_struct_elt, not lookup_struct_elt_type.
8628 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8629 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8630 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8632 2013-03-25 Yao Qi <yao@codesourcery.com>
8634 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8635 instead of '_mkdir'.
8637 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8639 * windows-nat.c (windows_get_absolute_argv0): New function.
8640 * windows-nat.h: Add its prototype.
8642 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8643 Use IS_DIR_SEPARATOR instead of looking for a character inside
8644 SLASH_STRING. Include filenames.h.
8645 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8646 relocate_gdb_directory works when passed gdb_program_name.
8647 Include windows-nat.h.
8649 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8651 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8652 * remote.c (trace_error): Remove the special handling of '2'.
8653 (readchar) <SERIAL_EOF>
8654 (readchar) <SERIAL_ERROR>
8655 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8656 (remote_get_trace_status): Call throw_exception if EX is
8658 * utils.c (perror_with_name): Rename to ...
8659 (throw_perror_with_name): ... here. New parameter errcode, describe it
8660 in the function comment.
8661 (perror_with_name): New function wrapper.
8662 * utils.h (enum errors): New stub declaration.
8663 (throw_perror_with_name): New declaration.
8665 2013-03-22 Pedro Alves <palves@redhat.com>
8666 Yao Qi <yao@codesourcery.com>
8667 Mark Kettenis <kettenis@gnu.org>
8669 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8670 Don't let the user set the value to UINT_MAX directly.
8671 <var_integer>: Don't let the user set the value to INT_MAX
8674 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8676 * remote.c (remote_unpush_target): New function.
8677 (remote_open_1): Remove two pop_target calls, update one comment, add
8678 comment to target_preopen call. Replace pop_target call by
8679 remote_unpush_target call.
8680 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8681 pop_target calls by remote_unpush_target calls.
8683 2013-03-22 Pedro Alves <palves@redhat.com>
8685 * linux-nat.c (linux_child_follow_fork): Don't call
8686 linux_enable_event_reporting.
8687 (linux_handle_extended_wait): Don't call
8688 linux_enable_event_reporting.
8690 2013-03-22 Pedro Alves <palves@redhat.com>
8692 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8693 use it to rewrite the trampoline buffers with type gdb_byte[], and
8694 undefine the macro. Remove char* cast.
8696 2013-03-21 Doug Evans <dje@google.com>
8698 New commands "mt set per-command {space,time,symtab} {on,off}".
8700 * event-top.c: #include "maint.h".
8701 * main.c: #include "maint.h".
8702 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8703 timeval-utils.h, maint.h, cli/cli-setshow.h.
8704 (per_command_time, per_command_space): New static globals.
8705 (per_command_symtab): New static global.
8706 (per_command_setlist, per_command_showlist): New static globals.
8707 (struct cmd_stats): Move here from utils.c.
8708 (set_per_command_time): Renamed from set_display_time in utils.c
8709 and moved here. All callers updated.
8710 (set_per_command_space): Renamed from set_display_space in utils.c
8711 and moved here. All callers updated.
8712 (count_symtabs_and_blocks): New function.
8713 (report_command_stats): Moved here from utils.c. Add support for
8714 printing symtab stats. Only print data if enabled before command
8716 (make_command_stats_cleanup): Ditto.
8717 (sert_per_command_cmd, show_per_command_cmd): New functions.
8718 (_initialize_maint_cmds): Add new commands
8719 mt set per-command {space,time,symtab} {on,off}.
8720 * maint.h: New file.
8721 * top.c: #include "maint.h".
8722 * utils.c (reset_prompt_for_continue_wait_time): New function.
8723 (get_prompt_for_continue_wait_time): New function.
8724 * utils.h (reset_prompt_for_continue_wait_time): Declare
8725 (get_prompt_for_continue_wait_time): Declare.
8726 (make_command_stats_cleanup): Moved to maint.h.
8727 (set_display_time, set_display_space): Moved to maint.h and renamed
8728 to set_per_command_time, set_per_command_space.
8729 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8730 parse_binary_operation and made non-static. Don't call error,
8731 just return an error marker. All callers updated.
8732 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8734 2013-03-21 Tom Tromey <tromey@redhat.com>
8736 * symfile.c (alloc_section_addr_info): Update header. Don't set
8737 'num_sections' field.
8738 (build_section_addr_info_from_section_table): Set 'num_sections'.
8739 (build_section_addr_info_from_bfd): Likewise.
8740 (build_section_addr_info_from_objfile): Remove dead loop
8742 (free_section_addr_info): Unconditionally call xfree.
8743 (relative_addr_info_to_section_offsets, addrs_section_sort)
8744 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8746 (syms_from_objfile_1): Remove dead 'if' condition. Check
8748 (add_symbol_file_command): Set 'num_sections'.
8749 * symfile-mem.c (symbol_file_add_from_memory): Set
8751 * somread.c (som_symfile_offsets): Remove dead loop condition.
8752 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8753 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8755 2013-03-21 Tom Tromey <tromey@redhat.com>
8757 * tracepoint.h (decode_agent_options): Add 'trace_string'
8759 * tracepoint.c (decode_agent_options): Add 'trace_string'
8761 (validate_actionline): Update.
8762 (collect_symbol): Add 'trace_string' argument.
8763 (struct add_local_symbols_data) <trace_string>: New field.
8764 (do_collect_symbol): Update.
8765 (add_local_symbols): Add 'trace_string' argument.
8766 (encode_actions_1): Update.
8767 (trace_dump_actions): Update.
8768 * dwarf2loc.c (access_memory): Update.
8769 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8770 * ax-general.c (new_agent_expr): Update.
8771 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8772 (gen_trace_for_return_address): Add argument.
8773 (trace_kludge, trace_string_kludge): Remove.
8774 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8775 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8776 (gen_trace_for_var): Add 'trace_string' argument.
8777 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8778 (gen_printf, agent_eval_command_one): Update.
8780 2013-03-21 Tom Tromey <tromey@redhat.com>
8783 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8784 Handle FILENAME token.
8786 2013-03-21 Tom Tromey <tromey@redhat.com>
8788 * c-exp.y (YYPRINT): Define.
8789 (c_print_token): New function.
8791 2013-03-21 Tom Tromey <tromey@redhat.com>
8793 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8795 2013-03-21 Yao Qi <yao@codesourcery.com>
8797 * ctf.c: Include "gdb_stat.h".
8798 [USE_WIN32API]: New macro 'mkdir'.
8799 (ctf_start): Use permission bits macros if they are defined.
8801 2013-03-20 Keith Seitz <keiths@redhat.com>
8803 * breakpoint.h (struct breakpoint): Add comment to
8804 extra_string indicating that this member is mallod'd.
8805 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8807 2013-03-20 Pedro Alves <palves@redhat.com>
8811 * cli/cli-setshow.c (do_set_command)
8812 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8813 the result of parsing the command argument. Throw error if the
8814 value is greater than UINT_MAX. Print the invalid value with
8816 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8817 result of parsing the command argument. Throw error if the value
8818 is greater than INT_MAX, not greater or equal. Also throw error
8819 if the value is less than INT_MIN. Print the invalid value with
8821 <var_zuinteger_unlimited>: Throw error if the value is greater
8822 than INT_MAX, not greater or equal.
8823 (do_show_command) <var_integer, var_zinteger,
8824 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8826 2013-03-20 Tom Tromey <tromey@redhat.com>
8828 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8830 * dwarf2read.c (read_func_scope): Remove old FIXME.
8831 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8833 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8834 Unconditionally call via computed ops, if possible.
8835 * printcmd.c (address_info): Unconditionally call via computed ops,
8837 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8839 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8840 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8843 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8844 Tom Tromey <tromey@redhat.com>
8847 * coffread.c (coff_register_index): New global.
8848 (process_coff_symbol, coff_read_enum_type): Set
8849 SYMBOL_ACLASS_INDEX.
8850 (_initialize_coffread): Initialize new global.
8851 * dwarf2loc.c (locexpr_find_frame_base_location)
8852 (dwarf2_block_frame_base_locexpr_funcs)
8853 (loclist_find_frame_base_location)
8854 (dwarf2_block_frame_base_loclist_funcs): New.
8855 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8856 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8857 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8858 (dwarf2_block_frame_base_loclist_funcs): New.
8859 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8860 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8862 (read_func_scope): Update.
8863 (fixup_go_packaging, mark_common_block_symbol_computed)
8864 (var_decode_location, new_symbol_full, dwarf2_const_value):
8865 Set SYMBOL_ACLASS_INDEX.
8866 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8867 (_initialize_dwarf2_read): Initialize new globals.
8868 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8869 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8870 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8872 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8873 (_initialize_mdebugread): Initialize new globals.
8874 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8875 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8876 (stab_register_index, stab_regparm_index): New globals.
8877 (define_symbol, read_enum_type, common_block_end): Set
8878 SYMBOL_ACLASS_INDEX.
8879 (_initialize_stabsread): Initialize new globals.
8880 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8882 (MAX_SYMBOL_IMPLS): New define.
8883 (register_symbol_computed_impl, register_symbol_block_impl)
8884 (register_symbol_register_impl)
8885 (initialize_ordinary_address_classes): New functions.
8886 (_initialize_symtab): Call initialize_ordinary_address_classes.
8887 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8888 (struct symbol_impl): New.
8889 (SYMBOL_ACLASS_BITS): New define.
8890 (struct symbol) <aclass, ops>: Remove fields.
8891 <aclass_index>: New field.
8892 (symbol_impls): Declare.
8893 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8894 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8895 (register_symbol_computed_impl, register_symbol_block_impl)
8896 (register_symbol_register_impl): Declare.
8897 (struct symbol_computed_ops): Add location_has_loclist.
8898 (struct symbol_block_ops): New.
8899 (SYMBOL_BLOCK_OPS): New.
8900 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8902 2013-03-20 Tom Tromey <tromey@redhat.com>
8904 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8905 (print_partial_symbols, recursively_search_psymtabs): Use
8908 2013-03-20 Pierre Muller <muller@sourceware.org>
8910 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8911 addtion, subtraction, multiplication and division binary operator.
8913 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8916 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8917 * bsd-kvm.c (bsd_kvm_close): Likewise.
8918 * bsd-uthread.c (bsd_uthread_close): Likewise.
8919 * corelow.c (core_close): Likewise.
8920 (core_close_cleanup): Remove parameter quitting from a caller.
8921 * event-top.c (async_disconnect): Likewise.
8922 * exec.c (exec_close_1): Remove parameter quitting.
8923 * go32-nat.c (go32_close): Likewise.
8924 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8925 parameter quitting from a caller.
8926 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8928 (mips_linux_close): Remove parameter quitting. Remove parameter
8929 quitting from a caller.
8930 * monitor.c (monitor_close): Remove parameter quitting.
8931 * monitor.h (monitor_close): Likewise.
8932 * record-btrace.c (record_btrace_close): Likewise.
8933 * record-full.c (record_full_close): Likewise.
8934 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8935 it also from fprintf_unfiltered.
8936 * remote-mips.c (mips_close): Remove parameter quitting.
8937 (mips_detach): Remove parameter quitting from a caller.
8938 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8939 (gdbsim_close): Remove duplicate function comment. Remove parameter
8940 quitting and remove it also from printf_filtered.
8941 * remote.c (remote_close): Remove parameter quitting.
8942 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8943 * target.c (update_current_target): Remove parameter int from to_close
8945 (push_target, unpush_target, pop_target): Remove parameter quitting from
8947 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8948 Remove parameter quitting from a caller.
8949 (target_preopen): Remove parameter quitting from a caller.
8950 (target_close): Remove parameter quitting. Remove parameter quitting
8951 from a caller two times. Remove parameter quitting also from
8953 * target.h (struct target_ops): Remove parameter quitting and as int
8954 from fields to_xclose and to_close.
8955 (extern struct target_ops current_target):
8956 (target_close, pop_all_targets): Remove parameter quitting. Update the
8958 (pop_all_targets_above): Remove parameter quitting.
8959 * top.c (quit_target): Remove parameter quitting from a caller.
8960 * tracepoint.c (tfile_close): Remove parameter quitting.
8961 * windows-nat.c (windows_close): Remove parameter quitting.
8963 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8965 * windows-nat.c (handle_output_debug_string): Replace call
8966 to string_to_core_addr with call to strtoull.
8968 2013-03-20 Yao Qi <yao@codesourcery.com>
8970 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8971 and write it to CTF metadata.
8973 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8975 * windows-nat.c (handle_output_debug_string): Change type of n to
8976 SIZE_T to avoid crash on 64 bit systems.
8978 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8980 * python/python-internal.h (HAVE_SNPRINTF)
8981 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8982 about redefinition of snprintf by pyerrors.h.
8984 2013-03-15 Steve Ellcey <sellcey@mips.com>
8986 * remote-sim.c (sim_command_completer): Make char arguments const.
8988 2013-03-15 Tom Tromey <tromey@redhat.com>
8991 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8993 2013-03-14 Tom Tromey <tromey@redhat.com>
8995 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8997 (get_file_crc): Move from symfile.c.
8998 (gdb_bfd_crc): New function.
8999 * gdb_bfd.h (gdb_bfd_crc): Declare.
9000 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9001 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9002 (separate_debug_file_exists): Use gdb_bfd_crc.
9004 2013-03-14 Tom Tromey <tromey@redhat.com>
9006 * symfile.c (get_debug_link_info): Remove.
9007 (find_separate_debug_file_by_debuglink): Use
9008 bfd_get_debug_link_info.
9010 2013-03-14 Tom Tromey <tromey@redhat.com>
9012 * symtab.c (error_in_psymtab_expansion): New function.
9013 (lookup_symbol_aux_quick)
9014 (basic_lookup_transparent_type_quick): Remove "last resort"
9015 code. Use error_in_psymtab_expansion.
9017 2013-03-14 Doug Evans <dje@google.com>
9018 Jan Kratochvil <jan.kratochvil@redhat.com>
9020 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9021 any successful compare_filenames_for_search or FILENAME_CMP.
9022 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9023 * symtab.c (iterate_over_some_symtabs): Likewise.
9025 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9027 * source.c (print_source_lines_base): Make a local copy of
9030 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9031 Jan Kratochvil <jan.kratochvil@redhat.com>
9033 * source.c (print_source_lines_base): Suppress "file" for TUI.
9035 2013-03-14 Keith Seitz <keiths@redhat.com>
9036 Alan Matsuoka <alanm@redhat.com>
9040 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9042 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9045 2013-03-14 Yao Qi <yao@codesourcery.com>
9047 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9048 status to tfile if trace is stopped by command 'tstop'.
9050 2013-03-14 Yao Qi <yao@codesourcery.com>
9052 * tracepoint.c (tfile_write_status): Write trace notes and user
9053 name into tfile if they are not NULL.
9055 2013-03-14 Hui Zhu <hui@codesourcery.com>
9056 Yao Qi <yao@codesourcery.com>
9058 * Makefile.in (REMOTE_OBS): Add ctf.o.
9059 (SFILES): Add ctf.c.
9060 (HFILES_NO_SRCDIR): Add ctf.h.
9061 * ctf.c, ctf.h: New files.
9062 * tracepoint.c: Include 'ctf.h'.
9063 (collect_pseudocommand): Remove static.
9064 (trace_save_command): Parse option "-ctf".
9065 Produce different trace file writers per option.
9066 Adjust output message.
9067 (trace_save_tfile, trace_save_ctf): New.
9068 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9069 * mi/mi-main.c: Include 'ctf.h'.
9070 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9071 trace_save_tfile or trace_save_ctf.
9072 * NEWS: Mention these changes.
9074 2013-03-14 Yao Qi <yao@codesourcery.com>
9076 * tracepoint.c (trace_file_writer_xfree): New.
9077 (struct tfile_writer_data): New.
9078 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9079 (tfile_write_header, tfile_write_regblock_type): New.
9080 (tfile_write_status, tfile_write_uploaded_tsv): New.
9081 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9082 (tfile_write_raw_data, (tfile_end): New.
9083 (tfile_write_ops): New global variable.
9084 (TRACE_WRITE_R_BLOCK): New macro.
9085 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9086 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9087 (TRACE_WRITE_V_BLOCK): New macro.
9088 (trace_save): Add extra one parameter WRITER. Make it static.
9089 Use WRITER to writer trace.
9090 (tfile_trace_file_writer_new): New.
9091 (trace_save_command): Caller update.
9092 (trace_save_tfile): Write trace data in TFILE format.
9093 * tracepoint.h (struct trace_frame_write_ops): New.
9094 (struct trace_file_write_ops): New.
9095 (struct trace_file_writer): New.
9096 (trace_save): Remove its declaration.
9097 (trace_save_tfile): Declare it.
9098 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9099 instead of trace_save.
9101 2013-03-13 Pedro Alves <palves@redhat.com>
9103 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9105 2013-03-13 Pedro Alves <palves@redhat.com>
9107 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9109 * demangle.c (current_demangling_style_string): Make it const.
9110 (set_demangling_command): Assert the demangling style is known.
9111 Remove all handling of unknown styles. Set
9112 'current_demangling_style_string' to an element of the
9113 demangling_style_names array.
9114 (set_demangling_style): Delete.
9115 (_initialize_demangler): Set current_demangling_style_string to the
9116 element of the demangling_style_names array that corresponds to
9117 the default demangling style. Remove FIXME note. Don't call
9118 set_demangling_style.
9119 * gdb-demangle.h (set_demangling_style): Remove declaration.
9121 2013-03-13 Pedro Alves <palves@redhat.com>
9123 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9125 (ada_make_symbol_completion_list): Make "text0" parameter const.
9126 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9127 * breakpoint.c (condition_completer): Make "text" and "word"
9128 parameters const. Adjust.
9129 (check_tracepoint_command): Adjust to validate_actionline
9131 (catch_syscall_completer): Make "text" and "word" parameters
9133 * cli/cli-cmds.c (show_user): Make "comname" local const.
9134 (valid_command_p): Make "command" parameter const.
9135 (alias_command): Make "alias_prefix" and "command_prefix" locals
9137 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9138 (add_alias_cmd): Make "name" and "oldname" parameters const.
9139 Adjust. No longer make copy of OLDNAME.
9140 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9141 (add_setshow_cmd_full, add_setshow_enum_cmd)
9142 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9143 (add_setshow_filename_cmd, add_setshow_string_cmd)
9144 (add_setshow_string_noescape_cmd)
9145 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9146 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9147 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9148 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9149 Make "name" parameter const.
9150 (help_cmd): Rename "command" parameter to "arg". New const local
9152 (find_cmd): Make "command" parameter const.
9153 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9154 deprecated_cmd_warning prototype change.
9155 (undef_cmd_error): Make "cmdtype" parameter const.
9156 (lookup_cmd): Make "line" parameter const.
9157 (deprecated_cmd_warning): Change type of "text" parameter to
9158 pointer to const char, from pointer to pointer to char. Adjust.
9159 (lookup_cmd_composition): Make "text" parameter const.
9160 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9162 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9164 * cli/cli-script.c (validate_comname): Make "tem" local const.
9165 (define_command): New const local "tem_c". Use it in calls to
9167 (document_command): Make "tem" and "comfull" locals const.
9168 (show_user_1): Make "prefix" and "name" parameters const.
9169 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9171 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9172 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9173 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9174 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9175 (complete_on_enum, add_setshow_enum_cmd)
9176 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9177 (add_setshow_filename_cmd, add_setshow_string_cmd)
9178 (add_setshow_string_noescape_cmd)
9179 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9180 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9181 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9182 Change prototypes, constifying strings.
9183 * completer.c (noop_completer, filename_completer): Make "text"
9184 and "prefix" parameters const.
9185 (location_completer, expression_completer)
9186 (complete_line_internal): Make "text" and "prefix" parameters
9188 (command_completer, signal_completer): Make "text" and "prefix"
9190 * completer.h (noop_completer, filename_completer)
9191 (expression_completer, location_completer, command_completer)
9192 (signal_completer): Change prototypes.
9193 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9195 * cp-abi.c (cp_abi_completer): Likewise.
9196 * expression.h (parse_expression_for_completion): Change
9198 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9200 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9201 * infrun.c (handle_completer): Make "text" and "word" parameters
9203 * interps.c (interpreter_completer): Make "text" and "word"
9205 * language.h (struct language_defn)
9206 <la_make_symbol_completion_list>: Make "text" and "word"
9208 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9209 (parse_exp_in_context): Rename to ...
9210 (parse_exp_in_context_1): ... this.
9211 (parse_exp_in_context): Reimplement, with const hack from
9213 (parse_expression_for_completion): Make "string" parameter const.
9214 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9215 to pointer to const char. Adjust.
9216 (print_command_1): Make "exp" parameter const.
9217 (output_command): Rename to ...
9218 (output_command_const): ... this. Make "exp" parameter const.
9219 (output_command): Reimplement.
9220 (x_command): Adjust.
9221 (display_command): Rename "exp" parameter to "arg". New "exp"
9222 local, const version of "arg".
9223 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9224 "cmd_name" local const.
9225 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9227 (cmdpy_completer): Make "text" and "word" parameters const.
9228 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9229 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9231 * remote.c (_initialize_remote): Make "cmd_name" local const.
9232 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9233 parameters const. Adjust.
9234 (completion_list_add_fields): Make "sym_text", "text" and "word"
9236 (struct add_name_data) <sym_text, text, word>: Make fields const.
9237 (default_make_symbol_completion_list_break_on): Make "text" and
9238 "word" parameters const. Adjust locals.
9239 (default_make_symbol_completion_list)
9240 (make_symbol_completion_list, make_symbol_completion_type)
9241 (make_symbol_completion_list_fn): Make "text" and "word"
9243 (make_file_symbol_completion_list): Make "text", "word" and
9244 "srcfile" parameters const. Adjust locals.
9245 (add_filename_to_list): Make "text" and "word" parameters const.
9246 (struct add_partial_filename_data) <text, word>: Make fields
9248 (make_source_files_completion_list): Make "text" and "word"
9250 * symtab.h (default_make_symbol_completion_list_break_on)
9251 (default_make_symbol_completion_list, make_symbol_completion_list)
9252 (make_symbol_completion_type enum type_code)
9253 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9254 (make_source_files_completion_list): Change prototype.
9255 * top.c (execute_command): Adjust to pass pointer to pointer to
9256 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9258 (set_verbose): Make "cmdname" local const.
9259 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9261 (validate_actionline): Make "line" parameter a pointer to const
9263 (encode_actions_1): Make "action_exp" local const, and adjust.
9264 (encode_actions): Adjust.
9265 (replace_comma): Delete.
9266 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9267 const, and adjust. Don't frob the action string while splitting
9268 it at commas. Instead, make a copy of each split substring in
9270 (trace_dump_command): Adjust to validate_actionline prototype
9272 * tracepoint.h (decode_agent_options, decode_agent_options)
9273 (encode_actions, validate_actionline): Change prototypes.
9274 * valprint.h (output_command): Delete declaration.
9275 (output_command_const): Declare.
9276 * value.c (function_destroyer): Cast const away in xfree call.
9278 2013-03-13 Pedro Alves <palves@redhat.com>
9280 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9281 rather than casting 'const char * const *' to 'const char **'.
9282 * ada-lex.l (processInt): Make "trailer" local const. Remove
9283 'const char **' cast.
9284 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9285 locals, and use those as strtol output pointer, instead than doing
9286 invalid casts to from 'const char **' to 'char **'.
9287 (_initialize_demangle): Remove cast.
9288 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9289 locals, and use those as strtol output pointer, instead than doing
9290 invalid casts to from 'const char **' to 'char **'.
9291 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9293 * stap-probe.c (stap_parse_register_operand)
9294 (stap_parse_single_operand): Likewise.
9296 2013-03-13 Yao Qi <yao@codesourcery.com>
9298 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9299 the last matched 'V' blcok in trace frame.
9301 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9303 * NEWS: Create a new section for the next release branch.
9304 Rename the section of the current branch, now that it has
9307 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9309 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9310 * version.in: Bump version to 7.6.50.20130312-cvs.
9312 2013-03-12 Keith Seitz <keiths@redhat.com>
9314 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9315 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9316 Remove temporary copy of input string.
9317 (mi_execute_command_wrapper): Make "cmd" const.
9318 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9319 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9321 (mi_parse): Make "cmd" const.
9323 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9325 2013-03-12 Keith Seitz <keiths@redhat.com>
9327 * ada-lang.c (ada_read_renaming_var_value): Pass const
9328 pointer to expression string to parse_exp_1.
9329 (create_excep_cond_exprs): Likewise.
9330 * ax-gdb.c (agent_eval_command_one): Likewise.
9331 (maint_agent_printf_command): Likewise.
9332 Constify much of the string handling/parsing.
9333 * breakpoint.c (set_breakpoint_condition): Pass const
9334 pointer to expression string to parse_exp_1.
9335 (update_watchpoint): Likewise.
9336 (parse_cmd_to_aexpr): Constify string handling.
9337 Pass const pointer to parse_exp_1.
9338 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9339 (find_condition_and_thread): Likewise.
9341 (watch_command_1): Make "arg" const.
9342 Constify string handling.
9343 Copy the expression string instead of changing the input
9345 (update_breakpoint_location): Pass const pointer to
9347 * eval.c (parse_and_eval_address): Make "exp" const.
9348 (parse_to_comma_and_eval): Make "expp" const.
9349 (parse_and_eval): Make "exp" const.
9350 * expression.h (parse_expression): Make argument const.
9351 (parse_exp_1): Make first argument const.
9352 * findcmd.c (parse_find_args): Treat "args" as const.
9353 * linespec.c (parse_linespec): Pass const pointer to
9354 linespec_expression_to_pc.
9355 (linespec_expression_to_pc): Make "exp_ptr" const.
9356 * parse.c (parse_exp_1): Make "stringptr" const.
9357 Make a copy of the expression to pass to parse_exp_in_context until
9358 this whole interface can be constified.
9359 (parse_expression): Make "string" const.
9360 * printcmd.c (ui_printf): Treat "arg" as const.
9361 Handle const strings.
9362 * tracepoint.c (validate_actionline): Pass const pointer to
9363 all calls to parse_exp_1.
9364 (encode_actions_1): Likewise.
9365 * value.h (parse_to_comma_and_eval): Make argument const.
9366 (parse_and_eval_address): Likewise.
9367 (parse_and_eval): Likewise.
9368 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9369 (varobj_set_value): Likewise.
9370 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9371 constify string handling.
9372 Pass const pointers to parse_and_eval_address and
9373 parse_to_comman_and_eval.
9374 * cli/cli-utils.c (skip_to_space): Rename to ...
9375 (skip_to_space_const): ... this. Handle const strings.
9376 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9377 skip_to_space_const.
9378 (skip_to_space_const): Declare.
9379 * common/format.c (parse_format_string): Make "arg" const.
9380 Handle const strings.
9381 * common/format.h (parse_format_string): Make "arg" const.
9382 * gdbserver/ax.c (ax_printf): Make "format" const.
9383 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9384 of the expression string.
9386 2013-03-12 Hui Zhu <hui@codesourcery.com>
9388 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9390 2013-03-12 Yao Qi <yao@codesourcery.com>
9391 Hui Zhu <hui@codesourcery.com>
9393 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9394 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9397 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9399 * ada-lex.l (rules): Only recognize 'thread' as a
9400 delimiter when followed by numerals, as for c-exp.y.
9401 Use new rewind_to_char function to rewind the input for
9402 expression-delimiting tokens.
9403 (rewind_to_char): New function.
9405 2013-03-11 Pedro Alves <palves@redhat.com>
9406 Jan Kratochvil <jan.kratochvil@redhat.com>
9408 * configure: Regenerate.
9409 * configure.ac (check dynamic export flag): Link python test with
9412 2013-03-11 Doug Evans <dje@google.com>
9413 Keith Seitz <keiths@redhat.com>
9415 * linespec.c (find_linespec_symbols): Call find_function_symbols
9416 first, and then call lookup_prefix_sym/find_method.
9418 2013-03-11 Pedro Alves <palves@redhat.com>
9420 * charset.c (convert_between_encodings): Don't cast between
9421 different pointer to pointer types. Instead, make the 'inp' local
9422 be of the type iconv expects.
9423 (wchar_iterate): Don't cast between different pointer to pointer
9424 types. Instead, use new pointer local of the type iconv expects.
9425 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9426 Add new local of type char pointer, and use it to get a
9427 char/string view of the byte buffer, instead of casting between
9428 pointer to pointer types.
9430 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9432 * remote.c (remote_set_trace_buffer_size): Move != operator
9433 to the start of next line to fix an ARI warning.
9435 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9437 * NEWS: Add record changes.
9439 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9441 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9442 the instruction history disassembly.
9443 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9444 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9446 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9448 * Makefile.in (SFILES): Add record-btrace.c
9449 (COMMON_OBS): Add record-btrace.o
9450 * record-btrace.c: New.
9451 * objfiles.c: Include btrace.h.
9452 (free_objfile): call btrace_free_objfile.
9454 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9456 * target.c (target_call_history, target_call_history_from,
9457 target_call_history_range): New.
9458 * target.h (target_ops) <to_call_history, to_call_history_from,
9459 to_call_history_range>: New fields.
9460 (target_call_history, target_call_history_from,
9461 target_call_history_range): New declaration.
9462 * record.c (get_call_history_modifiers, cmd_record_call_history,
9463 record_call_history_size): New.
9464 (_initialize_record): Add the "record function-call-history" command.
9465 Add "set/show record function-call-history-size" commands.
9466 * record.h (record_print_flag): New.
9468 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9470 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9471 to_insn_history_range>: New fields.
9472 (target_insn_history): New.
9473 (target_insn_history_from): New.
9474 (target_insn_history_range): New.
9475 * target.c (target_insn_history): New.
9476 (target_insn_history_from): New.
9477 (target_insn_history_range): New.
9478 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9479 (record_insn_history_size): New.
9480 (get_insn_number): New.
9481 (get_context_size): New.
9483 (get_insn_history_modifiers): New.
9484 (cmd_record_insn_history): New.
9485 (_initialize_record): Add "set/show record instruction-history-size"
9486 command. Add "record instruction-history" command.
9488 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9490 * record.h (record_disconnect): New.
9491 (record_detach): New.
9492 (record_mourn_inferior): New.
9494 * record-full.c (record_disconnect, record_detach,
9495 record_mourn_inferior, record_kill): Move to...
9496 * record.c: ...here.
9499 (record_unpush): New.
9500 (cmd_record_stop): Call record_stop. Replace unpush_target
9501 call with record_unpush call.
9502 (record_disconnect, record_detach): Assert that the target
9503 is of record stratum. Call record_unpush, record_stop, and
9505 (record_mourn_inferior, record_kill): Assert that the target
9506 is of record stratum. Call record_unpush and DEBUG.
9508 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9510 * record-full.h, record-full.c (record_memory_query): Rename
9512 (record_full_memory_query): ...this. Update all users.
9513 (record_arch_list_add_reg): Rename to ...
9514 (record_full_arch_list_add_reg): ...this. Update all users.
9515 (record_arch_list_add_mem): Rename to ...
9516 (record_full_arch_list_add_mem): ...this. Update all users.
9517 (record_arch_list_add_end): Rename to ...
9518 (record_full_arch_list_add_end): ...this. Update all users.
9519 (record_gdb_operation_disable_set): Rename to ...
9520 (record_full_gdb_operation_disable_set): ...this.
9523 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9525 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9526 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9527 (RECORD_IS_REPLAY): Renamed to ...
9528 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9529 (RECORD_FILE_MAGIC): Renamed to ...
9530 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9531 (record_mem_entry): Renamed to ...
9532 (record_full_mem_entry): ... this. Updated all users.
9533 (record_reg_entry): Renamed to ...
9534 (record_full_reg_entry): ... this. Updated all users.
9535 (record_end_entry): Renamed to ...
9536 (record_full_end_entry): ... this. Updated all users.
9537 (record_type) <record_end, record_reg, record_mem>: Renamed
9539 (record_full_type) <record_full_end, record_full_reg,
9540 record_full_mem>: ... this. Updated all users.
9541 (record_entry): Renamed to ...
9542 (record_full_entry): ... this. Updated all users.
9543 (record_core_buf_entry): Renamed to ...
9544 (record_full_core_buf_entry): ... this. Updated all users.
9545 (record_core_regbuf): Renamed to ...
9546 (record_full_core_regbuf): ... this. Updated all users.
9547 (record_core_start): Renamed to ...
9548 (record_full_core_start): ... this. Updated all users.
9549 (record_core_end): Renamed to ...
9550 (record_full_core_end): ... this. Updated all users.
9551 (record_core_buf_list): Renamed to ...
9552 (record_full_core_buf_list): ... this. Updated all users.
9553 (record_first): Renamed to ...
9554 (record_full_first): ... this. Updated all users.
9555 (record_list): Renamed to ...
9556 (record_full_list): ... this. Updated all users.
9557 (record_arch_list_head): Renamed to ...
9558 (record_full_arch_list_head): ... this. Updated all users.
9559 (record_arch_list_tail): Renamed to ...
9560 (record_full_arch_list_tail): ... this. Updated all users.
9561 (record_stop_at_limit): Renamed to ...
9562 (record_full_stop_at_limit): ... this. Updated all users.
9563 (record_insn_max_num): Renamed to ...
9564 (record_full_insn_max_num): ... this. Updated all users.
9565 (record_insn_num): Renamed to ...
9566 (record_full_insn_num): ... this. Updated all users.
9567 (record_insn_count): Renamed to ...
9568 (record_full_insn_count): ... this. Updated all users.
9569 (record_ops): Renamed to ...
9570 (record_full_ops): ... this. Updated all users.
9571 (record_core_ops): Renamed to ...
9572 (record_full_core_ops): ... this. Updated all users.
9573 (set_record_cmdlist): Renamed to ...
9574 (set_record_full_cmdlist): ... this. Updated all users.
9575 (show_record_cmdlist): Renamed to ...
9576 (show_record_full_cmdlist): ... this. Updated all users.
9577 (record_cmdlist): Renamed to ...
9578 (record_full_cmdlist): ... this. Updated all users.
9579 (record_beneath_to_resume_ops): Renamed to ...
9580 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9581 (record_beneath_to_resume): Renamed to ...
9582 (record_full_beneath_to_resume): ... this. Updated all users.
9583 (record_beneath_to_wait_ops): Renamed to ...
9584 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9585 (record_beneath_to_wait): Renamed to ...
9586 (record_full_beneath_to_wait): ... this. Updated all users.
9587 (record_beneath_to_store_registers_ops): Renamed to ...
9588 (record_full_beneath_to_store_registers_ops): ... this.
9590 (record_beneath_to_store_registers): Renamed to ...
9591 (record_full_beneath_to_store_registers): ... this.
9593 (record_beneath_to_xfer_partial_ops): Renamed to ...
9594 (record_full_beneath_to_xfer_partial_ops): ... this.
9596 (record_beneath_to_xfer_partial): Renamed to ...
9597 (record_full_beneath_to_xfer_partial): ... this.
9599 (record_beneath_to_insert_breakpoint): Renamed to ...
9600 (record_full_beneath_to_insert_breakpoint): ... this.
9602 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9603 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9605 (record_beneath_to_stopped_data_address): Renamed to ...
9606 (record_full_beneath_to_stopped_data_address): ... this.
9608 (record_beneath_to_async): Renamed to ...
9609 (record_full_beneath_to_async): ... this. Updated all users.
9610 (record_goto_insn): Renamed to ...
9611 (record_full_goto_insn): ... this. Updated all users.
9612 (record_save): Renamed to ...
9613 (record_full_save): ... this. Updated all users.
9614 (record_reg_alloc): Renamed to ...
9615 (record_full_reg_alloc): ... this. Updated all users.
9616 (record_reg_release): Renamed to ...
9617 (record_full_reg_release): ... this. Updated all users.
9618 (record_mem_alloc): Renamed to ...
9619 (record_full_mem_alloc): ... this. Updated all users.
9620 (record_mem_release): Renamed to ...
9621 (record_full_mem_release): ... this. Updated all users.
9622 (record_end_alloc): Renamed to ...
9623 (record_full_end_alloc): ... this. Updated all users.
9624 (record_end_release): Renamed to ...
9625 (record_full_end_release): ... this. Updated all users.
9626 (record_entry_release): Renamed to ...
9627 (record_full_entry_release): ... this. Updated all users.
9628 (record_list_release): Renamed to ...
9629 (record_full_list_release): ... this. Updated all users.
9630 (record_list_release_following): Renamed to ...
9631 (record_full_list_release_following): ... this.
9633 (record_list_release_first): Renamed to ...
9634 (record_full_list_release_first): ... this. Updated all users.
9635 (record_arch_list_add): Renamed to ...
9636 (record_full_arch_list_add): ... this. Updated all users.
9637 (record_get_loc): Renamed to ...
9638 (record_full_get_loc): ... this. Updated all users.
9639 (record_check_insn_num): Renamed to ...
9640 (record_full_check_insn_num): ... this. Updated all users.
9641 (record_arch_list_cleanups): Renamed to ...
9642 (record_full_arch_list_cleanups): ... this. Updated all users.
9643 (record_message): Renamed to ...
9644 (record_full_message): ... this. Updated all users.
9645 (record_message_wrapper): Renamed to ...
9646 (record_full_message_wrapper): ... this. Updated all users.
9647 (record_message_wrapper_safe): Renamed to ...
9648 (record_full_message_wrapper_safe): ... this. Updated all users.
9649 (record_gdb_operation_disable): Renamed to ...
9650 (record_full_gdb_operation_disable): ... this. Updated all users.
9651 (record_hw_watchpoint): Renamed to ...
9652 (record_full_hw_watchpoint): ... this. Updated all users.
9653 (record_exec_insn): Renamed to ...
9654 (record_full_exec_insn): ... this. Updated all users.
9655 (record_restore): Renamed to ...
9656 (record_full_restore): ... this. Updated all users.
9657 (record_async_inferior_event_token): Renamed to ...
9658 (record_full_async_inferior_event_token): ... this.
9660 (record_async_inferior_event_handler): Renamed to ...
9661 (record_full_async_inferior_event_handler): ... this.
9663 (record_core_open_1): Renamed to ...
9664 (record_full_core_open_1): ... this. Updated all users.
9665 (record_open_1): Renamed to ...
9666 (record_full_open_1): ... this. Updated all users.
9667 (record_open): Renamed to ...
9668 (record_full_open): ... this. Updated all users.
9669 (record_close): Renamed to ...
9670 (record_full_close): ... this. Updated all users.
9671 (record_resume_step): Renamed to ...
9672 (record_full_resume_step): ... this. Updated all users.
9673 (record_resumed): Renamed to ...
9674 (record_full_resumed): ... this. Updated all users.
9675 (record_execution_dir): Renamed to ...
9676 (record_full_execution_dir): ... this. Updated all users.
9677 (record_resume): Renamed to ...
9678 (record_full_resume): ... this. Updated all users.
9679 (record_get_sig): Renamed to ...
9680 (record_full_get_sig): ... this. Updated all users.
9681 (record_sig_handler): Renamed to ...
9682 (record_full_sig_handler): ... this. Updated all users.
9683 (record_wait_cleanups): Renamed to ...
9684 (record_full_wait_cleanups): ... this. Updated all users.
9685 (record_wait_1): Renamed to ...
9686 (record_full_wait_1): ... this. Updated all users.
9687 (record_wait): Renamed to ...
9688 (record_full_wait): ... this. Updated all users.
9689 (record_stopped_by_watchpoint): Renamed to ...
9690 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9691 (record_disconnect): Renamed to ...
9692 (record_full_disconnect): ... this. Updated all users.
9693 (record_detach): Renamed to ...
9694 (record_full_detach): ... this. Updated all users.
9695 (record_mourn_inferior): Renamed to ...
9696 (record_full_mourn_inferior): ... this. Updated all users.
9697 (record_kill): Renamed to ...
9698 (record_full_kill): ... this. Updated all users.
9699 (record_stopped_data_address): Renamed to ...
9700 (record_full_stopped_data_address): ... this. Updated all users.
9701 (record_registers_change): Renamed to ...
9702 (record_full_registers_change): ... this. Updated all users.
9703 (record_store_registers): Renamed to ...
9704 (record_full_store_registers): ... this. Updated all users.
9705 (record_xfer_partial): Renamed to ...
9706 (record_full_xfer_partial): ... this. Updated all users.
9707 (record_breakpoint): Renamed to ...
9708 (record_full_breakpoint): ... this. Updated all users.
9709 (record_breakpoint_p): Renamed to ...
9710 (record_full_breakpoint_p): ... this. Updated all users.
9711 (record_breakpoints): Renamed to ...
9712 (record_full_breakpoints): ... this. Updated all users.
9713 (record_sync_record_breakpoints): Renamed to ...
9714 (record_full_sync_record_breakpoints): ... this.
9716 (record_init_record_breakpoints): Renamed to ...
9717 (record_full_init_record_breakpoints): ... this.
9719 (record_insert_breakpoint): Renamed to ...
9720 (record_full_insert_breakpoint): ... this. Updated all users.
9721 (record_remove_breakpoint): Renamed to ...
9722 (record_full_remove_breakpoint): ... this. Updated all users.
9723 (record_can_execute_reverse): Renamed to ...
9724 (record_full_can_execute_reverse): ... this. Updated all users.
9725 (record_get_bookmark): Renamed to ...
9726 (record_full_get_bookmark): ... this. Updated all users.
9727 (record_goto_bookmark): Renamed to ...
9728 (record_full_goto_bookmark): ... this. Updated all users.
9729 (record_async): Renamed to ...
9730 (record_full_async): ... this. Updated all users.
9731 (record_can_async_p): Renamed to ...
9732 (record_full_can_async_p): ... this. Updated all users.
9733 (record_is_async_p): Renamed to ...
9734 (record_full_is_async_p): ... this. Updated all users.
9735 (record_execution_direction): Renamed to ...
9736 (record_full_execution_direction): ... this. Updated all users.
9737 (record_info): Renamed to ...
9738 (record_full_info): ... this. Updated all users.
9739 (record_delete): Renamed to ...
9740 (record_full_delete): ... this. Updated all users.
9741 (record_is_replaying): Renamed to ...
9742 (record_full_is_replaying): ... this. Updated all users.
9743 (record_goto_entry): Renamed to ...
9744 (record_full_goto_entry): ... this. Updated all users.
9745 (record_goto_begin): Renamed to ...
9746 (record_full_goto_begin): ... this. Updated all users.
9747 (record_goto_end): Renamed to ...
9748 (record_full_goto_end): ... this. Updated all users.
9749 (record_goto): Renamed to ...
9750 (record_full_goto): ... this. Updated all users.
9751 (init_record_ops): Renamed to ...
9752 (init_record_full_ops): ... this. Updated all users.
9753 (record_core_resume): Renamed to ...
9754 (record_full_core_resume): ... this. Updated all users.
9755 (record_core_kill): Renamed to ...
9756 (record_full_core_kill): ... this. Updated all users.
9757 (record_core_fetch_registers): Renamed to ...
9758 (record_full_core_fetch_registers): ... this. Updated all users.
9759 (record_core_prepare_to_store): Renamed to ...
9760 (record_full_core_prepare_to_store): ... this. Updated all users.
9761 (record_core_store_registers): Renamed to ...
9762 (record_full_core_store_registers): ... this. Updated all users.
9763 (record_core_xfer_partial): Renamed to ...
9764 (record_full_core_xfer_partial): ... this. Updated all users.
9765 (record_core_insert_breakpoint): Renamed to ...
9766 (record_full_core_insert_breakpoint): ... this. Updated all users.
9767 (record_core_remove_breakpoint): Renamed to ...
9768 (record_full_core_remove_breakpoint): ... this. Updated all users.
9769 (record_core_has_execution): Renamed to ...
9770 (record_full_core_has_execution): ... this. Updated all users.
9771 (init_record_core_ops): Renamed to ...
9772 (init_record_full_core_ops): ... this. Updated all users.
9773 (cmd_record_restore): Renamed to ...
9774 (cmd_record_full_restore): ... this. Updated all users.
9775 (record_save_cleanups): Renamed to ...
9776 (record_full_save_cleanups): ... this. Updated all users.
9777 (cmd_record_start): Renamed to ...
9778 (cmd_record_full_start): ... this. Updated all users.
9779 (set_record_insn_max_num): Renamed to ...
9780 (set_record_full_insn_max_num): ... this. Updated all users.
9781 (set_record_command): Renamed to ...
9782 (set_record_full_command): ... this. Updated all users.
9783 (show_record_command): Renamed to ...
9784 (show_record_full_command): ... this. Updated all users.
9785 (_initialize_record): Renamed to ...
9786 (_initialize_record_full): ... this. Updated all users.
9788 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9790 * record.h: Split into this and ...
9791 * record-full.h: ... this.
9792 * record.c: Split into this and ...
9793 * record-full.c: ... this.
9794 * target.h (target_ops): Add new fields to_info_record,
9795 to_save_record, to_delete_record, to_record_is_replaying,
9796 to_goto_record_begin, to_goto_record_end, to_goto_record.
9797 (target_info_record): New.
9798 (target_save_record): New.
9799 (target_supports_delete_record): New.
9800 (target_delete_record): New.
9801 (target_record_is_replaying): New.
9802 (target_goto_record_begin): New.
9803 (target_goto_record_end): New.
9804 (target_goto_record): New.
9805 * target.c (target_info_record): New.
9806 (target_save_record): New.
9807 (target_supports_delete_record): New.
9808 (target_delete_record): New.
9809 (target_record_is_replaying): New.
9810 (target_goto_record_begin): New.
9811 (target_goto_record_end): New.
9812 (target_goto_record): New.
9813 * record.h: Declare struct cmd_list_element.
9814 (record_cmdlist): New declaration.
9815 (set_record_cmdlist): New declaration.
9816 (show_record_cmdlist): New declaration.
9817 (info_record_cmdlist): New declaration.
9818 (cmd_record_goto): New declaration.
9819 * record.c: Remove unnecessary includes.
9821 (cmd_record_goto): Remove declaration.
9822 (record_cmdlist): Now extern. Initialize.
9823 (set_record_cmdlist): Now extern. Initialize.
9824 (show_record_cmdlist): Now extern. Initialize.
9825 (info_record_cmdlist): Now extern. Initialize.
9826 (find_record_target): New.
9827 (require_record_target): New.
9828 (cmd_record_start): Update.
9829 (cmd_record_delete): Remove target-specific code.
9830 Call target_delete_record.
9831 (cmd_record_stop): Unpush any record target.
9832 (set_record_insn_max_num): Move to record-full.c
9833 (set_record_command): Add comment.
9834 (show_record_command): Add comment.
9835 (info_record_command): Update comment.
9836 Remove target-specific code.
9837 Call the record target's to_info_record.
9838 (cmd_record_start): New.
9839 (cmd_record_goto): Now extern.
9840 Remove target-specific code.
9841 Call target_goto_begin, target_goto_end, or target_goto.
9842 (_initialize_record): Move record target ops initialization to
9844 Change "record" command help text.
9845 Move "record restore", "record set", and "record show" commands to
9847 * Makefile.in (SFILES): Add record-full.c.
9848 (HFILES_NO_SRCDIR): Add record-full.h.
9849 (COMMON_OBS): Add record-full.o.
9850 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9851 * arm-tdep.c: Include record-full.h.
9852 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9853 * i386-tdep.c: Include record-full.h.
9854 * infrun.c: Include record-full.h.
9855 * linux-record.c: Include record-full.h.
9856 * moxie-tdep.c: Include record-full.h.
9857 * record-full.c: Include record-full.h.
9858 Change module comment.
9859 (set_record_full_cmdlist): New.
9860 (show_record_full_cmdlist): New.
9861 (record_full_cmdlist): New.
9862 (record_goto_insn): New declaration.
9863 (record_save): New declaration.
9864 (record_check_insn_num): Change query string.
9866 (record_delete): New.
9867 (record_is_replaying): New.
9868 (record_goto_entry): New.
9869 (record_goto_begin): New.
9870 (record_goto_end): New.
9872 (init_record_ops): Update.
9873 (init_record_core_ops): Update.
9874 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9875 (cmd_record_start): New.
9876 (set_record_insn_max_num): Moved from record.c
9877 (set_record_full_command): New.
9878 (show_record_full_command): New.
9879 (_initialize_record_full): New.
9881 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9883 * target.h (add_deprecated_target_alias): New.
9884 * target.c (add_deprecated_target_alias): New.
9886 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9888 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9890 (linux_supports_btrace): Add kernel and
9892 (kernel_supports_btrace): New function.
9893 (cpu_supports_btrace): New function.
9894 (intel_supports_btrace): New function.
9896 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9898 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9899 * remote.c: Include btrace.h.
9900 (struct btrace_target_info): New struct.
9901 (remote_supports_btrace): New function.
9902 (send_Qbtrace): New function.
9903 (remote_enable_btrace): New function.
9904 (remote_disable_btrace): New function.
9905 (remote_teardown_btrace): New function.
9906 (remote_read_btrace): New function.
9907 (init_remote_ops): Add btrace ops.
9908 (enum <unnamed>): Add btrace packets.
9909 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9910 (_initialize_remote): Add packet configuration for branch tracing.
9912 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9914 * features/btrace.dtd: New file.
9915 * Makefile.in (XMLFILES): Add btrace.dtd.
9916 * btrace.h (parse_xml_btrace): New declaration.
9917 * btrace.c: Include xml-support.h.
9918 (parse_xml_btrace): New function.
9919 (parse_xml_btrace_block): New function.
9920 (block_attributes): New struct.
9921 (btrace_attributes): New struct.
9922 (btrace_children): New struct.
9923 (btrace_elements): New struct.
9925 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9927 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9928 (amd64_linux_enable_btrace): New.
9929 (amd64_linux_disable_btrace): New.
9930 (amd64_linux_teardown_btrace): New.
9931 (_initialize_amd64_linux_nat): Initialize btrace ops.
9932 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9933 (i386_linux_enable_btrace): New.
9934 (i386_linux_disable_btrace): New.
9935 (i386_linux_teardown_btrace): New.
9936 (_initialize_i386_linux_nat): Initialize btrace ops.
9937 * config/i386/linux.mh: Add linux-btrace.o.
9938 * config/i386/linux64.mh: Add linux-btrace.o.
9940 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9942 * common/linux_btrace.h: New file.
9943 * common/linux_btrace.c: New file.
9944 * Makefile.in (SFILES): Add btrace.c.
9945 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9946 (COMMON_OBS): Add btrace.o.
9947 (linux-btrace.o): New rule.
9949 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9951 * target.h: Include btrace.h.
9952 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9953 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9954 * target.c (target_supports_btrace): New function.
9955 (target_enable_btrace): New function.
9956 (target_disable_btrace): New function.
9957 (target_teardown_btrace): New function.
9958 (target_read_btrace): New function.
9959 * btrace.h: New file.
9960 * btrace.c: New file.
9961 * Makefile.in: Add btrace.c.
9962 * gdbthread.h: Include btrace.h.
9963 (struct thread_info): Add btrace field.
9964 * thread.c: Include btrace.h.
9965 (clear_thread_inferior_resources): Call target_teardown_btrace.
9966 * common/btrace-common.h: New file.
9968 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9970 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9971 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9972 kill_status to outer block.
9974 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9976 Fix entry-values if the callee called a noreturn function.
9977 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9978 get_frame_address_in_block. Add new comment.
9980 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9982 Fix entry-values in C++ across CUs.
9983 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9984 lookup_minimal_symbol. Add a comment.
9986 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9989 2013-03-08 Yao Qi <yao@codesourcery.com>
9991 * tracepoint.c (_initialize_tracepoint): Indent the code.
9993 2013-03-08 Pedro Alves <palves@redhat.com>
9995 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9996 (parse_find_args, find_command): Change type of pattern buffer
9997 locals to 'gdb_byte *'.
9999 2013-03-08 Stan Shebs <stan@codesourcery.com>
10000 Hafiz Abid Qadeer <abidh@codesourcery.com>
10002 * NEWS: Mention set and show trace-buffer-size commands.
10003 Mention new packet.
10004 * target.h (struct target_ops): New method
10005 to_set_trace_buffer_size.
10006 (target_set_trace_buffer_size): New macro.
10007 * target.c (update_current_target): Set up new method.
10008 * tracepoint.c (trace_buffer_size): New global.
10009 (start_tracing): Send it to the target.
10010 (set_trace_buffer_size): New function.
10011 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10012 * remote.c (remote_set_trace_buffer_size): New function.
10013 (_initialize_remote): Use it.
10014 (QTBuffer:size) New remote command.
10015 (PACKET_QTBuffer_size): New enum.
10016 (remote_protocol_features): Add an entry for
10017 PACKET_QTBuffer_size.
10019 2013-03-08 Tom Tromey <tromey@redhat.com>
10021 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10024 2013-03-07 Pedro Alves <palves@redhat.com>
10026 * target.c (target_read_stralloc, target_fileio_read_alloc):
10027 *Cast pointer to 'gdb_byte *' in target call.
10029 2013-03-07 Pedro Alves <palves@redhat.com>
10031 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10034 2013-03-07 Keith Seitz <keiths@redhat.com>
10036 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10037 (trace_pass_command): Likewise.
10038 * cli/cli-cmds.c: Include cli/cli-utils.h.
10039 (source_command): Use skip-spaces.
10040 (disassemble_command): Likewise.
10041 * findcmd.c: Include cli/cli-utils.h.
10042 (parse_find_args): Use skip_spaces.
10043 * go32-nat.c: Include cli/cli-utils.h.
10044 (go32_sldt): Use skip_spaces.
10045 (go32_sgdt): Likewise.
10046 (go32_sidt): Likewise.
10047 (go32_pde): Likewise.
10048 (go32_pte): Likewise.
10049 (go32_pte_for_address): Likewise.
10050 * infcmd.c: Include cli/cli-utils.h.
10051 (registers_info): Use skip_spaces.
10052 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10053 (linux_info_proc): Likewise.
10054 * linux-thread-db.c: Include cli/cli-utils.h.
10055 (info_auto_load_libthread_db): Use skip_spaces_const.
10056 * m32r-rom.c: Include cli/cli-utils.h.
10057 (m32r_upload_command): Use skip_spaces.
10058 * maint.c: Include cli/cli-utils.h.
10059 (maintenance_translate_address): Use skip_spaces.
10060 * mi/mi-parse.c: Include cli/cli-utils.h.
10061 (mi_parse_argv): Use skip_spaces.
10062 (mi_parse): Likewise.
10063 * minsyms.c: Include cli/cli-utils.h.
10064 (msymbol_hash_iw): Use skip_spaces_const.
10065 * objc-lang.c: Include cli/cli-utils.h.
10066 (parse_selector): Use skip_spaces.
10067 (parse_method): Likewise.
10068 * python/python.c: Include cli/cli-utils.h.
10069 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10070 (python_command)[HAVE_PYTHON]: Likewise.
10071 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10072 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10073 (m32r_load): Use skip_spaces.
10074 * serial.c: Include cli/cli-utils.h.
10075 (serial_open): Use skip_spaces_const.
10076 * stack.c: Include cli/cli-utils.h.
10077 (parse_frame_specification_1): Use skip_spaces_const.
10078 * symfile.c: Include cli/cli-utils.h.
10079 (set_ext_lang_command): Use skip_spaces.
10080 * symtab.c: Include cli/cli-utils.h.
10081 (rbreak_command): Use skip_spaces.
10082 * thread.c (thread_name_command): Use skip_spaces.
10083 * tracepoint.c (validate_actionline): Use skip_spaces.
10084 (encode_actions_1): Likewise.
10085 (trace_find_range_command): Likewise.
10086 (trace_find_outside_command): Likewise.
10087 (trace_dump_actions): Likewise.
10089 2013-03-07 Pedro Alves <palves@redhat.com>
10091 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10092 * expprint.c (print_subexp_standard): Likewise.
10093 * utils.c (host_char_to_target): Likewise.
10094 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10095 * varobj.c (value_get_print_value): Change type of local to char*.
10096 Cast it gdb_byte * in call to language printer.
10098 2013-03-07 Pedro Alves <palves@redhat.com>
10100 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10102 (make_wchar_iterator): Remove cast to char*.
10103 (wchar_iterate): Change type of local.
10105 2013-03-07 Pedro Alves <palves@redhat.com>
10107 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10108 for 'regcache->register_status'.
10110 2013-03-07 Pedro Alves <palves@redhat.com>
10112 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10115 2013-03-07 Pedro Alves <palves@redhat.com>
10117 * stap-probe.c (handle_stap_probe): Add cast to char*.
10119 2013-03-07 Pedro Alves <palves@redhat.com>
10121 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10122 RECORD_MSGRCV>: Pass a signed variable to
10123 regcache_raw_read_signed, instead of an unsigned one.
10125 2013-03-07 Pedro Alves <palves@redhat.com>
10127 * remote-notif.c (notif_debug): Change type to int.
10128 * remote-notif.h (notif_debug): Likewise.
10130 2013-03-07 Pedro Alves <palves@redhat.com>
10132 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10134 2013-03-07 Pedro Alves <palves@redhat.com>
10136 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10137 * remote.h (hex2bin, bin2hex): ... here.
10138 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10140 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10142 * utils.c (initialize_utils): Improve doc strings of "set/show
10143 width", "set/show height", and "set/show pagination".
10145 2013-03-06 Keith Seitz <keiths@redhat.com>
10147 * ax-gdb.c (gen_printf): Make FORMAT const.
10148 * ax-gdb.h (gen_printf): Likewise.
10149 * ax-general.c (ax_string): Make STR const.
10150 * ax.h (ax_string): Likewise.
10152 2013-03-06 Doug Evans <dje@google.com>
10154 * elfread.c (elf_symfile_read): Move debugging printf to more
10157 2013-03-06 Pedro Alves <palves@redhat.com>
10159 * python/py-utils.c (target_string_to_unicode): Delete function.
10160 * python/python-internal.h (target_string_to_unicode): Delete
10163 2013-03-06 Pierre Muller <muller@sourceware.org>
10165 * linespec.c (get_current_search_block): ARI fix, use (void)
10166 for empty parameter list.
10168 2013-03-05 Doug Evans <dje@google.com>
10170 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10171 of old ada_lookup_symbol_list. In !full_search case, don't
10172 search superblocks.
10173 (ada_lookup_symbol_list): Delete arg full_search, all callers
10174 updated. Call ada_lookup_symbol_list_worker.
10175 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10176 * ada-lang.h (ada_lookup_symbol_list): Update.
10177 * language.h (language_defn): Update comment for
10178 la_iterate_over_symbols.
10179 * linespec.c (iterate_over_file_blocks): New function.
10180 (iterate_over_all_matching_symtabs): Call it.
10181 (lookup_prefix_sym): Ditto.
10182 (get_current_search_block): New function.
10183 (get_search_block): Delete.
10184 (find_label_symbols): Call get_current_search_block.
10185 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10186 * symtab.c (iterate_over_symbols): Don't search superblocks.
10188 2013-03-05 Yao Qi <yao@codesourcery.com>
10190 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10191 parameter VAR's type from "unsigned int" to "int".
10192 * command.h (var_zuinteger_unlimited): Update its comments.
10193 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10195 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10197 * NEWS: Mention new target x86_64-*-cygwin*.
10199 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10201 * configure.host: Add x86_64-*-cygwin* as host.
10202 * configure.tgt: Add x86_64-*-cygwin* as target.
10203 * config/i386/cygwin64.mh: New file.
10205 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10207 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10209 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10211 * linespec.c (struct linespec_canonical_name): New.
10212 (struct linespec_state): Change canonical_names type to it.
10213 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10214 xrealloc element size. Initialize the different CANONICAL fields.
10215 (canonical_to_fullform): New.
10216 (filter_results): Use it. Add variables canonical, fullform and
10218 (struct decode_line_2_item, decode_line_2_compare_items): New.
10219 (decode_line_2): Remove variables iter and item_names, add variables
10220 items and items_count. Modify the code for these new variables.
10222 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10224 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10225 calling do_cleanup.
10227 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10229 * tracepoint.c (build_traceframe_info): Add code for byte order.
10231 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10233 * v850-tdep.c: (v850e2_register_name): Revise system register
10234 names to match current V850E2M architecture specifications.
10235 Update register number enum comments too.
10237 2013-03-01 Jiong Wang <jiwang@tilera.com>
10238 Pedro Alves <palves@redhat.com>
10240 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10242 (tilegx_skip_prologue): Limit prologue analysis to section end.
10244 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10246 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10249 2013-03-01 Pedro Alves <palves@redhat.com>
10251 Use gdb_byte for bytes from the program being debugged.
10253 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10254 Change type of local 'buf' to gdb_byte.
10255 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10256 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10257 * cris-tdep.c (cris_sigcontext_addr)
10258 (cris_sigtramp_frame_unwind_cache): Likewise.
10259 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10260 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10262 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10263 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10264 (hppa32_hpux_search_dummy_call_sequence)
10265 (hppa_hpux_supply_save_state): Likewise.
10266 * hppa-linux-tdep.c (insns_match_pattern)
10267 (hppa_linux_find_global_pointer): Likewise.
10268 * hppa-tdep.c (hppa_in_function_epilogue_p)
10269 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10270 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10271 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10272 (i386fbsd_collect_uthread): Likewise.
10273 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10274 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10275 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10276 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10277 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10278 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10279 (ia64_libunwind_frame_prev_register)
10280 (ia64_libunwind_sigtramp_frame_this_id)
10281 (ia64_find_global_pointer_from_dynamic_section)
10282 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10283 (ia64_unwind_pc): Likewise.
10284 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10285 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10286 (m68hc11_extract_return_value): Likewise.
10287 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10288 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10289 (mep_get_insn, mep_push_dummy_call): Likewise.
10290 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10291 (mips_linux_in_dynsym_stub): Likewise.
10292 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10293 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10294 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10296 * remote-mips.c (mips_set_register): Likewise.
10297 * remote-sim.c (gdbsim_fetch_register): Likewise.
10298 * score-tdep.c (score7_fetch_inst): Change type of parameter
10299 'memblock' and local 'buf' to gdb_byte.
10300 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10301 Change type of local 'buf' to gdb_byte. Adjust.
10302 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10304 (score7_analyze_prologue): Change type of 'memblock' and
10305 'memblock_ptr' locals to gdb_byte*.
10306 * sh64-tdep.c (sh64_extract_return_value)
10307 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10308 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10309 * solib-pa64.c (pa64_solib_create_inferior_hook)
10310 (pa64_open_symbol_file_object): Remove local 'buf'.
10311 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10312 (som_open_symbol_file_object): Likewise.
10313 * solib-spu.c (spu_current_sos): Likewise.
10314 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10315 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10316 (spu_store_registers): Likewise.
10317 * target.c (debug_print_register): Likewise.
10318 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10319 * xstormy16-tdep.c (xstormy16_store_return_value)
10320 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10321 (xstormy16_find_jmp_table_entry): Likewise.
10323 2013-03-01 Jiong Wang <jiwang@tilera.com>
10325 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10326 (tilegx_gdbarch_init): Install it.
10328 2013-02-28 Tom Tromey <tromey@redhat.com>
10330 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10333 2013-02-28 Doug Evans <dje@google.com>
10335 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10336 * python/python.c (gdbpy_find_pc_line): Ditto.
10338 2013-02-28 Tom Tromey <tromey@redhat.com>
10340 * contrib/excheck.py: New file.
10341 * contrib/exsummary.py: New file.
10342 * contrib/gcc-with-excheck: New file.
10344 2013-02-28 Tom Tromey <tromey@redhat.com>
10346 * python/python.c (gdbpy_print_stack): Call begin_line and
10347 fprintf_filtered inside TRY_CATCH.
10349 2013-02-28 Tom Tromey <tromey@redhat.com>
10351 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10354 2013-02-28 Tom Tromey <tromey@redhat.com>
10356 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10357 frame_object_to_frame_info inside TRY_CATCH.
10359 2013-02-28 Tom Tromey <tromey@redhat.com>
10361 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10364 2013-02-28 Tom Tromey <tromey@redhat.com>
10366 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10368 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10370 * windows-nat.c: Throughout, fix format strings and casts of
10371 printf-like functions to avoid type related warnings on all
10373 (handle_output_debug_string): Fetch context information address
10374 from debug string using string_to_core_addr.
10376 2013-02-27 Jiong Wang <jiwang@tilera.com>
10378 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10379 * regformats/reg-tilegx32.dat: New.
10381 2013-02-27 Jiong Wang <jiwang@tilera.com>
10383 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10385 2013-02-27 Jiong Wang <jiwang@tilera.com>
10387 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10389 2013-02-27 Yao Qi <yao@codesourcery.com>
10390 Pedro Alves <palves@redhat.com>
10392 * tracepoint.c (tfile_trace_find): For tfind
10393 pc/tp/range/outside, look for the next trace frame instead of
10394 always starting from frame 0.
10396 2013-02-26 Anthony Green <green@moxielogic.com>
10398 * configure.tgt: Add support for moxie-*-rtems* target.
10400 2013-02-25 Pedro Alves <palves@redhat.com>
10402 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10405 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10407 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10408 if $fp is used as the virtual frame pointer.
10410 2013-02-23 Alan Modra <amodra@gmail.com>
10412 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10414 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10415 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10416 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10417 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10419 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10422 * elfread.c (build_id_bfd_get): Make the return type const.
10423 (build_id_verify): Make the check parameter const.
10424 (build_id_to_debug_filename): Make the build_id parameter and variable
10426 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10428 2013-02-21 Alan Modra <amodra@gmail.com>
10430 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10432 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10434 Add a new method 'disassemble' to gdb.Architecture class.
10435 * python/py-arch.c (archpy_disassmble): Implementation of the
10436 new method gdb.Architecture.disassemble.
10437 (arch_object_methods): Add entry for the new method.
10439 2013-02-20 Jiong Wang <jiwang@tilera.com>
10441 * MAINTAINERS (Write After Approval): Add myself to the list.
10443 2013-02-19 Pedro Alves <palves@redhat.com>
10445 Garbage collect 'struct monitor_ops'::load_routine.
10447 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10448 * monitor.c (monitor_load): No longer call
10449 current_monitor->load_routine.
10450 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10451 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10452 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10454 2013-02-19 Pedro Alves <palves@redhat.com>
10458 Harmonize with generic_load.
10460 * monitor.c: Include "readline/readline.h".
10461 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10462 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10463 long/strtol for the 'load_offset' local. Error out if no argument
10464 is given or if too many arguments are given. Tilde expand the
10465 passed in file name.
10467 2013-02-19 Kai Tietz <ktietz@redhat.com>
10470 * symfile.c (load_section_data): Change type of load_offset
10472 (generic_load): User strtoulst instead of strtoul for conversion
10475 2013-02-19 Jiong Wang <jiwang@tilera.com>
10477 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10478 for return address, "lr" register, saved on stack.
10479 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10480 after we invoke tilegx_analyze_prologue.
10482 2013-02-19 Jiong Wang <jiwang@tilera.com>
10484 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10486 2013-02-19 Jiong Wang <jiwang@tilera.com>
10488 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10490 2013-02-19 Jiong Wang <jiwang@tilera.com>
10492 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10493 (tilegx_write_pc): New function.
10494 (tilegx_cannot_reference_register): Return zero if REGNO
10495 is TILEGX_FAULTNUM_REGNUM.
10496 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10497 (tilegx_register_name): Add handling of "faultnum" register.
10498 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10499 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10500 handling of TILEGX_FAULTNUM_REGNUM.
10501 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10503 2013-02-19 Jiong Wang <jiwang@tilera.com>
10505 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10506 should be aligned to 64bit.
10508 2013-02-19 Kai Tietz <ktietz@redhat.com>
10510 * windows-nat.c (windows_xfer_memory): Fix debug-output
10513 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10515 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10516 Don't check DSP register number if HAVE_DSP is not set.
10518 2013-02-19 Alan Modra <amodra@gmail.com>
10520 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10521 throughout file instead.
10522 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10523 Don't xmalloc return value.
10524 (build_id_verify): Similarly. Don't xfree.
10525 (build_id_to_debug_filename): Update.
10526 (find_separate_debug_file_by_buildid): Update, don't xfree.
10528 2013-02-18 Tom Tromey <tromey@redhat.com>
10531 * dwarf2read.c (read_subrange_type): Use result of
10534 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10536 * frame.c: Remove one extra white space after #include
10539 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10541 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10543 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10545 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10546 and dir commands into an if block.
10548 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10550 * python/py-breakpoint (struct pybp_code): Use int instead of
10553 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10554 Hafiz Abid Qadeer <abidh@codesourcery.com>
10556 * NEWS: Mention new field "trace-file".
10557 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10558 (tfile_open): Record the trace file's filename in the trace
10560 (tfile_files_info): Mention the name of the trace file.
10561 Check the "filename" field explicitely.
10562 (trace_status_command): Explicitely check "filename" field.
10563 (trace_find_command): Ditto.
10564 (trace_find_pc_command): Ditto.
10565 (trace_find_tracepoint_command): Ditto.
10566 (trace_find_line_command): Ditto.
10567 (trace_find_range_command): Ditto.
10568 (trace_find_outside_command): Ditto.
10569 * tracepoint.h (struct trace_status) <from_file>: Rename it
10570 to "filename" and make it hold the trace file's filename
10571 instead of a boolean.
10572 * remote.c (remote_get_trace_status): Initialize "filename"
10573 field with NULL instead of 0.
10575 2013-02-15 Yao Qi <yao@codesourcery.com>
10577 * remote.c: Fix a typo.
10579 2013-02-14 Pierre Muller <muller@sourceware.org>
10581 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10583 2013-02-14 Pedro Alves <palves@redhat.com>
10585 * utils.c (savestring): Don't #undef it. Move function to
10586 common/common-utils.c.
10587 * common/common-utils.c: Include gdb_string.h.
10588 (savestring): Move here from utils.c.
10589 * common/common-utils.h (savestring): Declare.
10591 2013-02-14 Pedro Alves <palves@redhat.com>
10593 * utils.c (savestring): Rename parameter 'size' to 'len'.
10595 2013-02-14 Pedro Alves <palves@redhat.com>
10596 Yufeng Zhang <yufeng.zhang@arm.com>
10598 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10599 (aarch64_inferior_data, struct aarch64_inferior_data):
10601 (struct aarch64_process_info): New.
10602 (aarch64_process_list): New global.
10603 (aarch64_find_process_pid, aarch64_add_process)
10604 (aarch64_process_info_get): New functions.
10605 (aarch64_inferior_data_get): Delete.
10606 (aarch64_process_info_get): New function.
10607 (aarch64_forget_process): New function.
10608 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10609 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10610 aarch64_get_debug_reg_state.
10611 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10612 instead of linux_nat_iterate_watchpoint_lwps.
10613 (aarch64_linux_new_fork): New function.
10614 (aarch64_linux_child_post_startup_inferior): Use
10615 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10616 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10617 (aarch64_linux_remove_hw_breakpoint)
10618 (aarch64_handle_aligned_watchpoint)
10619 (aarch64_handle_unaligned_watchpoint)
10620 (aarch64_linux_insert_watchpoint)
10621 (aarch64_linux_remove_watchpoint)
10622 (aarch64_linux_stopped_data_address): Adjust to pass the current
10623 process id to aarch64_debug_reg_state.
10624 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10625 linux_nat_new_fork hook, and aarch64_forget_process as
10626 linux_nat_forget_process hook; remove the call to
10627 register_inferior_data_with_cleanup.
10629 2013-02-14 Pedro Alves <palves@redhat.com>
10631 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10632 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10635 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10636 Hafiz Abid Qadeer <abidh@codesourcery.com>
10638 * tracepoint.h (validate_trace_state_variable_name): Declare.
10639 * tracepoint.c (validate_trace_state_variable_name): New.
10640 (trace_variable_command): Parse the trace state variable's name
10641 without using parse_expression. Do several validations.
10642 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10643 trace state variable's name with parse_expression. Validate it.
10645 2013-02-14 Yao Qi <yao@codesourcery.com>
10647 * infcmd.c (breakpoint_proceeded): Remove it.
10649 2013-02-14 Yao Qi <yao@codesourcery.com>
10651 * tracepoint.c (end_actions_pseudocommand): Make it static.
10652 (while_stepping_pseudocommand): Likewise.
10653 * tracepoint.h (end_actions_pseudocommand): Remove the
10655 (while_stepping_pseudocommand): Likewise.
10657 2013-02-14 Yao Qi <yao@codesourcery.com>
10659 * cli/cli-decode.c (help_cmd): Remove the declaration of
10661 (help_all): Likewise.
10663 2013-02-13 Pedro Alves <palves@redhat.com>
10665 * amd64-linux-nat.c (update_debug_registers_callback):
10667 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10669 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10670 i386_debug_reg_state.
10671 (amd64_linux_new_fork): New function.
10672 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10673 linux_nat_new_fork hook, and i386_forget_process as
10674 linux_nat_forget_process hook.
10675 * i386-linux-nat.c (update_debug_registers_callback):
10677 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10679 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10680 i386_debug_reg_state.
10681 (i386_linux_new_fork): New function.
10682 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10683 linux_nat_new_fork hook, and i386_forget_process as
10684 linux_nat_forget_process hook.
10685 * i386-nat.c (i386_init_dregs): Delete.
10686 (i386_inferior_data, struct i386_inferior_data):
10688 (struct i386_process_info): New.
10689 (i386_process_list): New global.
10690 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10692 (i386_inferior_data_get): Delete.
10693 (i386_process_info_get): New function.
10694 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10695 (i386_forget_process): New function.
10696 (i386_cleanup_dregs): Rewrite.
10697 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10698 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10699 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10700 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10701 to i386_debug_reg_state.
10702 (i386_use_watchpoints): Don't register inferior data.
10703 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10705 (i386_forget_process): Declare.
10706 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10707 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10708 New static globals.
10709 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10710 (add_initial_lwp): New, factored out from ...
10711 (add_lwp): ... this. Don't check the number of lwps before
10712 calling linux_nat_new_thread.
10713 (linux_nat_iterate_watchpoint_lwps): Delete.
10714 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10715 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10717 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10719 (linux_nat_kill, linux_nat_mourn_inferior): Call
10720 linux_nat_forget_process.
10721 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10722 (linux_nat_forget_process): New functions.
10723 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10725 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10726 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10728 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10729 (linux_nat_forget_process): New declarations.
10731 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10732 (amd64fbsd_mourn_inferior): New function.
10733 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10734 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10736 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10738 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10741 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10743 * aarch64-linux-nat.c (debug_reg_change_callback)
10744 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10747 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10749 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10752 2013-02-13 Pedro Alves <palves@redhat.com>
10753 Hafiz Abid Qadeer <abidh@codesourcery.com>
10755 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10757 2013-02-12 Tom Tromey <tromey@redhat.com>
10760 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10762 (classify_inner_name): Remove 'first_name' argument, add
10763 'context'. Remove unused variable.
10764 (yylex): Explicitly maintain the context type. Exit loop earlier
10765 if NAME result is seen.
10767 2013-02-12 Pedro Alves <palves@redhat.com>
10769 * amd64-darwin-tdep.c: Add (C) after Copyright.
10770 * cli/cli-cmds.h: Ditto.
10771 * cli/cli-decode.c: Ditto.
10772 * cli/cli-decode.h: Ditto.
10773 * cli/cli-dump.c: Ditto.
10774 * cli/cli-dump.h: Ditto.
10775 * cli/cli-interp.c: Ditto.
10776 * cli/cli-logging.c: Ditto.
10777 * cli/cli-script.c: Ditto.
10778 * cli/cli-script.h: Ditto.
10779 * cli/cli-setshow.c: Ditto.
10780 * cli/cli-setshow.h: Ditto.
10781 * cli/cli-utils.c: Ditto.
10782 * cli/cli-utils.h: Ditto.
10783 * config/alpha/nm-osf3.h: Ditto.
10784 * config/djgpp/djconfig.sh: Ditto.
10785 * config/i386/nm-fbsd.h: Ditto.
10786 * config/i386/nm-i386gnu.h: Ditto.
10787 * config/nm-linux.h: Ditto.
10788 * config/nm-nto.h: Ditto.
10789 * config/rs6000/nm-rs6000.h: Ditto.
10790 * config/sparc/nm-sol2.h: Ditto.
10791 * darwin-nat-info.c: Ditto.
10794 * gdb-demangle.h: Ditto.
10795 * i386-darwin-nat.c: Ditto.
10796 * i386-darwin-tdep.c: Ditto.
10797 * linux-fork.h: Ditto.
10798 * m32c-tdep.c: Ditto.
10799 * microblaze-linux-tdep.c: Ditto.
10800 * microblaze-rom.c: Ditto.
10801 * microblaze-tdep.c: Ditto.
10802 * microblaze-tdep.h: Ditto.
10803 * mips-linux-tdep.h: Ditto.
10804 * ppc-ravenscar-thread.c: Ditto.
10805 * ppc-ravenscar-thread.h: Ditto.
10806 * prologue-value.c: Ditto.
10807 * prologue-value.h: Ditto.
10808 * ravenscar-thread.c: Ditto.
10809 * ravenscar-thread.h: Ditto.
10810 * sparc-ravenscar-thread.c: Ditto.
10811 * sparc-ravenscar-thread.h: Ditto.
10812 * tilegx-linux-tdep.c: Ditto.
10813 * unwind_stop_reasons.def: Ditto.
10814 * windows-nat.h: Ditto.
10815 * xtensa-linux-tdep.c: Ditto.
10816 * xtensa-xtregs.c: Ditto.
10817 * regformats/regdat.sh: Ditto.
10818 * regformats/regdef.h: Ditto.
10820 2013-02-12 Pedro Alves <palves@redhat.com>
10822 * break-catch-sig.c: Update copyright years.
10824 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10826 Add support for a destructor for ui_out data and use it to
10827 provide a ui_out destructor.
10828 * ui-out.h: Declare the new ui_out destructor.
10829 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10830 * ui-out.c (default_data_destroy): Add a default data destructor
10831 which does nothing.
10832 (default_ui_out_impl): Set the new data_destroy field to
10833 default_data_destroy
10834 (uo_data_destroy): Local function which invokes the data
10835 destructor if present.
10836 (clear_table): Local function which clears the table data of a
10838 (ui_out_destroy): Public function which frees a ui_out object.
10839 (ui_out_table_end): Use the new clear_table function.
10840 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10842 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10845 2013-02-11 Doug Evans <dje@google.com>
10847 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10848 (printf_decfloat): New function. Broken out from ui_printf.
10849 Remove unnecessary code to shift the entire format string down.
10850 (printf_pointer): New function.
10851 (ui_printf): Code to print C strings, wide C strings, decfloats,
10852 and pointers moved to separate functions.
10854 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10856 * valops.c (value_assign): Handling bitfield offset in
10857 `lval_internalvar_component' case.
10859 2013-02-08 Doug Evans <dje@google.com>
10861 * common/format.c (parse_format_string): Fix whitespace.
10863 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10865 * stack.c (return_command): Work around uninitialized variable
10868 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10870 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10871 number of the registers from 36 to 34.
10873 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10875 * NEWS: Mention new AArch64 native and target support.
10877 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10879 * MAINTAINERS (Write After Approval): Add myself.
10881 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10882 Marcus Shawcroft <marcus.shawcroft@arm.com>
10883 Nigel Stephens <nigel.stephens@arm.com>
10884 Yufeng Zhang <yufeng.zhang@arm.com>
10886 * aarch64-linux-nat.c: New file.
10887 * config/aarch64/linux.mh: New file.
10888 * configure.host: Add AArch64.
10889 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10891 2013-02-07 Doug Evans <dje@google.com>
10893 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10894 disassemble command.
10896 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10898 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10899 set_gdbarch_fetch_tls_load_module_address.
10901 2013-02-06 David S. Miller <davem@davemloft.net>
10903 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10904 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10905 * value.c (struct_return_convention): New function.
10906 (using_struct_return): Implement in terms of struct_return_convention.
10907 * value.h (struct_return_convention): Declare.
10908 * stack.c (return_command): Allow successful overriding of the return
10909 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10911 2013-02-06 Tom Tromey <tromey@redhat.com>
10913 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10914 outside of TRY_CATCH.
10916 2013-02-06 Yao Qi <yao@codesourcery.com>
10918 * mi/mi-interp.c: Include "tracepoint.h".
10919 (mi_tsv_modified): Declare.
10920 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10921 (mi_interpreter_init): Call observer_attach_tsv_modified.
10922 (mi_tsv_modified): New.
10923 (mi_tsv_created, mi_tsv_deleted): Update.
10924 * tracepoint.c (trace_variable_command): Call
10925 observer_notify_tsv_modified if the initial value of tsv is
10927 (delete_trace_state_variable): Call
10928 observer_notify_tsv_deleted earlier.
10929 (trace_variable_command): Caller update.
10930 (create_tsv_from_upload): Likewise.
10931 * observer.sh: Declare "struct trace_state_variable".
10933 * NEWS: Mention the new MI notification "=tsv-modified".
10935 2013-02-05 Doug Evans <dje@google.com>
10937 * completer.c (location_completer): Fix typo in comment.
10939 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10941 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10944 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10946 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10947 Refactor if statement to avoid trailing || operator.
10949 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10951 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10953 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10955 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10956 * configure.host: Add powerpc*-*-freebsd* target.
10957 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10958 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10959 * config/powerpc/fbsd.mh: New file.
10961 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10962 Denys Vlasenko <dvlasenk@redhat.com>
10963 Pedro Alves <palves@redhat.com>
10965 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10966 (struct elf_internal_linux_prpsinfo): Forward declare.
10967 * gdbarch.h, gdbarch.c: Regenerate.
10968 * linux-tdep.c: Include `cli/cli-utils.h'.
10969 (linux_fill_prpsinfo): New function.
10970 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10971 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10972 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10973 depending on gdbarch pointer bitness.
10974 * ppc-linux-tdep.c: Include elf-bfd.h.
10975 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10978 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10979 Marcus Shawcroft <marcus.shawcroft@arm.com>
10980 Nigel Stephens <nigel.stephens@arm.com>
10981 Yufeng Zhang <yufeng.zhang@arm.com>
10983 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10985 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10986 Marcus Shawcroft <marcus.shawcroft@arm.com>
10987 Nigel Stephens <nigel.stephens@arm.com>
10988 Yufeng Zhang <yufeng.zhang@arm.com>
10990 * aarch64-newlib-tdep.c: New file.
10991 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10993 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10994 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10995 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10996 * osabi.c (gdb_osabi_names): Add "Newlib".
10998 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10999 Marcus Shawcroft <marcus.shawcroft@arm.com>
11000 Nigel Stephens <nigel.stephens@arm.com>
11001 Yufeng Zhang <yufeng.zhang@arm.com>
11003 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11004 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11005 * aarch64-linux-tdep.c: New file.
11006 * aarch64-linux-tdep.h: New file.
11007 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11008 * configure.tgt: Add aarch64-none-linux-gnu.
11010 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11011 Marcus Shawcroft <marcus.shawcroft@arm.com>
11012 Nigel Stephens <nigel.stephens@arm.com>
11013 Yufeng Zhang <yufeng.zhang@arm.com>
11015 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11016 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11017 (ALLDEPFILES): Add aarch64-tdep.c.
11018 * aarch64-tdep.c: New file.
11019 * aarch64-tdep.h: New file.
11020 * configure.tgt: Add AArch64.
11021 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11022 (aarch64-expedite): New definition.
11023 * features/aarch64-core.xml: New file.
11024 * features/aarch64-fpu.xml: New file.
11025 * features/aarch64-without-fpu.c: New file (generated).
11026 * features/aarch64-without-fpu.xml: New file.
11027 * features/aarch64.c: New file (generated).
11028 * features/aarch64.xml: New file.
11029 * regformats/aarch64-without-fpu.dat: New file (generated).
11030 * regformats/aarch64.dat: New file (generated).
11032 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11034 * contrib/expect-read1.c: New file.
11035 * contrib/expect-read1.sh: New file.
11037 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11039 * dwarf2read.c (file_file_name): New function with code from
11041 (file_full_name): Move most of the code to file_file_name.
11042 (macro_start_file): Rename variable full_name to file_name and use
11043 file_file_name for it. Add comp_dir parameter to new_macro_table.
11044 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11045 macro_source_file->filename access by macro_source_fullname call.
11046 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11048 * macrotab.c (struct macro_table): New field comp_dir.
11049 (macro_include): New variables link_fullname and source_fullname.
11050 Replace any macro_source_file->filename access by macro_source_fullname
11052 (macro_lookup_inclusion): Remove the partial filenames checking code.
11053 (check_for_redefinition): New variables source_fullname and
11054 found_key_fullname. Replace any macro_source_file->filename access by
11055 macro_source_fullname call.
11056 (macro_undef): New variables source_fullname and key_fullname. Replace
11057 any macro_source_file->filename access by macro_source_fullname call.
11058 (macro_lookup_definition): New variables retval and source_fullname.
11059 Replace any macro_source_file->filename access by macro_source_fullname
11061 (foreach_macro): New variable key_fullname. Replace any
11062 macro_source_file->filename access by macro_source_fullname call.
11063 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11064 macro_source_file->filename access by macro_source_fullname call.
11065 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11066 (macro_source_fullname): New function.
11067 * macrotab.h (struct macro_source_file): Extent the filename field
11069 (new_macro_table): New parameter comp_dir, add a comment for it.
11070 (macro_source_fullname): new declaration.
11072 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11074 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11075 this_real_name to outer block. Use it also for
11076 compare_filenames_for_search.
11077 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11078 with dw2_get_real_path for file_matcher, considering also
11079 BASENAMES_MAY_DIFFER.
11080 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11082 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11084 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11085 to the file_matcher parameter. Pass 0 to it.
11086 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11087 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11088 NULL psymtab_to_fullname result.
11089 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11090 an expected filename instead.
11091 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11092 file_matcher parameter. Call also psymtab_to_fullname, after newly
11093 considering BASENAMES_MAY_DIFFER.
11094 * source.c (rewrite_source_path): Remove static.
11095 * source.h (rewrite_source_path): New declaration.
11096 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11097 the expand_symtabs_matching field. Comment it.
11098 * symtab.c (file_matches): New function comment. Add parameter
11099 basenames, implement it.
11100 (search_symbols_file_matches): Add basenames parameter. Update the
11101 file_matches caller.
11102 (search_symbols): Match FILES also against symtab_to_fullname.
11103 Optimize it for BASENAMES_MAY_DIFFER.
11105 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11107 * source.c (print_source_lines_base): Print for TUI also "fullname".
11108 * tui/tui-data.c (init_content_element): Change tui_locator_element
11109 field to full_name.
11110 * tui/tui-data.h (struct tui_locator_element): Likewise.
11111 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11112 tui_update_locator_filename calls to tui_update_locator_fullname.
11113 Replace symtab->filename refererence by symtab_to_fullname call.
11114 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11115 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11116 field to full_name. Replace symtab->filename refererence by
11117 symtab_to_fullname call.
11118 (tui_show_symtab_source): Rename parameter to fullname. Change
11119 tui_locator_element field to full_name.
11120 * tui/tui-stack.c: Include source.h.
11121 (tui_set_locator_filename): Rename the declaration to ...
11122 (tui_set_locator_fullname): ... here. Rename its parameter to
11123 fullname, updates its comment.
11124 (tui_set_locator_info): Rename its parameter to fullname.
11125 (tui_set_locator_filename): Rename the definition to ...
11126 (tui_set_locator_fullname): ... here. Rename its parameter to
11127 fullname, updates its comment. Change tui_locator_element field to
11129 (tui_set_locator_info): Rename its parameter to fullname.
11130 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11131 (tui_update_locator_filename): Rename to ...
11132 (tui_update_locator_fullname): ... here. Rename callee to
11133 tui_set_locator_fullname.
11134 (tui_show_frame_info): Replace symtab->filename refererence by
11135 symtab_to_fullname call.
11136 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11137 (tui_update_locator_fullname): ... here.
11138 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11139 tui_update_locator_fullname. Replace symtab->filename refererence by
11140 symtab_to_fullname call.
11141 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11142 Rename the callee to tui_update_locator_fullname.
11143 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11145 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11147 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11148 by symtab_to_filename_for_display calls.
11149 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11150 (clear_command): New variable sal_fullname, initialize it. Replace
11151 compare_filenames_for_search by filename_cmp with sal_fullname.
11152 (say_where, update_static_tracepoint): Replace symtab->filename
11153 refererences by symtab_to_filename_for_display calls.
11154 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11156 * dwarf2read.c: Include source.h.
11157 (fixup_go_packaging): Replace symtab->filename refererences by
11158 symtab_to_filename_for_display calls.
11159 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11160 Replace symtab->filename refererences by symtab_to_filename_for_display
11162 (create_sals_line_offset, convert_linespec_to_sals): New variable
11163 fullname, initialize it, replace symtab->filename reference by the
11165 * linux-fork.c: Include source.h.
11166 (info_checkpoints_command): Replace symtab->filename refererences by
11167 symtab_to_filename_for_display calls.
11168 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11169 by symtab_to_filename_for_display calls.
11170 * mdebugread.c: Include source.h.
11171 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11172 symtab_to_filename_for_display calls.
11173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11174 (mi_cmd_file_list_exec_source_files): Likewise.
11175 * printcmd.c: Include source.h.
11176 (build_address_symbolic): Replace symtab->filename refererences by
11177 symtab_to_filename_for_display calls.
11178 * psymtab.c (partial_map_symtabs_matching_filename)
11179 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11180 with psymtab_to_fullname.
11181 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11182 by symtab_to_filename_for_display calls.
11183 (stpy_get_filename): New variable filename, initialize it, use instead
11184 of symtab->filename refererences.
11185 (salpy_str): Make variable filename const char *. Replace
11186 symtab->filename refererences by symtab_to_filename_for_display calls.
11187 * skip.c: Include source.h and filenames.h.
11188 (skip_file_command): Remove const from the symtab variable. Replace
11189 symtab->filename refererences by symtab_to_fullname call.
11190 (function_name_is_marked_for_skip): New variables searched_for_fullname
11191 and fullname. Use them to search also with symtab's fullname.
11192 * source.c (find_source_lines): Replace symtab->filename refererences
11193 by symtab_to_filename_for_display calls.
11194 (print_source_lines_base): New variable filename, use it instead of
11195 symtab->filename. Replace symtab->filename refererences by
11196 symtab_to_filename_for_display calls.
11197 (line_info, forward_search_command): Replace symtab->filename
11198 refererences by symtab_to_filename_for_display calls.
11199 (reverse_search_command): Replace symtab->filename refererences by
11200 symtab_to_filename_for_display calls. New variable filename for it.
11201 * stack.c (frame_info): Likewise.
11202 * symmisc.c: Include source.h.
11203 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11204 (maintenance_info_symtabs): Replace symtab->filename refererences by
11205 symtab_to_filename_for_display calls.
11206 * symtab.c (iterate_over_some_symtabs): Call
11207 compare_filenames_for_search also with symtab_to_fullname.
11208 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11209 symtab->filename refererences by symtab_to_filename_for_display calls.
11210 (find_line_symtab): Replace symtab->filename refererences by
11211 symtab_to_filename_for_display calls.
11212 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11213 (print_symbol_info): Make the last parameter const char *. New
11214 variable s_filename. Use it in the function.
11215 (symtab_symbol_info): Make the last_filename variable const char *.
11216 Replace symtab->filename refererences by symtab_to_filename_for_display
11218 (rbreak_command): New variable fullname. Use it. Replace
11219 symtab->filename refererence by symtab_to_filename_for_display call.
11220 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11221 (print_one_static_tracepoint_marker): Replace symtab->filename
11222 refererences by symtab_to_filename_for_display calls.
11223 * tui/tui-source.c (tui_set_source_content): New variables filename and
11224 s_filename. Replace symtab->filename refererences by this variable.
11225 Replace other symtab->filename refererences by
11226 symtab_to_filename_for_display calls.
11228 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11229 Jan Kratochvil <jan.kratochvil@redhat.com>
11231 Add a new variable that controls a way in which filenames are
11233 * NEWS (set filename-display): New entry.
11234 * source.c (filename_display_basename, filename_display_relative)
11235 (filename_display_absolute, filename_display_kind_names)
11236 (filename_display_string, show_filename_display_string)
11237 (symtab_to_filename_for_display): New.
11238 (_initialize_source): Added initialization of 'filename-display'
11240 * source.h (symtab_to_filename_for_display): Added declaration.
11241 * stack.c (print_frame): Added new variable and calling of a new
11242 function and condition with this variable. Changed third argument of
11243 calling of a function.
11245 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11247 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11248 Rename field reference filename to fullname.
11249 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11250 fullname. New comment for it.
11251 * tui/tui-source.c (tui_set_source_content): Rename field reference
11252 filename to fullname. Initialize field by symtab_to_fullname now.
11253 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11254 reference filename to fullname. Use symtab_to_fullname during
11257 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11260 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11261 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11262 filename to fullname. Rename variable this_name to this_fullname.
11263 Lowercase FILENAME_CMP call.
11264 (dw2_find_symbol_file): New comment for the returned string.
11265 (dwarf2_gdb_index_functions): Rename the function to
11266 dw2_expand_symtabs_with_fullname.
11267 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11268 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11270 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11271 * symfile.h (struct quick_symbol_functions): Rename field
11272 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11273 parameter filename to fullname. Document returned string meaning for
11275 * symtab.c (find_line_symtab): Rename the called function to
11276 expand_symtabs_with_fullname.
11278 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11281 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11282 call of filename_cmp with compare_filenames_for_search.
11283 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11284 is_abs, unify the call of FILENAME_CMP with
11285 compare_filenames_for_search. New gdb_asserts for real_path and name.
11286 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11287 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11288 * symfile.h (struct quick_symbol_functions): Extend the comment for
11289 map_symtabs_matching_filename.
11290 * symtab.c (compare_filenames_for_search): Remove the function comment
11291 relative path requirement. Handle absolute filenames, with a comment.
11292 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11293 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11294 real_path and name. Unify the call of compare_filenames_for_search
11296 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11298 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11301 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11302 source_file references by symtab field references. Remove variables
11304 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11305 (clear_command, say_where): Replace bp_location field source_file
11306 references by symtab field references.
11307 (bp_location_dtor): Remove the source_file reference.
11308 (update_static_tracepoint): Replace bp_location field source_file
11309 references by symtab field references.
11310 (breakpoint_free_objfile): New function.
11311 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11312 Replace the field source_file by field symtab, extend its comment.
11313 (breakpoint_free_objfile): New declaration.
11314 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11315 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11316 field source_file references by symtab field references.
11318 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11320 Replace xfullpath calls by gdb_realpath calls.
11321 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11323 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11324 Remove it from the iterate_over_some_symtabs call.
11325 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11326 Remove it from the dw2_map_expand_apply calls, remove a block handling
11328 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11329 Remove it from the iterate_over_some_symtabs call.
11330 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11331 Remove it from the partial_map_expand_apply calls, remove a block
11332 handling it. Drop gdb_realpath call and cleanups from the real_path
11334 * source.c (openp): Drop the comment part about xfullpath. Replace
11335 xfullpath calls by gdb_realpath calls.
11336 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11337 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11338 from method map_symtabs_matching_filename and its comment.
11339 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11341 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11342 remove it also from the function comment, remove a block handling it.
11343 Drop gdb_realpath call and cleanups from the real_path handling.
11344 (iterate_over_symtabs): Drop variable full_path and its use.
11345 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11346 * utils.c (xfullpath): Remove.
11347 * utils.h (xfullpath): Remove.
11349 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11351 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11352 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11353 (ALLDEPFILES): Add ppc64-tdep.c.
11354 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11355 ppc64-tdep.o to gdb_target_obs.
11356 * ppc64-tdep.h: New file.
11357 * ppc64-tdep.c: New file.
11358 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11359 ppc-linux-tdep.c to here.
11360 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11361 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11362 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11363 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11364 from ppc-linux-tdep.c to here.
11365 (ppc64_convert_from_func_ptr_addr): Rename from
11366 ppc64_linux_convert_from_func_ptr_addr to
11367 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11370 (read_insn): Move from ppc-linux-tdep.c to here.
11371 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11372 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11373 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11374 Removed above functions.
11375 (ppc_linux_init_abi): Adjust.
11377 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11379 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11381 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11383 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11385 2013-02-01 Pedro Alves <palves@redhat.com>
11387 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11388 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11390 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11392 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11393 files with no separate debug info.
11394 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11395 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11396 only for files with no separate debug info.
11398 2013-01-31 Tom Tromey <tromey@redhat.com>
11400 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11402 (struct jit_program_space_data): Rename from jit_inferior_data.
11404 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11405 Change return type. Attach data to program space.
11406 (jit_program_space_data_cleanup): Rename from
11407 jit_inferior_data_cleanup; change argument type.
11408 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11410 (jit_register_code): Update.
11411 (jit_update_inferior_cache): Remove.
11412 (jit_breakpoint_deleted): Get jit data from the location's program
11414 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11415 'ps_data', change type.
11416 (jit_inferior_init, jit_breakpoint_re_set_internal)
11417 (jit_event_handler): Update.
11418 (free_objfile_data): Get data from objfile's program space.
11419 (_initialize_jit): Update.
11421 2013-01-31 Tom Tromey <tromey@redhat.com>
11424 * jit.c (struct jit_inferior_data) <cached_code_address,
11425 jit_breakpoint>: New fields.
11426 (jit_breakpoint_re_set_internal): Fix logging. Only create
11427 breakpoint if cached address has changed.
11428 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11430 (_initialize_jit): Register breakpoint deleted observer.
11432 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11434 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11435 (save_infcall_suspend_state): Ifdef out unused inf.
11436 (restore_infcall_suspend_state): Ifdef out unused inf.
11437 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11438 (jit_frame_sniffer): Remove unused inf_data.
11440 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11442 * c-exp.y (classify_inner_name): Remove unused type.
11443 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11444 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11446 (c_get_string): Remove unused kind.
11447 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11449 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11451 * charset.c (intermediate_encoding): Remove unused i.
11452 * completer.c (signal_completer): Remove unused i.
11453 * continuations.c (discard_my_continuations_1): Remove unused
11455 * corelow.c (core_close): Remove unuseD name.
11456 (get_core_siginfo): Remove unused pid.
11457 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11459 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11460 (loclist_describe_location): Remove unused first.
11461 * event-top.c (command_line_handler): Remove unused got_eof.
11462 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11463 (resize_section_table): Remove unused old_value.
11464 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11465 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11466 * i386-tdep.c (i386_process_record): Remove unused rex.
11467 * infcmd.c (get_return_value): Remove unused uiout.
11468 * jv-lang.c (type_from_class): Remove unused is_array.
11469 * jv-valprint.c (java_val_print): Remove unused i.
11470 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11471 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11472 * m2-typeprint.c (m2_print_type): Remove unused code.
11473 * macroexp.c (get_character_constant): Remove unused body_start.
11474 (macro_stringify): Remove unused result.
11475 * objc-lang.c (find_methods): Remove unused gdbarch.
11476 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11477 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11478 * stack.c (print_frame_args): Remove unused summary.
11479 * thread.c (thread_apply_command): Remove unused p.
11480 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11481 * valops.c (search_struct_method): Remove unused skip.
11482 * valprint.c (generic_val_print): Remove unused byte_order.
11483 * varobj.c (varobj_update): Remove unused changed.
11484 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11485 (alias_command): Remove unused c.
11486 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11487 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11489 (mi_cmd_data_write_memory): Remove unused word_format.
11490 (mi_cmd_data_write_memory_bytes): Remove unused r.
11491 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11493 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11494 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11497 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11499 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11500 * symtab.c (iterate_over_symtabs): Remove unused s.
11501 (find_pc_sect_symtab): Remove unused pspAce.
11502 (find_pc_sect_line): Remove unused alt_symtab.
11503 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11504 (completion_list_add_name): Remove unused newsize.
11506 2013-01-31 Tom Tromey <tromey@redhat.com>
11509 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11512 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11514 * target.c (target_read_string): Remove unused origlen.
11516 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11518 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11519 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11520 * ax-general.c (ax_print): Remove unused is_float.
11521 * blockframe.c (block_innermost_frame): Remove unused start, end.
11522 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11524 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11526 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11527 (svr4_read_so_list): Remove unused lmo.
11528 * solib-target.c (solib_target_relocate_section_addresses): Remove
11531 2013-01-30 Tom Tromey <tromey@redhat.com>
11533 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11535 2013-01-30 Tom Tromey <tromey@redhat.com>
11537 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11538 * utils.c (gnu_debuglink_crc32): Remove.
11539 * utils.h (gnu_debuglink_crc32): Don't declare.
11541 2013-01-30 Tom Tromey <tromey@redhat.com>
11543 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11544 (read_structure_type, read_enumeration_type): Remove cast.
11546 2013-01-30 Tom Tromey <tromey@redhat.com>
11548 * dwarf2read.c (read_namespace_type): Remove cast.
11549 (read_typedef): Likewise.
11551 2013-01-29 Tom Tromey <tromey@redhat.com>
11553 * dwarf2read.c (free_dwo_file): Remove assert.
11555 2013-01-29 Tom Tromey <tromey@redhat.com>
11557 * value.c (deprecated_set_value_modifiable): Remove.
11558 * value.h (deprecated_set_value_modifiable): Remove.
11560 2013-01-28 Doug Evans <dje@google.com>
11562 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11563 to addresses from dwo files.
11565 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11567 * valops.c (find_overload_match): Remove unused argument 'lax'.
11568 * value.h: Remove unused argument 'lax' from the declaration of
11569 find_overload_match.
11570 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11571 to find_overload_match.
11572 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11573 argument to find_overload_match.
11575 2013-01-25 Tom Tromey <tromey@redhat.com>
11577 * dwarf2read.c (processing_has_namespace_info): Remove.
11578 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11579 (process_die, read_func_scope, dwarf2_start_symtab)
11580 (new_symbol_full): Update.
11582 2013-01-25 Tom Tromey <tromey@redhat.com>
11584 * cp-namespace.c (cp_set_block_scope): Remove.
11585 * cp-support.h (cp_set_block_scope): Remove.
11586 * dbxread.c: Include block.h.
11587 (cp_set_block_scope): New function.
11588 (process_one_symbol): Update.
11589 * dwarf2read.c (read_func_scope): Use block_set_scope.
11591 2013-01-25 Pedro Alves <palves@redhat.com>
11593 * remote.c (add_current_inferior_and_thread): Tweak comment.
11595 2013-01-25 Tom Tromey <tromey@redhat.com>
11597 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11598 (cp_add_using_directive): Add 'copy_names' argument.
11599 * cp-support.h (cp_add_using_directive): Update.
11600 (struct using_direct) <import_src, import_dest, alias,
11601 declaration>: Now const.
11602 * dwarf2read.c (read_import_statement): Use obconcat.
11603 Don't copy names passed to cp_add_using_directive.
11605 2013-01-25 Tom Tromey <tromey@redhat.com>
11607 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11609 2013-01-25 Pedro Alves <palves@redhat.com>
11611 * remote.c (stop_reply_extract_thread): New.
11612 (add_current_inferior_and_thread): New parameter 'wait_status'.
11614 (remote_start_remote): Pass wait status to
11615 add_current_inferior_and_thread.
11616 (extended_remote_run): Update comment.
11617 (extended_remote_create_inferior_1): Pass wait status to
11618 add_current_inferior_and_thread.
11620 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11621 Ulrich Weigand <uweigand@de.ibm.com>
11623 * valarith.c (value_vector_widen): New function for replicating a
11624 scalar into a vector.
11625 (value_binop): Use value_vector_widen to widen scalar to vector
11626 rather than casting, this better matches gcc C behaviour.
11627 * valops.c (value_casst): Update logic for casting between vector
11628 types, and for casting from scalar to vector, try to match gcc C
11630 * value.h (value_vector_widen): Declare.
11631 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11632 function, handle special case for casting scalar to vector.
11633 (opencl_relop): Use opencl_value_cast.
11634 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11635 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11636 in order to use opencl_value_cast.
11638 2013-01-25 Yao Qi <yao@codesourcery.com>
11640 * event-loop.c: Include "queue.h".
11641 (gdb_event_p): New typedef.
11642 (DECLARE_QUEUE_P): Use.
11643 (DEFINE_QUEUE_P): Use.
11644 (async_queue_event): Remove.
11645 (gdb_event_xfree): New.
11646 (initialize_event_loop): New.
11647 (process_event): Use QUEUE macros.
11648 (event_queue): Remove.
11649 (gdb_wait_for_event): Caller update.
11650 (check_async_event_handlers): Likewise.
11651 (poll_timers): Likewise.
11652 * event-loop.h (initialize_event_loop): Declare.
11653 * event-loop.c (gdb_event_xfree): New.
11654 * top.c (gdb_init): Call initialize_event_loop.
11656 2013-01-25 Yao Qi <yao@codesourcery.com>
11658 * event-loop.c (async_queue_event): Remove one parameter
11659 'position'. Remove code handling 'position' == TAIL.
11660 (gdb_wait_for_event): Caller update.
11661 (check_async_event_handlers): Caller update.
11662 (poll_timers): Caller update.
11663 * event-loop.h (enum queue_position): Remove.
11665 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11667 * MAINTAINERS: Update my email.
11669 2013-01-25 Yao Qi <yao@codesourcery.com>
11671 * main.c (print_gdb_help): Remove "--epoch" from the help
11674 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
11676 * symtab.c (skip_prologue_using_sal): Consider a file
11677 change the same as an increased line number
11679 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11681 * MAINTAINERS (Write After Approval): Add myself to the list.
11683 2013-01-24 Tom Tromey <tromey@redhat.com>
11685 * ada-lang.h (ada_decode_symbol): Make return type const.
11686 * ada-lang.c (ada_decode_symbol): Likewise.
11688 2013-01-23 Doug Evans <dje@google.com>
11690 * linespec.c (find_linespec_symbols): Make static.
11692 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11694 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11695 type on float conversion for complex type.
11697 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11699 Add a new class gdb.Architecture which exposes GDB's
11700 internal representation of architecture via GDB Python API.
11701 * Makefile.in: Add entries corresponding to the new file
11703 * NEWS (Python Scripting): Add entries for the new class
11704 gdb.Architecture and the new method gdb.Frame.architecture.
11705 * python/py-arch.c: Implement gdb.Architecture class.
11706 * python/py-frame.c (frapy_arch): Implement the method
11707 gdb.Frame.architecture().
11708 (frame_object_methods): Add 'architecture' to the method table.
11709 * python/python-internal.h: Add declarations of new utility
11711 * python/python.c (_initialize_python): Initialize
11712 gdb.Architecture class.
11714 2013-01-23 Doug Evans <dje@google.com>
11716 Work around binutils/15021.
11717 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11718 type_unit_group out of union s. All uses updated.
11719 (read_index_from_section): Watch for index version 8.
11720 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11721 an imported symtab.
11722 (write_psymtabs_to_index): Increment version number to 8.
11724 2013-01-22 Pedro Alves <palves@redhat.com>
11726 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11729 2013-01-22 Pedro Alves <palves@redhat.com>
11731 * annotate.c (annotate_breakpoints_changed): Rename to ...
11732 (annotate_breakpoints_invalid): ... this. Make static.
11733 (breakpoint_changed): Adjust.
11734 (_initialize_annotate): Always install the observers. Install a
11735 "breakpoint_created" observer.
11736 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11737 * breakpoint.c (set_breakpoint_condition)
11738 (breakpoint_set_commands, do_map_commands_command)
11739 (init_raw_breakpoint, clear_command, set_ignore_count)
11740 (enable_breakpoint_disp): No longer call
11741 annotate_breakpoints_changed.
11743 2013-01-22 Pedro Alves <palves@redhat.com>
11745 * annotate.c: Include "inferior.h".
11746 (frames_invalid_emitted)
11747 (breakpoints_invalid_emitted): New globals.
11748 (async_background_execution_p): New function.
11749 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11750 emitting the annotation if it has already been emitted.
11751 (annotate_display_prompt): New function.
11752 * annotate.h (annotate_display_prompt): New declaration.
11753 * event-top.c: Include annotate.h.
11754 (display_gdb_prompt): Call annotate_display_prompt.
11756 2013-01-22 Pedro Alves <palves@redhat.com>
11758 * annotate.c (ignore_count_changed): Delete.
11759 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11760 (annotate_ignore_count_change): Delete.
11761 (annotate_stopped): Don't emit a delayed breakpoints-changed
11763 * annotate.h (annotate_ignore_count_change): Delete.
11764 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11765 annotate_ignore_count_change.
11767 2013-01-22 Tom Tromey <tromey@redhat.com>
11769 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11770 require_rvalue for a register location.
11772 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11774 * breakpoint.c (print_one_breakpoint_location): Add MI
11775 field 'thread-groups' when printing a breakpoint.
11776 (output_thread_groups): New function.
11778 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11780 * python/lib/gdb/commands/explore.py
11781 (CompoundExplorer.explore_expr): Correct the name of a method
11783 (ExploreTypeCommand.invoke): Add a missing 'return'.
11785 2013-01-21 Tom Tromey <tromey@redhat.com>
11787 * gdb_obstack.h (obconcat): Move declaration here, from...
11788 * symfile.h (obconcat): ... here.
11789 * gdb_obstack.c: New file.
11790 (obconcat): Move from...
11791 * symfile.c (obconcat): ... here.
11792 * Makefile.in (SFILES): Add gdb_obstack.c.
11793 (COMMON_OBS): Add gdb_obstack.o.
11795 2013-01-21 Tom Tromey <tromey@redhat.com>
11797 * symfile.h (obsavestring): Don't declare.
11798 * symfile.c (obsavestring): Remove.
11799 * ada-exp.y: Use obstack_copy0, not obsavestring.
11800 * ada-lang.c: Use obstack_copy0, not obsavestring.
11801 * coffread.c: Use obstack_copy0, not obsavestring.
11802 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11803 * dbxread.c: Use obstack_copy0, not obsavestring.
11804 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11805 * jit.c: Use obstack_copy0, not obsavestring.
11806 * mdebugread.c: Use obstack_copy0, not obsavestring.
11807 * psymtab.c: Use obstack_copy0, not obsavestring.
11808 * stabsread.c: Use obstack_copy0, not obsavestring.
11809 * xcoffread.c: Use obstack_copy0, not obsavestring.
11811 2013-01-21 Tom Tromey <tromey@redhat.com>
11813 * dwarf2read.c (fixup_go_packaging): Save package name
11814 on objfile obstack.
11815 * gdbtypes.c (init_type): Don't copy name.
11817 2013-01-21 Tom Tromey <tromey@redhat.com>
11819 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11821 (struct attribute) <u.str>: Now const.
11822 (struct fnfieldlist) <name>: Now const.
11823 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11824 (partial_die_parent_scope): Make return type const.
11825 (partial_die_full_name, add_partial_symbol): Update.
11826 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11828 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11829 (read_file_scope, read_func_scope, dwarf2_add_field)
11830 (dwarf2_add_member_fn, read_structure_type)
11831 (process_enumeration_scope, read_array_type, read_module_type)
11832 (read_base_type, read_subrange_type): Update.
11833 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11834 (new_symbol_full, guess_full_die_structure_name): Update.
11835 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11836 (dwarf2_name): Return const type.
11837 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11840 2013-01-21 Tom Tromey <tromey@redhat.com>
11842 * gdbtypes.c (init_type): Make 'name' const.
11843 * gdbtypes.h (init_type): Update.
11845 2013-01-21 Tom Tromey <tromey@redhat.com>
11847 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11848 (start_symtab): Make 'name' and 'dirname' const. Use
11849 set_last_source_file.
11850 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11851 (last_source_file): Define. Now static.
11852 (set_last_source_file, get_last_source_file): New functions.
11853 * buildsym.h (last_source_file): Don't declare.
11854 (start_symtab): Update.
11855 (set_last_source_file, get_last_source_file): Declare.
11856 * coffread.c (complete_symtab): Use set_last_source_file.
11857 (coff_end_symtab): Likewise.
11858 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11859 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11860 set_last_source_file.
11861 (process_one_symbol): Use get_last_source_file.
11862 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11863 (psymtab_to_symtab_1): Use get_last_source_file.
11864 * xcoffread.c (process_linenos): Use get_last_source_file.
11865 (complete_symtab): Use set_last_source_file.
11866 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11867 (scan_xcoff_symtab): Use set_last_source_file.
11869 2013-01-21 Tom Tromey <tromey@redhat.com>
11871 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11872 (symbol_set_names): Remove casts. Handle field const-ness.
11874 2013-01-21 Tom Tromey <tromey@redhat.com>
11876 * dwarf2read.c (new_symbol_full): Remove cast.
11877 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11878 * symtab.h (symbol_set_demangled_name): Update.
11880 2013-01-21 Tom Tromey <tromey@redhat.com>
11882 * main.c (captured_main): Call bfd_init.
11884 2013-01-21 Tom Tromey <tromey@redhat.com>
11886 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11887 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11888 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11891 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11893 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11895 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11897 Fix gdb.fortran/common-block.exp crash in PIE mode.
11898 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11900 * f-valprint.c (info_common_command_for_block): Expect
11901 LOC_COMMON_BLOCK in gdb_assert.
11902 * symtab.h (struct general_symbol_info): Update comment for the
11903 common_block member.
11904 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11905 (enum address_class): New member LOC_COMMON_BLOCK.
11907 2013-01-18 David Blaikie <dblaikie@gmail.com>
11909 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11911 2013-01-18 Tom Tromey <tromey@redhat.com>
11914 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11915 Call require_rvalue.
11917 2013-01-18 Yao Qi <yao@codesourcery.com>
11919 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11920 (dbx_read_symtab): New declaration.
11921 (dbx_psymtab_to_symtab): Delete.
11922 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11923 Rename parameter PST to SELF. Exchanged two parameters.
11924 (start_psymtab): Caller update.
11925 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11926 (dwarf2_read_symtab): New declaration.
11927 (dwarf2_psymtab_to_symtab): Delete.
11928 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11929 Rename parameter PST to SELF. Exchanged two parameters.
11930 (create_partial_symtab): Caller update.
11931 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11932 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11933 Rename parameter PST to SELF. Exchanged two parameters.
11934 (parse_partial_symbols, new_psymtab): Caller update.
11935 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11937 * psymtab.c (psymtab_to_symtab): Caller update.
11938 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11939 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11940 Rename parameter PST to SELF. Exchanged two parameters.
11941 (xcoff_start_psymtab): Caller update.
11943 2013-01-18 Yao Qi <yao@codesourcery.com>
11945 * infrun.c (proceed): Rename local variable 'oneproc' to
11948 2013-01-17 Doug Evans <dje@google.com>
11950 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11951 (dw2_build_type_unit_groups): Delete. All uses updated.
11953 * symtab.h (struct symbol_search): Add comment.
11955 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11957 * symtab.c (compare_filenames_for_search): New comment for
11960 2013-01-17 Tom Tromey <tromey@redhat.com>
11962 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11964 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11966 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11967 initialize it by existing make_cleanup. Call new do_cleanups.
11969 2013-01-17 Tom Tromey <tromey@redhat.com>
11971 * cp-abi.c (cp_abi_completer): New function.
11972 (_initialize_cp_abi): Set completer for "set cp-abi".
11974 2013-01-17 Tom Tromey <tromey@redhat.com>
11976 * mem-break.c: Remove obsolete comment.
11977 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11979 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11981 * jit.c (jit_reader_load_command): Interpret the jit reader name
11982 as an absolute path if it begins with a forward slash.
11984 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11988 * jit.c (finalize_symtab): Ensure that only the global block has a
11991 2013-01-17 Pedro Alves <palves@redhat.com>
11993 * acinclude.m4: Include ../config/plugins.m4,
11994 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11995 * Makefile.in (aclocal_m4_deps): Update.
11996 * aclocal.m4: Renegerate.
11998 2013-01-16 Doug Evans <dje@google.com>
12000 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12002 2013-01-16 Pedro Alves <palves@redhat.com>
12003 Tom Tromey <tromey@redhat.com>
12006 * NEWS: Add "catch signal".
12007 * breakpoint.c (base_breakpoint_ops): No longer static.
12008 (bpstat_explains_signal): New function.
12009 (init_catchpoint): No longer static.
12010 (base_breakpoint_explains_signal): New function.
12011 (base_breakpoint_ops): Initialize new field.
12012 * breakpoint.h (enum bpstat_signal_value): New.
12013 (struct breakpoint_ops) <explains_signal>: New field.
12014 (bpstat_explains_signal): Remove macro, declare as function.
12015 (base_breakpoint_ops, init_catchpoint): Declare.
12016 * break-catch-sig.c: New file.
12017 * inferior.h (signal_catch_update): Declare.
12018 * infrun.c (signal_catch): New global.
12019 (handle_syscall_event): Update for change to
12020 bpstat_explains_signal.
12021 (handle_inferior_event): Likewise. Always handle random signals
12023 (signal_cache_update): Check signal_catch.
12024 (signal_catch_update): New function.
12025 (_initialize_infrun): Initialize signal_catch.
12026 * Makefile.in (SFILES): Add break-catch-sig.c.
12027 (COMMON_OBS): Add break-catch-sig.o.
12029 2013-01-16 Tom Tromey <tromey@redhat.com>
12031 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12032 (print_one_catch_solib, print_one_catch_syscall)
12033 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12036 2013-01-16 Yao Qi <yao@codesourcery.com>
12038 * printcmd.c (current_display_number): Make it static.
12040 2013-01-16 Yao Qi <yao@codesourcery.com>
12042 * infcmd.c (step_once): Don't check '!single_inst' as it was
12045 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12047 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12049 2013-01-14 Tom Tromey <tromey@redhat.com>
12051 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12053 * command.h (add_setshow_string_noescape_cmd): Update.
12054 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12055 (complete_set_gnutarget): New function.
12056 (_initialize_core): Set the "set gnutarget" completer.
12058 2013-01-14 Tom Tromey <tromey@redhat.com>
12061 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12062 (c_type_print_modifier): Likewise.
12063 * dwarf2read.c (read_tag_restrict_type): New function.
12064 (read_type_die_1): Handle DW_TAG_restrict_type.
12065 * gdbtypes.c (make_restrict_type): New function.
12066 (recursive_dump_type): Handle TYPE_RESTRICT.
12067 * gdbtypes.h (enum type_flag_values): Renumber.
12068 (enum type_instance_flag_value): Add
12069 TYPE_INSTANCE_FLAG_RESTRICT.
12070 (TYPE_RESTRICT): New macro.
12071 (make_restrict_type): Declare.
12073 2013-01-14 Tom Tromey <tromey@redhat.com>
12076 * psymtab.c (struct psymtab_state): New.
12077 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12079 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12080 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12082 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12083 Pedro Alves <palves@redhat.com>
12087 * remote.c (remote_threads_info): Make a copy of the reply from
12088 qfThreadInfo and use that instead of rs->buf.
12090 2013-01-14 Yao Qi <yao@codesourcery.com>
12092 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12093 (dbx_psymtab_to_symtab): Likewise.
12094 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12095 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12096 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12098 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12100 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12101 make_cleanup_restore_current_language. Call set_language. Move
12102 OLD_CHAIN and INNER_CHAIN cleanups.
12103 * utils.c (do_restore_current_language)
12104 (make_cleanup_restore_current_language): New functions.
12105 * utils.h (make_cleanup_restore_current_language): New declaration.
12107 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12109 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12110 non-existing files.
12112 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12113 non-existing files if FILENAME is already absolute.
12115 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12117 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12118 fputs_filtered. Append trailing newline.
12120 2013-01-11 Yao Qi <yao@codesourcery.com>
12121 Stan Shebs <stan@codesourcery.com>
12123 * psymtab.c (init_psymbol_list): Clarify the comment.
12125 2013-01-11 Yao Qi <yao@codesourcery.com>
12127 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12128 (update_dprintf_command_list): Assert that 'printf_line' is
12129 non-null. Remove condition check.
12131 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12134 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12136 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12138 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12140 2013-01-09 Anthony Green <green@moxielogic.com>
12142 * cp-abi.c (cplus_print_vtable): Don't return value from void
12144 * ada-lang.c (re_set_catch_assert): Ditto.
12146 2013-01-09 Doug Evans <dje@google.com>
12148 * symfile.h (quick_symbol_functions): Delete member
12149 pre_expand_symtabs_matching. All uses removed.
12150 * dwarf2read.c (dw2_lookup_symbol): Implement.
12151 (dw2_do_expand_symtabs_matching): Delete.
12152 (dw2_pre_expand_symtabs_matching): Delete.
12153 (struct dw2_symtab_iterator): New type.
12154 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12155 (dw2_expand_symtabs_for_function): Rewrite.
12156 (dwarf2_gdb_index_functions): Update.
12157 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12158 (psym_functions): Update.
12160 2013-01-09 Tom Tromey <tromey@redhat.com>
12162 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12163 * configure: Rebuild.
12164 * configure.ac: Add somread.o to the build if BFD has SOM
12166 * somread.c: Include som/aout.h, not syms.h.
12167 (som_symtab_read): Use som_external_symbol_dictionary_record.
12168 Unpack records manually.
12169 (_initialize_somread): Declare.
12171 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12173 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12174 Cast return_address to 64bits.
12176 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12178 * printcmd.c: Remove define of function output_command.
12179 * tracepoint.c: Remove extern of function output_command.
12180 * valprint.h: (output_command): New extern.
12182 2013-01-07 Tom Tromey <tromey@redhat.com>
12184 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12186 (objc_language_defn): Use c_printchar, c_printstr,
12189 2013-01-07 Tom Tromey <tromey@redhat.com>
12193 * ada-valprint.c (printstr, print_field_values): Remove
12195 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12197 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12199 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12200 * main.c (captured_main): Remove "epoch" argument.
12201 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12202 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12203 * p-valprint.c (pascal_object_print_value_fields): Remove
12205 * printcmd.c (print_command_1): Remove 'inspect' argument.
12206 (print_command, call_command): Update.
12207 (inspect_command): Remove.
12208 (_initialize_printcmd): Make "inspect" an alias for "print".
12209 * top.c (epoch_interface): Remove.
12210 * top.h (epoch_interface): Remove.
12211 * valprint.c (user_print_options): Update.
12212 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12213 * valprint.h (struct value_print_options) <inspect_it>: Remove
12216 2013-01-04 Tom Tromey <tromey@redhat.com>
12218 * valprint.h (read_string): Add 'extern'.
12220 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12222 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12223 used to decide whether to define darwin_read_dyld_info or not.
12225 2013-01-03 Pierre Muller <muller@sourceware.org>
12227 * main.c (relocate_gdb_directory): Avoid calling stat function
12230 2013-01-03 Yao Qi <yao@codesourcery.com>
12232 * psymtab.c (fixup_psymbol_section): Update declaration.
12233 (fixup_psymbol_section): Remove code returning value.
12235 2013-01-03 Yao Qi <yao@codesourcery.com>
12237 * symtab.h: Remove some out of date comments.
12238 (enum exception_event_kind): Move it ...
12239 * breakpoint.c: ... here.
12241 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12244 * darwin-nat.c (darwin_read_dyld_info): Only build if
12245 TASK_DYLD_INFO_COUNT is defined.
12246 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12247 TASK_DYLD_INFO_COUNT is defined.
12249 2013-01-02 Tom Tromey <tromey@redhat.com>
12251 * symfile.h (struct ecoff_debug_hack): Remove.
12252 * objfiles.c: Don't include mdebugread.h.
12254 2013-01-02 Tom Tromey <tromey@redhat.com>
12256 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12257 * configure.ac: Check for Mach-O support in BFD. Update
12259 * configure: Rebuild.
12261 2013-01-02 Tom Tromey <tromey@redhat.com>
12263 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12264 * configure.ac: Use GDB_AC_CHECK_BFD.
12265 * configure: Rebuild.
12267 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12269 * MAINTAINERS: Update my email.
12271 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12273 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12275 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12277 * rs6000-nat.c (bss_data_overlap): New function.
12278 (vmap_symtab): Use it to adjust the .bss section's offset.
12280 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12282 Update year range in copyright notice of all files.
12284 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12286 * top.c (print_gdb_version): Update copyright year.
12288 For older changes see ChangeLog-2012.
12294 version-control: never