stdlib.h is universal too
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0080a2f6
TT
12013-11-18 Tom Tromey <tromey@redhat.com>
2
3 * configure: Rebuild.
4 * configure.ac: Don't check for stdlib.h
5 * defs.h: Include stdlib.h unconditionally.
6
161d1bec
TT
72013-11-18 Tom Tromey <tromey@redhat.com>
8
9 * config.in: Rebuild.
10 * configure: Rebuild.
11 * configure.ac: Don't check for stddef.h.
12 * defs.h: Unconditionally include stddef.h. Remove duplicate
13 inclusion.
14
2978b111
TT
152013-11-18 Tom Tromey <tromey@redhat.com>
16
17 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
18 * common/gdb_dirent.h: Remove.
19 * common/filestuff.c: Use dirent.h.
20 * common/linux-osdata.c: Use dirent.h.
21 (NAMELEN): Define.
22 * config.in: Rebuild.
23 * configure: Rebuild.
24 * configure.ac: Don't use AC_HEADER_DIRENT.
25 * linux-fork.c: Use dirent.h
26 * linux-nat.c: Use dirent.h.
27 * nto-procfs.c: Use dirent.h.
28 * procfs.c: Use dirent.h.
29
e26b6bb0
TT
302013-11-18 Tom Tromey <tromey@redhat.com>
31
32 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
33 * gnulib/aclocal.m4: Update.
34 * gnulib/config.in: Update.
35 * gnulib/configure: Update.
36 * gnulib/import/Makefile.am: Update.
37 * gnulib/import/Makefile.in: Update.
38 * gnulib/import/dirent.in.h: New.
39 * gnulib/import/m4/dirent_h.m4: New.
40 * gnulib/import/m4/gnulib-cache.m4: Update.
41 * gnulib/import/m4/gnulib-comp.m4: Update.
42
a3d08894
TT
432013-11-18 Tom Tromey <tromey@redhat.com>
44
45 * configure: Rebuild.
46 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
47 strings.h.
48
0e9f083f
TT
492013-11-18 Tom Tromey <tromey@redhat.com>
50
51 * common/gdb_string.h: Remove.
52 * aarch64-tdep.c: Use string.h, not gdb_string.h.
53 * ada-exp.y: Use string.h, not gdb_string.h.
54 * ada-lang.c: Use string.h, not gdb_string.h.
55 * ada-lex.l: Use string.h, not gdb_string.h.
56 * ada-typeprint.c: Use string.h, not gdb_string.h.
57 * ada-valprint.c: Use string.h, not gdb_string.h.
58 * aix-thread.c: Use string.h, not gdb_string.h.
59 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
60 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
61 * alpha-nat.c: Use string.h, not gdb_string.h.
62 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
63 * alpha-tdep.c: Use string.h, not gdb_string.h.
64 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
65 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
66 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
67 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
68 * amd64-nat.c: Use string.h, not gdb_string.h.
69 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
70 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
71 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
72 * arch-utils.c: Use string.h, not gdb_string.h.
73 * arm-linux-nat.c: Use string.h, not gdb_string.h.
74 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
75 * arm-tdep.c: Use string.h, not gdb_string.h.
76 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
77 * armbsd-tdep.c: Use string.h, not gdb_string.h.
78 * armnbsd-nat.c: Use string.h, not gdb_string.h.
79 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
80 * armobsd-tdep.c: Use string.h, not gdb_string.h.
81 * avr-tdep.c: Use string.h, not gdb_string.h.
82 * ax-gdb.c: Use string.h, not gdb_string.h.
83 * ax-general.c: Use string.h, not gdb_string.h.
84 * bcache.c: Use string.h, not gdb_string.h.
85 * bfin-tdep.c: Use string.h, not gdb_string.h.
86 * breakpoint.c: Use string.h, not gdb_string.h.
87 * build-id.c: Use string.h, not gdb_string.h.
88 * buildsym.c: Use string.h, not gdb_string.h.
89 * c-exp.y: Use string.h, not gdb_string.h.
90 * c-lang.c: Use string.h, not gdb_string.h.
91 * c-typeprint.c: Use string.h, not gdb_string.h.
92 * c-valprint.c: Use string.h, not gdb_string.h.
93 * charset.c: Use string.h, not gdb_string.h.
94 * cli-out.c: Use string.h, not gdb_string.h.
95 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
96 * cli/cli-decode.c: Use string.h, not gdb_string.h.
97 * cli/cli-dump.c: Use string.h, not gdb_string.h.
98 * cli/cli-interp.c: Use string.h, not gdb_string.h.
99 * cli/cli-logging.c: Use string.h, not gdb_string.h.
100 * cli/cli-script.c: Use string.h, not gdb_string.h.
101 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
102 * cli/cli-utils.c: Use string.h, not gdb_string.h.
103 * coffread.c: Use string.h, not gdb_string.h.
104 * common/common-utils.c: Use string.h, not gdb_string.h.
105 * common/filestuff.c: Use string.h, not gdb_string.h.
106 * common/linux-procfs.c: Use string.h, not gdb_string.h.
107 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
108 * common/signals.c: Use string.h, not gdb_string.h.
109 * common/vec.h: Use string.h, not gdb_string.h.
110 * core-regset.c: Use string.h, not gdb_string.h.
111 * corefile.c: Use string.h, not gdb_string.h.
112 * corelow.c: Use string.h, not gdb_string.h.
113 * cp-abi.c: Use string.h, not gdb_string.h.
114 * cp-support.c: Use string.h, not gdb_string.h.
115 * cp-valprint.c: Use string.h, not gdb_string.h.
116 * cris-tdep.c: Use string.h, not gdb_string.h.
117 * d-lang.c: Use string.h, not gdb_string.h.
118 * dbxread.c: Use string.h, not gdb_string.h.
119 * dcache.c: Use string.h, not gdb_string.h.
120 * demangle.c: Use string.h, not gdb_string.h.
121 * dicos-tdep.c: Use string.h, not gdb_string.h.
122 * disasm.c: Use string.h, not gdb_string.h.
123 * doublest.c: Use string.h, not gdb_string.h.
124 * dsrec.c: Use string.h, not gdb_string.h.
125 * dummy-frame.c: Use string.h, not gdb_string.h.
126 * dwarf2-frame.c: Use string.h, not gdb_string.h.
127 * dwarf2loc.c: Use string.h, not gdb_string.h.
128 * dwarf2read.c: Use string.h, not gdb_string.h.
129 * elfread.c: Use string.h, not gdb_string.h.
130 * environ.c: Use string.h, not gdb_string.h.
131 * eval.c: Use string.h, not gdb_string.h.
132 * event-loop.c: Use string.h, not gdb_string.h.
133 * exceptions.c: Use string.h, not gdb_string.h.
134 * exec.c: Use string.h, not gdb_string.h.
135 * expprint.c: Use string.h, not gdb_string.h.
136 * f-exp.y: Use string.h, not gdb_string.h.
137 * f-lang.c: Use string.h, not gdb_string.h.
138 * f-typeprint.c: Use string.h, not gdb_string.h.
139 * f-valprint.c: Use string.h, not gdb_string.h.
140 * fbsd-nat.c: Use string.h, not gdb_string.h.
141 * findcmd.c: Use string.h, not gdb_string.h.
142 * findvar.c: Use string.h, not gdb_string.h.
143 * fork-child.c: Use string.h, not gdb_string.h.
144 * frame.c: Use string.h, not gdb_string.h.
145 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
146 * frv-tdep.c: Use string.h, not gdb_string.h.
147 * gdb.c: Use string.h, not gdb_string.h.
148 * gdb_bfd.c: Use string.h, not gdb_string.h.
149 * gdbarch.c: Use string.h, not gdb_string.h.
150 * gdbtypes.c: Use string.h, not gdb_string.h.
151 * gnu-nat.c: Use string.h, not gdb_string.h.
152 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
153 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
154 * go-exp.y: Use string.h, not gdb_string.h.
155 * go-lang.c: Use string.h, not gdb_string.h.
156 * go32-nat.c: Use string.h, not gdb_string.h.
157 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
158 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
159 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
160 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
161 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
162 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
163 * i386-linux-nat.c: Use string.h, not gdb_string.h.
164 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
165 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
166 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
167 * i386-tdep.c: Use string.h, not gdb_string.h.
168 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
169 * i386gnu-nat.c: Use string.h, not gdb_string.h.
170 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
171 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
172 * i387-tdep.c: Use string.h, not gdb_string.h.
173 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
174 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
175 * inf-child.c: Use string.h, not gdb_string.h.
176 * inf-ptrace.c: Use string.h, not gdb_string.h.
177 * inf-ttrace.c: Use string.h, not gdb_string.h.
178 * infcall.c: Use string.h, not gdb_string.h.
179 * infcmd.c: Use string.h, not gdb_string.h.
180 * inflow.c: Use string.h, not gdb_string.h.
181 * infrun.c: Use string.h, not gdb_string.h.
182 * interps.c: Use string.h, not gdb_string.h.
183 * iq2000-tdep.c: Use string.h, not gdb_string.h.
184 * irix5-nat.c: Use string.h, not gdb_string.h.
185 * jv-exp.y: Use string.h, not gdb_string.h.
186 * jv-lang.c: Use string.h, not gdb_string.h.
187 * jv-typeprint.c: Use string.h, not gdb_string.h.
188 * jv-valprint.c: Use string.h, not gdb_string.h.
189 * language.c: Use string.h, not gdb_string.h.
190 * linux-fork.c: Use string.h, not gdb_string.h.
191 * linux-nat.c: Use string.h, not gdb_string.h.
192 * lm32-tdep.c: Use string.h, not gdb_string.h.
193 * m2-exp.y: Use string.h, not gdb_string.h.
194 * m2-typeprint.c: Use string.h, not gdb_string.h.
195 * m32c-tdep.c: Use string.h, not gdb_string.h.
196 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
197 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
198 * m32r-rom.c: Use string.h, not gdb_string.h.
199 * m32r-tdep.c: Use string.h, not gdb_string.h.
200 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
201 * m68k-tdep.c: Use string.h, not gdb_string.h.
202 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
203 * m68klinux-nat.c: Use string.h, not gdb_string.h.
204 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
205 * m88k-tdep.c: Use string.h, not gdb_string.h.
206 * macrocmd.c: Use string.h, not gdb_string.h.
207 * main.c: Use string.h, not gdb_string.h.
208 * mdebugread.c: Use string.h, not gdb_string.h.
209 * mem-break.c: Use string.h, not gdb_string.h.
210 * memattr.c: Use string.h, not gdb_string.h.
211 * memory-map.c: Use string.h, not gdb_string.h.
212 * mep-tdep.c: Use string.h, not gdb_string.h.
213 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
214 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
215 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
216 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
217 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
218 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
219 * mi/mi-console.c: Use string.h, not gdb_string.h.
220 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
221 * mi/mi-interp.c: Use string.h, not gdb_string.h.
222 * mi/mi-main.c: Use string.h, not gdb_string.h.
223 * mi/mi-parse.c: Use string.h, not gdb_string.h.
224 * microblaze-rom.c: Use string.h, not gdb_string.h.
225 * microblaze-tdep.c: Use string.h, not gdb_string.h.
226 * mingw-hdep.c: Use string.h, not gdb_string.h.
227 * minidebug.c: Use string.h, not gdb_string.h.
228 * minsyms.c: Use string.h, not gdb_string.h.
229 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
230 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
231 * mips-tdep.c: Use string.h, not gdb_string.h.
232 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
233 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
234 * mipsread.c: Use string.h, not gdb_string.h.
235 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
236 * mn10300-tdep.c: Use string.h, not gdb_string.h.
237 * monitor.c: Use string.h, not gdb_string.h.
238 * moxie-tdep.c: Use string.h, not gdb_string.h.
239 * mt-tdep.c: Use string.h, not gdb_string.h.
240 * nbsd-tdep.c: Use string.h, not gdb_string.h.
241 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
242 * nto-procfs.c: Use string.h, not gdb_string.h.
243 * nto-tdep.c: Use string.h, not gdb_string.h.
244 * objc-lang.c: Use string.h, not gdb_string.h.
245 * objfiles.c: Use string.h, not gdb_string.h.
246 * opencl-lang.c: Use string.h, not gdb_string.h.
247 * osabi.c: Use string.h, not gdb_string.h.
248 * osdata.c: Use string.h, not gdb_string.h.
249 * p-exp.y: Use string.h, not gdb_string.h.
250 * p-lang.c: Use string.h, not gdb_string.h.
251 * p-typeprint.c: Use string.h, not gdb_string.h.
252 * parse.c: Use string.h, not gdb_string.h.
253 * posix-hdep.c: Use string.h, not gdb_string.h.
254 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
255 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
256 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
257 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
258 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
259 * printcmd.c: Use string.h, not gdb_string.h.
260 * procfs.c: Use string.h, not gdb_string.h.
261 * prologue-value.c: Use string.h, not gdb_string.h.
262 * python/py-auto-load.c: Use string.h, not gdb_string.h.
263 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
264 * ravenscar-thread.c: Use string.h, not gdb_string.h.
265 * regcache.c: Use string.h, not gdb_string.h.
266 * registry.c: Use string.h, not gdb_string.h.
267 * remote-fileio.c: Use string.h, not gdb_string.h.
268 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
269 * remote-mips.c: Use string.h, not gdb_string.h.
270 * remote-sim.c: Use string.h, not gdb_string.h.
271 * remote.c: Use string.h, not gdb_string.h.
272 * reverse.c: Use string.h, not gdb_string.h.
273 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
274 * ser-base.c: Use string.h, not gdb_string.h.
275 * ser-go32.c: Use string.h, not gdb_string.h.
276 * ser-mingw.c: Use string.h, not gdb_string.h.
277 * ser-pipe.c: Use string.h, not gdb_string.h.
278 * ser-tcp.c: Use string.h, not gdb_string.h.
279 * ser-unix.c: Use string.h, not gdb_string.h.
280 * serial.c: Use string.h, not gdb_string.h.
281 * sh-tdep.c: Use string.h, not gdb_string.h.
282 * sh64-tdep.c: Use string.h, not gdb_string.h.
283 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
284 * skip.c: Use string.h, not gdb_string.h.
285 * sol-thread.c: Use string.h, not gdb_string.h.
286 * solib-dsbt.c: Use string.h, not gdb_string.h.
287 * solib-frv.c: Use string.h, not gdb_string.h.
288 * solib-osf.c: Use string.h, not gdb_string.h.
289 * solib-spu.c: Use string.h, not gdb_string.h.
290 * solib-target.c: Use string.h, not gdb_string.h.
291 * solib.c: Use string.h, not gdb_string.h.
292 * somread.c: Use string.h, not gdb_string.h.
293 * source.c: Use string.h, not gdb_string.h.
294 * sparc-nat.c: Use string.h, not gdb_string.h.
295 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
296 * sparc-tdep.c: Use string.h, not gdb_string.h.
297 * sparc64-tdep.c: Use string.h, not gdb_string.h.
298 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
299 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
300 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
301 * spu-linux-nat.c: Use string.h, not gdb_string.h.
302 * spu-multiarch.c: Use string.h, not gdb_string.h.
303 * spu-tdep.c: Use string.h, not gdb_string.h.
304 * stabsread.c: Use string.h, not gdb_string.h.
305 * stack.c: Use string.h, not gdb_string.h.
306 * std-regs.c: Use string.h, not gdb_string.h.
307 * symfile.c: Use string.h, not gdb_string.h.
308 * symmisc.c: Use string.h, not gdb_string.h.
309 * symtab.c: Use string.h, not gdb_string.h.
310 * target.c: Use string.h, not gdb_string.h.
311 * thread.c: Use string.h, not gdb_string.h.
312 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
313 * tilegx-tdep.c: Use string.h, not gdb_string.h.
314 * top.c: Use string.h, not gdb_string.h.
315 * tracepoint.c: Use string.h, not gdb_string.h.
316 * tui/tui-command.c: Use string.h, not gdb_string.h.
317 * tui/tui-data.c: Use string.h, not gdb_string.h.
318 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
319 * tui/tui-file.c: Use string.h, not gdb_string.h.
320 * tui/tui-layout.c: Use string.h, not gdb_string.h.
321 * tui/tui-out.c: Use string.h, not gdb_string.h.
322 * tui/tui-regs.c: Use string.h, not gdb_string.h.
323 * tui/tui-source.c: Use string.h, not gdb_string.h.
324 * tui/tui-stack.c: Use string.h, not gdb_string.h.
325 * tui/tui-win.c: Use string.h, not gdb_string.h.
326 * tui/tui-windata.c: Use string.h, not gdb_string.h.
327 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
328 * typeprint.c: Use string.h, not gdb_string.h.
329 * ui-file.c: Use string.h, not gdb_string.h.
330 * ui-out.c: Use string.h, not gdb_string.h.
331 * user-regs.c: Use string.h, not gdb_string.h.
332 * utils.c: Use string.h, not gdb_string.h.
333 * v850-tdep.c: Use string.h, not gdb_string.h.
334 * valarith.c: Use string.h, not gdb_string.h.
335 * valops.c: Use string.h, not gdb_string.h.
336 * valprint.c: Use string.h, not gdb_string.h.
337 * value.c: Use string.h, not gdb_string.h.
338 * varobj.c: Use string.h, not gdb_string.h.
339 * vax-tdep.c: Use string.h, not gdb_string.h.
340 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
341 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
342 * windows-nat.c: Use string.h, not gdb_string.h.
343 * xcoffread.c: Use string.h, not gdb_string.h.
344 * xml-support.c: Use string.h, not gdb_string.h.
345 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
346 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
347
63ce7108
TT
3482013-11-18 Tom Tromey <tromey@redhat.com>
349
350 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
351 and strstr.
352 * gnulib/aclocal.m4: Update.
353 * gnulib/config.in: Update.
354 * gnulib/configure: Update.
355 * gnulib/import/Makefile.am: Update.
356 * gnulib/import/Makefile.in: Update.
357 * gnulib/import/errno.in.h: New.
358 * gnulib/import/intprops.h: New.
359 * gnulib/import/m4/errno_h.m4: New.
360 * gnulib/import/m4/gnulib-cache.m4: Update.
361 * gnulib/import/m4/gnulib-comp.m4: Update.
362 * gnulib/import/m4/strerror.m4: New.
363 * gnulib/import/m4/strstr.m4: New.
364 * gnulib/import/m4/sys_socket_h.m4: New.
365 * gnulib/import/strerror-override.c: New.
366 * gnulib/import/strerror-override.h: New.
367 * gnulib/import/strerror.c: New.
368 * gnulib/import/strstr.c: New.
369
a7c11ee1
TT
3702013-11-18 Tom Tromey <tromey@redhat.com>
371
372 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
373 multiple lines.
374
d0b5971a
JM
3752013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
376
377 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
378 * sparc-tdep.h: And its prototype.
379
380 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
381 function.
382 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
383
4b4589ad
PA
3842013-11-18 Pedro Alves <palves@redhat.com>
385
386 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
387 use unpack_pointer.
388
422ad5c2
JB
3892013-11-18 Joel Brobecker <brobecker@adacore.com>
390
391 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
392 to -list-features output.
393
b1370418
JB
3942013-11-17 Joel Brobecker <brobecker@adacore.com>
395
396 * dwarf2expr.h (struct dwarf_expr_context_funcs)
397 <read_addr_from_reg>: Renames "read_reg".
398 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
399 Adjust comment.
400 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
401 Use read_addr_from_reg in place of read_reg.
402 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
403 in place of read_reg.
404 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
405 dwarf_expr_read_reg.
406 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
407 with dwarf_expr_read_addr_from_reg.
408 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
409 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
410 needs_frame_read_addr_from_reg.
411
6ea71545
JK
4122013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
415
19a1b230
AA
4162013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
417
418 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
419 NULL.
420
805e1f19
TT
4212013-11-15 Tom Tromey <tromey@redhat.com>
422
423 PR c++/16117:
424 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
425 (classify_name): Likewise. Prefer a field of "this" over a
426 filename.
427 (classify_inner_name, yylex): Update.
428
0acf8b65
JB
4292013-11-15 Joel Brobecker <brobecker@adacore.com>
430
431 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
432 Extend the documentation a bit.
433 <get_reg_value>: New field.
434 * dwarf2loc.c (dwarf_expr_get_reg_value)
435 (needs_frame_get_reg_value): New functions.
436 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
437 callback.
438 * dwarf2-frame.c (get_reg_value): New function.
439 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
440 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
441 Use new callback to compute result_val.
442
ef1bc9e7
AM
4432013-11-15 Alan Modra <amodra@gmail.com>
444
445 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
446 (ppc64_desc_entry_point): ..this. Update comments here and at
447 call points.
448 (ppc64_standard_linkage1, ppc64_standard_linkage2,
449 ppc64_standard_linkage3): Update comments.
450 (ppc64_standard_linkage4, ppc64_standard_linkage5,
451 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
452 patterns.
453 (ppc64_standard_linkage4_target): New function.
454 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
455 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
456 nop match. Fix comment wrap.
457
36fa8042
PA
4582013-11-14 Pedro Alves <palves@redhat.com>
459
460 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
461 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
462
4f5d7f63
PA
4632013-11-14 Pedro Alves <palves@redhat.com>
464
465 * infrun.c (struct execution_control_state)
466 <stepped_after_stopped_by_watchpoint>: New field.
467 (get_inferior_stop_soon): New function.
468 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
469 moved to struct execution_control_state -- adjust. Use
470 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
471 new function.
472 (handle_signal_stop): New function, factored out from
473 handle_inferior_event.
474
47591c29
PA
4752013-11-14 Pedro Alves <palves@redhat.com>
476
477 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
478 return a boolean.
479 * breakpoint.c (bpstat_explains_signal): Adjust to return a
480 boolean.
481 (explains_signal_watchpoint, base_breakpoint_explains_signal):
482 Adjust to return a boolean.
483 * breakpoint.h (enum bpstat_signal_value): Delete.
484 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
485 (bpstat_explains_signal): Likewise.
486 * infrun.c (handle_inferior_event) <random signal checks>:
487 bpstat_explains_signal now returns a boolean - adjust. No longer
488 consider hiding signals.
489
bac7d97b
PA
4902013-11-14 Pedro Alves <palves@redhat.com>
491
492 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
493 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
494 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
495 BPSTAT_SIGNAL_HIDE.
496 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
497 instead of BPSTAT_SIGNAL_HIDE.
498 * infrun.c (handle_inferior_event): Rework random signal checks.
499
ce12b012
PA
5002013-11-14 Pedro Alves <palves@redhat.com>
501
502 * infrun.c (struct execution_control_state): Remove
503 'random_signal' field.
504 (handle_syscall_event): Use bpstat_causes_stop instead of
505 bpstat_explains_signal. Don't set ecs->random_signal.
506 (handle_inferior_event): New 'random_signal' local.
507 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
508 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
509 bpstat_explains_signal. Don't set ecs->random_signal.
510 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
511 ecs->random_signal.
512
05ba8510
PA
5132013-11-14 Pedro Alves <palves@redhat.com>
514
515 * infrun.c (handle_inferior_event): Move comment from the
516 function's body to the function's description, adjusted.
517
5c09a2c5
PA
5182013-11-14 Pedro Alves <palves@redhat.com>
519
520 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
521 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
522 Assert we never fall through out of the TARGET_WAITKIND_LOADED
523 case.
524
91822956
TT
5252013-11-14 Tom Tromey <tromey@redhat.com>
526
527 * python/py-linetable.c (ltpy_has_line)
528 (ltpy_get_all_source_lines): Fix loop termination condition.
529
403cb6b1
JB
5302013-11-14 Joel Brobecker <brobecker@adacore.com>
531
532 * mi/mi-parse.h (struct mi_parse) <language>: New field.
533 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
534 PARSE->LANGUAGE during command execution, if set.
535 * mi/mi-parse.c: Add "language.h" #include.
536 (mi_parse): Add parsing of "--language" command option.
537
538 * NEWS: Add entry mentioning the new "--language" command option.
539
b5be8ce0
JB
5402013-11-14 Pedro Alves <palves@redhat.com>
541 Joel Brobecker <brobecker@adacore.com>
542
543 * cli/cli-utils.h (extract_arg_const): Add declaration.
544 * cli/cli-utils.c (extract_arg_const): New function.
545 (extract_arg): Reimplement using extract_arg_const.
546
671afef6
JB
5472013-11-14 Joel Brobecker <brobecker@adacore.com>
548
549 * language.h: Add "symtab.h" #include.
550
6c1b0f7b
DE
5512013-11-13 Doug Evans <xdje42@gmail.com>
552
553 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
554 specific breakpoints, don't evaluate breakpoint condition if
555 different thread.
556
74921315
KS
5572013-11-13 Keith Seitz <keiths@redhat.com>
558
248ace2e 559 PR c++/7935
74921315
KS
560 PR c++/10541
561 * cp-support.c (insepct_type): Add support for substituting
562 namespace aliases, too.
563 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
564 for DW_TAG_imported_declaration.
565 (add_partial_symbol): Likewise.
566 (process_die): Handle namespace aliases with
567 read_namespace_alias.
568 (die_needs_namespace): Add DW_TAG_imported_declaration.
569 (read_namespace_alias): New function.
570 (load_partial_dies): Load DW_TAG_imported_declaration, too.
571 (new_symbol_full): Handle DW_TAG_imported_declaration.
572
793156e6
KS
5732013-11-13 Keith Seitz <keiths@redhat.com>
574
575 * p-exp.y (uptok): Make first parameter const.
576 (yylex): Make `tokstart' and `tokptr' const.
577 Don't copy the lexer input to a temporary buffer.
578 Make `p' const.
579 Remove const workaround for parse_escape.
580 Create a temporary buffer for a convenience variable instead
581 of doing in-place modification of the input.
582 If a match is found with a different case from the input,
583 do not change the input at all.
584 Use `tmp' to construct the resultant stoken instead of
585 `tokstart'.
586
c42bd95a
DE
5872013-11-13 Doug Evans <xdje42@gmail.com>
588
589 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
590
93973826
JB
5912013-11-13 Joel Brobecker <brobecker@adacore.com>
592
593 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
594 entry with "ada-exceptions".
595
846060df
JB
5962013-11-13 Joel Brobecker <brobecker@adacore.com>
597
598 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
599 after re-initialization of OBJFILE's obstack.
600
5efd1b2b 6012013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
602
603 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
604 bs->stop != 0 on entry. Update function comment. Simplify early
605 exit for frame mismatch. Reindent rest of function.
606
ee7615e1
AA
6072013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
608
609 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
610 NULL.
611
8943b874
DE
6122013-11-12 Doug Evans <dje@google.com>
613
614 Work around gold/15646.
615 * dwarf2read.c (read_index_from_section): Update comment.
616 (struct dw2_symtab_iterator): New member global_seen.
617 (dw2_symtab_iter_init): Initialize it.
618 (dw2_symtab_iter_next): Skip duplicate global symbols.
619 (dw2_expand_symtabs_matching): Ditto.
620
a8a9844d
JB
6212013-11-12 Joel Brobecker <brobecker@adacore.com>
622
623 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
624 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
625 command.
626 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
627 (mi_cmd_info_ada_exceptions): New function.
628 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
629
778865d3
JB
6302013-11-12 Joel Brobecker <brobecker@adacore.com>
631
632 * ada-lang.h: #include "vec.h".
633 (struct ada_exc_info): New.
634 (ada_exc_info): New typedef.
635 (DEF_VEC_O(ada_exc_info)): New vector.
636 (ada_exceptions_list): Add declaration.
637 * ada-lang.c (ada_is_exception_sym)
638 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
639 (sort_remove_dups_ada_exceptions_list)
640 (ada_exc_search_name_matches, ada_add_standard_exceptions)
641 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
642 (ada_exceptions_list_1, ada_exceptions_list)
643 (info_exceptions_command): New function.
644 (_initialize_ada_language): Add "info exception" command.
645
bc79de95
PM
6462013-11-11 Phil Muldoon <pmuldoon@redhat.com>
647
648 PR python/15629
649 * NEWS: Add linetable feature.
650 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
651 * python/py-linetable.c: New file.
652 * python/py-symtab.c (stpy_get_linetable): New function.
653 * python/python-internal.h (symtab_to_linetable_object): Declare.
654 (gdbpy_initialize_linetable): Ditto.
655 * python/python.c (_initialize_python): Call
656 gdbpy_initialize_linetable.
657
2df4d1d5
JB
6582013-11-11 Joel Brobecker <brobecker@adacore.com>
659
660 * ada-lang.c (create_ada_exception_catchpoint): Enhance
661 the documentation of fields "except_string" and "condition".
662 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
663 CONDITION on the heap before passing it to
664 create_ada_exception_catchpoint.
665 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
666 CONDITION.
667
99c1d451
TT
6682013-11-11 Tom Tromey <tromey@redhat.com>
669
670 * config.in, configure: Rebuild.
671 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
672
8ca5801b
JB
6732013-11-11 Joel Brobecker <brobecker@adacore.com>
674
675 * remote-sim.c (gdbsim_detach): Break declaration into
676 shorter lines. No code change.
677
7a06d430
EBM
6782013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
679
680 * remote-sim.c (gdbsim_detach): Fix prototype.
681
73be47f5
DE
6822013-11-08 Doug Evans <dje@google.com>
683
684 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
685 (create_debug_types_hash_table): Only print debugging messages for
686 each TU if dwarf2-read >= 2.
687 (process_queue): Ditto.
688 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
689 Update doc string.
690
a18d8f10
TT
6912013-11-08 Tom Tromey <tromey@redhat.com>
692
693 * configure: Rebuild.
694 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
695
9467110b
TT
6962013-11-08 Tom Tromey <tromey@redhat.com>
697
698 * configure, config.in: Rebuild.
699 * configure.ac: Remove unused configury.
700
69706679
TT
7012013-11-08 Tom Tromey <tromey@redhat.com>
702
703 * m32c-tdep.c: Use gdb_string.h.
704
9b4bea72
TT
7052013-11-08 Tom Tromey <tromey@redhat.com>
706
707 * configure, config.in: Rebuild.
708 * configure.ac: Remove all link.h-related checks.
709
3266f10b
TT
7102013-11-08 Tom Tromey <tromey@redhat.com>
711
712 * acinclude.m4: Include common.m4.
713 * common/common.m4: New file.
714 * configure, config.in: Rebuild.
715 * configure.ac: Use GDB_AC_COMMON.
716
db0fec5c
DE
7172013-11-08 Doug Evans <dje@google.com>
718
719 * NEWS: Mention that "set debug symtab-create" now accepts a
720 verbosity level.
721 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
722 to set the symtab's primary flag.
723 * jit.c (finalize_symtab): Ditto.
724 * mdebugread.c (psymtab_to_symtab_1): Ditto.
725 * symfile.c (allocate_symtab): Only print debugging messages for
726 symtab_create_debug levels 2 and higher.
727 * symtab.c (symtab_create_debug): Change type to unsigned int.
728 (set_symtab_primary): New function.
729 (_initialize_symtab): Change "set debug symtab-create" to a
730 zuinteger option.
731 * symtab.h (set_symtab_primary): Declare.
732 (symtab_create_debug): Update decl.
733
52554a0e
TT
7342013-11-08 Tom Tromey <tromey@redhat.com>
735
736 * aix-thread.c (aix_thread_detach): Update.
737 * corelow.c (core_detach): Update.
738 * darwin-nat.c (darwin_detach): Update.
739 * dec-thread.c (dec_thread_detach): Update.
740 * gnu-nat.c (gnu_detach): Update.
741 * go32-nat.c (go32_detach): Update.
742 * inf-ptrace.c (inf_ptrace_detach): Update.
743 * inf-ttrace.c (inf_ttrace_detach): Update.
744 * linux-fork.c (linux_fork_detach): Update.
745 * linux-fork.h (linux_fork_detach): Update.
746 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
747 local for const-correctness.
748 * linux-thread-db.c (thread_db_detach): Update.
749 * monitor.c (monitor_detach): Update.
750 * nto-procfs.c (procfs_detach): Update.
751 * procfs.c (procfs_detach): Update.
752 * record.c (record_detach): Update.
753 * record.h (record_detach): Update.
754 * remote-m32r-sdi.c (m32r_detach): Update.
755 * remote-mips.c (mips_detach): Update.
756 * remote-sim.c (gdbsim_detach): Update.
757 * remote.c (remote_detach_1, remote_detach)
758 (extended_remote_detach): Update.
759 * sol-thread.c (sol_thread_detach): Update.
760 * target.c (target_detach): Make "args" const.
761 (init_dummy_target): Update.
762 * target.h (struct target_ops) <to_detach>: Make argument const.
763 (target_detach): Likewise.
764 * windows-nat.c (windows_detach): Update.
765
204b5331
DE
7662013-11-07 Doug Evans <dje@google.com>
767
768 PR 11786
769 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
770 and align fields for PT_GNU_RELRO segments.
771
92e32e33
PM
7722013-11-07 Phil Muldoon <pmuldoon@redhat.com>
773
ef1bc9e7
AM
774 PR python/15747
775 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 776
f76c27b5
PM
7772013-11-07 Phil Muldoon <pmuldoon@redhat.com>
778
779 * NEWS: Document Python temporary breakpoint support.
780 * python/py-breakpoint.c (bppy_get_temporary): New function.
781 (bppy_init): New keyword: temporary. Parse it and set breakpoint
782 to temporary if True.
783
d52cd232
JM
7842013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
785
786 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
787 removed to allow analyzing unconditional branch instructions
788 with PC-relative offsets of zero.
789
fa4d0c40
YQ
7902013-11-07 Yao Qi <yao@codesourcery.com>
791
792 * mi/mi-cmd-var.c: Include "language.h".
793 (mi_cmd_var_info_expression): Get language name from
794 language_defn.
795 * varobj.c (varobj_language_string): Remove.
796 (variable_language): Remove declaration.
797 (languages): Remove.
798 (varobj_get_language): Change the type of return value.
799 (variable_language): Remove.
800 * varobj.h (enum varobj_languages): Remove.
801 (varobj_language_string): Remove declaration.
802 (varobj_get_language): Update declaration.
803
6abde28f
YQ
8042013-11-07 Yao Qi <yao@codesourcery.com>
805
806 * language.h (struct language_defn) <la_natural_name>: New
807 field.
808 * ada-lang.c (ada_language_defn): Initialize field
809 'la_natural_name'.
810 * c-lang.c (c_language_defn): Likewise.
811 (cplus_language_defn, asm_language_defn): Likewise.
812 * d-lang.c (d_language_defn): Likewise.
813 * f-lang.c (f_language_defn): Likewise.
814 * go-lang.c (go_language_defn): Likewise.
815 * jv-lang.c (java_language_defn): Likewise.
816 * language.c (unknown_language_defn ): Likewise.
817 (auto_language_defn): Likewise.
818 * m2-lang.c (m2_language_defn): Likewise.
819 * objc-lang.c (objc_language_defn): Likewise.
820 * opencl-lang.c (opencl_language_defn): Likewise.
821 * p-lang.c (pascal_language_defn): Likewise.
822
27cd387b
YQ
8232013-11-07 Yao Qi <yao@codesourcery.com>
824
825 * language.c (language_str): Return const char *.
826 (add_language): Add const to 'language_names'
827 * language.h (struct language_defn) <la_name>: Add const.
828 (language_str: Update declaration.
829
6682d959
AA
8302013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
831
832 * s390-linux-nat.c (s390_read_description): Consider the TE field
833 in the HWCAP for determining 'have_regset_tdb'.
834
b9502d3f
WN
8352013-11-06 Will Newton <will.newton@linaro.org>
836
837 PR gdb/12866
838 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
839 values. (read_partial_die): Likewise.
840
840da61a
MB
8412013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
842
843 PR cli/16122
844 * top.c (command_line_input): Unify interactivity tests to use
845 input_from_terminal_p.
846 * event-top.c (command_line_handler): Likewise.
847
7636ccf9
YQ
8482013-11-06 Yao Qi <yao@codesourcery.com>
849
850 * Makefile.in (check-perf): New target.
851
12b27276
WN
8522013-11-05 Will Newton <will.newton@linaro.org>
853
854 PR gdb/7670
855 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
856 (arm_print_float_info): Likewise.
857
67c059c2
AB
8582013-11-04 Anton Blanchard <anton@samba.org>
859
860 * target.c (memory_xfer_partial): Cap write to 4KB.
861
0569175e
TSD
8622013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
863
864 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
865 probe scan even when the arch provides no get_longjmp_target.
866
b18e90f5
PA
8672013-10-31 Pedro Alves <palves@redhat.com>
868
869 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
870 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
871 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
872 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
873 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
874 <bpstat handling>: If the bpstat chain wants the signal to be
875 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
876 GDB_SIGNAL_TRAP.
877
638aa5a1
AB
8782013-10-31 Andrew Burgess <aburgess@broadcom.com>
879
880 * breakpoint.c (update_watchpoint): Update error message and add
881 an additional error message.
882
0e5fae36
UW
8832013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
884
885 * s390-tdep.h: Rename to...
886 * s390-linux-tdep.h: ...here.
887 * s390-tdep.c: Rename to...
888 * s390-linux-tdep.c: ...here. Adjust #include.
889 * s390-nat.c: Rename to...
890 * s390-linux-nat.c: ...here. Adjust #include.
891 * config/s390/s390.mh: Rename to...
892 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
893 s390-linux-nat.o.
894 * configure.host: Reflect host rename "s390" -> "linux".
895 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
896 * Makefile.in (ALL_TARGET_OBS): Likewise.
897 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
898 s390-linux-tdep.h.
899 (ALLDEPFILES): Reflect rename of .c files.
900
34201ae3
UW
9012013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
902
903 * s390-nat.c: Whitespace cleanup.
904 * s390-tdep.c: Likewise.
905 * s390-tdep.h: Remove empty line at end of file.
906
e17aaa33
MR
9072013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
908
909 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
910 siginfo_size.
911
aee17e42
TT
9122013-10-29 Tom Tromey <tromey@redhat.com>
913
914 * utils.c (reg): Move undefinition...
915 * gdb_curses.h: ... here. Update comment to mention AIX.
916
9ac69859
NB
9172013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
918
919 * exec.h (add_target_sections_of_objfile): New declaration.
920 * exec.c (add_target_sections_of_objfile): New function.
921 * symfile.c (add_symbol_file_command): Update current target sections.
922 (remove_symbol_file_command): New command.
923 (symfile_free_objfile): New function.
924 (_initialize_symfile): Register observer for free_objfile events.
925 * NEWS: Add description of the remove-symbol-file command.
926 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
927 * objfiles.c (free_objfile): Notify free_objfile.
928 (is_addr_in_objfile): New function.
929 * objfiles.h (is_addr_in_objfile): New declaration.
930 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
931 events instead of solib_unloaded events.
932 (_initialize_printcmd): Register observer for free_objfile instead
933 of solib_unloaded notifications.
934 * solib.c (remove_user_added_objfile): New function.
935 (_initialize_symfile): Add remove-symbol-file.
936
f69d9aef
AB
9372013-10-29 Andrew Burgess <aburgess@broadcom.com>
938
939 * infcmd.c (default_print_one_register_info): Use val_print to
940 print all values even optimized out or unavailable ones. Don't
941 try to print a raw form of optimized out or unavailable values.
942
487ad57c
YQ
9432013-10-29 Yao Qi <yao@codesourcery.com>
944
945 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
946 parameter 'arg' instead of from program_space_data.
947 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
948 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
949 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
950 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
951 * inflow.c (inflow_inferior_data_cleanup): Get data from
952 parameter 'arg' instead of inferior_data.
953 * registry.h: Add comments.
954
3c4797ba
PA
9552013-10-28 Pedro Alves <palves@redhat.com>
956
957 * breakpoint.c (watchpoints_triggered)
958 <!target_stopped_data_address>: Hardcode return 1.
959
cdaa5b73
PA
9602013-10-28 Pedro Alves <palves@redhat.com>
961
962 * infrun.c (process_event_stop_test): Remove unnecessary scoping
963 level and reindent.
964
94c57d6a
PA
9652013-10-28 Pedro Alves <palves@redhat.com>
966
967 * infrun.c (process_event_stop_test): New function, factored out
968 from handle_inferior_event.
969 (handle_inferior_event): 'process_event_stop_test' is now a
970 function instead of a goto label -- adjust.
971
fcf3daef
PA
9722013-10-28 Pedro Alves <palves@redhat.com>
973
974 * infrun.c (handle_inferior_event): Move process_event_stop_test
975 goto label to the else branch of the ecs->random_signal check,
976 along with FRAME and GDBARCH re-fetching.
977
c447ac0b
PA
9782013-10-28 Pedro Alves <palves@redhat.com>
979
980 * infrun.c (switch_back_to_stepped_thread): New function, factored
981 out from handle_inferior_event.
982 (handle_inferior_event): Adjust to call
983 switch_back_to_stepped_thread. Call it also at the tail of the
984 random signal handling, and return, instead of also handling
985 random signals just before the stepping tests.
986
f05e4c11
PA
9872013-10-28 Pedro Alves <palves@redhat.com>
988
989 * infrun.c (clear_stop_func): Delete.
990 (handle_inferior_event): Don't call clear_stop_func and don't
991 clear 'ecs->random_signal'.
992
ca20d462
YQ
9932013-10-27 Yao Qi <yao@codesourcery.com>
994
995 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
996 (varobj_create, varobj_get_path_expr): Update.
997 (varobj_value_has_mutated, varobj_update): Likewise.
998 (create_child_with_value, new_root_variable): Likewise.
999 (number_of_children, name_of_variable): Likewise.
1000 (value_of_child, my_value_of_variable): Likewise.
1001 (varobj_value_is_changeable_p): Likewise.
1002
a53b64ea
YQ
10032013-10-25 Yao Qi <yao@codesourcery.com>
1004
1005 * language.h (struct lang_varobj_ops): Declare.
1006 (struct language_defn) <la_varobj_ops>: New field.
1007 * ada-lang.c: Include "varobj.h"
1008 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1009 ada_varobj_ops.
1010 * c-lang.c: Include "varobj.h"
1011 (c_language_defn): Initialize field 'la_varobj_ops' with
1012 c_varobj_ops.
1013 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1014 cplus_varobj_ops.
1015 (asm_language_defn): Initialize field 'la_varobj_ops' with
1016 default_varobj_ops.
1017 (minimal_language_defn): Likewise.
1018 * d-lang.c (d_language_defn): Likewise.
1019 * f-lang.c (f_language_defn): Likewise.
1020 * go-lang.c (go_language_defn): Likewise.
1021 * m2-lang.c (m2_language_defn): Likewise.
1022 * objc-lang.c (objc_language_defn): Likewise.
1023 * opencl-lang.c (opencl_language_defn): Likewise.
1024 * p-lang.c (pascal_language_defn): Likewise.
1025 * language.c (unknown_language_defn): Likewise.
1026 (auto_language_defn): Likewise.
1027 (local_language_defn): Likewise.
1028 * jv-lang.c (java_language_defn): Initialize field
1029 'la_varobj_ops' with java_varobj_ops.
1030 * varobj.c (varobj_create): Update.
1031 * varobj.h (default_varobj_ops): Define macro.
1032
686d4def
PA
10332013-10-25 Pedro Alves <palves@redhat.com>
1034
1035 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1036 static field value.
1037 (cp_print_static_field): If the value is entirely optimized out,
1038 print <optimized out> here.
1039 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1040 static field value.
1041 * p-valprint.c (pascal_object_print_static_field): If the value is
1042 entirely optimized out, print <optimized out> here.
1043 * valops.c (do_search_struct_field)
1044 (value_struct_elt_for_reference): No longer handle a NULL static
1045 field value.
1046 * value.c (value_static_field): Return an optimized out value
1047 instead of NULL.
1048
6c177e28
YQ
10492013-10-25 Yao Qi <yao@codesourcery.com>
1050
1051 * remote.c (remote_traceframe_info): Return early if
1052 traceframe is not selected.
1053
98322bfa
YQ
10542013-10-25 Yao Qi <yao@codesourcery.com>
1055
1056 * tracepoint.c (traceframe_fun): Remove.
1057 (traceframe_sal): Remove.
1058 (set_traceframe_context): Add local variables.
1059
6ba1f115
JB
10602013-10-25 Joel Brobecker <brobecker@adacore.com>
1061
1062 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1063 and parameter name.
1064
bbe769cc
MR
10652013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1066
1067 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1068 failure from register information collection.
1069
72ee4495 10702013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1071
1072 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1073 member.
1074 (linux_corefile_thread_callback): Update accordingly.
1075 (linux_make_corefile_notes): Likewise.
1076
98882a26
PA
10772013-10-24 Pedro Alves <palves@redhat.com>
1078
1079 * NEWS (New options): Mention set/show startup-with-shell.
1080 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1081 instead of 3.
1082 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1083 startup-with-shell'.
1084 (show_startup_with_shell): New function.
1085 (_initialize_fork_child): Register the set/show startup-with-shell
1086 commands.
1087 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1088 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1089 * procfs.c (procfs_init_inferior): Remove comment.
1090 * infcmd.c (startup_with_shell): New global.
1091 * inferior.h (startup_with_shell): Declare global.
1092 (STARTUP_WITH_SHELL): Delete.
1093 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1094
c9737c08
PA
10952013-10-23 Pedro Alves <palves@redhat.com>
1096
1097 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1098 * common/signals.c: Include "gdb_assert.h".
1099 (signals): New field 'symbol'.
1100 (SET): Use the 'symbol' parameter.
1101 (gdb_signal_to_symbol_string): New function.
1102 * infrun.c (handle_inferior_event) <random signal>: In debug
1103 output, print the random signal enum as string in addition to its
1104 number.
1105 * target/waitstatus.c (target_waitstatus_to_string): Print the
1106 signal's enum value as string instead of the (POSIX) signal name.
1107
f60db4f0
GB
11082013-10-23 Gary Benson <gbenson@redhat.com>
1109
1110 PR 16013
1111 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1112 from 32 to 18. Adjusted fscanf format string accordingly.
1113 (Avoids leaving cmd unterminated.)
1114 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1115 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1116 that local_address and remote_address will not overflow.
1117 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1118 leaving dependencies unterminated. Parse size as "%u" to match
1119 definition.
1120
6d3e7a94
PA
11212013-10-22 Pedro Alves <palves@redhat.com>
1122
1123 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1124 set ecs->random signal.
1125
42ec045f
PA
11262013-10-22 Pedro Alves <palves@redhat.com>
1127
1128 * infrun.c (keep_going): Update comments.
1129
11302013-10-22 Pedro Alves <palves@redhat.com>
1131
1132 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1133 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1134
11352013-10-22 Pedro Alves <palves@redhat.com>
1136
1137 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1138 GDB_EXC_BAD_ACCESS.
1139 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1140 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1141 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1142 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1143 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1144 (GDB_SIGNAL_LAST): Change description string.
1145 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1146 Adjust to signal renaming.
1147 * darwin-nat.c (darwin_decode_message): Likewise.
1148
c8fde1b1
JM
11492013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1150
1151 * MAINTAINERS (Write After Approval): Add myself to the list.
1152
e8369a73
AB
11532013-10-18 Andrew Burgess <aburgess@broadcom.com>
1154
1155 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1156 forced off, downgrade them to software watchpoints if possible,
1157 and error out if not possible.
1158 (watch_command_1): Move watchpoint type selection closer to
1159 watchpoint creation, and extend the comments.
1160
776f04fa
PA
11612013-10-18 Pedro Alves <palves@redhat.com>
1162
1163 PR gdb/16062
1164 * infrun.c (handle_inferior_event): Keep going if we got a random
1165 signal we should not stop for, instead of falling through to the
1166 step tests.
1167
0c6faab5
YQ
11682013-10-18 Yao Qi <yao@codesourcery.com>
1169
1170 * c-varobj.c (cplus_number_of_children): Fix indentation.
1171
50b34a18
TT
11722013-10-17 Tom Tromey <tromey@redhat.com>
1173
1174 PR gdb/15995:
1175 * printcmd.c (printcmd): Call gdb_flush.
1176
5c4c8a59
TT
11772013-10-17 Tom Tromey <tromey@redhat.com>
1178
1179 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1180 (elf_locate_sections): Update.
1181
c4124bf1
YQ
11822013-10-17 Yao Qi <yao@codesourcery.com>
1183
1184 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1185 * ada-varobj.c: Remove the include of ada-varobj.h.
1186 (ada_varobj_get_number_of_children): Declare.
1187 (ada_varobj_get_name_of_child): Make it static.
1188 (ada_varobj_get_path_expr_of_child): Likewise.
1189 (ada_varobj_get_value_of_child): Likewise.
1190 (ada_varobj_get_type_of_child): Likewise.
1191 (ada_varobj_get_value_of_array_variable): Likewise.
1192 * ada-varobj.h: Remove.
1193
99ad9427
YQ
11942013-10-17 Yao Qi <yao@codesourcery.com>
1195
1196 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1197 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1198 * ada-varobj.c: Include "varobj.h".
1199 (ada_number_of_children): New. Moved from varobj.c.
1200 (ada_name_of_variable, ada_name_of_child): Likewise.
1201 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1202 (ada_type_of_child, ada_value_of_variable): Likewise.
1203 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1204 (ada_varobj_ops): New.
1205 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1206 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1207 * gdbtypes.h (get_target_type): Declare.
1208 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1209 "ada-lang.h".
1210 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1211 (ANONYMOUS_UNION_NAME): Likewise.
1212 (get_type, get_value_type, get_target_type): Remove declarations.
1213 (value_get_print_value, varobj_value_get_print_value): Likewise.
1214 (c_number_of_children, c_name_of_variable): Likewise.
1215 (c_name_of_child, c_path_expr_of_child): Likewise.
1216 (c_value_of_child, c_type_of_child): Likewise.
1217 (c_value_of_variable, cplus_number_of_children): Likewise.
1218 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1219 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1220 (cplus_value_of_child, cplus_type_of_child): Likewise.
1221 (cplus_value_of_variable, java_number_of_children): Likewise.
1222 (java_name_of_variable, java_name_of_child): Likewise.
1223 (java_path_expr_of_child, java_value_of_child): Likewise.
1224 (java_type_of_child, java_value_of_variable): Likewise.
1225 (ada_number_of_children, ada_name_of_variable): Likewise.
1226 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1227 (ada_value_of_child, ada_type_of_child): Likewise.
1228 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1229 (ada_value_has_mutated): Likewise.
1230 (struct language_specific): Move it to varobj.h.
1231 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1232 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1233 Callers update.
1234 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1235 Make it extern.
1236 (is_anonymous_child): Move it to c-varobj.c and rename to
1237 varobj_is_anonymous_child. Caller update.
1238 (get_type): Move it to c-varobj.c.
1239 (get_value_type): Rename it varobj_get_value_type. Make it
1240 extern.
1241 (get_target_type): Move it gdbtypes.c.
1242 (varobj_formatted_print_options): New function.
1243 (value_get_print_value): Rename it to
1244 varobj_value_get_print_value and make it extern.
1245 (varobj_value_is_changeable_p): Make it extern.
1246 (adjust_value_for_child_access): Move it to c-varobj.c.
1247 (default_value_is_changeable_p): Rename it to
1248 varobj_default_value_is_changeable_p. Make it extern.
1249 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1250 (c_name_of_child, c_path_expr_of_child): Likewise.
1251 (c_value_of_child, c_type_of_child): Likewise.
1252 (c_value_of_variable, cplus_number_of_children): Likewise.
1253 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1254 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1255 (cplus_value_of_child, cplus_type_of_child): Likewise.
1256 (cplus_value_of_variable): Likewise.
1257 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1258 (java_name_of_child, java_path_expr_of_child): Likewise.
1259 (java_value_of_child, java_type_of_child): Likewise.
1260 (java_value_of_variable): Likewise.
1261 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1262 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1263 (ada_value_of_child, ada_type_of_child): Likewise.
1264 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1265 (ada_value_has_mutated): Likewise.
1266 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1267 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1268 (c_varobj_ops, cplus_varobj_ops): Declare.
1269 (java_varobj_ops, ada_varobj_ops): Declare.
1270 (varobj_default_value_is_changeable_p): Declare.
1271 (varobj_value_is_changeable_p): Declare.
1272 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1273 (varobj_get_path_expr_parent): Declare.
1274 (varobj_value_get_print_value): Declare.
1275 (varobj_formatted_print_options): Declare.
1276 (varobj_restrict_range): Declare.
1277
c8a62302
LM
12782013-10-17 Luis Machado <lgustavo@codesourcery.com>
1279
1280 * target/waitstatus.h (target_waitkind): Remove spurious
1281 character from the comments.
1282
eade6471
JB
12832013-10-17 Joel Brobecker <brobecker@adacore.com>
1284
1285 * gdbarch.sh (get_longjmp_target): Add method documentation.
1286 * gdbarch.h: Regenerate.
1287
5411b26c
TT
12882013-10-16 Tom Tromey <tromey@redhat.com>
1289
1290 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1291 label.
1292
87326c87
LM
12932013-10-16 Luis Machado <lgustavo@codesourcery.com>
1294
1295 * gcore.in: Call GDB using the full path to the gcore script.
1296 Error out if the GDB binary is not found.
1297
fd0a4d76
SDJ
12982013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1299
1300 PR gdb/16014
1301 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1302 sizeof.
1303
d92f7ee3
SDJ
13042013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1305
1306 PR gdb/16042
1307 * target.c (target_disable_btrace): Fix invalid return value for
1308 void function.
1309 (target_teardown_btrace): Likewise.
1310
bb5ce47a
YQ
13112013-10-14 Yao Qi <yao@codesourcery.com>
1312
1313 * varobj.c (struct varobj): Move most of the fields to
1314 varobj.h.
1315 (struct varobj_dynamic): New struct.
1316 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1317 (varobj_has_more): Likewise.
1318 (dynamic_varobj_has_child_method): Likewise.
1319 (update_dynamic_varobj_children): Likewise.
1320 (varobj_get_num_children): Likewise.
1321 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1322 (install_new_value_visualizer): Likewise.
1323 (install_new_value_visualizer, install_new_value): Likewise.
1324 (varobj_update, new_variable, free_variable): Likewise.
1325 (my_value_of_variable, value_get_print_value): Likewise.
1326 (install_visualizer): Change the type of parameter 'var' to
1327 'struct varobjd_dynamic *'. Callers update.
1328 * varobj.h (struct varobj): Moved from varobj.c.
1329 (struct varobj) <dynamic>: New field.
1330
0b76b0ce
SL
13312013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1332
1333 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1334 as the preferred name of r30.
1335 * nios2-linux-tdep.c (reg_offsets): Likewise.
1336 * features/nios2-cpu.xml: Likewise.
1337 * features/nios2-linux.c: Regenerated.
1338 * features/nios2.c: Regenerated.
1339 * regformats/nios2-linux.dat: Regenerated.
1340
4856b6bc
JK
13412013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1342
1343 Canonicalize directories for EXEC_FILENAME.
1344 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1345 exec_filename.
1346 * utils.c (gdb_realpath_keepfile): New function.
1347 * utils.h (gdb_realpath_keepfile): New declaration.
1348
9b557b58
DE
13492013-10-11 Doug Evans <dje@google.com>
1350
1351 * Makefile.in (GDBFLAGS): New variable.
1352 (run): New rule.
1353
ce13fade
JB
13542013-10-11 Joel Brobecker <brobecker@adacore.com>
1355
1356 * NEWS: Add entry documenting the new "-catch-assert" and
1357 "-catch-exception" GDB/MI commands.
1358
349774ef
JB
13592013-10-11 Joel Brobecker <brobecker@adacore.com>
1360
1361 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1362 "enabled".
1363 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1364 "enabled". Set B->ENABLE_STATE accordingly.
1365 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1366 ada-lang.c.
1367 (create_ada_exception_catchpoint): Add declaration.
1368 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1369 (create_ada_exception_catchpoint): Make non-static. Add new
1370 parameter "disabled". Use it in call to
1371 init_ada_exception_breakpoint.
1372 (catch_ada_exception_command): Add parameter "enabled" in call
1373 to create_ada_exception_catchpoint.
1374 (catch_assert_command): Likewise.
1375
1376 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1377 Add declarations.
1378 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1379 "catch-exception" commands.
1380 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1381 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1382
761269c8
JB
13832013-10-11 Joel Brobecker <brobecker@adacore.com>
1384
1385 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1386 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1387 of all its enumerates with "ada_". Update the rest of this
1388 file throughout.
1389
b4a5b78b
JB
13902013-10-11 Joel Brobecker <brobecker@adacore.com>
1391
1392 * ada-lang.c (ada_decode_exception_location): Delete.
1393 (create_ada_exception_catchpoint): Remove arguments "sal",
1394 "addr_string" and "ops". Add argument "ex_kind" instead.
1395 Adjust implementation accordingly, calling ada_exception_sal
1396 to get the entities it no longer gets passed as arguments.
1397 Document the function's arguments.
1398 (catch_ada_exception_command): Use catch_ada_exception_command_split
1399 instead of ada_decode_exception_location, and update call to
1400 create_ada_exception_catchpoint.
1401 (catch_ada_assert_command_split): Renames
1402 ada_decode_assert_location. Remove parameters "addr_string" and
1403 "ops", and now returns void. Adjust implementation accordingly.
1404 Update the function documentation.
1405 (catch_assert_command): Use catch_ada_assert_command_split
1406 instead of ada_decode_assert_location. Update call to
1407 create_ada_exception_catchpoint.
1408
7ad1d32c 14092013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1410
1411 * utils.h (perror_warning_with_name): Add declaration.
1412 * utils.c (perror_warning_with_name): New function.
1413 * cli/cli-cmds.c (source_script_with_search): Add call to
1414 perror_warning_with_name if from_tty is nul.
1415
7ad1d32c 14162013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1417
1418 * utils.c (perror_string): New function, extracted out of
1419 throw_perror_with_name.
1420 (throw_perror_with_name): Rework to use perror_string.
1421
bcc75809
YQ
14222013-10-11 Yao Qi <yao@codesourcery.com>
1423
1424 * remote.c (discard_pending_stop_replies_in_queue): Update
1425 declaration.
1426 (struct stop_reply) <rs>: New field.
1427 (remove_stop_reply_of_remote_state): New function.
1428 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1429 Callers update. Pass remove_stop_reply_of_remote_state to
1430 QUEUE_iterate.
1431 (remote_parse_stop_reply): Initialize field 'rs'.
1432
05feb193
WN
14332013-10-10 Will Newton <will.newton@linaro.org>
1434
1435 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1436 linux_init_abi.
1437
0d12017b
JB
14382013-10-10 Joel Brobecker <brobecker@adacore.com>
1439
1440 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1441 serial_baud_show_cmd.
1442 (_initialize_cli_cmds): Delete the code creating the
1443 "set/show remotebaud" commands.
1444 * serial.c (baud_rate): Move here from top.c.
1445 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1446 (_initialize_serial): Create "set/show serial baud" commands.
1447 Add "set/show remotebaud" command aliases.
1448 * top.c (baud_rate): Moved to serial.c.
1449 * NEWS: Document the new "set/show serial baud" commands,
1450 replacing "set/show remotebaud".
1451
578d3588
PA
14522013-10-09 Pedro Alves <palves@redhat.com>
1453
1454 * breakpoint.c (insert_bp_location): Use memory_error_message to
1455 build the memory error string.
1456 * c-lang.c: Include "gdbcore.h".
1457 (c_get_string): Use memory_error to throw error.
1458 (target_xfer_memory_error): Delete.
1459 (memory_error_message): New, factored out from
1460 target_xfer_memory_error.
1461 (memory_error): Change parameter type to target_xfer_error.
1462 Rewrite.
1463 (read_memory): Use memory_error instead of
1464 target_xfer_memory_error.
1465 * gdbcore.h: Include "target.h".
1466 (memory_error): Change parameter type to target_xfer_error.
1467 (memory_error_message): Declare function.
1468 * target.c (target_read_memory, target_read_stack)
1469 (target_write_memory, target_write_raw_memory): Return
1470 TARGET_XFER_E_IO on error. Adjust comments.
1471 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1472 instead of EIO.
1473 * target.h (target_read, target_insert_breakpoint)
1474 (target_remove_breakpoint): Adjust comments.
1475 * valprint.c (partial_memory_read): Rename parameter, and adjust
1476 comment.
1477 (val_print_string): Use memory_error_message to build the memory
1478 error string.
1479
c74e1ccf
JK
14802013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1483 result variable. Rename variable fopen_e_ever_failed to
1484 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1485
915215be
PA
14862013-10-09 Pedro Alves <palves@redhat.com>
1487
1488 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1489 (monitor_write_memory_longlongs, monitor_write_memory_block):
1490 Constify 'myaddr' parameter.
1491 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1492 helper.
1493 (monitor_xfer_partial): New function.
1494 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1495 hook. Install a to_xfer_partial hook.
1496
acd13123
TT
14972013-10-09 Tom Tromey <tromey@redhat.com>
1498
1499 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1500 bfd_get_alt_debug_link_info.
1501
40135bb1
JK
15022013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 New flag OBJF_NOT_FILENAME.
1505 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1506 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1507 allocate_objfile.
1508 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1509 symbol_file_add_from_bfd.
1510 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1511 allocate_objfile.
1512 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1513 NULL.
1514 * objfiles.h (OBJF_NOT_FILENAME): New.
1515
dc294be5
TT
15162013-10-08 Tom Tromey <tromey@redhat.com>
1517
1518 * Makefile.in (SFILES): Add build-id.c.
1519 (HFILES_NO_SRCDIR): Add build-id.h.
1520 * build-id.c: New file, largely from elfread.c. Modified
1521 most functions.
1522 * build-id.h: New file.
1523 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1524 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1525 Search for dwz file using build-id.
1526 * elfread.c (build_id_bfd_get, build_id_verify)
1527 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1528
db230ce3
JB
15292013-10-08 Joel Brobecker <brobecker@adacore.com>
1530
1531 * ada-lang.c (compare_names_with_case): Renamed from
1532 compare_names, adding a new parameter "casing" and its handling.
1533 New function documentation.
1534 (compare_names): New function, implemented using
1535 compare_names_with_case.
1536
6501c98a
JB
15372013-10-08 Joel Brobecker <brobecker@adacore.com>
1538
1539 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1540
84a1243b
TT
15412013-10-07 Tom Tromey <tromey@redhat.com>
1542
1543 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1544 demangled_names_hash.
1545 (free_objfile): Don't delete the demangled_names_hash.
1546 * objfiles.h (struct objfile_per_bfd_storage)
1547 <demangled_names_hash>: New field.
1548 (struct objfile) <demangled_names_hash>: Move to
1549 objfile_per_bfd_storage.
1550 * symfile.c (reread_symbols): Don't delete the
1551 demangled_names_hash.
1552 * symtab.c (create_demangled_names_hash): Update.
1553 (symbol_set_names): Update.
1554
1da77581
TT
15552013-10-07 Tom Tromey <tromey@redhat.com>
1556
1557 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1558 needs_relocations>: New fields.
1559 (gdb_bfd_requires_relocations): New function.
1560 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1561 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1562 the BFD needs relocations applied.
1563
46ecd527
PA
15642013-10-07 Pedro Alves <palves@redhat.com>
1565
1566 PR breakpoints/11568
1567 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1568 the thread list" instead of "gone".
1569
0c557179
SDJ
15702013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1571
1572 * NEWS: Mention new convenience variable $_exitsignal.
1573 * corelow.c (core_open): Reset exit convenience variables. Set
1574 $_exitsignal to the uncaught signal which generated the corefile.
1575 * infrun.c (handle_inferior_event): Reset exit convenience
1576 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1577 (clear_exit_convenience_vars): New function.
1578 * inferior.h (clear_exit_convenience_vars): New prototype.
1579
1cc47d81
YQ
15802013-10-06 Yao Qi <yao@codesourcery.com>
1581
1582 * varobj.h: Add comments to enum varobj_languages.
1583
73869dc2
DE
15842013-10-04 Doug Evans <dje@google.com>
1585
1586 Add support for DWP file format version 2.
1587 * NEWS: Mention support for DWP file format version 2.
1588 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1589 union of asection, containing_section. New fields virtual_offset
1590 and is_virtual. Change type of readin filed from int to char.
1591 (dwo_sections, dwo_file): Tweak comments.
1592 (dwp_v2_section_ids): New enum.
1593 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1594 str_offsets, types.
1595 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1596 All uses updated.
1597 (virtual_v2_dwo_sections): New struct.
1598 (dwp_hash_table): New fields version, nr_columns. Change type of
1599 section_pool field to a union.
1600 (dwp_file): New field version.
1601 (dwarf2_has_info): Check for virtual sections.
1602 (get_containing_section): New function.
1603 (get_section_bfd_owner, get_section_bfd_section): Call it.
1604 (dwarf2_locate_sections): Update.
1605 (dwarf2_section_empty_p): Update.
1606 (dwarf2_read_section): Handle virtual sections.
1607 (locate_dwz_sections): Update.
1608 (create_dwp_hash_table): Document and handle V2 format.
1609 (locate_v1_virtual_dwo_sections): Renamed from
1610 locate_virtual_dwo_sections and update. All callers updated.
1611 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1612 Delete arg htab. Rename arg section_index to unit_index.
1613 All callers updated.
1614 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1615 All uses updated.
1616 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1617 (lookup_dwo_unit_in_dwp): Add V2 support.
1618 (dwarf2_locate_dwo_sections): Update.
1619 (dwarf2_locate_common_dwp_sections): Renamed from
1620 dwarf2_locate_dwp_sections and update. All callers updated.
1621 (dwarf2_locate_v2_dwp_sections): New function.
1622 (open_and_init_dwp_file): Add V2 support.
1623 (read_str_index): New locals str_section, str_offsets_section.
1624
9a2c3737
PA
16252013-10-04 Pedro Alves <palves@redhat.com>
1626
1627 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1628 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1629 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1630 describing comments with references to ptid.h.
1631 * common/ptid.h: Remove intro description of constructors,
1632 accessors and predicates.
1633 (struct ptid): Reformat.
1634 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1635 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1636 describing comments.
1637
f5371440
JB
16382013-10-04 Joel Brobecker <brobecker@adacore.com>
1639
1640 * aix-thread.c (sync_threadlists): Add missing ')' in call
1641 to ptid_build.
1642
793e1c06
JB
16432013-10-04 Joel Brobecker <brobecker@adacore.com>
1644
1645 * procfs.c (procfs_init_inferior): Fix typo causing the build
1646 to fail.
1647
26f0edc1
JB
16482013-10-04 Joel Brobecker <brobecker@adacore.com>
1649
1650 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1651
5713b9b5
JB
16522013-10-04 Joel Brobecker <brobecker@adacore.com>
1653
1654 * mi/mi-main.c (run_one_inferior): Add function description.
1655 Make ARG a pointer to an integer whose value determines whether
1656 we should "run" or "start" the program.
1657 (mi_cmd_exec_run): Add handling of the "--start" option.
1658 Reject all other command-line options.
1659 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1660
f48ff2a7
YQ
16612013-10-04 Yao Qi <yao@codesourcery.com>
1662
1663 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1664 (struct notif_client) <pending_event>: Moved
1665 to struct remote_notif_state.
1666 <id>: New field.
1667 (struct remote_notif_state) <pending_event>: New field.
1668 (notif_event_xfree): Declare.
1669 * remote-notif.c (handle_notification): Adjust.
1670 (notif_event_xfree): New function.
1671 (do_notif_event_xfree): Call notif_event_xfree.
1672 (remote_notif_state_xfree): Call notif_event_xfree to free
1673 each element in field pending_event.
1674 * remote.c (discard_pending_stop_replies): Remove declaration.
1675 (discard_pending_stop_replies_in_queue): Declare.
1676 (remote_close): Call discard_pending_stop_replies_in_queue
1677 instead of discard_pending_stop_replies.
1678 (remote_start_remote): Adjust.
1679 (stop_reply_xfree): Call notif_event_xfree.
1680 (notif_client_stop): Adjust initialization.
1681 (remote_notif_remove_all): Rename it to ...
1682 (remove_stop_reply_for_inferior): ... this. Update comments.
1683 Don't check INF is NULL.
1684 (discard_pending_stop_replies): Return early if notif_state is
1685 NULL. Adjust. Don't check INF is NULL.
1686 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 1687 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
1688 (remote_wait_ns): Likewise.
1689
5965e028
YQ
16902013-10-04 Yao Qi <yao@codesourcery.com>
1691
1692 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1693 (notif_queue): Remove.
1694 (remote_notif_process): Add one parameter 'notif_queue'.
1695 Update comments. Callers update.
1696 (remote_async_get_pending_events_token): Remove.
1697 (remote_notif_register_async_event_handler): Remove.
1698 (remote_notif_unregister_async_event_handler): Remove.
1699 (handle_notification): Add parameter 'notif_queue'. Update
1700 comments. Callers update.
1701 (notif_xfree): Remove.
1702 (remote_notif_state_allocate): New function.
1703 (remote_notif_state_xfree): New function.
1704 (_initialize_notif): Remove code to allocate queue.
1705 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1706 (struct remote_notif_state): New.
1707 (handle_notification): Update declaration.
1708 (remote_notif_process): Likewise.
1709 (remote_notif_register_async_event_handler): Remove.
1710 (remote_notif_unregister_async_event_handler): Remove.
1711 (remote_notif_state_allocate): Declare.
1712 (remote_notif_state_xfree): Declare.
1713 * remote.c (struct remote_state) <notif_state>: New field.
1714 (remote_close): Don't call
1715 remote_notif_unregister_async_event_handler. Call
1716 remote_notif_state_xfree.
1717 (remote_open_1): Don't call
1718 remote_notif_register_async_event_handler. Call
1719 remote_notif_state_allocate.
1720
5e5ac9a5
YQ
17212013-10-04 Yao Qi <yao@codesourcery.com>
1722
1723 * varobj.c (create_child_with_value): Remove 'const' from the
1724 type of parameter 'name'.
1725 (varobj_add_child): Likewise.
1726 (install_dynamic_child): Remove 'const' from the type of
1727 parameter 'name'.
1728 (varobj_add_child): Likewise.
1729 (create_child_with_value): Likewise. Update comments. Don't
1730 duplicate 'name'.
1731 (update_dynamic_varobj_children): Duplicate 'name'
1732 and pass it to install_dynamic_child.
1733
06ab7b19
PM
17342013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1735
1736 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1737 conversion logic to occur after PyLong_Check. Comment on order
1738 change significance.
1739 * python/py-arch.c (archpy_disassemble): Comment on order of
1740 conversion for integers and longs.
1741
8ae377e8
PA
17422013-10-03 Pedro Alves <palves@redhat.com>
1743
1744 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1745 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1746 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1747 PTRACE_O_TRACEFORK is not supported.
1748 (linux_test_for_tracesysgood): New function.
1749 (linux_test_for_tracefork): New function, factored out from
1750 linux_check_ptrace_features, and also don't kill child_pid here.
1751
b1328b1b
TG
17522013-10-03 Tristan Gingold <gingold@adacore.com>
1753
1754 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1755 Remove verbose error reporting. Use detected state to
1756 thread_set_state call.
1757 (i386_darwin_dr_get): Fix return type. Remove verbose error
1758 report.
1759 Remove trailing spaces.
1760
901461f8
PA
17612013-10-02 Pedro Alves <palves@redhat.com>
1762
1763 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1764 val_print_optimized_out.
1765 * jv-valprint.c (java_print_value_fields): Likewise.
1766 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1767 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1768 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1769 new optimized out value.
1770 * findvar.c (address_from_register): Likewise.
1771 * frame.c (put_frame_register): Tweak error string to say the
1772 register was not saved, rather than optimized out.
1773 * infcmd.c (default_print_one_register_info): Adjust call to
1774 val_print_optimized_out. Use value_of_register instead of
1775 get_frame_register_value.
1776 * mi/mi-main.c (output_register): Use value_of_register instead of
1777 get_frame_register_value.
1778 * valprint.c (valprint_check_validity): Likewise.
1779 (val_print_optimized_out): New value parameter. If the value is
1780 lval_register, print <not saved> instead.
1781 (value_check_printable, val_print_scalar_formatted): Adjust calls
1782 to val_print_optimized_out.
1783 * valprint.h (val_print_optimized_out): New value parameter.
1784 * value.c (struct value) <optimized_out>: Extend comment.
1785 (error_value_optimized_out): New function.
1786 (require_not_optimized_out): Use it. Use a different string for
1787 lval_register values.
1788 * value.h (error_value_optimized_out): New declaration.
1789 * NEWS: Mention <not saved>.
1790
042a84d9
JB
17912013-10-02 Joel Brobecker <brobecker@adacore.com>
1792
1793 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1794 strcmp to compare two symtab filenames.
1795
6b9780fb
JB
17962013-10-02 Joel Brobecker <brobecker@adacore.com>
1797
1798 * symtab.c (search_symbols_equal): Delete.
1799 (sort_search_symbols_remove_dups): Replace call to
1800 search_symbols_equal by call to compare_search_syms,
1801 adjusting as necessary.
1802
751e7549
PM
18032013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1804
1805 PR python/15579
751e7549
PM
1806 * python/python.c: Document gdb.execute command in Python help.
1807
1efd7661
PM
18082013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1809
1810 * python/py-frame.c (frame_info_to_frame_object): Use
1811 gdbpy_convert_exception. Clean up Python object on failure.
1812
562fc849
PM
18132013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1814
1815 * python/lib/gdb/command/frame_filters.py
1816 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1817 (ShowFrameFilterPriority.invoke): Ditto.
1818
d7561cbb
KS
18192013-10-01 Keith Seitz <keiths@redhat.com>
1820
1821 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1822 (parse_linespec): Make 'argptr' const.
1823 Remove temporary cast of 'argptr' to const char **.
1824 (decode_line_full): Pass const pointer to parse_linespec.
1825 (decode_line_1): Likewise.
1826 (decode_objc): Make local variable 'new_argptr' const.
1827 (find_function_symbols): Remove temporary cast to char *
1828 to find_imps.
1829 * objc-lang.c (find_imps): Make argument 'method' const.
1830 Return const.
1831 * objc-lang.h (find_imps): Likewise.
1832
18332013-10-01 Keith Seitz <keiths@redhat.com>
1834
1835 * completer.c (skip_quoted_chars): Make all arguments const.
1836 Return const.
1837 (skip_quoted): Likewise.
1838 * completer.h (skip_quoted_chars): Likewise.
1839 (skip_quoted): Likewise.
1840 * defs.h (skip_quoted): Remove duplicate declaration.
1841 * jv-exp.y: Include completer.h.
1842 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1843 * p-exp.y: Include completer.h.
1844
18452013-10-01 Keith Seitz <keiths@redhat.com>
1846
1847 * c-exp.y (parse_number): Make first argument const.
1848 Make a copy of the input to manipulate.
1849 (c_parse_escape): Make first argument const.
1850 Make local variable 'tokptr' const.
1851 (parse_string_or_char): Make first two arguments const.
1852 (macro_original_text): Make const.
1853 (lex_one_token): Make local variable 'tokstart' const.
1854 Likewise for local variables named 'p'.
1855 Cast away const for struct stoken (temporary).
1856 * c-lang.h (c_parse_escpae): Make first argument const.
1857 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1858 const.
1859 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1860 var_string case.
1861 * f-exp.y (parse_number): Make first argument const.
1862 (match_string_literal): Make local variable 'tokstart'
1863 const.
1864 (yylex): Make local variable 'p' const.
1865 Cast away const for struct stoken (temporary).
1866 * go-exp.y (parse_number): Make first argument const.
1867 (parse_string_or_char): Likewise.
1868 Make local variable 'tokstart' const.
1869 (lex_one_token): Likewise for numerous locals called 'p'.
1870 Cast away const for struct stoken (temporary).
1871 * jv-exp.y (parse_number): Make first argument const.
1872 Make local variables 'tokstart' and 'tokptr' const.
1873 Cast away const for call to skip_quoted (temporary).
1874 (yylex): Make local variable 'p' const.
1875 Cast away const for struct stoken (temporary).
1876 * m2-exp.y (parse_number): Make local variable 'p' const.
1877 (yylex): Likewise for 'tokstart'.
1878 Cast away const for struct stoken (temporary).
1879 Make local variable 'p' const.
1880 * macroexp.c (get_character_constant): Pass a const string
1881 to c_parse_escape.
1882 (get_string_literal): Likewise.
1883 (macro_expand_next): Make first argument const.
1884 Cast away const for init_shared_buffer.
1885 * macroexp.h (macro_expand_next): Make first argument const.
1886 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1887 Pass a const string to c_parse_escape.
1888 Make local variables 'p' and 'namestart' const.
1889 * parse.c (lexptr): Make const.
1890 (prev_lexptr): Likewise.
1891 (find_template_name_end): Return const.
1892 Make argument const, too.
1893 (parse_exp_in_context): Make first argument const.
1894 Remove the entire const_hack.
1895 (parse_exp_in_context_1): Make first argument const.
1896 * parser-defs.h (find_template_name_end): Return const.
1897 Make argument const, too.
1898 (lexptr): Make const.
1899 (prev_lexptr): Likewise.
1900 * utils.c (parse_escape): Make second argument const.
1901 * utils.h (parse_escape): Likewise.
1902
19032013-10-01 Keith Seitz <keiths@redhat.com>
1904
1905 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1906 is now const.
1907 (block_lookup): Make 'raw_name' and 'name' const.
1908 * ada-lex.l (processString): Update for struct stoken.ptr.
1909 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1910 (operator_stoken): Likewise.
1911 (lex_one_token): Remove temporary cast to char * for
1912 'yylval.sval.ptr'.
1913 * f-exp.y (yylex): Likewise.
1914 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1915 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1916 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1917 'yylval.sval.ptr'.
1918 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1919 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1920 * linespec.c (struct ls_parser): Make 'stream' const.
1921 (find_parameter_list_end): Make argument 'input' and local
1922 variable 'p' const.
1923 (linespec_lexer_lex_string): Make local variables 'start' and
1924 'p' const.
1925 Use skip_spaces_const instead of skip_spaces.
1926 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1927 const.
1928 (parse_linespec): Temporarily cast 'argptr' to const for
1929 'parser->lexer.stream'.
1930 * m2-exp.y (yylex): Remove temporary cast to char * for
1931 'yylval.sval.ptr'.
1932 * objc-lang.c (add_msglist): Make local variable 'p' const.
1933 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1934 (exp : STRING): Make 'sp' const.
1935 (parse_number): Make argument 'p' const.
1936 * parser-defs.h (struct stoken): Make 'ptr' const.
1937
193a8eac
DE
19382013-10-01 Doug Evans <dje@google.com>
1939
1940 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1941
2213e2be
YQ
19422013-10-01 Yao Qi <yao@codesourcery.com>
1943
1944 * varobj.c (c_value_of_root): Remove declaration.
1945 (cplus_value_of_root, java_value_of_root): Likewise.
1946 (ada_value_of_root): Likewise.
1947 (struct language_specific) <value_of_root>: Remove.
1948 (languages): Update initialization.
1949 (check_scope): Move earlier.
1950 (c_value_of_root): Move earlier and rename to ...
1951 (value_of_root_1): ... this.
1952 (value_of_root): Caller update.
1953 (cplus_value_of_root, java_value_of_root): Remove.
1954 (ada_value_of_root): Remove.
1955
c573f273
YQ
19562013-10-01 Yao Qi <yao@codesourcery.com>
1957
1958 * varobj.c (varobj_format_string): Remove "unknown".
1959 (languages): Remove the first element.
1960 * varobj.h (enum varobj_languages): Remove vlang_c.
1961
56250258
YQ
19622013-10-01 Yao Qi <yao@codesourcery.com>
1963
1964 * varobj.c (struct language_specific) <language>: Remove.
1965 (languages): Update the initialization.
1966
29f9ebfa
YQ
19672013-10-01 Yao Qi <yao@codesourcery.com>
1968
1969 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1970 "solib-target.h". Include "windows-tdep.h".
1971 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1972 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1973 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1974 windows-tdep.o to gdb_target_obs.
1975
64870a42
YQ
19762013-10-01 Yao Qi <yao@codesourcery.com>
1977
1978 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1979 "solib-target.h".
1980 (amd64_windows_init_abi): Don't call set_solib_ops and
1981 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1982 windows_init_abi instead.
1983 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1984 "solib-target.h".
1985 (i386_cygwin_init_abi): Don't call set_solib_ops,
1986 set_gdbarch_has_dos_based_file_system and
1987 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1988 windows_init_abi instead.
1989 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1990 (windows_init_abi): New function.
1991 (windows_iterate_over_objfiles_in_search_order): Make it
1992 static.
1993 * windows-tdep.h (windows_init_abi): Declare.
1994 (windows_iterate_over_objfiles_in_search_order): Remove
1995 declaration.
1996
0aebdefa
JB
19972013-10-01 Jerome Guitton <guitton@adacore.com>
1998
1999 Checked in by Joel Brobecker <brobecker@adacore.com>
2000 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2001 incomplete dictionnary instead of None in case of missing
2002 environment variables.
2003 (elinos_init): in case of an incomplete environment, best
2004 effort to load system libraries instead of abort.
2005
1c8e84b0
JB
20062013-10-01 Joel Brobecker <brobecker@adacore.com>
2007
2008 * ada-lang.c (ada_has_this_exception_support): Ignore
2009 mst_solib_trampoline minimal symbols.
2010
61d82a0d
TG
20112013-09-30 Tristan Gingold <gingold@adacore.com>
2012
2013 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2014 hardware watchpoint.
2015 (i386_darwin_dr_set): Support 32 and 64 bit states.
2016 (i386_darwin_dr_get): Likewise.
2017 (i386_darwin_dr_set_control): Make static.
2018 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2019 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2020
dfd4cc63
LM
20212013-09-30 Luis Machado <lgustavo@codesourcery.com>
2022
2023 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2024 Replace TIDGET with ptid_get_lwp.
2025 Replace GET_LWP with ptid_get_lwp.
2026 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2027 Replace BUILD_THREAD with ptid_build.
2028 Replace BUILD_LWP with ptid_build.
2029 Replace PIDGET with ptid_get_pid.
2030 Replace TIDGET with ptid_get_lwp.
2031 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2032 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2033 Replace TIDGET with ptid_get_lwp.
2034 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2035 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2036 Replace TIDGET with ptid_get_lwp.
2037 Replace GET_LWP with ptid_get_lwp.
2038 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2039 * auxv.c: Likewise.
2040 * breakpoint.c: Likewise.
2041 * common/ptid.c (ptid_is_pid): Condense check for
2042 null_ptid and minus_one_ptid.
2043 (ptid_lwp_p): New function.
2044 (ptid_tid_p): New function.
2045 * common/ptid.h: Update comments for accessors.
2046 (ptid_lwp_p): New prototype.
2047 (ptid_tid_p): New prototype.
2048 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2049 * gcore.c: Replace PIDGET with ptid_get_pid.
2050 * gdbthread.h: Likewise.
2051 * gnu-nat.c: Likewise.
2052 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2053 Replace TIDGET with ptid_get_lwp.
2054 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2055 * hppanbsd-nat.c: Likewise.
2056 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2057 Replace TIDGET with ptid_get_lwp.
2058 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2059 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2060 * infcmd.c: Likewise.
2061 * inferior.h: Likewise.
2062 * inflow.c: Likewise.
2063 * infrun.c: Likewise.
2064 * linux-fork.c: Likewise.
2065 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2066 Replace GET_PID with ptid_get_pid.
2067 Replace is_lwp with ptid_lwp_p.
2068 Replace GET_LWP with ptid_get_lwp.
2069 Replace BUILD_LWP with ptid_build.
2070
5b4e221c
MF
20712013-09-28 Mike Frysinger <vapier@gentoo.org>
2072
2073 * common/linux-btrace.c: Move sys/syscall.h out of the
2074 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2075 Also check for SYS_perf_event_open before attempting to buid.
2076
57d63ce2
DE
20772013-09-27 Doug Evans <dje@google.com>
2078
19ac8c2e
DE
2079 * dwarf2read.c (dwarf2_section_info): Add comment.
2080 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2081 All uses updated.
2082 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2083 (dwarf2_read_section): Delete unused local "header". Add section
2084 name to error message.
2085 (create_dwo_in_dwp): Tweak comment.
2086 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2087
a32a8923
DE
2088 * dwarf2read.c (die_reader_specs): Tweak comment.
2089 (get_section_bfd_owner, get_section_bfd_section): New functions.
2090 (get_section_name, get_section_file_name): New functions.
2091 (get_section_id, get_section_flags): New functions.
2092 (*): Use new functions to access section fields.
2093
57d63ce2
DE
2094 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2095 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2096 arg "htab". All callers updated.
2097 (create_debug_types_hash_table): Remove redundant copy of
2098 abbrev_section.
2099 (create_dwo_in_dwp): Tweak comments.
2100 (read_str_index): Tweak comment. Record dwarf form name in static
2101 local.
2102
3736004f
PA
21032013-09-27 Pedro Alves <palves@redhat.com>
2104
2105 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2106 (remote_filename_p): Add comment.
2107 * remote.c (remote_filename_p): Adjust to use
2108 REMOTE_SYSROOT_PREFIX.
2109 * solib.c (solib_find): When deciding whether we need to add a
2110 directory separator, check whether the sysroot is "remote:"
2111 instead of checking whether the patch has a drive spec. Add
2112 comments.
2113
5b5596ff
PA
21142013-09-27 Pedro Alves <palves@redhat.com>
2115
2116 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2117 Delete fields.
2118 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2119 directly.
2120
b5eef7aa
JK
21212013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2122
2123 Fix set debug frame output.
2124 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2125 SENTINEL_FRAME entry lower to match enum frame_type order.
2126
5b856f36
PM
21272013-09-26 Pierre Muller <muller@sourceware.org>
2128
2129 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2130 AMD64_R15_REGNUM when a register index is expected.
2131 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2132 Substitute in array.
2133 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2134 (amd64_push_arguments): Substitute in integer_regnum array.
2135
ade7ed9e
DE
21362013-09-25 Doug Evans <dje@google.com>
2137
d3e81981
DE
2138 * objfiles.c (allocate_objfile): Move comment to better place.
2139
8fb8eb5c
DE
2140 New option "set debug symfile on".
2141 * NEWS: Mention "set debug symfile".
2142 * Makefile.in (SFILES): Add symfile-debug.c.
2143 (COMMON_OBS): Add symfile-debug.o.
2144 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2145 objfile's symbol functions.
2146 * objfiles.h (objfile_set_sym_fns): Declare.
2147 * symfile-debug.c: New file.
2148 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2149 objfile's symbol functions.
2150 (reread_symbols): Ditto.
2151
c256e171
DE
2152 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2153 All uses updated.
2154 (add_symtab_fns): Update prototype.
2155 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2156 (registered_sym_fns): ... this.
2157 (symtab_fns): Update.
2158 (add_symtab_fns): New arg "flavour". All callers updated.
2159 (find_sym_fns): Rewrite to use new sym_fns registry.
2160
f56ce883
DE
2161 * symfile.h (struct sym_fns): Add "objfile" argument to
2162 sym_read_linetable. All uses updated.
2163
20c681d1
DE
2164 * symtab.c (domain_name, search_domain_name): New functions.
2165 * symtab.h (domain_name, search_domain_name): Declare.
2166
ade7ed9e
DE
2167 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2168 map_matching_symbols so objfile is first. All uses updated.
2169 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2170 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2171
7d760051
UW
21722013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2173
2174 PR shlibs/8882
2175 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2176 link map entries.
2177
020f7036
DE
21782013-09-24 Doug Evans <dje@google.com>
2179
2180 * objfiles.c (free_objfile): Move comment.
2181
598402f0
JB
21822013-09-24 Joel Brobecker <brobecker@adacore.com>
2183
2184 * ada-exp.y (string_to_operator): Delete.
2185 (dummy_string_to_ada_operator): Delete.
2186
bf4d6c1c
JB
21872013-09-24 Joel Brobecker <brobecker@adacore.com>
2188
2189 Revert:
2190 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2191 amd64-tdep.c.
2192 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2193 call_dummy_integer_regs, and classify.
2194 * amd64-tdep.h (amd64_classify): Add declaration.
2195 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2196 (amd64_reg_class): Delete, moved to i386-tdep.h.
2197 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2198 Replace call to amd64_classify by call to tdep->classify.
2199 (amd64_push_arguments): Get the list of registers to use for
2200 passing integer parameters from the gdbarch tdep structure,
2201 rather than using a hardcoded one. Replace calls to amd64_classify
2202 by calls to tdep->classify.
2203 (amd64_push_dummy_call): Get the register number used for
2204 the "hidden" argument from tdep->call_dummy_integer_regs.
2205 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2206 and tdep->call_dummy_integer_regs. Set tdep->classify.
2207
849e9755
JB
22082013-09-24 Joel Brobecker <brobecker@adacore.com>
2209
2210 Revert:
2211 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2212 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2213 where tdep->memory_args_by_pointer is non-zero.
2214
c1459fd6
JB
22152013-09-24 Joel Brobecker <brobecker@adacore.com>
2216
2217 Revert:
2218 * i386-tdep.h (struct gdbarch_tdep): Add new field
2219 integer_param_regs_saved_in_caller_frame.
2220 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2221 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2222
20c2e3e0
JB
22232013-09-24 Joel Brobecker <brobecker@adacore.com>
2224
874440b8 2225 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2226 (amd64_windows_classify): Delete.
2227 (amd64_windows_passed_by_integer_register)
2228 (amd64_windows_passed_by_xmm_register)
2229 (amd64_windows_passed_by_pointer)
2230 (amd64_windows_adjust_args_passed_by_pointer)
2231 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2232 (amd64_windows_push_dummy_call): New functions.
2233 (amd64_windows_init_abi): Remove setting of
2234 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2235 tdep->classify, tdep->memory_args_by_pointer and
2236 tdep->integer_param_regs_saved_in_caller_frame.
2237 Add call to set_gdbarch_push_dummy_call.
2238
82bf32bc
JK
22392013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2240
2241 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2242 objfile->original_name.
2243
24ba069a
JK
22442013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2245
2246 Pass down original filename for objfile.
2247 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2248 * elfread.c (elf_symfile_read): Likewise.
2249 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2250 longer set ORIGINAL_NAME.
2251 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2252 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2253 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2254 symbol_file_add_from_bfd call.
2255 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2256 (macho_check_dsym): Add parameter filenamep. Change function comment.
2257 Set *filenamep.
2258 (macho_symfile_read): New variable dsym_filename. Update
2259 macho_check_dsym call. Use it for symbol_file_add_separate.
2260 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2261 it. Use it for objfile->original_name.
2262 (objfile_name): Return OBFD's filename, if available.
2263 * objfiles.h (allocate_objfile): Add new parameter name.
2264 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2265 * symfile-mem.c (symbol_file_add_from_memory): Update
2266 symbol_file_add_from_bfd call.
2267 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2268 comment for it.
2269 (symbol_file_add_with_addrs): New parameter name, add function comment
2270 for it. Remove variable name. Update allocate_objfile call.
2271 (symbol_file_add_separate): New parameter name, add function comment
2272 for it. Update symbol_file_add_with_addrs call.
2273 (symbol_file_add_from_bfd): New parameter name. Update
2274 symbol_file_add_with_addrs call.
2275 (symbol_file_add): Update symbol_file_add_from_bfd call.
2276 (reread_symbols): New variable original_name. Save
2277 objfile->original_name by it.
2278 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2279 second parameter.
2280
4262abfb
JK
22812013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2282
2283 Code cleanup: Add objfile_name accessor function.
2284 * ada-lang.c (is_known_support_routine): Use objfile_name.
2285 * auto-load.c (source_gdb_script_for_objfile)
2286 (auto_load_objfile_script): Likewise.
2287 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2288 * dbxread.c (dbx_symfile_read): Likewise.
2289 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2290 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2291 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2292 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2293 (lookup_dwp_signatured_type, lookup_dwo_unit)
2294 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2295 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2296 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2297 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2298 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2299 (read_subrange_type, load_partial_dies, read_partial_die)
2300 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2301 (die_containing_type, build_error_marker_type, lookup_die_type)
2302 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2303 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2304 (get_DW_AT_signature_type, write_psymtabs_to_index)
2305 (save_gdb_index_command): Likewise.
2306 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2307 Likewise.
2308 * expprint.c (dump_subexp_body_standard): Likewise.
2309 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2310 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2311 original_name.
2312 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2313 obj_name, use objfile_name for it, use the variable.
2314 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2315 Use objfile_name.
2316 * machoread.c (macho_symtab_read, macho_check_dsym)
2317 (macho_symfile_relocate): Likewise.
2318 * maint.c (maintenance_translate_address): Likewise.
2319 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2320 * minsyms.c (install_minimal_symbols): Likewise.
2321 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2322 original_name.
2323 (filter_overlapping_sections): Use objfile_name.
2324 (objfile_name): New function.
2325 * objfiles.h (struct objfile): Rename field name to original_name.
2326 (objfile_name): New prototype.
2327 * printcmd.c (sym_info, address_info): Use objfile_name.
2328 * probe.c (parse_probes, collect_probes, compare_probes)
2329 (info_probes_for_ops): Likewise.
2330 * progspace.c (clone_program_space): Likewise.
2331 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2332 (maintenance_info_psymtabs): Likewise.
2333 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2334 (source_section_scripts): Likewise.
2335 * python/py-objfile.c (objfpy_get_filename): Likewise.
2336 * python/py-progspace.c (pspy_get_filename): Likewise.
2337 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2338 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2339 * solib.c (solib_read_symbols): Likewise.
2340 * stabsread.c (scan_file_globals): Likewise.
2341 * stap-probe.c (handle_stap_probe): Likewise.
2342 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2343 (find_separate_debug_file_by_debuglink): Likewise.
2344 (reread_symbols): Likewise. Use the objfile field name renamed to
2345 original_name.
2346 (allocate_symtab): Use objfile_name.
2347 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2348 (dump_objfile, dump_msymbols, dump_symtab_1)
2349 (maintenance_print_msymbols, maintenance_print_objfiles)
2350 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2351 * target.c (target_translate_tls_address, target_info): Likewise.
2352 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2353 objfile_name.
2354
4721dc18
JK
23552013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2356
2357 Code cleanup.
2358 * probe.c (parse_probes): Rename variable objfile_name to
2359 objfile_namestr.
2360
a61d6db8
JK
23612013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2362
2363 Remove solib-sunos.c.
2364 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2365 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2366 * objfiles.c (rt_common_objfile): Remove.
2367 (free_objfile): Remove rt_common_objfile comparison.
2368 * objfiles.h (rt_common_objfile): Remove.
2369 * solib-sunos.c: Remove.
2370 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2371
2659903b
JK
23722013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2373
2374 Remove a.out NetBSD and OpenBSD hosts.
2375 * NEWS (Removed native configurations): New.
2376 * config/arm/nbsdaout.mh: Remove.
2377 * config/i386/nbsdaout.mh: Remove.
2378 * config/i386/obsdaout.mh: Remove.
2379 * config/m68k/nbsdaout.mh: Remove.
2380 * config/sparc/nbsdaout.mh: Remove.
2381 * config/vax/nbsdaout.mh: Remove.
2382 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2383 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2384 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2385 error.
2386 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2387 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2388 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2389
f60e2d5c
TT
23902013-09-23 Tom Tromey <tromey@redhat.com>
2391
2392 * linespec.c (struct minsym_and_objfile): Remove.
2393 (minsym_and_objfile_d): Remove.
2394 (struct linespec, struct collect_info, linespec_parse_basic)
2395 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2396 (compare_msymbols, find_method, find_function_symbols)
2397 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2398 (add_minsym, search_minsyms_for_name): Update.
2399
d3eaaf66
AB
24002013-09-23 Andrew Burgess <aburgess@broadcom.com>
2401
2402 * regcache.c: Add include of valprint.h.
2403 (dump_endian_bytes): Delete.
2404 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2405
2cc762b5
AB
24062013-09-23 Andrew Burgess <aburgess@broadcom.com>
2407
2408 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2409
96181529
PA
24102013-09-19 Pedro Alves <palves@redhat.com>
2411
2412 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2413 breakpoints.
2414
9b3f3ee6
TS
24152013-09-19 Pedro Alves <palves@redhat.com>
2416 Thomas Schwinge <thomas@codesourcery.com>
2417 Yue Lu <hacklu.newborn@gmail.com>
2418
2419 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2420 Take a gdb_byte pointer instead of a char pointer.
2421
2422 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2423 gnu_xfer_partial helper.
2424 (gnu_xfer_partial): New function.
2425 (gnu_target): Don't install a deprecated_xfer_memory hook.
2426 Install a to_xfer_partial hook.
2427
69150c3d
JK
24282013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2429
2430 Constification.
2431 * main.c (captured_main): Replace catch_command_errors by
2432 catch_command_errors_const. Twice.
2433 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2434 (symbol_file_add): Make name parameter const.
2435 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2436 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2437 variable name. Change their usage accordingly.
2438 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2439 const.
2440 (symbol_file_add_main): Make args parameter const.
2441
086850b2
UW
24422013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2443 Ulrich Weigand <uweigand@de.ibm.com>
2444
2445 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2446 of c_value member.
2447 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2448
ca08a94c 24492013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2450 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2451
2452 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2453 (gnu_create_inferior)
2454 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2455 (set_sig_thread_cmd): Use the lwpid field of ptids to
2456 store/extract thread ids instead of the tid field.
2457 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2458
e4c6a2c4
AB
24592013-09-18 Andrew Burgess <aburgess@broadcom.com>
2460
2461 * infcmd.c (default_print_one_register_info): Add detection of
2462 optimized out values.
2463 (default_print_registers_info): Switch to using
2464 get_frame_register_value.
2465
58c48e72
MM
24662013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2467
2468 * infrun.c (handle_inferior_event): Check if we know the
2469 function start address before setting a resume breakpoint.
2470
c8d37639
PA
24712013-09-18 Pedro Alves <palves@redhat.com>
2472
2473 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2474 minus_one_ptid instead of looking at the ptid's tid field and
2475 comparing that to -1.
2476
71926e28
AB
24772013-09-18 Andrew Burgess <aburgess@broadcom.com>
2478
2479 * main.h (get_gdb_program_name): Remove extra whitespace.
2480
c88a1531
AB
24812013-09-18 Andrew Burgess <aburgess@broadcom.com>
2482
2483 * main.h (get_gdb_program_name): Add declaration.
2484 * main.c (get_gdb_program_name): Add definition.
2485
4390d890
DE
24862013-09-17 Doug Evans <dje@google.com>
2487
2488 * dwarf2read.c: Move definitions of complaint functions to after
2489 forward declarations of local functions.
2490
49fa26b0
PA
24912013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2492 Pedro Alves <palves@redhat.com>
2493
2494 PR gdb/11568
2495 * breakpoint.c (remove_threaded_breakpoints): New function.
2496 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2497 as thread_exit observer.
2498
08d72866
PA
24992013-09-17 Pedro Alves <palves@redhat.com>
2500
2501 PR gdb/15911
2502 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2503 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2504 * corelow.c (core_open):
2505 * frame.h (print_stack_frame, print_frame_info): New
2506 'set_current_sal' parameter.
2507 * infcmd.c (finish_command, kill_command): Adjust call to
2508 print_stack_frame.
2509 * inferior.c (inferior_command): Likewise.
2510 * infrun.c (normal_stop): Likewise.
2511 * linux-fork.c (linux_fork_context): Likewise.
2512 * record-full.c (record_full_goto_entry, record_full_restore):
2513 Likewise.
2514 * remote-mips.c (common_open): Likewise.
2515 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2516 Use it.
2517 (print_frame_info): New 'set_current_sal' parameter. Set the last
2518 displayed sal depending on the new paremeter instead of looking at
2519 print_what.
2520 (backtrace_command_1, select_and_print_frame, frame_command)
2521 (current_frame_command, up_command, down_command): Adjust call to
2522 print_stack_frame.
2523 * thread.c (print_thread_info, restore_selected_frame)
2524 (do_captured_thread_select): Adjust call to print_stack_frame.
2525 * tracepoint.c (tfind_1): Likewise.
2526 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2527 (mi_cmd_stack_info_frame): Likewise.
2528 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2529 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2530
6bc305f5
SDJ
25312013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2532
2533 * value.c (isvoid_internal_fn): Replace "parameter" with
2534 "argument".
2535
0a7cfe2c
SS
25362013-09-16 Stan Shebs <stan@codesourcery.com>
2537
2538 * README: Update references to writing code for GDB.
2539 * configure.ac (build_warnings): Remove obsolete comment.
2540 * configure: Regenerate.
2541 * gdbarch.sh: Remove references to gdbint.texinfo.
2542 * gdbarch.h: Regenerate.
2543 * gdbtypes.c (objfile_type): Remove comments referencing internals
2544 manual and D10V.
2545
a280dbd1
SDJ
25462013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2547
2548 * NEWS: Mention new convenience function $_isvoid.
2549 * value.c (isvoid_internal_fn): New function.
2550 (_initialize_values): Add new convenience function $_isvoid.
2551
04a83fee
PM
25522013-09-16 Pierre Muller <muller@sourceware.org>
2553
2554 * arm-linux-tdep.c: Add "elf/common.h" header.
2555 Remove AT_HWCAP macro definintion as it is provided in
2556 added include file.
2557 * s390-tdep.c: Remove system header <elf.h>
2558 Add "elf/common.h" header for AT_HWCAP definition.
2559 (s390_core_read_description): Use correct CORE_ADDR
2560 for hwcap local variable used as third parameter
2561 of function target_auxv_search.
2562
88505fac
PM
25632013-09-14 Pierre Muller <muller@sourceware.org>
2564 Tom Tromey <tromey@redhat.com>
2565 Pedro Alves <palves@redhat.com>
2566
2567 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2568 mode if operating system doesn't know O_CLOEXEC.
2569
d3846e71
JK
25702013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2571
2572 Code cleanup.
2573 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2574 inner block.
2575
4ac33720
UW
25762013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2577
2578 * NEWS: Mention TDB support.
2579 * features/s390-tdb.xml: New file.
2580 * features/s390-te-linux64.xml: New file.
2581 * features/s390x-te-linux64.xml: New file.
2582 * features/Makefile (WHICH): Add new tdescs above.
2583 (s390-te-linux64-expedite): Set.
2584 (s390x-te-linux64-expedite): Set.
2585 * features/s390-te-linux64.c: New file (generated).
2586 * features/s390x-te-linux64.c: New file (generated).
2587 * regformats/s390-te-linux64.dat: New file (generated).
2588 * regformats/s390x-te-linux64.dat: New file (generated).
2589 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2590 (HWCAP_S390_TE): Likewise.
2591 (S390_TDB_DWORD0_REGNUM): Likewise.
2592 (S390_TDB_DWORD0_REGNUM): Likewise.
2593 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2594 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2595 (S390_TDB_ATIA_REGNUM): Likewise.
2596 (S390_TDB_R0_REGNUM): Likewise.
2597 (S390_TDB_R1_REGNUM): Likewise.
2598 (S390_TDB_R2_REGNUM): Likewise.
2599 (S390_TDB_R3_REGNUM): Likewise.
2600 (S390_TDB_R4_REGNUM): Likewise.
2601 (S390_TDB_R5_REGNUM): Likewise.
2602 (S390_TDB_R6_REGNUM): Likewise.
2603 (S390_TDB_R7_REGNUM): Likewise.
2604 (S390_TDB_R8_REGNUM): Likewise.
2605 (S390_TDB_R9_REGNUM): Likewise.
2606 (S390_TDB_R10_REGNUM): Likewise.
2607 (S390_TDB_R11_REGNUM): Likewise.
2608 (S390_TDB_R12_REGNUM): Likewise.
2609 (S390_TDB_R13_REGNUM): Likewise.
2610 (S390_TDB_R14_REGNUM): Likewise.
2611 (S390_TDB_R15_REGNUM): Likewise.
2612 (S390_NUM_REGS): Increase.
2613 (S390_IS_TDBREGSET_REGNUM): New macro.
2614 (s390_regmap_tdb): Declare.
2615 (s390_sizeof_tdbregset): Define.
2616 (tdesc_s390_te_linux64): Declare.
2617 (tdesc_s390x_te_linux64): Likewise.
2618 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2619 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2620 (s390_regmap_tdb): New regmap.
2621 (s390_supply_tdb_regset): New function.
2622 (s390_tdb_regset): New regset.
2623 (s390_linux64v2_regset_sections): Add TDB regset to list.
2624 (s390x_linux64v2_regset_sections): Likewise.
2625 (s390_regset_from_core_section): Recognize TDB core note section.
2626 (s390_core_read_description): If HWCAP indicates TE support,
2627 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2628 (s390_gdbarch_init): Handle TDB regset.
2629 (_initialize_s390_tdep): Initialize new tdescs.
2630 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2631 (have_regset_tdb): New variable.
2632 (s390_native_supply): Support register invalidation.
2633 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2634 (check_regset): Treat ENODATA as "regset exists".
2635 (s390_linux_fetch_inferior_registers): Add TDB.
2636 (s390_read_description): Check for TDB existence and select
2637 appropriate tdesc.
2638 * gdbserver/Makefile.in (clean): Add removal of new makefile
2639 targets.
2640 (s390-te-linux64.c): New makefile target.
2641 (s390x-te-linux64.c): Likewise.
2642 * gdbserver/configure.srv (srv_regobj): Append new objects
2643 s390-te-linux64.o and s390x-te-linux64.o.
2644 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2645 s390x-te-linux64.xml, and s390-tdb.xml.
2646 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2647 declaration.
2648 (tdesc_s390_te_linux64): Likewise.
2649 (init_registers_s390x_te_linux64): Likewise.
2650 (tdesc_s390x_te_linux64): Likewise.
2651 (s390_check_regset): Treat ENODATA as "regset exists".
2652 (s390_arch_setup): Add TDB regset support.
2653 (initialize_low_arch): Initialize registers for new tdescs.
2654
2ccd1468
UW
26552013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2656
2657 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2658 (S390_IS_FPREGSET_REGNUM): New macro.
2659 * s390-tdep.c (s390_dwarf_regmap): Make const.
2660 (regnum_is_gpr_full): New function for replacing repeated code.
2661 (s390_pseudo_register_name): Use it.
2662 (s390_pseudo_register_type): Likewise.
2663 (s390_pseudo_register_read): Likewise.
2664 (s390_pseudo_register_write): Likewise.
2665 (s390_unwind_pseudo_register): Likewise.
2666 (s390_regmap_gregset): New format for regmap.
2667 (s390x_regmap_gregset): Likewise.
2668 (s390_regmap_fpregset): Likewise.
2669 (s390_regmap_upper): Likewise.
2670 (s390_regmap_last_break): Likewise.
2671 (s390_regmap_system_call): Likewise.
2672 (s390_supply_regset): Adjust to new regmap format.
2673 (s390_collect_regset): Likewise.
2674 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2675 (s390_native_collect): Likewise.
2676 (supply_gregset): Likewise.
2677 (fill_gregset): Likewise.
2678 (supply_fpregset): Likewise.
2679 (fill_fpregset): Likewise.
2680 (fetch_regset): Likewise.
2681 (store_regset): Likewise.
2682 (s390_linux_fetch_inferior_registers): Likewise.
2683 (s390_linux_fetch_inferior_registers): Likewise.
2684
1aa4cd77
AP
26852013-09-12 Andrew Pinski <apinski@cavium.com>
2686
2687 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2688
d91fab15
UW
26892013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2690
2691 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2692
5a5d8ead
AB
26932013-09-09 Andrew Burgess <aburgess@broadcom.com>
2694
2695 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2696
1385f66c
PA
26972013-09-06 Pedro Alves <palves@redhat.com>
2698
2699 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2700 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2701 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2702 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2703 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2704 gdb_stdlog.
2705
146ec4db
PA
27062013-09-06 Pedro Alves <palves@redhat.com>
2707
2708 * remote-sim.c (dump_mem): Constify buf parameter.
2709 gdbsim_xfer_inferior_memory): Rename to ...
2710 (gdbsim_xfer_memory): ... this. Adjust interface as
2711 target_xfer_partial helper.
2712 (gdbsim_xfer_partial): New function.
2713 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2714 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2715
fcde0081
PA
27162013-09-06 Pedro Alves <palves@redhat.com>
2717
2718 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2719 host_address_to_string, and send debug output to gdb_stdlog.
2720
749c8b38
RW
27212013-09-06 Ricard Wanderlof <ricardw@axis.com>
2722
2723 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2724 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2725 gdb_target_obs for cris target.
2726 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2727 (cris_gdbarch_init): Move calls to
2728 set_gdbarch_fetch_tls_load_module_address and
2729 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2730 Add call to gdbarch_init_osabi.
2731 * cris-linux-tdep.c: New file.
2732 * cris-tdep.h: New file.
2733
43df09d9
AB
27342013-09-06 Andrew Burgess <aburgess@broadcom.com>
2735
2736 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2737 to deprecated_init_ui_hook.
2738
4d09c5b4
AB
27392013-09-06 Andrew Burgess <aburgess@broadcom.com>
2740
2741 * cli/cli-interp.c (_initialize_cli_interp): Add a
2742 command_loop_proc to interp_procs.
2743 * event-top.c (cli_command_loop): Change signature to match
2744 interp_command_loop_ftype.
2745 * event-top.h (cli_command_loop): Same.
2746 * interps.c (interp_new): Require every interpreter to have a
2747 command_loop_proc.
2748 (current_interp_command_loop): Just call the command_loop_proc on
2749 the current interpreter.
2750 * tui/tui-interp.c (_initialize_tui_interp): Add a
2751 command_loop_proc to interp_procs.
2752
8eb3d7b6
RW
27532013-09-06 Ricard Wanderlof <ricardw@axis.com>
2754
2755 * cris-tdep.c (cris_gdbarch_init): Add call to
2756 get_gdbarch_fetch_tls_load_module_address.
2757
18b3c2f5
RW
27582013-09-06 Ricard Wanderlof <ricardw@axis.com>
2759
2760 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2761 (cris_elf_gregset_t): Rename from elf_gregset_t.
2762 (crisv32_elf_gregset_t): Adjust.
2763 (cris_supply_gregset, fetch_core_registers): Adjust.
2764
dc8636ef
RW
27652013-09-06 Ricard Wanderlof <ricardw@axis.com>
2766
2767 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2768
257e6d53
AB
27692013-09-05 Andrew Burgess <aburgess@broadcom.com>
2770
1581d8a7 2771 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2772 references in comments.
1581d8a7 2773 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2774 deprecated_command_loop_hook.
2775 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2776 setup.
1581d8a7 2777 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2778
7c33b57c
PA
27792013-09-05 Pedro Alves <palves@redhat.com>
2780
2781 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2782 local is now int instead of ULONGEST. Print it with %d
2783 instead of paddress.
2784
9f8edbd5
TG
27852013-09-05 Tristan Gingold <gingold@adacore.com>
2786
2787 * MAINTAINERS: Remove avr maintainership.
2788
d5b495b4
PA
27892013-09-05 Pedro Alves <palves@redhat.com>
2790
2791 * findvar.c (value_of_register): Rework in terms of
2792 value_of_register_lazy.
2793
40b91786
MB
27942013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2795
2796 * symfile.c (add_symbol_file_command): Remove trailing
2797 whitespaces and blank line after comment.
2798
6eed1678
PA
27992013-09-05 Pedro Alves <palves@redhat.com>
2800
2801 * tui/tui-regs.c (tui_register_format): Don't look at the
2802 register's name here. Return string representing register
2803 value instead of storing it in the data element.
2804 (tui_get_register): Compare register string representations
2805 instead of register value states and contents.
2806
8eb6bda2
PA
28072013-09-05 Pedro Alves <palves@redhat.com>
2808
2809 PR tui/15933
2810 * tui/tui-regs.c (tui_show_registers): Show registers of the
2811 selected frame, not the current frame.
2812
48b1f08c
RW
28132013-09-05 Ricard Wanderlof <ricardw@axis.com>
2814
2815 * MAINTAINERS (Write After Approval): Add myself to the list.
2816
89e63ee4
DE
28172013-09-04 Doug Evans <dje@google.com>
2818
2819 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2820 (queue_and_load_dwo_tu): New function.
2821 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2822 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2823 Make dependent_cu optional.
2824 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2825 and an older .gdb_index is in use, queue and load all its TUs too.
2826
492c0ab7
JK
28272013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2828
2829 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2830 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2831 variable search_flags.
2832 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2833 (OPF_RETURN_REALPATH): ... here.
2834 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2835 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2836 call. Twice.
2837 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2838 openp call.
2839 * solib.c (solib_find): Likewise. Four times.
2840 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2841 in the function comment and for the realpath_fptr variable.
2842 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2843 (find_and_open_source): Likewise. Twice.
2844 * symfile.c (symfile_bfd_open): Likewise, also twice.
2845
23a44de8
DE
28462013-09-04 Doug Evans <dje@google.com>
2847
2848 * progspace.c (save_current_space_and_thread): Remove unnecessary
2849 call to save_current_inferior.
2850
47061676
AB
28512013-09-04 Andrew Burgess <aburgess@broadcom.com>
2852
2853 * sh64-tdep.c (sh64_do_register): Return after printing message
2854 about unavailable register contents.
2855
41dc8db8
MB
28562013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2857 Pedro Alves <palves@redhat.com>
2858
2859 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
2860 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2861 options and collapse into single conditional branch.
41dc8db8 2862
07107ca6
LM
28632013-09-03 Luis Machado <lgustavo@codesourcery.com>
2864
a7ea61cf 2865 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2866 detach_fork.
2867 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2868 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2869 * inferior.h (detach_fork): Remove.
2870 * infrun.c (detach_fork): Adjust comment and make it
2871 static.
2872 (follow_fork): Pass detach_fork parameter to
2873 target_follow_fork.
2874 * linux-nat.c (linux_child_follow_fork): New parameter
2875 detach_fork.
2876 * target.c (target_follow_fork): New parameter detach_fork.
2877 Pass detach_fork as parameter and print its value.
2878 * target.h (struct target_ops) <to_follow_fork>: New int
2879 parameter.
2880 (target_follow_fork): New parameter detach_fork.
2881
3bec2768
JB
28822013-09-03 Joel Brobecker <brobecker@adacore.com>
2883
2884 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2885 Replace sec->bfd by sec->the_bfd_section->owner.
2886
c01cbb3d
YQ
28872013-09-03 Yao Qi <yao@codesourcery.com>
2888
2889 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2890 from linux_has_shared_address_space.
2891 (linux_has_shared_address_space): Call linux_is_uclinux.
2892 * linux-tdep.h (linux_is_uclinux): Declare.
2893 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2894 linux_is_uclinux.
2895
7b00db47
YQ
28962013-09-03 Yao Qi <yao@codesourcery.com>
2897
2898 * config/djgpp/fnchange.lst: Remove entry of
2899 i386-interix-nat.c and i386-interix-tdep.c.
2900 * configure.ac: Remove '*-*-interix*'.
2901 * configure: Re-generated.
2902 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2903 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2904 obsolete comments.
2905 * osabi.c (gdb_osabi_names): Remove "Interix".
2906
0f9741f2
YQ
29072013-09-03 Yao Qi <yao@codesourcery.com>
2908
2909 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2910
1e038f67
MM
29112013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2912
2913 * record.h (record_print_flag) <record_print_src_line,
2914 record_print_insn_range>: Rename into ...
2915 (record_print_flag) <record_print_src_line,
2916 record_print_insn_range>: ... this. Update all users.
2917
9e52adf9
PM
29182013-09-02 Pierre Muller <muller@sourceware.org>
2919
2920 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2921 error code.
2922
a2388568
PM
29232013-09-02 Pierre Muller <muller@sourceware.org>
2924
2925 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2926 by use of plongest function.
2927
9058cc3a
TG
29282013-09-02 Tristan Gingold <gingold@adacore.com>
2929
2930 * NEWS: Add entry mentioning support for native Windows x64
2931 SEH data.
2932
2933 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2934 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2935 (struct amd64_windows_frame_cache): New struct.
2936 (amd64_windows_w2gdb_regnum): New global.
2937 (pc_in_range, amd64_windows_frame_decode_epilogue)
2938 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2939 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2940 (amd64_windows_frame_this_id): New functions.
2941 (amd64_windows_frame_unwind): New static global.
2942 (amd64_windows_skip_prologue): New function.
2943 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2944 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2945 with amd64_windows_skip_prologue.
2946
3161820b 29472013-08-30 Joel Brobecker <brobecker@adacore.com>
2948
2949 GDB 7.6.1 released.
2950
02457c76
PA
29512013-08-30 Pedro Alves <palves@redhat.com>
2952
2953 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2954 SRC_AND_LOC.
2955
e0162910
PA
29562013-08-30 Pedro Alves <palves@redhat.com>
2957
2958 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2959 warning text.
2960
6391ce51
PA
29612013-08-30 Pedro Alves <palves@redhat.com>
2962
2963 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2964 Adjust arguments to print_stack_frame.
2965
d1da0587
PA
29662013-08-30 Pedro Alves <palves@redhat.com>
2967
2968 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2969
adfd8245
PA
29702013-08-30 Pedro Alves <palves@redhat.com>
2971
2972 * frame.h (show_and_print_stack_frame): Delete declaration.
2973
96d9056e
PM
29742013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2975
2976 PR python/15461
96d9056e
PM
2977 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2978 (archpy_name): Check for valid architecture.
2979 (archpy_disassemble): Ditto.
2980
11cb8762
JB
29812013-08-29 Joel Brobecker <brobecker@adacore.com>
2982
2983 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2984 instead of "long long" in call to ptrace64.
2985
1af12a7d
AB
29862013-08-29 Andrew Burgess <aburgess@broadcom.com>
2987
2988 * mi/mi-interp.c (mi_command_loop): Change signature to match
2989 interp_command_loop_ftype.
2990 (mi1_command_loop): Remove.
2991 (mi2_command_loop): Remove.
2992 (mi3_command_loop): Remove.
2993 (mi_interpreter_resume): Remove setting of
2994 deprecated_command_loop_hook.
2995 (_initialize_mi_interp): Set mi_command_loop as the command loop
2996 callback.
2997
acc900c2
SA
29982013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2999
3000 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3001 value_type.
3002
548b762d
SA
30032013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3004
3005 * value.c (allocate_value_contents): Make static.
3006 * value.h (allocate_value_contents): Remove prototype.
3007
08039c9e
SA
30082013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3009
3010 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3011 of assembling value via allocate_value_lazy and attribute setter.
3012 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3013 assembling value via allocate_value_lazy and attribute setter.
3014 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3015 assembling value via allocate_value_lazy and attribute setter.
3016
314c7de9
SA
30172013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3018
3019 * value.c (value_from_contents_and_address): Replace allocate_value and
3020 memcpy with value_from_contents.
3021
8f28f522
PM
30222013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3023
3024 * python/py-framefilter.c (py_print_frame): Remove usage of
3025 PyString_AsString. Use python_string_to_host_string instead.
3026 Refactor function to work with a string as a new allocation
3027 instead of a pointer.
3028 (py_print_frame): Ditto.
3029 * python/lib/gdb/frames.py (return_list): Cain iterators together
3030 instead of adding them as a list.
3031 (_sort_list): Call return_list, and remove duplicate code.
3032 (execute_frame_filters): Convert iterator to a list with list().
3033 * python/lib/gdb/command/frame_filters.py
3034 (SetFrameFilterPriority._set_filter_priority): Convert priority
3035 attribute to an integer.
3036 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3037 wrapper function __next__.
3038 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3039 define as "str".
3040
8ee002df
PM
30412013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3042
3043 PR python/15752
8ee002df
PM
3044 * python/py-framefilter.c (apply_frame_filter): Check
3045 gdb_python_initialized. Exit if the Python frame-filter code
3046 cannot be initialized.
3047
af4c453a
PM
30482013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3049
3050 PR cli/15842
af4c453a
PM
3051 * top.c (print_gdb_version): Remove erroneous newline after help
3052 text.
3053
bf8793bb
YQ
30542013-08-29 Yao Qi <yao@codesourcery.com>
3055
3056 * varobj.c (install_dynamic_child): Remove trailing space.
3057 Add one blank line after variable declaration.
3058
1f0c4988
JK
30592013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3060
3061 PR gdb/15415
3062 * corefile.c (get_exec_file): Use exec_filename.
3063 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3064 * exec.c (exec_close): Free EXEC_FILENAME.
3065 (exec_file_attach): New variable canonical_pathname. Use
3066 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3067 EXEC_FILENAME.
3068 * exec.h (exec_filename): New.
3069 * inferior.c (print_inferior, inferior_command): Use
3070 PSPACE_EXEC_FILENAME.
3071 * mi/mi-main.c (print_one_inferior): Likewise.
3072 * progspace.c (clone_program_space, print_program_space): Likewise.
3073 * progspace.h (struct program_space): New field pspace_exec_filename.
3074 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3075 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3076
59ee9f94
WN
30772013-08-28 Will Newton <will.newton@linaro.org>
3078
3079 * common/linux-ptrace.c: Include stdint.h unconditionally.
3080
c8a2a419
JK
30812013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3082
3083 Code cleanup.
3084 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3085
ffa4ac95
YQ
30862013-08-28 Yao Qi <yao@codesourcery.com>
3087 Pedro Alves <palves@redhat.com>
3088
3089 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3090 instead of stdio_fileopen.
3091 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3092 .Call stderr_fileopen instead of stdio_fileopen.
3093 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3094 [__MINGW32__] (stderr_file_fputs): New function.
3095 (stderr_fileopen): New function.
3096 * ui-file.h (stderr_fileopen): Declare.
3097
69d751e3
DE
30982013-08-27 Doug Evans <dje@google.com>
3099
3100 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3101 (struct dwarf2_per_cu_data): Ditto.
3102 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3103 (process_imported_unit_die): Ditto.
3104 (follow_die_sig_1): Simplify assert.
3105
44f38867
PA
31062013-08-27 Pedro Alves <palves@redhat.com>
3107
3108 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3109 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3110 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3111 windows_xfer_memory directly.
3112 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3113
d28d46b5
PA
31142013-08-27 Pedro Alves <palves@redhat.com>
3115
3116 * darwin-nat.c (darwin_xfer_memory): Delete.
3117 (_initialize_darwin_inferior): Don't install a
3118 deprecated_xfer_memory method.
3119
6211c335
YQ
31202013-08-27 Pedro Alves <pedro@codesourcery.com>
3121 Yao Qi <yao@codesourcery.com>
3122
3123 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3124 (parse_no_frames_option): Remove.
3125 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3126 (mi_cmd_stack_list_args): Adjust.
3127 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3128 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3129 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3130 Caller update.
3131 (list_args_or_locals): New parameter 'skip_unavailable'.
3132 Handle it.
3133 * valprint.c (scalar_type_p): Rename to ...
3134 (val_print_scalar_type_p): ... this. Make extern.
3135 (val_print, value_check_printable): Adjust.
3136 * valprint.h (val_print_scalar_type_p): Declare.
3137 * value.c (value_entirely_unavailable): New function.
3138 * value.h (value_entirely_unavailable): Declare.
3139
3140 * NEWS: Mention the new option "--skip-unavailable" to MI
3141 commands '-stack-list-locals', '-stack-list-arguments' and
3142 '-stack-list-variables'.
3143
242f1fd7
YQ
31442013-08-27 Yao Qi <yao@codesourcery.com>
3145
3146 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3147 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3148 options.
3149 * mi/mi-getopt.c (mi_getopt): Remove.
3150 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3151 'error_on_unknown'.
3152 (mi_getopt): Call mi_getopt_1.
3153 (mi_getopt_silent): New.
3154 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3155
260b681b
DE
31562013-08-26 Doug Evans <dje@google.com>
3157
779bd270
DE
3158 PR symtab/15885
3159 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3160 .gdb_index is in use.
3161 * symfile.c (reread_symbols): Reset objfile->sf.
3162
52e260a3
DE
3163 * NEWS: Document "mt print objfiles" now takes optional regexp.
3164 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3165 regexp of objfiles to print.
3166 (_initialize_symmisc): Update doc string for "mt print objfiles".
3167
260b681b
DE
3168 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3169 missing debug info checks.
3170
a85c52f2
UW
31712013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3172 Ulrich Weigand <uweigand@de.ibm.com>
3173
3174 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3175 line tables generated by XLC compiled binaries.
3176
4f00dda3
DE
31772013-08-23 Doug Evans <dje@google.com>
3178
db68bbae
DE
3179 * symmisc.c (dump_symtab): Delete prototype.
3180 (dump_msymbols, dump_objfile): Ditto.
3181 (maintenance_info_symtabs): Mark as dont_repeat.
3182 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3183
4f00dda3
DE
3184 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3185 debugging printf to better location.
3186
23d577b0
PA
31872013-08-23 Pedro Alves <palves@redhat.com>
3188
3189 * target.c (target_read_live_memory): Change type of 'ret' local
3190 to LONGEST.
3191
00d84524
PA
31922013-08-23 Pedro Alves <palves@redhat.com>
3193
3194 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3195 (remote_read_bytes): Change return type to LONGEST, and adjust to
3196 return a target_xfer_error on error.
3197 (remote_xfer_memory): Delete.
3198 (remote_flash_write): Change type of 'ret' local to LONGEST.
3199 (remote_xfer_partial, remote_xfer_partial): Adjust.
3200 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3201
1ed3ee94
PM
32022013-08-23 Pierre Muller <muller@sourceware.org>
3203
3204 ARI fix: Push # directives to start of line.
3205 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3206
9eaabc75
MW
32072013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3208
3209 PR gdb/15501
3210 * breakpoint.c (enable_command, disable_command): Iterate over
3211 all specified breakpoint locations.
3212
101158d9
LM
32132013-08-22 Luis Machado <lgustavo@codesourcery.com>
3214
3215 * common/linux-ptrace.c (linux_fork_to_function): Push #
3216 directives to the start of the line.
3217 (linux_check_ptrace_features): Fix warning message to use
3218 the "_" markup.
3219
96d7229d
LM
32202013-08-22 Luis Machado <lgustavo@codesourcery.com>
3221
3222 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3223 nat/linux-waitpid.h.
3224 (linux-waitpid.o): New object file rule.
3225 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3226 (current_ptrace_options): Moved from linux-nat.c.
3227 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3228 parameters.
3229 (linux_fork_to_function): New function.
3230 (linux_grandchild_function): Likewise.
3231 (linux_child_function): Likewise.
3232 (linux_check_ptrace_features): New function, heavily
3233 based on linux-nat.c:linux_test_for_tracefork.
3234 (linux_enable_event_reporting): New function.
3235 (ptrace_supports_feature): Likewise.
3236 (linux_supports_tracefork): Likewise.
3237 (linux_supports_traceclone): Likewise.
3238 (linux_supports_tracevforkdone): Likewise.
3239 (linux_supports_tracesysgood): Likewise.
3240 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3241 gdbserver/linux-low.c.
3242 (linux_enable_event_reporting): New declaration.
3243 (linux_supports_tracefork): Likewise.
3244 (linux_supports_traceclone): Likewise.
3245 (linux_supports_tracevforkdone): Likewise.
3246 (linux_supports_tracesysgood): Likewise.
3247 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3248 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3249 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3250 * config/arm/linux.mh (NATDEPFILES): Likewise.
3251 * config/i386/linux.mh (NATDEPFILES): Likewise.
3252 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3253 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3254 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3255 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3256 * config/mips/linux.mh (NATDEPFILES): Likewise.
3257 * config/pa/linux.mh (NATDEPFILES): Likewise..
3258 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3259 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3260 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3261 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3262 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3263 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3264 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3265 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3266 ptrace's 4th argument's types.
3267 Check the type of PTRACE_TYPE_ARG4.
3268 * configure: Regenerate.
3269 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3270 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3271 (linux_supports_tracefork_flag): Remove.
3272 (linux_supports_tracesysgood_flag): Likewise.
3273 (linux_supports_tracevforkdone_flag): Likewise.
3274 (current_ptrace_options): Moved to
3275 common/linux-ptrace.c.
3276 (linux_tracefork_child): Remove.
3277 (my_waitpid): Remove.
3278 (linux_test_for_tracefork): Renamed to
3279 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3280 (linux_test_for_tracesysgood): Remove.
3281 (linux_supports_tracesysgood): Remove.
3282 (linux_supports_tracefork): Remove.
3283 (linux_supports_tracevforkdone): Remove.
3284 (linux_enable_tracesysgood): Remove.
3285 (linux_enable_event_reporting): Remove.
3286 (linux_init_ptrace): New function.
3287 (linux_child_post_attach): Call linux_init_ptrace.
3288 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3289 (linux_child_follow_fork): Call linux_supports_tracefork
3290 and linux_supports_tracevforkdone.
3291 (linux_child_insert_fork_catchpoint): Call
3292 linux_supports_tracefork.
3293 (linux_child_insert_vfork_catchpoint): Likewise.
3294 (linux_child_set_syscall_catchpoint): Call
3295 linux_supports_tracesysgood.
3296 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3297 * nat/linux-nat.h: New file.
3298 * nat/linux-waitpid.c: New file.
3299 * nat/linux-waitpid.h: New file.
3300
9f948660
SDJ
33012013-08-22 Samuel Bronson <naesten@gmail.com>
3302
3303 ARM Linux support for `catch syscall'.
3304 * syscalls/arm-linux.py: New file.
3305 * syscalls/arm-linux.xml: Likewise.
3306 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3307 (arm_linux_init_abi): Register the new function and syscall xml file.
3308 * data-directory/Makefile.in: Install the new syscall xml file.
3309 * NEWS: Brag about this.
3310
6be7b56e
PA
33112013-08-22 Pedro Alves <palves@redhat.com>
3312
3313 PR gdb/15871
3314 * corefile.c (target_xfer_memory_error): New function.
3315 (memory_error): Defer EIO to target_memory_error.
3316 (read_memory): Use target_xfer_partial, and handle finer-grained
3317 target xfer errors.
3318 * target.c (target_xfer_error_to_string): New function.
3319 (memory_xfer_partial_1): If memory is known to be
3320 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3321 (target_xfer_partial): Make extern.
3322 * target.h (enum target_xfer_error): New enum.
3323 (target_xfer_error_to_string): Declare function.
3324 (target_xfer_partial): Declare function.
3325 (struct target_ops) <xfer_partial>: Adjust describing comment.
3326
bcbec14e
AM
33272013-08-22 Alan Modra <amodra@gmail.com>
3328
3329 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3330 * configure.tgt: Likewise as targets.
3331
fc474241
DE
33322013-08-20 Doug Evans <dje@google.com>
3333
3334 * buildsym.c (subfile_stack): Move here from buildsym.h.
3335 (pending_macros): Ditto.
3336 (get_macro_table): New function.
3337 (buildsym_init): Initialize subfile_stack.
3338 * coffread.c (type_vector,type_vector_length): Moved here from
3339 buildsym.h.
3340 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3341 (coff_symtab_read): Use it.
3342 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3343 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3344 with call to get_macro_table.
3345 * stabsread.c (type_vector,type_vector_length): Moved here from
3346 buildsym.h.
3347 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3348 * buildsym.h (get_macro_table): Declare.
3349
bec71544
TT
33502013-08-20 Tom Tromey <tromey@redhat.com>
3351
3352 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3353 Update.
3354 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3355
0002ad5f
DE
33562013-08-20 Doug Evans <dje@google.com>
3357
3358 * blockframe.c: Remove #include "psymtab.h".
3359 * cp-support.c: Ditto.
3360 * source.c: Ditto.
3361 * stack.c: Ditto.
3362
df302446
TT
33632013-08-20 Tom Tromey <tromey@redhat.com>
3364
3365 PR python/15816:
3366 * exceptions.h (return_mask): Now an enum.
3367 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3368 enum constants.
3369
df6d5441
TT
33702013-08-20 Tom Tromey <tromey@redhat.com>
3371
3372 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3373 get_objfile_arch.
3374 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3375 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3376 * jit.c (jit_object_close_impl): Update.
3377 * jv-lang.c (get_dynamics_objfile): Update.
3378 * linespec.c (add_minsym): Use get_dynamics_objfile.
3379 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3380 (allocate_objfile): Don't initialize 'gdbarch' field.
3381 (get_objfile_arch): Update.
3382 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3383 moved from...
3384 (struct objfile) <gdbarch>: ... here. Remove.
3385 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3386 get_objfile_arch.
3387 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3388
f5aee5ee
AM
33892013-08-20 Alan Modra <amodra@gmail.com>
3390
3391 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3392 for IBM long double nan and inf.
3393 (floatformat_is_negative, floatformat_classify,
3394 floatformat_mantissa): Similarly.
3395 (floatformat_ieee_single, floatformat_ieee_double,
3396 floatformat_ieee_quad, floatformat_arm_ext,
3397 floatformat_ia64_spill): Delete unused vars.
3398 (_initialize_doublest): Delete unused function.
3399 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3400 little-endian variants of floatformat_ibm_long_double.
3401
33b60d58 34022013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3403
33b60d58
LM
3404 * Makefile.in (SFILES): Remove common/target-common.c and
3405 add target/waitstatus.c.
3406 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3407 target/resume.h, target/wait.h and target/waitstatus.h.
3408 (COMMON_OBS): Remove target-common.o and add
3409 waitstatus.o.
3410 (target-common.o): Remove.
3411 (waitstatus.o): New target object file.
3412 * common/target-common.c: Move contents to
3413 target/waitstatus.c and remove.
3414 * common/target-common.h: Move contents to other files and
3415 remove.
3416 (enum resume_kind: Move to target/resume.h.
3417 (TARGET_WNOHANG): Move to target/wait.h.
3418 (enum target_waitkind): Move to target/waitstatus.h.
3419 (struct target_waitstatus): Likewise.
3420 * target.h: Do not include target-common.h and
3421 include target/resume.h, target/wait.h and
3422 target/waitstatus.h.
3423 * target/resume.h: New file.
3424 * target/wait.h: New file.
3425 * target/waitstatus.h: New file.
3426 * target/waitstatus.c: New file.
3427
12696c10
PA
34282013-08-19 Pedro Alves <palves@redhat.com>
3429
3430 * linux-nat.c (linux_test_for_tracefork)
3431 (linux_test_for_tracesysgood, linux_child_follow_fork)
3432 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3433 (linux_nat_wait_1): Extend comment.
3434 (linux_async_pipe): Add comment.
3435
ba89f962
KB
34362013-08-15 Kevin Buettner <kevinb@redhat.com>
3437
3438 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3439 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3440 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3441 Update to account for fact that PC is now a pseudo-register.
3442 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3443 cases for RL78_PC_REGNUM.
3444
35ab155d
MB
34452013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3446
3447 PR cli/15841
3448 * top.c (quit_force): Skip writing history file
3449 if input is not from terminal.
3450
0d031856
TT
34512013-08-14 Tom Tromey <tromey@redhat.com>
3452
3453 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3454 resultthreadlist>: New fields.
3455 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3456 (remote_get_threadlist, remote_threadlist_iterator): Use
3457 new fields. Remove static variables.
3458
ee154bee
TT
34592013-08-14 Tom Tromey <tromey@redhat.com>
3460
3461 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3462 remote_watch_data_address>: New fields.
3463 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3464 (process_stop_reply, remote_wait_as)
3465 (remote_check_watch_resources, remote_stopped_data_address): Update.
3466
88b496c3
TT
34672013-08-14 Tom Tromey <tromey@redhat.com>
3468
3469 * remote.c (struct remote_state) <async_client_callback,
3470 async_client_context>: New fields.
3471 (async_client_callback, async_client_context): Remove.
3472 (remote_async_serial_handler, remote_async): Update.
3473
2f65bcb7
TT
34742013-08-14 Tom Tromey <tromey@redhat.com>
3475
3476 * remote.c (sizeof_pkt): Remove.
3477 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3478
b80fafe3
TT
34792013-08-14 Tom Tromey <tromey@redhat.com>
3480
3481 * remote.c (struct remote_state) <use_threadinfo_query,
3482 use_threadextra_query>: New fields.
3483 (remote_threads_info, remote_threads_extra_info)
3484 (remote_open_1): Update.
3485
8e88304f
TT
34862013-08-14 Tom Tromey <tromey@redhat.com>
3487
3488 * remote.c (struct remote_state) <finished_object,
3489 finished_annex, finished_offset>: New fields.
3490 (remote_read_qxfer): Use remote_state fields; remove static
3491 variables.
3492
280ceea3
TT
34932013-08-14 Tom Tromey <tromey@redhat.com>
3494
3495 * remote.c (struct remote_state) <last_sent_step>:
3496 New field.
3497 (last_sent_step): Remove.
3498 (remote_resume, remote_wait_as): Update.
3499
b73be471
TT
35002013-08-14 Tom Tromey <tromey@redhat.com>
3501
3502 * remote.c (struct remote_state) <last_sent_signal>:
3503 New field.
3504 (last_sent_signal): Remove.
3505 (new_remote_state, remote_resume, remote_wait_as): Update.
3506
5e4a05c4
TT
35072013-08-14 Tom Tromey <tromey@redhat.com>
3508
3509 * remote.c (struct remote_state) <last_program_signals_packet>:
3510 New field.
3511 (last_program_signals_packet): Remove.
3512 (remote_program_signals, remote_open_1): Update.
3513
747dc59d
TT
35142013-08-14 Tom Tromey <tromey@redhat.com>
3515
3516 * remote.c (struct remote_state) <last_pass_packet>:
3517 New field.
3518 (last_pass_packet): Remove.
3519 (remote_pass_signals, remote_open_1): Update.
3520
262e1174
TT
35212013-08-14 Tom Tromey <tromey@redhat.com>
3522
3523 * remote.c (struct remote_state) <remote_traceframe_number>:
3524 New field.
3525 (remote_traceframe_number): Remove.
3526 (new_remote_state, remote_open_1, set_remote_traceframe)
3527 (remote_trace_find): Update.
3528
47f8a51d
TT
35292013-08-14 Tom Tromey <tromey@redhat.com>
3530
3531 * remote.c (struct remote_state) <general_thread, continue_thread>:
3532 New fields.
3533 (general_thread, continue_thread): Remove.
3534 (record_currthread, set_thread, set_general_process)
3535 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3536 (extended_remote_mourn_1): Update.
3537
5d93a237
TT
35382013-08-14 Tom Tromey <tromey@redhat.com>
3539
3540 * remote.c (struct remote_state) <remote_desc>: New field.
3541 (remote_desc): Remove.
3542 (remote_threads_info, remote_threads_extra_info, remote_close)
3543 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3544 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3545 (remote_hostio_send_command, remote_file_put, remote_file_get)
3546 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3547 (remote_async, remote_new_objfile, set_range_stepping): Update.
3548
cf792862
TT
35492013-08-14 Tom Tromey <tromey@redhat.com>
3550
3551 * remote.c (remote_state): Now a pointer.
3552 (get_remote_state_raw): Update.
3553 (new_remote_state): New function.
3554 (_initialize_remote): Use new_remote_state.
3555
dc473cfb
TT
35562013-08-14 Tom Tromey <tromey@redhat.com>
3557
3558 * remote.c (remote_protocol_features): Now const.
3559
85ec6ce7
TT
35602013-08-14 Tom Tromey <tromey@redhat.com>
3561
3562 * remote.c (crc32_table, crc32): Remove.
3563 (remote_verify_memory): Use xcrc32.
3564
73033f12
SDJ
35652013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3566
3567 * value.h (create_internalvar_type_lazy): Adjust prototype
3568 declaration.
3569
5c30d39a
AB
35702013-08-13 Andrew Burgess <aburgess@broadcom.com>
3571
3572 * common/format.c (parse_format_string): Don't allow '#' flag for
3573 pointer arguments in format string.
3574
1a66331e
PM
35752013-08-13 Pierre Muller <muller@sourceware.org>
3576
fde605f3 3577 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3578 if rl_get_screen_size did not return useful values.
3579
b4013987
AA
35802013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3581
3582 PR breakpoints/15117
3583 * linespec.c (linespec_parse_basic): Check for convenience
3584 variable or history value while parsing.
3585
959b6a66
SDJ
35862013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3587
3588 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3589 AVR.
3590 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3591 different signals between the generic Linux kernel implementation
3592 and AVR's.
3593 (avr_linux_gdb_signal_from_target): Delete.
3594 (avr_linux_gdb_signal_to_target): Delete.
3595 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3596
24a55014
DE
35972013-08-09 Doug Evans <dje@google.com>
3598
3599 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3600 entries.
3601
eb14d406
SDJ
36022013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3603
3604 * linux-tdep.c: Define enum with generic signal numbers.
3605 (linux_gdb_signal_from_target): New function.
3606 (linux_gdb_signal_to_target): Likewise.
3607 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3608 methods to the functions above.
3609 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3610 (linux_gdb_signal_to_target): Likewise.
3611 * alpha-linux-tdep.c: Define new enum with signals different
3612 from generic Linux kernel.
3613 (alpha_linux_gdb_signal_from_target): New function.
3614 (alpha_linux_gdb_signal_to_target): Likewise.
3615 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3616 with the functions mentioned above.
3617 * avr-tdep.c: Define enum with differences between Linux kernel
3618 and AVR signals.
3619 (avr_linux_gdb_signal_from_target): New function.
3620 (avr_linux_gdb_signal_to_target): Likewise.
3621 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3622 the functions mentioned above.
3623 * sparc-linux-tdep.c: Define enum with differences between SPARC
3624 and generic Linux kernel signal numbers.
3625 (sparc32_linux_gdb_signal_from_target): New function.
3626 (sparc32_linux_gdb_signal_to_target): Likewise.
3627 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3628 to the functions defined above.
3629 * xtensa-linux-tdep.c: Define enum with differences between
3630 Xtensa and Linux kernel generic signals.
3631 (xtensa_linux_gdb_signal_from_target): New function.
3632 (xtensa_linux_gdb_signal_to_target): Likewise.
3633 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3634 to the functions defined above.
3635 * mips-linux-tdep.c: Define enum with differences between
3636 signals in MIPS and Linux kernel generic ones.
3637 (mips_gdb_signal_to_target): New function.
3638 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3639 only different signals from the Linux kernel generic.
3640 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3641 the functions defined above.
3642 * mips-linux-tdep.h (enum mips_signals): Remove.
3643
156d08c8
PA
36442013-08-09 Pedro Alves <palves@redhat.com>
3645
3646 * avr-tdep.c (XMALLOC): Delete macro.
3647 * cli/cli-dump.c (XMALLOC): Delete macro.
3648
db229724
PA
36492013-08-09 Pedro Alves <palves@redhat.com>
3650
3651 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3652 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3653 (fopen_with_cleanup, add_dump_command): Make static.
3654 * cli/cli-dump.h: Delete file.
3655 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3656 cli/cli-dump.h.
3657
3f12a589
PA
36582013-08-09 Pedro Alves <palves@redhat.com>
3659
3660 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3661 error message.
3662
c718be47
PA
36632013-08-09 Pedro Alves <palves@redhat.com>
3664
156d08c8 3665 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3666 error message.
3667
1e351ed1
PA
36682013-08-09 Pedro Alves <palves@redhat.com>
3669
3670 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3671 (gcore_command): Use tilde_expand here, and when showing the
3672 filename to the user, show the expanded version.
3673
1ed8d800
YQ
36742013-08-09 Yao Qi <yao@codesourcery.com>
3675
3676 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3677 'entryval' is set.
3678
47ecca85
PA
36792013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3680
3681 * gcore.c (create_gcore_bfd): Use tilde_expand.
3682
82a0a75f
YQ
36832013-08-08 Yao Qi <yao@codesourcery.com>
3684
3685 * frame.h (read_frame_local): Declare.
3686 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3687 read_frame_local.
3688 * stack.c (read_frame_local): New.
3689
5c4aa40b
YQ
36902013-08-08 Yao Qi <yao@codesourcery.com>
3691
3692 * mi/mi-cmd-stack.c: Update comments to function
3693 list_args_or_locals.
3694
b93601f3
TT
36952013-08-07 Tom Tromey <tromey@redhat.com>
3696
3697 PR symtab/15028:
3698 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3699 (process_psymtab_comp_unit_reader): Use it.
3700 (process_psymtab_comp_unit): Update. Add "pretend_language"
3701 argument.
3702 (dwarf2_build_psymtabs_hard): Update.
3703 (scan_partial_symbols): Pass CU's language to
3704 process_psymtab_comp_unit.
3705
fa760f46
TT
37062013-08-07 Tom Tromey <tromey@redhat.com>
3707
3708 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3709 (dwarf2_gdb_index_functions): Update.
3710 * psymtab.c (find_symbol_file_from_partial): Remove.
3711 (psym_functions): Update.
3712 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3713 Remove.
3714
bf6d8a91
TT
37152013-08-07 Tom Tromey <tromey@redhat.com>
3716
3717 * symfile.c (set_initial_language): Look up "main" symbol
3718 and use its language.
3719 * symtab.c (find_main_filename): Remove.
3720 * symtab.h (find_main_filename): Remove.
3721
f9125b6c
TT
37222013-08-07 Tom Tromey <tromey@redhat.com>
3723
3724 * dwarf2read.c (recursively_compute_inclusions): Add
3725 "immediate_parent" argument. Set symtab's "user" field
3726 if not set.
3727 (compute_symtab_includes): Update.
3728
fdbb204b
TT
37292013-08-07 Tom Tromey <tromey@redhat.com>
3730
3731 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3732 when adding label symbols.
3733
49de1690
UW
37342013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3735 Ulrich Weigand <uweigand@de.ibm.com>
3736
3737 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3738 * configure.host (powerpc64-*-aix*): Likewise.
3739
b08ee99f
UW
37402013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3741 Ulrich Weigand <uweigand@de.ibm.com>
3742
3743 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3744 is defined.
3745 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3746 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3747 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3748 * configure.ac: Check for ptrace64.
3749 * configure, config.in: Regenerate.
3750
fecf803e
UW
37512013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3752 Ulrich Weigand <uweigand@de.ibm.com>
3753
3754 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3755 Call ptrace64 instead of ptrace if defined.
3756 Add macro addr_ptr to take care of ptrace address argument.
3757 (pdc_read_regs): Likewise.
3758 (pdc_write_regs): Likewise.
3759 (aix_thread_resume): Likewise.
3760 (fetch_regs_kernel_thread): Likewise.
3761 (store_regs_kernel_thread): Likewise.
3762
3bb5e4a8
AB
37632013-08-07 Anton Blanchard <anton@samba.org>
3764
3765 * MAINTAINERS: Add myself to Write After Approval.
3766
12070676
TT
37672013-08-05 Tom Tromey <tromey@redhat.com>
3768
3769 * aix-thread.c (_initialize_aix_thread): Use
3770 complete_target_initialization.
3771 * bsd-uthread.c (_initialize_bsd_uthread): Use
3772 complete_target_initialization.
3773 * dec-thread.c (_initialize_dec_thread): Use
3774 complete_target_initialization.
3775 * ravenscar-thread.c (_initialize_ravenscar): Use
3776 complete_target_initialization.
3777 * sol-thread.c (_initialize_sol_thread): Use
3778 complete_target_initialization.
3779 * spu-multiarch.c (_initialize_spu_multiarch): Use
3780 complete_target_initialization.
3781
7c7b6655
TT
37822013-08-05 Tom Tromey <tromey@redhat.com>
3783
3784 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3785 * ada-lang.c (ada_lookup_simple_minsym): Return
3786 bound_minimal_symbol.
3787 * ada-lang.h (ada_lookup_simple_minsym): Update.
3788 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3789 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3790 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3791 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3792 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3793 * minsyms.c (msymbol_objfile): Remove.
3794 (lookup_minimal_symbol_internal): New function, from
3795 lookup_minimal_symbol.
3796 (lookup_minimal_symbol): Rewrite using
3797 lookup_minimal_symbol_internal.
3798 (lookup_bound_minimal_symbol): New function.
3799 * minsyms.h (msymbol_objfile): Remove.
3800 (lookup_bound_minimal_symbol): Declare.
3801 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3802 * parse.c (write_exp_msymbol): Change parameter to a
3803 bound_minimal_symbol.
3804 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3805 * parser-defs.h (write_exp_msymbol): Update.
3806 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3807 * symfile.c (simple_read_overlay_table): Use
3808 lookup_bound_minimal_symbol.
3809 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3810 (search_symbols): Likewise.
3811 (print_msymbol_info): Take a bound_minimal_symbol argument.
3812 (symtab_symbol_info, rbreak_command): Update.
3813 * symtab.h (struct symbol_search) <msymbol>: Change type
3814 to bound_minimal_symbol.
3815 * valops.c (find_function_in_inferior): Use
3816 lookup_bound_minimal_symbol.
3817 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3818
934b9bac
JK
38192013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3820
3821 Code cleanup.
3822 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3823 to ...
3824 (async_cleanup_sigint_signal_handler): ... this.
3825 (initialize_sigint_signal_handler): Remove declaration.
3826 (handle_remote_sigint): Rename the declaration to ...
3827 (async_handle_remote_sigint): ... this.
3828 (handle_remote_sigint_twice): Rename the declaration to ...
3829 (async_handle_remote_sigint_twice): ... this.
3830 (async_remote_interrupt, async_remote_interrupt_twice)
3831 (remote_interrupt): Remove the declarations.
3832 (remote_interrupt_twice): Rename the declaration ...
3833 (sync_remote_interrupt_twice): ... this.
3834 (sigint_remote_twice_token): Rename the variable to ...
3835 (async_sigint_remote_twice_token): ... this.
3836 (sigint_remote_token): Rename the variable to ...
3837 (async_sigint_remote_token): ... this.
3838 (initialize_sigint_signal_handler): Rename the function to ...
3839 (async_initialize_sigint_signal_handler): ... this. Update the name
3840 inside.
3841 (handle_remote_sigint): Rename the function to ...
3842 (async_handle_remote_sigint): ... this. Update the names inside.
3843 (handle_remote_sigint_twice): Rename the function to ...
3844 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3845 (cleanup_sigint_signal_handler): Rename the function to ...
3846 (async_cleanup_sigint_signal_handler): ... this.
3847 (remote_interrupt): Rename the function to ...
3848 (sync_remote_interrupt): this. Update the names inside.
3849 (remote_interrupt_twice): Rename the function to ...
3850 (sync_remote_interrupt_twice): this. Update the names inside.
3851 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3852 (_initialize_remote): Update the names inside.
3853
3a1115a0
TT
38542013-08-02 Tom Tromey <tromey@redhat.com>
3855
3856 PR symtab/15719:
3857 * breakpoint.c (update_watchpoint, watchpoint_check)
3858 (watch_command_1): Update.
3859 * eval.c (fetch_subexp_value): Add "preserve_errors"
3860 parameter.
3861 * ppc-linux-nat.c (check_condition): Update.
3862 * value.h (fetch_subexp_value): Update.
3863
58b19776
AB
38642013-08-02 Andrew Burgess <aburgess@broadcom.com>
3865
3866 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3867 add_file_handler.
3868
ec94af83
DE
38692013-08-01 Doug Evans <dje@google.com>
3870
7ee85ab1
DE
3871 PR symtab/15691
3872 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3873 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3874 Add assert of sig_entry->dwo_unit == NULL.
3875 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3876 had already been read.
3877 (read_signatured_type): Set per_cu.tu_read.
3878
b846d303
DE
3879 PR symtab/15695
3880 * valops.c (value_struct_elt): Add missing call to check_typedef.
3881 (value_find_oload_method_list): Ditto.
3882
b52109bc
DE
3883 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3884 effectively, struct symbol_search **.
3885 (make_cleanup_free_search_symbols): Change arg to struct
3886 symbol_search **. All callers updated.
3887 (compare_search_syms): Compare symtab file name and block as well.
3888 (search_symbols_equal): New function.
3889 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3890 New args new_head, new_tail. Result is now void. Remove dups after
3891 sorting the symbols.
3892 (search_symbols): Sort all found symbols once, after all have been
3893 found, and remove duplicates. Simplify cleanup tracking of result.
3894 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3895
ec94af83
DE
3896 Further workarounds for binutils/15021.
3897 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3898 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3899 Watch for duplicate symtabs coming from type units.
3900 (compute_symtab_includes): Update call to
3901 recursively_compute_inclusions. Build vector of included symtabs
3902 instead of per_cus.
3903 * symtab.h (symtab_ptr): New typedef.
3904 (DEF_VEC_P (symtab_ptr)): New VEC type.
3905 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3906 instead.
3907
b2ae85cf
AB
39082013-08-01 Andrew Burgess <aburgess@broadcom.com>
3909
3910 * cli/cli-script.c (script_from_file): Remove use of
3911 error_pre_print.
3912 * main.c (captured_main): Remove use of error_pre_print and
3913 quit_pre_print.
3914 * utils.c (error_pre_print, quit_pre_print): Remove.
3915 * utils.h (error_pre_print, quit_pre_print): Likewise.
3916
645eab03
YQ
39172013-08-01 Yao Qi <yao@codesourcery.com>
3918
3919 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3920 with mi_getopt.
3921 (mi_cmd_stack_list_variables): Likewise.
3922
16f92dd4
AB
39232013-07-31 Andrew Burgess <aburgess@broadcom.com>
3924
3925 * exceptions.c (deprecated_throw_reason): Remove.
3926 * exceptions.h (deprecated_throw_reason): Remove.
3927
13f78033
AB
39282013-07-31 Andrew Burgess <aburgess@broadcom.com>
3929
3930 * remote-mips.c (mips_error): Replace use of
3931 deprecated_throw_reason with throw_verror. Use the error message
3932 passed to mips_error as the error message for throw_verror.
3933
039e3c22
AB
39342013-07-31 Andrew Burgess <aburgess@broadcom.com>
3935
3936 * monitor.c (monitor_interrupt_query): Replace use of
3937 deprecated_throw_reason with quit.
3938 * nto-procfs.c (interrupt_query): Likewise.
3939 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3940 * remote-mips.c (mips_kill): Likewise.
3941 * remote.c (interrupt_query): Likewise.
3942
8150913b
AB
39432013-07-31 Andrew Burgess <aburgess@broadcom.com>
3944
3945 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3946 with call to fatal.
3947
de74e63a
YQ
39482013-07-31 Pedro Alves <pedro@codesourcery.com>
3949 Yao Qi <yao@codesourcery.com>
3950
3951 * tracepoint.c (trace_dump_command): Select the current frame.
3952
247f5c4f
DE
39532013-07-30 Doug Evans <dje@google.com>
3954
3955 * dwarf2read.c (process_queue): Add type signature to debug output.
3956
11b4b7cc
AB
39572013-07-30 Andrew Burgess <aburgess@broadcom.com>
3958
3959 * value.c (value_fetch_lazy): Mark optimized out values as such
3960 rather than raising an error.
3961
b0c54aa5
AB
39622013-07-30 Andrew Burgess <aburgess@broadcom.com>
3963
3964 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3965 before checking which bits of the parent, not the child, value are
3966 valid.
3967
97c85fc6
MB
39682013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3969
3970 PR gdb/15715
3971 * top.c: Include "filenames.h".
3972 (set_history_filename): New function.
3973 (init_main): Install it as set hook of the "set history filename"
3974 command.
3975
ff39bb5e
SA
39762013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3977
3978 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3979 attribute parameter.
3980 (dwarf2_const_value_data): Constify struct attribute parameter.
3981 (dwarf2_const_value): Constify struct attribute parameter.
3982 (dwarf2_const_value_attr): Constify struct attribute parameter.
3983 (lookup_die_type): Constify struct attribute parameter.
3984 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3985 (follow_die_ref_or_sig): Constify struct attribute parameter.
3986 (follow_die_ref): Constify struct attribute parameter.
3987 (follow_die_sig): Constify struct attribute parameter.
3988 (get_DW_AT_signature_type): Constify struct attribute parameter.
3989 (get_type_unit_group): Constify struct attribute parameter.
3990 (fill_in_loclist_baton): Constify struct attribute parameter.
3991 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3992 (type_unit_group): Constify struct attribute parameter.
3993
6e5a29e1
SA
39942013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3995
3996 * dwarf2read.c (attr_form_is_block): Make argument const.
3997 (attr_form_is_section_offset): Make argument const.
3998 (attr_form_is_constant): Make argument const.
3999 (attr_form_is_ref): Make argument const.
4000
7771576e
SA
40012013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4002
4003 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4004 All uses updated.
4005 (attr_form_is_ref): Moved below attr_form_is_constant.
4006
a94e8645
DE
40072013-07-29 Doug Evans <dje@google.com>
4008
bb5291d0
DE
4009 * main.c (captured_command_loop): Tweak comment.
4010
b5419e49
DE
4011 * target.c (target_async_permitted_1): Fix comment.
4012
b2d23133
DE
4013 * symtab.c (iterate_over_some_symtabs): Add comment.
4014
a94e8645
DE
4015 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4016
7a60ad40
YQ
40172013-07-27 Yao Qi <yao@codesourcery.com>
4018
4019 * NEWS: Mention that GDBserver now supports hardware
4020 watchpoints on the MIPS GNU/Linux target.
4021
aaee2056
YQ
40222013-07-27 Yao Qi <yao@codesourcery.com>
4023
4024 * Makefile.in (HFILES_NO_SRCDIR): Add
4025 common/mips-linux-watch.h.
4026 (mips-linux-watch.o): New rule.
4027 * common/mips-linux-watch.c: New.
4028 * common/mips-linux-watch.h: New.
4029 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4030 * mips-linux-nat.c: Include mips-linux-watch.h.
4031 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4032 to common/mips-linux-watch.h.
4033 (MAX_DEBUG_REGISTER): Likewise.
4034 (enum pt_watch_style): Likewise.
4035 (struct mips32_watch_regs): Likewise.
4036 (struct mips64_watch_regs): Likewise.
4037 (struct pt_watch_regs): Likewise.
4038 (struct mips_watchpoint): Likewise.
4039 (mips_linux_watch_get_irw_mask): Move to
4040 common/mips-linux-watch.c.
4041 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4042 (mips_linux_watch_get_watchlo): Likewise.
4043 (mips_linux_watch_set_watchlo): Likewise.
4044 (mips_linux_watch_get_watchhi): Likewise.
4045 (mips_linux_watch_set_watchhi): Likewise.
4046 (mips_linux_read_watch_registers): Likewise.
4047 (mips_linux_watch_type_to_irw): Likewise.
4048 (mips_linux_stopped_data_address, fill_mask): Likewise.
4049 (mips_linux_watch_try_one_watch): Likewise.
4050 (mips_linux_watch_populate_regs): Likewise.
4051
b3436450
YQ
40522013-07-27 Yao Qi <yao@codesourcery.com>
4053
4054 * mips-linux-nat.c (get_irw_mask): Rename to ...
4055 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4056 'set' to 'n'. Update function comment. All callers changed.
4057 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4058 function comment. All callers changed.
4059 (get_num_valid): Rename to ...
4060 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4061 'set' to 'n'. Update function comment. All callers changed.
4062 (get_watchlo): Rename to ...
4063 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4064 'set' to 'n'. Update function comment. All callers changed.
4065 (set_watchlo): Rename to ...
4066 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4067 'set' to 'n'. Update function comment. All callers changed.
4068 (get_watchhi): Rename to ...
4069 (mips_linux_watch_get_watchhi): ... this. Update function
4070 comment. All callers changed.
4071 (set_watchhi): Rename to ...
4072 (mips_linux_watch_set_watchhi): ... this. Update function
4073 comment. All callers changed.
4074 (mips_linux_read_watch_registers): Update function comment.
4075 Add new parameters 'lwpid', 'watch_readback', and
4076 'watch_readback_valid'. Update.
4077 (type_to_irw): Rename to ...
4078 (mips_linux_watch_type_to_irw): ... this. Update function
4079 comment. All callers changed.
4080 (fill_mask): Update function comment.
4081 (try_one_watch): Rename to ...
4082 (mips_linux_watch_try_one_watch): ... this. Change the type
4083 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4084 (populate_regs_from_watches): Rename to ...
4085 (mips_linux_watch_populate_regs): ... this. Add parameter
4086 'current_watches'. All callers changed.
4087
9be14b81
YQ
40882013-07-27 Yao Qi <yao@codesourcery.com>
4089
4090 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4091 the code.
4092 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4093 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4094 (struct pt_watch_regs): Likewise.
4095 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4096 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4097 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4098 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4099 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4100
de6f69ad
YQ
41012013-07-27 Yao Qi <yao@codesourcery.com>
4102
4103 * breakpoint.h: Include break-common.h.
4104 (enum target_hw_bp_type): Move to ...
4105 * common/break-common.h: ... here. New.
4106
6f64ef53
PA
41072013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4108
4109 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4110 process group regardless of having tty on stdin.
4111
6107e809
DE
41122013-07-25 Doug Evans <dje@google.com>
4113
4114 * linux-fork.h (detach_fork): Delete.
4115
7fdc1521
TT
41162013-07-25 Tom Tromey <tromey@redhat.com>
4117
4118 PR remote/15256, PR remote/15266:
4119 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4120 * monitor.c (monitor_detach): Use unpush_target.
4121 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4122 * remote-mips.c (mips_detach): Use unpush_target. Don't
4123 call mips_close.
4124 * remote-sim.c (gdbsim_detach): Use unpush_target.
4125 * target.c (pop_target): Remove.
4126 (pop_all_targets_above): Don't call target_close.
4127 (target_close): Assert that the target is unpushed.
4128 * target.h (pop_target): Don't declare.
4129 * tracepoint.c (tfile_open): Use unpush_target.
4130
c22a2b88
TT
41312013-07-25 Tom Tromey <tromey@redhat.com>
4132
4133 * linux-thread-db.c (init_thread_db_ops): Call
4134 complete_target_initialization.
4135 (_initialize_thread_db): Don't call add_target.
4136 * target.c (complete_target_initialization): New function.
4137 (add_target_with_completer): Call it.
4138 * target.h (complete_target_initialization): Declare.
4139
cbb6aada
MK
41402013-07-25 Mark Kettenis <kettenis@gnu.org>
4141
4142 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4143 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4144 (HPPANBSD_SIZEOF_GREGS): New define.
4145 (hppaobsd_supply_gregset): Handle additional registers.
4146 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4147 we provide more registers now.
4148 (hppabsd_supply_gregset): Supply additional registers.
4149 (hppabsd_collect_gregset): Collect additional registers.
4150
17767988
MK
41512013-07-25 Mark Kettenis <kettenis@gnu.org>
4152
4153 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4154 (hppabsd_dwarf2_frame_init_reg): New function.
4155 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4156
fdc8aae8
AB
41572013-07-25 Andrew Burgess <aburgess@broadcom.com>
4158
4159 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4160 'z' format code. Remove error for optimized out values, standard
4161 code will handle these fine.
4162
6fbe845e
AB
41632013-07-25 Andrew Burgess <aburgess@broadcom.com>
4164
4165 * NEWS: Mention new 'z' formatter.
4166 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4167 (_initialize_printcmd): Mention 'z' formatter in help text of the
4168 'x' command.
4169
3373342d
MR
41702013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4171
4172 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4173 formatting.
4174
25f9533e
SDJ
41752013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4176
4177 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4178 interface can evaluate arguments. Fallback to the old mode if it
4179 cannot.
4180 (create_exception_master_breakpoint): Likewise.
4181 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4182 (struct sym_probe_fns elf_probe_fns): Export function above to the
4183 probe interface.
4184 * probe.c (can_evaluate_probe_arguments): New function.
4185 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4186 function pointer.
4187 (can_evaluate_probe_arguments): New function prototype.
4188 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4189 probe interface can evaluate arguments. Fallback to the old mode
4190 if it cannot.
4191 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4192 interface can evaluate arguments. Warning the user if it cannot.
4193 (stap_can_evaluate_probe_arguments): New function.
4194 (struct probe_ops stap_probe_ops): Export function above to the
4195 probe interface.
4196 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4197 New function pointer.
4198
3360c0bf
LM
41992013-07-24 Luis Machado <lgustavo@codesourcery.com>
4200
4201 * Makefile.in (SFILES): Add common/target-common.c.
4202 Add common/target-common.h to headers.
4203 (COMMON_OBS): Add target-common.o.
4204 (target-common.o): New target.
4205 * linux-nat.h (resume_kind): Move to common/target-common.h.
4206 * target.c (target_waitstatus_to_string): Move to
4207 common/target-common.c.
4208 * target.h: Include target-common.h.
4209 (target_waitkind): Move to common/target-common.h.
4210 (target_waitstatus): Likewise.
4211 (TARGET_WNOHANG): Likewise.
4212 * common/target-common.c: New file.
4213 * common/target-common.h: New file.
4214
6656a72d
DE
42152013-07-24 Doug Evans <dje@google.com>
4216
4217 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4218 a warning.
4219
6df81a63
YQ
42202013-07-23 Yao Qi <yao@codesourcery.com>
4221
4222 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4223 parameter 'gdbarch'.
4224 (i386_stack_tramp_frame_sniffer): Caller update.
4225 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4226 parameter 'gdbarch' and 'target'.
4227 (i386_linux_core_read_description): Caller update.
4228 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4229 Likewise.
4230 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4231 declaration.
4232
365156ad
TT
42332013-07-23 Tom Tromey <tromey@redhat.com>
4234
4235 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4236 2013-07-22.
4237
046ac79f
JK
42382013-07-22 Doug Evans <dje@google.com>
4239
4240 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4241 * exec.c (exec_close): Update call to remove_target_sections.
4242 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4243 * solib.c (update_solib_list): Ditto.
4244 (reload_shared_libraries_1): Ditto.
4245 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4246 * target.h (struct target_section): Rename key to owner.
4247 All uses updated.
046ac79f 4248
29b2cc46
TT
42492013-07-22 Tom Tromey <tromey@redhat.com>
4250
4251 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4252
d1160018
TT
42532013-07-22 Tom Tromey <tromey@redhat.com>
4254
4255 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4256 Simplify cleanup handling.
4257
2f324bf6
TT
42582013-07-22 Tom Tromey <tromey@redhat.com>
4259
4260 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4261 on all return paths.
4262
e23b9d6e
UW
42632013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4264
4265 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4266 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4267 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4268
1cf55f60
PM
42692013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4270
4271 * top.c (print_gdb_version): Add help, apropos description and
4272 url to online documentation.
4273
fa876972
HZ
42742013-07-19 Hui Zhu <hui@codesourcery.com>
4275
4276 PR gdb/15692
4277 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4278
1527aea8
YQ
42792013-07-19 Yao Qi <yao@codesourcery.com>
4280
4281 * target.c (update_current_target): Change the default action
4282 of 'to_traceframe_info' from tcomplain to return_zero.
4283 * target.h (struct target_ops) <to_traceframe_info>: Add more
4284 comments.
4285 * valops.c (read_value_memory): Call
4286 traceframe_available_memory unconditionally.
4287
886f230e
YQ
42882013-07-18 Yao Qi <yao@codesourcery.com>
4289
4290 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4291 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4292 symbol without prefix. If found, set its type to
4293 'mst_solib_trampoline'.
4294
16419bae
DE
42952013-07-17 Doug Evans <dje@google.com>
4296
e7045703
DE
4297 * NEWS: Mention "set print raw frame-arguments".
4298 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4299 * stack.c (print_raw_frame_arguments): New static global.
4300 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4301 (_initialize_stack): New command "set/show print raw frame-arguments".
4302 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4303 (set_print_raw, show_print_raw): New functions.
4304 (_initialize_valprint): New prefix command "set/show print raw".
4305 * valprint.h (value_print_options): Improve comments.
4306
453e48a5
DE
4307 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4308 of all *list variables.
4309
16419bae
DE
4310 * gdbcmd.h (togglelist): Delete.
4311 * cli/cli-cmds.c (togglelist): Delete.
4312 (init_cmd_lists): Update.
4313 * cli/cli-cmds.h (togglelist): Delete.
4314
626f2d1c
TT
43152013-07-17 Tom Tromey <tromey@redhat.com>
4316
4317 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4318 dwarf2_per_objfile.
4319
57e6060e
DE
43202013-07-16 Doug Evans <dje@google.com>
4321
4322 * nto-tdep.c (nto_relocate_section_addresses): Update,
4323 target_section.bfd deleted.
4324 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4325 * s390-tdep.c (s390_load): Ditto.
4326 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4327
5ea5559b
AB
43282013-07-16 Andrew Burgess <aburgess@broadcom.com>
4329
4330 * common/format.c (parse_format_string): Add checks for NULL
4331 character before calling strchr.
4332
2b2848e2
DE
43332013-07-16 Doug Evans <dje@google.com>
4334
2c571006
DE
4335 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4336 temp_pathname argument.
4337 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4338 when opening the file fails.
4339
2b2848e2
DE
4340 * target.h (struct target_section): Delete member bfd.
4341 All users updated to use the_bfd_section->owner instead.
4342 * exec.c (add_to_section_table): Assert bfd is expected value.
4343 Remove initialization of target_section.bfd.
4344 (remove_target_sections): Update.
4345 (section_table_available_memory): Update.
4346 (section_table_xfer_memory_partial): Update.
4347 (print_section_info): Update.
4348 (exec_set_section_address): Update.
4349 * record-full.c (record_full_core_xfer_partial): Update.
4350 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4351 * solib-target.c (solib_target_relocate_section_addresses): Update.
4352 * symfile.c (build_section_addr_info_from_section_table): Update.
4353 * target.c (memory_xfer_live_readonly_partial): Update.
4354 (memory_xfer_partial_1): Update.
4355
926bf92d
UW
43562013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4357
4358 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4359 now available for embedded (BookE) and server (BookS) processors,
4360 correct mentions of 'booke' and adjust comments accordingly in order to
4361 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4362 (have_ptrace_booke_interface): Rename function and variable
4363 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4364 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4365 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4366 'hwdebug_point_cmp'. Update all uses.
4367 (booke_find_thread_points_by_tid): Rename function
4368 'booke_find_thread_points_by_tid' to
4369 'hwdebug_find_thread_points_by_tid'. Update all uses.
4370 (booke_insert_point): Rename function 'booke_insert_point' to
4371 'hwdebug_insert_point'. Update all uses.
4372 (booke_remove_point): Rename function 'booke_remove_point' to
4373 'hwdebug_remove_point'. Update all uses.
4374
d929bc19
MR
43752013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4376
4377 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4378 numbers with enum values.
4379
054e8d9e
AA
43802013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4381
4382 PR threads/13217
4383 * thread.c (thread_apply_all_command): Check for valid threads
4384 and thread count.
4385 (thread_array_cleanup): New struct.
4386 (set_thread_refcount): New function.
4387
cf006359
AB
43882013-07-11 Andrew Burgess <aburgess@broadcom.com>
4389
4390 * infcmd.c (default_print_one_register_info): Reuse function
4391 print_hex_chars.
4392
94e36acc
TT
43932013-07-10 Tom Tromey <tromey@redhat.com>
4394
4395 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4396 (ada-exp.o): New target.
4397
915dd369
SDJ
43982013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4399
4400 * mt-tdep.c (mt_registers_info): Call
4401 get_no_prettyformat_print_options instead of
4402 get_raw_print_options (regression by last patch from Doug
4403 Evans).
4404
eca07816
JB
44052013-07-09 Pedro Alves <palves@redhat.com>
4406
4407 Checked in by Joel Brobecker <brobecker@adacore.com>.
4408 * ada-lang.c (coerce_unspec_val_to_type): Use
4409 value_optimized_out_const.
4410 * value.c (value_optimized_out_const): New function.
4411 * value.h (value_optimized_out_const): New declaration.
4412
2a998fc0
DE
44132013-07-09 Doug Evans <dje@google.com>
4414
4415 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4416 Enum values rename as well. All uses updated.
4417 * valprint.h (value_print_options): Rename member pretty to
4418 pretty format. Rename member prettyprint_arrays to
4419 prettyformat_arrays. Rename member prettyprint_structs to
4420 prettyformat_structs. All uses updated.
4421 (get_no_prettyformat_print_options): Renamed from
4422 get_raw_print_options.
4423 * valprint.c (get_no_prettyformat_print_options): Renamed from
4424 get_raw_print_options. All callers updated.
4425 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4426 All callers updated.
4427 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4428 All callers updated.
4429 (_initialize_valprint): Improve help text for "set print pretty" and
4430 "set print arrays".
4431
466c1fca
AB
44322013-07-09 Andrew Burgess <aburgess@broadcom.com>
4433
4434 * value.c (value_bits_valid): Revert previous change, and change
4435 by Pedro on 2013-07-04, due to regressions in
4436 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4437
ad0f0303
AB
44382013-07-08 Andrew Burgess <aburgess@broadcom.com>
4439 Pedro Alves <palves@redhat.com>
4440
4441 * value.c (value_bits_valid): If the value is not lval_computed
4442 or has no check validity handler then the answer is the
4443 optimized_out flag, otherwise defer to the handler.
4444
b187bec1
EZ
44452013-07-06 Eli Zaretskii <eliz@gnu.org>
4446
48d1d6f5
EZ
4447 * top.c (print_gdb_configuration): Explain in output of
4448 --configuration what does "relocatable" mean.
4449
b187bec1
EZ
4450 * main.c (print_gdb_help): Regroup options in the --help text.
4451 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4452 the relevant discussions.
4453
52d361e1
YQ
44542013-07-06 Yao Qi <yao@codesourcery.com>
4455
4456 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4457 Remove parameter 'lsal'.
4458 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4459 to inner block. Caller update.
4460 (base_breakpoint_create_breakpoints_sal): Update.
4461 (bkpt_create_breakpoints_sal): Likewise.
4462 (tracepoint_create_breakpoints_sal): Likewise.
4463 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4464 element 0 of vector 'canonical->sals'.
4465
e1ec1b42
LM
44662013-07-05 Luis Machado <lgustavo@codesourcery.com>
4467
4468 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4469 register number instead of the pseudo register one.
4470 (rs6000_dwarf2_reg_to_regnum): Likewise.
4471
7195e6f0
PA
44722013-07-04 Pedro Alves <palves@redhat.com>
4473
4474 * findvar.c (value_of_register): Use allocate_optimized_out_value
4475 if the register has been optimized out, instead of
4476 set_value_optimized_out.
4477 * frame-unwind.c (frame_unwind_got_optimized): Use
4478 allocate_optimized_out_value.
4479
58722cac
PA
44802013-07-04 Pedro Alves <palves@redhat.com>
4481
4482 * value.c (value_bits_valid): If the value is not lval_computed,
4483 or doesn't have a check_validity hook, assume the value is entirely
4484 valid.
4485
691a26f5
AB
44862013-07-04 Andrew Burgess <aburgess@broadcom.com>
4487
4488 * stack.c (read_frame_arg): No longer fetch lazy values.
4489 * value.c (value_optimized_out): If the value is not already
4490 marked optimized out, and is lazy then fetch it.
4491 (value_primitive_field): Move optimized out check to later in the
4492 function, after we have loaded any lazy values.
4493 (value_fetch_lazy): Use optimized out flag directly rather than
4494 calling optimized_out method.
4495
a58e2656
AB
44962013-07-04 Andrew Burgess <aburgess@broadcom.com>
4497
4498 * valops.c: Don't include "user-regs.h".
4499 (value_fetch_lazy): Moved to value.c.
4500 * value.c: Include "user-regs.h".
4501 (value_fetch_lazy): Moved from valops.c.
4502
bd885420
YQ
45032013-07-04 Yao Qi <yao@codesourcery.com>
4504
4505 Revert:
4506 2013-06-27 Yao Qi <yao@codesourcery.com>
4507
4508 * common/create-version.sh: Update comments. Handle the case
4509 that TARGET_ALIAS is empty.
4510
17ef446e
PA
45112013-07-03 Pedro Alves <palves@redhat.com>
4512
4513 * Makefile.in (config.status): Depend on development.sh.
4514 (aclocal_m4_deps): Add libmcheck.m4.
4515 * acinclude.m4: Include libmcheck.m4.
4516 * configure.ac: Source development.sh instead of setting
4517 'development' here. --enable-libmcheck/--disable-libmcheck code
4518 factored out to GDB_AC_LIBMCHECK. Run it.
4519 * development.sh: New file.
4520 * libmcheck.m4: New file.
4521 * configure: Regenerate.
4522
ac6dd50f
TT
45232013-07-02 Tom Tromey <tromey@redhat.com>
4524
4525 * contrib/ari/update-web-ari.sh: Update for version.in change.
4526
bd1df410
TT
45272013-07-02 Tom Tromey <tromey@redhat.com>
4528
4529 * common/ptid.h: Comment fixes.
4530
4db1a1dc
TT
45312013-07-01 Tom Tromey <tromey@redhat.com>
4532
4533 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4534 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4535 (dwarf2_read_index, create_all_comp_units): Update.
4536
dd9aa048
TT
45372013-07-01 Tom Tromey <tromey@redhat.com>
4538
4539 * configure.ac (build_warnings): Add -Wold-style-definition.
4540 * configure: Rebuild.
4541 * machoread.c (_initialize_machoread): Use "(void)".
4542 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4543 use "(void)".
4544
44d100c3
TT
45452013-07-01 Tom Tromey <tromey@redhat.com>
4546
4547 * configure.ac (build_warnings): Add -Wold-style-declaration.
4548 * configure: Rebuild.
4549 * dsrec.c (make_srec): Use "static const", not "const static".
4550 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4551 not "const static".
4552 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4553 Use "static const", not "const static".
4554 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4555 not "const static".
4556 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4557 not "const static".
4558 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4559 not "const static".
4560 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4561 not "const static".
4562 (v850_dbtrap_breakpoint_from_pc): Likewise.
4563 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4564 not "const static".
4565
2945b807
TT
45662013-07-01 Tom Tromey <tromey@redhat.com>
4567
4568 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4569 * configure: Rebuild.
4570
d8d2a3ee
PA
45712013-07-01 Pedro Alves <palves@redhat.com>
4572
4573 * defs.h: Include "pathmax.h".
4574 * utils.c: Don't include sys/param.h.
4575 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4576 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4577 instead of MAXPATHLEN.
4578 * solib-sunos.c: Don't include sys/param.h.
4579 * xcoffread.c: Don't include sys/param.h.
4580 * bsd-kvm.c: Don't include sys/param.h.
4581 * darwin-nat.c: Don't include sys/param.h.
4582 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4583 * darwin-nat-info.c: Don't include sys/param.h.
4584 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4585 MAXPATHLEN.
4586 * i386obsd-nat.c: Don't include sys/param.h.
4587 * inf-child.c: Don't include sys/param.h.
4588 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4589 * linux-fork.c: Don't include sys/param.h.
4590 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4591 * linux-nat.c: Don't include sys/param.h.
4592 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4593 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4594 * m68klinux-nat.c: Don't include sys/param.h.
4595 * nbsd-nat.c: Don't include sys/param.h.
4596 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4597 * ppc-linux-nat.c: Don't include sys/param.h.
4598 * rs6000-nat.c: Don't include sys/param.h.
4599 * spu-linux-nat.c. Don't include sys/param.h.
4600 * windows-nat.c: Don't include sys/param.h.
4601 * xtensa-linux-nat.c: Don't include sys/param.h.
4602 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4603
38ec2207
PA
46042013-07-01 Pedro Alves <palves@redhat.com>
4605
4606 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4607 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4608 * gnulib/aclocal.m4: Regenerate.
4609 * gnulib/config.in: Regenerate.
4610 * gnulib/configure: Regenerate.
4611 * gnulib/import/pathmax.h: New file.
4612 * gnulib/import/Makefile.am: Regenerate.
4613 * gnulib/import/Makefile.in: Regenerate.
4614 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4615 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4616 * gnulib/import/m4/pathmax.m4: New file.
4617
e655c1a2
PA
46182013-07-01 Pedro Alves <palves@redhat.com>
4619
4620 * configure.ac (GDBINIT): Define, depending on host.
4621 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4622 * top.c (PATH_MAX): Delete fallback definition.
4623 (GDBINIT_FILENAME): Delete.
4624 (gdbinit): Reimplement as const char array set to the GDBINIT
4625 string constant.
4626 * top.h (gdbinit): Make const.
4627 * configure, config.in: Regenerate.
4628
50dd9793
PA
46292013-07-01 Pedro Alves <palves@redhat.com>
4630
4631 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4632 * cli/cli-cmds.h (source_script): Likewise.
4633 * exceptions.c (catch_command_errors_const): New function.
4634 * exceptions.h (catch_command_errors_const): Declare.
4635 * main.c (get_init_files): Make parameters const, and adjust.
4636 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4637 'local_gdbinit' locals const. Adjust to use
4638 catch_command_errors_const.
4639 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4640 'local_gdbinit' locals const.
4641
bc7dea8d
PA
46422013-07-01 Pedro Alves <palves@redhat.com>
4643
4644 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4645 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4646 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4647 <unistd.h>.
4648
8839a007
PA
46492013-07-01 Pedro Alves <palves@redhat.com>
4650
4651 Import the "unistd" gnulib module.
4652 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4653 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4654 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4655 import/m4/unistd_h.m4.
4656 * gnulib/aclocal.m4: Renenerate.
4657 * gnulib/config.in: Renenerate.
4658 * gnulib/configure: Renenerate.
4659 * gnulib/import/Makefile.am: Renenerate.
4660 * gnulib/import/Makefile.in: Renenerate.
4661 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4662 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4663 * gnulib/import/m4/off_t.m4: New file.
4664 * gnulib/import/m4/ssize_t.m4: New file.
4665 * gnulib/import/m4/sys_types_h.m4: New file.
4666 * gnulib/import/m4/unistd_h.m4: New file.
4667 * gnulib/import/sys_types.in.h: New file.
4668 * gnulib/import/unistd.c: New file.
4669 * gnulib/import/unistd.in.h: New file.
4670
8c0da261
PA
46712013-07-01 Pedro Alves <palves@redhat.com>
4672
4673 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4674 defined instead of checking HAVE_UNISTD_H.
4675
3574124b
PA
46762013-07-01 Pedro Alves <palves@redhat.com>
4677
4678 Reimport gnulib from scratch.
4679 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4680 import/m4/onceonly.m4.
4681 * gnulib/aclocal.m4: Renegerate.
4682 * gnulib/config.in: Renegerate.
4683 * gnulib/configure: Renegerate.
4684 * gnulib/import/Makefile.in: Renegerate.
4685 * gnulib/import/extra/update-copyright: Renegerate.
4686 * gnulib/import/m4/onceonly.m4: Delete.
4687
702dc4fd
PA
46882013-07-01 Pedro Alves <palves@redhat.com>
4689
4690 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4691
47e1ce27
JK
46922013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4693
4694 Code cleanup.
4695 * remote.c (async_remote_interrupt_twice): Make it static.
4696 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4697
e82839d4
SDJ
46982013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4699
4700 * ia64-linux-tdep.c: Include <ctype.h>.
4701 (ia64_linux_stap_is_single_operand): New function.
4702 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4703
d6c2da54
TT
47042013-06-28 Tom Tromey <tromey@redhat.com>
4705
4706 * Makefile.in (version.c): Use version.in, not
4707 common/version.in.
4708 * common/create-version.sh: Likewise.
4709 * common/version.in: Move...
4710 * version.in: ...here.
4711
74da6f00
PA
47122013-06-28 Pedro Alves <palves@redhat.com>
4713
4714 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4715 here.
4716 * utils.h (pagination_enabled): Declare.
4717
d32dc48e
PA
47182013-06-28 Pedro Alves <palves@redhat.com>
4719
4720 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4721 Move higher up in file.
4722
0edd9e3b
TT
47232013-06-28 Tom Tromey <tromey@redhat.com>
4724
4725 * tracepoint.c (deprecated_readline_begin_hook)
4726 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4727 declare.
4728
4eb59108
PA
47292013-06-28 Pedro Alves <palves@redhat.com>
4730
4731 PR tui/14880
4732 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4733 checking if they're available.
4734 * value.c (value_available_contents_eq): Change comment.
4735 * value.h (value_available_contents_eq): Expand comment.
4736
97b17156
TT
47372013-06-27 Tom Tromey <tromey@redhat.com>
4738
4739 * target.c (find_run_target): Remove.
4740 * target.h (find_run_target): Remove.
4741
6a3bfc5c
TT
47422013-06-27 Tom Tromey <tromey@redhat.com>
4743
4744 * corelow.c (core_gdbarch): Now static.
4745
c9ef825d
TT
47462013-06-27 Tom Tromey <tromey@redhat.com>
4747
4748 * target.c (target_struct_index): Remove.
4749
e5823f1c
PA
47502013-06-27 Pedro Alves <palves@redhat.com>
4751
4752 * infrun.c: Remove comment describing the 'stepping over runtime
4753 loader dynamic symbol resolution code' mechanism; moved to
4754 gdbint.texinfo.
4755
97f8dd09
PA
47562013-06-27 Pedro Alves <palves@redhat.com>
4757
4758 * exceptions.c (catch_command_errors): Remove spurious space.
4759 * exceptions.h (catch_command_errors): Second parameter is "arg",
4760 not "command".
4761
02b1871e
YQ
47622013-06-27 Yao Qi <yao@codesourcery.com>
4763
4764 * common/create-version.sh: Update comments. Handle the case
4765 that TARGET_ALIAS is empty.
4766
bb1b1cf1
PA
47672013-06-26 Pedro Alves <palves@redhat.com>
4768
4769 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4770 comment.
4771
7b624e71
PA
47722013-06-26 Pedro Alves <palves@redhat.com>
4773
4774 * infrun.c: Update comments on stepping over runtime loader
4775 dynamic symbol resolution code.
4776
74e5a346
SDJ
47772013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4778
4779 * ax-gdb.h (union exp_element): Forward declare.
4780 * parser-defs.h: Include expression.h.
4781
a2fb2cee
MR
47822013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4783
4784 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4785
cdba14e0
DK
47862013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4787
4788 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4789
f30aa5af
DK
47902013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4791
4792 Fix trace-status to output proper start-time and stop-time.
4793 * tracepoint.c (trace_status_command): Fix type of printf arg to
4794 prevent improper type conversion.
4795 (trace_status_mi): Likewise.
4796
1aee363c
MR
47972013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4798
4799 * mips-tdep.c (mips_next_pc): Fix a typo.
4800
3356937a
MR
48012013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4802
4803 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4804
dc673c81
YQ
48052013-06-26 Pedro Alves <pedro@codesourcery.com>
4806 Yao Qi <yao@codesourcery.com>
4807
4808 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4809 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4810 * mi/mi-main.c (print_variable_or_computed): New function.
4811 (mi_cmd_trace_frame_collected): New function.
4812 * tracepoint.c (find_trace_state_variable_by_number): New.
4813 (struct traceframe_info): Move to tracepoint.h
4814 (struct collection_list): Likewise.
4815 (do_collect_symbol): Include locals and arguments in the
4816 collected variables list.
4817 (clear_collection_list): Clear wholly collected variables list
4818 and computed variables list.
4819 (append_exp): New function.
4820 (encode_actions_1): Include variables in the wholly
4821 collected variables list. Include memory ranges and
4822 full-fledged expressions in the computed expressions list.
4823 (encode_actions): Move some code to ...
4824 Return the cleanup chain.
4825 (encode_actions_rsp): ... here. New function.
4826 (get_traceframe_location, get_traceframe_info): Remove static.
4827 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4828 (struct collection_list): Moved from tracepoint.c. Add two
4829 new fields 'wholly_collected' and 'computed'.
4830 (find_trace_state_variable_by_number): Declare.
4831 (encode_actions): Adjust declaration.
4832 (encode_actions_rsp): Declare.
4833 (get_traceframe_info, get_traceframe_location): Declare.
4834
4835 * NEWS: Mention new MI command -trace-frame-collected.
4836
28a93511
YQ
48372013-06-26 Pedro Alves <pedro@codesourcery.com>
4838 Yao Qi <yao@codesourcery.com>
4839
4840 * ctf.c (ctf_traceframe_info): Push trace state variables
4841 present in the trace data into the traceframe info object.
4842 * breakpoint.c (DEF_VEC_I): Remove.
4843 * common/filestuff.c (DEF_VEC_I): Likewise.
4844 * dwarf2loc.c (DEF_VEC_I): Likewise.
4845 * mi/mi-main.c (DEF_VEC_I): Likewise.
4846 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4847 * features/traceframe-info.dtd: Add tvar element and its
4848 attributes.
4849 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4850 (build_traceframe_info): Push trace state variables present in
4851 the trace data into the traceframe info object.
4852 (traceframe_info_start_tvar): New function.
4853 (tvar_attributes): New.
4854 (traceframe_info_children): Add "tvar" element.
4855 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4856
4857 * NEWS: Mention the change in GDB and GDBserver.
4858
ddacd3c8
YQ
48592013-06-26 Pedro Alves <pedro@codesourcery.com>
4860 Yao Qi <yao@codesourcery.com>
4861
4862 * tracepoint.c (trace_dump_command): Move code to ...
4863 (get_traceframe_location): ... here. New.
4864
05796b35
YQ
48652013-06-26 Pedro Alves <pedro@codesourcery.com>
4866 Yao Qi <yao@codesourcery.com>
4867
4868 * tracepoint.c (trace_dump_command): GDB emits an error
4869 instead of a warning when a traceframe is not selected.
4870
cbfa3b61
YQ
48712013-06-26 Pedro Alves <pedro@codesourcery.com>
4872 Yao Qi <yao@codesourcery.com>
4873
4874 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4875 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4876 in collection_list.
4877 (do_clear_collection_list, init_collection_list): New.
4878 (encode_actions): Add local variables 'tracepoint_list' and
4879 'stepping_list'. Call init_collection_list and make cleanup
4880 which calls do_clear_collection_list. Don't call
4881 clear_collection_list.
4882 (_initialize_tracepoint): Delete references to
4883 'tracepoint_list' and 'stepping_list'.
4884
6e2048d3
TT
48852013-06-25 Tom Tromey <tromey@redhat.com>
4886
4887 * common/create-version.sh (date): Use "$", not "$$" in sed
4888 expression.
4889
42059f0e
KB
48902013-06-25 Kevin Buettner <kevinb@redhat.com>
4891
4892 * NEWS (New targets): Add entry for TI MSP430.
4893
a0743c90
YQ
48942013-06-25 Yao Qi <yao@codesourcery.com>
4895
4896 * remote.c (remote_start_remote): Move code to upload tsv
4897 earlier.
4898
9d6e6e84
HZ
48992013-06-25 Yao Qi <yao@codesourcery.com>
4900 Hui Zhu <hui@codesourcery.com>
4901 Pedro Alves <palves@redhat.com>
4902
4903 PR breakpoints/15075
4904 PR breakpoints/15434
4905 * breakpoint.c (bpstat_stop_status): Call
4906 b->ops->after_condition_true.
4907 (update_dprintf_command_list): Don't append "continue" command
4908 to the command list of dprintf breakpoint.
4909 (base_breakpoint_after_condition_true): New function.
4910 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4911 (dprintf_after_condition_true): New function.
4912 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4913 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4914
586cf749
KB
49152013-06-24 Kevin Buettner <kevinb@redhat.com>
4916
4917 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4918 (ALLDEPFILES): Add msp430-tdep.c.
4919 * configure.tgt (msp430*-*-elf): New target.
4920 * msp430-tdep.c: New file.
4921
1bbce132
MR
49222013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4923
4924 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4925 microMIPS synthetic symbols.
4926
3e5d3a5a
MR
49272013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4928
4929 * objfiles.h (pc_in_section): New prototype.
4930 (in_plt_section): Remove name argument, replace prototype with
4931 static inline function.
4932 * mips-tdep.h: Include "objfiles.h".
4933 (in_mips_stubs_section): New function.
4934 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4935 in_solib_call_trampoline member.
4936 (hppa_in_solib_call_trampoline): Remove name argument.
4937 * objfiles.c (pc_in_section): New function.
4938 (in_plt_section): Remove function.
4939 * mips-linux-tdep.c: Include "objfiles.h".
4940 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4941 name argument. Return 1 rather than the low 16-bit halfword of
4942 any instruction examined.
4943 (mips_linux_in_dynsym_resolve_code): Update
4944 mips_linux_in_dynsym_stub call accordingly.
4945 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4946 rather than an equivalent hand-coded sequence.
4947 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4948 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4949 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4950 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4951 in_opd_section.
4952 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4953 on call to tdep->in_solib_call_trampoline.
4954 (hppa_in_solib_call_trampoline): Remove name argument, update
4955 according to in_plt_section change.
4956 (hppa_skip_trampoline_code): Update according to in_plt_section
4957 change.
4958 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4959 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4960 Likewise.
4961 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4962 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4963 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4964 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4965 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4966 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4967 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4968 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4969 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4970 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4971 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4972 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4973 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4974
b9b26a16
JB
49752013-06-24 Joel Brobecker <brobecker@adacore.com>
4976
4977 * common/create-version.sh: Fix expansion of $host_alias
4978 and $target_alias in generation of HOST_NAME and TARGET_NAME
4979 (resp.).
4980
01208463
TT
49812013-06-24 Tom Tromey <tromey@redhat.com>
4982
4983 * common/create-version.sh: New file.
4984 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4985 create-version.sh.
4986 (HFILES_NO_SRCDIR): Use common/version.h.
4987 * version.in: Move to ...
4988 * common/version.in: ... here. Replace date with "DATE".
4989 * version.h: Move to ...
4990 * common/version.h: ... here.
4991
bb6b9a5e
JB
49922013-06-21 Joel Brobecker <brobecker@adacore.com>
4993
4994 * gdb/gnulib/Makefile.in: Update date in copyright header.
4995 * gdb/gnulib/configure.ac: Ditto.
4996 * gdb/gnulib/update-gnulib.sh: Ditto.
4997
c3b18ee7
JB
49982013-06-21 Joel Brobecker <brobecker@adacore.com>
4999
5000 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5001 "gdb/gnulib/import".
5002
85d3b769
WN
50032013-06-21 Will Newton <will.newton@linaro.org>
5004
5005 * doublest.c (ldfrexp): Remove function.
5006 (convert_doublest_to_floatformat): Call frexpl instead of
5007 ldfrexp.
5008
88b48903
WN
50092013-06-21 Will Newton <will.newton@linaro.org>
5010
5011 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5012 * gnulib/aclocal.m4: Regenerate.
5013 * gnulib/config.in: Regenerate.
5014 * gnulib/configure: Regenerate.
5015 * gnulib/import/Makefile.am: Update.
5016 * gnulib/import/Makefile.in: Update.
5017 * gnulib/import/m4/gnulib-cache.m4: Update.
5018 * gnulib/import/m4/gnulib-comp.m4: Update.
5019 * gnulib/import/float+.h: Import.
5020 * gnulib/import/float.c: Import.
5021 * gnulib/import/float.in.h: Import.
5022 * gnulib/import/fpucw.h: Import.
5023 * gnulib/import/frexp.c: Import.
5024 * gnulib/import/frexpl.c: Import.
5025 * gnulib/import/isnan.c: Import.
5026 * gnulib/import/isnand-nolibm.h: Import.
5027 * gnulib/import/isnand.c: Import.
5028 * gnulib/import/isnanl-nolibm.h: Import.
5029 * gnulib/import/isnanl.c: Import.
5030 * gnulib/import/itold.c: Import.
5031 * gnulib/import/m4/exponentd.m4: Import.
5032 * gnulib/import/m4/exponentl.m4: Import.
5033 * gnulib/import/m4/float_h.m4: Import.
5034 * gnulib/import/m4/fpieee.m4: Import.
5035 * gnulib/import/m4/frexp.m4: Import.
5036 * gnulib/import/m4/frexpl.m4: Import.
5037 * gnulib/import/m4/isnand.m4: Import.
5038 * gnulib/import/m4/isnanl.m4: Import.
5039 * gnulib/import/m4/math_h.m4: Import.
5040 * gnulib/import/math.c: Import.
5041 * gnulib/import/math.in.h: Import.
5042
4353c9e6
JK
50432013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5044
5045 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5046 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5047 signature_INTEL_edx comparisons.
5048
e3e06db3
DE
50492013-06-20 Doug Evans <dje@google.com>
5050
6ac97d4c
DE
5051 symtab/15652
5052 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5053 All callers updated.
5054 (open_dwp_file): If we can't find the dwp file, search the basename
5055 in debug-file-directory.
5056
93417882
DE
5057 * dwarf2read.c (struct dwp_file): Fix comment.
5058 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5059
e3e06db3
DE
5060 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5061 better.
5062
0878d0fa
YQ
50632013-06-20 Yao Qi <yao@codesourcery.com>
5064
5065 * breakpoint.c (create_breakpoint): Fix code indentation.
5066
023fa29b
YQ
50672013-06-20 Yao Qi <yao@codesourcery.com>
5068
5069 * breakpoint.c (create_breakpoints_sal_default): Remove
5070 parameter 'lsal'. Update declaration.
5071 (bkpt_create_breakpoints_sal): Caller update.
5072 (tracepoint_create_breakpoints_sal): Likewise.
5073
c898adb7
YQ
50742013-06-20 Pedro Alves <pedro@codesourcery.com>
5075 Yao Qi <yao@codesourcery.com>
5076
5077 * NEWS: Mention the new option '--skip-unavailable' of command
5078 -data-list-register-values.
5079 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5080 --skip-unavailable option. Adjust to use output_register.
5081 (output_register): Add new 'skip_unavailable' parameter.
5082 Handle it.
5083
4d157a3d
MF
50842013-06-19 Mike Frysinger <vapier@gentoo.org>
5085
5086 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5087 common/i386-gcc-cpuid.h.
5088 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5089 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5090 Copy the latest version from upstream gcc.
5091 * common/linux-btrace.c: Include i386-cpuid.h.
5092 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5093 call to i386_cpuid.
5094 (cpu_supports_btrace): Likewise.
5095 * go32-nat.c: Include i386-cpuid.h.
5096 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5097
1ce4db08
DE
50982013-06-19 Doug Evans <dje@google.com>
5099
5100 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5101 (get_section_index): Ditto.
5102
0e4777df
TT
51032013-06-19 Tom Tromey <tromey@redhat.com>
5104
5105 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5106 "dprintf" help.
5107
3190f0c6
DE
51082013-06-18 Doug Evans <dje@google.com>
5109
5110 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5111 before using it.
5112 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5113 Move test of cu_index closer to use. Print complaint if cu_index
5114 is bad.
5115
8b89a20a
JB
51162013-06-18 Joel Brobecker <brobecker@adacore.com>
5117
5118 * machoread.c (oso_vector): Delete this global.
5119 (macho_register_oso): Add new parameter "oso_vector_ptr".
5120 Use it instead of the "oso_vector" global.
5121 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5122 (macho_symfile_read): Use a local oso_vector, to be free'ed
5123 at the end of this function, in place of the old "oso_vector"
5124 global. Update various function calls accordingly. Use one
5125 single cleanup chain for the entire function.
5126
59b0c7c1
JB
51272013-06-18 Joel Brobecker <brobecker@adacore.com>
5128
937c708c 5129 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5130 DWARF2_PER_OBJFILE by uses of DATA instead.
5131
427cd150
TT
51322013-06-18 Tom Tromey <tromey@redhat.com>
5133
5134 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5135 argument.
5136 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5137 Special case signals other than GDB_SIGNAL_TRAP.
5138 (explains_signal_watchpoint): New function.
5139 (base_breakpoint_explains_signal): Add 'sig' argument.
5140 (initialize_breakpoint_ops): Set 'explains_signal' method for
5141 watchpoints.
5142 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5143 signal argument.
5144 (bpstat_explains_signal): Likewise.
5145 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5146
2d57700b
TT
51472013-06-18 Tom Tromey <tromey@redhat.com>
5148
5149 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5150
ac475191
TT
51512013-06-18 Tom Tromey <tromey@redhat.com>
5152
5153 * python/python.c (finish_python_initialization): Decref
5154 'pythondir' on failure path as well.
5155
5bd1ef56
TT
51562013-06-18 Tom Tromey <tromey@redhat.com>
5157
5158 PR symtab/15391:
5159 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5160 after taking bits_to_skip into account. Sign extend byte_offset.
5161 * utils.h (gdb_sign_extend): Declare.
5162 * utils.c (gdb_sign_extend): New function.
5163
92fac807
JK
51642013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5165
5166 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5167
2d503272
PM
51682013-06-17 Pierre Muller <muller@sourceware.org>
5169
5170 * corelow.c (core_open): Print GDB signal name instead of target
5171 signal number.
5172
6916fd98
MF
51732013-06-17 Mike Frysinger <vapier@gentoo.org>
5174
5175 * .gitignore: Add /gcore.
5176
9c02c129
DE
51772013-06-13 Doug Evans <dje@google.com>
5178
5179 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5180 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5181
d0548fa2
PM
51822013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5183
5184 * stack.c (backtrace_command_1): Fix indentation.
5185
22128028
JB
51862013-06-11 Joel Brobecker <brobecker@adacore.com>
5187
5188 * window-nat.c (thread_rec): Add missing empty line after
5189 local variable declaration.
5190
2ed3e009
JB
51912013-06-11 Joel Brobecker <brobecker@adacore.com>
5192
5193 * windows-nat.c (thread_rec): Revert format used to print
5194 error code returned by SuspendThread from %d back to %u.
5195
0c3d84be
JB
51962013-06-11 Joel Brobecker <brobecker@adacore.com>
5197
5198 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5199 ID in debug trace.
5200 (get_windows_debug_event): Likewise, for all debug traces.
5201
80e88e1a
JB
52022013-06-11 Joel Brobecker <brobecker@adacore.com>
5203
5204 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5205 warning message.
5206
1edebdbf
YQ
52072013-06-08 Pedro Alves <pedro@codesourcery.com>
5208 Yao Qi <yao@codesourcery.com>
5209
5210 * mi/mi-main.c (get_register): Remove declaration.
5211 (output_register): Declare.
5212 (mi_cmd_data_list_register_values): Remove local variable
5213 'tuple_cleanup'. Move some code into output_register.
5214 (get_register): Renamed to ...
5215 (output_register): ... this. Output the register's
5216 "number" ui_out tuple here.
5217
47d48711
PA
52182013-06-07 Pedro Alves <palves@redhat.com>
5219
5220 * darwin-nat.c: Fix formating in copyright header.
5221 * darwin-nat.h: Likewise.
5222 * gnu-nat.c: Likewise.
5223 * machoread.c: Likewise.
5224
3aee8918
PA
52252013-06-07 Pedro Alves <palves@redhat.com>
5226
5f2b57b5 5227 PR server/14823
3aee8918
PA
5228 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5229 static. Output a global target description pointer.
5230 (init_registers_${name}): Adjust to initialize a
5231 target description structure.
5232
fe8400b4
WN
52332013-06-07 Will Newton <will.newton@linaro.org>
5234
5235 * printcmd.c (build_address_symbolic): Call
5236 gdbarch_addr_bits_remove for text minimal symbols.
5237
20df6206
WN
52382013-06-07 Will Newton <will.newton@linaro.org>
5239
5240 * MAINTAINERS: Add myself to Write After Approval.
5241
aef525cb
YQ
52422013-06-07 Yao Qi <yao@codesourcery.com>
5243
5244 * tracepoint.c (start_tracing): Move code to ...
5245 (trace_reset_local_state): ... here. New.
5246 (disconnect_tracing): Don't call set_current_traceframe,
5247 set_tracepoint_num, and set_traceframe_context. Call
5248 trace_reset_local_state instead.
5249 (tfile_close): Call trace_reset_local_state.
5250 * ctf.c (ctf_close): Likewise.
5251 * remote.c (remote_close): Likewise.
5252 * tracepoint.h (trace_reset_local_state): Declare.
5253
d2415c6c
DE
52542013-06-06 Doug Evans <dje@google.com>
5255
5256 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5257 and fix header docs.
5258
69fc87c2
DE
52592013-06-05 Doug Evans <dje@google.com>
5260 Keith Seitz <keiths@redhat.com>
5261
5262 PR 15519
5263 * cp-namespace.c (find_symbol_in_baseclass): Call
5264 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5265 Check result of call to lookup_symbol_static.
5266 Call lookup_static_symbol_aux unconditionally.
5267 Call check_typedef on base types before accessing them.
5268 (cp_lookup_nested_symbol): Fix comment.
5269
a513d1e8
LM
52702013-06-05 Luis Machado <lgustavo@codesourcery.com>
5271
5272 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5273 minimal symbols pointing to function descriptors.
5274
351a6f02
TT
52752013-06-05 Tom Tromey <tromey@redhat.com>
5276
5277 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5278
5e1b953b 52792013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5280 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5281
5282 * remote.c (remote_wait_as): Restore signal handler before returning
5283 when GDB gets a notification.
5284
f9e14852
GB
52852013-06-04 Gary Benson <gbenson@redhat.com>
5286
8445cbf1 5287 PR 2328
f9e14852
GB
5288 * breakpoint.h (handle_solib_event): Moved function declaration
5289 to solib.h.
5290 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5291 (bpstat_stop_status): Pass new argument to handle_solib_event.
5292 * solib.h (update_solib_breakpoints): New function declaration.
5293 (handle_solib_event): Moved function declaration from
5294 breakpoint.h.
5295 * solib.c (update_solib_breakpoints): New function.
5296 (handle_solib_event): Moved function from breakpoint.c.
5297 Updated to call solib_ops->handle_event if not NULL.
5298 * solist.h (target_so_ops): New fields "update_breakpoints" and
5299 "handle_event".
5300 * infrun.c (set_stop_on_solib_events): New function.
5301 (_initialize_infrun): Use the above for "set
5302 stop-on-solib-events".
5303 (handle_inferior_event): Pass new argument to handle_solib_event.
5304 * solib-svr4.c (probe.h): New include.
5305 (svr4_free_library_list): New forward declaration.
5306 (probe_action): New enum.
5307 (probe_info): New struct.
5308 (probe_info): New static variable.
5309 (NUM_PROBES): New definition.
5310 (svr4_info): New fields "using_xfer", "probes_table" and
5311 "solib_list".
5312 (free_probes_table): New function.
5313 (free_solib_list): New function.
5314 (svr4_pspace_data_cleanup): Free probes table and solib list.
5315 (svr4_copy_library_list): New function.
5316 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5317 (svr4_read_so_list): New parameter "prev_lm".
5318 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5319 (svr4_current_sos): New function.
5320 (probe_and_action): New struct.
5321 (hash_probe_and_action): New function.
5322 (equal_probe_and_action): Likewise.
5323 (register_solib_event_probe): Likewise.
5324 (solib_event_probe_at): Likewise.
5325 (solib_event_probe_action): Likewise.
5326 (solist_update_full): Likewise.
5327 (solist_update_incremental): Likewise.
5328 (disable_probes_interface_cleanup): Likewise.
5329 (svr4_handle_solib_event): Likewise.
5330 (svr4_update_solib_event_breakpoint): Likewise.
5331 (svr4_update_solib_event_breakpoints): Likewise.
5332 (svr4_create_solib_event_breakpoints): Likewise.
5333 (enable_break): Free probes table before creating breakpoints.
5334 Use svr4_create_solib_event_breakpoints to create breakpoints.
5335 (svr4_solib_create_inferior_hook): Free the solib list.
5336 (_initialize_svr4_solib): Initialise
5337 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5338
ced63ec0
GB
53392013-06-04 Gary Benson <gbenson@redhat.com>
5340
5341 * target.h (target_ops): New field
5342 "to_augmented_libraries_svr4_read".
5343 (target_augmented_libraries_svr4_read): New macro.
5344 * target.c (update_current_target): Handle
5345 to_augmented_libraries_svr4_read.
5346 * remote.c (remote_state): New field
5347 "augmented_libraries_svr4_read".
5348 (remote_augmented_libraries_svr4_read_feature): New function.
5349 (remote_protocol_features): Add entry for
5350 "augmented-libraries-svr4-read".
5351 (remote_augmented_libraries_svr4_read): New function.
5352 (init_remote_ops): Initialize
5353 remote_ops.to_augmented_libraries_svr4_read.
5354
7f91dbec
GB
53552013-06-04 Gary Benson <gbenson@redhat.com>
5356
5357 * NEWS: Update.
5358
607ece04
GB
53592013-06-04 Gary Benson <gbenson@redhat.com>
5360
5361 * objfiles.h (inhibit_section_map_updates): New function
5362 declaration.
5363 (resume_section_map_updates): Likewise.
5364 (resume_section_map_updates_cleanup): Likewise.
5365 * objfiles.c (objfile_pspace_info): Removed field
5366 "objfiles_changed_p". New fields "new_objfiles_available",
5367 "section_map_dirty" and "inhibit_updates".
5368 (allocate_objfile): Set new_objfiles_available.
5369 (free_objfile): Set section_map_dirty.
5370 (objfile_relocate1): Likewise.
5371 (in_plt_section): Likewise.
5372 (find_pc_section): Update the conditions under which the
5373 section map will be updated.
5374 (inhibit_section_map_updates): New function.
5375 (resume_section_map_updates): Likewise.
5376 (resume_section_map_updates_cleanup): Likewise.
5377
9ee6a5ac
GB
53782013-06-04 Gary Benson <gbenson@redhat.com>
5379
5380 * probe.h (get_probe_argument_count): New declaration.
5381 (evaluate_probe_argument): Likewise.
5382 * probe.c (get_probe_argument_count): New function.
5383 (evaluate_probe_argument): Likewise.
5384 (probe_safe_evaluate_at_pc): Use the above new functions.
5385
845d4708
AM
53862013-06-04 Alan Modra <amodra@gmail.com>
5387
5388 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5389 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5390 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5391 target mem reads on optional insns.
5392 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5393 ppc_insns_match_pattern calls.
5394 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5395 Add match for power7 thread safety insns, and new order of
5396 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5397 invocation in comment, and update rest of comment.
5398 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5399 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5400 (ppc64_standard_linkage2_target): Update insn offsets.
5401 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5402 stubs first. Update calls.
5403
404e278f
YQ
54042013-06-04 Yao Qi <yao@codesourcery.com>
5405
5406 * solib.c (solib_find): Don't need dir separator if path has
5407 drive spec.
5408
f6aea118
JB
54092013-06-03 Joel Brobecker <brobecker@adacore.com>
5410
5411 Revert (indirectly causes a SIGSEGV):
5412 * machoread.c (macho_symfile_read): Assign first cleanup to
5413 'back_to'.
5414
87967e27
YQ
54152013-06-03 Yao Qi <yao@codesourcery.com>
5416
5417 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5418 mi-parse.c. Make them static.
5419 (mi_all_values): Likewise.
5420 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5421 mi_parse_print_values. Make it external.
5422 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5423 Remove the declarations.
5424 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5425 * mi/mi-parse.h (mi_parse_print_values): Declare.
5426 * mi/mi-cmd-stack.c: Include mi-parse.h.
5427 (parse_print_values): Remove
5428 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5429 of parse_print_values.
5430 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5431
3ca73e0c
YQ
54322013-05-31 Pedro Alves <pedro@codesourcery.com>
5433 Yao Qi <yao@codesourcery.com>
5434
5435 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5436 (encode_actions): Move code to ...
5437 (all_tracepoint_actions_and_cleanup): ... here. New.
5438 (trace_dump_command): Likewise.
5439
4e993a19
TT
54402013-05-30 Tom Tromey <tromey@redhat.com>
5441
5442 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5443
e3b76b4f
TT
54442013-05-30 Tom Tromey <tromey@redhat.com>
5445
5446 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5447 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5448 'old_chain' argument. Add 'parser_result' argument.
5449 (gdb_xml_create_parser_and_cleanup): Remove old version.
5450 (gdb_xml_parse_quick): Update.
5451 (xml_process_xincludes): Update.
5452 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5453 declare.
5454
db26349c
TT
54552013-05-30 Tom Tromey <tromey@redhat.com>
5456
5457 * probe.c (collect_probes): Check arguments for NULL before
5458 calling compile_rx_or_error.
5459 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5460 Remove NULL return.
5461
77f9e713
TT
54622013-05-30 Tom Tromey <tromey@redhat.com>
5463
5464 * infrun.c (adjust_pc_after_break): Introduce an outer null
5465 cleanup.
5466
45475de7
TT
54672013-05-30 Tom Tromey <tromey@redhat.com>
5468
5469 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5470
ac5007fd
TT
54712013-05-30 Tom Tromey <tromey@redhat.com>
5472
5473 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5474 for 'old_chain'. Do not check 'head' before processing
5475 cleanups.
5476
cd82eddc
TT
54772013-05-30 Tom Tromey <tromey@redhat.com>
5478
5479 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5480 "cleanup_tuple".
5481
57cee33a
TT
54822013-05-30 Tom Tromey <tromey@redhat.com>
5483
5484 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5485 inner scope. Unconditionally call do_cleanups.
5486
795d915c
TT
54872013-05-30 Tom Tromey <tromey@redhat.com>
5488
5489 * source.c (find_and_open_source): Call do_cleanups.
5490
1fc3cf4a
TT
54912013-05-30 Tom Tromey <tromey@redhat.com>
5492
5493 * linux-thread-db.c (thread_db_load_search): Unconditionally
5494 call do_cleanups.
5495
e35ac9bf
TT
54962013-05-30 Tom Tromey <tromey@redhat.com>
5497
5498 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5499 for 'cleanup'; instead use a later one.
5500
f3300387
TT
55012013-05-30 Tom Tromey <tromey@redhat.com>
5502
5503 * python/py-breakpoint.c (bppy_get_commands): Use
5504 explicit, unconditional return.
5505 * python/py-frame.c (frapy_read_var): Likewise.
5506 * python/python.c (gdbpy_decode_line): Likewise.
5507
c27e16e3
TT
55082013-05-30 Tom Tromey <tromey@redhat.com>
5509
5510 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5511 do_cleanups on all return paths.
5512
5ae85e44
TT
55132013-05-30 Tom Tromey <tromey@redhat.com>
5514
5515 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5516
73b8d9da
TT
55172013-05-30 Tom Tromey <tromey@redhat.com>
5518
5519 * stabsread.c (read_struct_type): Call do_cleanups along
5520 all return paths.
5521
7d266584
MR
55222013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5523
5524 * mips-linux-tdep.c: Adjust formatting throughout.
5525
0f900f54
TT
55262013-05-30 Tom Tromey <tromey@redhat.com>
5527
5528 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5529 along all return paths.
5530
a991ac28
TT
55312013-05-30 Tom Tromey <tromey@redhat.com>
5532
5533 * symfile.c (find_separate_debug_file): Call do_cleanups
5534 along all return paths.
5535
1abaf042
TT
55362013-05-30 Tom Tromey <tromey@redhat.com>
5537
5538 * symtab.c (search_symbols): Introduce a null cleanup for
5539 'retval_chain'.
5540
edefe1da
TT
55412013-05-30 Tom Tromey <tromey@redhat.com>
5542
5543 * python/py-value.c (valpy_binop): Call do_cleanups before
5544 exiting loop.
5545
54f72dcc
TT
55462013-05-30 Tom Tromey <tromey@redhat.com>
5547
5548 * python/py-prettyprint.c (print_children): Remove extra
5549 do_cleanups call.
5550
af1c6971
TT
55512013-05-30 Tom Tromey <tromey@redhat.com>
5552
5553 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5554 all return paths.
5555
b862ce75
TT
55562013-05-30 Tom Tromey <tromey@redhat.com>
5557
5558 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5559 along all return paths.
5560
e12fefc8
TT
55612013-05-30 Tom Tromey <tromey@redhat.com>
5562
5563 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5564 call do_cleanups.
5565
4867f990
TT
55662013-05-30 Tom Tromey <tromey@redhat.com>
5567
5568 * varobj.c (c_value_of_root): Call do_cleanups along all
5569 return paths.
5570
4fd2d6af
TT
55712013-05-30 Tom Tromey <tromey@redhat.com>
5572
5573 * tracepoint.c (trace_dump_command): Unconditionally call
5574 do_cleanups.
5575
752eb8b4
TT
55762013-05-30 Tom Tromey <tromey@redhat.com>
5577
5578 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5579 do_cleanups earlier.
5580
e42d0aa5
TT
55812013-05-30 Tom Tromey <tromey@redhat.com>
5582
5583 * machoread.c (macho_symfile_read): Assign first cleanup to
5584 'back_to'.
5585
4bbc010a
TT
55862013-05-30 Tom Tromey <tromey@redhat.com>
5587
5588 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5589
b9635925
TT
55902013-05-30 Tom Tromey <tromey@redhat.com>
5591
5592 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5593
25f43500
TT
55942013-05-30 Tom Tromey <tromey@redhat.com>
5595
5596 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5597 call discard_cleanups.
5598 (inf_ptrace_attach): Likewise.
5599
d6a2e54a
TT
56002013-05-30 Tom Tromey <tromey@redhat.com>
5601
5602 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5603 return paths.
5604 (mips_initialize): Likewise.
5605 (common_open): Call do_cleanups.
5606
48be7c1b
TT
56072013-05-30 Tom Tromey <tromey@redhat.com>
5608
5609 * utils.c (internal_vproblem): Call do_cleanups.
5610
e61727ab
TT
56112013-05-30 Tom Tromey <tromey@redhat.com>
5612
5613 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5614
b81b921f
TT
56152013-05-30 Tom Tromey <tromey@redhat.com>
5616
5617 * cli/cli-script.c (setup_user_args): Don't return after error.
5618
fe48dfb1
TT
56192013-05-30 Tom Tromey <tromey@redhat.com>
5620
5621 * somread.c (som_symtab_read): Call do_cleanups.
5622
27833de7
TT
56232013-05-30 Tom Tromey <tromey@redhat.com>
5624
5625 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5626
5b3fca71
TT
56272013-05-30 Tom Tromey <tromey@redhat.com>
5628
5629 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5630 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5631 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5632 * source.c (show_substitute_path_command): Call do_cleanups.
5633 (unset_substitute_path_command, set_substitute_path_command):
5634 Likewise.
5635 * symfile.c (load_command): Call do_cleanups.
5636
af83e3f8
TT
56372013-05-30 Tom Tromey <tromey@redhat.com>
5638
5639 * contrib/cleanup_check.py: New file.
5640 * contrib/gcc-with-excheck: Add option parsing.
5641
564eac42
JB
56422013-05-30 Joel Brobecker <brobecker@adacore.com>
5643
5644 * windows-nat.c (windows_delete_thread): Add missing space
5645 in cast expression.
5646
47902076
HAQ
56472013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5648
5649 * inferior.c (top level): Include tilde.h.
5650 (add_inferior_command): Call tilde_expand on the value of 'exec'
5651 argument.
5652
23da373a
YQ
56532013-05-30 Pedro Alves <pedro@codesourcery.com>
5654 Yao Qi <yao@codesourcery.com>
5655
5656 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5657 Caller update.
5658 (encode_actions): Likewise.
5659 * remote.c (remote_download_tracepoint): Caller update.
5660 * tracepoint.h (encode_actions): Update declaration.
5661
a6e6f791
PA
56622013-05-30 Pedro Alves <palves@redhat.com>
5663
5664 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5665 pointer.
5666
36d25514
YQ
56672013-05-30 Yao Qi <yao@codesourcery.com>
5668
5669 * remote.c (remote_check_symbols): Remove unused parameter
5670 'objfile'.
5671 Declaration update.
5672 (remote_start_remote, remote_new_objfile): Caller update.
5673
62a813cc
YQ
56742013-05-30 Yao Qi <yao@codesourcery.com>
5675
5676 * mi/mi-cmds.c (mi_cmds): Define MI command
5677 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5678 DEF_MI_CMD_CLI.
5679
28439a30
PA
56802013-05-29 Pedro Alves <palves@redhat.com>
5681
5682 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5683 (remote_insert_watchpoint, remote_remove_watchpoint)
5684 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5685 (remote_verify_memory, compare_sections_command)
5686 (remote_search_memory): Set the general process/thread on the
5687 remote side.
5688
6ac1c082
PA
56892013-05-29 Pedro Alves <palves@redhat.com>
5690
5691 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5692 (_initialize_aarch64_tdep): Don't call
5693 initialize_tdesc_aarch64_without_fpu.
5694 * features/Makefile (WHICH): Remove reference to
5695 aarch64-without-fpu.
5696 * features/aarch64-without-fpu.c: Delete file.
5697 * regformats/aarch64-without-fpu.dat: Delete file.
5698
a73e3634
YQ
56992013-05-28 Yao Qi <yao@codesourcery.com>
5700
5701 * tracepoint.c (stringify_collection_list): Remove parameter
5702 'string'.
5703 (encode_actions): Caller update. Remove local variables.
5704
c0ea94eb
YQ
57052013-05-24 Yao Qi <yao@codesourcery.com>
5706
5707 * tracepoint.c (TFILE_PID): Remove.
5708 (tfile_open): Don't add thread and inferior.
5709 (tfile_close): Don't set 'inferior_ptid'. Don't call
5710 exit_inferior_silent.
5711 (tfile_thread_alive): Remove.
5712 (init_tfile_ops): Don't set field 'to_thread_alive' of
5713 tfile_ops.
5714
20d7f211
DE
57152013-05-23 Doug Evans <dje@google.com>
5716
5717 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5718
8658d16d
PA
57192013-05-23 Pedro Alves <palves@redhat.com>
5720
5721 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5722 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5723 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5724 Only define if HAVE_SOCKETS is defined.
5725 * configure.ac: Check for sys/socket.h.
5726 * config.in, configure: Regenerate.
5727
21aa081e
PA
57282013-05-23 Pedro Alves <palves@redhat.com>
5729
5730 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5731 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5732 printing uint32_t variables.
5733
c2d6af84
PA
57342013-05-23 Pedro Alves <palves@redhat.com>
5735
5736 * NEWS: Mention GDBserver range stepping support.
5737
c1e36e3e
PA
57382013-05-23 Yao Qi <yao@codesourcery.com>
5739 Pedro Alves <palves@redhat.com>
5740
5741 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5742 field.
5743 * infcmd.c (step_once, until_next_command): Enable range stepping.
5744 * infrun.c (displaced_step_prepare): Disable range stepping.
5745 (resume): Disable range stepping if stepping over a breakpoint or
5746 we have software watchpoints. If range stepping is enabled,
5747 assert the thread is in the stepping range.
5748 (clear_proceed_status_thread): Clear may_range_step.
5749 (handle_inferior_event): Disable range stepping as soon as we know
5750 the thread that hit the event. Re-enable it whenever we're going
5751 to step with a step range.
5752 * remote.c (struct vCont_action_support) <r>: New field.
5753 (use_range_stepping): New global.
5754 (remote_vcont_probe): Handle 'r' action.
5755 (append_resumption): Append an 'r' action if the thread may range
5756 step.
5757 (show_range_stepping): New function.
5758 (set_range_stepping): New function.
5759 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5760 'set range-stepping' and 'show range-stepping' commands.
5761 * NEWS: Mention range stepping, the new vCont;r action, and the
5762 new "set/show range-stepping" commands.
5763
d458bd84
PA
57642013-05-23 Yao Qi <yao@codesourcery.com>
5765 Pedro Alves <palves@redhat.com>
5766
5767 * remote.c (struct vCont_action_support): New struct.
5768 (struct remote_state) <support_vCont_t>: Remove field.
5769 <vCont_actions_support>: New field.
5770 (remote_vcont_probe, remote_stop_ns): Update.
5771
ce4c476a
PA
57722013-05-23 Yao Qi <yao@codesourcery.com>
5773 Pedro Alves <palves@redhat.com>
5774
5775 * gdbthread.h (pc_in_thread_step_range): New declaration.
5776 * thread.c (pc_in_thread_step_range): New function.
5777 * infrun.c (handle_inferior_event): Use it.
5778
ce70887a
JB
57792013-05-23 Joel Brobecker <brobecker@adacore.com>
5780
5781 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5782 of sprintf.
5783
55b87a52
KS
57842013-05-22 Keith Seitz <keiths@redhat.com>
5785
5786 * ada-lang.c (is_known_support_routine): Add explicit free of
5787 'func_name' from find_frame_funname.
5788 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5789 for func_name from find_frame_funname.
5790 * python/py-frame.c (frapy_name): Add explicit free of
5791 'name' from find_frame_funname.
5792 * stack.c (find_frame_funname): Add comment explaining that
5793 funcp must be freed by the caller.
5794 Return copy of symbol names instead of pointers.
5795 (print_frame): Add a cleanup for 'funname' from
5796 find_frame_funname.
5797 * stack.h (find_frame_funname): Remove "const" from
5798 'funname' parameter.
5799
5f2e6b00
TT
58002013-05-22 Tom Tromey <tromey@redhat.com>
5801
5802 PR c++/15401:
5803 * c-valprint.c (c_value_print): Use value_addr for
5804 references. Convert back to reference type with value_ref.
5805
d85c4847
EZ
58062013-05-22 Eli Zaretskii <eliz@gnu.org>
5807
5808 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5809 unloaded DLL, it will be done by handle_solib_event. See
5810 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5811 details.
5812
54eb231c
PM
58132013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5814
5815 * ui-out.c: Create typedef ui_out_level_p and define vector
5816 operations for that type.
5817 (struct ui_out): Use a vector instead of an array.
5818 (current_level): Return level from a vector.
5819 (push_level): Create a level in a vector.
5820 (pop_level): Delete a level in a vector.
5821 (ui_out_new): Create initial level zero level, and store in a
5822 vector.
5823 (ui_out_destroy): Add vector cleanup.
5824
ac90359c
PA
58252013-05-22 Pedro Alves <palves@redhat.com>
5826
5827 * python/python-internal.h (gdb_Py_DECREF): Tag with
5828 "ARI: editCase function".
5829
6dcc1893
PP
58302013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5831
5832 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5833
c8c735b9
PA
58342013-05-21 Pedro Alves <palves@redhat.com>
5835
5836 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5837 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5838 * python/py-utils.c (py_decref): Don't check for NULL before
5839 calling Py_DECREF.
5840
1915daeb
PA
58412013-05-21 Pedro Alves <palves@redhat.com>
5842
5843 * python/py-utils.c (py_decref): Remove extra braces.
5844 (gdb_pymodule_addobject): Remove extra braces.
5845 * python-internal.h (gdb_Py_DECREF): New static inline function.
5846 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5847
bd9673a4
PW
58482013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5849
5850 * breakpoints.c (detach_breakpoints): Do not
5851 detach breakpoints locations with loc_type bp_loc_other.
5852
ff6009d0
JK
58532013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5854
5855 Workaround Python 2.6.
5856 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5857 a block.
5858
3641da11
JK
58592013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5860
5861 Code cleanup: constification.
5862 * solib.c (solib_ops): Make return type and ops variable type const.
5863 (set_solib_ops): Make the new_ops parameter and ops variable const.
5864 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5865 (solib_add, solib_keep_data_in_core, clear_solib)
5866 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5867 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5868 const.
5869 * solib.h (set_solib_ops): Make the new_ops parameter const.
5870
776af39e
JB
58712013-05-21 Joel Brobecker <brobecker@adacore.com>
5872
5873 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5874 variable.
5875 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5876 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5877 (SYSTEM_GDBINIT_FILES): New variables.
5878 (all): Add stamp-system-gdbinit.
5879 (stamp-system-gdbinit): New rule.
5880 (clean-system-gdbinit, install-system-gdbinit)
5881 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5882 (install-only): Add dependency on install-system-gdbinit.
5883 (uninstall): Add dependency on uninstall-system-gdbinit.
5884 (clean): Add dependency on clean-system-gdbinit.
5885 * system-gdbinit/elinos.py: New file.
5886 * system-gdbinit/wrs-linux.py: New file.
5887
1509e573
JB
58882013-05-21 Joel Brobecker <brobecker@adacore.com>
5889
5890 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5891
c5867ab6
HZ
58922013-05-21 Hui Zhu <hui@codesourcery.com>
5893
5894 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5895 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5896 * mi/mi-cmd-break.c (ctype.h): New include.
5897 (gdb_obstack.h): New include.
5898 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5899 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5900 (mi_cmd_dprintf_insert): New.
5901 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5902 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5903
7d38e38f
TT
59042013-05-20 Tom Tromey <tromey@redhat.com>
5905
5906 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5907
97b77b39
TT
59082013-05-20 Tom Tromey <tromey@redhat.com>
5909
5910 * python/py-value.c (valpy_get_dynamic_type): Simplify
5911 dynamic_type assignment. Use Py_XINCREF.
5912
53e66479
TT
59132013-05-20 Tom Tromey <tromey@redhat.com>
5914
5915 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5916
dcf87832
TT
59172013-05-20 Tom Tromey <tromey@redhat.com>
5918
5919 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5920 (gdbpy_selected_frame): Move object-construction code
5921 out of TRY_CATCH.
5922
aa36459a
TT
59232013-05-20 Tom Tromey <tromey@redhat.com>
5924
5925 * python/py-arch.c (gdbpy_initialize_arch): Use
5926 gdb_pymodule_addobject.
5927 * python/py-block.c (gdbpy_initialize_blocks): Use
5928 gdb_pymodule_addobject.
5929 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5930 gdb_pymodule_addobject.
5931 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5932 gdb_pymodule_addobject.
5933 * python/py-event.c (gdbpy_initialize_event_generic): Use
5934 gdb_pymodule_addobject.
5935 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5936 gdb_pymodule_addobject.
5937 * python/py-evts.c (add_new_registry): Use
5938 gdb_pymodule_addobject.
5939 (gdbpy_initialize_py_events): Likewise.
5940 * python/py-finishbreakpoint.c
5941 (gdbpy_initialize_finishbreakpoints): Use
5942 gdb_pymodule_addobject.
5943 * python/py-frame.c (gdbpy_initialize_frames): Use
5944 gdb_pymodule_addobject.
5945 * python/py-function.c (gdbpy_initialize_functions): Use
5946 gdb_pymodule_addobject.
5947 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5948 gdb_pymodule_addobject.
5949 * python/py-infthread.c (gdbpy_initialize_thread): Use
5950 gdb_pymodule_addobject.
5951 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5952 gdb_pymodule_addobject.
5953 * python/py-param.c (gdbpy_initialize_parameters): Use
5954 gdb_pymodule_addobject.
5955 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5956 gdb_pymodule_addobject.
5957 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5958 gdb_pymodule_addobject.
5959 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5960 gdb_pymodule_addobject.
5961 * python/py-type.c (gdbpy_initialize_types): Use
5962 gdb_pymodule_addobject.
5963 * python/py-utils.c (gdb_pymodule_addobject): New function.
5964 * python/py-value.c (gdbpy_initialize_values): Use
5965 gdb_pymodule_addobject.
5966 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5967 * python/python.c (_initialize_python): Use
5968 gdb_pymodule_addobject.
5969
3d4a3c3e
TT
59702013-05-20 Tom Tromey <tromey@redhat.com>
5971
5972 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5973 * python/py-param.c (get_set_value, get_show_value): Use
5974 explicit decrefs.
5975 * python/python.c (start_type_printers, apply_type_printers):
5976 Use explicit decrefs.
5977
72ff8829
TT
59782013-05-20 Tom Tromey <tromey@redhat.com>
5979
5980 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5981 incref the module.
5982
02146ba5
TT
59832013-05-20 Tom Tromey <tromey@redhat.com>
5984
5985 * python/python.c (gdbpy_run_events): Decref the result
5986 of PyObject_CallObject.
5987
33ee792f
TT
59882013-05-20 Tom Tromey <tromey@redhat.com>
5989
5990 * python/py-symtab.c (set_sal): Use
5991 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5992 (symtab_and_line_to_sal_object): Update.
5993
fcb49fc8
TT
59942013-05-20 Tom Tromey <tromey@redhat.com>
5995
5996 * python/py-param.c (compute_enum_values): Decref 'item'.
5997
0646da15
TT
59982013-05-20 Tom Tromey <tromey@redhat.com>
5999
6000 * mi/mi-main.c: Include python-internal.h.
6001 (mi_cmd_list_features): Check gdb_python_initialized.
6002 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6003 (python_inferior_exit, python_new_objfile, add_thread_object)
6004 (delete_thread_object, py_free_inferior): Check
6005 gdb_python_initialized.
6006 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6007 gdb_python_initialized.
6008 * python/py-type.c (save_objfile_types): Check
6009 gdb_python_initialized.
6010 * python/python-internal.h (gdb_python_initialized): Declare.
6011 * python/python.c (ensure_python_env): Throw exception if
6012 Python not initialized.
6013 (before_prompt_hook, source_python_script_for_objfile)
6014 (start_type_printers, apply_type_printers,
6015 free_type_printers): Check gdb_python_initialized.
6016 * varobj.c (varobj_get_display_hint)
6017 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6018 (install_new_value_visualizer, varobj_set_visualizer)
6019 (value_get_print_value): Check gdb_python_initialized.
6020
999633ed
TT
60212013-05-20 Tom Tromey <tromey@redhat.com>
6022
6023 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6024 Check errors.
6025 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6026 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6027 Check errors.
6028 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6029 Check errors.
6030 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6031 Check errors.
6032 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6033 Check errors.
6034 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6035 init function to return 'int'.
6036 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6037 Return 'int'. Check errors.
6038 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6039 Check errors.
6040 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6041 Return 'int'. Check errors.
6042 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6043 Check errors.
6044 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6045 Check errors.
6046 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6047 Check errors.
6048 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6049 Check errors.
6050 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6051 Check errors.
6052 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6053 Check errors.
6054 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6055 Check errors.
6056 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6057 Check errors.
6058 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6059 Check errors.
6060 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6061 Check errors.
6062 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6063 Check errors.
6064 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6065 Check errors.
6066 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6067 Check errors.
6068 * python/python-internal.h (gdbpy_initialize_auto_load,
6069 gdbpy_initialize_values, gdbpy_initialize_frames,
6070 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6071 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6072 gdbpy_initialize_blocks, gdbpy_initialize_types,
6073 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6074 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6075 gdbpy_initialize_finishbreakpoints,
6076 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6077 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6078 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6079 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6080 gdbpy_initialize_signal_event,
6081 gdbpy_initialize_breakpoint_event,
6082 gdbpy_initialize_continue_event,
6083 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6084 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6085 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6086 * python/python.c (gdb_python_initialized): New global.
6087 (gdbpy_initialize_events): Return 'int'. Check errors.
6088 (_initialize_python): Check errors. Set
6089 gdb_python_initialized.
6090
18868860
TT
60912013-05-20 Tom Tromey <tromey@redhat.com>
6092
6093 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6094 Decref the reslut of PyObject_CallMethod.
6095
9f4ff0c2
TT
60962013-05-20 Tom Tromey <tromey@redhat.com>
6097
6098 * python/py-event.c (gdbpy_initialize_event_generic): Return
6099 early if PyType_Ready fails.
6100
0d3a2e8a
TT
61012013-05-20 Tom Tromey <tromey@redhat.com>
6102
6103 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6104 as 'default' in the switch.
6105
b86af38a
TT
61062013-05-20 Tom Tromey <tromey@redhat.com>
6107
6108 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6109 get_addr_from_python calls out of TRY_CATCH.
6110 (infpy_write_memory, infpy_search_memory): Likewise.
6111 * python/py-utils.c (get_addr_from_python): Return negative
6112 value on error. Use TRY_CATCH.
6113 * python/python-internal.h (get_addr_from_python): Use
6114 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6115
c127ec58
TT
61162013-05-20 Tom Tromey <tromey@redhat.com>
6117
6118 * python/py-event.c (evpy_emit_event): Decref the
6119 result of PyObject_CallFunctionObjArgs.
6120
ba327838
TT
61212013-05-20 Tom Tromey <tromey@redhat.com>
6122
6123 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6124 Correctly decref.
6125
d8191432
TT
61262013-05-20 Tom Tromey <tromey@redhat.com>
6127
6128 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6129
5d153bd1
TT
61302013-05-20 Tom Tromey <tromey@redhat.com>
6131
6132 * python/py-event.h (gdbpy_initialize_event_generic): Use
6133 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6134 * python/py-evts.c (add_new_registry): Use
6135 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6136 * python/python-internal.h
6137 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6138
56cc411c
TT
61392013-05-20 Tom Tromey <tromey@redhat.com>
6140
6141 * python/py-arch.c (archpy_disassemble): Update.
6142 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6143 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6144 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6145 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6146 macro.
6147 (GDB_PY_HANDLE_EXCEPTION): Update.
6148 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6149
8919e174
TT
61502013-05-20 Tom Tromey <tromey@redhat.com>
6151
6152 * python/python-internal.h (events_object_type): Remove.
6153
9b08f225
TT
61542013-05-20 Tom Tromey <tromey@redhat.com>
6155
f5aee5ee
AM
6156 * python/py-event.h (evpy_emit_event): Use
6157 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6158 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6159 New macro.
9b08f225 6160
f04010ff
TT
61612013-05-20 Tom Tromey <tromey@redhat.com>
6162
6163 * py-evtregistry.c (create_event_object): Decref
6164 eventregistry_object if PyList_New fails.
6165
3919fd96
TT
61662013-05-20 Tom Tromey <tromey@redhat.com>
6167
6168 * py-cmd.c (gdbpy_string_to_argv): Check result of
6169 PyList_New.
6170
0430e8cb
TT
61712013-05-20 Tom Tromey <tromey@redhat.com>
6172
6173 * python/python.c (before_prompt_hook): Add cleanup to
6174 decref 'hook'.
6175
764123e4
TT
61762013-05-20 Tom Tromey <tromey@redhat.com>
6177
6178 * python/py-function.c (fnpy_init): Decref result of
6179 PyObject_GetAttrString.
6180
634c58be
TT
61812013-05-20 Tom Tromey <tromey@redhat.com>
6182
6183 * python/py-threadevent.c (get_event_thread): Use
6184 CPYCHECKER_RETURNS_BORROWED_REF.
6185 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6186 New define.
6187 (pspace_to_pspace_object, objfile_to_objfile_object)
6188 (find_thread_object): Use it.
6189
62eec1a5
TT
61902013-05-20 Tom Tromey <tromey@redhat.com>
6191
6192 * python/py-arch.c (arch_object_type): Use
6193 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6194 * python/py-block.c (block_syms_iterator_object_type):
6195 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6196 * python/py-bpevent.c (breakpoint_event_object_type):
6197 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6198 * python/py-cmd.c (cmdpy_object_type): Use
6199 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6200 * python/py-continueevent.c (continue_event_object_type):
6201 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6202 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6203 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6204 * python/py-events.h (thread_event_object_type):
6205 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6206 * python/py-evtregistry.c (eventregistry_object_type): Use
6207 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6208 * python/py-exitedevent.c (exited_event_object_type):
6209 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6210 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6211 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6212 * python/py-function.c (fnpy_object_type): Use
6213 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6214 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6215 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6216 * python/py-infthread.c (thread_object_type): Use
6217 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6218 * python/py-lazy-string.c (lazy_string_object_type):
6219 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6220 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6221 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6222 * python/py-objfile.c (objfile_object_type): Use
6223 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6224 * python/py-param.c (parmpy_object_type):
6225 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6226 * python/py-progspace.c (pspace_object_type):
6227 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6228 * python/py-signalevent.c (signal_event_object_type):
6229 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6230 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6231 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6232 * python/py-type.c (type_object_type, field_object_type)
6233 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6234 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6235 define.
6236 (value_object_type, block_object_type, symbol_object_type)
6237 (event_object_type, stop_event_object_type, breakpoint_object_type)
6238 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6239
81ea8796
AT
62402013-05-20 Andreas Tobler <andreas@fgznet.ch>
6241
6242 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6243 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6244
a2ce51a0
DE
62452013-05-20 Doug Evans <dje@google.com>
6246
6247 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6248 For Fission.
6249 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6250 reading_dwo_directly.
6251 (struct signatured_type): New member dwo_unit.
6252 (struct die_reader_specs): New member comp_dir.
6253 (create_signatured_type_table_from_index): Use malloc for
6254 all_type_units instead of objfile's obstack.
6255 (create_all_type_units): Ditto.
6256 (fill_in_sig_entry_from_dwo_entry): New function.
6257 (add_type_unit): New function.
6258 (lookup_dwo_signatured_type): New function.
6259 (lookup_dwp_signatured_type): New function.
6260 (lookup_signatured_type): New arg cu. All callers updated.
6261 (init_cu_die_reader): Initialize comp_dir.
6262 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6263 Change assert of matching type signatures to call error on mismatch.
6264 (lookup_dwo_unit): Add assert.
6265 (init_tu_and_read_dwo_dies): New function.
6266 (init_cutu_and_read_dies): Call it.
6267 (build_type_unit_groups): Handle case of no type unit groups created.
6268 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6269 (lookup_dwo_cutu): Tweak complaint.
6270 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6271 (dwarf2_per_objfile_free): Free all_type_units.
6272
a25cd31f
JB
62732013-05-20 Joel Brobecker <brobecker@adacore.com>
6274
6275 * windows-nat.c (handle_unload_dll): Add missing empty line.
6276
4d804846
JB
62772013-05-20 Joel Brobecker <brobecker@adacore.com>
6278
6279 * dwarf2read.c (prototyped_function_p): New function.
6280 (read_subroutine_type): Use it.
6281
1c432e72
JB
62822013-05-20 Joel Brobecker <brobecker@adacore.com>
6283
6284 * rs6000-aix-tdep.c: De-indent some example code provided
6285 as a comment.
6286
4feebbdd
EBM
62872013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6288
6289 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6290 region is ok for a hardware watchpoint using the new ptrace interface
6291 on Power servers.
6292
7d0c9981
DE
62932013-05-17 Doug Evans <dje@google.com>
6294
6295 * NEWS: Mention new maintenance commands check-symtabs, and
6296 expand-symtabs, and renamed check-psymtabs.
6297 * psymtab.c (maintenance_check_psymtabs): Renamed from
6298 maintenance_check_symtabs. Only process already-expanded symbol
6299 tables.
6300 (_initialize_psymtab): Update.
6301 * symmisc.c (maintenance_check_symtabs): New function.
6302 (maintenance_expand_name_matcher): New function
6303 (maintenance_expand_file_matcher): New function
6304 (maintenance_expand_symtabs): New function.
6305 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6306 commands.
6307
6cbc7c3d
TT
63082013-05-17 Tom Tromey <tromey@redhat.com>
6309
6310 * python/py-inferior.c (infpy_read_memory): Don't call
6311 PyErr_SetString if PyObject_New fails.
6312 * python/py-frame.c (frame_info_to_frame_object): Don't call
6313 PyErr_SetString if PyObject_New fails.
6314
a48b32c0
L
63152013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6316
6317 * acinclude.m4: Add check for dlopen in libdl.
6318 * configure.ac: Ditto.
6319 * configure: Regenerate.
6320
3de661e6
PM
63212013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6322
6323 * frame.c (frame_stash): Convert to htab.
6324 (frame_addr_hash): New function.
6325 (frame_addr_hash_eq): New function.
6326 (frame_stash_create): Convert function to create
6327 a hash table.
6328 (frame_stash_add): Convert function to add an entry to a hash
6329 table.
6330 (frame_stash_find): Convert function to search the hash table.
6331 (frame_stash_invalidate): Convert function to empty the hash
6332 table.
6333 (get_frame_id): Only add to stash if a frame_id is created.
6334 (_initialize_frame): Call frame_stash_create.
6335
bb4168a9 63362013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6337
6338 * configure.ac: Ensure MIG is available when building for GNU Hurd
6339 hosts.
6340 * configure: Regenerate.
6341
d1be3247
JB
63422013-05-16 Joel Brobecker <brobecker@adacore.com>
6343
6344 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6345
b8fea896
JB
63462013-05-16 Joel Brobecker <brobecker@adacore.com>
6347
6348 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6349 all cleanups are done before returning from this function.
6350
af880d85
JB
63512013-05-15 Joel Brobecker <brobecker@adacore.com>
6352
6353 * utils.h: #include "exceptions.h".
6354 (enum errors): Remove partial declaration.
6355
356a5233
JB
63562013-05-15 Joel Brobecker <brobecker@adacore.com>
6357
6358 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6359 * gdbarch.h, gdbarch.c: Regenerate.
6360 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6361 handling.
6362
6363 * rs6000-aix-tdep.h: New file.
6364 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6365 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6366 "xml-utils.h".
6367 (struct field_info, struct ld_info_desc): New types.
6368 (ld_info32_desc, ld_info64_desc): New static constants.
6369 (struct ld_info): New type.
6370 (rs6000_aix_extract_ld_info): New function.
6371 (rs6000_aix_shared_library_to_xml): Likewise.
6372 (rs6000_aix_ld_info_to_xml): Likewise.
6373 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6374 (rs6000_aix_init_osabi): Add call to
6375 set_gdbarch_core_xfer_shared_libraries_aix.
6376 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6377 Remove "xml-utils.h" include.
6378 (LdInfo): Delete typedef.
6379 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6380 Delete macros.
6381 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6382 Adjust code accordingly.
6383 (rs6000_core_ldinfo): Delete, folded into
6384 rs6000_aix_core_xfer_shared_libraries_aix.
6385 (rs6000_xfer_shared_library): Delete.
6386 (rs6000_xfer_shared_libraries): Reimplement.
6387
742ce053
MM
63882013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6389
6390 * record.c (record_goto_cmdlist): New.
6391 (cmd_record_goto): Split into this ...
6392 (cmd_record_goto_begin): ... this
6393 (cmd_record_goto_end): ... and this.
6394 (_initialize_record): Change "record goto" to prefix command.
6395 Add commands for "record goto begin" and "record goto end".
6396 Add an alias for "record goto start" to "record goto begin".
6397
e93ba630
JK
63982013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6399
6400 * linespec.c (convert_linespec_to_sals): New comment for
6401 SOURCE_FILENAME assignment.
6402
5821aace
JK
64032013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6404
6405 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6406 internal_warning.
6407
a1b8c4cc
TT
64082013-05-14 Tom Tromey <tromey@redhat.com>
6409
6410 * eval.c (parse_and_eval_long): Make 'exp' const.
6411 * value.h (parse_and_eval_long): Update.
6412
23b3a2c3
TT
64132013-05-14 Tom Tromey <tromey@redhat.com>
6414
6415 * ui-file.c (gdb_fopen): Make arguments const.
6416 * ui-file.h (gdb_fopen): Make arguments const.
6417
ca623f82
TT
64182013-05-14 Tom Tromey <tromey@redhat.com>
6419
6420 * remote.c (remote_set_trace_notes): Make arguments const.
6421 * target.c (update_current_target): Update cast.
6422 * target.h (to_set_trace_notes): Make arguments const.
6423
503ebb2c
TT
64242013-05-14 Tom Tromey <tromey@redhat.com>
6425
6426 * go32-nat.c (go32_terminal_info): Make 'args' const.
6427 * inferior.h (child_terminal_info): Update.
6428 * inflow.c (child_terminal_info): Make 'args' const.
6429 * target.c (default_terminal_info): Make 'args' const.
6430 (debug_to_terminal_save_ours): Likewise.
6431 * target.h (struct target_ops) <to_terminal_info>: Make argument
6432 const.
6433
85e1311a
TT
64342013-05-13 Tom Tromey <tromey@redhat.com>
6435
6436 * gcore.c (create_gcore_bfd): Make 'filename' const.
6437 * gcore.h (create_gcore_bfd): Make 'filename' const.
6438 * record-full.c (record_full_save): Make 'recfilename' const.
6439 * target.c (target_save_record): Make 'filename' const.
6440 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6441 const.
6442 (target_save_record): Likewise.
6443
d62bfeaf
TT
64442013-05-13 Tom Tromey <tromey@redhat.com>
6445
f5aee5ee 6446 PR gdb/15338:
d62bfeaf
TT
6447 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6448 ranges section has been read.
6449
ac1ca910
TT
64502013-05-13 Tom Tromey <tromey@redhat.com>
6451
6452 PR exp/15364:
6453 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6454 STRUCTOP_PTR>: Return a not_lval value for
6455 EVAL_AVOID_SIDE_EFFECTS.
6456 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6457 for EVAL_AVOID_SIDE_EFFECTS.
6458
36d1c68c
JB
64592013-05-13 Joel Brobecker <brobecker@adacore.com>
6460
6461 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6462 floating point registers to register type before storing
6463 value.
6464 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6465 Likewise.
6466
21ff4686
TT
64672013-05-10 Joel Brobecker <brobecker@adacore.com>
6468 Tom Tromey <tromey@redhat.com>
6469
6470 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6471 New functions.
6472 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6473 Declare.
6474 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6475 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6476 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6477 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6478
d3685d60
TT
64792013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6480 Tom Tromey <tromey@redhat.com>
6481
6482 PR build/15414:
6483 * configure: Rebuild.
6484 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6485 with -Wno-format.
6486
eb9fe518
PA
64872013-05-10 Pedro Alves <palves@redhat.com>
6488
6489 * remote.c (_initialize_remote): Fix spelling of
6490 qXfer:traceframe-info:read packet in packet config command.
6491
9779ab84
PA
64922013-05-10 David Taylor <dtaylor@emc.com>
6493
6494 PR remote/15455
6495
6496 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6497 "QTro" at start of packet.
6498
060cfbef
JB
64992013-05-10 Joel Brobecker <brobecker@adacore.com>
6500
6501 * solib-aix.c (solib_aix_relocate_section_addresses):
6502 For the .bss section action, apply the same offset as
6503 the .data section.
6504
ab1c4e88
JB
65052013-05-10 Joel Brobecker <brobecker@adacore.com>
6506
6507 * solib-aix.c (solib_aix_relocate_section_addresses):
6508 Remove FIXME comment.
6509
c1357578
JB
65102013-05-10 Joel Brobecker <brobecker@adacore.com>
6511
6512 PR tdep/15420:
6513 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6514 New functions, directly copied from sparc-sol-thread.c.
6515 * sparc-sol-thread.c: Delete.
6516 * configure.ac: Remove code handling sparc-solaris-thread.c.
6517 * configure: Regenerate.
6518
1e611234
PM
65192013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6520
6521 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6522 filter logic.
6523 (backtrace_command): Add "no-filters" option parsing.
6524 (_initialize_stack): Alter help to reflect "no-filters" option.
6525 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6526 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6527 (py-frame.o): Add target
6528 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6529 filter files.
6530 * python/python.h: Add new frame filter constants, and flag enum.
6531 (apply_frame_filter): Add definition.
6532 * python/python.c (apply_frame_filter): New non-Python
6533 enabled function.
6534 * python/py-utils.c (py_xdecref): New function.
6535 (make_cleanup_py_xdecref): Ditto.
6536 * python/py-objfile.c: Declare frame_filters dictionary.
6537 (objfpy_dealloc): Add frame_filters dealloc.
6538 (objfpy_new): Initialize frame_filters attribute.
6539 (objfile_to_objfile_object): Ditto.
6540 (objfpy_get_frame_filters): New function.
6541 (objfpy_set_frame_filters): New function.
6542 * python/py-progspace.c: Declare frame_filters dictionary.
6543 (pspy_dealloc): Add frame_filters dealloc.
6544 (pspy_new): Initialize frame_filters attribute.
6545 (pspacee_to_pspace_object): Ditto.
6546 (pspy_get_frame_filters): New function.
6547 (pspy_set_frame_filters): New function.
6548 * python/py-framefilter.c: New file.
6549 * python/lib/gdb/command/frame_filters.py: New file.
6550 * python/lib/gdb/frames.py: New file.
6551 * python/lib/gdb/__init__.py: Initialize global frame_filters
6552 dictionary
6553 * python/lib/gdb/FrameDecorator.py: New file.
6554 * python/lib/gdb/FrameIterator.py: New file.
6555 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6556 * mi/mi-cmds.h: Declare.
6557 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6558 --no-frame-filter logic, and Python frame filter logic.
6559 (stack_enable_frame_filters): New function.
6560 (parse_no_frame_option): Ditto.
6561 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6562 filter logic.
6563 (mi_cmd_stack_list_locals): Ditto.
6564 (mi_cmd_stack_list_args): Ditto.
6565 (mi_cmd_stack_list_variables): Ditto.
6566 * NEWS: Add frame filter note.
6567
2cb9c859
DE
65682013-05-09 Doug Evans <dje@google.com>
6569
6bf667bb
DE
6570 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6571 All callers updated.
6572 (syms_from_objfile): Ditto. Make static.
6573 (symbol_file_add_with_addrs): Renamed from
6574 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6575 num_offsets. All callers updated.
6576 * symfile.h (syms_from_objfile): Delete.
6577
2cb9c859
DE
6578 * symfile.c (decrement_reading_symtab): Add assert.
6579 (increment_reading_symtab): Ditto.
6580
40aea477
JB
65812013-05-09 Joel Brobecker <brobecker@adacore.com>
6582
6583 * source.c (forward_search_command): Replace call to getc
6584 by call to fgetc.
6585 (reverse_search_command): Likewise.
6586
680d1742
DE
65872013-05-08 Doug Evans <dje@google.com>
6588
6589 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6590 matching test.
6591
17e760ae
JB
65922013-05-08 Joel Brobecker <brobecker@adacore.com>
6593
6594 * sol-thread.c (info_cb): Factorize the code a little.
6595
c0f5f490
JB
65962013-05-08 Joel Brobecker <brobecker@adacore.com>
6597
6598 * sol-thread.c (info_cb): Rework the output of the "maintenance
6599 info sol-threads" command a bit.
6600
5d74e061
JB
66012013-05-08 Joel Brobecker <brobecker@adacore.com>
6602
6603 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6604 Replace ti.ti_startfunc by ti.ti_pc.
6605
814a3ff7
JB
66062013-05-08 Joel Brobecker <brobecker@adacore.com>
6607
6608 * solib-aix.c (solib_aix_free_library_list): New function
6609 for the case where HAVE_LIBEXPAT is not defined.
6610
58ce7251
SDJ
66112013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6612
6613 PR breakpoints/15413:
6614 * breakpoint.c (condition_completer): Simplify the code to
6615 disconsider multiple locations of breakpoints when completing the
6616 "condition" command.
6617
be8b1ea6
PM
66182013-05-07 Pierre Muller <muller@sourceware.org>
6619
6620 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6621 instead of <sys/wait.h>.
6622
1e52bda6
PM
66232013-05-07 Pierre Muller <muller@sourceware.org>
6624
6625 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6626 trailing new line from warning message.
6627
27fd0c6b
PM
66282013-05-07 Pierre Muller <muller@sourceware.org>
6629
6630 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6631 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6632
e228ac87
JB
66332013-05-07 Joel Brobecker <brobecker@adacore.com>
6634
6635 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6636 error message (ARI fix).
6637
66382013-05-07 Joel Brobecker <brobecker@adacore.com>
6639
6640 * features/library-list-aix.dtd: Replace library-list by
6641 library-list-aix.
6642 * rs6000-nat.c: Replace library-list by library-list-aix
6643 throughout.
6644 * solib-aix.c: Likewise.
6645
66462013-05-07 Joel Brobecker <brobecker@adacore.com>
6647
6648 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6649 Renames TARGET_OBJECT_AIX_LIBRARIES.
6650 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6651 TARGET_OBJECT_LIBRARIES_AIX throughout.
6652 * solib-aix.c: Likwise.
6653
26a4dda9
YQ
66542013-05-07 Yao Qi <yao@codesourcery.com>
6655
6656 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6657 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6658
3582629f
YQ
66592013-05-07 Yao Qi <yao@codesourcery.com>
6660
6661 * solib-dsbt.c (enable_break): Declare.
6662 (dsbt_current_sos): Remove call to enable_break2.
6663 (enable_break2): Rename to enable_break. Set solib breakpoint
6664 on '_dl_debug_state'.
6665 (enable_break): Remove.
6666
aacbb8a5
LM
66672013-05-07 Luis Machado <lgustavo@codesourcery.com>
6668
6669 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6670 debug state prior to replicating existing hardware watchpoints or
6671 breakpoints.
6672
0c013353
JK
66732013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6674
6675 * gcore.c (gcore_create_callback): Ignore sections with
6676 separate_debug_objfile_backlink != NULL.
6677
a1217d97
SL
66782013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6679 Andrew Jenner <andrew@codesourcery.com>
6680 Chung-Lin Tang <cltang@codesourcery.com>
6681 Julian Brown <julian@codesourcery.com>
6682
6683 Based on the nios2-elf port from Altera Corporation.
6684
6685 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6686 nios2-linux-tdep.o.
6687 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6688 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6689 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6690 * nios2-tdep.h: New.
6691 * nios2-tdep.c: New.
6692 * nios2-linux-tdep.c: New.
6693 * features/Makefile (WHICH): Add nios2-linux.
6694 (nios2-linux-expedite): Set.
6695 * features/nios2-cpu.xml: New.
6696 * features/nios2.xml: New.
6697 * features/nios2-linux.xml: New.
6698 * features/nios2.c: New (autogenerated).
6699 * features/nios2-linux.c: New (autogenerated).
6700 * regformats/nios2-linux.dat: New (autogenerated).
6701 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6702 and commands.
6703
0892cb63
DE
67042013-05-06 Doug Evans <dje@google.com>
6705
3b7bacac
DE
6706 * symfile.c: Whitespace cleanup.
6707
0892cb63
DE
6708 * solist.h (struct target_so_ops): New member clear_so.
6709 * solib-svr4.c (svr4_clear_so): New function.
6710 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6711 * solib.c (clear_so): Renamed from free_so_symbols.
6712 All callers updated. Call target clear_so if it exists.
6713
40501e00
TT
67142013-05-06 Tom Tromey <tromey@redhat.com>
6715
6716 * ada-lang.c (ada_value_primitive_packed_val): Don't
6717 call value_incref.
6718 * value.c (set_value_parent): Incref the new parent and decref
6719 the old parent.
6720 (value_copy, value_primitive_field): Use set_value_parent.
6721
b6807d98
TT
67222013-05-06 Tom Tromey <tromey@redhat.com>
6723
6724 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6725 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6726 if needed.
6727 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6728 * dwarf2read.c (write_constant_as_bytes)
6729 (dwarf2_fetch_constant_bytes): New functions.
6730
3aef2284
TT
67312013-05-06 Tom Tromey <tromey@redhat.com>
6732
6733 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6734 parameters.
6735 (dwarf2_const_value_attr): Update.
6736
66f65e2b
TT
67372013-05-06 Tom Tromey <tromey@redhat.com>
6738
6739 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6740 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6741 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6742 Remove declaration.
6743
7919a973
TT
67442013-05-06 Tom Tromey <tromey@redhat.com>
6745
6746 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6747 objfile's obstack.
6748
a7bfba49
DE
67492013-05-06 Doug Evans <dje@google.com>
6750
3189cb12
DE
6751 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6752 * stabsread.h (process_one_symbol): Update declaration.
6753 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6754 * elfread.c (elf_symfile_relocate_probe): Ditto.
6755 * psymtab.c (relocate_psymtabs): Ditto.
6756 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6757 (objfile_relocate): Ditto.
6758 * objfiles.h (objfile_relocate): Update declaration.
6759 * symfile.c (relative_addr_info_to_section_offsets): Constify
6760 addrs parameter.
6761 (default_symfile_offsets): Ditto.
6762 (syms_from_objfile_1): Constify offsets parameter.
6763 (syms_from_objfile): Ditto.
6764 (symbol_file_add_with_addrs_or_offsets): Ditto.
6765 (symfile_map_offsets_to_segments): Constify data parameter.
6766 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6767 delta parameters of member relocate.
6768 (struct sym_probe_fns): Constify new_offsets,
6769 delta parameters of member sym_relocate_probe.
6770 (struct sym_fns): Constify section_addr_info parameter of member
6771 sym_offsets.
6772 (relative_addr_info_to_section_offsets): Update declaration.
6773 (default_symfile_offsets): Ditto.
6774 (syms_from_objfile): Ditto.
6775 (symfile_map_offsets_to_segments): Ditto.
6776
a7bfba49
DE
6777 * symfile.c (syms_from_objfile_1): Use correct section count when
6778 objfile->sf == NULL.
6779
5f8e0b8f
MF
67802013-05-06 Mike Frysinger <vapier@gentoo.org>
6781
6782 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6783
ea52d893
DE
67842013-05-06 Doug Evans <dje@google.com>
6785
6786 * psympriv.h (struct partial_symtab): Augment comment for member
6787 section_offsets.
6788
4d1eb6b4
JB
67892013-05-06 Joel Brobecker <brobecker@adacore.com>
6790
6791 Reimplement shared library support on ppc-aix...
6792 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6793 * features/library-list-aix.dtd: New file.
6794 * solib-aix.h, solib-aix.c: New file.
6795 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6796 (rs6000_find_toc_address_hook): Delete.
6797 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6798 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6799 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6800 "xml-utils.h".
6801 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6802 (vmap_symtab, fixup_breakpoints): Delete.
6803 (rs6000_xfer_shared_libraries): New function.
6804 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6805 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6806 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6807 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6808 (rs6000_xfer_shared_library): New function.
6809 (find_toc_address): Delete.
6810 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6811 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6812 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6813 before creating minimal symbol. Adjust function description
6814 accordingly.
6815 (scan_xcoff_symtab): Replace call to
6816 prim_record_minimal_symbol_and_info by call to
6817 record_minimal_symbol.
6818 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6819 around default_symfile_offsets.
6820 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6821 powerpc-aix targets.
6822 * config/rs6000/nm-rs6000.h: Delete.
6823 * config/powerpc/aix.mh (NAT_FILE): Delete.
6824 (NATDEPFILES): Remove xcoffsolib.o.
6825 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6826 (ALL_TARGET_OBS): Add solib-aix.o.
6827 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6828 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6829 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6830 * xcoffsolib.h, xcoffsolib.c: Delete.
6831
6832 * solib.c (reload_shared_libraries): Remove reference to
6833 SOLIB_CREATE_INFERIOR_HOOK.
6834 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6835 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6836 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6837 comment.
6838 * corelow.c (deprecated_core_resize_section_table): Delete.
6839 * exec.c: Remove include of xcoffsolib.h".
6840 (map_vmap, vmap): Delete.
6841 (exec_close_1): Remove references to vmap.
6842 (exec_file_attach): Remove vmap handling code, and reference
6843 to DEPRECATED_IBM6000_TARGET.
6844 (bfdsec_to_vmap): Delete.
6845 (exec_files_info): Remove block of code handling VMAP.
6846 * infcmd.c (post_create_inferior): Remove reference to
6847 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6848 * infrun.c (follow_exec): Remove reference to
6849 SOLIB_CREATE_INFERIOR_HOOK.
6850 * stack.c (print_frame): Remove reference to PC_SOLIB.
6851 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6852 (dsbt_relocate_main_executable): Likewise.
6853 * solib-frv.c (frv_current_sos): Likewise.
6854
0c4f667c
JB
68552013-05-06 Joel Brobecker <brobecker@adacore.com>
6856
6857 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6858 to target_write_memory and target_read_memory.
6859
726ce67c
JB
68602013-05-06 Joel Brobecker <brobecker@adacore.com>
6861
6862 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6863 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6864
c8c9911f
JB
68652013-05-06 Joel Brobecker <brobecker@adacore.com>
6866
6867 * darwin-nat.c: Replace all "%x" instances in format strings
6868 into "0x%x" throughout.
6869
fda184b6
JB
68702013-05-06 Joel Brobecker <brobecker@adacore.com>
6871
6872 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6873 gdb_assert by call to MACH_CHECK_ERROR.
6874 (darwin_attach_pid): Raise an error rather than a failed
6875 assertion when various system calls failed. Report a warning
6876 instead of raising a failed assertion when PREV_NOT is not NULL
6877 after call to mach_port_request_notification.
6878 (darwin_ptrace_me): Raise an error rather than a failed
6879 assertion when read returns nonzero.
6880
d1d69afb
JB
68812013-05-06 Joel Brobecker <brobecker@adacore.com>
6882
6883 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6884
dc90b24d
JK
68852013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6886
6887 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6888
faab9922
JK
68892013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6890
6891 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6892 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6893 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6894 a stale cleanup. Fix double free of NAME.
6895
e0ea48a0
EZ
68962013-05-04 Eli Zaretskii <eliz@gnu.org>
6897
6898 * windows-nat.c (windows_delete_thread): Accept an additional
6899 argument, the thread's exit code, and announce thread death when
6900 print_thread_events is non-zero and we are deleting a thread that
6901 is not the main thread.
6902 (get_windows_debug_event): Pass thread exit code to
6903 windows_delete_thread.
6904
83b2706a
KB
69052013-05-03 Kevin Buettner <kevinb@redhat.com>
6906
6907 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6908 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6909 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6910 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6911 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6912 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6913 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6914 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6915 (gdbarch_tdep): New struct.
6916 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6917 E_NUM_REGS.
6918 (v850e3v5_register_name): New function.
6919 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6920 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6921 code handling the struct return conventions for the RH850 ABI.
6922 Update all callers.
6923 (v850_eight_byte_align_p): New function.
6924 (v850_push_call_dummy): Push structs by value, not by reference
6925 for the RH850 ABI. Add support for eight byte alignment.
6926 (v850_dbtrap_breakpoint_from_pc): New function.
6927 (v850_gdbarch_init): Add ABI detection code. Register
6928 v850e3v5_register_name for the v850e3v5 architecture. Set the
6929 number of registers for v850e3v5. Register
6930 v850_dbtrap_breakpoint_from_pc as appropriate.
6931 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6932
d445b2f6
DE
69332013-05-03 Doug Evans <dje@google.com>
6934
6935 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6936 of bfd_count_sections.
6937 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6938 * symfile.c (default_symfile_offsets): Ditto.
6939 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6940 one entry, not bfd_count_sections entries.
6941
b3ce41ea
KB
69422013-05-03 Kevin Buettner <kevinb@redhat.com>
6943
6944 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6945 `save' and `restore' register groups. Don't include SPL
6946 or SPH in these groups.
6947 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6948 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6949 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6950 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6951 dwarf2_append_unwinders().
6952
96f7d3f1
PW
69532013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6954
6955 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6956 ignore SIGINT and SIGTRAP in case these internal signals are
6957 caught explicitely.
6958
b9dd1947
JB
69592013-05-01 Joel Brobecker <brobecker@adacore.com>
6960
6961 * darwin-nat.c (darwin_read_write_inferior): Change types
6962 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6963 of copy_count to "mach_msg_type_number_t".
6964 (darwin_read_dyld_info): Change type of parameter
6965 rdaddr to "gdb_byte *".
6966
4ca18a63
JB
69672013-05-01 Joel Brobecker <brobecker@adacore.com>
6968
6969 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6970 of &info->load_map from "char *" to "gdb_byte *".
6971
2b692d32
JB
69722013-05-01 Joel Brobecker <brobecker@adacore.com>
6973
6974 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6975 from "char *" to "gdb_byte *".
6976 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6977
a98c29a0
DE
69782013-04-30 Doug Evans <dje@google.com>
6979
6a506a2d
DE
6980 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6981 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6982 DWO stub. If DWO isn't found, just use stub.
6983 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6984
a98c29a0
DE
6985 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6986 calling init_cutu_and_read_dies.
6987
f92b06da
WT
69882013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6989
6990 * target-descriptions.c (maint_print_c_tdesc_cmd):
6991 Add case to parse structures as register types and
6992 bitfields.
6993
95eebdcc
WT
69942013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6995
6996 * MAINTAINERS (Write After Approval): Add myself to the list.
6997
019c1128
JB
69982013-04-30 Joel Brobecker <brobecker@adacore.com>
6999
7000 * sol-thread.c (rw_common): Change type of parameter "buf"
7001 to "gdb_byte *".
7002 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7003 rw_common to "gdb_byte *" instead of "char *".
7004
5812197c
JB
70052013-04-30 Joel Brobecker <brobecker@adacore.com>
7006
7007 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7008 of local variable msym to const struct bound_minimal_symbol.
7009 Adjust use accordingly.
7010 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7011
ecccb813
TS
70122013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7013
7014 * i386gnu-nat.c (CREG_OFFSET): New macro.
7015 (creg_offset): New array.
7016 (CREG_ADDR): Use creg_offset instead of reg_offset.
7017
f1d02dd4 70182013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7019
7020 * mep-tdep.c (mep_write_pc): Delete.
7021 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7022 Add call to set_gdbarch_pc_regnum.
7023
f1d02dd4 70242013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7025
7026 * common/filestuff.c: Replace #include <dirent.h> by
7027 #include "gdb_dirent.h".
7028
f1d02dd4 70292013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7030
7031 * common/filestuff.c: Replace #include <sys/stat.h> by
7032 #include "gdb_stat.h".
7033
b385a60d
PM
70342013-04-29 Pierre Muller <muller@sourceware.org>
7035
7036 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7037 editCase function rule.
7038 (get_DW_AT_signature_type): Likewise.
7039
d27b54ad
JB
70402013-04-29 Joel Brobecker <brobecker@adacore.com>
7041
7042 * m32r-tdep.c (m32r_write_pc): Delete.
7043 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7044 Add call to set_gdbarch_pc_regnum.
7045
47d21dc5
PM
70462013-04-29 Pierre Muller <muller@sourceware.org>
7047
7048 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7049
9056882e
JB
70502013-04-29 Joel Brobecker <brobecker@adacore.com>
7051
7052 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7053
7ee4732a
YQ
70542013-04-28 Yao Qi <yao@codesourcery.com>
7055
7056 * solib-dsbt.c (fetch_loadmap): Re-indent.
7057 (displacement_from_map, enable_break2): Likewise.
7058 (dsbt_relocate_section_addresses): Likewise.
7059
2260af53 70602013-04-26 Joel Brobecker <brobecker@adacore.com>
7061
7062 GDB 7.6 released.
7063
ff546935
TT
70642013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7065
7066 PR corefiles/14983:
7067 * dwarf2read.c (process_full_comp_unit): Always create a static
7068 block.
7069
40fb6c5e
HZ
70702013-04-25 Hui Zhu <hui@codesourcery.com>
7071
7072 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7073 to loc->cmd_bytecode.
7074
74e04d1c
DE
70752013-04-24 Doug Evans <dje@google.com>
7076
7077 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7078
3cf62c1d
KS
70792013-04-22 Keith Seitz <keiths@redhat.com>
7080
7081 * tracepoint.c (trace_save): Call the writer's start method.
7082
bf9e4d0c
MB
70832013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7084
7085 PR gdb/10462
7086 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7087 before argument.
7088
5d71132c
TT
70892013-04-23 Tom Tromey <tromey@redhat.com>
7090
7091 * common/filestuff.c: Check USE_WIN32API before including
7092 sys/socket.h.
7093 (HAVE_F_GETFD): New define.
7094 (mark_cloexec): Check HAVE_F_GETFD.
7095 (gdb_open_cloexec): Change 'mode' to unsigned long.
7096 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7097 (gdb_pipe_cloexec): Check HAVE_PIPE.
7098 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7099 long.
7100
a11cfd87
HZ
71012013-04-23 Hui Zhu <hui@codesourcery.com>
7102
7103 PR gdb/15293
a11cfd87
HZ
7104 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7105
2d9442cc
HZ
71062013-04-23 Hui Zhu <hui@codesourcery.com>
7107
7108 PR gdb/15165
2d9442cc
HZ
7109 * breakpoint.c (dprintf_print_recreate): New.
7110 (save_breakpoints): Let it not save dprintf commands.
7111 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7112
614c279d
TT
71132013-04-22 Tom Tromey <tromey@redhat.com>
7114
7115 PR gdb/7912:
7116 * Makefile.in (SFILES): Add filestuff.c
7117 (COMMON_OBS): Add filestuff.o.
7118 (filestuff.o): New target.
7119 * auto-load.c (auto_load_objfile_script_1): Use
7120 gdb_fopen_cloexec.
7121 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7122 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7123 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7124 * common/agent.c (gdb_connect_sync_socket): Use
7125 gdb_socket_cloexec.
7126 * common/filestuff.c: New file.
7127 * common/filestuff.h: New file.
7128 * common/linux-osdata.c (linux_common_core_of_thread)
7129 (command_from_pid, commandline_from_pid, print_source_lines)
7130 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7131 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7132 gdb_fopen_cloexec.
7133 * common/linux-procfs.c (linux_proc_get_int)
7134 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7135 * config.in, configure: Rebuild.
7136 * configure.ac: Don't check for sys/socket.h. Check for
7137 fdwalk, pipe2.
7138 * corelow.c (core_open): Use gdb_open_cloexec.
7139 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7140 * fork-child.c (fork_inferior): Call close_most_fds.
7141 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7142 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7143 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7144 Use gdb_fopen_cloexec.
7145 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7146 gdb_open_cloexec.
7147 (linux_async_pipe): Use gdb_pipe_cloexec.
7148 * remote-fileio.c (remote_fileio_func_open): Use
7149 gdb_open_cloexec.
7150 * remote.c (remote_file_put, remote_file_get): Use
7151 gdb_fopen_cloexec.
7152 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7153 close_most_fds.
7154 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7155 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7156 * solib.c (solib_find): Use gdb_open_cloexec.
7157 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7158 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7159 (tfile_open): Use gdb_open_cloexec.
7160 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7161 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7162 * xml-support.c (xml_fetch_content_from_file): Use
7163 gdb_fopen_cloexec.
7164 * main.c (captured_main): Call notice_open_fds.
7165
5fda2332
EBM
71662013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7167
7168 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7169 'char *' to 'gdb_byte *'.
7170 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7171 'gdb_byte'.
7172
eb6c553b
YQ
71732013-04-22 Yao Qi <yao@codesourcery.com>
7174
7175 * infrun.c: Fix typo in comment.
7176
9991b207
SDJ
71772013-04-22 Andrew Haley <aph@redhat.com>
7178
7179 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7180 instead of "long".
7181
8b4833e3
YQ
71822013-04-20 Yao Qi <yao@codesourcery.com>
7183
7184 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7185 'char *' to 'gdb_byte *'. Cast the return value of
7186 'bt_ctf_get_char_array' to 'gdb_byte *'.
7187
bd3f3b55
PA
71882013-04-19 Pedro Alves <palves@redhat.com>
7189
7190 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7191 -Wpointer-sign.
7192 * configure: Regenerate.
7193
c49e7f76
PA
71942013-04-19 Pedro Alves <palves@redhat.com>
7195
7196 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7197 'void *'.
7198
12ff8552
PA
71992013-04-19 Pedro Alves <palves@redhat.com>
7200
7201 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7202 Change type of 'myaddr' parameter to gdb_byte pointer.
7203 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7204 to 'long long' pointer instead of to 'unsigned long long'.
7205 (monitor_write_memory_block, monitor_read_memory_single)
7206 (monitor_read_memory): Change type of 'myaddr' parameter to
7207 gdb_byte pointer.
7208
9c37696b
PA
72092013-04-19 Pedro Alves <palves@redhat.com>
7210
7211 * record.c (validate_history_size): Make parameter 'setting'
7212 unsigned.
7213
a398505b
PA
72142013-04-19 Pedro Alves <palves@redhat.com>
7215
7216 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7217 to 'gdb_byte *'.
7218
9f8afa72
PA
72192013-04-19 Pedro Alves <palves@redhat.com>
7220
7221 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7222 local to int.
7223
c714b426
PA
72242013-04-19 Pedro Alves <palves@redhat.com>
7225
7226 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7227 * ada-tasks.c (read_fat_string_value): Likewise.
7228
507a579c
PA
72292013-04-19 Pedro Alves <palves@redhat.com>
7230
7231 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7232 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7233 'offset', and adjust.
7234
f9d83a0b
PA
72352013-04-19 Pedro Alves <palves@redhat.com>
7236
7237 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7238 (read_index_from_section): Add cast to 'char *'.
7239
745eb4fd
PA
72402013-04-19 Pedro Alves <palves@redhat.com>
7241
7242 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7243
db5be46f
PA
72442013-04-19 Pedro Alves <palves@redhat.com>
7245
7246 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7247
0f928d68
PA
72482013-04-19 Pedro Alves <palves@redhat.com>
7249
7250 * record-full.c (record_full_get_bookmark): Change local 'ret'
7251 type to char * and add cast to gdb_byte *.
7252 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7253 string.
7254 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7255
89f6d837
PA
72562013-04-19 Pedro Alves <palves@redhat.com>
7257
7258 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7259 * python/py-prettyprint.c (print_string_repr): Change type of
7260 'output' local to char *. Add cast to gdb_byte * in
7261 LA_PRINT_STRING call.
7262 (print_children): Change type of 'output' local to char *.
7263 * python/py-value.c (valpy_string): Add cast to const char * in
7264 PyUnicode_Decode call.
7265
ce6ec7d8
PA
72662013-04-19 Pedro Alves <palves@redhat.com>
7267
7268 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7269 and change its type to 'const char *'. Adjust.
7270 (mips_send_packet): Add cast to 'char *', and remove cast to
7271 'unsigned char *'.
7272 (mips_receive_packet): Remove cast to 'unsigned char *'.
7273 (mips_load_srec): Use bfd_byte.
7274 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7275 (pmon_checkset): Make 'value' parameter unsigned.
7276
fda0389f
PA
72772013-04-19 Pedro Alves <palves@redhat.com>
7278
7279 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7280
bc20a4af
PA
72812013-04-19 Pedro Alves <palves@redhat.com>
7282
7283 * remote.c (remote_write_bytes_aux, compare_sections_command)
7284 (remote_read_qxfer)
7285 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7286 (remote_hostio_readlink, remote_bfd_iovec_pread)
7287 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7288 binary buffer, and char when buffer is used as string.
7289 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7290 (trace_save, tfile_open, traceframe_walk_blocks)
7291 (tfile_fetch_registers): Likewise.
7292
c628b528
PA
72932013-04-19 Pedro Alves <palves@redhat.com>
7294
7295 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7296 buffer and size_t size. Adjust.
7297 * ser-base.h (ser_base_write): Adjust.
7298 * ser-go32.c (cnts): Change type to size_t.
7299 (dos_write): Change prototype -- take 'void *'
7300 buffer and size_t size. Adjust.
7301 (dos_info): Print elements of 'cnts' as unsigned long.
7302 * serial.c (serial_write): Likewise.
7303 * serial.h (serial_write): Adjust.
7304 (struct serial_ops) <write>: Change prototype -- take 'void *'
7305 buffer and size_t size. Adjust.
7306
51a5cd90
PA
73072013-04-19 Pedro Alves <palves@redhat.com>
7308
7309 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7310 gdb_byte *.
7311 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7312
a9933661
PA
73132013-04-19 Pedro Alves <palves@redhat.com>
7314
7315 * alpha-tdep.c (alpha_extract_return_value): Use
7316 regcache_cooked_read_unsigned to read 'v0'.
7317
19afdd07
PA
73182013-04-19 Pedro Alves <palves@redhat.com>
7319
7320 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7321 parameters 'at', 'as' and 'offset' to uint32_t.
7322
96b32e50
PA
73232013-04-19 Pedro Alves <palves@redhat.com>
7324
7325 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7326 'is64' to signed 'int'.
7327
eb1bd1fb
PA
73282013-04-19 Pedro Alves <palves@redhat.com>
7329
7330 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7331 parameter to int *.
7332
463920bf
PA
73332013-04-19 Pedro Alves <palves@redhat.com>
7334
7335 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7336 'insnbuf' buffer type to unsigned int[].
7337
70242eb1
PA
73382013-04-19 Pedro Alves <palves@redhat.com>
7339
7340 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7341
9d1dd0e2
PA
73422013-04-19 Pedro Alves <palves@redhat.com>
7343
7344 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7345 unsigned long *.
7346
44096aee
PA
73472013-04-19 Pedro Alves <palves@redhat.com>
7348
7349 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7350 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7351 UINT_MAX.
7352 * mips-tdep.c (heuristic_fence_post): Change type to int.
7353 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7354
e4286e57
PA
73552013-04-19 Pedro Alves <palves@redhat.com>
7356
7357 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7358 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7359 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7360
001f13d8
PA
73612013-04-19 Pedro Alves <palves@redhat.com>
7362
7363 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7364 it to get a string view of the byte buffer.
7365 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7366 type to gdb_byte *. Adjust.
7367 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7368 Change local to char *.
7369 * solib-darwin.c (find_program_interpreter): Change return type to
7370 char *. Adjust.
7371 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7372 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7373 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7374 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7375 * solib-svr4.c (find_program_interpreter): Change return type to
7376 char *. Adjust.
7377 (enable_break): Change local 'interp_name' to char *.
7378 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7379 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7380 (spu_pseudo_register_write_spu): Use char for string buffer.
7381 Adjust.
7382 (info_spu_event_command, info_spu_signal_command): Add casts to
7383 'char *'.
7384
948f8e3d
PA
73852013-04-19 Pedro Alves <palves@redhat.com>
7386
7387 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7388 gdb_byte[].
7389 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7390 * ada-lang.c (ada_value_assign): Use gdb_byte.
7391 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7392 (alphanbsd_sigtramp_offset): Use gdb_byte.
7393 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7394 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7395 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7396 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7397 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7398 * arm-tdep.c (arm_stub_unwind_sniffer)
7399 (arm_displaced_init_closure): Use gdb_byte.
7400 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7401 (arm_default_thumb_le_breakpoint)
7402 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7403 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7404 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7405 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7406 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7407 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7408 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7409 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7410 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7411 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7412 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7413 (cris_store_return_value, cris_extract_return_value): Use
7414 gdb_byte.
7415 (constraint): Change type of parameter to char * from signed
7416 char*. Use gdb_byte.
7417 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7418 of local buffer to gdb_byte *.
7419 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7420 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7421 (add_address_entry): Change type of local buffer to gdb_byte[].
7422 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7423 (frv_push_dummy_call): Use gdb_byte.
7424 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7425 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7426 (hppa_hpux_supply_save_state): Use gdb_byte.
7427 * hppa-tdep.c (hppa32_push_dummy_call)
7428 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7429 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7430 (slotN_contents, replace_slotN_contents): Change type of parameter
7431 to gdb_byte *.
7432 (fetch_instruction, ia64_pseudo_register_write)
7433 (ia64_register_to_value, ia64_value_to_register)
7434 (ia64_extract_return_value, ia64_store_return_value)
7435 (ia64_push_dummy_call): Use gdb_byte.
7436 * m32c-tdep.c (m32c_return_value): Remove cast.
7437 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7438 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7439 gdb_byte.
7440 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7441 * mn10300-tdep.c (mn10300_store_return_value)
7442 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7443 gdb_byte.
7444 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7445 (moxie_process_record): Remove casts.
7446 * ppc-ravenscar-thread.c (supply_register_at_address)
7447 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7448 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7449 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7450 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7451 * remote.c (compare_sections_command): Use gdb_byte.
7452 * score-tdep.c (score7_free_memblock): Change type of parameter to
7453 gdb_byte *.
7454 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7455 gdb_byte *. Use gdb_byte.
7456 (sh_push_dummy_call_fpu): Use gdb_byte.
7457 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7458 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7459 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7460 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7461 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7462 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7463 (sh64_store_return_value, sh64_register_convert_to_virtual):
7464 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7465 (sh64_pseudo_register_write): Use gdb_byte.
7466 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7467 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7468 buffer.
7469 (irix_current_sos): Use gdb_byte.
7470 * solib-som.c (som_current_sos): Use gdb_byte.
7471 * sparc-ravenscar-thread.c (supply_register_at_address)
7472 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7473 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7474 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7475 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7476 'gdb_byte *'.
7477 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7478 'gdb_byte *'.
7479 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7480 * xstormy16-tdep.c (xstormy16_extract_return_value)
7481 (xstormy16_store_return_value): Change parameter type to
7482 'gdb_byte *'. Adjust.
7483 (xstormy16_push_dummy_call): Use gdb_byte.
7484 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7485 (call0_analyze_prologue, execute_code): Use gdb_byte.
7486
433730c9
PA
74872013-04-19 Vladimir Kargov <kargov@gmail.com>
7488 Pedro Alves <palves@redhat.com>
7489
7490 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7491 value contents.
7492
ac9ec31b
DE
74932013-04-17 Doug Evans <dje@google.com>
7494
7495 * dwarf2read.c (struct signatured_type): New member type.
7496 (struct attribute): Replace member signatured_type with signature.
7497 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7498 (read_call_site_scope): Call follow_die_ref instead of
7499 follow_die_ref_or_sig.
7500 (read_structure_type): Rewrite handling of signatured types.
7501 (read_enumeration_type): Ditto.
7502 (read_attribute_value): Update.
7503 (build_error_marker_type): New function.
7504 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7505 Don't call error for bad types, just build an error marker type.
7506 (dump_die_shallow): Update.
7507 (follow_die_sig_1): Renamed from follow_die_sig.
7508 Don't call error for bad types, instead return NULL.
7509 (follow_die_sig): New function.
7510 (get_signatured_type, get_DW_AT_signature_type): New functions.
7511
e546e8bb
YZ
75122013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7513
7514 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7515 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7516 function.
e546e8bb 7517
ab116149
YQ
75182013-04-17 Yao Qi <yao@codesourcery.com>
7519
7520 * top.c (print_gdb_configuration): Print configure-time
7521 parameter on using libbabeltrace or not.
7522
488a42b8
PA
75232013-04-16 Pedro Alves <palves@redhat.com>
7524
7525 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7526
f5fb825b
PA
75272013-04-16 Pedro Alves <palves@redhat.com>
7528
85d494ea 7529 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7530 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7531
e1154999
PA
75322013-04-16 Pedro Alves <palves@redhat.com>
7533
7534 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7535 * common/glibc_thread_db.h: ... this new file ...
7536 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7537
e3b50a7f
PA
75382013-04-16 Will Newton <will.newton@gmail.com>
7539 Pedro Alves <palves@redhat.com>
7540
7541 PR build/11881
7542
7543 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7544 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7545 HAVE_THREAD_DB_H.
7546
1c2e4450
PA
75472013-04-16 Pedro Alves <palves@redhat.com>
7548 Eli Zaretskii <eliz@gnu.org>
7549
7550 * NEWS: Mention "set foo unlimited".
7551
4031ecc5
DE
75522013-04-15 Doug Evans <dje@google.com>
7553
19c3d4c9
DE
7554 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7555 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7556 (create_dwo_cu_reader): Renamed from
7557 create_dwo_debug_info_hash_table_reader.
7558 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7559 Remove support for multiple CUs in a DWO file.
7560 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7561
4031ecc5
DE
7562 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7563 instead of phex.
7564 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7565 (create_dwo_in_dwp): Ditto.
7566
b340913d
TT
75672013-04-15 Tom Tromey <tromey@redhat.com>
7568
7569 * NEWS: Move recent entries into "since 7.6" section.
7570
cc16e6c9
TT
75712013-04-15 Tom Tromey <tromey@redhat.com>
7572
7573 PR c++/13588:
7574 * NEWS: Update.
7575 * break-catch-throw.c (struct exception_catchpoint)
7576 <exception_rx, pattern>: New fields.
7577 (fetch_probe_arguments, dtor_exception_catchpoint)
7578 (check_status_exception_catchpoint)
7579 (print_one_detail_exception_catchpoint): New functions.
7580 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7581 Compile regular expression if needed.
7582 (extract_exception_regexp): New function.
7583 (catch_exception_command_1): Use extract_exception_regexp.
7584 (compute_exception): Use fetch_probe_arguments.
7585 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7586 and check_status fields.
7587 * cp-abi.c (cplus_typename_from_type_info): New function.
7588 * cp-abi.h (cplus_typename_from_type_info): Declare.
7589 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7590 * gdb_regex.h (compile_rx_or_error): Declare.
7591 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7592 comment.
7593 (init_gnuv3_ops): Set get_type_from_type_info field.
7594 * probe.c (compile_rx_or_error): Move...
7595 * utils.c (compile_rx_or_error): ... here.
7596
72f1fe8a
TT
75972013-04-15 Tom Tromey <tromey@redhat.com>
7598
7599 PR c++/15176:
7600 * NEWS: Update.
7601 * break-catch-throw.c (compute_exception): New function.
7602 (exception_funcs): New global.
7603 (_initialize_break_catch_throw): Create $_exception.
7604 * cp-abi.c (cplus_type_from_type_info): New function.
7605 * cp-abi.h (cplus_type_from_type_info): Declare.
7606 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7607 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7608 (gnuv3_get_type_from_type_info): New functions.
7609 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7610
fc4746a2
TT
76112013-04-15 Tom Tromey <tromey@redhat.com>
7612
7613 * break-catch-throw.c (struct exception_names): New.
7614 (exception_functions): Change type.
7615 (re_set_exception_catchpoint): Look for SDT probes.
7616
15a73f56
TT
76172013-04-15 Tom Tromey <tromey@redhat.com>
7618
7619 PR c++/10119:
7620 * break-catch-throw.c (exception_functions): New global.
7621 (gnu_v3_exception_catchpoint_ops): Move earlier.
7622 (struct exception_catchpoint): New.
7623 (classify_exception_breakpoint): Rewrite.
7624 (re_set_exception_catchpoint): New function.
7625 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7626 Allocate a struct exception_catchpoint.
7627 (catch_exception_command_1): Update.
7628 (initialize_throw_catchpoint_ops): Set 're_set' method.
7629
916703c0
TT
76302013-04-15 Tom Tromey <tromey@redhat.com>
7631
7632 * Makefile.in (SFILES): Add break-catch-throw.c
7633 (COMMON_OBS): Add break-catch-throw.o.
7634 * break-catch-throw.c: New file.
7635 * breakpoint.c: Move exception-catching code to new file.
7636 (ep_parse_optional_if_clause): No longer static.
7637 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7638
6e72ca20
TT
76392013-04-15 Tom Tromey <tromey@redhat.com>
7640
7641 PR c++/9065:
7642 * NEWS: Update.
7643 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7644 * c-exp.y (TYPEID): New token.
7645 (exp): Add new TYPEID productions.
7646 (ident_tokens): Add "typeid".
7647 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7648 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7649 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7650 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7651 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7652 case.
7653 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7654 (build_std_type_info_type, gnuv3_get_typeid_type)
7655 (gnuv3_get_typeid): New functions.
7656 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7657 new fields on ABI object.
7658 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7659 * std-operator.def (OP_TYPEID): New.
7660
715c6909
TT
76612013-04-15 Tom Tromey <tromey@redhat.com>
7662
7663 * elfread.c (elf_symtab_read): Install versioned symbol under
7664 unversioned name as well.
7665
8de20a37
TT
76662013-04-15 Tom Tromey <tromey@redhat.com>
7667
7668 PR c++/11990:
7669 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7670 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7671 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7672 (gdb_demangle): New function.
7673 * cp-support.h (gdb_demangle): Declare.
7674 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7675 (dwarf2_name): Use gdb_demangle.
7676 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7677 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7678 suffixes from name.
7679 (gnuv3_print_method_ptr): Use gdb_demangle.
7680 * jv-lang.c (java_demangle): Use gdb_demangle.
7681 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7682 * language.c (unk_lang_demangle): Use gdb_demangle.
7683 * symtab.c (symbol_find_demangled_name)
7684 (demangle_for_lookup): Use gdb_demangle.
7685
591f19e8
TT
76862013-04-15 Tom Tromey <tromey@redhat.com>
7687
7688 PR c++/12824:
7689 * NEWS: Update.
7690 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7691 New constant.
7692 (classify_exception_breakpoint): New function.
7693 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7694 (print_mention_exception_catchpoint)
7695 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7696 (catch_exception_command_1): Handle "rethrow" catchpoint.
7697 (catch_rethrow_command): New function.
7698 (_initialize_breakpoint): Add "catch rethrow" command.
7699
4d40cad2
PM
77002013-04-15 Pierre Muller <muller@sourceware.org>
7701
7702 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7703 set_gdbarch_write_pc as deprecated anymore.
7704
30bcb456
JB
77052013-04-15 Joel Brobecker <brobecker@adacore.com>
7706
7707 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7708 declarations.
7709
da9160e4
YQ
77102013-04-13 Yao Qi <yao@codesourcery.com>
7711
7712 * ctf.c (_initialize_ctf): Include "completer.h".
7713 Call add_target_with_completer instead of add_target.
7714
39ed5604
JK
77152013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7716
7717 Fix GDB regression related to PR binutils/14813.
7718 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7719 * minidebug.c (lzma_close): Add return value comment.
7720 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7721 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7722 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7723
77242013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7725
7726 * config.in: Regenerate.
7727
d521ce57
TT
77282013-04-12 Tom Tromey <tromey@redhat.com>
7729
7730 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7731 const.
7732 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7733 (struct die_reader_specs) <buffer>: Likewise.
7734 (die_reader_func_ftype): Make 'info_ptr' const.
7735 (struct line_header) <include_dirs, statement_program_start,
7736 statement_program_end>: Now const.
7737 (struct file_entry) <name>: Likewise.
7738 (struct partial_die_info) <sibling>: Likewise.
7739 (struct dwarf_block) <data>: Likewise.
7740 (dwarf2_read_section): Remove cast.
7741 (dwarf2_get_section_info): Make 'bufp' const.
7742 (read_index_from_section): Constify.
7743 (dw2_get_file_names_reader): Make 'info_ptr' const.
7744 (dw2_get_primary_filename_reader): Likewise.
7745 (read_comp_unit_head): Make 'info_ptr' and return type const.
7746 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7747 Likewise.
7748 (read_abbrev_offset): Constify.
7749 (dwarf2_create_include_psymtab): Make 'name' const.
7750 (create_debug_types_hash_table): Update.
7751 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7752 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7753 Constify.
7754 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7755 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7756 (read_comp_units_from_section): Constify.
7757 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7758 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7759 const.
7760 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7761 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7762 (create_dwp_hash_table, dwarf2_ranges_read)
7763 (dwarf2_record_block_ranges): Constify.
7764 (read_die_and_children, read_die_and_siblings_1)
7765 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7766 const.
7767 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7768 (abbrev_table_read_table): Constify.
7769 (load_partial_dies): Make 'info_ptr' const.
7770 (read_partial_die, read_attribute_value, read_attribute): Make
7771 'info_ptr' and return type const.
7772 (read_address, read_initial_length)
7773 (read_checked_initial_length_and_offset, read_offset)
7774 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7775 const.
7776 (read_direct_string): Make 'buf' and return type const.
7777 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7778 (read_indirect_string): Make return type const.
7779 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7780 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7781 'info_ptr' const.
7782 (read_str_index): Make return type const.
7783 (add_include_dir): Make 'include_dir' const.
7784 (add_file_name): Make 'name' const.
7785 (dwarf_decode_line_header): Constify.
7786 (psymtab_include_file_name): Make return type const.
7787 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7788 (dwarf2_start_subfile): Make 'filename' const.
7789 (dwarf2_const_value_attr): Make 'bytes' const.
7790 (read_signatured_type_reader): Make 'info_ptr' const.
7791 (decode_locdesc): Constify.
7792 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7793 const.
7794 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7795 'mac_end', and return type const.
7796 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7797 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7798 type const.
7799 (per_cu_header_read_in): Constify.
7800 * symfile.h (dwarf2_get_section_info): Update.
7801
d47a1bc1
TT
78022013-04-12 Tom Tromey <tromey@redhat.com>
7803
7804 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7805
6eaaf48b
EZ
78062013-04-12 Eli Zaretskii <eliz@gnu.org>
7807
fc4c25bf 7808 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7809 * top.c (print_gdb_configuration): New function, displays the
7810 details about GDB configure-time parameters.
7811 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7812 * cli/cli-cmds.c (show_configuration): New function.
7813 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7814 * main.c (captured_main) <print_configuration>: New static var.
7815 <long_options>: Use it.
7816 If --configuration was given, call print_gdb_configuration.
7817
b292c783
JK
78182013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7819 Pedro Alves <palves@redhat.com>
7820
7821 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7822 (generated_files): Add gcore.
7823 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7824 HAVE_NATIVE_GCORE_HOST.
7825 (gcore): New.
7826 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7827 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7828 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7829 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7830 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7831 Add HAVE_NATIVE_GCORE_HOST.
7832 * configure: Regenerate.
7833 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7834 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7835 AC_CONFIG_FILES for gcore.
7836 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7837 gdb_have_gcore.
7838 * gdb_gcore.sh: Rename to ...
7839 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7840 and GCORE_TRANSFORM_NAME substitutions.
7841
c96b3c4f
JK
7842 Fix parsing tabs in ${gdb_target_obs}.
7843 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7844
d6cb50a2
JK
78452013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7846
7847 * remote.c (unpush_and_perror): Add output message final dot.
7848
cf2cb5ec
YQ
78492013-04-11 Yao Qi <yao@codesourcery.com>
7850
7851 * tracepoint.c (tfile_interp_line): Fit parameters line and
7852 utpp in one line.
7853
07293be4
JB
78542013-04-10 Joel Brobecker <brobecker@adacore.com>
7855
7856 * solib.c (solib_map_sections): Remove code overwriting
7857 SO->SO_NAME with the bfd's filename.
7858
f81d1120
PA
78592013-04-10 Pedro Alves <palves@redhat.com>
7860
7861 * cli/cli-decode.c (integer_unlimited_completer): New function.
7862 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7863 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7864 completer.
7865 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7866 (is_unlimited_literal): New function.
7867 (do_set_command): Handle literal "unlimited" arguments.
7868 * frame.c (_initialize_frame) <set backtrace limit>: Document
7869 "unlimited".
7870 * printcmd.c (_initialize_printcmd) <set print
7871 max-symbolic-offset>: Add help text.
7872 * record-full.c (_initialize_record_full) <set record full
7873 insn-number-max>: Likewise.
7874 * record.c (_initialize_record) <set record
7875 instruction-history-size, set record function-call-history-size>:
7876 Add help text.
7877 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7878 help text.
7879 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7880 Likewise.
7881 * source.c (_initialize_source) <set listsize>: Add help text.
7882 * utils.c (initialize_utils) <set height, set width>: Likewise.
7883 <set pagination>: Mention "set height unlimited".
7884 * valprint.c (_initialize_valprint) <set print elements, set print
7885 repeats>: Document "unlimited".
7886
2f9d54cf
PA
78872013-04-10 Pedro Alves <palves@redhat.com>
7888
7889 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7890 instead of disconnect_tracing.
7891 * infcmd.c (detach_command, disconnect_command): Call
7892 query_if_trace_running. Adjust.
7893 * top.c: Include "tracepoint.h".
7894 (quit_target): Delete. Contents moved ...
7895 (quit_force): ... here. Wrap each stage of teardown in
7896 TRY_CATCH. Call disconnect_tracing before detaching.
7897
393fd4c3
YQ
78982013-04-10 Hui Zhu <hui@codesourcery.com>
7899 Yao Qi <yao@codesourcery.com>
7900
7901 * configure.ac: Check libbabeltrace is installed.
7902 * config.in: Regenerate.
7903 * configure: Regenerate.
7904 * Makefile.in (LIBBABELTRACE): New.
7905 (CLIBS): Add LIBBABELTRACE.
7906 * ctf.c: Include "exec.h".
7907 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7908 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7909 (ctf_save_metadata_header): Define new type aliases in
7910 metadata.
7911 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7912 in metadata. Start a new faked packet for trace status.
7913 (ctf_write_status): Write trace status to CTF.
7914 (ctf_write_uploaded_tsv): Write TSV to CTF.
7915 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7916 (ctf_write_definition_end): End the faked packet.
7917
7918 (ctx, ctf_iter, trace_dirname): New.
7919 (start_pos): New variable.
7920 (ctf_destroy, ctf_open_dir, ctf_open): New.
7921 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7922 macros.
7923 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7924 (ctf_fetch_registers, ctf_xfer_partial): New.
7925 (ctf_get_trace_state_variable_value): New.
7926 (ctf_get_tpnum_from_frame_event): New.
7927 (ctf_get_traceframe_address): New.
7928 (ctf_trace_find, ctf_has_stack): New.
7929 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7930 (ctf_get_trace_status, ctf_read_status): New.
7931 (_initialize_ctf): New.
7932 * tracepoint.c (get_tracepoint_number): New
7933 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7934 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7935 * tracepoint.h: ... here.
7936 (get_tracepoint_number): Declare it.
7937 (get_uploaded_tsv): Declare it.
7938
7939 * NEWS: Mention new configure option.
7940
5c2b4418
HZ
79412013-04-10 Pedro Alves <palves@redhat.com>
7942 Hui Zhu <hui@codesourcery.com>
7943
7944 * breakpoint.c (dprintf_re_set): New.
7945 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7946 to dprintf_re_set.
7947
a5c66735
JB
79482013-04-09 Joel Brobecker <brobecker@adacore.com>
7949
7950 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7951 Remove solib-svr4.o from the list.
7952
9e77999c
JB
79532013-04-09 Joel Brobecker <brobecker@adacore.com>
7954
7955 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7956 Use gdb_assert_not_reached instead of invalid boolean expression.
7957
1927e618
PA
79582013-04-09 Pedro Alves <palves@redhat.com>
7959
7960 * remote.c (unpush_and_perror): New function.
7961 (readchar, remote_serial_write): Use it.
7962
10782d74
MM
79632013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7964
7965 * NEWS: Mention new btrace RSP packets.
7966
4c8429ef
TT
79672013-04-08 Tom Tromey <tromey@redhat.com>
7968
7969 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7970 long.
7971
8625fc1b
TT
79722013-04-08 Tom Tromey <tromey@redhat.com>
7973
7974 * maint.c (print_bfd_section_info): Print the section index.
7975 * symmisc.c (dump_msymbols): Print the section index.
7976
e27d198c
TT
79772013-04-08 Tom Tromey <tromey@redhat.com>
7978
7979 PR symtab/8424:
7980 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7981 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7982 * breakpoint.c (resolve_sal_pc): Update.
7983 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7984 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7985 (minsym_lookup_iterator_cb): Use it.
7986 (default_read_var_value): Update.
7987 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7988 Update.
7989 * infcmd.c (jump_command): Update.
7990 * linespec.c (minsym_found): Update.
7991 * maint.c (maintenance_translate_address): Update.
7992 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7993 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7994 * parse.c (write_exp_msymbol): Update.
7995 * printcmd.c (address_info): Update.
7996 * psymtab.c (find_pc_sect_psymbol): Update.
7997 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7998 SYMBOL_OBJ_SECTION.
7999 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8000 Don't initialize SYMBOL_OBJ_SECTION.
8001 * spu-tdep.c (spu_catch_start): Update.
8002 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8003 * symmisc.c (dump_msymbols, print_symbol): Update.
8004 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8005 how fallback section is computed.
8006 (fixup_symbol_section): Update.
8007 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8008 Update.
8009 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8010 Initialize SYMBOL_SECTION.
8011 * symtab.h (struct general_symbol_info) <section>: Update comment.
8012 <obj_section>: Remove.
8013 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8014 (SYMBOL_OBJFILE): New macro.
8015
e6dc44a8
TT
80162013-04-08 Tom Tromey <tromey@redhat.com>
8017
8018 * coffread.c (record_minimal_symbol): Update.
8019 * dbxread.c (record_minimal_symbol): Update.
8020 * elfread.c (record_minimal_symbol): Update.
8021 * machoread.c (macho_symtab_add_minsym): Update.
8022 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8023 Update.
8024 * minsyms.c (prim_record_minimal_symbol): Update.
8025 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8026 argument.
8027 (prim_record_minimal_symbol_and_info): Likewise.
8028 * minsyms.h (prim_record_minimal_symbol_full)
8029 (prim_record_minimal_symbol_and_info): Update.
8030 * symtab.c (allocate_symbol, initialize_symbol)
8031 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8032 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8033 Update.
8034
36192a8d
TT
80352013-04-08 Tom Tromey <tromey@redhat.com>
8036
8037 PR symtab/8423:
8038 * solib-som.c (som_solib_section_offsets): Use BFD section
8039 indices. Set offsets for all sections.
8040 * somread.c (som_symtab_read): Compute BFD section for
8041 symbol. Use prim_record_minimal_symbol_and_info.
8042 (som_symfile_read): Fix comment.
8043 (struct find_section_offset_arg): New.
8044 (find_section_offset, set_section_index): New functions.
8045 (som_symfile_offsets): Use set_section_index to compute
8046 section indices.
8047
65cf3563
TT
80482013-04-08 Tom Tromey <tromey@redhat.com>
8049
8050 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8051 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8052 gdb_bfd_section_index.
8053 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8054 New functions.
8055 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8056 Declare.
8057 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8058 Update.
8059 * objfiles.c (add_to_objfile_sections_full): New function.
8060 (add_to_objfile_sections): Use it.
8061 (build_section_table): Rewrite.
8062 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8063 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8064 (struct objfile) <sections>: Update comment.
8065 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8066 is NULL.
8067 (ALL_OBJSECTIONS): Use it.
8068 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8069 * solib-frv.c (frv_relocate_main_executable): Update.
8070 * solib-target.c (solib_target_relocate_section_addresses):
8071 Use gdb_bfd_section_index.
8072 * symfile.c (build_section_addr_info_from_section_table):
8073 Use gdb_bfd_section_index.
8074 (build_section_addr_info_from_bfd, place_section): Likewise.
8075 * symtab.c (fixup_section): Update.
8076 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8077
7cbd4a93
TT
80782013-04-08 Tom Tromey <tromey@redhat.com>
8079
8080 * minsyms.h (struct bound_minimal_symbol): New.
8081 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8082 Remove objfile argument.
8083 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8084 Return bound_minimal_symbol.
8085 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8086 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8087 Return bound_minimal_symbol.
8088 (in_gnu_ifunc_stub): Update.
8089 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8090 Remove 'objfile_p' argument.
8091 (lookup_solib_trampoline_symbol_by_pc): Update.
8092 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8093 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8094 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8095 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8096 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8097 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8098 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8099 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8100 stack.c, symtab.c, tui/tui-disasm.c: Update.
8101
f85f34ed
TT
81022013-04-08 Tom Tromey <tromey@redhat.com>
8103
8104 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8105 Use symbol's obstack, not an objfile.
8106 * coffread.c (process_coff_symbol): Update.
8107 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8108 * jv-lang.c (add_class_symbol): Update.
8109 * mdebugread.c (new_symbol): Update.
8110 * minsyms.c (prim_record_minimal_symbol_full)
8111 (terminate_minimal_symbol_table): Update.
8112 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8113 * stabsread.c (define_symbol, read_enum_type): Update.
8114 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8115 Handle Ada specially.
8116 (symbol_set_language): Add 'obstack' argument.
8117 (symbol_set_names): Update.
8118 (symbol_natural_name, symbol_demangled_name): Always use
8119 ada_decode_symbol.
8120 * symtab.h (struct general_symbol_info)
8121 <language_specific::obstack>: New field.
8122 <ada_mangled>: New field.
8123 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8124 (symbol_set_language): Update.
8125
ccde22c0
TT
81262013-04-08 Tom Tromey <tromey@redhat.com>
8127
8128 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8129 Take an obstack, not an objfile.
8130 (symbol_set_names): Update.
8131 * symtab.h (symbol_set_demangled_name): Update.
8132
e623cf5d
TT
81332013-04-08 Tom Tromey <tromey@redhat.com>
8134
8135 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8136 allocate_symbol.
8137 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8138 (read_func_scope): Call allocate_template_symbol.
8139 (new_symbol_full): Call allocate_symbol.
8140 * jit.c (finalize_symtab): Call allocate_symbol.
8141 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8142 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8143 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8144 (common_block_end): Call allocate_symbol.
8145 * symtab.c (allocate_symbol, initialize_symbol)
8146 (allocate_template_symbol): New functions.
8147 * symtab.c (allocate_symbol, initialize_symbol)
8148 (allocate_template_symbol): Declare.
8149 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8150
f6de8ec2
PA
81512013-04-08 Pedro Alves <palves@redhat.com>
8152 Keith Seitz <keiths@redhat.com>
8153
8154 * breakpoint.c (create_breakpoint): Rename
8155 "parse_condition_and_thread" parameter to "parse_arg". Update
8156 describing comment. If !PARSE_ARG, then error out if ARG is not
8157 the empty string after extracting the location.
8158 * breakpoint.h (create_breakpoint): Rename
8159 "parse_condition_and_thread" parameter to "parse_arg".
8160
f65ce5fb
AR
81612013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8162
8163 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8164
cc5925ad
YQ
81652013-04-07 Yao Qi <yao@codesourcery.com>
8166
8167 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8168 and 'addr2' to CORE_ADDR.
8169 * target.c (update_current_target): Update.
8170 * target.h (struct target_ops) <to_trace_find>: Change parameter
8171 type to CORE_ADDR.
8172 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8173 'addr2' to CORE_ADDR.
8174 (tfile_trace_find): Likewise.
8175 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8176 Change local variable 'addr' to type CORE_ADDR.
8177 * tracepoint.h (tfind_1): Update declaration.
8178
d9ac0664
EZ
81792013-04-06 Eli Zaretskii <eliz@gnu.org>
8180
8181 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8182 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8183 Include main.h.
8184
8185 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8186 here...
8187 * main.h (windows_get_absolute_argv0): ...to here.
8188
02142a6c
DE
81892013-04-05 Doug Evans <dje@google.com>
8190
8191 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8192 (read_cutu_die_from_dwo): Add comments.
8193 (read_structure_type): Update comment.
8194 (read_enumeration_type, read_namespace_type): Update comment.
8195 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8196
43662968
JK
81972013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8198
8199 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8200 * Makefile.in (gdb.z): Remove.
8201 (install-only): Remove $(man1dir) and gdb.1 installation.
8202 * gdb.1: Remove.
8203
9ead1b84
JK
82042013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8205
8206 Fix compatibility with Linux kernel 3.8.3.
8207 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8208 to more inner block. Remove parsing of NUMBER from outer block.
8209 Parse NUMBER only if KEYWORD has been identified.
8210
d1794952
JK
82112013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8212
8213 Fix variable name shadowing.
8214 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8215 filename to mapsfilename and update its uses.
8216
9025569e
EZ
82172013-04-05 Eli Zaretskii <eliz@gnu.org>
8218
8219 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8220 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8221 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8222 details of the problem.
8223
c9a6ce02
PA
82242013-04-04 Pedro Alves <palves@redhat.com>
8225 Hui Zhu <hui@codesourcery.com>
8226
8227 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8228 tracepoint, reset its STEP_COUNT and call validate_actionline.
8229
5ff888ce
DE
82302013-04-03 Doug Evans <dje@google.com>
8231
bf6af496
DE
8232 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8233 read_die_and_siblings.
8234 (read_die_and_siblings): New function.
8235 (read_cutu_die_from_dwo): Dump die if requested.
8236 (read_die_and_children): Call read_full_die_1 and
8237 read_die_and_siblings_1.
8238 (read_full_die): Dump die if requested.
8239
8240 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8241
0ac5b59e
DE
8242 * dwarf2read.c (struct dwo_file): New member comp_dir.
8243 Rename member name to dwo_name. All uses updated.
8244 (hash_dwo_file): Include comp_dir in computation.
8245 (eq_dwo_file): Ditto.
8246 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8247 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8248
5ff888ce
DE
8249 * psymtab.c (read_psymtabs_with_fullname): Don't call
8250 psymtab_to_fullname if the basenames are different.
8251
ec83d211
JK
82522013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8253
8254 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8255 New entry about "fullname" presence.
8256
4f4352f7
PA
82572013-04-03 Pedro Alves <palves@redhat.com>
8258
8259 * NEWS: Mention x86_64/Cygwin as new native configuration.
8260
3d1d5ea3
DE
82612013-04-02 Doug Evans <dje@google.com>
8262
8263 * dwarf2read.c (read_structure_type): Fix typo in comment.
8264
be9a8770
PA
82652013-04-02 Pedro Alves <palves@redhat.com>
8266
8267 * NEWS: Mention "set/show debug aarch64", "set/show debug
8268 coff-pe-read" and "set/show debug mach-o".
8269
a46c1e42
PA
82702013-04-02 Pedro Alves <palves@redhat.com>
8271
8272 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8273
3ad18b19
EZ
82742013-04-02 Eli Zaretskii <eliz@gnu.org>
8275
8276 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8277 gdb_string.h is now in common/.
8278
e9f1758d
PA
82792013-04-02 Pedro Alves <palves@redhat.com>
8280
8281 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8282 under "New options".
8283
049dc89b
JK
82842013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8285
8286 Revert this patch:
8287 PR gdb/15275
8288 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8289
c33e31fd
PA
82902013-04-02 Pedro Alves <palves@redhat.com>
8291
8292 PR gdb/15275
8293
8294 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8295 (remote_serial_write): New function.
8296 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8297
ea5f3910
JW
82982013-04-01 Jiong Wang <jiwang@tilera.com>
8299
8300 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8301 "New targets" sections.
ea5f3910 8302
5c6fa7ab
DE
83032013-04-01 Doug Evans <dje@google.com>
8304
c0f78cd4
DE
8305 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8306 (process_enumeration_scope): Simplify.
8307
0186c6a7
DE
8308 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8309 type_unit_group ...
8310 (struct signatured_type): ... to here.
8311 (sig_type_ptr): New typedef.
8312 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8313 out of union 't'. All uses updated.
8314 (dw2_get_file_names_reader): Assert not called for a type unit.
8315 (dw2_get_file_names): Assert not called for a type unit or type
8316 unit group.
8317 (build_type_psymtabs_reader): Assert called for a type unit.
8318 (build_type_psymtab_dependencies): Assert called for a type unit group.
8319
5c6fa7ab
DE
8320 * dwarf2read.c (free_dwo_file): Add comment.
8321 (dwarf2_per_objfile_free): Unref dwp bfd.
8322
b3c0ad67 83232013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8324
8325 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8326 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8327 (read_pe_exported_syms): Remove unused 'exportix'.
8328 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8329 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8330 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8331
e2df1547
AR
83322013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8333
8334 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8335 (print_it_watchpoint): Remove unused 'bl'.
8336 (say_where): Remove unused 'uiout'.
8337 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8338 (bkpt_breakpoint_hit): Remove unused 'b'.
8339 (internal_bkpt_print_it): Remove unused 'uiout'.
8340 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8341
d81e75c0
TD
83422013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8343
8344 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8345 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8346
5a8b3f62
DE
83472013-03-29 Doug Evans <dje@google.com>
8348
ab5088bf
DE
8349 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8350 Delete arg is_dwp. All callers updated.
8351 (open_dwp_file): New function.
8352 (open_and_init_dwp_file): Call it.
8353 (get_dwp_file): New function.
8354 (lookup_dwo_cutu): Call it.
8355
a8ad1e57
DE
8356 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8357 unnecessary, cleanup.
8358
6296d8c1
DE
8359 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8360
b0c7bfa9
DE
8361 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8362 (lookup_dwo_unit): New function.
8363 (init_cutu_and_read_dies): Move DWO handling to new functions.
8364
c88ee1f0
DE
8365 * dwarf2read.c (struct signatured_type): Tweak comment.
8366 (struct dwo_unit): Tweak comment.
8367 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8368 (create_dwo_debug_info_hash_table): Tweak comment.
8369 (dwarf2_per_cu_offset_and_type): Tweak comment.
8370
5a8b3f62
DE
8371 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8372 missing .debug_types section.
8373
9852c492
YQ
83742013-03-29 Yao Qi <yao@codesourcery.com>
8375
8376 * corelow.c: Include "completer.h".
8377 (_initialize_corelow): Call add_target_with_completer with
8378 argument 'filename_completer'.
8379 * tracepoint.c: Likewise.
8380 * exec.c (_initialize_exec): Likewise.
8381 * target.c (add_target): Rename to ...
8382 (add_target_with_completer): ... this. Call set_cmd_completer
8383 if parameter completer is not NULL.
8384 (add_target): New.
8385 * target.h: Include "command.h".
8386 (add_target_with_completer): Declare it.
8387
af312be7
JB
83882013-03-28 Joel Brobecker <brobecker@adacore.com>
8389
8390 * coffread.c (is_import_fixup_symbol): New function.
8391 (record_minimal_symbol): Use is_import_fixup_symbol to
8392 detect import fixup symbols, and discard them.
8393
8a0459fd
DE
83942013-03-28 Doug Evans <dje@google.com>
8395
0349ea22
DE
8396 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8397 types hash table until we know we need it.
8398
f652bce2
DE
8399 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8400 index numbers.
8401
e4a48d9d
DE
8402 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8403 All callers updated.
8404 (dw2_print_stats): Print #read CUs too.
8405 (dump_die_shallow): Print signatured types better.
8406
8a0459fd
DE
8407 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8408 info_or_types_section to section. All uses updated.
8409 (struct dwo_unit): Ditto.
8410
bd3eecc3
PA
84112013-03-28 Pedro Alves <palves@redhat.com>
8412
8413 * NEWS (New options): New section.
8414 (New options): Mention set/show remote trace-status-packet.
8415 * remote.c (PACKET_qTStatus): New enumeration value.
8416 (remote_get_trace_status): Skip sending qTStatus if the packet is
8417 disabled. Use packet_ok.
8418 (_initialize_remote): Register a configuration command for
8419 qTStatus packet.
8420
41245087
DE
84212013-03-28 Doug Evans <dje@google.com>
8422
7edbb660
DE
8423 * symfile.c (find_separate_debug_file): Add comment.
8424 (terminate_after_last_dir_separator): Tweak comment.
8425
0018ea6f
DE
8426 * dwarf2read.c (create_partial_symtab): Add forward decl.
8427 (create_partial_symtab): Move to be closer to other psymtab functions.
8428 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8429
ca69b9e6
DE
8430 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8431 (compute_symtab_includes): Remove unnecessary forward declaration.
8432 (die_needs_namespace): Add comment marking group of functions for
8433 dwarf2 name computation.
8434
a9375afe
DE
8435 * typeprint.c (_initialize_typeprint): Improve type help text.
8436
41245087
DE
8437 * python/python.c (finish_python_initialization): Provide suggestion
8438 for how to tell gdb to find its python files.
8439
7f7cc265
PA
84402013-03-28 Pedro Alves <palves@redhat.com>
8441
8442 PR gdb/15294
8443
8444 * source.c (_initialize_source): Change back "set listsize" to an
8445 integer command.
8446
ec21308c
JK
84472013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8448
8449 PR gdb/15275
8450 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8451
840a9a1f
PA
84522013-03-27 Pedro Alves <palves@redhat.com>
8453
8454 * top.c (history_size): Rename to ...
8455 (history_size_setshow_var): ... this. Add comment.
8456 (show_commands): Use readline's 'history_length' instead of
8457 computing the history length by calling history_get in a loop.
8458 (set_history_size_command): Error out for sizes over INT_MAX.
8459 Restore previous history size on invalid size.
8460 (init_history): If HISTSIZE is negative, leave the history size as
8461 zero. Add comments.
8462 (init_main): Adjust.
8463
826ecc4d
PA
84642013-03-27 Pedro Alves <palves@redhat.com>
8465
8466 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8467 coff_pe_read" command to "set debug coff-pe-read".
8468
0ccfeeae
MM
84692013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8470
8471 * record.c (command_size_to_target_size): Fix size comparison.
8472 Change parameter type from pointer to integer to integer.
8473 Update all users.
8474
40653b35
PM
84752013-03-27 Pierre Muller <muller@sourceware.org>
8476
8477 * windows-nat.c (handle_output_debug_string): Avoid typecast
8478 from integer of different size warning.
8479
c62fa0e2
JB
84802013-03-26 Joel Brobecker <brobecker@adacore.com>
8481
8482 * windows-nat.c (handle_output_debug_string): Add empty line
8483 after local block variable definition.
8484
2c619be2
PA
84852013-03-26 Pedro Alves <palves@redhat.com>
8486
8487 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8488 (net_open): Make 'polls' local unsigned.
8489
1b493192
PA
84902013-03-26 Pedro Alves <palves@redhat.com>
8491
8492 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8493 a zuinteger command instead of uinteger.
8494
7ee70bf5
PA
84952013-03-26 Pedro Alves <palves@redhat.com>
8496
8497 * record-full.c (record_full_insn_num): Make it unsigned.
8498 (record_full_check_insn_num, record_full_message)
8499 (record_full_registers_change, record_full_xfer_partial): Remove
8500 record_full_insn_max_num check (it's always != 0).
8501 (record_full_info, record_full_restore): Use %u as format string.
8502 (): Use %u as format string.
8503 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8504 check (it's always != 0).
8505
dfd1f9bb
PA
85062013-03-26 Pedro Alves <palves@redhat.com>
8507
8508 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8509 and "set dcache size" commands zuinteger instead of uinteger.
8510
addb4faf
PA
85112013-03-26 Pedro Alves <palves@redhat.com>
8512
8513 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8514 command zuinteger instead of uinteger.
8515
b75bf488
PA
85162013-03-26 Pedro Alves <palves@redhat.com>
8517
8518 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8519 zuinteger instead of uinteger.
8520
42c634cb
PA
85212013-03-26 Pedro Alves <palves@redhat.com>
8522
8523 * record.c (record_insn_history_size_setshow_var)
8524 (record_call_history_size_setshow_var): New globals.
8525 (command_size_to_target_size): New function.
8526 (cmd_record_insn_history, cmd_record_call_history): Use
8527 command_size_to_target_size instead of cast.
8528 (validate_history_size, set_record_insn_history_size)
8529 (set_record_call_history_size): New functions.
8530 (_initialize_record): Install set_record_insn_history_size and
8531 set_record_call_history_size as "set" hooks of "set record
8532 instruction-history-size" and "set record
8533 function-call-history-size".
8534
1fb2e2b5
PA
85352013-03-26 Pedro Alves <palves@redhat.com>
8536
8537 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8538 use with history_max_entries use. Remove FIXME note.
8539
99c819ee
MM
85402013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8541
8542 * record-btrace.c (record_btrace_close): Call
8543 record_btrace_auto_disable.
8544
9f9e404c
JB
85452013-03-25 Joel Brobecker <brobecker@adacore.com>
8546
8547 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8548
ebcdfe33
DE
85492013-03-25 Doug Evans <dje@google.com>
8550
8551 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8552
24955f63
TT
85532013-03-25 Tom Tromey <tromey@redhat.com>
8554
8555 PR symtab/11462:
8556 * c-exp.y (exp): Add new productions for destructors after '.' and
8557 '->'.
8558 (write_destructor_name): New function.
8559
fce632b6
TT
85602013-03-25 Tom Tromey <tromey@redhat.com>
8561
8562 PR c++/9197:
8563 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8564 value_struct_elt, not lookup_struct_elt_type.
8565 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8566 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8567 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8568
a4341769
YQ
85692013-03-25 Yao Qi <yao@codesourcery.com>
8570
8571 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8572 instead of '_mkdir'.
8573
b5981e5a
EZ
85742013-03-23 Eli Zaretskii <eliz@gnu.org>
8575
8576 * windows-nat.c (windows_get_absolute_argv0): New function.
8577 * windows-nat.h: Add its prototype.
8578
8579 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8580 Use IS_DIR_SEPARATOR instead of looking for a character inside
8581 SLASH_STRING. Include filenames.h.
8582 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8583 relocate_gdb_directory works when passed gdb_program_name.
8584 Include windows-nat.h.
8585
598d3636
JK
85862013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8587
8588 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8589 * remote.c (trace_error): Remove the special handling of '2'.
8590 (readchar) <SERIAL_EOF>
8591 (readchar) <SERIAL_ERROR>
8592 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8593 (remote_get_trace_status): Call throw_exception if EX is
8594 TARGET_CLOSE_ERROR.
8595 * utils.c (perror_with_name): Rename to ...
8596 (throw_perror_with_name): ... here. New parameter errcode, describe it
8597 in the function comment.
8598 (perror_with_name): New function wrapper.
8599 * utils.h (enum errors): New stub declaration.
8600 (throw_perror_with_name): New declaration.
8601
82b821e9
PA
86022013-03-22 Pedro Alves <palves@redhat.com>
8603 Yao Qi <yao@codesourcery.com>
8604 Mark Kettenis <kettenis@gnu.org>
8605
8606 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8607 Don't let the user set the value to UINT_MAX directly.
8608 <var_integer>: Don't let the user set the value to INT_MAX
8609 directly.
8610
78a095c3
JK
86112013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8612
8613 * remote.c (remote_unpush_target): New function.
8614 (remote_open_1): Remove two pop_target calls, update one comment, add
8615 comment to target_preopen call. Replace pop_target call by
8616 remote_unpush_target call.
8617 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8618 pop_target calls by remote_unpush_target calls.
8619
3e74e146
PA
86202013-03-22 Pedro Alves <palves@redhat.com>
8621
8622 * linux-nat.c (linux_child_follow_fork): Don't call
8623 linux_enable_event_reporting.
8624 (linux_handle_extended_wait): Don't call
8625 linux_enable_event_reporting.
8626
a2213dca
PA
86272013-03-22 Pedro Alves <palves@redhat.com>
8628
8629 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8630 use it to rewrite the trampoline buffers with type gdb_byte[], and
8631 undefine the macro. Remove char* cast.
8632
bd712aed
DE
86332013-03-21 Doug Evans <dje@google.com>
8634
8635 New commands "mt set per-command {space,time,symtab} {on,off}".
8636 * NEWS: Add entry.
8637 * event-top.c: #include "maint.h".
8638 * main.c: #include "maint.h".
8639 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8640 timeval-utils.h, maint.h, cli/cli-setshow.h.
8641 (per_command_time, per_command_space): New static globals.
8642 (per_command_symtab): New static global.
8643 (per_command_setlist, per_command_showlist): New static globals.
8644 (struct cmd_stats): Move here from utils.c.
8645 (set_per_command_time): Renamed from set_display_time in utils.c
8646 and moved here. All callers updated.
8647 (set_per_command_space): Renamed from set_display_space in utils.c
8648 and moved here. All callers updated.
8649 (count_symtabs_and_blocks): New function.
8650 (report_command_stats): Moved here from utils.c. Add support for
8651 printing symtab stats. Only print data if enabled before command
8652 executed.
8653 (make_command_stats_cleanup): Ditto.
8654 (sert_per_command_cmd, show_per_command_cmd): New functions.
8655 (_initialize_maint_cmds): Add new commands
8656 mt set per-command {space,time,symtab} {on,off}.
8657 * maint.h: New file.
8658 * top.c: #include "maint.h".
8659 * utils.c (reset_prompt_for_continue_wait_time): New function.
8660 (get_prompt_for_continue_wait_time): New function.
8661 * utils.h (reset_prompt_for_continue_wait_time): Declare
8662 (get_prompt_for_continue_wait_time): Declare.
8663 (make_command_stats_cleanup): Moved to maint.h.
8664 (set_display_time, set_display_space): Moved to maint.h and renamed
8665 to set_per_command_time, set_per_command_space.
8666 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8667 parse_binary_operation and made non-static. Don't call error,
8668 just return an error marker. All callers updated.
8669 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8670
d76488d8
TT
86712013-03-21 Tom Tromey <tromey@redhat.com>
8672
8673 * symfile.c (alloc_section_addr_info): Update header. Don't set
8674 'num_sections' field.
8675 (build_section_addr_info_from_section_table): Set 'num_sections'.
8676 (build_section_addr_info_from_bfd): Likewise.
8677 (build_section_addr_info_from_objfile): Remove dead loop
8678 condition.
8679 (free_section_addr_info): Unconditionally call xfree.
8680 (relative_addr_info_to_section_offsets, addrs_section_sort)
8681 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8682 condition.
8683 (syms_from_objfile_1): Remove dead 'if' condition. Check
8684 'num_sections'.
8685 (add_symbol_file_command): Set 'num_sections'.
8686 * symfile-mem.c (symbol_file_add_from_memory): Set
8687 'num_sections'.
8688 * somread.c (som_symfile_offsets): Remove dead loop condition.
8689 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8690 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8691
a72e5169 86922013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8693
8694 * tracepoint.h (decode_agent_options): Add 'trace_string'
8695 argument.
8696 * tracepoint.c (decode_agent_options): Add 'trace_string'
8697 argument.
8698 (validate_actionline): Update.
8699 (collect_symbol): Add 'trace_string' argument.
8700 (struct add_local_symbols_data) <trace_string>: New field.
8701 (do_collect_symbol): Update.
8702 (add_local_symbols): Add 'trace_string' argument.
8703 (encode_actions_1): Update.
8704 (trace_dump_actions): Update.
8705 * dwarf2loc.c (access_memory): Update.
8706 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8707 * ax-general.c (new_agent_expr): Update.
8708 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8709 (gen_trace_for_return_address): Add argument.
8710 (trace_kludge, trace_string_kludge): Remove.
8711 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8712 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8713 (gen_trace_for_var): Add 'trace_string' argument.
8714 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8715 (gen_printf, agent_eval_command_one): Update.
8716
b2f83c08
TT
87172013-03-21 Tom Tromey <tromey@redhat.com>
8718
8719 PR exp/15109:
8720 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8721 Handle FILENAME token.
8722
9507860e
TT
87232013-03-21 Tom Tromey <tromey@redhat.com>
8724
8725 * c-exp.y (YYPRINT): Define.
8726 (c_print_token): New function.
8727
e403aa4b
TT
87282013-03-21 Tom Tromey <tromey@redhat.com>
8729
8730 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8731
af307d6a
YQ
87322013-03-21 Yao Qi <yao@codesourcery.com>
8733
8734 * ctf.c: Include "gdb_stat.h".
8735 [USE_WIN32API]: New macro 'mkdir'.
8736 (ctf_start): Use permission bits macros if they are defined.
8737
fb81d016
KS
87382013-03-20 Keith Seitz <keiths@redhat.com>
8739
8740 * breakpoint.h (struct breakpoint): Add comment to
8741 extra_string indicating that this member is mallod'd.
8742 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8743
ef0026f0
PA
87442013-03-20 Pedro Alves <palves@redhat.com>
8745
8746 PR gdb/15289
8747
8748 * cli/cli-setshow.c (do_set_command)
8749 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8750 the result of parsing the command argument. Throw error if the
8751 value is greater than UINT_MAX. Print the invalid value with
8752 plongest.
8753 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8754 result of parsing the command argument. Throw error if the value
8755 is greater than INT_MAX, not greater or equal. Also throw error
8756 if the value is less than INT_MIN. Print the invalid value with
8757 plongest.
8758 <var_zuinteger_unlimited>: Throw error if the value is greater
8759 than INT_MAX, not greater or equal.
8760 (do_show_command) <var_integer, var_zinteger,
8761 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8762
24d6c2a0
TT
87632013-03-20 Tom Tromey <tromey@redhat.com>
8764
8765 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8766 if possible.
8767 * dwarf2read.c (read_func_scope): Remove old FIXME.
8768 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8769 not LOC_COMPUTED.
8770 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8771 Unconditionally call via computed ops, if possible.
8772 * printcmd.c (address_info): Unconditionally call via computed ops,
8773 if possible.
8774 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8775 if possible.
8776 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8777 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8778 if possible.
8779
f1e6e072
TT
87802013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8781 Tom Tromey <tromey@redhat.com>
8782
8783 PR symtab/8421:
8784 * coffread.c (coff_register_index): New global.
8785 (process_coff_symbol, coff_read_enum_type): Set
8786 SYMBOL_ACLASS_INDEX.
8787 (_initialize_coffread): Initialize new global.
8788 * dwarf2loc.c (locexpr_find_frame_base_location)
8789 (dwarf2_block_frame_base_locexpr_funcs)
8790 (loclist_find_frame_base_location)
8791 (dwarf2_block_frame_base_loclist_funcs): New.
8792 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8793 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8794 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8795 (dwarf2_block_frame_base_loclist_funcs): New.
8796 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8797 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8798 globals.
8799 (read_func_scope): Update.
8800 (fixup_go_packaging, mark_common_block_symbol_computed)
8801 (var_decode_location, new_symbol_full, dwarf2_const_value):
8802 Set SYMBOL_ACLASS_INDEX.
8803 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8804 (_initialize_dwarf2_read): Initialize new globals.
8805 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8806 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8807 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8808 globals.
8809 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8810 (_initialize_mdebugread): Initialize new globals.
8811 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8812 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8813 (stab_register_index, stab_regparm_index): New globals.
8814 (define_symbol, read_enum_type, common_block_end): Set
8815 SYMBOL_ACLASS_INDEX.
8816 (_initialize_stabsread): Initialize new globals.
8817 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8818 globals.
8819 (MAX_SYMBOL_IMPLS): New define.
8820 (register_symbol_computed_impl, register_symbol_block_impl)
8821 (register_symbol_register_impl)
8822 (initialize_ordinary_address_classes): New functions.
8823 (_initialize_symtab): Call initialize_ordinary_address_classes.
8824 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8825 (struct symbol_impl): New.
8826 (SYMBOL_ACLASS_BITS): New define.
8827 (struct symbol) <aclass, ops>: Remove fields.
8828 <aclass_index>: New field.
8829 (symbol_impls): Declare.
8830 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8831 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8832 (register_symbol_computed_impl, register_symbol_block_impl)
8833 (register_symbol_register_impl): Declare.
8834 (struct symbol_computed_ops): Add location_has_loclist.
8835 (struct symbol_block_ops): New.
8836 (SYMBOL_BLOCK_OPS): New.
8837 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8838
dbccfd4c
TT
88392013-03-20 Tom Tromey <tromey@redhat.com>
8840
8841 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8842 (print_partial_symbols, recursively_search_psymtabs): Use
8843 PSYMBOL_CLASS.
8844
e3f1ad4f
PM
88452013-03-20 Pierre Muller <muller@sourceware.org>
8846
8847 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8848 addtion, subtraction, multiplication and division binary operator.
8849
460014f5
JK
88502013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8851
8852 Code cleanup.
8853 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8854 * bsd-kvm.c (bsd_kvm_close): Likewise.
8855 * bsd-uthread.c (bsd_uthread_close): Likewise.
8856 * corelow.c (core_close): Likewise.
8857 (core_close_cleanup): Remove parameter quitting from a caller.
8858 * event-top.c (async_disconnect): Likewise.
8859 * exec.c (exec_close_1): Remove parameter quitting.
8860 * go32-nat.c (go32_close): Likewise.
8861 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8862 parameter quitting from a caller.
8863 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8864 variable.
8865 (mips_linux_close): Remove parameter quitting. Remove parameter
8866 quitting from a caller.
8867 * monitor.c (monitor_close): Remove parameter quitting.
8868 * monitor.h (monitor_close): Likewise.
8869 * record-btrace.c (record_btrace_close): Likewise.
8870 * record-full.c (record_full_close): Likewise.
8871 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8872 it also from fprintf_unfiltered.
8873 * remote-mips.c (mips_close): Remove parameter quitting.
8874 (mips_detach): Remove parameter quitting from a caller.
8875 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8876 (gdbsim_close): Remove duplicate function comment. Remove parameter
8877 quitting and remove it also from printf_filtered.
8878 * remote.c (remote_close): Remove parameter quitting.
8879 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8880 * target.c (update_current_target): Remove parameter int from to_close
8881 de_fault.
8882 (push_target, unpush_target, pop_target): Remove parameter quitting from
8883 a caller.
8884 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8885 Remove parameter quitting from a caller.
8886 (target_preopen): Remove parameter quitting from a caller.
8887 (target_close): Remove parameter quitting. Remove parameter quitting
8888 from a caller two times. Remove parameter quitting also from
8889 fprintf_unfiltered.
8890 * target.h (struct target_ops): Remove parameter quitting and as int
8891 from fields to_xclose and to_close.
8892 (extern struct target_ops current_target):
8893 (target_close, pop_all_targets): Remove parameter quitting. Update the
8894 comment.
8895 (pop_all_targets_above): Remove parameter quitting.
8896 * top.c (quit_target): Remove parameter quitting from a caller.
8897 * tracepoint.c (tfile_close): Remove parameter quitting.
8898 * windows-nat.c (windows_close): Remove parameter quitting.
8899
35a7120b
CV
89002013-03-20 Corinna Vinschen <vinschen@redhat.com>
8901
8902 * windows-nat.c (handle_output_debug_string): Replace call
8903 to string_to_core_addr with call to strtoull.
8904
8249a5a9
YQ
89052013-03-20 Yao Qi <yao@codesourcery.com>
8906
8907 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8908 and write it to CTF metadata.
8909
2c15ef43
CV
89102013-03-19 Corinna Vinschen <vinschen@redhat.com>
8911
8912 * windows-nat.c (handle_output_debug_string): Change type of n to
8913 SIZE_T to avoid crash on 64 bit systems.
8914
1cdd3232
EZ
89152013-03-17 Eli Zaretskii <eliz@gnu.org>
8916
8917 * python/python-internal.h (HAVE_SNPRINTF)
8918 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8919 about redefinition of snprintf by pyerrors.h.
8920
3cb2ab1a
SE
89212013-03-15 Steve Ellcey <sellcey@mips.com>
8922
8923 * remote-sim.c (sim_command_completer): Make char arguments const.
8924
9ce98649
TT
89252013-03-15 Tom Tromey <tromey@redhat.com>
8926
8927 PR c++/15116:
8928 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8929
dccee2de
TT
89302013-03-14 Tom Tromey <tromey@redhat.com>
8931
8932 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8933 New fields.
8934 (get_file_crc): Move from symfile.c.
8935 (gdb_bfd_crc): New function.
8936 * gdb_bfd.h (gdb_bfd_crc): Declare.
8937 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8938 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8939 (separate_debug_file_exists): Use gdb_bfd_crc.
8940
cc0ea93c
TT
89412013-03-14 Tom Tromey <tromey@redhat.com>
8942
8943 * symfile.c (get_debug_link_info): Remove.
8944 (find_separate_debug_file_by_debuglink): Use
8945 bfd_get_debug_link_info.
8946
08c23b0d
TT
89472013-03-14 Tom Tromey <tromey@redhat.com>
8948
8949 * symtab.c (error_in_psymtab_expansion): New function.
8950 (lookup_symbol_aux_quick)
8951 (basic_lookup_transparent_type_quick): Remove "last resort"
8952 code. Use error_in_psymtab_expansion.
8953
288e77a7
JK
89542013-03-14 Doug Evans <dje@google.com>
8955 Jan Kratochvil <jan.kratochvil@redhat.com>
8956
8957 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8958 any successful compare_filenames_for_search or FILENAME_CMP.
8959 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8960 * symtab.c (iterate_over_some_symtabs): Likewise.
8961
8f1b8b82
JK
89622013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8963
8964 * source.c (print_source_lines_base): Make a local copy of
8965 symtab_to_fullname.
8966
23eb71e4
JK
89672013-03-14 Hui Zhu <hui_zhu@mentor.com>
8968 Jan Kratochvil <jan.kratochvil@redhat.com>
8969
8970 * source.c (print_source_lines_base): Suppress "file" for TUI.
8971
bb869963
SDJ
89722013-03-14 Keith Seitz <keiths@redhat.com>
8973 Alan Matsuoka <alanm@redhat.com>
8974
8975 PR c++/15203
8976 PR c++/15210
8977 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8978 TYPE_CODE_METHOD.
8979 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8980 symbols.
8981
d6682f9e
YQ
89822013-03-14 Yao Qi <yao@codesourcery.com>
8983
8984 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8985 status to tfile if trace is stopped by command 'tstop'.
8986
a22fa6e4
YQ
89872013-03-14 Yao Qi <yao@codesourcery.com>
8988
8989 * tracepoint.c (tfile_write_status): Write trace notes and user
8990 name into tfile if they are not NULL.
8991
d0353e76
YQ
89922013-03-14 Hui Zhu <hui@codesourcery.com>
8993 Yao Qi <yao@codesourcery.com>
8994
8995 * Makefile.in (REMOTE_OBS): Add ctf.o.
8996 (SFILES): Add ctf.c.
8997 (HFILES_NO_SRCDIR): Add ctf.h.
8998 * ctf.c, ctf.h: New files.
8999 * tracepoint.c: Include 'ctf.h'.
9000 (collect_pseudocommand): Remove static.
9001 (trace_save_command): Parse option "-ctf".
9002 Produce different trace file writers per option.
9003 Adjust output message.
9004 (trace_save_tfile, trace_save_ctf): New.
9005 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9006 * mi/mi-main.c: Include 'ctf.h'.
9007 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9008 trace_save_tfile or trace_save_ctf.
9009 * NEWS: Mention these changes.
9010
3f43bc09
YQ
90112013-03-14 Yao Qi <yao@codesourcery.com>
9012
9013 * tracepoint.c (trace_file_writer_xfree): New.
9014 (struct tfile_writer_data): New.
9015 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9016 (tfile_write_header, tfile_write_regblock_type): New.
9017 (tfile_write_status, tfile_write_uploaded_tsv): New.
9018 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9019 (tfile_write_raw_data, (tfile_end): New.
9020 (tfile_write_ops): New global variable.
9021 (TRACE_WRITE_R_BLOCK): New macro.
9022 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9023 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9024 (TRACE_WRITE_V_BLOCK): New macro.
9025 (trace_save): Add extra one parameter WRITER. Make it static.
9026 Use WRITER to writer trace.
9027 (tfile_trace_file_writer_new): New.
9028 (trace_save_command): Caller update.
9029 (trace_save_tfile): Write trace data in TFILE format.
9030 * tracepoint.h (struct trace_frame_write_ops): New.
9031 (struct trace_file_write_ops): New.
9032 (struct trace_file_writer): New.
9033 (trace_save): Remove its declaration.
9034 (trace_save_tfile): Declare it.
9035 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9036 instead of trace_save.
9037
58665b40
PA
90382013-03-13 Pedro Alves <palves@redhat.com>
9039
9040 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9041
10217050
PA
90422013-03-13 Pedro Alves <palves@redhat.com>
9043
9044 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9045 commented out code.
9046 * demangle.c (current_demangling_style_string): Make it const.
9047 (set_demangling_command): Assert the demangling style is known.
9048 Remove all handling of unknown styles. Set
9049 'current_demangling_style_string' to an element of the
9050 demangling_style_names array.
9051 (set_demangling_style): Delete.
9052 (_initialize_demangler): Set current_demangling_style_string to the
9053 element of the demangling_style_names array that corresponds to
9054 the default demangling style. Remove FIXME note. Don't call
9055 set_demangling_style.
9056 * gdb-demangle.h (set_demangling_style): Remove declaration.
9057
6f937416
PA
90582013-03-13 Pedro Alves <palves@redhat.com>
9059
9060 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9061 fields const.
9062 (ada_make_symbol_completion_list): Make "text0" parameter const.
9063 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9064 * breakpoint.c (condition_completer): Make "text" and "word"
9065 parameters const. Adjust.
9066 (check_tracepoint_command): Adjust to validate_actionline
9067 prototype change.
9068 (catch_syscall_completer): Make "text" and "word" parameters
9069 const.
9070 * cli/cli-cmds.c (show_user): Make "comname" local const.
9071 (valid_command_p): Make "command" parameter const.
9072 (alias_command): Make "alias_prefix" and "command_prefix" locals
9073 const.
9074 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9075 (add_alias_cmd): Make "name" and "oldname" parameters const.
9076 Adjust. No longer make copy of OLDNAME.
9077 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9078 (add_setshow_cmd_full, add_setshow_enum_cmd)
9079 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9080 (add_setshow_filename_cmd, add_setshow_string_cmd)
9081 (add_setshow_string_noescape_cmd)
9082 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9083 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9084 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9085 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9086 Make "name" parameter const.
9087 (help_cmd): Rename "command" parameter to "arg". New const local
9088 "command".
9089 (find_cmd): Make "command" parameter const.
9090 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9091 deprecated_cmd_warning prototype change.
9092 (undef_cmd_error): Make "cmdtype" parameter const.
9093 (lookup_cmd): Make "line" parameter const.
9094 (deprecated_cmd_warning): Change type of "text" parameter to
9095 pointer to const char, from pointer to pointer to char. Adjust.
9096 (lookup_cmd_composition): Make "text" parameter const.
9097 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9098 parameters const.
9099 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9100 const.
9101 * cli/cli-script.c (validate_comname): Make "tem" local const.
9102 (define_command): New const local "tem_c". Use it in calls to
9103 lookup_cmd.
9104 (document_command): Make "tem" and "comfull" locals const.
9105 (show_user_1): Make "prefix" and "name" parameters const.
9106 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9107 const.
9108 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9109 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9110 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9111 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9112 (complete_on_enum, add_setshow_enum_cmd)
9113 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9114 (add_setshow_filename_cmd, add_setshow_string_cmd)
9115 (add_setshow_string_noescape_cmd)
9116 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9117 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9118 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9119 Change prototypes, constifying strings.
9120 * completer.c (noop_completer, filename_completer): Make "text"
9121 and "prefix" parameters const.
9122 (location_completer, expression_completer)
9123 (complete_line_internal): Make "text" and "prefix" parameters
9124 const and adjust.
9125 (command_completer, signal_completer): Make "text" and "prefix"
9126 parameters const.
9127 * completer.h (noop_completer, filename_completer)
9128 (expression_completer, location_completer, command_completer)
9129 (signal_completer): Change prototypes.
9130 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9131 parameters const.
9132 * cp-abi.c (cp_abi_completer): Likewise.
9133 * expression.h (parse_expression_for_completion): Change
9134 prototype.
9135 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9136 parameters const.
9137 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9138 * infrun.c (handle_completer): Make "text" and "word" parameters
9139 const.
9140 * interps.c (interpreter_completer): Make "text" and "word"
9141 parameters const.
9142 * language.h (struct language_defn)
9143 <la_make_symbol_completion_list>: Make "text" and "word"
9144 parameters const.
9145 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9146 (parse_exp_in_context): Rename to ...
9147 (parse_exp_in_context_1): ... this.
9148 (parse_exp_in_context): Reimplement, with const hack from
9149 parse_exp_1.
9150 (parse_expression_for_completion): Make "string" parameter const.
9151 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9152 to pointer to const char. Adjust.
9153 (print_command_1): Make "exp" parameter const.
9154 (output_command): Rename to ...
9155 (output_command_const): ... this. Make "exp" parameter const.
9156 (output_command): Reimplement.
9157 (x_command): Adjust.
9158 (display_command): Rename "exp" parameter to "arg". New "exp"
9159 local, const version of "arg".
9160 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9161 "cmd_name" local const.
9162 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9163 call.
9164 (cmdpy_completer): Make "text" and "word" parameters const.
9165 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9166 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9167 const.
9168 * remote.c (_initialize_remote): Make "cmd_name" local const.
9169 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9170 parameters const. Adjust.
9171 (completion_list_add_fields): Make "sym_text", "text" and "word"
9172 parameters const.
9173 (struct add_name_data) <sym_text, text, word>: Make fields const.
9174 (default_make_symbol_completion_list_break_on): Make "text" and
9175 "word" parameters const. Adjust locals.
9176 (default_make_symbol_completion_list)
9177 (make_symbol_completion_list, make_symbol_completion_type)
9178 (make_symbol_completion_list_fn): Make "text" and "word"
9179 parameters const.
9180 (make_file_symbol_completion_list): Make "text", "word" and
9181 "srcfile" parameters const. Adjust locals.
9182 (add_filename_to_list): Make "text" and "word" parameters const.
9183 (struct add_partial_filename_data) <text, word>: Make fields
9184 const.
9185 (make_source_files_completion_list): Make "text" and "word"
9186 parameters const.
9187 * symtab.h (default_make_symbol_completion_list_break_on)
9188 (default_make_symbol_completion_list, make_symbol_completion_list)
9189 (make_symbol_completion_type enum type_code)
9190 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9191 (make_source_files_completion_list): Change prototype.
9192 * top.c (execute_command): Adjust to pass pointer to pointer to
9193 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9194 change.
9195 (set_verbose): Make "cmdname" local const.
9196 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9197 and adjust.
9198 (validate_actionline): Make "line" parameter a pointer to const
9199 char, and adjust.
9200 (encode_actions_1): Make "action_exp" local const, and adjust.
9201 (encode_actions): Adjust.
9202 (replace_comma): Delete.
9203 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9204 const, and adjust. Don't frob the action string while splitting
9205 it at commas. Instead, make a copy of each split substring in
9206 turn.
9207 (trace_dump_command): Adjust to validate_actionline prototype
9208 change.
9209 * tracepoint.h (decode_agent_options, decode_agent_options)
9210 (encode_actions, validate_actionline): Change prototypes.
9211 * valprint.h (output_command): Delete declaration.
9212 (output_command_const): Declare.
9213 * value.c (function_destroyer): Cast const away in xfree call.
9214
a0bcdaa7
PA
92152013-03-13 Pedro Alves <palves@redhat.com>
9216
9217 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9218 rather than casting 'const char * const *' to 'const char **'.
9219 * ada-lex.l (processInt): Make "trailer" local const. Remove
9220 'const char **' cast.
9221 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9222 locals, and use those as strtol output pointer, instead than doing
9223 invalid casts to from 'const char **' to 'char **'.
9224 (_initialize_demangle): Remove cast.
9225 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9226 locals, and use those as strtol output pointer, instead than doing
9227 invalid casts to from 'const char **' to 'char **'.
9228 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9229 casts.
9230 * stap-probe.c (stap_parse_register_operand)
9231 (stap_parse_single_operand): Likewise.
9232
8ddb1965
YQ
92332013-03-13 Yao Qi <yao@codesourcery.com>
9234
9235 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9236 the last matched 'V' blcok in trace frame.
9237
2d450646
JB
92382013-03-12 Joel Brobecker <brobecker@adacore.com>
9239
9240 * NEWS: Create a new section for the next release branch.
9241 Rename the section of the current branch, now that it has
9242 been cut.
9243
b4b79973 92442013-03-12 Joel Brobecker <brobecker@adacore.com>
9245
9246 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9247 * version.in: Bump version to 7.6.50.20130312-cvs.
9248
ee047554
KS
92492013-03-12 Keith Seitz <keiths@redhat.com>
9250
9251 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9252 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9253 Remove temporary copy of input string.
9254 (mi_execute_command_wrapper): Make "cmd" const.
9255 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9256 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9257 Use const strings.
9258 (mi_parse): Make "cmd" const.
9259 Use const strings.
9260 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9261
bbc13ae3
KS
92622013-03-12 Keith Seitz <keiths@redhat.com>
9263
9264 * ada-lang.c (ada_read_renaming_var_value): Pass const
9265 pointer to expression string to parse_exp_1.
9266 (create_excep_cond_exprs): Likewise.
9267 * ax-gdb.c (agent_eval_command_one): Likewise.
9268 (maint_agent_printf_command): Likewise.
9269 Constify much of the string handling/parsing.
9270 * breakpoint.c (set_breakpoint_condition): Pass const
9271 pointer to expression string to parse_exp_1.
9272 (update_watchpoint): Likewise.
9273 (parse_cmd_to_aexpr): Constify string handling.
9274 Pass const pointer to parse_exp_1.
9275 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9276 (find_condition_and_thread): Likewise.
9277 Make TOK const.
9278 (watch_command_1): Make "arg" const.
9279 Constify string handling.
9280 Copy the expression string instead of changing the input
9281 string.
9282 (update_breakpoint_location): Pass const pointer to
9283 parse_exp_1.
9284 * eval.c (parse_and_eval_address): Make "exp" const.
9285 (parse_to_comma_and_eval): Make "expp" const.
9286 (parse_and_eval): Make "exp" const.
9287 * expression.h (parse_expression): Make argument const.
9288 (parse_exp_1): Make first argument const.
9289 * findcmd.c (parse_find_args): Treat "args" as const.
9290 * linespec.c (parse_linespec): Pass const pointer to
9291 linespec_expression_to_pc.
9292 (linespec_expression_to_pc): Make "exp_ptr" const.
9293 * parse.c (parse_exp_1): Make "stringptr" const.
9294 Make a copy of the expression to pass to parse_exp_in_context until
9295 this whole interface can be constified.
9296 (parse_expression): Make "string" const.
9297 * printcmd.c (ui_printf): Treat "arg" as const.
9298 Handle const strings.
9299 * tracepoint.c (validate_actionline): Pass const pointer to
9300 all calls to parse_exp_1.
9301 (encode_actions_1): Likewise.
9302 * value.h (parse_to_comma_and_eval): Make argument const.
9303 (parse_and_eval_address): Likewise.
9304 (parse_and_eval): Likewise.
9305 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9306 (varobj_set_value): Likewise.
9307 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9308 constify string handling.
9309 Pass const pointers to parse_and_eval_address and
9310 parse_to_comman_and_eval.
9311 * cli/cli-utils.c (skip_to_space): Rename to ...
9312 (skip_to_space_const): ... this. Handle const strings.
9313 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9314 skip_to_space_const.
9315 (skip_to_space_const): Declare.
9316 * common/format.c (parse_format_string): Make "arg" const.
9317 Handle const strings.
9318 * common/format.h (parse_format_string): Make "arg" const.
9319 * gdbserver/ax.c (ax_printf): Make "format" const.
9320 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9321 of the expression string.
9322
f3cec7e6
HZ
93232013-03-12 Hui Zhu <hui@codesourcery.com>
9324
9325 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9326
9df7235c
HZ
93272013-03-12 Yao Qi <yao@codesourcery.com>
9328 Hui Zhu <hui@codesourcery.com>
9329
9330 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9331 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9332 DW_OP_deref_size.
9333
82d049ab
PH
93342013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9335
5f8e0b8f
MF
9336 * ada-lex.l (rules): Only recognize 'thread' as a
9337 delimiter when followed by numerals, as for c-exp.y.
9338 Use new rewind_to_char function to rewind the input for
9339 expression-delimiting tokens.
9340 (rewind_to_char): New function.
82d049ab 9341
8c1fb155
JK
93422013-03-11 Pedro Alves <palves@redhat.com>
9343 Jan Kratochvil <jan.kratochvil@redhat.com>
9344
9345 * configure: Regenerate.
9346 * configure.ac (check dynamic export flag): Link python test with
9347 $PYTHON_LIBS.
9348
cc81e1c6
DE
93492013-03-11 Doug Evans <dje@google.com>
9350 Keith Seitz <keiths@redhat.com>
9351
9352 * linespec.c (find_linespec_symbols): Call find_function_symbols
9353 first, and then call lookup_prefix_sym/find_method.
9354
39086a0e
PA
93552013-03-11 Pedro Alves <palves@redhat.com>
9356
9357 * charset.c (convert_between_encodings): Don't cast between
9358 different pointer to pointer types. Instead, make the 'inp' local
9359 be of the type iconv expects.
9360 (wchar_iterate): Don't cast between different pointer to pointer
9361 types. Instead, use new pointer local of the type iconv expects.
9362 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9363 Add new local of type char pointer, and use it to get a
9364 char/string view of the byte buffer, instead of casting between
9365 pointer to pointer types.
9366
90585175
HAQ
93672013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9368
9369 * remote.c (remote_set_trace_buffer_size): Move != operator
9370 to the start of next line to fix an ARI warning.
9371
59ea5688
MM
93722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9373
9374 * NEWS: Add record changes.
9375
946287b7
MM
93762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9377
9378 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9379 the instruction history disassembly.
9380 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9381 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9382
afedecd3
MM
93832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9384
9385 * Makefile.in (SFILES): Add record-btrace.c
9386 (COMMON_OBS): Add record-btrace.o
9387 * record-btrace.c: New.
9388 * objfiles.c: Include btrace.h.
9389 (free_objfile): call btrace_free_objfile.
9390
15984c13
MM
93912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9392
9393 * target.c (target_call_history, target_call_history_from,
9394 target_call_history_range): New.
9395 * target.h (target_ops) <to_call_history, to_call_history_from,
9396 to_call_history_range>: New fields.
9397 (target_call_history, target_call_history_from,
9398 target_call_history_range): New declaration.
9399 * record.c (get_call_history_modifiers, cmd_record_call_history,
9400 record_call_history_size): New.
9401 (_initialize_record): Add the "record function-call-history" command.
9402 Add "set/show record function-call-history-size" commands.
9403 * record.h (record_print_flag): New.
9404
67c86d06
MM
94052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9406
9407 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9408 to_insn_history_range>: New fields.
9409 (target_insn_history): New.
9410 (target_insn_history_from): New.
9411 (target_insn_history_range): New.
9412 * target.c (target_insn_history): New.
9413 (target_insn_history_from): New.
9414 (target_insn_history_range): New.
9415 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9416 (record_insn_history_size): New.
9417 (get_insn_number): New.
9418 (get_context_size): New.
9419 (no_chunk): New.
9420 (get_insn_history_modifiers): New.
9421 (cmd_record_insn_history): New.
9422 (_initialize_record): Add "set/show record instruction-history-size"
9423 command. Add "record instruction-history" command.
9424
7c1687a9
MM
94252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9426
9427 * record.h (record_disconnect): New.
9428 (record_detach): New.
9429 (record_mourn_inferior): New.
9430 (record_kill): New.
9431 * record-full.c (record_disconnect, record_detach,
9432 record_mourn_inferior, record_kill): Move to...
9433 * record.c: ...here.
9434 (DEBUG): New.
9435 (record_stop): New.
9436 (record_unpush): New.
9437 (cmd_record_stop): Call record_stop. Replace unpush_target
9438 call with record_unpush call.
9439 (record_disconnect, record_detach): Assert that the target
9440 is of record stratum. Call record_unpush, record_stop, and
9441 DEBUG.
9442 (record_mourn_inferior, record_kill): Assert that the target
9443 is of record stratum. Call record_unpush and DEBUG.
9444
25ea693b
MM
94452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9446
9447 * record-full.h, record-full.c (record_memory_query): Rename
9448 to ...
9449 (record_full_memory_query): ...this. Update all users.
9450 (record_arch_list_add_reg): Rename to ...
9451 (record_full_arch_list_add_reg): ...this. Update all users.
9452 (record_arch_list_add_mem): Rename to ...
9453 (record_full_arch_list_add_mem): ...this. Update all users.
9454 (record_arch_list_add_end): Rename to ...
9455 (record_full_arch_list_add_end): ...this. Update all users.
9456 (record_gdb_operation_disable_set): Rename to ...
9457 (record_full_gdb_operation_disable_set): ...this.
9458 Update all users.
9459
88d1aa9d
MM
94602013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9461
9462 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9463 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9464 (RECORD_IS_REPLAY): Renamed to ...
9465 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9466 (RECORD_FILE_MAGIC): Renamed to ...
9467 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9468 (record_mem_entry): Renamed to ...
9469 (record_full_mem_entry): ... this. Updated all users.
9470 (record_reg_entry): Renamed to ...
9471 (record_full_reg_entry): ... this. Updated all users.
9472 (record_end_entry): Renamed to ...
9473 (record_full_end_entry): ... this. Updated all users.
9474 (record_type) <record_end, record_reg, record_mem>: Renamed
9475 to ...
9476 (record_full_type) <record_full_end, record_full_reg,
9477 record_full_mem>: ... this. Updated all users.
9478 (record_entry): Renamed to ...
9479 (record_full_entry): ... this. Updated all users.
9480 (record_core_buf_entry): Renamed to ...
9481 (record_full_core_buf_entry): ... this. Updated all users.
9482 (record_core_regbuf): Renamed to ...
9483 (record_full_core_regbuf): ... this. Updated all users.
9484 (record_core_start): Renamed to ...
9485 (record_full_core_start): ... this. Updated all users.
9486 (record_core_end): Renamed to ...
9487 (record_full_core_end): ... this. Updated all users.
9488 (record_core_buf_list): Renamed to ...
9489 (record_full_core_buf_list): ... this. Updated all users.
9490 (record_first): Renamed to ...
9491 (record_full_first): ... this. Updated all users.
9492 (record_list): Renamed to ...
9493 (record_full_list): ... this. Updated all users.
9494 (record_arch_list_head): Renamed to ...
9495 (record_full_arch_list_head): ... this. Updated all users.
9496 (record_arch_list_tail): Renamed to ...
9497 (record_full_arch_list_tail): ... this. Updated all users.
9498 (record_stop_at_limit): Renamed to ...
9499 (record_full_stop_at_limit): ... this. Updated all users.
9500 (record_insn_max_num): Renamed to ...
9501 (record_full_insn_max_num): ... this. Updated all users.
9502 (record_insn_num): Renamed to ...
9503 (record_full_insn_num): ... this. Updated all users.
9504 (record_insn_count): Renamed to ...
9505 (record_full_insn_count): ... this. Updated all users.
9506 (record_ops): Renamed to ...
9507 (record_full_ops): ... this. Updated all users.
9508 (record_core_ops): Renamed to ...
9509 (record_full_core_ops): ... this. Updated all users.
9510 (set_record_cmdlist): Renamed to ...
9511 (set_record_full_cmdlist): ... this. Updated all users.
9512 (show_record_cmdlist): Renamed to ...
9513 (show_record_full_cmdlist): ... this. Updated all users.
9514 (record_cmdlist): Renamed to ...
9515 (record_full_cmdlist): ... this. Updated all users.
9516 (record_beneath_to_resume_ops): Renamed to ...
9517 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9518 (record_beneath_to_resume): Renamed to ...
9519 (record_full_beneath_to_resume): ... this. Updated all users.
9520 (record_beneath_to_wait_ops): Renamed to ...
9521 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9522 (record_beneath_to_wait): Renamed to ...
9523 (record_full_beneath_to_wait): ... this. Updated all users.
9524 (record_beneath_to_store_registers_ops): Renamed to ...
9525 (record_full_beneath_to_store_registers_ops): ... this.
9526 Updated all users.
9527 (record_beneath_to_store_registers): Renamed to ...
9528 (record_full_beneath_to_store_registers): ... this.
9529 Updated all users.
9530 (record_beneath_to_xfer_partial_ops): Renamed to ...
9531 (record_full_beneath_to_xfer_partial_ops): ... this.
9532 Updated all users.
9533 (record_beneath_to_xfer_partial): Renamed to ...
9534 (record_full_beneath_to_xfer_partial): ... this.
9535 Updated all users.
9536 (record_beneath_to_insert_breakpoint): Renamed to ...
9537 (record_full_beneath_to_insert_breakpoint): ... this.
9538 Updated all users.
9539 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9540 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9541 Updated all users.
9542 (record_beneath_to_stopped_data_address): Renamed to ...
9543 (record_full_beneath_to_stopped_data_address): ... this.
9544 Updated all users.
9545 (record_beneath_to_async): Renamed to ...
9546 (record_full_beneath_to_async): ... this. Updated all users.
9547 (record_goto_insn): Renamed to ...
9548 (record_full_goto_insn): ... this. Updated all users.
9549 (record_save): Renamed to ...
9550 (record_full_save): ... this. Updated all users.
9551 (record_reg_alloc): Renamed to ...
9552 (record_full_reg_alloc): ... this. Updated all users.
9553 (record_reg_release): Renamed to ...
9554 (record_full_reg_release): ... this. Updated all users.
9555 (record_mem_alloc): Renamed to ...
9556 (record_full_mem_alloc): ... this. Updated all users.
9557 (record_mem_release): Renamed to ...
9558 (record_full_mem_release): ... this. Updated all users.
9559 (record_end_alloc): Renamed to ...
9560 (record_full_end_alloc): ... this. Updated all users.
9561 (record_end_release): Renamed to ...
9562 (record_full_end_release): ... this. Updated all users.
9563 (record_entry_release): Renamed to ...
9564 (record_full_entry_release): ... this. Updated all users.
9565 (record_list_release): Renamed to ...
9566 (record_full_list_release): ... this. Updated all users.
9567 (record_list_release_following): Renamed to ...
9568 (record_full_list_release_following): ... this.
9569 Updated all users.
9570 (record_list_release_first): Renamed to ...
9571 (record_full_list_release_first): ... this. Updated all users.
9572 (record_arch_list_add): Renamed to ...
9573 (record_full_arch_list_add): ... this. Updated all users.
9574 (record_get_loc): Renamed to ...
9575 (record_full_get_loc): ... this. Updated all users.
9576 (record_check_insn_num): Renamed to ...
9577 (record_full_check_insn_num): ... this. Updated all users.
9578 (record_arch_list_cleanups): Renamed to ...
9579 (record_full_arch_list_cleanups): ... this. Updated all users.
9580 (record_message): Renamed to ...
9581 (record_full_message): ... this. Updated all users.
9582 (record_message_wrapper): Renamed to ...
9583 (record_full_message_wrapper): ... this. Updated all users.
9584 (record_message_wrapper_safe): Renamed to ...
9585 (record_full_message_wrapper_safe): ... this. Updated all users.
9586 (record_gdb_operation_disable): Renamed to ...
9587 (record_full_gdb_operation_disable): ... this. Updated all users.
9588 (record_hw_watchpoint): Renamed to ...
9589 (record_full_hw_watchpoint): ... this. Updated all users.
9590 (record_exec_insn): Renamed to ...
9591 (record_full_exec_insn): ... this. Updated all users.
9592 (record_restore): Renamed to ...
9593 (record_full_restore): ... this. Updated all users.
9594 (record_async_inferior_event_token): Renamed to ...
9595 (record_full_async_inferior_event_token): ... this.
9596 Updated all users.
9597 (record_async_inferior_event_handler): Renamed to ...
9598 (record_full_async_inferior_event_handler): ... this.
9599 Updated all users.
9600 (record_core_open_1): Renamed to ...
9601 (record_full_core_open_1): ... this. Updated all users.
9602 (record_open_1): Renamed to ...
9603 (record_full_open_1): ... this. Updated all users.
9604 (record_open): Renamed to ...
9605 (record_full_open): ... this. Updated all users.
9606 (record_close): Renamed to ...
9607 (record_full_close): ... this. Updated all users.
9608 (record_resume_step): Renamed to ...
9609 (record_full_resume_step): ... this. Updated all users.
9610 (record_resumed): Renamed to ...
9611 (record_full_resumed): ... this. Updated all users.
9612 (record_execution_dir): Renamed to ...
9613 (record_full_execution_dir): ... this. Updated all users.
9614 (record_resume): Renamed to ...
9615 (record_full_resume): ... this. Updated all users.
9616 (record_get_sig): Renamed to ...
9617 (record_full_get_sig): ... this. Updated all users.
9618 (record_sig_handler): Renamed to ...
9619 (record_full_sig_handler): ... this. Updated all users.
9620 (record_wait_cleanups): Renamed to ...
9621 (record_full_wait_cleanups): ... this. Updated all users.
9622 (record_wait_1): Renamed to ...
9623 (record_full_wait_1): ... this. Updated all users.
9624 (record_wait): Renamed to ...
9625 (record_full_wait): ... this. Updated all users.
9626 (record_stopped_by_watchpoint): Renamed to ...
9627 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9628 (record_disconnect): Renamed to ...
9629 (record_full_disconnect): ... this. Updated all users.
9630 (record_detach): Renamed to ...
9631 (record_full_detach): ... this. Updated all users.
9632 (record_mourn_inferior): Renamed to ...
9633 (record_full_mourn_inferior): ... this. Updated all users.
9634 (record_kill): Renamed to ...
9635 (record_full_kill): ... this. Updated all users.
9636 (record_stopped_data_address): Renamed to ...
9637 (record_full_stopped_data_address): ... this. Updated all users.
9638 (record_registers_change): Renamed to ...
9639 (record_full_registers_change): ... this. Updated all users.
9640 (record_store_registers): Renamed to ...
9641 (record_full_store_registers): ... this. Updated all users.
9642 (record_xfer_partial): Renamed to ...
9643 (record_full_xfer_partial): ... this. Updated all users.
9644 (record_breakpoint): Renamed to ...
9645 (record_full_breakpoint): ... this. Updated all users.
9646 (record_breakpoint_p): Renamed to ...
9647 (record_full_breakpoint_p): ... this. Updated all users.
9648 (record_breakpoints): Renamed to ...
9649 (record_full_breakpoints): ... this. Updated all users.
9650 (record_sync_record_breakpoints): Renamed to ...
9651 (record_full_sync_record_breakpoints): ... this.
9652 Updated all users.
9653 (record_init_record_breakpoints): Renamed to ...
9654 (record_full_init_record_breakpoints): ... this.
9655 Updated all users.
9656 (record_insert_breakpoint): Renamed to ...
9657 (record_full_insert_breakpoint): ... this. Updated all users.
9658 (record_remove_breakpoint): Renamed to ...
9659 (record_full_remove_breakpoint): ... this. Updated all users.
9660 (record_can_execute_reverse): Renamed to ...
9661 (record_full_can_execute_reverse): ... this. Updated all users.
9662 (record_get_bookmark): Renamed to ...
9663 (record_full_get_bookmark): ... this. Updated all users.
9664 (record_goto_bookmark): Renamed to ...
9665 (record_full_goto_bookmark): ... this. Updated all users.
9666 (record_async): Renamed to ...
9667 (record_full_async): ... this. Updated all users.
9668 (record_can_async_p): Renamed to ...
9669 (record_full_can_async_p): ... this. Updated all users.
9670 (record_is_async_p): Renamed to ...
9671 (record_full_is_async_p): ... this. Updated all users.
9672 (record_execution_direction): Renamed to ...
9673 (record_full_execution_direction): ... this. Updated all users.
9674 (record_info): Renamed to ...
9675 (record_full_info): ... this. Updated all users.
9676 (record_delete): Renamed to ...
9677 (record_full_delete): ... this. Updated all users.
9678 (record_is_replaying): Renamed to ...
9679 (record_full_is_replaying): ... this. Updated all users.
9680 (record_goto_entry): Renamed to ...
9681 (record_full_goto_entry): ... this. Updated all users.
9682 (record_goto_begin): Renamed to ...
9683 (record_full_goto_begin): ... this. Updated all users.
9684 (record_goto_end): Renamed to ...
9685 (record_full_goto_end): ... this. Updated all users.
9686 (record_goto): Renamed to ...
9687 (record_full_goto): ... this. Updated all users.
9688 (init_record_ops): Renamed to ...
9689 (init_record_full_ops): ... this. Updated all users.
9690 (record_core_resume): Renamed to ...
9691 (record_full_core_resume): ... this. Updated all users.
9692 (record_core_kill): Renamed to ...
9693 (record_full_core_kill): ... this. Updated all users.
9694 (record_core_fetch_registers): Renamed to ...
9695 (record_full_core_fetch_registers): ... this. Updated all users.
9696 (record_core_prepare_to_store): Renamed to ...
9697 (record_full_core_prepare_to_store): ... this. Updated all users.
9698 (record_core_store_registers): Renamed to ...
9699 (record_full_core_store_registers): ... this. Updated all users.
9700 (record_core_xfer_partial): Renamed to ...
9701 (record_full_core_xfer_partial): ... this. Updated all users.
9702 (record_core_insert_breakpoint): Renamed to ...
9703 (record_full_core_insert_breakpoint): ... this. Updated all users.
9704 (record_core_remove_breakpoint): Renamed to ...
9705 (record_full_core_remove_breakpoint): ... this. Updated all users.
9706 (record_core_has_execution): Renamed to ...
9707 (record_full_core_has_execution): ... this. Updated all users.
9708 (init_record_core_ops): Renamed to ...
9709 (init_record_full_core_ops): ... this. Updated all users.
9710 (cmd_record_restore): Renamed to ...
9711 (cmd_record_full_restore): ... this. Updated all users.
9712 (record_save_cleanups): Renamed to ...
9713 (record_full_save_cleanups): ... this. Updated all users.
9714 (cmd_record_start): Renamed to ...
9715 (cmd_record_full_start): ... this. Updated all users.
9716 (set_record_insn_max_num): Renamed to ...
9717 (set_record_full_insn_max_num): ... this. Updated all users.
9718 (set_record_command): Renamed to ...
9719 (set_record_full_command): ... this. Updated all users.
9720 (show_record_command): Renamed to ...
9721 (show_record_full_command): ... this. Updated all users.
9722 (_initialize_record): Renamed to ...
9723 (_initialize_record_full): ... this. Updated all users.
9724
d02ed0bb
MM
97252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9726
9727 * record.h: Split into this and ...
9728 * record-full.h: ... this.
9729 * record.c: Split into this and ...
9730 * record-full.c: ... this.
9731 * target.h (target_ops): Add new fields to_info_record,
9732 to_save_record, to_delete_record, to_record_is_replaying,
9733 to_goto_record_begin, to_goto_record_end, to_goto_record.
9734 (target_info_record): New.
9735 (target_save_record): New.
9736 (target_supports_delete_record): New.
9737 (target_delete_record): New.
9738 (target_record_is_replaying): New.
9739 (target_goto_record_begin): New.
9740 (target_goto_record_end): New.
9741 (target_goto_record): New.
9742 * target.c (target_info_record): New.
9743 (target_save_record): New.
9744 (target_supports_delete_record): New.
9745 (target_delete_record): New.
9746 (target_record_is_replaying): New.
9747 (target_goto_record_begin): New.
9748 (target_goto_record_end): New.
9749 (target_goto_record): New.
9750 * record.h: Declare struct cmd_list_element.
9751 (record_cmdlist): New declaration.
9752 (set_record_cmdlist): New declaration.
9753 (show_record_cmdlist): New declaration.
9754 (info_record_cmdlist): New declaration.
9755 (cmd_record_goto): New declaration.
9756 * record.c: Remove unnecessary includes.
9757 Include inferior.h.
9758 (cmd_record_goto): Remove declaration.
9759 (record_cmdlist): Now extern. Initialize.
9760 (set_record_cmdlist): Now extern. Initialize.
9761 (show_record_cmdlist): Now extern. Initialize.
9762 (info_record_cmdlist): Now extern. Initialize.
9763 (find_record_target): New.
9764 (require_record_target): New.
9765 (cmd_record_start): Update.
9766 (cmd_record_delete): Remove target-specific code.
9767 Call target_delete_record.
9768 (cmd_record_stop): Unpush any record target.
9769 (set_record_insn_max_num): Move to record-full.c
9770 (set_record_command): Add comment.
9771 (show_record_command): Add comment.
9772 (info_record_command): Update comment.
9773 Remove target-specific code.
9774 Call the record target's to_info_record.
9775 (cmd_record_start): New.
9776 (cmd_record_goto): Now extern.
9777 Remove target-specific code.
9778 Call target_goto_begin, target_goto_end, or target_goto.
9779 (_initialize_record): Move record target ops initialization to
9780 record-full.c.
9781 Change "record" command help text.
9782 Move "record restore", "record set", and "record show" commands to
9783 record-full.c.
9784 * Makefile.in (SFILES): Add record-full.c.
9785 (HFILES_NO_SRCDIR): Add record-full.h.
9786 (COMMON_OBS): Add record-full.o.
9787 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9788 * arm-tdep.c: Include record-full.h.
9789 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9790 * i386-tdep.c: Include record-full.h.
9791 * infrun.c: Include record-full.h.
9792 * linux-record.c: Include record-full.h.
9793 * moxie-tdep.c: Include record-full.h.
9794 * record-full.c: Include record-full.h.
9795 Change module comment.
9796 (set_record_full_cmdlist): New.
9797 (show_record_full_cmdlist): New.
9798 (record_full_cmdlist): New.
9799 (record_goto_insn): New declaration.
9800 (record_save): New declaration.
9801 (record_check_insn_num): Change query string.
9802 (record_info): New.
9803 (record_delete): New.
9804 (record_is_replaying): New.
9805 (record_goto_entry): New.
9806 (record_goto_begin): New.
9807 (record_goto_end): New.
9808 (record_goto): New.
9809 (init_record_ops): Update.
9810 (init_record_core_ops): Update.
9811 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9812 (cmd_record_start): New.
9813 (set_record_insn_max_num): Moved from record.c
9814 (set_record_full_command): New.
9815 (show_record_full_command): New.
9816 (_initialize_record_full): New.
9817
b48d48eb
MM
98182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9819
9820 * target.h (add_deprecated_target_alias): New.
9821 * target.c (add_deprecated_target_alias): New.
9822
a950d57c
MM
98232013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9824
9825 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9826 and signal.h.
9827 (linux_supports_btrace): Add kernel and
9828 cpuid check.
9829 (kernel_supports_btrace): New function.
9830 (cpu_supports_btrace): New function.
9831 (intel_supports_btrace): New function.
9832
9accd112
MM
98332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9834
9835 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9836 * remote.c: Include btrace.h.
9837 (struct btrace_target_info): New struct.
9838 (remote_supports_btrace): New function.
9839 (send_Qbtrace): New function.
9840 (remote_enable_btrace): New function.
9841 (remote_disable_btrace): New function.
9842 (remote_teardown_btrace): New function.
9843 (remote_read_btrace): New function.
9844 (init_remote_ops): Add btrace ops.
9845 (enum <unnamed>): Add btrace packets.
9846 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9847 (_initialize_remote): Add packet configuration for branch tracing.
9848
c12a2917
MM
98492013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9850
9851 * features/btrace.dtd: New file.
9852 * Makefile.in (XMLFILES): Add btrace.dtd.
9853 * btrace.h (parse_xml_btrace): New declaration.
9854 * btrace.c: Include xml-support.h.
9855 (parse_xml_btrace): New function.
9856 (parse_xml_btrace_block): New function.
9857 (block_attributes): New struct.
9858 (btrace_attributes): New struct.
9859 (btrace_children): New struct.
9860 (btrace_elements): New struct.
9861
3e3aea48
MM
98622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9863
9864 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9865 (amd64_linux_enable_btrace): New.
9866 (amd64_linux_disable_btrace): New.
9867 (amd64_linux_teardown_btrace): New.
9868 (_initialize_amd64_linux_nat): Initialize btrace ops.
9869 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9870 (i386_linux_enable_btrace): New.
9871 (i386_linux_disable_btrace): New.
9872 (i386_linux_teardown_btrace): New.
9873 (_initialize_i386_linux_nat): Initialize btrace ops.
9874 * config/i386/linux.mh: Add linux-btrace.o.
9875 * config/i386/linux64.mh: Add linux-btrace.o.
9876
7c97f91e
MM
98772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9878
9879 * common/linux_btrace.h: New file.
9880 * common/linux_btrace.c: New file.
9881 * Makefile.in (SFILES): Add btrace.c.
9882 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9883 (COMMON_OBS): Add btrace.o.
9884 (linux-btrace.o): New rule.
9885
1999790b 98862013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9887
9888 * target.h: Include btrace.h.
9889 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9890 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9891 * target.c (target_supports_btrace): New function.
9892 (target_enable_btrace): New function.
9893 (target_disable_btrace): New function.
9894 (target_teardown_btrace): New function.
9895 (target_read_btrace): New function.
9896 * btrace.h: New file.
9897 * btrace.c: New file.
9898 * Makefile.in: Add btrace.c.
9899 * gdbthread.h: Include btrace.h.
9900 (struct thread_info): Add btrace field.
9901 * thread.c: Include btrace.h.
9902 (clear_thread_inferior_resources): Call target_teardown_btrace.
9903 * common/btrace-common.h: New file.
9904
61a31a67
JK
99052013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9906
9907 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9908 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9909 kill_status to outer block.
9910
05c56a9d
JK
99112013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9912
9913 Fix entry-values if the callee called a noreturn function.
9914 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9915 get_frame_address_in_block. Add new comment.
9916
9112db09
JK
99172013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9918
9919 Fix entry-values in C++ across CUs.
9920 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9921 lookup_minimal_symbol. Add a comment.
9922 * dwarf2read.c
9923 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9924 DW_AT_linkage_name.
9925
9b67fcec
YQ
99262013-03-08 Yao Qi <yao@codesourcery.com>
9927
9928 * tracepoint.c (_initialize_tracepoint): Indent the code.
9929
6221be90
PA
99302013-03-08 Pedro Alves <palves@redhat.com>
9931
9932 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9933 (parse_find_args, find_command): Change type of pattern buffer
9934 locals to 'gdb_byte *'.
9935
be9a119c 99362013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9937 Hafiz Abid Qadeer <abidh@codesourcery.com>
9938
9939 * NEWS: Mention set and show trace-buffer-size commands.
9940 Mention new packet.
9941 * target.h (struct target_ops): New method
9942 to_set_trace_buffer_size.
9943 (target_set_trace_buffer_size): New macro.
9944 * target.c (update_current_target): Set up new method.
9945 * tracepoint.c (trace_buffer_size): New global.
9946 (start_tracing): Send it to the target.
9947 (set_trace_buffer_size): New function.
9948 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9949 * remote.c (remote_set_trace_buffer_size): New function.
9950 (_initialize_remote): Use it.
9951 (QTBuffer:size) New remote command.
9952 (PACKET_QTBuffer_size): New enum.
9953 (remote_protocol_features): Add an entry for
9954 PACKET_QTBuffer_size.
9955
7da3ab79
TT
99562013-03-08 Tom Tromey <tromey@redhat.com>
9957
9958 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9959 variable.
9960
0c1f71e7
PA
99612013-03-07 Pedro Alves <palves@redhat.com>
9962
9963 * target.c (target_read_stralloc, target_fileio_read_alloc):
9964 *Cast pointer to 'gdb_byte *' in target call.
9965
c8af03a2
PA
99662013-03-07 Pedro Alves <palves@redhat.com>
9967
9968 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9969 call.
9970
529480d0
KS
99712013-03-07 Keith Seitz <keiths@redhat.com>
9972
9973 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9974 (trace_pass_command): Likewise.
9975 * cli/cli-cmds.c: Include cli/cli-utils.h.
9976 (source_command): Use skip-spaces.
9977 (disassemble_command): Likewise.
9978 * findcmd.c: Include cli/cli-utils.h.
9979 (parse_find_args): Use skip_spaces.
9980 * go32-nat.c: Include cli/cli-utils.h.
9981 (go32_sldt): Use skip_spaces.
9982 (go32_sgdt): Likewise.
9983 (go32_sidt): Likewise.
9984 (go32_pde): Likewise.
9985 (go32_pte): Likewise.
9986 (go32_pte_for_address): Likewise.
9987 * infcmd.c: Include cli/cli-utils.h.
9988 (registers_info): Use skip_spaces.
9989 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9990 (linux_info_proc): Likewise.
9991 * linux-thread-db.c: Include cli/cli-utils.h.
9992 (info_auto_load_libthread_db): Use skip_spaces_const.
9993 * m32r-rom.c: Include cli/cli-utils.h.
9994 (m32r_upload_command): Use skip_spaces.
9995 * maint.c: Include cli/cli-utils.h.
9996 (maintenance_translate_address): Use skip_spaces.
9997 * mi/mi-parse.c: Include cli/cli-utils.h.
9998 (mi_parse_argv): Use skip_spaces.
9999 (mi_parse): Likewise.
10000 * minsyms.c: Include cli/cli-utils.h.
10001 (msymbol_hash_iw): Use skip_spaces_const.
10002 * objc-lang.c: Include cli/cli-utils.h.
10003 (parse_selector): Use skip_spaces.
10004 (parse_method): Likewise.
10005 * python/python.c: Include cli/cli-utils.h.
10006 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10007 (python_command)[HAVE_PYTHON]: Likewise.
10008 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10009 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10010 (m32r_load): Use skip_spaces.
10011 * serial.c: Include cli/cli-utils.h.
10012 (serial_open): Use skip_spaces_const.
10013 * stack.c: Include cli/cli-utils.h.
10014 (parse_frame_specification_1): Use skip_spaces_const.
10015 * symfile.c: Include cli/cli-utils.h.
10016 (set_ext_lang_command): Use skip_spaces.
10017 * symtab.c: Include cli/cli-utils.h.
10018 (rbreak_command): Use skip_spaces.
10019 * thread.c (thread_name_command): Use skip_spaces.
10020 * tracepoint.c (validate_actionline): Use skip_spaces.
10021 (encode_actions_1): Likewise.
10022 (trace_find_range_command): Likewise.
10023 (trace_find_outside_command): Likewise.
10024 (trace_dump_actions): Likewise.
10025
ac91cd70
PA
100262013-03-07 Pedro Alves <palves@redhat.com>
10027
10028 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10029 * expprint.c (print_subexp_standard): Likewise.
10030 * utils.c (host_char_to_target): Likewise.
10031 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10032 * varobj.c (value_get_print_value): Change type of local to char*.
10033 Cast it gdb_byte * in call to language printer.
10034
2898e560
PA
100352013-03-07 Pedro Alves <palves@redhat.com>
10036
10037 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10038 gdb_byte *'.
10039 (make_wchar_iterator): Remove cast to char*.
10040 (wchar_iterate): Change type of local.
10041
a09b4448
PA
100422013-03-07 Pedro Alves <palves@redhat.com>
10043
10044 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10045 for 'regcache->register_status'.
10046
20ced3e4
PA
100472013-03-07 Pedro Alves <palves@redhat.com>
10048
c2d6a675 10049 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10050 int.
10051
fe106009
PA
100522013-03-07 Pedro Alves <palves@redhat.com>
10053
10054 * stap-probe.c (handle_stap_probe): Add cast to char*.
10055
8ac2c12b
PA
100562013-03-07 Pedro Alves <palves@redhat.com>
10057
10058 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10059 RECORD_MSGRCV>: Pass a signed variable to
10060 regcache_raw_read_signed, instead of an unsigned one.
10061
99f0a309
PA
100622013-03-07 Pedro Alves <palves@redhat.com>
10063
10064 * remote-notif.c (notif_debug): Change type to int.
10065 * remote-notif.h (notif_debug): Likewise.
10066
964b8317
PA
100672013-03-07 Pedro Alves <palves@redhat.com>
10068
10069 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10070
f0cc8ad4
PA
100712013-03-07 Pedro Alves <palves@redhat.com>
10072
10073 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10074 * remote.h (hex2bin, bin2hex): ... here.
10075 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10076
77dec115
EZ
100772013-03-07 Eli Zaretskii <eliz@gnu.org>
10078
10079 * utils.c (initialize_utils): Improve doc strings of "set/show
10080 width", "set/show height", and "set/show pagination".
10081
741d92cf
KS
100822013-03-06 Keith Seitz <keiths@redhat.com>
10083
10084 * ax-gdb.c (gen_printf): Make FORMAT const.
10085 * ax-gdb.h (gen_printf): Likewise.
10086 * ax-general.c (ax_string): Make STR const.
10087 * ax.h (ax_string): Likewise.
10088
7b6c814e
DE
100892013-03-06 Doug Evans <dje@google.com>
10090
10091 * elfread.c (elf_symfile_read): Move debugging printf to more
10092 logical location.
10093
634334ab
PA
100942013-03-06 Pedro Alves <palves@redhat.com>
10095
10096 * python/py-utils.c (target_string_to_unicode): Delete function.
10097 * python/python-internal.h (target_string_to_unicode): Delete
10098 declaration.
10099
e482a1a7
PM
101002013-03-06 Pierre Muller <muller@sourceware.org>
10101
10102 * linespec.c (get_current_search_block): ARI fix, use (void)
10103 for empty parameter list.
10104
4eeaa230
DE
101052013-03-05 Doug Evans <dje@google.com>
10106
10107 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10108 of old ada_lookup_symbol_list. In !full_search case, don't
10109 search superblocks.
10110 (ada_lookup_symbol_list): Delete arg full_search, all callers
10111 updated. Call ada_lookup_symbol_list_worker.
10112 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10113 * ada-lang.h (ada_lookup_symbol_list): Update.
10114 * language.h (language_defn): Update comment for
10115 la_iterate_over_symbols.
10116 * linespec.c (iterate_over_file_blocks): New function.
10117 (iterate_over_all_matching_symtabs): Call it.
10118 (lookup_prefix_sym): Ditto.
10119 (get_current_search_block): New function.
10120 (get_search_block): Delete.
10121 (find_label_symbols): Call get_current_search_block.
10122 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10123 * symtab.c (iterate_over_symbols): Don't search superblocks.
10124
b69b1fb1
YQ
101252013-03-05 Yao Qi <yao@codesourcery.com>
10126
10127 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10128 parameter VAR's type from "unsigned int" to "int".
10129 * command.h (var_zuinteger_unlimited): Update its comments.
10130 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10131
3c095f49
CV
101322013-03-05 Corinna Vinschen <vinschen@redhat.de>
10133
10134 * NEWS: Mention new target x86_64-*-cygwin*.
10135
b5b0b0af
CV
101362013-03-05 Corinna Vinschen <vinschen@redhat.de>
10137
10138 * configure.host: Add x86_64-*-cygwin* as host.
10139 * configure.tgt: Add x86_64-*-cygwin* as target.
10140 * config/i386/cygwin64.mh: New file.
10141
f6f99966
JK
101422013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10143
10144 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10145
33f448b1
JK
101462013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10147
10148 * linespec.c (struct linespec_canonical_name): New.
10149 (struct linespec_state): Change canonical_names type to it.
10150 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10151 xrealloc element size. Initialize the different CANONICAL fields.
10152 (canonical_to_fullform): New.
10153 (filter_results): Use it. Add variables canonical, fullform and
10154 cleanup.
10155 (struct decode_line_2_item, decode_line_2_compare_items): New.
10156 (decode_line_2): Remove variables iter and item_names, add variables
10157 items and items_count. Modify the code for these new variables.
10158
feb14725
CV
101592013-03-04 Corinna Vinschen <vinschen@redhat.com>
10160
10161 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10162 calling do_cleanup.
10163
e83b17ba
HZ
101642013-03-04 Luis Machado <lgustavo@codesourcery.com>
10165
10166 * tracepoint.c (build_traceframe_info): Add code for byte order.
10167
a2d13a0d
KB
101682013-03-02 Kevin Buettner <kevinb@redhat.com>
10169
8dddcae8
KB
10170 * v850-tdep.c: (v850e2_register_name): Revise system register
10171 names to match current V850E2M architecture specifications.
10172 Update register number enum comments too.
f5aee5ee 10173
d79e58d8
JW
101742013-03-01 Jiong Wang <jiwang@tilera.com>
10175 Pedro Alves <palves@redhat.com>
10176
10177 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10178 to END_ADDR.
10179 (tilegx_skip_prologue): Limit prologue analysis to section end.
10180
c4be5165
JK
101812013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10182
10183 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10184 use it.
10185
e362b510
PA
101862013-03-01 Pedro Alves <palves@redhat.com>
10187
10188 Use gdb_byte for bytes from the program being debugged.
10189
10190 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10191 Change type of local 'buf' to gdb_byte.
10192 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10193 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10194 * cris-tdep.c (cris_sigcontext_addr)
10195 (cris_sigtramp_frame_unwind_cache): Likewise.
10196 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10197 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10198 Likewise.
10199 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10200 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10201 (hppa32_hpux_search_dummy_call_sequence)
10202 (hppa_hpux_supply_save_state): Likewise.
10203 * hppa-linux-tdep.c (insns_match_pattern)
10204 (hppa_linux_find_global_pointer): Likewise.
10205 * hppa-tdep.c (hppa_in_function_epilogue_p)
10206 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10207 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10208 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10209 (i386fbsd_collect_uthread): Likewise.
10210 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10211 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10212 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10213 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10214 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10215 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10216 (ia64_libunwind_frame_prev_register)
10217 (ia64_libunwind_sigtramp_frame_this_id)
10218 (ia64_find_global_pointer_from_dynamic_section)
10219 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10220 (ia64_unwind_pc): Likewise.
10221 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10222 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10223 (m68hc11_extract_return_value): Likewise.
10224 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10225 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10226 (mep_get_insn, mep_push_dummy_call): Likewise.
10227 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10228 (mips_linux_in_dynsym_stub): Likewise.
10229 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10230 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10231 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10232 to gdb_byte.
10233 * remote-mips.c (mips_set_register): Likewise.
10234 * remote-sim.c (gdbsim_fetch_register): Likewise.
10235 * score-tdep.c (score7_fetch_inst): Change type of parameter
10236 'memblock' and local 'buf' to gdb_byte.
10237 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10238 Change type of local 'buf' to gdb_byte. Adjust.
10239 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10240 to gdb_byte**.
10241 (score7_analyze_prologue): Change type of 'memblock' and
10242 'memblock_ptr' locals to gdb_byte*.
10243 * sh64-tdep.c (sh64_extract_return_value)
10244 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10245 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10246 * solib-pa64.c (pa64_solib_create_inferior_hook)
10247 (pa64_open_symbol_file_object): Remove local 'buf'.
10248 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10249 (som_open_symbol_file_object): Likewise.
10250 * solib-spu.c (spu_current_sos): Likewise.
10251 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10252 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10253 (spu_store_registers): Likewise.
10254 * target.c (debug_print_register): Likewise.
10255 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10256 * xstormy16-tdep.c (xstormy16_store_return_value)
10257 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10258 (xstormy16_find_jmp_table_entry): Likewise.
10259
75cc61ca 102602013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10261
10262 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10263 (tilegx_gdbarch_init): Install it.
10264
ddb08e9c
TT
102652013-02-28 Tom Tromey <tromey@redhat.com>
10266
10267 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10268 PyLong_Check.
10269
62d7fb51
DE
102702013-02-28 Doug Evans <dje@google.com>
10271
10272 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10273 * python/python.c (gdbpy_find_pc_line): Ditto.
10274
c4a9e8b4
TT
102752013-02-28 Tom Tromey <tromey@redhat.com>
10276
10277 * contrib/excheck.py: New file.
10278 * contrib/exsummary.py: New file.
10279 * contrib/gcc-with-excheck: New file.
10280
7f6a5dde
TT
102812013-02-28 Tom Tromey <tromey@redhat.com>
10282
10283 * python/python.c (gdbpy_print_stack): Call begin_line and
10284 fprintf_filtered inside TRY_CATCH.
10285
9e974e55
TT
102862013-02-28 Tom Tromey <tromey@redhat.com>
10287
10288 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10289 inside TRY_CATCH.
10290
dd5fa3e7
TT
102912013-02-28 Tom Tromey <tromey@redhat.com>
10292
10293 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10294 frame_object_to_frame_info inside TRY_CATCH.
10295
86a3263f
TT
102962013-02-28 Tom Tromey <tromey@redhat.com>
10297
10298 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10299 TRY_CATCH.
10300
81b52a3a
TT
103012013-02-28 Tom Tromey <tromey@redhat.com>
10302
10303 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10304
d50a0ce2
CV
103052013-02-27 Corinna Vinschen <vinschen@redhat.com>
10306
10307 * windows-nat.c: Throughout, fix format strings and casts of
10308 printf-like functions to avoid type related warnings on all
10309 platforms.
10310 (handle_output_debug_string): Fetch context information address
10311 from debug string using string_to_core_addr.
10312
e1f58301
JW
103132013-02-27 Jiong Wang <jiwang@tilera.com>
10314
10315 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10316 * regformats/reg-tilegx32.dat: New.
10317
4fcd89fc
JW
103182013-02-27 Jiong Wang <jiwang@tilera.com>
10319
10320 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10321
748d24e6
JW
103222013-02-27 Jiong Wang <jiwang@tilera.com>
10323
10324 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10325
6c8e944d
YQ
103262013-02-27 Yao Qi <yao@codesourcery.com>
10327 Pedro Alves <palves@redhat.com>
10328
10329 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10330 pc/tp/range/outside, look for the next trace frame instead of
10331 always starting from frame 0.
6c8e944d 10332
acd7db30
AG
103332013-02-26 Anthony Green <green@moxielogic.com>
10334
10335 * configure.tgt: Add support for moxie-*-rtems* target.
10336
025e6dce
PA
103372013-02-25 Pedro Alves <palves@redhat.com>
10338
10339 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10340 warning text.
10341
ca9c94ef
MR
103422013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10343
10344 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10345 if $fp is used as the virtual frame pointer.
10346
24c274a1
AM
103472013-02-23 Alan Modra <amodra@gmail.com>
10348
10349 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10350 symbol size.
10351 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10352 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10353 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10354 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10355
bfada189
JK
103562013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10357
10358 Code cleanup.
10359 * elfread.c (build_id_bfd_get): Make the return type const.
10360 (build_id_verify): Make the check parameter const.
10361 (build_id_to_debug_filename): Make the build_id parameter and variable
10362 data const.
10363 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10364
c0355132
AM
103652013-02-21 Alan Modra <amodra@gmail.com>
10366
10367 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10368
9f44fbc0
SCR
103692013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10370
10371 Add a new method 'disassemble' to gdb.Architecture class.
10372 * python/py-arch.c (archpy_disassmble): Implementation of the
10373 new method gdb.Architecture.disassemble.
10374 (arch_object_methods): Add entry for the new method.
10375
b74ea3eb
JW
103762013-02-20 Jiong Wang <jiwang@tilera.com>
10377
10378 * MAINTAINERS (Write After Approval): Add myself to the list.
10379
61a672f1
PA
103802013-02-19 Pedro Alves <palves@redhat.com>
10381
10382 Garbage collect 'struct monitor_ops'::load_routine.
10383
10384 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10385 * monitor.c (monitor_load): No longer call
10386 current_monitor->load_routine.
10387 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10388 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10389 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10390
40e397df
PA
103912013-02-19 Pedro Alves <palves@redhat.com>
10392
10393 PR gdb/15161
10394
10395 Harmonize with generic_load.
10396
10397 * monitor.c: Include "readline/readline.h".
10398 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10399 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10400 long/strtol for the 'load_offset' local. Error out if no argument
10401 is given or if too many arguments are given. Tilde expand the
10402 passed in file name.
10403
f698ca8e
KT
104042013-02-19 Kai Tietz <ktietz@redhat.com>
10405
10406 PR gdb/15161
10407 * symfile.c (load_section_data): Change type of load_offset
10408 to CORE_ADDR.
10409 (generic_load): User strtoulst instead of strtoul for conversion
10410 of load_offset.
10411
3361b059
WL
104122013-02-19 Jiong Wang <jiwang@tilera.com>
10413
10414 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10415 for return address, "lr" register, saved on stack.
10416 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10417 after we invoke tilegx_analyze_prologue.
10418
3e9d5130
WL
104192013-02-19 Jiong Wang <jiwang@tilera.com>
10420
bb1bcd86
WL
10421 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10422
3361b059 104232013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10424
b74ea3eb 10425 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10426
4aaf2503
WL
104272013-02-19 Jiong Wang <jiwang@tilera.com>
10428
b74ea3eb 10429 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10430 (tilegx_write_pc): New function.
10431 (tilegx_cannot_reference_register): Return zero if REGNO
10432 is TILEGX_FAULTNUM_REGNUM.
10433 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10434 (tilegx_register_name): Add handling of "faultnum" register.
10435 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10436 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10437 handling of TILEGX_FAULTNUM_REGNUM.
10438 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10439
bc23a956
WL
104402013-02-19 Jiong Wang <jiwang@tilera.com>
10441
10442 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10443 should be aligned to 64bit.
bc23a956 10444
42f45f1a
KT
104452013-02-19 Kai Tietz <ktietz@redhat.com>
10446
10447 * windows-nat.c (windows_xfer_memory): Fix debug-output
10448 for LLP64.
10449
6ce4c112
LL
104502013-02-19 Lei Liu <lei.liu2@windriver.com>
10451
10452 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10453 Don't check DSP register number if HAVE_DSP is not set.
10454
30e8ee25
AM
104552013-02-19 Alan Modra <amodra@gmail.com>
10456
10457 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10458 throughout file instead.
10459 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10460 Don't xmalloc return value.
10461 (build_id_verify): Similarly. Don't xfree.
10462 (build_id_to_debug_filename): Update.
10463 (find_separate_debug_file_by_buildid): Update, don't xfree.
10464
4c9ad8c2
TT
104652013-02-18 Tom Tromey <tromey@redhat.com>
10466
10467 PR gdb/15102:
10468 * dwarf2read.c (read_subrange_type): Use result of
10469 'check_typedef'.
10470
983dc440
YQ
104712013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10472
10473 * frame.c: Remove one extra white space after #include
10474 directive.
10475
7fb2b84a
JK
104762013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10477
10478 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10479
edceb2a9
JK
104802013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10481
10482 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10483 and dir commands into an if block.
10484
e81b7af8
TT
104852013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10486
10487 * python/py-breakpoint (struct pybp_code): Use int instead of
10488 enum type_code.
10489
f5911ea1
HAQ
104902013-02-15 Pedro Alves <pedro@codesourcery.com>
10491 Hafiz Abid Qadeer <abidh@codesourcery.com>
10492
10493 * NEWS: Mention new field "trace-file".
10494 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10495 (tfile_open): Record the trace file's filename in the trace
10496 status.
10497 (tfile_files_info): Mention the name of the trace file.
10498 Check the "filename" field explicitely.
10499 (trace_status_command): Explicitely check "filename" field.
10500 (trace_find_command): Ditto.
10501 (trace_find_pc_command): Ditto.
10502 (trace_find_tracepoint_command): Ditto.
10503 (trace_find_line_command): Ditto.
10504 (trace_find_range_command): Ditto.
10505 (trace_find_outside_command): Ditto.
10506 * tracepoint.h (struct trace_status) <from_file>: Rename it
10507 to "filename" and make it hold the trace file's filename
10508 instead of a boolean.
10509 * remote.c (remote_get_trace_status): Initialize "filename"
10510 field with NULL instead of 0.
10511
796cb314
YQ
105122013-02-15 Yao Qi <yao@codesourcery.com>
10513
10514 * remote.c: Fix a typo.
10515
42e79b1d
PM
105162013-02-14 Pierre Muller <muller@sourceware.org>
10517
10518 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10519
baea0dae
PA
105202013-02-14 Pedro Alves <palves@redhat.com>
10521
10522 * utils.c (savestring): Don't #undef it. Move function to
10523 common/common-utils.c.
10524 * common/common-utils.c: Include gdb_string.h.
10525 (savestring): Move here from utils.c.
10526 * common/common-utils.h (savestring): Declare.
10527
57c3b6ed
PA
105282013-02-14 Pedro Alves <palves@redhat.com>
10529
10530 * utils.c (savestring): Rename parameter 'size' to 'len'.
10531
d6c44983
YZ
105322013-02-14 Pedro Alves <palves@redhat.com>
10533 Yufeng Zhang <yufeng.zhang@arm.com>
10534
10535 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10536 (aarch64_inferior_data, struct aarch64_inferior_data):
10537 Delete.
10538 (struct aarch64_process_info): New.
10539 (aarch64_process_list): New global.
10540 (aarch64_find_process_pid, aarch64_add_process)
10541 (aarch64_process_info_get): New functions.
10542 (aarch64_inferior_data_get): Delete.
10543 (aarch64_process_info_get): New function.
10544 (aarch64_forget_process): New function.
10545 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10546 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10547 aarch64_get_debug_reg_state.
10548 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10549 instead of linux_nat_iterate_watchpoint_lwps.
10550 (aarch64_linux_new_fork): New function.
10551 (aarch64_linux_child_post_startup_inferior): Use
10552 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10553 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10554 (aarch64_linux_remove_hw_breakpoint)
10555 (aarch64_handle_aligned_watchpoint)
10556 (aarch64_handle_unaligned_watchpoint)
10557 (aarch64_linux_insert_watchpoint)
10558 (aarch64_linux_remove_watchpoint)
10559 (aarch64_linux_stopped_data_address): Adjust to pass the current
10560 process id to aarch64_debug_reg_state.
10561 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10562 linux_nat_new_fork hook, and aarch64_forget_process as
10563 linux_nat_forget_process hook; remove the call to
10564 register_inferior_data_with_cleanup.
10565
4819b3f8
PA
105662013-02-14 Pedro Alves <palves@redhat.com>
10567
10568 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10569 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10570 lval_memory.
10571
1773c82c
HAQ
105722013-02-14 Pedro Alves <pedro@codesourcery.com>
10573 Hafiz Abid Qadeer <abidh@codesourcery.com>
10574
10575 * tracepoint.h (validate_trace_state_variable_name): Declare.
10576 * tracepoint.c (validate_trace_state_variable_name): New.
10577 (trace_variable_command): Parse the trace state variable's name
10578 without using parse_expression. Do several validations.
10579 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10580 trace state variable's name with parse_expression. Validate it.
10581
53778a97
YQ
105822013-02-14 Yao Qi <yao@codesourcery.com>
10583
10584 * infcmd.c (breakpoint_proceeded): Remove it.
10585
7b3ae3a6
YQ
105862013-02-14 Yao Qi <yao@codesourcery.com>
10587
10588 * tracepoint.c (end_actions_pseudocommand): Make it static.
10589 (while_stepping_pseudocommand): Likewise.
10590 * tracepoint.h (end_actions_pseudocommand): Remove the
10591 declaration.
10592 (while_stepping_pseudocommand): Likewise.
10593
64580925
YQ
105942013-02-14 Yao Qi <yao@codesourcery.com>
10595
10596 * cli/cli-decode.c (help_cmd): Remove the declaration of
10597 "cmdlist".
10598 (help_all): Likewise.
10599
26cb8b7c
PA
106002013-02-13 Pedro Alves <palves@redhat.com>
10601
10602 * amd64-linux-nat.c (update_debug_registers_callback):
10603 Update comment.
10604 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10605 iterate_over_lwps.
10606 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10607 i386_debug_reg_state.
10608 (amd64_linux_new_fork): New function.
10609 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10610 linux_nat_new_fork hook, and i386_forget_process as
10611 linux_nat_forget_process hook.
10612 * i386-linux-nat.c (update_debug_registers_callback):
10613 Update comment.
a8256ea1 10614 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10615 iterate_over_lwps.
10616 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10617 i386_debug_reg_state.
10618 (i386_linux_new_fork): New function.
10619 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10620 linux_nat_new_fork hook, and i386_forget_process as
10621 linux_nat_forget_process hook.
10622 * i386-nat.c (i386_init_dregs): Delete.
10623 (i386_inferior_data, struct i386_inferior_data):
10624 Delete.
10625 (struct i386_process_info): New.
10626 (i386_process_list): New global.
10627 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10628 New functions.
10629 (i386_inferior_data_get): Delete.
10630 (i386_process_info_get): New function.
10631 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10632 (i386_forget_process): New function.
10633 (i386_cleanup_dregs): Rewrite.
10634 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10635 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10636 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10637 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10638 to i386_debug_reg_state.
10639 (i386_use_watchpoints): Don't register inferior data.
10640 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10641 adjust comment.
10642 (i386_forget_process): Declare.
10643 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10644 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10645 New static globals.
10646 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10647 (add_initial_lwp): New, factored out from ...
10648 (add_lwp): ... this. Don't check the number of lwps before
10649 calling linux_nat_new_thread.
10650 (linux_nat_iterate_watchpoint_lwps): Delete.
10651 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10652 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10653 forks and vforks.
10654 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10655 initial lwp.
10656 (linux_nat_kill, linux_nat_mourn_inferior): Call
10657 linux_nat_forget_process.
10658 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10659 (linux_nat_forget_process): New functions.
10660 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10661 type.
10662 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10663 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10664 types.
10665 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10666 (linux_nat_forget_process): New declarations.
10667
10668 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10669 (amd64fbsd_mourn_inferior): New function.
10670 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10671 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10672
5befea72
MS
106732013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10674
55015247
YQ
10675 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10676 Adding _().
5befea72 10677
1d3ffd6b
MS
106782013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10679
10680 * aarch64-linux-nat.c (debug_reg_change_callback)
10681 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10682 %s and phex().
10683
6eb04473
MS
106842013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10685
10686 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10687 with LONGEST.
10688
a016fc87
HAQ
106892013-02-13 Pedro Alves <palves@redhat.com>
10690 Hafiz Abid Qadeer <abidh@codesourcery.com>
10691
10692 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10693
e234dfaf
TT
106942013-02-12 Tom Tromey <tromey@redhat.com>
10695
10696 PR symtab/11464:
10697 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10698 NAME return.
10699 (classify_inner_name): Remove 'first_name' argument, add
10700 'context'. Remove unused variable.
10701 (yylex): Explicitly maintain the context type. Exit loop earlier
10702 if NAME result is seen.
10703
0b1afbb3
PA
107042013-02-12 Pedro Alves <palves@redhat.com>
10705
10706 * amd64-darwin-tdep.c: Add (C) after Copyright.
10707 * cli/cli-cmds.h: Ditto.
10708 * cli/cli-decode.c: Ditto.
10709 * cli/cli-decode.h: Ditto.
10710 * cli/cli-dump.c: Ditto.
10711 * cli/cli-dump.h: Ditto.
10712 * cli/cli-interp.c: Ditto.
10713 * cli/cli-logging.c: Ditto.
10714 * cli/cli-script.c: Ditto.
10715 * cli/cli-script.h: Ditto.
10716 * cli/cli-setshow.c: Ditto.
10717 * cli/cli-setshow.h: Ditto.
10718 * cli/cli-utils.c: Ditto.
10719 * cli/cli-utils.h: Ditto.
10720 * config/alpha/nm-osf3.h: Ditto.
10721 * config/djgpp/djconfig.sh: Ditto.
10722 * config/i386/nm-fbsd.h: Ditto.
10723 * config/i386/nm-i386gnu.h: Ditto.
10724 * config/nm-linux.h: Ditto.
10725 * config/nm-nto.h: Ditto.
10726 * config/rs6000/nm-rs6000.h: Ditto.
10727 * config/sparc/nm-sol2.h: Ditto.
10728 * darwin-nat-info.c: Ditto.
10729 * dfp.c: Ditto.
10730 * dfp.h: Ditto.
10731 * gdb-demangle.h: Ditto.
10732 * i386-darwin-nat.c: Ditto.
10733 * i386-darwin-tdep.c: Ditto.
10734 * linux-fork.h: Ditto.
10735 * m32c-tdep.c: Ditto.
10736 * microblaze-linux-tdep.c: Ditto.
10737 * microblaze-rom.c: Ditto.
10738 * microblaze-tdep.c: Ditto.
10739 * microblaze-tdep.h: Ditto.
10740 * mips-linux-tdep.h: Ditto.
10741 * ppc-ravenscar-thread.c: Ditto.
10742 * ppc-ravenscar-thread.h: Ditto.
10743 * prologue-value.c: Ditto.
10744 * prologue-value.h: Ditto.
10745 * ravenscar-thread.c: Ditto.
10746 * ravenscar-thread.h: Ditto.
10747 * sparc-ravenscar-thread.c: Ditto.
10748 * sparc-ravenscar-thread.h: Ditto.
10749 * tilegx-linux-tdep.c: Ditto.
10750 * unwind_stop_reasons.def: Ditto.
10751 * windows-nat.h: Ditto.
10752 * xtensa-linux-tdep.c: Ditto.
10753 * xtensa-xtregs.c: Ditto.
10754 * regformats/regdat.sh: Ditto.
10755 * regformats/regdef.h: Ditto.
10756
6c01dd94
PA
107572013-02-12 Pedro Alves <palves@redhat.com>
10758
10759 * break-catch-sig.c: Update copyright years.
10760
b65a2bd9
SCR
107612013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10762
10763 Add support for a destructor for ui_out data and use it to
10764 provide a ui_out destructor.
10765 * ui-out.h: Declare the new ui_out destructor.
10766 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10767 * ui-out.c (default_data_destroy): Add a default data destructor
10768 which does nothing.
10769 (default_ui_out_impl): Set the new data_destroy field to
10770 default_data_destroy
10771 (uo_data_destroy): Local function which invokes the data
10772 destructor if present.
10773 (clear_table): Local function which clears the table data of a
10774 ui_out object.
10775 (ui_out_destroy): Public function which frees a ui_out object.
10776 (ui_out_table_end): Use the new clear_table function.
10777 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10778 NULL.
10779 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10780 to NULL.
10781
c2792f5a
DE
107822013-02-11 Doug Evans <dje@google.com>
10783
10784 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10785 (printf_decfloat): New function. Broken out from ui_printf.
10786 Remove unnecessary code to shift the entire format string down.
10787 (printf_pointer): New function.
10788 (ui_printf): Code to print C strings, wide C strings, decfloats,
10789 and pointers moved to separate functions.
10790
d9e98382
SDJ
107912013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10792
10793 * valops.c (value_assign): Handling bitfield offset in
10794 `lval_internalvar_component' case.
10795
4ff3ce77
DE
107962013-02-08 Doug Evans <dje@google.com>
10797
10798 * common/format.c (parse_format_string): Fix whitespace.
10799
901900c4
MGD
108002013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10801
10802 * stack.c (return_command): Work around uninitialized variable
10803 warning.
10804
b5dbc8d4
YZ
108052013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10806
10807 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10808 number of the registers from 36 to 34.
10809
51d66578
MS
108102013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10811
10812 * NEWS: Mention new AArch64 native and target support.
10813
176b1c95
MS
108142013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10815
10816 * MAINTAINERS (Write After Approval): Add myself.
10817
9d19df75
MS
108182013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10819 Marcus Shawcroft <marcus.shawcroft@arm.com>
10820 Nigel Stephens <nigel.stephens@arm.com>
10821 Yufeng Zhang <yufeng.zhang@arm.com>
10822
10823 * aarch64-linux-nat.c: New file.
10824 * config/aarch64/linux.mh: New file.
10825 * configure.host: Add AArch64.
10826 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10827
7e1e0340
DE
108282013-02-07 Doug Evans <dje@google.com>
10829
10830 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10831 disassemble command.
10832
45e25a36
MS
108332013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10834
10835 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10836 set_gdbarch_fetch_tls_load_module_address.
10837
bbfdfe1c
DM
108382013-02-06 David S. Miller <davem@davemloft.net>
10839
10840 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10841 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10842 * value.c (struct_return_convention): New function.
10843 (using_struct_return): Implement in terms of struct_return_convention.
10844 * value.h (struct_return_convention): Declare.
10845 * stack.c (return_command): Allow successful overriding of the return
10846 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10847
bc9abe4a
TT
108482013-02-06 Tom Tromey <tromey@redhat.com>
10849
10850 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10851 outside of TRY_CATCH.
10852
134a2066
YQ
108532013-02-06 Yao Qi <yao@codesourcery.com>
10854
10855 * mi/mi-interp.c: Include "tracepoint.h".
10856 (mi_tsv_modified): Declare.
10857 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10858 (mi_interpreter_init): Call observer_attach_tsv_modified.
10859 (mi_tsv_modified): New.
10860 (mi_tsv_created, mi_tsv_deleted): Update.
10861 * tracepoint.c (trace_variable_command): Call
10862 observer_notify_tsv_modified if the initial value of tsv is
10863 changed.
10864 (delete_trace_state_variable): Call
10865 observer_notify_tsv_deleted earlier.
10866 (trace_variable_command): Caller update.
10867 (create_tsv_from_upload): Likewise.
10868 * observer.sh: Declare "struct trace_state_variable".
10869
10870 * NEWS: Mention the new MI notification "=tsv-modified".
10871
59be2b6a
DE
108722013-02-05 Doug Evans <dje@google.com>
10873
10874 * completer.c (location_completer): Fix typo in comment.
10875
d30113d4
JK
108762013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10877
10878 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10879 ADDRESS sorted.
10880
14ac654f
MS
108812013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10882
10883 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10884 Refactor if statement to avoid trailing || operator.
10885
543bf33d
AT
108862013-02-05 Andreas Tobler <andreast@fgznet.ch>
10887
10888 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10889
dc18f110
AT
108902013-02-04 Andreas Tobler <andreast@fgznet.ch>
10891
10892 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10893 * configure.host: Add powerpc*-*-freebsd* target.
10894 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10895 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10896 * config/powerpc/fbsd.mh: New file.
10897
b3ac9c77
SDJ
108982013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10899 Denys Vlasenko <dvlasenk@redhat.com>
10900 Pedro Alves <palves@redhat.com>
10901
10902 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10903 (struct elf_internal_linux_prpsinfo): Forward declare.
10904 * gdbarch.h, gdbarch.c: Regenerate.
10905 * linux-tdep.c: Include `cli/cli-utils.h'.
10906 (linux_fill_prpsinfo): New function.
10907 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10908 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10909 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10910 depending on gdbarch pointer bitness.
10911 * ppc-linux-tdep.c: Include elf-bfd.h.
10912 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10913 on 32-bit.
10914
176eb98c
MS
109152013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10916 Marcus Shawcroft <marcus.shawcroft@arm.com>
10917 Nigel Stephens <nigel.stephens@arm.com>
10918 Yufeng Zhang <yufeng.zhang@arm.com>
10919
10920 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10921
cf0dbd6f
MS
109222013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10923 Marcus Shawcroft <marcus.shawcroft@arm.com>
10924 Nigel Stephens <nigel.stephens@arm.com>
10925 Yufeng Zhang <yufeng.zhang@arm.com>
10926
10927 * aarch64-newlib-tdep.c: New file.
10928 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10929 aarch64*-*-elf.
10930 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10931 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10932 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10933 * osabi.c (gdb_osabi_names): Add "Newlib".
10934
1ae3db19
MS
109352013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10936 Marcus Shawcroft <marcus.shawcroft@arm.com>
10937 Nigel Stephens <nigel.stephens@arm.com>
10938 Yufeng Zhang <yufeng.zhang@arm.com>
10939
10940 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10941 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10942 * aarch64-linux-tdep.c: New file.
10943 * aarch64-linux-tdep.h: New file.
10944 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10945 * configure.tgt: Add aarch64-none-linux-gnu.
10946
07b287a0
MS
109472013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10948 Marcus Shawcroft <marcus.shawcroft@arm.com>
10949 Nigel Stephens <nigel.stephens@arm.com>
10950 Yufeng Zhang <yufeng.zhang@arm.com>
10951
10952 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10953 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10954 (ALLDEPFILES): Add aarch64-tdep.c.
10955 * aarch64-tdep.c: New file.
10956 * aarch64-tdep.h: New file.
10957 * configure.tgt: Add AArch64.
10958 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10959 (aarch64-expedite): New definition.
10960 * features/aarch64-core.xml: New file.
10961 * features/aarch64-fpu.xml: New file.
10962 * features/aarch64-without-fpu.c: New file (generated).
10963 * features/aarch64-without-fpu.xml: New file.
10964 * features/aarch64.c: New file (generated).
10965 * features/aarch64.xml: New file.
10966 * regformats/aarch64-without-fpu.dat: New file (generated).
10967 * regformats/aarch64.dat: New file (generated).
10968
0f1b18ab
JK
109692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10970
10971 * contrib/expect-read1.c: New file.
10972 * contrib/expect-read1.sh: New file.
10973
233d95b5
JK
109742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10975
10976 * dwarf2read.c (file_file_name): New function with code from
10977 file_full_name.
10978 (file_full_name): Move most of the code to file_file_name.
10979 (macro_start_file): Rename variable full_name to file_name and use
10980 file_file_name for it. Add comp_dir parameter to new_macro_table.
10981 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10982 macro_source_file->filename access by macro_source_fullname call.
10983 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10984 caller.
10985 * macrotab.c (struct macro_table): New field comp_dir.
10986 (macro_include): New variables link_fullname and source_fullname.
10987 Replace any macro_source_file->filename access by macro_source_fullname
10988 call.
10989 (macro_lookup_inclusion): Remove the partial filenames checking code.
10990 (check_for_redefinition): New variables source_fullname and
10991 found_key_fullname. Replace any macro_source_file->filename access by
10992 macro_source_fullname call.
10993 (macro_undef): New variables source_fullname and key_fullname. Replace
10994 any macro_source_file->filename access by macro_source_fullname call.
10995 (macro_lookup_definition): New variables retval and source_fullname.
10996 Replace any macro_source_file->filename access by macro_source_fullname
10997 call.
10998 (foreach_macro): New variable key_fullname. Replace any
10999 macro_source_file->filename access by macro_source_fullname call.
11000 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11001 macro_source_file->filename access by macro_source_fullname call.
11002 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11003 (macro_source_fullname): New function.
11004 * macrotab.h (struct macro_source_file): Extent the filename field
11005 comment.
11006 (new_macro_table): New parameter comp_dir, add a comment for it.
11007 (macro_source_fullname): new declaration.
11008
da235a7c
JK
110092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11010
11011 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11012 this_real_name to outer block. Use it also for
11013 compare_filenames_for_search.
11014 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11015 with dw2_get_real_path for file_matcher, considering also
11016 BASENAMES_MAY_DIFFER.
11017 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11018
fbd9ab74
JK
110192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11020
11021 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11022 to the file_matcher parameter. Pass 0 to it.
11023 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11024 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11025 NULL psymtab_to_fullname result.
11026 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11027 an expected filename instead.
11028 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11029 file_matcher parameter. Call also psymtab_to_fullname, after newly
11030 considering BASENAMES_MAY_DIFFER.
11031 * source.c (rewrite_source_path): Remove static.
11032 * source.h (rewrite_source_path): New declaration.
11033 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11034 the expand_symtabs_matching field. Comment it.
11035 * symtab.c (file_matches): New function comment. Add parameter
11036 basenames, implement it.
11037 (search_symbols_file_matches): Add basenames parameter. Update the
11038 file_matches caller.
11039 (search_symbols): Match FILES also against symtab_to_fullname.
11040 Optimize it for BASENAMES_MAY_DIFFER.
11041
56d397a3
JK
110422013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11043
11044 * source.c (print_source_lines_base): Print for TUI also "fullname".
11045 * tui/tui-data.c (init_content_element): Change tui_locator_element
11046 field to full_name.
11047 * tui/tui-data.h (struct tui_locator_element): Likewise.
11048 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11049 tui_update_locator_filename calls to tui_update_locator_fullname.
11050 Replace symtab->filename refererence by symtab_to_fullname call.
11051 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11052 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11053 field to full_name. Replace symtab->filename refererence by
11054 symtab_to_fullname call.
11055 (tui_show_symtab_source): Rename parameter to fullname. Change
11056 tui_locator_element field to full_name.
11057 * tui/tui-stack.c: Include source.h.
11058 (tui_set_locator_filename): Rename the declaration to ...
11059 (tui_set_locator_fullname): ... here. Rename its parameter to
11060 fullname, updates its comment.
11061 (tui_set_locator_info): Rename its parameter to fullname.
11062 (tui_set_locator_filename): Rename the definition to ...
11063 (tui_set_locator_fullname): ... here. Rename its parameter to
11064 fullname, updates its comment. Change tui_locator_element field to
11065 full_name.
11066 (tui_set_locator_info): Rename its parameter to fullname.
11067 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11068 (tui_update_locator_filename): Rename to ...
11069 (tui_update_locator_fullname): ... here. Rename callee to
11070 tui_set_locator_fullname.
11071 (tui_show_frame_info): Replace symtab->filename refererence by
11072 symtab_to_fullname call.
11073 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11074 (tui_update_locator_fullname): ... here.
11075 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11076 tui_update_locator_fullname. Replace symtab->filename refererence by
11077 symtab_to_fullname call.
11078 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11079 Rename the callee to tui_update_locator_fullname.
11080 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11081
05cba821
JK
110822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11083
11084 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11085 by symtab_to_filename_for_display calls.
11086 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11087 (clear_command): New variable sal_fullname, initialize it. Replace
11088 compare_filenames_for_search by filename_cmp with sal_fullname.
11089 (say_where, update_static_tracepoint): Replace symtab->filename
11090 refererences by symtab_to_filename_for_display calls.
11091 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11092 Likewise.
11093 * dwarf2read.c: Include source.h.
11094 (fixup_go_packaging): Replace symtab->filename refererences by
11095 symtab_to_filename_for_display calls.
11096 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11097 Replace symtab->filename refererences by symtab_to_filename_for_display
11098 calls.
11099 (create_sals_line_offset, convert_linespec_to_sals): New variable
11100 fullname, initialize it, replace symtab->filename reference by the
11101 variable.
11102 * linux-fork.c: Include source.h.
11103 (info_checkpoints_command): Replace symtab->filename refererences by
11104 symtab_to_filename_for_display calls.
11105 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11106 by symtab_to_filename_for_display calls.
11107 * mdebugread.c: Include source.h.
11108 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11109 symtab_to_filename_for_display calls.
11110 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11111 (mi_cmd_file_list_exec_source_files): Likewise.
11112 * printcmd.c: Include source.h.
11113 (build_address_symbolic): Replace symtab->filename refererences by
11114 symtab_to_filename_for_display calls.
11115 * psymtab.c (partial_map_symtabs_matching_filename)
11116 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11117 with psymtab_to_fullname.
11118 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11119 by symtab_to_filename_for_display calls.
11120 (stpy_get_filename): New variable filename, initialize it, use instead
11121 of symtab->filename refererences.
11122 (salpy_str): Make variable filename const char *. Replace
11123 symtab->filename refererences by symtab_to_filename_for_display calls.
11124 * skip.c: Include source.h and filenames.h.
11125 (skip_file_command): Remove const from the symtab variable. Replace
11126 symtab->filename refererences by symtab_to_fullname call.
11127 (function_name_is_marked_for_skip): New variables searched_for_fullname
11128 and fullname. Use them to search also with symtab's fullname.
11129 * source.c (find_source_lines): Replace symtab->filename refererences
11130 by symtab_to_filename_for_display calls.
11131 (print_source_lines_base): New variable filename, use it instead of
11132 symtab->filename. Replace symtab->filename refererences by
11133 symtab_to_filename_for_display calls.
11134 (line_info, forward_search_command): Replace symtab->filename
11135 refererences by symtab_to_filename_for_display calls.
11136 (reverse_search_command): Replace symtab->filename refererences by
11137 symtab_to_filename_for_display calls. New variable filename for it.
11138 * stack.c (frame_info): Likewise.
11139 * symmisc.c: Include source.h.
11140 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11141 (maintenance_info_symtabs): Replace symtab->filename refererences by
11142 symtab_to_filename_for_display calls.
11143 * symtab.c (iterate_over_some_symtabs): Call
11144 compare_filenames_for_search also with symtab_to_fullname.
11145 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11146 symtab->filename refererences by symtab_to_filename_for_display calls.
11147 (find_line_symtab): Replace symtab->filename refererences by
11148 symtab_to_filename_for_display calls.
11149 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11150 (print_symbol_info): Make the last parameter const char *. New
11151 variable s_filename. Use it in the function.
11152 (symtab_symbol_info): Make the last_filename variable const char *.
11153 Replace symtab->filename refererences by symtab_to_filename_for_display
11154 calls.
11155 (rbreak_command): New variable fullname. Use it. Replace
11156 symtab->filename refererence by symtab_to_filename_for_display call.
11157 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11158 (print_one_static_tracepoint_marker): Replace symtab->filename
11159 refererences by symtab_to_filename_for_display calls.
11160 * tui/tui-source.c (tui_set_source_content): New variables filename and
11161 s_filename. Replace symtab->filename refererences by this variable.
11162 Replace other symtab->filename refererences by
11163 symtab_to_filename_for_display calls.
11164
1b56eb55
JK
111652013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11166 Jan Kratochvil <jan.kratochvil@redhat.com>
11167
11168 Add a new variable that controls a way in which filenames are
11169 displayed.
11170 * NEWS (set filename-display): New entry.
11171 * source.c (filename_display_basename, filename_display_relative)
11172 (filename_display_absolute, filename_display_kind_names)
11173 (filename_display_string, show_filename_display_string)
11174 (symtab_to_filename_for_display): New.
11175 (_initialize_source): Added initialization of 'filename-display'
11176 variable.
11177 * source.h (symtab_to_filename_for_display): Added declaration.
11178 * stack.c (print_frame): Added new variable and calling of a new
11179 function and condition with this variable. Changed third argument of
11180 calling of a function.
11181
aa079c93
JK
111822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11183
11184 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11185 Rename field reference filename to fullname.
11186 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11187 fullname. New comment for it.
11188 * tui/tui-source.c (tui_set_source_content): Rename field reference
11189 filename to fullname. Initialize field by symtab_to_fullname now.
11190 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11191 reference filename to fullname. Use symtab_to_fullname during
11192 comparison.
11193
652a8996
JK
111942013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11195
11196 Code cleanup.
11197 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11198 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11199 filename to fullname. Rename variable this_name to this_fullname.
11200 Lowercase FILENAME_CMP call.
11201 (dw2_find_symbol_file): New comment for the returned string.
11202 (dwarf2_gdb_index_functions): Rename the function to
11203 dw2_expand_symtabs_with_fullname.
11204 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11205 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11206 fullname.
11207 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11208 * symfile.h (struct quick_symbol_functions): Rename field
11209 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11210 parameter filename to fullname. Document returned string meaning for
11211 find_symbol_file.
11212 * symtab.c (find_line_symtab): Rename the called function to
11213 expand_symtabs_with_fullname.
11214
af529f8f
JK
112152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11216
11217 Code cleanup.
11218 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11219 call of filename_cmp with compare_filenames_for_search.
11220 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11221 is_abs, unify the call of FILENAME_CMP with
11222 compare_filenames_for_search. New gdb_asserts for real_path and name.
11223 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11224 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11225 * symfile.h (struct quick_symbol_functions): Extend the comment for
11226 map_symtabs_matching_filename.
11227 * symtab.c (compare_filenames_for_search): Remove the function comment
11228 relative path requirement. Handle absolute filenames, with a comment.
11229 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11230 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11231 real_path and name. Unify the call of compare_filenames_for_search
11232 with FILENAME_CMP.
11233 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11234
2f202fde
JK
112352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11236
11237 Code cleanup.
11238 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11239 source_file references by symtab field references. Remove variables
11240 sal and fullname.
11241 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11242 (clear_command, say_where): Replace bp_location field source_file
11243 references by symtab field references.
11244 (bp_location_dtor): Remove the source_file reference.
11245 (update_static_tracepoint): Replace bp_location field source_file
11246 references by symtab field references.
11247 (breakpoint_free_objfile): New function.
11248 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11249 Replace the field source_file by field symtab, extend its comment.
11250 (breakpoint_free_objfile): New declaration.
11251 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11252 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11253 field source_file references by symtab field references.
11254
f5b95b50
JK
112552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11256
11257 Replace xfullpath calls by gdb_realpath calls.
11258 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11259 function comment.
11260 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11261 Remove it from the iterate_over_some_symtabs call.
11262 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11263 Remove it from the dw2_map_expand_apply calls, remove a block handling
11264 it.
11265 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11266 Remove it from the iterate_over_some_symtabs call.
11267 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11268 Remove it from the partial_map_expand_apply calls, remove a block
11269 handling it. Drop gdb_realpath call and cleanups from the real_path
11270 handling.
11271 * source.c (openp): Drop the comment part about xfullpath. Replace
11272 xfullpath calls by gdb_realpath calls.
11273 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11274 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11275 from method map_symtabs_matching_filename and its comment.
11276 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11277 gdb_realpath call.
11278 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11279 remove it also from the function comment, remove a block handling it.
11280 Drop gdb_realpath call and cleanups from the real_path handling.
11281 (iterate_over_symtabs): Drop variable full_path and its use.
11282 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11283 * utils.c (xfullpath): Remove.
11284 * utils.h (xfullpath): Remove.
11285
d78489bf
AT
112862013-02-01 Andreas Tobler <andreast@fgznet.ch>
11287
11288 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11289 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11290 (ALLDEPFILES): Add ppc64-tdep.c.
11291 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11292 ppc64-tdep.o to gdb_target_obs.
11293 * ppc64-tdep.h: New file.
11294 * ppc64-tdep.c: New file.
11295 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11296 ppc-linux-tdep.c to here.
11297 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11298 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11299 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11300 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11301 from ppc-linux-tdep.c to here.
11302 (ppc64_convert_from_func_ptr_addr): Rename from
11303 ppc64_linux_convert_from_func_ptr_addr to
11304 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11305 here.
11306 * rs6000-tdep.c:
11307 (read_insn): Move from ppc-linux-tdep.c to here.
11308 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11309 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11310 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11311 Removed above functions.
11312 (ppc_linux_init_abi): Adjust.
11313
8db60374
AR
113142013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11315
11316 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11317
f2e5f4ce
AR
113182013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11319
11320 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11321
c1f7d745
PA
113222013-02-01 Pedro Alves <palves@redhat.com>
11323
11324 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11325 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11326
8a92335b
JK
113272013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11328
11329 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11330 files with no separate debug info.
11331 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11332 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11333 only for files with no separate debug info.
11334
8eacb197
TT
113352013-01-31 Tom Tromey <tromey@redhat.com>
11336
11337 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11338 change type.
11339 (struct jit_program_space_data): Rename from jit_inferior_data.
11340 Update comments.
11341 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11342 Change return type. Attach data to program space.
11343 (jit_program_space_data_cleanup): Rename from
11344 jit_inferior_data_cleanup; change argument type.
11345 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11346 change type.
11347 (jit_register_code): Update.
11348 (jit_update_inferior_cache): Remove.
11349 (jit_breakpoint_deleted): Get jit data from the location's program
11350 space.
11351 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11352 'ps_data', change type.
11353 (jit_inferior_init, jit_breakpoint_re_set_internal)
11354 (jit_event_handler): Update.
11355 (free_objfile_data): Get data from objfile's program space.
11356 (_initialize_jit): Update.
11357
f25c0135
TT
113582013-01-31 Tom Tromey <tromey@redhat.com>
11359
11360 PR gdb/13987:
11361 * jit.c (struct jit_inferior_data) <cached_code_address,
11362 jit_breakpoint>: New fields.
11363 (jit_breakpoint_re_set_internal): Fix logging. Only create
11364 breakpoint if cached address has changed.
11365 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11366 functions.
11367 (_initialize_jit): Register breakpoint deleted observer.
11368
974a734b
AR
113692013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11370
11371 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11372 (save_infcall_suspend_state): Ifdef out unused inf.
11373 (restore_infcall_suspend_state): Ifdef out unused inf.
11374 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11375 (jit_frame_sniffer): Remove unused inf_data.
11376
df54f8eb
AR
113772013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11378
11379 * c-exp.y (classify_inner_name): Remove unused type.
11380 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11381 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11382 need_escape.
11383 (c_get_string): Remove unused kind.
11384 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11385
5799c0b9
AR
113862013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11387
11388 * charset.c (intermediate_encoding): Remove unused i.
11389 * completer.c (signal_completer): Remove unused i.
11390 * continuations.c (discard_my_continuations_1): Remove unused
11391 continuation_ptr.
11392 * corelow.c (core_close): Remove unuseD name.
11393 (get_core_siginfo): Remove unused pid.
11394 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11395 i, cps.
11396 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11397 (loclist_describe_location): Remove unused first.
11398 * event-top.c (command_line_handler): Remove unused got_eof.
11399 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11400 (resize_section_table): Remove unused old_value.
11401 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11402 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11403 * i386-tdep.c (i386_process_record): Remove unused rex.
11404 * infcmd.c (get_return_value): Remove unused uiout.
11405 * jv-lang.c (type_from_class): Remove unused is_array.
11406 * jv-valprint.c (java_val_print): Remove unused i.
11407 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11408 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11409 * m2-typeprint.c (m2_print_type): Remove unused code.
11410 * macroexp.c (get_character_constant): Remove unused body_start.
11411 (macro_stringify): Remove unused result.
11412 * objc-lang.c (find_methods): Remove unused gdbarch.
11413 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11414 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11415 * stack.c (print_frame_args): Remove unused summary.
11416 * thread.c (thread_apply_command): Remove unused p.
11417 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11418 * valops.c (search_struct_method): Remove unused skip.
11419 * valprint.c (generic_val_print): Remove unused byte_order.
11420 * varobj.c (varobj_update): Remove unused changed.
11421 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11422 (alias_command): Remove unused c.
11423 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11424 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11425 format.
11426 (mi_cmd_data_write_memory): Remove unused word_format.
11427 (mi_cmd_data_write_memory_bytes): Remove unused r.
11428 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11429 p_start, p_end.
11430 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11431 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11432 line_width.
11433
c656bca5
AR
114342013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11435
11436 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11437 * symtab.c (iterate_over_symtabs): Remove unused s.
11438 (find_pc_sect_symtab): Remove unused pspAce.
11439 (find_pc_sect_line): Remove unused alt_symtab.
11440 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11441 (completion_list_add_name): Remove unused newsize.
11442
7078baeb
TT
114432013-01-31 Tom Tromey <tromey@redhat.com>
11444
11445 PR c++/14998:
11446 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11447 TYPE_CODE_FUNC.
11448
c2e8b827
AR
114492013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11450
11451 * target.c (target_read_string): Remove unused origlen.
11452
0e43993a
AR
114532013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11454
11455 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11456 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11457 * ax-general.c (ax_print): Remove unused is_float.
11458 * blockframe.c (block_innermost_frame): Remove unused start, end.
11459 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11460
765a97ab
AR
114612013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11462
11463 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11464 (svr4_read_so_list): Remove unused lmo.
11465 * solib-target.c (solib_target_relocate_section_addresses): Remove
11466 unused flags.
11467
a99dad3d
TT
114682013-01-30 Tom Tromey <tromey@redhat.com>
11469
11470 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11471
3bff1ecd
TT
114722013-01-30 Tom Tromey <tromey@redhat.com>
11473
11474 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11475 * utils.c (gnu_debuglink_crc32): Remove.
11476 * utils.h (gnu_debuglink_crc32): Don't declare.
11477
7d455152
TT
114782013-01-30 Tom Tromey <tromey@redhat.com>
11479
11480 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11481 (read_structure_type, read_enumeration_type): Remove cast.
11482
abee88f2
TT
114832013-01-30 Tom Tromey <tromey@redhat.com>
11484
11485 * dwarf2read.c (read_namespace_type): Remove cast.
11486 (read_typedef): Likewise.
11487
8d9878a4
TT
114882013-01-29 Tom Tromey <tromey@redhat.com>
11489
11490 * dwarf2read.c (free_dwo_file): Remove assert.
11491
a543d2a9
TT
114922013-01-29 Tom Tromey <tromey@redhat.com>
11493
11494 * value.c (deprecated_set_value_modifiable): Remove.
11495 * value.h (deprecated_set_value_modifiable): Remove.
11496
bed911e5
DE
114972013-01-28 Doug Evans <dje@google.com>
11498
11499 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11500 to addresses from dwo files.
11501
28c64fc2
SCR
115022013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11503
11504 * valops.c (find_overload_match): Remove unused argument 'lax'.
11505 * value.h: Remove unused argument 'lax' from the declaration of
11506 find_overload_match.
11507 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11508 to find_overload_match.
11509 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11510 argument to find_overload_match.
11511
4d4ec4e5
TT
115122013-01-25 Tom Tromey <tromey@redhat.com>
11513
11514 * dwarf2read.c (processing_has_namespace_info): Remove.
11515 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11516 (process_die, read_func_scope, dwarf2_start_symtab)
11517 (new_symbol_full): Update.
11518
195a3f6c
TT
115192013-01-25 Tom Tromey <tromey@redhat.com>
11520
11521 * cp-namespace.c (cp_set_block_scope): Remove.
11522 * cp-support.h (cp_set_block_scope): Remove.
11523 * dbxread.c: Include block.h.
11524 (cp_set_block_scope): New function.
11525 (process_one_symbol): Update.
11526 * dwarf2read.c (read_func_scope): Use block_set_scope.
11527
8ba0730a
PA
115282013-01-25 Pedro Alves <palves@redhat.com>
11529
11530 * remote.c (add_current_inferior_and_thread): Tweak comment.
11531
12aaed36
TT
115322013-01-25 Tom Tromey <tromey@redhat.com>
11533
11534 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11535 (cp_add_using_directive): Add 'copy_names' argument.
11536 * cp-support.h (cp_add_using_directive): Update.
11537 (struct using_direct) <import_src, import_dest, alias,
11538 declaration>: Now const.
11539 * dwarf2read.c (read_import_statement): Use obconcat.
11540 Don't copy names passed to cp_add_using_directive.
11541
7fc75ca7
TT
115422013-01-25 Tom Tromey <tromey@redhat.com>
11543
11544 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11545
3405876a
PA
115462013-01-25 Pedro Alves <palves@redhat.com>
11547
11548 * remote.c (stop_reply_extract_thread): New.
11549 (add_current_inferior_and_thread): New parameter 'wait_status'.
11550 Handle it.
11551 (remote_start_remote): Pass wait status to
11552 add_current_inferior_and_thread.
11553 (extended_remote_run): Update comment.
11554 (extended_remote_create_inferior_1): Pass wait status to
11555 add_current_inferior_and_thread.
11556
8954db33
AB
115572013-01-25 Andrew Burgess <aburgess@broadcom.com>
11558 Ulrich Weigand <uweigand@de.ibm.com>
11559
11560 * valarith.c (value_vector_widen): New function for replicating a
11561 scalar into a vector.
11562 (value_binop): Use value_vector_widen to widen scalar to vector
11563 rather than casting, this better matches gcc C behaviour.
11564 * valops.c (value_casst): Update logic for casting between vector
11565 types, and for casting from scalar to vector, try to match gcc C
11566 behaviour.
11567 * value.h (value_vector_widen): Declare.
11568 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11569 function, handle special case for casting scalar to vector.
11570 (opencl_relop): Use opencl_value_cast.
11571 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11572 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11573 in order to use opencl_value_cast.
11574
843b20dc
YQ
115752013-01-25 Yao Qi <yao@codesourcery.com>
11576
11577 * event-loop.c: Include "queue.h".
11578 (gdb_event_p): New typedef.
11579 (DECLARE_QUEUE_P): Use.
11580 (DEFINE_QUEUE_P): Use.
11581 (async_queue_event): Remove.
11582 (gdb_event_xfree): New.
11583 (initialize_event_loop): New.
11584 (process_event): Use QUEUE macros.
11585 (event_queue): Remove.
11586 (gdb_wait_for_event): Caller update.
11587 (check_async_event_handlers): Likewise.
11588 (poll_timers): Likewise.
11589 * event-loop.h (initialize_event_loop): Declare.
11590 * event-loop.c (gdb_event_xfree): New.
11591 * top.c (gdb_init): Call initialize_event_loop.
11592
20ad8856
YQ
115932013-01-25 Yao Qi <yao@codesourcery.com>
11594
11595 * event-loop.c (async_queue_event): Remove one parameter
11596 'position'. Remove code handling 'position' == TAIL.
11597 (gdb_wait_for_event): Caller update.
11598 (check_async_event_handlers): Caller update.
11599 (poll_timers): Caller update.
11600 * event-loop.h (enum queue_position): Remove.
11601
3bbbe775
MK
116022013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11603
11604 * MAINTAINERS: Update my email.
11605
a87d9ac4
YQ
116062013-01-25 Yao Qi <yao@codesourcery.com>
11607
11608 * main.c (print_gdb_help): Remove "--epoch" from the help
11609 message.
11610
2077afdd
TD
116112013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11612
11613 * symtab.c (skip_prologue_using_sal): Consider a file
11614 change the same as an increased line number
11615
63da4037
TD
116162013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11617
30e8ee25 11618 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11619
45e6c716
TT
116202013-01-24 Tom Tromey <tromey@redhat.com>
11621
11622 * ada-lang.h (ada_decode_symbol): Make return type const.
11623 * ada-lang.c (ada_decode_symbol): Likewise.
11624
b1ae631a
DE
116252013-01-23 Doug Evans <dje@google.com>
11626
11627 * linespec.c (find_linespec_symbols): Make static.
11628
55a78401
SDJ
116292013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11630
11631 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11632 type on float conversion for complex type.
11633
bea883fd
SCR
116342013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11635
11636 Add a new class gdb.Architecture which exposes GDB's
11637 internal representation of architecture via GDB Python API.
11638 * Makefile.in: Add entries corresponding to the new file
11639 python/py-arch.c.
11640 * NEWS (Python Scripting): Add entries for the new class
11641 gdb.Architecture and the new method gdb.Frame.architecture.
11642 * python/py-arch.c: Implement gdb.Architecture class.
11643 * python/py-frame.c (frapy_arch): Implement the method
11644 gdb.Frame.architecture().
11645 (frame_object_methods): Add 'architecture' to the method table.
11646 * python/python-internal.h: Add declarations of new utility
11647 functions.
11648 * python/python.c (_initialize_python): Initialize
11649 gdb.Architecture class.
11650
796a7ff8
DE
116512013-01-23 Doug Evans <dje@google.com>
11652
11653 Work around binutils/15021.
11654 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11655 type_unit_group out of union s. All uses updated.
11656 (read_index_from_section): Watch for index version 8.
11657 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11658 an imported symtab.
11659 (write_psymtabs_to_index): Increment version number to 8.
11660
0928e93d
PA
116612013-01-22 Pedro Alves <palves@redhat.com>
11662
11663 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11664 user-visible.
11665
9c97429f
PA
116662013-01-22 Pedro Alves <palves@redhat.com>
11667
11668 * annotate.c (annotate_breakpoints_changed): Rename to ...
11669 (annotate_breakpoints_invalid): ... this. Make static.
11670 (breakpoint_changed): Adjust.
11671 (_initialize_annotate): Always install the observers. Install a
11672 "breakpoint_created" observer.
11673 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11674 * breakpoint.c (set_breakpoint_condition)
11675 (breakpoint_set_commands, do_map_commands_command)
11676 (init_raw_breakpoint, clear_command, set_ignore_count)
11677 (enable_breakpoint_disp): No longer call
11678 annotate_breakpoints_changed.
11679
bd00c694
PA
116802013-01-22 Pedro Alves <palves@redhat.com>
11681
11682 * annotate.c: Include "inferior.h".
11683 (frames_invalid_emitted)
11684 (breakpoints_invalid_emitted): New globals.
11685 (async_background_execution_p): New function.
11686 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11687 emitting the annotation if it has already been emitted.
11688 (annotate_display_prompt): New function.
11689 * annotate.h (annotate_display_prompt): New declaration.
11690 * event-top.c: Include annotate.h.
11691 (display_gdb_prompt): Call annotate_display_prompt.
11692
187d10dd
PA
116932013-01-22 Pedro Alves <palves@redhat.com>
11694
11695 * annotate.c (ignore_count_changed): Delete.
11696 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11697 (annotate_ignore_count_change): Delete.
11698 (annotate_stopped): Don't emit a delayed breakpoints-changed
11699 annotation.
11700 * annotate.h (annotate_ignore_count_change): Delete.
11701 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11702 annotate_ignore_count_change.
11703
d84cf7eb
TT
117042013-01-22 Tom Tromey <tromey@redhat.com>
11705
11706 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11707 require_rvalue for a register location.
11708
8f1d5693
MK
117092013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11710
11711 * breakpoint.c (print_one_breakpoint_location): Add MI
11712 field 'thread-groups' when printing a breakpoint.
11713 (output_thread_groups): New function.
11714
aa6199c6
SCR
117152013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11716
11717 * python/lib/gdb/commands/explore.py
11718 (CompoundExplorer.explore_expr): Correct the name of a method
11719 being invoked.
11720 (ExploreTypeCommand.invoke): Add a missing 'return'.
11721
d2afef13
TT
117222013-01-21 Tom Tromey <tromey@redhat.com>
11723
11724 * gdb_obstack.h (obconcat): Move declaration here, from...
11725 * symfile.h (obconcat): ... here.
11726 * gdb_obstack.c: New file.
11727 (obconcat): Move from...
11728 * symfile.c (obconcat): ... here.
11729 * Makefile.in (SFILES): Add gdb_obstack.c.
11730 (COMMON_OBS): Add gdb_obstack.o.
11731
10f0c4bb
TT
117322013-01-21 Tom Tromey <tromey@redhat.com>
11733
11734 * symfile.h (obsavestring): Don't declare.
11735 * symfile.c (obsavestring): Remove.
11736 * ada-exp.y: Use obstack_copy0, not obsavestring.
11737 * ada-lang.c: Use obstack_copy0, not obsavestring.
11738 * coffread.c: Use obstack_copy0, not obsavestring.
11739 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11740 * dbxread.c: Use obstack_copy0, not obsavestring.
11741 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11742 * jit.c: Use obstack_copy0, not obsavestring.
11743 * mdebugread.c: Use obstack_copy0, not obsavestring.
11744 * psymtab.c: Use obstack_copy0, not obsavestring.
11745 * stabsread.c: Use obstack_copy0, not obsavestring.
11746 * xcoffread.c: Use obstack_copy0, not obsavestring.
11747
86f62fd7
TT
117482013-01-21 Tom Tromey <tromey@redhat.com>
11749
11750 * dwarf2read.c (fixup_go_packaging): Save package name
11751 on objfile obstack.
11752 * gdbtypes.c (init_type): Don't copy name.
11753
15d034d0
TT
117542013-01-21 Tom Tromey <tromey@redhat.com>
11755
11756 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11757 const.
11758 (struct attribute) <u.str>: Now const.
11759 (struct fnfieldlist) <name>: Now const.
11760 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11761 (partial_die_parent_scope): Make return type const.
11762 (partial_die_full_name, add_partial_symbol): Update.
11763 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11764 'name' const.
11765 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11766 (read_file_scope, read_func_scope, dwarf2_add_field)
11767 (dwarf2_add_member_fn, read_structure_type)
11768 (process_enumeration_scope, read_array_type, read_module_type)
11769 (read_base_type, read_subrange_type): Update.
11770 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11771 (new_symbol_full, guess_full_die_structure_name): Update.
11772 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11773 (dwarf2_name): Return const type.
11774 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11775 const.
11776
748e18ae
TT
117772013-01-21 Tom Tromey <tromey@redhat.com>
11778
11779 * gdbtypes.c (init_type): Make 'name' const.
11780 * gdbtypes.h (init_type): Update.
11781
46212e0b
TT
117822013-01-21 Tom Tromey <tromey@redhat.com>
11783
11784 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11785 (start_symtab): Make 'name' and 'dirname' const. Use
11786 set_last_source_file.
11787 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11788 (last_source_file): Define. Now static.
11789 (set_last_source_file, get_last_source_file): New functions.
11790 * buildsym.h (last_source_file): Don't declare.
11791 (start_symtab): Update.
11792 (set_last_source_file, get_last_source_file): Declare.
11793 * coffread.c (complete_symtab): Use set_last_source_file.
11794 (coff_end_symtab): Likewise.
11795 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11796 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11797 set_last_source_file.
11798 (process_one_symbol): Use get_last_source_file.
11799 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11800 (psymtab_to_symtab_1): Use get_last_source_file.
11801 * xcoffread.c (process_linenos): Use get_last_source_file.
11802 (complete_symtab): Use set_last_source_file.
11803 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11804 (scan_xcoff_symtab): Use set_last_source_file.
11805
9d2ceabe
TT
118062013-01-21 Tom Tromey <tromey@redhat.com>
11807
11808 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11809 (symbol_set_names): Remove casts. Handle field const-ness.
11810
cfc594ee
TT
118112013-01-21 Tom Tromey <tromey@redhat.com>
11812
11813 * dwarf2read.c (new_symbol_full): Remove cast.
11814 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11815 * symtab.h (symbol_set_demangled_name): Update.
11816
5484b13a
TT
118172013-01-21 Tom Tromey <tromey@redhat.com>
11818
11819 * main.c (captured_main): Call bfd_init.
11820
1605ef26
TT
118212013-01-21 Tom Tromey <tromey@redhat.com>
11822
11823 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11824 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11825 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11826 * NEWS: Update.
11827
3b74cdc3
JK
118282013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11829
11830 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11831
5a352474
JK
118322013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11833
11834 Fix gdb.fortran/common-block.exp crash in PIE mode.
11835 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11836 LOC_COMMON_BLOCK.
11837 * f-valprint.c (info_common_command_for_block): Expect
11838 LOC_COMMON_BLOCK in gdb_assert.
11839 * symtab.h (struct general_symbol_info): Update comment for the
11840 common_block member.
11841 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11842 (enum address_class): New member LOC_COMMON_BLOCK.
11843
c60797fd
DB
118442013-01-18 David Blaikie <dblaikie@gmail.com>
11845
11846 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11847
46f35228
TT
118482013-01-18 Tom Tromey <tromey@redhat.com>
11849
11850 PR c++/14999:
11851 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11852 Call require_rvalue.
11853
257e7a09
YQ
118542013-01-18 Yao Qi <yao@codesourcery.com>
11855
11856 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11857 (dbx_read_symtab): New declaration.
11858 (dbx_psymtab_to_symtab): Delete.
11859 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11860 Rename parameter PST to SELF. Exchanged two parameters.
11861 (start_psymtab): Caller update.
11862 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11863 (dwarf2_read_symtab): New declaration.
11864 (dwarf2_psymtab_to_symtab): Delete.
11865 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11866 Rename parameter PST to SELF. Exchanged two parameters.
11867 (create_partial_symtab): Caller update.
11868 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11869 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11870 Rename parameter PST to SELF. Exchanged two parameters.
11871 (parse_partial_symbols, new_psymtab): Caller update.
11872 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11873 two parameters.
11874 * psymtab.c (psymtab_to_symtab): Caller update.
11875 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11876 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11877 Rename parameter PST to SELF. Exchanged two parameters.
11878 (xcoff_start_psymtab): Caller update.
11879
0de5618e
YQ
118802013-01-18 Yao Qi <yao@codesourcery.com>
11881
11882 * infrun.c (proceed): Rename local variable 'oneproc' to
11883 'force_step'.
11884
5c04624b
DE
118852013-01-17 Doug Evans <dje@google.com>
11886
848e3e78
DE
11887 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11888 (dw2_build_type_unit_groups): Delete. All uses updated.
11889
5c04624b
DE
11890 * symtab.h (struct symbol_search): Add comment.
11891
d84fca2c
JK
118922013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11893
11894 * symtab.c (compare_filenames_for_search): New comment for
11895 HAS_DRIVE_SPEC.
11896
6108433d
TT
118972013-01-17 Tom Tromey <tromey@redhat.com>
11898
11899 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11900
c89ffd86
JK
119012013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11902
11903 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11904 initialize it by existing make_cleanup. Call new do_cleanups.
11905
db2b2972
TT
119062013-01-17 Tom Tromey <tromey@redhat.com>
11907
11908 * cp-abi.c (cp_abi_completer): New function.
11909 (_initialize_cp_abi): Set completer for "set cp-abi".
11910
be7d37a2
TT
119112013-01-17 Tom Tromey <tromey@redhat.com>
11912
11913 * mem-break.c: Remove obsolete comment.
11914 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11915
c9fb1240
SD
119162012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11917
11918 * jit.c (jit_reader_load_command): Interpret the jit reader name
11919 as an absolute path if it begins with a forward slash.
11920
db334a01
SD
119212012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11922
11923 PR gdb/14550
11924
11925 * jit.c (finalize_symtab): Ensure that only the global block has a
11926 NULL superblock.
11927
7d928dac
PA
119282013-01-17 Pedro Alves <palves@redhat.com>
11929
11930 * acinclude.m4: Include ../config/plugins.m4,
11931 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11932 * Makefile.in (aclocal_m4_deps): Update.
11933 * aclocal.m4: Renegerate.
11934
fb8cf7c5
DE
119352013-01-16 Doug Evans <dje@google.com>
11936
11937 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11938
ab04a2af
TT
119392013-01-16 Pedro Alves <palves@redhat.com>
11940 Tom Tromey <tromey@redhat.com>
11941
11942 PR cli/7221:
11943 * NEWS: Add "catch signal".
11944 * breakpoint.c (base_breakpoint_ops): No longer static.
11945 (bpstat_explains_signal): New function.
11946 (init_catchpoint): No longer static.
11947 (base_breakpoint_explains_signal): New function.
11948 (base_breakpoint_ops): Initialize new field.
11949 * breakpoint.h (enum bpstat_signal_value): New.
11950 (struct breakpoint_ops) <explains_signal>: New field.
11951 (bpstat_explains_signal): Remove macro, declare as function.
11952 (base_breakpoint_ops, init_catchpoint): Declare.
11953 * break-catch-sig.c: New file.
11954 * inferior.h (signal_catch_update): Declare.
11955 * infrun.c (signal_catch): New global.
11956 (handle_syscall_event): Update for change to
11957 bpstat_explains_signal.
11958 (handle_inferior_event): Likewise. Always handle random signals
11959 via bpstats.
11960 (signal_cache_update): Check signal_catch.
11961 (signal_catch_update): New function.
11962 (_initialize_infrun): Initialize signal_catch.
11963 * Makefile.in (SFILES): Add break-catch-sig.c.
11964 (COMMON_OBS): Add break-catch-sig.o.
11965
8ac3646f
TT
119662013-01-16 Tom Tromey <tromey@redhat.com>
11967
11968 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11969 (print_one_catch_solib, print_one_catch_syscall)
11970 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11971 "catch-type".
11972
5a18e302
YQ
119732013-01-16 Yao Qi <yao@codesourcery.com>
11974
11975 * printcmd.c (current_display_number): Make it static.
11976
3f01d0d0
YQ
119772013-01-16 Yao Qi <yao@codesourcery.com>
11978
11979 * infcmd.c (step_once): Don't check '!single_inst' as it was
11980 checked before.
11981
1ed59174
JK
119822013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11983
11984 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11985
44478ab3
TT
119862013-01-14 Tom Tromey <tromey@redhat.com>
11987
11988 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11989 set command.
11990 * command.h (add_setshow_string_noescape_cmd): Update.
11991 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11992 (complete_set_gnutarget): New function.
11993 (_initialize_core): Set the "set gnutarget" completer.
11994
06d66ee9
TT
119952013-01-14 Tom Tromey <tromey@redhat.com>
11996
11997 PR symtab/14442:
11998 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11999 (c_type_print_modifier): Likewise.
12000 * dwarf2read.c (read_tag_restrict_type): New function.
12001 (read_type_die_1): Handle DW_TAG_restrict_type.
12002 * gdbtypes.c (make_restrict_type): New function.
12003 (recursive_dump_type): Handle TYPE_RESTRICT.
12004 * gdbtypes.h (enum type_flag_values): Renumber.
12005 (enum type_instance_flag_value): Add
12006 TYPE_INSTANCE_FLAG_RESTRICT.
12007 (TYPE_RESTRICT): New macro.
12008 (make_restrict_type): Declare.
12009
c9bf0622
TT
120102013-01-14 Tom Tromey <tromey@redhat.com>
12011
12012 PR symtab/14931:
12013 * psymtab.c (struct psymtab_state): New.
12014 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12015 functions.
12016 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12017 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12018
44d594fd
PA
120192013-01-14 Richard Sharman <richard_sharman@mitel.com>
12020 Pedro Alves <palves@redhat.com>
12021
12022 PR remote/14786
12023
12024 * remote.c (remote_threads_info): Make a copy of the reply from
12025 qfThreadInfo and use that instead of rs->buf.
12026
442e4d9c
YQ
120272013-01-14 Yao Qi <yao@codesourcery.com>
12028
12029 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12030 (dbx_psymtab_to_symtab): Likewise.
12031 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12032 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12033 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12034
5b12a61c
JK
120352013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12036
12037 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12038 make_cleanup_restore_current_language. Call set_language. Move
12039 OLD_CHAIN and INNER_CHAIN cleanups.
12040 * utils.c (do_restore_current_language)
12041 (make_cleanup_restore_current_language): New functions.
12042 * utils.h (make_cleanup_restore_current_language): New declaration.
12043
f0a4b570
JK
120442013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12045
12046 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12047 non-existing files.
12048
57b3c00c
JK
12049 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12050 non-existing files if FILENAME is already absolute.
12051
daefa854
JK
120522013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12053
12054 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12055 fputs_filtered. Append trailing newline.
12056
ca9c6ee2
YQ
120572013-01-11 Yao Qi <yao@codesourcery.com>
12058 Stan Shebs <stan@codesourcery.com>
12059
12060 * psymtab.c (init_psymbol_list): Clarify the comment.
12061
f28045c2
YQ
120622013-01-11 Yao Qi <yao@codesourcery.com>
12063
12064 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12065 (update_dprintf_command_list): Assert that 'printf_line' is
12066 non-null. Remove condition check.
12067
da5132d3
JK
120682013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12069
12070 Code cleanup.
12071 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12072 type const char *.
12073 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12074 const char *.
12075 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12076
843e694d
AG
120772013-01-09 Anthony Green <green@moxielogic.com>
12078
12079 * cp-abi.c (cplus_print_vtable): Don't return value from void
12080 function.
12081 * ada-lang.c (re_set_catch_assert): Ditto.
12082
da51c347
DE
120832013-01-09 Doug Evans <dje@google.com>
12084
12085 * symfile.h (quick_symbol_functions): Delete member
12086 pre_expand_symtabs_matching. All uses removed.
12087 * dwarf2read.c (dw2_lookup_symbol): Implement.
12088 (dw2_do_expand_symtabs_matching): Delete.
12089 (dw2_pre_expand_symtabs_matching): Delete.
12090 (struct dw2_symtab_iterator): New type.
12091 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12092 (dw2_expand_symtabs_for_function): Rewrite.
12093 (dwarf2_gdb_index_functions): Update.
12094 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12095 (psym_functions): Update.
12096
b2259038
TT
120972013-01-09 Tom Tromey <tromey@redhat.com>
12098
12099 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12100 * configure: Rebuild.
12101 * configure.ac: Add somread.o to the build if BFD has SOM
12102 support.
12103 * somread.c: Include som/aout.h, not syms.h.
12104 (som_symtab_read): Use som_external_symbol_dictionary_record.
12105 Unpack records manually.
12106 (_initialize_somread): Declare.
12107
bdad4180
MF
121082012-01-08 Mike Frysinger <vapier@gentoo.org>
12109
12110 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12111 Cast return_address to 64bits.
12112
03cdf680
HZ
121132013-01-08 Hui Zhu <hui_zhu@mentor.com>
12114
12115 * printcmd.c: Remove define of function output_command.
12116 * tracepoint.c: Remove extern of function output_command.
12117 * valprint.h: (output_command): New extern.
12118
8a808554
TT
121192013-01-07 Tom Tromey <tromey@redhat.com>
12120
12121 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12122 Remove.
12123 (objc_language_defn): Use c_printchar, c_printstr,
12124 c_emit_char.
12125
e93a8774
TT
121262013-01-07 Tom Tromey <tromey@redhat.com>
12127
12128 PR cli/7719:
12129 * NEWS: Update.
12130 * ada-valprint.c (printstr, print_field_values): Remove
12131 "inspect_it" code.
12132 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12133 code.
12134 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12135 code.
12136 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12137 * main.c (captured_main): Remove "epoch" argument.
12138 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12139 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12140 * p-valprint.c (pascal_object_print_value_fields): Remove
12141 "inspect_it" code.
12142 * printcmd.c (print_command_1): Remove 'inspect' argument.
12143 (print_command, call_command): Update.
12144 (inspect_command): Remove.
12145 (_initialize_printcmd): Make "inspect" an alias for "print".
12146 * top.c (epoch_interface): Remove.
12147 * top.h (epoch_interface): Remove.
12148 * valprint.c (user_print_options): Update.
12149 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12150 * valprint.h (struct value_print_options) <inspect_it>: Remove
12151 field.
12152
121532013-01-04 Tom Tromey <tromey@redhat.com>
12154
12155 * valprint.h (read_string): Add 'extern'.
12156
b967eb24
JB
121572013-01-07 Joel Brobecker <brobecker@adacore.com>
12158
12159 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12160 used to decide whether to define darwin_read_dyld_info or not.
12161
78a8b30e
PM
121622013-01-03 Pierre Muller <muller@sourceware.org>
12163
12164 * main.c (relocate_gdb_directory): Avoid calling stat function
12165 if DIR is empty.
12166
50da2f25
YQ
121672013-01-03 Yao Qi <yao@codesourcery.com>
12168
12169 * psymtab.c (fixup_psymbol_section): Update declaration.
12170 (fixup_psymbol_section): Remove code returning value.
12171
e7e8980f
YQ
121722013-01-03 Yao Qi <yao@codesourcery.com>
12173
12174 * symtab.h: Remove some out of date comments.
12175 (enum exception_event_kind): Move it ...
12176 * breakpoint.c: ... here.
12177
569283d4
MF
121782013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12179
9f9d9a96 12180 PR gdb/14405
569283d4
MF
12181 * darwin-nat.c (darwin_read_dyld_info): Only build if
12182 TASK_DYLD_INFO_COUNT is defined.
12183 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12184 TASK_DYLD_INFO_COUNT is defined.
12185
2e36fbea
TT
121862013-01-02 Tom Tromey <tromey@redhat.com>
12187
12188 * symfile.h (struct ecoff_debug_hack): Remove.
12189 * objfiles.c: Don't include mdebugread.h.
12190
4f05add4
TT
121912013-01-02 Tom Tromey <tromey@redhat.com>
12192
12193 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12194 * configure.ac: Check for Mach-O support in BFD. Update
12195 CONFIG_OBS.
12196 * configure: Rebuild.
12197
def63ff0
TT
121982013-01-02 Tom Tromey <tromey@redhat.com>
12199
12200 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12201 * configure.ac: Use GDB_AC_CHECK_BFD.
12202 * configure: Rebuild.
12203
60c5dd93
MK
122042013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12205
12206 * MAINTAINERS: Update my email.
12207
6e58437e
JB
122082013-01-01 Joel Brobecker <brobecker@adacore.com>
12209
12210 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12211
627fe805
JB
122122013-01-01 Joel Brobecker <brobecker@adacore.com>
12213
12214 * rs6000-nat.c (bss_data_overlap): New function.
12215 (vmap_symtab): Use it to adjust the .bss section's offset.
12216
28e7fd62
JB
122172013-01-01 Joel Brobecker <brobecker@adacore.com>
12218
12219 Update year range in copyright notice of all files.
12220
e93a8774 122212013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12222
12223 * top.c (print_gdb_version): Update copyright year.
12224
72b20e9c 12225For older changes see ChangeLog-2012.
c906108c
SS
12226\f
12227Local Variables:
12228mode: change-log
12229left-margin: 8
12230fill-column: 74
12231version-control: never
57da7796 12232coding: utf-8
c906108c 12233End:
This page took 2.171162 seconds and 4 git commands to generate.