remove gdb_dirent.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2978b111
TT
12013-11-18 Tom Tromey <tromey@redhat.com>
2
3 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
4 * common/gdb_dirent.h: Remove.
5 * common/filestuff.c: Use dirent.h.
6 * common/linux-osdata.c: Use dirent.h.
7 (NAMELEN): Define.
8 * config.in: Rebuild.
9 * configure: Rebuild.
10 * configure.ac: Don't use AC_HEADER_DIRENT.
11 * linux-fork.c: Use dirent.h
12 * linux-nat.c: Use dirent.h.
13 * nto-procfs.c: Use dirent.h.
14 * procfs.c: Use dirent.h.
15
e26b6bb0
TT
162013-11-18 Tom Tromey <tromey@redhat.com>
17
18 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
19 * gnulib/aclocal.m4: Update.
20 * gnulib/config.in: Update.
21 * gnulib/configure: Update.
22 * gnulib/import/Makefile.am: Update.
23 * gnulib/import/Makefile.in: Update.
24 * gnulib/import/dirent.in.h: New.
25 * gnulib/import/m4/dirent_h.m4: New.
26 * gnulib/import/m4/gnulib-cache.m4: Update.
27 * gnulib/import/m4/gnulib-comp.m4: Update.
28
a3d08894
TT
292013-11-18 Tom Tromey <tromey@redhat.com>
30
31 * configure: Rebuild.
32 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
33 strings.h.
34
0e9f083f
TT
352013-11-18 Tom Tromey <tromey@redhat.com>
36
37 * common/gdb_string.h: Remove.
38 * aarch64-tdep.c: Use string.h, not gdb_string.h.
39 * ada-exp.y: Use string.h, not gdb_string.h.
40 * ada-lang.c: Use string.h, not gdb_string.h.
41 * ada-lex.l: Use string.h, not gdb_string.h.
42 * ada-typeprint.c: Use string.h, not gdb_string.h.
43 * ada-valprint.c: Use string.h, not gdb_string.h.
44 * aix-thread.c: Use string.h, not gdb_string.h.
45 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
46 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
47 * alpha-nat.c: Use string.h, not gdb_string.h.
48 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
49 * alpha-tdep.c: Use string.h, not gdb_string.h.
50 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
51 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
52 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
53 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
54 * amd64-nat.c: Use string.h, not gdb_string.h.
55 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
56 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
57 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
58 * arch-utils.c: Use string.h, not gdb_string.h.
59 * arm-linux-nat.c: Use string.h, not gdb_string.h.
60 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
61 * arm-tdep.c: Use string.h, not gdb_string.h.
62 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
63 * armbsd-tdep.c: Use string.h, not gdb_string.h.
64 * armnbsd-nat.c: Use string.h, not gdb_string.h.
65 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
66 * armobsd-tdep.c: Use string.h, not gdb_string.h.
67 * avr-tdep.c: Use string.h, not gdb_string.h.
68 * ax-gdb.c: Use string.h, not gdb_string.h.
69 * ax-general.c: Use string.h, not gdb_string.h.
70 * bcache.c: Use string.h, not gdb_string.h.
71 * bfin-tdep.c: Use string.h, not gdb_string.h.
72 * breakpoint.c: Use string.h, not gdb_string.h.
73 * build-id.c: Use string.h, not gdb_string.h.
74 * buildsym.c: Use string.h, not gdb_string.h.
75 * c-exp.y: Use string.h, not gdb_string.h.
76 * c-lang.c: Use string.h, not gdb_string.h.
77 * c-typeprint.c: Use string.h, not gdb_string.h.
78 * c-valprint.c: Use string.h, not gdb_string.h.
79 * charset.c: Use string.h, not gdb_string.h.
80 * cli-out.c: Use string.h, not gdb_string.h.
81 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
82 * cli/cli-decode.c: Use string.h, not gdb_string.h.
83 * cli/cli-dump.c: Use string.h, not gdb_string.h.
84 * cli/cli-interp.c: Use string.h, not gdb_string.h.
85 * cli/cli-logging.c: Use string.h, not gdb_string.h.
86 * cli/cli-script.c: Use string.h, not gdb_string.h.
87 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
88 * cli/cli-utils.c: Use string.h, not gdb_string.h.
89 * coffread.c: Use string.h, not gdb_string.h.
90 * common/common-utils.c: Use string.h, not gdb_string.h.
91 * common/filestuff.c: Use string.h, not gdb_string.h.
92 * common/linux-procfs.c: Use string.h, not gdb_string.h.
93 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
94 * common/signals.c: Use string.h, not gdb_string.h.
95 * common/vec.h: Use string.h, not gdb_string.h.
96 * core-regset.c: Use string.h, not gdb_string.h.
97 * corefile.c: Use string.h, not gdb_string.h.
98 * corelow.c: Use string.h, not gdb_string.h.
99 * cp-abi.c: Use string.h, not gdb_string.h.
100 * cp-support.c: Use string.h, not gdb_string.h.
101 * cp-valprint.c: Use string.h, not gdb_string.h.
102 * cris-tdep.c: Use string.h, not gdb_string.h.
103 * d-lang.c: Use string.h, not gdb_string.h.
104 * dbxread.c: Use string.h, not gdb_string.h.
105 * dcache.c: Use string.h, not gdb_string.h.
106 * demangle.c: Use string.h, not gdb_string.h.
107 * dicos-tdep.c: Use string.h, not gdb_string.h.
108 * disasm.c: Use string.h, not gdb_string.h.
109 * doublest.c: Use string.h, not gdb_string.h.
110 * dsrec.c: Use string.h, not gdb_string.h.
111 * dummy-frame.c: Use string.h, not gdb_string.h.
112 * dwarf2-frame.c: Use string.h, not gdb_string.h.
113 * dwarf2loc.c: Use string.h, not gdb_string.h.
114 * dwarf2read.c: Use string.h, not gdb_string.h.
115 * elfread.c: Use string.h, not gdb_string.h.
116 * environ.c: Use string.h, not gdb_string.h.
117 * eval.c: Use string.h, not gdb_string.h.
118 * event-loop.c: Use string.h, not gdb_string.h.
119 * exceptions.c: Use string.h, not gdb_string.h.
120 * exec.c: Use string.h, not gdb_string.h.
121 * expprint.c: Use string.h, not gdb_string.h.
122 * f-exp.y: Use string.h, not gdb_string.h.
123 * f-lang.c: Use string.h, not gdb_string.h.
124 * f-typeprint.c: Use string.h, not gdb_string.h.
125 * f-valprint.c: Use string.h, not gdb_string.h.
126 * fbsd-nat.c: Use string.h, not gdb_string.h.
127 * findcmd.c: Use string.h, not gdb_string.h.
128 * findvar.c: Use string.h, not gdb_string.h.
129 * fork-child.c: Use string.h, not gdb_string.h.
130 * frame.c: Use string.h, not gdb_string.h.
131 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
132 * frv-tdep.c: Use string.h, not gdb_string.h.
133 * gdb.c: Use string.h, not gdb_string.h.
134 * gdb_bfd.c: Use string.h, not gdb_string.h.
135 * gdbarch.c: Use string.h, not gdb_string.h.
136 * gdbtypes.c: Use string.h, not gdb_string.h.
137 * gnu-nat.c: Use string.h, not gdb_string.h.
138 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
139 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
140 * go-exp.y: Use string.h, not gdb_string.h.
141 * go-lang.c: Use string.h, not gdb_string.h.
142 * go32-nat.c: Use string.h, not gdb_string.h.
143 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
144 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
145 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
146 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
147 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
148 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
149 * i386-linux-nat.c: Use string.h, not gdb_string.h.
150 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
151 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
152 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
153 * i386-tdep.c: Use string.h, not gdb_string.h.
154 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
155 * i386gnu-nat.c: Use string.h, not gdb_string.h.
156 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
157 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
158 * i387-tdep.c: Use string.h, not gdb_string.h.
159 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
160 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
161 * inf-child.c: Use string.h, not gdb_string.h.
162 * inf-ptrace.c: Use string.h, not gdb_string.h.
163 * inf-ttrace.c: Use string.h, not gdb_string.h.
164 * infcall.c: Use string.h, not gdb_string.h.
165 * infcmd.c: Use string.h, not gdb_string.h.
166 * inflow.c: Use string.h, not gdb_string.h.
167 * infrun.c: Use string.h, not gdb_string.h.
168 * interps.c: Use string.h, not gdb_string.h.
169 * iq2000-tdep.c: Use string.h, not gdb_string.h.
170 * irix5-nat.c: Use string.h, not gdb_string.h.
171 * jv-exp.y: Use string.h, not gdb_string.h.
172 * jv-lang.c: Use string.h, not gdb_string.h.
173 * jv-typeprint.c: Use string.h, not gdb_string.h.
174 * jv-valprint.c: Use string.h, not gdb_string.h.
175 * language.c: Use string.h, not gdb_string.h.
176 * linux-fork.c: Use string.h, not gdb_string.h.
177 * linux-nat.c: Use string.h, not gdb_string.h.
178 * lm32-tdep.c: Use string.h, not gdb_string.h.
179 * m2-exp.y: Use string.h, not gdb_string.h.
180 * m2-typeprint.c: Use string.h, not gdb_string.h.
181 * m32c-tdep.c: Use string.h, not gdb_string.h.
182 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
183 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
184 * m32r-rom.c: Use string.h, not gdb_string.h.
185 * m32r-tdep.c: Use string.h, not gdb_string.h.
186 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
187 * m68k-tdep.c: Use string.h, not gdb_string.h.
188 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
189 * m68klinux-nat.c: Use string.h, not gdb_string.h.
190 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
191 * m88k-tdep.c: Use string.h, not gdb_string.h.
192 * macrocmd.c: Use string.h, not gdb_string.h.
193 * main.c: Use string.h, not gdb_string.h.
194 * mdebugread.c: Use string.h, not gdb_string.h.
195 * mem-break.c: Use string.h, not gdb_string.h.
196 * memattr.c: Use string.h, not gdb_string.h.
197 * memory-map.c: Use string.h, not gdb_string.h.
198 * mep-tdep.c: Use string.h, not gdb_string.h.
199 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
200 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
201 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
202 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
203 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
204 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
205 * mi/mi-console.c: Use string.h, not gdb_string.h.
206 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
207 * mi/mi-interp.c: Use string.h, not gdb_string.h.
208 * mi/mi-main.c: Use string.h, not gdb_string.h.
209 * mi/mi-parse.c: Use string.h, not gdb_string.h.
210 * microblaze-rom.c: Use string.h, not gdb_string.h.
211 * microblaze-tdep.c: Use string.h, not gdb_string.h.
212 * mingw-hdep.c: Use string.h, not gdb_string.h.
213 * minidebug.c: Use string.h, not gdb_string.h.
214 * minsyms.c: Use string.h, not gdb_string.h.
215 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
216 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
217 * mips-tdep.c: Use string.h, not gdb_string.h.
218 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
219 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
220 * mipsread.c: Use string.h, not gdb_string.h.
221 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
222 * mn10300-tdep.c: Use string.h, not gdb_string.h.
223 * monitor.c: Use string.h, not gdb_string.h.
224 * moxie-tdep.c: Use string.h, not gdb_string.h.
225 * mt-tdep.c: Use string.h, not gdb_string.h.
226 * nbsd-tdep.c: Use string.h, not gdb_string.h.
227 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
228 * nto-procfs.c: Use string.h, not gdb_string.h.
229 * nto-tdep.c: Use string.h, not gdb_string.h.
230 * objc-lang.c: Use string.h, not gdb_string.h.
231 * objfiles.c: Use string.h, not gdb_string.h.
232 * opencl-lang.c: Use string.h, not gdb_string.h.
233 * osabi.c: Use string.h, not gdb_string.h.
234 * osdata.c: Use string.h, not gdb_string.h.
235 * p-exp.y: Use string.h, not gdb_string.h.
236 * p-lang.c: Use string.h, not gdb_string.h.
237 * p-typeprint.c: Use string.h, not gdb_string.h.
238 * parse.c: Use string.h, not gdb_string.h.
239 * posix-hdep.c: Use string.h, not gdb_string.h.
240 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
241 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
242 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
243 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
244 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
245 * printcmd.c: Use string.h, not gdb_string.h.
246 * procfs.c: Use string.h, not gdb_string.h.
247 * prologue-value.c: Use string.h, not gdb_string.h.
248 * python/py-auto-load.c: Use string.h, not gdb_string.h.
249 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
250 * ravenscar-thread.c: Use string.h, not gdb_string.h.
251 * regcache.c: Use string.h, not gdb_string.h.
252 * registry.c: Use string.h, not gdb_string.h.
253 * remote-fileio.c: Use string.h, not gdb_string.h.
254 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
255 * remote-mips.c: Use string.h, not gdb_string.h.
256 * remote-sim.c: Use string.h, not gdb_string.h.
257 * remote.c: Use string.h, not gdb_string.h.
258 * reverse.c: Use string.h, not gdb_string.h.
259 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
260 * ser-base.c: Use string.h, not gdb_string.h.
261 * ser-go32.c: Use string.h, not gdb_string.h.
262 * ser-mingw.c: Use string.h, not gdb_string.h.
263 * ser-pipe.c: Use string.h, not gdb_string.h.
264 * ser-tcp.c: Use string.h, not gdb_string.h.
265 * ser-unix.c: Use string.h, not gdb_string.h.
266 * serial.c: Use string.h, not gdb_string.h.
267 * sh-tdep.c: Use string.h, not gdb_string.h.
268 * sh64-tdep.c: Use string.h, not gdb_string.h.
269 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
270 * skip.c: Use string.h, not gdb_string.h.
271 * sol-thread.c: Use string.h, not gdb_string.h.
272 * solib-dsbt.c: Use string.h, not gdb_string.h.
273 * solib-frv.c: Use string.h, not gdb_string.h.
274 * solib-osf.c: Use string.h, not gdb_string.h.
275 * solib-spu.c: Use string.h, not gdb_string.h.
276 * solib-target.c: Use string.h, not gdb_string.h.
277 * solib.c: Use string.h, not gdb_string.h.
278 * somread.c: Use string.h, not gdb_string.h.
279 * source.c: Use string.h, not gdb_string.h.
280 * sparc-nat.c: Use string.h, not gdb_string.h.
281 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
282 * sparc-tdep.c: Use string.h, not gdb_string.h.
283 * sparc64-tdep.c: Use string.h, not gdb_string.h.
284 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
285 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
286 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
287 * spu-linux-nat.c: Use string.h, not gdb_string.h.
288 * spu-multiarch.c: Use string.h, not gdb_string.h.
289 * spu-tdep.c: Use string.h, not gdb_string.h.
290 * stabsread.c: Use string.h, not gdb_string.h.
291 * stack.c: Use string.h, not gdb_string.h.
292 * std-regs.c: Use string.h, not gdb_string.h.
293 * symfile.c: Use string.h, not gdb_string.h.
294 * symmisc.c: Use string.h, not gdb_string.h.
295 * symtab.c: Use string.h, not gdb_string.h.
296 * target.c: Use string.h, not gdb_string.h.
297 * thread.c: Use string.h, not gdb_string.h.
298 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
299 * tilegx-tdep.c: Use string.h, not gdb_string.h.
300 * top.c: Use string.h, not gdb_string.h.
301 * tracepoint.c: Use string.h, not gdb_string.h.
302 * tui/tui-command.c: Use string.h, not gdb_string.h.
303 * tui/tui-data.c: Use string.h, not gdb_string.h.
304 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
305 * tui/tui-file.c: Use string.h, not gdb_string.h.
306 * tui/tui-layout.c: Use string.h, not gdb_string.h.
307 * tui/tui-out.c: Use string.h, not gdb_string.h.
308 * tui/tui-regs.c: Use string.h, not gdb_string.h.
309 * tui/tui-source.c: Use string.h, not gdb_string.h.
310 * tui/tui-stack.c: Use string.h, not gdb_string.h.
311 * tui/tui-win.c: Use string.h, not gdb_string.h.
312 * tui/tui-windata.c: Use string.h, not gdb_string.h.
313 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
314 * typeprint.c: Use string.h, not gdb_string.h.
315 * ui-file.c: Use string.h, not gdb_string.h.
316 * ui-out.c: Use string.h, not gdb_string.h.
317 * user-regs.c: Use string.h, not gdb_string.h.
318 * utils.c: Use string.h, not gdb_string.h.
319 * v850-tdep.c: Use string.h, not gdb_string.h.
320 * valarith.c: Use string.h, not gdb_string.h.
321 * valops.c: Use string.h, not gdb_string.h.
322 * valprint.c: Use string.h, not gdb_string.h.
323 * value.c: Use string.h, not gdb_string.h.
324 * varobj.c: Use string.h, not gdb_string.h.
325 * vax-tdep.c: Use string.h, not gdb_string.h.
326 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
327 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
328 * windows-nat.c: Use string.h, not gdb_string.h.
329 * xcoffread.c: Use string.h, not gdb_string.h.
330 * xml-support.c: Use string.h, not gdb_string.h.
331 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
332 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
333
63ce7108
TT
3342013-11-18 Tom Tromey <tromey@redhat.com>
335
336 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
337 and strstr.
338 * gnulib/aclocal.m4: Update.
339 * gnulib/config.in: Update.
340 * gnulib/configure: Update.
341 * gnulib/import/Makefile.am: Update.
342 * gnulib/import/Makefile.in: Update.
343 * gnulib/import/errno.in.h: New.
344 * gnulib/import/intprops.h: New.
345 * gnulib/import/m4/errno_h.m4: New.
346 * gnulib/import/m4/gnulib-cache.m4: Update.
347 * gnulib/import/m4/gnulib-comp.m4: Update.
348 * gnulib/import/m4/strerror.m4: New.
349 * gnulib/import/m4/strstr.m4: New.
350 * gnulib/import/m4/sys_socket_h.m4: New.
351 * gnulib/import/strerror-override.c: New.
352 * gnulib/import/strerror-override.h: New.
353 * gnulib/import/strerror.c: New.
354 * gnulib/import/strstr.c: New.
355
a7c11ee1
TT
3562013-11-18 Tom Tromey <tromey@redhat.com>
357
358 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
359 multiple lines.
360
d0b5971a
JM
3612013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
362
363 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
364 * sparc-tdep.h: And its prototype.
365
366 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
367 function.
368 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
369
4b4589ad
PA
3702013-11-18 Pedro Alves <palves@redhat.com>
371
372 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
373 use unpack_pointer.
374
422ad5c2
JB
3752013-11-18 Joel Brobecker <brobecker@adacore.com>
376
377 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
378 to -list-features output.
379
b1370418
JB
3802013-11-17 Joel Brobecker <brobecker@adacore.com>
381
382 * dwarf2expr.h (struct dwarf_expr_context_funcs)
383 <read_addr_from_reg>: Renames "read_reg".
384 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
385 Adjust comment.
386 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
387 Use read_addr_from_reg in place of read_reg.
388 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
389 in place of read_reg.
390 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
391 dwarf_expr_read_reg.
392 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
393 with dwarf_expr_read_addr_from_reg.
394 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
395 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
396 needs_frame_read_addr_from_reg.
397
6ea71545
JK
3982013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
401
19a1b230
AA
4022013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
403
404 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
405 NULL.
406
805e1f19
TT
4072013-11-15 Tom Tromey <tromey@redhat.com>
408
409 PR c++/16117:
410 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
411 (classify_name): Likewise. Prefer a field of "this" over a
412 filename.
413 (classify_inner_name, yylex): Update.
414
0acf8b65
JB
4152013-11-15 Joel Brobecker <brobecker@adacore.com>
416
417 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
418 Extend the documentation a bit.
419 <get_reg_value>: New field.
420 * dwarf2loc.c (dwarf_expr_get_reg_value)
421 (needs_frame_get_reg_value): New functions.
422 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
423 callback.
424 * dwarf2-frame.c (get_reg_value): New function.
425 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
426 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
427 Use new callback to compute result_val.
428
ef1bc9e7
AM
4292013-11-15 Alan Modra <amodra@gmail.com>
430
431 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
432 (ppc64_desc_entry_point): ..this. Update comments here and at
433 call points.
434 (ppc64_standard_linkage1, ppc64_standard_linkage2,
435 ppc64_standard_linkage3): Update comments.
436 (ppc64_standard_linkage4, ppc64_standard_linkage5,
437 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
438 patterns.
439 (ppc64_standard_linkage4_target): New function.
440 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
441 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
442 nop match. Fix comment wrap.
443
36fa8042
PA
4442013-11-14 Pedro Alves <palves@redhat.com>
445
446 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
447 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
448
4f5d7f63
PA
4492013-11-14 Pedro Alves <palves@redhat.com>
450
451 * infrun.c (struct execution_control_state)
452 <stepped_after_stopped_by_watchpoint>: New field.
453 (get_inferior_stop_soon): New function.
454 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
455 moved to struct execution_control_state -- adjust. Use
456 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
457 new function.
458 (handle_signal_stop): New function, factored out from
459 handle_inferior_event.
460
47591c29
PA
4612013-11-14 Pedro Alves <palves@redhat.com>
462
463 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
464 return a boolean.
465 * breakpoint.c (bpstat_explains_signal): Adjust to return a
466 boolean.
467 (explains_signal_watchpoint, base_breakpoint_explains_signal):
468 Adjust to return a boolean.
469 * breakpoint.h (enum bpstat_signal_value): Delete.
470 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
471 (bpstat_explains_signal): Likewise.
472 * infrun.c (handle_inferior_event) <random signal checks>:
473 bpstat_explains_signal now returns a boolean - adjust. No longer
474 consider hiding signals.
475
bac7d97b
PA
4762013-11-14 Pedro Alves <palves@redhat.com>
477
478 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
479 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
480 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
481 BPSTAT_SIGNAL_HIDE.
482 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
483 instead of BPSTAT_SIGNAL_HIDE.
484 * infrun.c (handle_inferior_event): Rework random signal checks.
485
ce12b012
PA
4862013-11-14 Pedro Alves <palves@redhat.com>
487
488 * infrun.c (struct execution_control_state): Remove
489 'random_signal' field.
490 (handle_syscall_event): Use bpstat_causes_stop instead of
491 bpstat_explains_signal. Don't set ecs->random_signal.
492 (handle_inferior_event): New 'random_signal' local.
493 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
494 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
495 bpstat_explains_signal. Don't set ecs->random_signal.
496 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
497 ecs->random_signal.
498
05ba8510
PA
4992013-11-14 Pedro Alves <palves@redhat.com>
500
501 * infrun.c (handle_inferior_event): Move comment from the
502 function's body to the function's description, adjusted.
503
5c09a2c5
PA
5042013-11-14 Pedro Alves <palves@redhat.com>
505
506 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
507 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
508 Assert we never fall through out of the TARGET_WAITKIND_LOADED
509 case.
510
91822956
TT
5112013-11-14 Tom Tromey <tromey@redhat.com>
512
513 * python/py-linetable.c (ltpy_has_line)
514 (ltpy_get_all_source_lines): Fix loop termination condition.
515
403cb6b1
JB
5162013-11-14 Joel Brobecker <brobecker@adacore.com>
517
518 * mi/mi-parse.h (struct mi_parse) <language>: New field.
519 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
520 PARSE->LANGUAGE during command execution, if set.
521 * mi/mi-parse.c: Add "language.h" #include.
522 (mi_parse): Add parsing of "--language" command option.
523
524 * NEWS: Add entry mentioning the new "--language" command option.
525
b5be8ce0
JB
5262013-11-14 Pedro Alves <palves@redhat.com>
527 Joel Brobecker <brobecker@adacore.com>
528
529 * cli/cli-utils.h (extract_arg_const): Add declaration.
530 * cli/cli-utils.c (extract_arg_const): New function.
531 (extract_arg): Reimplement using extract_arg_const.
532
671afef6
JB
5332013-11-14 Joel Brobecker <brobecker@adacore.com>
534
535 * language.h: Add "symtab.h" #include.
536
6c1b0f7b
DE
5372013-11-13 Doug Evans <xdje42@gmail.com>
538
539 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
540 specific breakpoints, don't evaluate breakpoint condition if
541 different thread.
542
74921315
KS
5432013-11-13 Keith Seitz <keiths@redhat.com>
544
248ace2e 545 PR c++/7935
74921315
KS
546 PR c++/10541
547 * cp-support.c (insepct_type): Add support for substituting
548 namespace aliases, too.
549 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
550 for DW_TAG_imported_declaration.
551 (add_partial_symbol): Likewise.
552 (process_die): Handle namespace aliases with
553 read_namespace_alias.
554 (die_needs_namespace): Add DW_TAG_imported_declaration.
555 (read_namespace_alias): New function.
556 (load_partial_dies): Load DW_TAG_imported_declaration, too.
557 (new_symbol_full): Handle DW_TAG_imported_declaration.
558
793156e6
KS
5592013-11-13 Keith Seitz <keiths@redhat.com>
560
561 * p-exp.y (uptok): Make first parameter const.
562 (yylex): Make `tokstart' and `tokptr' const.
563 Don't copy the lexer input to a temporary buffer.
564 Make `p' const.
565 Remove const workaround for parse_escape.
566 Create a temporary buffer for a convenience variable instead
567 of doing in-place modification of the input.
568 If a match is found with a different case from the input,
569 do not change the input at all.
570 Use `tmp' to construct the resultant stoken instead of
571 `tokstart'.
572
c42bd95a
DE
5732013-11-13 Doug Evans <xdje42@gmail.com>
574
575 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
576
93973826
JB
5772013-11-13 Joel Brobecker <brobecker@adacore.com>
578
579 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
580 entry with "ada-exceptions".
581
846060df
JB
5822013-11-13 Joel Brobecker <brobecker@adacore.com>
583
584 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
585 after re-initialization of OBJFILE's obstack.
586
5efd1b2b 5872013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
588
589 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
590 bs->stop != 0 on entry. Update function comment. Simplify early
591 exit for frame mismatch. Reindent rest of function.
592
ee7615e1
AA
5932013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
594
595 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
596 NULL.
597
8943b874
DE
5982013-11-12 Doug Evans <dje@google.com>
599
600 Work around gold/15646.
601 * dwarf2read.c (read_index_from_section): Update comment.
602 (struct dw2_symtab_iterator): New member global_seen.
603 (dw2_symtab_iter_init): Initialize it.
604 (dw2_symtab_iter_next): Skip duplicate global symbols.
605 (dw2_expand_symtabs_matching): Ditto.
606
a8a9844d
JB
6072013-11-12 Joel Brobecker <brobecker@adacore.com>
608
609 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
610 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
611 command.
612 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
613 (mi_cmd_info_ada_exceptions): New function.
614 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
615
778865d3
JB
6162013-11-12 Joel Brobecker <brobecker@adacore.com>
617
618 * ada-lang.h: #include "vec.h".
619 (struct ada_exc_info): New.
620 (ada_exc_info): New typedef.
621 (DEF_VEC_O(ada_exc_info)): New vector.
622 (ada_exceptions_list): Add declaration.
623 * ada-lang.c (ada_is_exception_sym)
624 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
625 (sort_remove_dups_ada_exceptions_list)
626 (ada_exc_search_name_matches, ada_add_standard_exceptions)
627 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
628 (ada_exceptions_list_1, ada_exceptions_list)
629 (info_exceptions_command): New function.
630 (_initialize_ada_language): Add "info exception" command.
631
bc79de95
PM
6322013-11-11 Phil Muldoon <pmuldoon@redhat.com>
633
634 PR python/15629
635 * NEWS: Add linetable feature.
636 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
637 * python/py-linetable.c: New file.
638 * python/py-symtab.c (stpy_get_linetable): New function.
639 * python/python-internal.h (symtab_to_linetable_object): Declare.
640 (gdbpy_initialize_linetable): Ditto.
641 * python/python.c (_initialize_python): Call
642 gdbpy_initialize_linetable.
643
2df4d1d5
JB
6442013-11-11 Joel Brobecker <brobecker@adacore.com>
645
646 * ada-lang.c (create_ada_exception_catchpoint): Enhance
647 the documentation of fields "except_string" and "condition".
648 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
649 CONDITION on the heap before passing it to
650 create_ada_exception_catchpoint.
651 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
652 CONDITION.
653
99c1d451
TT
6542013-11-11 Tom Tromey <tromey@redhat.com>
655
656 * config.in, configure: Rebuild.
657 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
658
8ca5801b
JB
6592013-11-11 Joel Brobecker <brobecker@adacore.com>
660
661 * remote-sim.c (gdbsim_detach): Break declaration into
662 shorter lines. No code change.
663
7a06d430
EBM
6642013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
665
666 * remote-sim.c (gdbsim_detach): Fix prototype.
667
73be47f5
DE
6682013-11-08 Doug Evans <dje@google.com>
669
670 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
671 (create_debug_types_hash_table): Only print debugging messages for
672 each TU if dwarf2-read >= 2.
673 (process_queue): Ditto.
674 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
675 Update doc string.
676
a18d8f10
TT
6772013-11-08 Tom Tromey <tromey@redhat.com>
678
679 * configure: Rebuild.
680 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
681
9467110b
TT
6822013-11-08 Tom Tromey <tromey@redhat.com>
683
684 * configure, config.in: Rebuild.
685 * configure.ac: Remove unused configury.
686
69706679
TT
6872013-11-08 Tom Tromey <tromey@redhat.com>
688
689 * m32c-tdep.c: Use gdb_string.h.
690
9b4bea72
TT
6912013-11-08 Tom Tromey <tromey@redhat.com>
692
693 * configure, config.in: Rebuild.
694 * configure.ac: Remove all link.h-related checks.
695
3266f10b
TT
6962013-11-08 Tom Tromey <tromey@redhat.com>
697
698 * acinclude.m4: Include common.m4.
699 * common/common.m4: New file.
700 * configure, config.in: Rebuild.
701 * configure.ac: Use GDB_AC_COMMON.
702
db0fec5c
DE
7032013-11-08 Doug Evans <dje@google.com>
704
705 * NEWS: Mention that "set debug symtab-create" now accepts a
706 verbosity level.
707 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
708 to set the symtab's primary flag.
709 * jit.c (finalize_symtab): Ditto.
710 * mdebugread.c (psymtab_to_symtab_1): Ditto.
711 * symfile.c (allocate_symtab): Only print debugging messages for
712 symtab_create_debug levels 2 and higher.
713 * symtab.c (symtab_create_debug): Change type to unsigned int.
714 (set_symtab_primary): New function.
715 (_initialize_symtab): Change "set debug symtab-create" to a
716 zuinteger option.
717 * symtab.h (set_symtab_primary): Declare.
718 (symtab_create_debug): Update decl.
719
52554a0e
TT
7202013-11-08 Tom Tromey <tromey@redhat.com>
721
722 * aix-thread.c (aix_thread_detach): Update.
723 * corelow.c (core_detach): Update.
724 * darwin-nat.c (darwin_detach): Update.
725 * dec-thread.c (dec_thread_detach): Update.
726 * gnu-nat.c (gnu_detach): Update.
727 * go32-nat.c (go32_detach): Update.
728 * inf-ptrace.c (inf_ptrace_detach): Update.
729 * inf-ttrace.c (inf_ttrace_detach): Update.
730 * linux-fork.c (linux_fork_detach): Update.
731 * linux-fork.h (linux_fork_detach): Update.
732 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
733 local for const-correctness.
734 * linux-thread-db.c (thread_db_detach): Update.
735 * monitor.c (monitor_detach): Update.
736 * nto-procfs.c (procfs_detach): Update.
737 * procfs.c (procfs_detach): Update.
738 * record.c (record_detach): Update.
739 * record.h (record_detach): Update.
740 * remote-m32r-sdi.c (m32r_detach): Update.
741 * remote-mips.c (mips_detach): Update.
742 * remote-sim.c (gdbsim_detach): Update.
743 * remote.c (remote_detach_1, remote_detach)
744 (extended_remote_detach): Update.
745 * sol-thread.c (sol_thread_detach): Update.
746 * target.c (target_detach): Make "args" const.
747 (init_dummy_target): Update.
748 * target.h (struct target_ops) <to_detach>: Make argument const.
749 (target_detach): Likewise.
750 * windows-nat.c (windows_detach): Update.
751
204b5331
DE
7522013-11-07 Doug Evans <dje@google.com>
753
754 PR 11786
755 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
756 and align fields for PT_GNU_RELRO segments.
757
92e32e33
PM
7582013-11-07 Phil Muldoon <pmuldoon@redhat.com>
759
ef1bc9e7
AM
760 PR python/15747
761 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 762
f76c27b5
PM
7632013-11-07 Phil Muldoon <pmuldoon@redhat.com>
764
765 * NEWS: Document Python temporary breakpoint support.
766 * python/py-breakpoint.c (bppy_get_temporary): New function.
767 (bppy_init): New keyword: temporary. Parse it and set breakpoint
768 to temporary if True.
769
d52cd232
JM
7702013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
771
772 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
773 removed to allow analyzing unconditional branch instructions
774 with PC-relative offsets of zero.
775
fa4d0c40
YQ
7762013-11-07 Yao Qi <yao@codesourcery.com>
777
778 * mi/mi-cmd-var.c: Include "language.h".
779 (mi_cmd_var_info_expression): Get language name from
780 language_defn.
781 * varobj.c (varobj_language_string): Remove.
782 (variable_language): Remove declaration.
783 (languages): Remove.
784 (varobj_get_language): Change the type of return value.
785 (variable_language): Remove.
786 * varobj.h (enum varobj_languages): Remove.
787 (varobj_language_string): Remove declaration.
788 (varobj_get_language): Update declaration.
789
6abde28f
YQ
7902013-11-07 Yao Qi <yao@codesourcery.com>
791
792 * language.h (struct language_defn) <la_natural_name>: New
793 field.
794 * ada-lang.c (ada_language_defn): Initialize field
795 'la_natural_name'.
796 * c-lang.c (c_language_defn): Likewise.
797 (cplus_language_defn, asm_language_defn): Likewise.
798 * d-lang.c (d_language_defn): Likewise.
799 * f-lang.c (f_language_defn): Likewise.
800 * go-lang.c (go_language_defn): Likewise.
801 * jv-lang.c (java_language_defn): Likewise.
802 * language.c (unknown_language_defn ): Likewise.
803 (auto_language_defn): Likewise.
804 * m2-lang.c (m2_language_defn): Likewise.
805 * objc-lang.c (objc_language_defn): Likewise.
806 * opencl-lang.c (opencl_language_defn): Likewise.
807 * p-lang.c (pascal_language_defn): Likewise.
808
27cd387b
YQ
8092013-11-07 Yao Qi <yao@codesourcery.com>
810
811 * language.c (language_str): Return const char *.
812 (add_language): Add const to 'language_names'
813 * language.h (struct language_defn) <la_name>: Add const.
814 (language_str: Update declaration.
815
6682d959
AA
8162013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
817
818 * s390-linux-nat.c (s390_read_description): Consider the TE field
819 in the HWCAP for determining 'have_regset_tdb'.
820
b9502d3f
WN
8212013-11-06 Will Newton <will.newton@linaro.org>
822
823 PR gdb/12866
824 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
825 values. (read_partial_die): Likewise.
826
840da61a
MB
8272013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
828
829 PR cli/16122
830 * top.c (command_line_input): Unify interactivity tests to use
831 input_from_terminal_p.
832 * event-top.c (command_line_handler): Likewise.
833
7636ccf9
YQ
8342013-11-06 Yao Qi <yao@codesourcery.com>
835
836 * Makefile.in (check-perf): New target.
837
12b27276
WN
8382013-11-05 Will Newton <will.newton@linaro.org>
839
840 PR gdb/7670
841 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
842 (arm_print_float_info): Likewise.
843
67c059c2
AB
8442013-11-04 Anton Blanchard <anton@samba.org>
845
846 * target.c (memory_xfer_partial): Cap write to 4KB.
847
0569175e
TSD
8482013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
849
850 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
851 probe scan even when the arch provides no get_longjmp_target.
852
b18e90f5
PA
8532013-10-31 Pedro Alves <palves@redhat.com>
854
855 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
856 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
857 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
858 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
859 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
860 <bpstat handling>: If the bpstat chain wants the signal to be
861 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
862 GDB_SIGNAL_TRAP.
863
638aa5a1
AB
8642013-10-31 Andrew Burgess <aburgess@broadcom.com>
865
866 * breakpoint.c (update_watchpoint): Update error message and add
867 an additional error message.
868
0e5fae36
UW
8692013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
870
871 * s390-tdep.h: Rename to...
872 * s390-linux-tdep.h: ...here.
873 * s390-tdep.c: Rename to...
874 * s390-linux-tdep.c: ...here. Adjust #include.
875 * s390-nat.c: Rename to...
876 * s390-linux-nat.c: ...here. Adjust #include.
877 * config/s390/s390.mh: Rename to...
878 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
879 s390-linux-nat.o.
880 * configure.host: Reflect host rename "s390" -> "linux".
881 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
882 * Makefile.in (ALL_TARGET_OBS): Likewise.
883 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
884 s390-linux-tdep.h.
885 (ALLDEPFILES): Reflect rename of .c files.
886
34201ae3
UW
8872013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
888
889 * s390-nat.c: Whitespace cleanup.
890 * s390-tdep.c: Likewise.
891 * s390-tdep.h: Remove empty line at end of file.
892
e17aaa33
MR
8932013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
894
895 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
896 siginfo_size.
897
aee17e42
TT
8982013-10-29 Tom Tromey <tromey@redhat.com>
899
900 * utils.c (reg): Move undefinition...
901 * gdb_curses.h: ... here. Update comment to mention AIX.
902
9ac69859
NB
9032013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
904
905 * exec.h (add_target_sections_of_objfile): New declaration.
906 * exec.c (add_target_sections_of_objfile): New function.
907 * symfile.c (add_symbol_file_command): Update current target sections.
908 (remove_symbol_file_command): New command.
909 (symfile_free_objfile): New function.
910 (_initialize_symfile): Register observer for free_objfile events.
911 * NEWS: Add description of the remove-symbol-file command.
912 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
913 * objfiles.c (free_objfile): Notify free_objfile.
914 (is_addr_in_objfile): New function.
915 * objfiles.h (is_addr_in_objfile): New declaration.
916 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
917 events instead of solib_unloaded events.
918 (_initialize_printcmd): Register observer for free_objfile instead
919 of solib_unloaded notifications.
920 * solib.c (remove_user_added_objfile): New function.
921 (_initialize_symfile): Add remove-symbol-file.
922
f69d9aef
AB
9232013-10-29 Andrew Burgess <aburgess@broadcom.com>
924
925 * infcmd.c (default_print_one_register_info): Use val_print to
926 print all values even optimized out or unavailable ones. Don't
927 try to print a raw form of optimized out or unavailable values.
928
487ad57c
YQ
9292013-10-29 Yao Qi <yao@codesourcery.com>
930
931 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
932 parameter 'arg' instead of from program_space_data.
933 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
934 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
935 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
936 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
937 * inflow.c (inflow_inferior_data_cleanup): Get data from
938 parameter 'arg' instead of inferior_data.
939 * registry.h: Add comments.
940
3c4797ba
PA
9412013-10-28 Pedro Alves <palves@redhat.com>
942
943 * breakpoint.c (watchpoints_triggered)
944 <!target_stopped_data_address>: Hardcode return 1.
945
cdaa5b73
PA
9462013-10-28 Pedro Alves <palves@redhat.com>
947
948 * infrun.c (process_event_stop_test): Remove unnecessary scoping
949 level and reindent.
950
94c57d6a
PA
9512013-10-28 Pedro Alves <palves@redhat.com>
952
953 * infrun.c (process_event_stop_test): New function, factored out
954 from handle_inferior_event.
955 (handle_inferior_event): 'process_event_stop_test' is now a
956 function instead of a goto label -- adjust.
957
fcf3daef
PA
9582013-10-28 Pedro Alves <palves@redhat.com>
959
960 * infrun.c (handle_inferior_event): Move process_event_stop_test
961 goto label to the else branch of the ecs->random_signal check,
962 along with FRAME and GDBARCH re-fetching.
963
c447ac0b
PA
9642013-10-28 Pedro Alves <palves@redhat.com>
965
966 * infrun.c (switch_back_to_stepped_thread): New function, factored
967 out from handle_inferior_event.
968 (handle_inferior_event): Adjust to call
969 switch_back_to_stepped_thread. Call it also at the tail of the
970 random signal handling, and return, instead of also handling
971 random signals just before the stepping tests.
972
f05e4c11
PA
9732013-10-28 Pedro Alves <palves@redhat.com>
974
975 * infrun.c (clear_stop_func): Delete.
976 (handle_inferior_event): Don't call clear_stop_func and don't
977 clear 'ecs->random_signal'.
978
ca20d462
YQ
9792013-10-27 Yao Qi <yao@codesourcery.com>
980
981 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
982 (varobj_create, varobj_get_path_expr): Update.
983 (varobj_value_has_mutated, varobj_update): Likewise.
984 (create_child_with_value, new_root_variable): Likewise.
985 (number_of_children, name_of_variable): Likewise.
986 (value_of_child, my_value_of_variable): Likewise.
987 (varobj_value_is_changeable_p): Likewise.
988
a53b64ea
YQ
9892013-10-25 Yao Qi <yao@codesourcery.com>
990
991 * language.h (struct lang_varobj_ops): Declare.
992 (struct language_defn) <la_varobj_ops>: New field.
993 * ada-lang.c: Include "varobj.h"
994 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
995 ada_varobj_ops.
996 * c-lang.c: Include "varobj.h"
997 (c_language_defn): Initialize field 'la_varobj_ops' with
998 c_varobj_ops.
999 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1000 cplus_varobj_ops.
1001 (asm_language_defn): Initialize field 'la_varobj_ops' with
1002 default_varobj_ops.
1003 (minimal_language_defn): Likewise.
1004 * d-lang.c (d_language_defn): Likewise.
1005 * f-lang.c (f_language_defn): Likewise.
1006 * go-lang.c (go_language_defn): Likewise.
1007 * m2-lang.c (m2_language_defn): Likewise.
1008 * objc-lang.c (objc_language_defn): Likewise.
1009 * opencl-lang.c (opencl_language_defn): Likewise.
1010 * p-lang.c (pascal_language_defn): Likewise.
1011 * language.c (unknown_language_defn): Likewise.
1012 (auto_language_defn): Likewise.
1013 (local_language_defn): Likewise.
1014 * jv-lang.c (java_language_defn): Initialize field
1015 'la_varobj_ops' with java_varobj_ops.
1016 * varobj.c (varobj_create): Update.
1017 * varobj.h (default_varobj_ops): Define macro.
1018
686d4def
PA
10192013-10-25 Pedro Alves <palves@redhat.com>
1020
1021 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1022 static field value.
1023 (cp_print_static_field): If the value is entirely optimized out,
1024 print <optimized out> here.
1025 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1026 static field value.
1027 * p-valprint.c (pascal_object_print_static_field): If the value is
1028 entirely optimized out, print <optimized out> here.
1029 * valops.c (do_search_struct_field)
1030 (value_struct_elt_for_reference): No longer handle a NULL static
1031 field value.
1032 * value.c (value_static_field): Return an optimized out value
1033 instead of NULL.
1034
6c177e28
YQ
10352013-10-25 Yao Qi <yao@codesourcery.com>
1036
1037 * remote.c (remote_traceframe_info): Return early if
1038 traceframe is not selected.
1039
98322bfa
YQ
10402013-10-25 Yao Qi <yao@codesourcery.com>
1041
1042 * tracepoint.c (traceframe_fun): Remove.
1043 (traceframe_sal): Remove.
1044 (set_traceframe_context): Add local variables.
1045
6ba1f115
JB
10462013-10-25 Joel Brobecker <brobecker@adacore.com>
1047
1048 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1049 and parameter name.
1050
bbe769cc
MR
10512013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1052
1053 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1054 failure from register information collection.
1055
72ee4495 10562013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1057
1058 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1059 member.
1060 (linux_corefile_thread_callback): Update accordingly.
1061 (linux_make_corefile_notes): Likewise.
1062
98882a26
PA
10632013-10-24 Pedro Alves <palves@redhat.com>
1064
1065 * NEWS (New options): Mention set/show startup-with-shell.
1066 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1067 instead of 3.
1068 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1069 startup-with-shell'.
1070 (show_startup_with_shell): New function.
1071 (_initialize_fork_child): Register the set/show startup-with-shell
1072 commands.
1073 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1074 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1075 * procfs.c (procfs_init_inferior): Remove comment.
1076 * infcmd.c (startup_with_shell): New global.
1077 * inferior.h (startup_with_shell): Declare global.
1078 (STARTUP_WITH_SHELL): Delete.
1079 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1080
c9737c08
PA
10812013-10-23 Pedro Alves <palves@redhat.com>
1082
1083 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1084 * common/signals.c: Include "gdb_assert.h".
1085 (signals): New field 'symbol'.
1086 (SET): Use the 'symbol' parameter.
1087 (gdb_signal_to_symbol_string): New function.
1088 * infrun.c (handle_inferior_event) <random signal>: In debug
1089 output, print the random signal enum as string in addition to its
1090 number.
1091 * target/waitstatus.c (target_waitstatus_to_string): Print the
1092 signal's enum value as string instead of the (POSIX) signal name.
1093
f60db4f0
GB
10942013-10-23 Gary Benson <gbenson@redhat.com>
1095
1096 PR 16013
1097 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1098 from 32 to 18. Adjusted fscanf format string accordingly.
1099 (Avoids leaving cmd unterminated.)
1100 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1101 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1102 that local_address and remote_address will not overflow.
1103 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1104 leaving dependencies unterminated. Parse size as "%u" to match
1105 definition.
1106
6d3e7a94
PA
11072013-10-22 Pedro Alves <palves@redhat.com>
1108
1109 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1110 set ecs->random signal.
1111
42ec045f
PA
11122013-10-22 Pedro Alves <palves@redhat.com>
1113
1114 * infrun.c (keep_going): Update comments.
1115
11162013-10-22 Pedro Alves <palves@redhat.com>
1117
1118 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1119 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1120
11212013-10-22 Pedro Alves <palves@redhat.com>
1122
1123 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1124 GDB_EXC_BAD_ACCESS.
1125 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1126 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1127 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1128 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1129 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1130 (GDB_SIGNAL_LAST): Change description string.
1131 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1132 Adjust to signal renaming.
1133 * darwin-nat.c (darwin_decode_message): Likewise.
1134
c8fde1b1
JM
11352013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1136
1137 * MAINTAINERS (Write After Approval): Add myself to the list.
1138
e8369a73
AB
11392013-10-18 Andrew Burgess <aburgess@broadcom.com>
1140
1141 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1142 forced off, downgrade them to software watchpoints if possible,
1143 and error out if not possible.
1144 (watch_command_1): Move watchpoint type selection closer to
1145 watchpoint creation, and extend the comments.
1146
776f04fa
PA
11472013-10-18 Pedro Alves <palves@redhat.com>
1148
1149 PR gdb/16062
1150 * infrun.c (handle_inferior_event): Keep going if we got a random
1151 signal we should not stop for, instead of falling through to the
1152 step tests.
1153
0c6faab5
YQ
11542013-10-18 Yao Qi <yao@codesourcery.com>
1155
1156 * c-varobj.c (cplus_number_of_children): Fix indentation.
1157
50b34a18
TT
11582013-10-17 Tom Tromey <tromey@redhat.com>
1159
1160 PR gdb/15995:
1161 * printcmd.c (printcmd): Call gdb_flush.
1162
5c4c8a59
TT
11632013-10-17 Tom Tromey <tromey@redhat.com>
1164
1165 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1166 (elf_locate_sections): Update.
1167
c4124bf1
YQ
11682013-10-17 Yao Qi <yao@codesourcery.com>
1169
1170 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1171 * ada-varobj.c: Remove the include of ada-varobj.h.
1172 (ada_varobj_get_number_of_children): Declare.
1173 (ada_varobj_get_name_of_child): Make it static.
1174 (ada_varobj_get_path_expr_of_child): Likewise.
1175 (ada_varobj_get_value_of_child): Likewise.
1176 (ada_varobj_get_type_of_child): Likewise.
1177 (ada_varobj_get_value_of_array_variable): Likewise.
1178 * ada-varobj.h: Remove.
1179
99ad9427
YQ
11802013-10-17 Yao Qi <yao@codesourcery.com>
1181
1182 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1183 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1184 * ada-varobj.c: Include "varobj.h".
1185 (ada_number_of_children): New. Moved from varobj.c.
1186 (ada_name_of_variable, ada_name_of_child): Likewise.
1187 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1188 (ada_type_of_child, ada_value_of_variable): Likewise.
1189 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1190 (ada_varobj_ops): New.
1191 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1192 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1193 * gdbtypes.h (get_target_type): Declare.
1194 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1195 "ada-lang.h".
1196 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1197 (ANONYMOUS_UNION_NAME): Likewise.
1198 (get_type, get_value_type, get_target_type): Remove declarations.
1199 (value_get_print_value, varobj_value_get_print_value): Likewise.
1200 (c_number_of_children, c_name_of_variable): Likewise.
1201 (c_name_of_child, c_path_expr_of_child): Likewise.
1202 (c_value_of_child, c_type_of_child): Likewise.
1203 (c_value_of_variable, cplus_number_of_children): Likewise.
1204 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1205 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1206 (cplus_value_of_child, cplus_type_of_child): Likewise.
1207 (cplus_value_of_variable, java_number_of_children): Likewise.
1208 (java_name_of_variable, java_name_of_child): Likewise.
1209 (java_path_expr_of_child, java_value_of_child): Likewise.
1210 (java_type_of_child, java_value_of_variable): Likewise.
1211 (ada_number_of_children, ada_name_of_variable): Likewise.
1212 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1213 (ada_value_of_child, ada_type_of_child): Likewise.
1214 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1215 (ada_value_has_mutated): Likewise.
1216 (struct language_specific): Move it to varobj.h.
1217 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1218 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1219 Callers update.
1220 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1221 Make it extern.
1222 (is_anonymous_child): Move it to c-varobj.c and rename to
1223 varobj_is_anonymous_child. Caller update.
1224 (get_type): Move it to c-varobj.c.
1225 (get_value_type): Rename it varobj_get_value_type. Make it
1226 extern.
1227 (get_target_type): Move it gdbtypes.c.
1228 (varobj_formatted_print_options): New function.
1229 (value_get_print_value): Rename it to
1230 varobj_value_get_print_value and make it extern.
1231 (varobj_value_is_changeable_p): Make it extern.
1232 (adjust_value_for_child_access): Move it to c-varobj.c.
1233 (default_value_is_changeable_p): Rename it to
1234 varobj_default_value_is_changeable_p. Make it extern.
1235 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1236 (c_name_of_child, c_path_expr_of_child): Likewise.
1237 (c_value_of_child, c_type_of_child): Likewise.
1238 (c_value_of_variable, cplus_number_of_children): Likewise.
1239 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1240 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1241 (cplus_value_of_child, cplus_type_of_child): Likewise.
1242 (cplus_value_of_variable): Likewise.
1243 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1244 (java_name_of_child, java_path_expr_of_child): Likewise.
1245 (java_value_of_child, java_type_of_child): Likewise.
1246 (java_value_of_variable): Likewise.
1247 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1248 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1249 (ada_value_of_child, ada_type_of_child): Likewise.
1250 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1251 (ada_value_has_mutated): Likewise.
1252 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1253 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1254 (c_varobj_ops, cplus_varobj_ops): Declare.
1255 (java_varobj_ops, ada_varobj_ops): Declare.
1256 (varobj_default_value_is_changeable_p): Declare.
1257 (varobj_value_is_changeable_p): Declare.
1258 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1259 (varobj_get_path_expr_parent): Declare.
1260 (varobj_value_get_print_value): Declare.
1261 (varobj_formatted_print_options): Declare.
1262 (varobj_restrict_range): Declare.
1263
c8a62302
LM
12642013-10-17 Luis Machado <lgustavo@codesourcery.com>
1265
1266 * target/waitstatus.h (target_waitkind): Remove spurious
1267 character from the comments.
1268
eade6471
JB
12692013-10-17 Joel Brobecker <brobecker@adacore.com>
1270
1271 * gdbarch.sh (get_longjmp_target): Add method documentation.
1272 * gdbarch.h: Regenerate.
1273
5411b26c
TT
12742013-10-16 Tom Tromey <tromey@redhat.com>
1275
1276 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1277 label.
1278
87326c87
LM
12792013-10-16 Luis Machado <lgustavo@codesourcery.com>
1280
1281 * gcore.in: Call GDB using the full path to the gcore script.
1282 Error out if the GDB binary is not found.
1283
fd0a4d76
SDJ
12842013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1285
1286 PR gdb/16014
1287 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1288 sizeof.
1289
d92f7ee3
SDJ
12902013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1291
1292 PR gdb/16042
1293 * target.c (target_disable_btrace): Fix invalid return value for
1294 void function.
1295 (target_teardown_btrace): Likewise.
1296
bb5ce47a
YQ
12972013-10-14 Yao Qi <yao@codesourcery.com>
1298
1299 * varobj.c (struct varobj): Move most of the fields to
1300 varobj.h.
1301 (struct varobj_dynamic): New struct.
1302 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1303 (varobj_has_more): Likewise.
1304 (dynamic_varobj_has_child_method): Likewise.
1305 (update_dynamic_varobj_children): Likewise.
1306 (varobj_get_num_children): Likewise.
1307 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1308 (install_new_value_visualizer): Likewise.
1309 (install_new_value_visualizer, install_new_value): Likewise.
1310 (varobj_update, new_variable, free_variable): Likewise.
1311 (my_value_of_variable, value_get_print_value): Likewise.
1312 (install_visualizer): Change the type of parameter 'var' to
1313 'struct varobjd_dynamic *'. Callers update.
1314 * varobj.h (struct varobj): Moved from varobj.c.
1315 (struct varobj) <dynamic>: New field.
1316
0b76b0ce
SL
13172013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1318
1319 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1320 as the preferred name of r30.
1321 * nios2-linux-tdep.c (reg_offsets): Likewise.
1322 * features/nios2-cpu.xml: Likewise.
1323 * features/nios2-linux.c: Regenerated.
1324 * features/nios2.c: Regenerated.
1325 * regformats/nios2-linux.dat: Regenerated.
1326
4856b6bc
JK
13272013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1328
1329 Canonicalize directories for EXEC_FILENAME.
1330 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1331 exec_filename.
1332 * utils.c (gdb_realpath_keepfile): New function.
1333 * utils.h (gdb_realpath_keepfile): New declaration.
1334
9b557b58
DE
13352013-10-11 Doug Evans <dje@google.com>
1336
1337 * Makefile.in (GDBFLAGS): New variable.
1338 (run): New rule.
1339
ce13fade
JB
13402013-10-11 Joel Brobecker <brobecker@adacore.com>
1341
1342 * NEWS: Add entry documenting the new "-catch-assert" and
1343 "-catch-exception" GDB/MI commands.
1344
349774ef
JB
13452013-10-11 Joel Brobecker <brobecker@adacore.com>
1346
1347 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1348 "enabled".
1349 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1350 "enabled". Set B->ENABLE_STATE accordingly.
1351 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1352 ada-lang.c.
1353 (create_ada_exception_catchpoint): Add declaration.
1354 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1355 (create_ada_exception_catchpoint): Make non-static. Add new
1356 parameter "disabled". Use it in call to
1357 init_ada_exception_breakpoint.
1358 (catch_ada_exception_command): Add parameter "enabled" in call
1359 to create_ada_exception_catchpoint.
1360 (catch_assert_command): Likewise.
1361
1362 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1363 Add declarations.
1364 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1365 "catch-exception" commands.
1366 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1367 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1368
761269c8
JB
13692013-10-11 Joel Brobecker <brobecker@adacore.com>
1370
1371 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1372 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1373 of all its enumerates with "ada_". Update the rest of this
1374 file throughout.
1375
b4a5b78b
JB
13762013-10-11 Joel Brobecker <brobecker@adacore.com>
1377
1378 * ada-lang.c (ada_decode_exception_location): Delete.
1379 (create_ada_exception_catchpoint): Remove arguments "sal",
1380 "addr_string" and "ops". Add argument "ex_kind" instead.
1381 Adjust implementation accordingly, calling ada_exception_sal
1382 to get the entities it no longer gets passed as arguments.
1383 Document the function's arguments.
1384 (catch_ada_exception_command): Use catch_ada_exception_command_split
1385 instead of ada_decode_exception_location, and update call to
1386 create_ada_exception_catchpoint.
1387 (catch_ada_assert_command_split): Renames
1388 ada_decode_assert_location. Remove parameters "addr_string" and
1389 "ops", and now returns void. Adjust implementation accordingly.
1390 Update the function documentation.
1391 (catch_assert_command): Use catch_ada_assert_command_split
1392 instead of ada_decode_assert_location. Update call to
1393 create_ada_exception_catchpoint.
1394
7ad1d32c 13952013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1396
1397 * utils.h (perror_warning_with_name): Add declaration.
1398 * utils.c (perror_warning_with_name): New function.
1399 * cli/cli-cmds.c (source_script_with_search): Add call to
1400 perror_warning_with_name if from_tty is nul.
1401
7ad1d32c 14022013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1403
1404 * utils.c (perror_string): New function, extracted out of
1405 throw_perror_with_name.
1406 (throw_perror_with_name): Rework to use perror_string.
1407
bcc75809
YQ
14082013-10-11 Yao Qi <yao@codesourcery.com>
1409
1410 * remote.c (discard_pending_stop_replies_in_queue): Update
1411 declaration.
1412 (struct stop_reply) <rs>: New field.
1413 (remove_stop_reply_of_remote_state): New function.
1414 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1415 Callers update. Pass remove_stop_reply_of_remote_state to
1416 QUEUE_iterate.
1417 (remote_parse_stop_reply): Initialize field 'rs'.
1418
05feb193
WN
14192013-10-10 Will Newton <will.newton@linaro.org>
1420
1421 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1422 linux_init_abi.
1423
0d12017b
JB
14242013-10-10 Joel Brobecker <brobecker@adacore.com>
1425
1426 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1427 serial_baud_show_cmd.
1428 (_initialize_cli_cmds): Delete the code creating the
1429 "set/show remotebaud" commands.
1430 * serial.c (baud_rate): Move here from top.c.
1431 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1432 (_initialize_serial): Create "set/show serial baud" commands.
1433 Add "set/show remotebaud" command aliases.
1434 * top.c (baud_rate): Moved to serial.c.
1435 * NEWS: Document the new "set/show serial baud" commands,
1436 replacing "set/show remotebaud".
1437
578d3588
PA
14382013-10-09 Pedro Alves <palves@redhat.com>
1439
1440 * breakpoint.c (insert_bp_location): Use memory_error_message to
1441 build the memory error string.
1442 * c-lang.c: Include "gdbcore.h".
1443 (c_get_string): Use memory_error to throw error.
1444 (target_xfer_memory_error): Delete.
1445 (memory_error_message): New, factored out from
1446 target_xfer_memory_error.
1447 (memory_error): Change parameter type to target_xfer_error.
1448 Rewrite.
1449 (read_memory): Use memory_error instead of
1450 target_xfer_memory_error.
1451 * gdbcore.h: Include "target.h".
1452 (memory_error): Change parameter type to target_xfer_error.
1453 (memory_error_message): Declare function.
1454 * target.c (target_read_memory, target_read_stack)
1455 (target_write_memory, target_write_raw_memory): Return
1456 TARGET_XFER_E_IO on error. Adjust comments.
1457 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1458 instead of EIO.
1459 * target.h (target_read, target_insert_breakpoint)
1460 (target_remove_breakpoint): Adjust comments.
1461 * valprint.c (partial_memory_read): Rename parameter, and adjust
1462 comment.
1463 (val_print_string): Use memory_error_message to build the memory
1464 error string.
1465
c74e1ccf
JK
14662013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1467
1468 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1469 result variable. Rename variable fopen_e_ever_failed to
1470 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1471
915215be
PA
14722013-10-09 Pedro Alves <palves@redhat.com>
1473
1474 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1475 (monitor_write_memory_longlongs, monitor_write_memory_block):
1476 Constify 'myaddr' parameter.
1477 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1478 helper.
1479 (monitor_xfer_partial): New function.
1480 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1481 hook. Install a to_xfer_partial hook.
1482
acd13123
TT
14832013-10-09 Tom Tromey <tromey@redhat.com>
1484
1485 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1486 bfd_get_alt_debug_link_info.
1487
40135bb1
JK
14882013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1489
1490 New flag OBJF_NOT_FILENAME.
1491 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1492 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1493 allocate_objfile.
1494 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1495 symbol_file_add_from_bfd.
1496 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1497 allocate_objfile.
1498 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1499 NULL.
1500 * objfiles.h (OBJF_NOT_FILENAME): New.
1501
dc294be5
TT
15022013-10-08 Tom Tromey <tromey@redhat.com>
1503
1504 * Makefile.in (SFILES): Add build-id.c.
1505 (HFILES_NO_SRCDIR): Add build-id.h.
1506 * build-id.c: New file, largely from elfread.c. Modified
1507 most functions.
1508 * build-id.h: New file.
1509 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1510 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1511 Search for dwz file using build-id.
1512 * elfread.c (build_id_bfd_get, build_id_verify)
1513 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1514
db230ce3
JB
15152013-10-08 Joel Brobecker <brobecker@adacore.com>
1516
1517 * ada-lang.c (compare_names_with_case): Renamed from
1518 compare_names, adding a new parameter "casing" and its handling.
1519 New function documentation.
1520 (compare_names): New function, implemented using
1521 compare_names_with_case.
1522
6501c98a
JB
15232013-10-08 Joel Brobecker <brobecker@adacore.com>
1524
1525 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1526
84a1243b
TT
15272013-10-07 Tom Tromey <tromey@redhat.com>
1528
1529 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1530 demangled_names_hash.
1531 (free_objfile): Don't delete the demangled_names_hash.
1532 * objfiles.h (struct objfile_per_bfd_storage)
1533 <demangled_names_hash>: New field.
1534 (struct objfile) <demangled_names_hash>: Move to
1535 objfile_per_bfd_storage.
1536 * symfile.c (reread_symbols): Don't delete the
1537 demangled_names_hash.
1538 * symtab.c (create_demangled_names_hash): Update.
1539 (symbol_set_names): Update.
1540
1da77581
TT
15412013-10-07 Tom Tromey <tromey@redhat.com>
1542
1543 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1544 needs_relocations>: New fields.
1545 (gdb_bfd_requires_relocations): New function.
1546 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1547 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1548 the BFD needs relocations applied.
1549
46ecd527
PA
15502013-10-07 Pedro Alves <palves@redhat.com>
1551
1552 PR breakpoints/11568
1553 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1554 the thread list" instead of "gone".
1555
0c557179
SDJ
15562013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1557
1558 * NEWS: Mention new convenience variable $_exitsignal.
1559 * corelow.c (core_open): Reset exit convenience variables. Set
1560 $_exitsignal to the uncaught signal which generated the corefile.
1561 * infrun.c (handle_inferior_event): Reset exit convenience
1562 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1563 (clear_exit_convenience_vars): New function.
1564 * inferior.h (clear_exit_convenience_vars): New prototype.
1565
1cc47d81
YQ
15662013-10-06 Yao Qi <yao@codesourcery.com>
1567
1568 * varobj.h: Add comments to enum varobj_languages.
1569
73869dc2
DE
15702013-10-04 Doug Evans <dje@google.com>
1571
1572 Add support for DWP file format version 2.
1573 * NEWS: Mention support for DWP file format version 2.
1574 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1575 union of asection, containing_section. New fields virtual_offset
1576 and is_virtual. Change type of readin filed from int to char.
1577 (dwo_sections, dwo_file): Tweak comments.
1578 (dwp_v2_section_ids): New enum.
1579 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1580 str_offsets, types.
1581 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1582 All uses updated.
1583 (virtual_v2_dwo_sections): New struct.
1584 (dwp_hash_table): New fields version, nr_columns. Change type of
1585 section_pool field to a union.
1586 (dwp_file): New field version.
1587 (dwarf2_has_info): Check for virtual sections.
1588 (get_containing_section): New function.
1589 (get_section_bfd_owner, get_section_bfd_section): Call it.
1590 (dwarf2_locate_sections): Update.
1591 (dwarf2_section_empty_p): Update.
1592 (dwarf2_read_section): Handle virtual sections.
1593 (locate_dwz_sections): Update.
1594 (create_dwp_hash_table): Document and handle V2 format.
1595 (locate_v1_virtual_dwo_sections): Renamed from
1596 locate_virtual_dwo_sections and update. All callers updated.
1597 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1598 Delete arg htab. Rename arg section_index to unit_index.
1599 All callers updated.
1600 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1601 All uses updated.
1602 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1603 (lookup_dwo_unit_in_dwp): Add V2 support.
1604 (dwarf2_locate_dwo_sections): Update.
1605 (dwarf2_locate_common_dwp_sections): Renamed from
1606 dwarf2_locate_dwp_sections and update. All callers updated.
1607 (dwarf2_locate_v2_dwp_sections): New function.
1608 (open_and_init_dwp_file): Add V2 support.
1609 (read_str_index): New locals str_section, str_offsets_section.
1610
9a2c3737
PA
16112013-10-04 Pedro Alves <palves@redhat.com>
1612
1613 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1614 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1615 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1616 describing comments with references to ptid.h.
1617 * common/ptid.h: Remove intro description of constructors,
1618 accessors and predicates.
1619 (struct ptid): Reformat.
1620 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1621 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1622 describing comments.
1623
f5371440
JB
16242013-10-04 Joel Brobecker <brobecker@adacore.com>
1625
1626 * aix-thread.c (sync_threadlists): Add missing ')' in call
1627 to ptid_build.
1628
793e1c06
JB
16292013-10-04 Joel Brobecker <brobecker@adacore.com>
1630
1631 * procfs.c (procfs_init_inferior): Fix typo causing the build
1632 to fail.
1633
26f0edc1
JB
16342013-10-04 Joel Brobecker <brobecker@adacore.com>
1635
1636 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1637
5713b9b5
JB
16382013-10-04 Joel Brobecker <brobecker@adacore.com>
1639
1640 * mi/mi-main.c (run_one_inferior): Add function description.
1641 Make ARG a pointer to an integer whose value determines whether
1642 we should "run" or "start" the program.
1643 (mi_cmd_exec_run): Add handling of the "--start" option.
1644 Reject all other command-line options.
1645 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1646
f48ff2a7
YQ
16472013-10-04 Yao Qi <yao@codesourcery.com>
1648
1649 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1650 (struct notif_client) <pending_event>: Moved
1651 to struct remote_notif_state.
1652 <id>: New field.
1653 (struct remote_notif_state) <pending_event>: New field.
1654 (notif_event_xfree): Declare.
1655 * remote-notif.c (handle_notification): Adjust.
1656 (notif_event_xfree): New function.
1657 (do_notif_event_xfree): Call notif_event_xfree.
1658 (remote_notif_state_xfree): Call notif_event_xfree to free
1659 each element in field pending_event.
1660 * remote.c (discard_pending_stop_replies): Remove declaration.
1661 (discard_pending_stop_replies_in_queue): Declare.
1662 (remote_close): Call discard_pending_stop_replies_in_queue
1663 instead of discard_pending_stop_replies.
1664 (remote_start_remote): Adjust.
1665 (stop_reply_xfree): Call notif_event_xfree.
1666 (notif_client_stop): Adjust initialization.
1667 (remote_notif_remove_all): Rename it to ...
1668 (remove_stop_reply_for_inferior): ... this. Update comments.
1669 Don't check INF is NULL.
1670 (discard_pending_stop_replies): Return early if notif_state is
1671 NULL. Adjust. Don't check INF is NULL.
1672 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 1673 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
1674 (remote_wait_ns): Likewise.
1675
5965e028
YQ
16762013-10-04 Yao Qi <yao@codesourcery.com>
1677
1678 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1679 (notif_queue): Remove.
1680 (remote_notif_process): Add one parameter 'notif_queue'.
1681 Update comments. Callers update.
1682 (remote_async_get_pending_events_token): Remove.
1683 (remote_notif_register_async_event_handler): Remove.
1684 (remote_notif_unregister_async_event_handler): Remove.
1685 (handle_notification): Add parameter 'notif_queue'. Update
1686 comments. Callers update.
1687 (notif_xfree): Remove.
1688 (remote_notif_state_allocate): New function.
1689 (remote_notif_state_xfree): New function.
1690 (_initialize_notif): Remove code to allocate queue.
1691 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1692 (struct remote_notif_state): New.
1693 (handle_notification): Update declaration.
1694 (remote_notif_process): Likewise.
1695 (remote_notif_register_async_event_handler): Remove.
1696 (remote_notif_unregister_async_event_handler): Remove.
1697 (remote_notif_state_allocate): Declare.
1698 (remote_notif_state_xfree): Declare.
1699 * remote.c (struct remote_state) <notif_state>: New field.
1700 (remote_close): Don't call
1701 remote_notif_unregister_async_event_handler. Call
1702 remote_notif_state_xfree.
1703 (remote_open_1): Don't call
1704 remote_notif_register_async_event_handler. Call
1705 remote_notif_state_allocate.
1706
5e5ac9a5
YQ
17072013-10-04 Yao Qi <yao@codesourcery.com>
1708
1709 * varobj.c (create_child_with_value): Remove 'const' from the
1710 type of parameter 'name'.
1711 (varobj_add_child): Likewise.
1712 (install_dynamic_child): Remove 'const' from the type of
1713 parameter 'name'.
1714 (varobj_add_child): Likewise.
1715 (create_child_with_value): Likewise. Update comments. Don't
1716 duplicate 'name'.
1717 (update_dynamic_varobj_children): Duplicate 'name'
1718 and pass it to install_dynamic_child.
1719
06ab7b19
PM
17202013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1721
1722 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1723 conversion logic to occur after PyLong_Check. Comment on order
1724 change significance.
1725 * python/py-arch.c (archpy_disassemble): Comment on order of
1726 conversion for integers and longs.
1727
8ae377e8
PA
17282013-10-03 Pedro Alves <palves@redhat.com>
1729
1730 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1731 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1732 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1733 PTRACE_O_TRACEFORK is not supported.
1734 (linux_test_for_tracesysgood): New function.
1735 (linux_test_for_tracefork): New function, factored out from
1736 linux_check_ptrace_features, and also don't kill child_pid here.
1737
b1328b1b
TG
17382013-10-03 Tristan Gingold <gingold@adacore.com>
1739
1740 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1741 Remove verbose error reporting. Use detected state to
1742 thread_set_state call.
1743 (i386_darwin_dr_get): Fix return type. Remove verbose error
1744 report.
1745 Remove trailing spaces.
1746
901461f8
PA
17472013-10-02 Pedro Alves <palves@redhat.com>
1748
1749 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1750 val_print_optimized_out.
1751 * jv-valprint.c (java_print_value_fields): Likewise.
1752 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1753 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1754 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1755 new optimized out value.
1756 * findvar.c (address_from_register): Likewise.
1757 * frame.c (put_frame_register): Tweak error string to say the
1758 register was not saved, rather than optimized out.
1759 * infcmd.c (default_print_one_register_info): Adjust call to
1760 val_print_optimized_out. Use value_of_register instead of
1761 get_frame_register_value.
1762 * mi/mi-main.c (output_register): Use value_of_register instead of
1763 get_frame_register_value.
1764 * valprint.c (valprint_check_validity): Likewise.
1765 (val_print_optimized_out): New value parameter. If the value is
1766 lval_register, print <not saved> instead.
1767 (value_check_printable, val_print_scalar_formatted): Adjust calls
1768 to val_print_optimized_out.
1769 * valprint.h (val_print_optimized_out): New value parameter.
1770 * value.c (struct value) <optimized_out>: Extend comment.
1771 (error_value_optimized_out): New function.
1772 (require_not_optimized_out): Use it. Use a different string for
1773 lval_register values.
1774 * value.h (error_value_optimized_out): New declaration.
1775 * NEWS: Mention <not saved>.
1776
042a84d9
JB
17772013-10-02 Joel Brobecker <brobecker@adacore.com>
1778
1779 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1780 strcmp to compare two symtab filenames.
1781
6b9780fb
JB
17822013-10-02 Joel Brobecker <brobecker@adacore.com>
1783
1784 * symtab.c (search_symbols_equal): Delete.
1785 (sort_search_symbols_remove_dups): Replace call to
1786 search_symbols_equal by call to compare_search_syms,
1787 adjusting as necessary.
1788
751e7549
PM
17892013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1790
1791 PR python/15579
751e7549
PM
1792 * python/python.c: Document gdb.execute command in Python help.
1793
1efd7661
PM
17942013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1795
1796 * python/py-frame.c (frame_info_to_frame_object): Use
1797 gdbpy_convert_exception. Clean up Python object on failure.
1798
562fc849
PM
17992013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1800
1801 * python/lib/gdb/command/frame_filters.py
1802 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1803 (ShowFrameFilterPriority.invoke): Ditto.
1804
d7561cbb
KS
18052013-10-01 Keith Seitz <keiths@redhat.com>
1806
1807 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1808 (parse_linespec): Make 'argptr' const.
1809 Remove temporary cast of 'argptr' to const char **.
1810 (decode_line_full): Pass const pointer to parse_linespec.
1811 (decode_line_1): Likewise.
1812 (decode_objc): Make local variable 'new_argptr' const.
1813 (find_function_symbols): Remove temporary cast to char *
1814 to find_imps.
1815 * objc-lang.c (find_imps): Make argument 'method' const.
1816 Return const.
1817 * objc-lang.h (find_imps): Likewise.
1818
18192013-10-01 Keith Seitz <keiths@redhat.com>
1820
1821 * completer.c (skip_quoted_chars): Make all arguments const.
1822 Return const.
1823 (skip_quoted): Likewise.
1824 * completer.h (skip_quoted_chars): Likewise.
1825 (skip_quoted): Likewise.
1826 * defs.h (skip_quoted): Remove duplicate declaration.
1827 * jv-exp.y: Include completer.h.
1828 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1829 * p-exp.y: Include completer.h.
1830
18312013-10-01 Keith Seitz <keiths@redhat.com>
1832
1833 * c-exp.y (parse_number): Make first argument const.
1834 Make a copy of the input to manipulate.
1835 (c_parse_escape): Make first argument const.
1836 Make local variable 'tokptr' const.
1837 (parse_string_or_char): Make first two arguments const.
1838 (macro_original_text): Make const.
1839 (lex_one_token): Make local variable 'tokstart' const.
1840 Likewise for local variables named 'p'.
1841 Cast away const for struct stoken (temporary).
1842 * c-lang.h (c_parse_escpae): Make first argument const.
1843 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1844 const.
1845 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1846 var_string case.
1847 * f-exp.y (parse_number): Make first argument const.
1848 (match_string_literal): Make local variable 'tokstart'
1849 const.
1850 (yylex): Make local variable 'p' const.
1851 Cast away const for struct stoken (temporary).
1852 * go-exp.y (parse_number): Make first argument const.
1853 (parse_string_or_char): Likewise.
1854 Make local variable 'tokstart' const.
1855 (lex_one_token): Likewise for numerous locals called 'p'.
1856 Cast away const for struct stoken (temporary).
1857 * jv-exp.y (parse_number): Make first argument const.
1858 Make local variables 'tokstart' and 'tokptr' const.
1859 Cast away const for call to skip_quoted (temporary).
1860 (yylex): Make local variable 'p' const.
1861 Cast away const for struct stoken (temporary).
1862 * m2-exp.y (parse_number): Make local variable 'p' const.
1863 (yylex): Likewise for 'tokstart'.
1864 Cast away const for struct stoken (temporary).
1865 Make local variable 'p' const.
1866 * macroexp.c (get_character_constant): Pass a const string
1867 to c_parse_escape.
1868 (get_string_literal): Likewise.
1869 (macro_expand_next): Make first argument const.
1870 Cast away const for init_shared_buffer.
1871 * macroexp.h (macro_expand_next): Make first argument const.
1872 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1873 Pass a const string to c_parse_escape.
1874 Make local variables 'p' and 'namestart' const.
1875 * parse.c (lexptr): Make const.
1876 (prev_lexptr): Likewise.
1877 (find_template_name_end): Return const.
1878 Make argument const, too.
1879 (parse_exp_in_context): Make first argument const.
1880 Remove the entire const_hack.
1881 (parse_exp_in_context_1): Make first argument const.
1882 * parser-defs.h (find_template_name_end): Return const.
1883 Make argument const, too.
1884 (lexptr): Make const.
1885 (prev_lexptr): Likewise.
1886 * utils.c (parse_escape): Make second argument const.
1887 * utils.h (parse_escape): Likewise.
1888
18892013-10-01 Keith Seitz <keiths@redhat.com>
1890
1891 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1892 is now const.
1893 (block_lookup): Make 'raw_name' and 'name' const.
1894 * ada-lex.l (processString): Update for struct stoken.ptr.
1895 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1896 (operator_stoken): Likewise.
1897 (lex_one_token): Remove temporary cast to char * for
1898 'yylval.sval.ptr'.
1899 * f-exp.y (yylex): Likewise.
1900 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1901 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1902 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1903 'yylval.sval.ptr'.
1904 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1905 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1906 * linespec.c (struct ls_parser): Make 'stream' const.
1907 (find_parameter_list_end): Make argument 'input' and local
1908 variable 'p' const.
1909 (linespec_lexer_lex_string): Make local variables 'start' and
1910 'p' const.
1911 Use skip_spaces_const instead of skip_spaces.
1912 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1913 const.
1914 (parse_linespec): Temporarily cast 'argptr' to const for
1915 'parser->lexer.stream'.
1916 * m2-exp.y (yylex): Remove temporary cast to char * for
1917 'yylval.sval.ptr'.
1918 * objc-lang.c (add_msglist): Make local variable 'p' const.
1919 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1920 (exp : STRING): Make 'sp' const.
1921 (parse_number): Make argument 'p' const.
1922 * parser-defs.h (struct stoken): Make 'ptr' const.
1923
193a8eac
DE
19242013-10-01 Doug Evans <dje@google.com>
1925
1926 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1927
2213e2be
YQ
19282013-10-01 Yao Qi <yao@codesourcery.com>
1929
1930 * varobj.c (c_value_of_root): Remove declaration.
1931 (cplus_value_of_root, java_value_of_root): Likewise.
1932 (ada_value_of_root): Likewise.
1933 (struct language_specific) <value_of_root>: Remove.
1934 (languages): Update initialization.
1935 (check_scope): Move earlier.
1936 (c_value_of_root): Move earlier and rename to ...
1937 (value_of_root_1): ... this.
1938 (value_of_root): Caller update.
1939 (cplus_value_of_root, java_value_of_root): Remove.
1940 (ada_value_of_root): Remove.
1941
c573f273
YQ
19422013-10-01 Yao Qi <yao@codesourcery.com>
1943
1944 * varobj.c (varobj_format_string): Remove "unknown".
1945 (languages): Remove the first element.
1946 * varobj.h (enum varobj_languages): Remove vlang_c.
1947
56250258
YQ
19482013-10-01 Yao Qi <yao@codesourcery.com>
1949
1950 * varobj.c (struct language_specific) <language>: Remove.
1951 (languages): Update the initialization.
1952
29f9ebfa
YQ
19532013-10-01 Yao Qi <yao@codesourcery.com>
1954
1955 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1956 "solib-target.h". Include "windows-tdep.h".
1957 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1958 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1959 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1960 windows-tdep.o to gdb_target_obs.
1961
64870a42
YQ
19622013-10-01 Yao Qi <yao@codesourcery.com>
1963
1964 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1965 "solib-target.h".
1966 (amd64_windows_init_abi): Don't call set_solib_ops and
1967 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1968 windows_init_abi instead.
1969 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1970 "solib-target.h".
1971 (i386_cygwin_init_abi): Don't call set_solib_ops,
1972 set_gdbarch_has_dos_based_file_system and
1973 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1974 windows_init_abi instead.
1975 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1976 (windows_init_abi): New function.
1977 (windows_iterate_over_objfiles_in_search_order): Make it
1978 static.
1979 * windows-tdep.h (windows_init_abi): Declare.
1980 (windows_iterate_over_objfiles_in_search_order): Remove
1981 declaration.
1982
0aebdefa
JB
19832013-10-01 Jerome Guitton <guitton@adacore.com>
1984
1985 Checked in by Joel Brobecker <brobecker@adacore.com>
1986 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1987 incomplete dictionnary instead of None in case of missing
1988 environment variables.
1989 (elinos_init): in case of an incomplete environment, best
1990 effort to load system libraries instead of abort.
1991
1c8e84b0
JB
19922013-10-01 Joel Brobecker <brobecker@adacore.com>
1993
1994 * ada-lang.c (ada_has_this_exception_support): Ignore
1995 mst_solib_trampoline minimal symbols.
1996
61d82a0d
TG
19972013-09-30 Tristan Gingold <gingold@adacore.com>
1998
1999 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2000 hardware watchpoint.
2001 (i386_darwin_dr_set): Support 32 and 64 bit states.
2002 (i386_darwin_dr_get): Likewise.
2003 (i386_darwin_dr_set_control): Make static.
2004 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2005 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2006
dfd4cc63
LM
20072013-09-30 Luis Machado <lgustavo@codesourcery.com>
2008
2009 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2010 Replace TIDGET with ptid_get_lwp.
2011 Replace GET_LWP with ptid_get_lwp.
2012 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2013 Replace BUILD_THREAD with ptid_build.
2014 Replace BUILD_LWP with ptid_build.
2015 Replace PIDGET with ptid_get_pid.
2016 Replace TIDGET with ptid_get_lwp.
2017 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2018 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2019 Replace TIDGET with ptid_get_lwp.
2020 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2021 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2022 Replace TIDGET with ptid_get_lwp.
2023 Replace GET_LWP with ptid_get_lwp.
2024 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2025 * auxv.c: Likewise.
2026 * breakpoint.c: Likewise.
2027 * common/ptid.c (ptid_is_pid): Condense check for
2028 null_ptid and minus_one_ptid.
2029 (ptid_lwp_p): New function.
2030 (ptid_tid_p): New function.
2031 * common/ptid.h: Update comments for accessors.
2032 (ptid_lwp_p): New prototype.
2033 (ptid_tid_p): New prototype.
2034 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2035 * gcore.c: Replace PIDGET with ptid_get_pid.
2036 * gdbthread.h: Likewise.
2037 * gnu-nat.c: Likewise.
2038 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2039 Replace TIDGET with ptid_get_lwp.
2040 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2041 * hppanbsd-nat.c: Likewise.
2042 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2043 Replace TIDGET with ptid_get_lwp.
2044 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2045 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2046 * infcmd.c: Likewise.
2047 * inferior.h: Likewise.
2048 * inflow.c: Likewise.
2049 * infrun.c: Likewise.
2050 * linux-fork.c: Likewise.
2051 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2052 Replace GET_PID with ptid_get_pid.
2053 Replace is_lwp with ptid_lwp_p.
2054 Replace GET_LWP with ptid_get_lwp.
2055 Replace BUILD_LWP with ptid_build.
2056
5b4e221c
MF
20572013-09-28 Mike Frysinger <vapier@gentoo.org>
2058
2059 * common/linux-btrace.c: Move sys/syscall.h out of the
2060 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2061 Also check for SYS_perf_event_open before attempting to buid.
2062
57d63ce2
DE
20632013-09-27 Doug Evans <dje@google.com>
2064
19ac8c2e
DE
2065 * dwarf2read.c (dwarf2_section_info): Add comment.
2066 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2067 All uses updated.
2068 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2069 (dwarf2_read_section): Delete unused local "header". Add section
2070 name to error message.
2071 (create_dwo_in_dwp): Tweak comment.
2072 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2073
a32a8923
DE
2074 * dwarf2read.c (die_reader_specs): Tweak comment.
2075 (get_section_bfd_owner, get_section_bfd_section): New functions.
2076 (get_section_name, get_section_file_name): New functions.
2077 (get_section_id, get_section_flags): New functions.
2078 (*): Use new functions to access section fields.
2079
57d63ce2
DE
2080 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2081 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2082 arg "htab". All callers updated.
2083 (create_debug_types_hash_table): Remove redundant copy of
2084 abbrev_section.
2085 (create_dwo_in_dwp): Tweak comments.
2086 (read_str_index): Tweak comment. Record dwarf form name in static
2087 local.
2088
3736004f
PA
20892013-09-27 Pedro Alves <palves@redhat.com>
2090
2091 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2092 (remote_filename_p): Add comment.
2093 * remote.c (remote_filename_p): Adjust to use
2094 REMOTE_SYSROOT_PREFIX.
2095 * solib.c (solib_find): When deciding whether we need to add a
2096 directory separator, check whether the sysroot is "remote:"
2097 instead of checking whether the patch has a drive spec. Add
2098 comments.
2099
5b5596ff
PA
21002013-09-27 Pedro Alves <palves@redhat.com>
2101
2102 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2103 Delete fields.
2104 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2105 directly.
2106
b5eef7aa
JK
21072013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2108
2109 Fix set debug frame output.
2110 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2111 SENTINEL_FRAME entry lower to match enum frame_type order.
2112
5b856f36
PM
21132013-09-26 Pierre Muller <muller@sourceware.org>
2114
2115 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2116 AMD64_R15_REGNUM when a register index is expected.
2117 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2118 Substitute in array.
2119 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2120 (amd64_push_arguments): Substitute in integer_regnum array.
2121
ade7ed9e
DE
21222013-09-25 Doug Evans <dje@google.com>
2123
d3e81981
DE
2124 * objfiles.c (allocate_objfile): Move comment to better place.
2125
8fb8eb5c
DE
2126 New option "set debug symfile on".
2127 * NEWS: Mention "set debug symfile".
2128 * Makefile.in (SFILES): Add symfile-debug.c.
2129 (COMMON_OBS): Add symfile-debug.o.
2130 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2131 objfile's symbol functions.
2132 * objfiles.h (objfile_set_sym_fns): Declare.
2133 * symfile-debug.c: New file.
2134 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2135 objfile's symbol functions.
2136 (reread_symbols): Ditto.
2137
c256e171
DE
2138 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2139 All uses updated.
2140 (add_symtab_fns): Update prototype.
2141 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2142 (registered_sym_fns): ... this.
2143 (symtab_fns): Update.
2144 (add_symtab_fns): New arg "flavour". All callers updated.
2145 (find_sym_fns): Rewrite to use new sym_fns registry.
2146
f56ce883
DE
2147 * symfile.h (struct sym_fns): Add "objfile" argument to
2148 sym_read_linetable. All uses updated.
2149
20c681d1
DE
2150 * symtab.c (domain_name, search_domain_name): New functions.
2151 * symtab.h (domain_name, search_domain_name): Declare.
2152
ade7ed9e
DE
2153 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2154 map_matching_symbols so objfile is first. All uses updated.
2155 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2156 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2157
7d760051
UW
21582013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2159
2160 PR shlibs/8882
2161 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2162 link map entries.
2163
020f7036
DE
21642013-09-24 Doug Evans <dje@google.com>
2165
2166 * objfiles.c (free_objfile): Move comment.
2167
598402f0
JB
21682013-09-24 Joel Brobecker <brobecker@adacore.com>
2169
2170 * ada-exp.y (string_to_operator): Delete.
2171 (dummy_string_to_ada_operator): Delete.
2172
bf4d6c1c
JB
21732013-09-24 Joel Brobecker <brobecker@adacore.com>
2174
2175 Revert:
2176 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2177 amd64-tdep.c.
2178 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2179 call_dummy_integer_regs, and classify.
2180 * amd64-tdep.h (amd64_classify): Add declaration.
2181 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2182 (amd64_reg_class): Delete, moved to i386-tdep.h.
2183 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2184 Replace call to amd64_classify by call to tdep->classify.
2185 (amd64_push_arguments): Get the list of registers to use for
2186 passing integer parameters from the gdbarch tdep structure,
2187 rather than using a hardcoded one. Replace calls to amd64_classify
2188 by calls to tdep->classify.
2189 (amd64_push_dummy_call): Get the register number used for
2190 the "hidden" argument from tdep->call_dummy_integer_regs.
2191 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2192 and tdep->call_dummy_integer_regs. Set tdep->classify.
2193
849e9755
JB
21942013-09-24 Joel Brobecker <brobecker@adacore.com>
2195
2196 Revert:
2197 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2198 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2199 where tdep->memory_args_by_pointer is non-zero.
2200
c1459fd6
JB
22012013-09-24 Joel Brobecker <brobecker@adacore.com>
2202
2203 Revert:
2204 * i386-tdep.h (struct gdbarch_tdep): Add new field
2205 integer_param_regs_saved_in_caller_frame.
2206 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2207 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2208
20c2e3e0
JB
22092013-09-24 Joel Brobecker <brobecker@adacore.com>
2210
874440b8 2211 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2212 (amd64_windows_classify): Delete.
2213 (amd64_windows_passed_by_integer_register)
2214 (amd64_windows_passed_by_xmm_register)
2215 (amd64_windows_passed_by_pointer)
2216 (amd64_windows_adjust_args_passed_by_pointer)
2217 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2218 (amd64_windows_push_dummy_call): New functions.
2219 (amd64_windows_init_abi): Remove setting of
2220 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2221 tdep->classify, tdep->memory_args_by_pointer and
2222 tdep->integer_param_regs_saved_in_caller_frame.
2223 Add call to set_gdbarch_push_dummy_call.
2224
82bf32bc
JK
22252013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2226
2227 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2228 objfile->original_name.
2229
24ba069a
JK
22302013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2231
2232 Pass down original filename for objfile.
2233 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2234 * elfread.c (elf_symfile_read): Likewise.
2235 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2236 longer set ORIGINAL_NAME.
2237 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2238 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2239 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2240 symbol_file_add_from_bfd call.
2241 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2242 (macho_check_dsym): Add parameter filenamep. Change function comment.
2243 Set *filenamep.
2244 (macho_symfile_read): New variable dsym_filename. Update
2245 macho_check_dsym call. Use it for symbol_file_add_separate.
2246 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2247 it. Use it for objfile->original_name.
2248 (objfile_name): Return OBFD's filename, if available.
2249 * objfiles.h (allocate_objfile): Add new parameter name.
2250 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2251 * symfile-mem.c (symbol_file_add_from_memory): Update
2252 symbol_file_add_from_bfd call.
2253 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2254 comment for it.
2255 (symbol_file_add_with_addrs): New parameter name, add function comment
2256 for it. Remove variable name. Update allocate_objfile call.
2257 (symbol_file_add_separate): New parameter name, add function comment
2258 for it. Update symbol_file_add_with_addrs call.
2259 (symbol_file_add_from_bfd): New parameter name. Update
2260 symbol_file_add_with_addrs call.
2261 (symbol_file_add): Update symbol_file_add_from_bfd call.
2262 (reread_symbols): New variable original_name. Save
2263 objfile->original_name by it.
2264 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2265 second parameter.
2266
4262abfb
JK
22672013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2268
2269 Code cleanup: Add objfile_name accessor function.
2270 * ada-lang.c (is_known_support_routine): Use objfile_name.
2271 * auto-load.c (source_gdb_script_for_objfile)
2272 (auto_load_objfile_script): Likewise.
2273 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2274 * dbxread.c (dbx_symfile_read): Likewise.
2275 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2276 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2277 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2278 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2279 (lookup_dwp_signatured_type, lookup_dwo_unit)
2280 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2281 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2282 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2283 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2284 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2285 (read_subrange_type, load_partial_dies, read_partial_die)
2286 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2287 (die_containing_type, build_error_marker_type, lookup_die_type)
2288 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2289 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2290 (get_DW_AT_signature_type, write_psymtabs_to_index)
2291 (save_gdb_index_command): Likewise.
2292 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2293 Likewise.
2294 * expprint.c (dump_subexp_body_standard): Likewise.
2295 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2296 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2297 original_name.
2298 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2299 obj_name, use objfile_name for it, use the variable.
2300 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2301 Use objfile_name.
2302 * machoread.c (macho_symtab_read, macho_check_dsym)
2303 (macho_symfile_relocate): Likewise.
2304 * maint.c (maintenance_translate_address): Likewise.
2305 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2306 * minsyms.c (install_minimal_symbols): Likewise.
2307 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2308 original_name.
2309 (filter_overlapping_sections): Use objfile_name.
2310 (objfile_name): New function.
2311 * objfiles.h (struct objfile): Rename field name to original_name.
2312 (objfile_name): New prototype.
2313 * printcmd.c (sym_info, address_info): Use objfile_name.
2314 * probe.c (parse_probes, collect_probes, compare_probes)
2315 (info_probes_for_ops): Likewise.
2316 * progspace.c (clone_program_space): Likewise.
2317 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2318 (maintenance_info_psymtabs): Likewise.
2319 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2320 (source_section_scripts): Likewise.
2321 * python/py-objfile.c (objfpy_get_filename): Likewise.
2322 * python/py-progspace.c (pspy_get_filename): Likewise.
2323 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2324 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2325 * solib.c (solib_read_symbols): Likewise.
2326 * stabsread.c (scan_file_globals): Likewise.
2327 * stap-probe.c (handle_stap_probe): Likewise.
2328 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2329 (find_separate_debug_file_by_debuglink): Likewise.
2330 (reread_symbols): Likewise. Use the objfile field name renamed to
2331 original_name.
2332 (allocate_symtab): Use objfile_name.
2333 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2334 (dump_objfile, dump_msymbols, dump_symtab_1)
2335 (maintenance_print_msymbols, maintenance_print_objfiles)
2336 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2337 * target.c (target_translate_tls_address, target_info): Likewise.
2338 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2339 objfile_name.
2340
4721dc18
JK
23412013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2342
2343 Code cleanup.
2344 * probe.c (parse_probes): Rename variable objfile_name to
2345 objfile_namestr.
2346
a61d6db8
JK
23472013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2348
2349 Remove solib-sunos.c.
2350 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2351 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2352 * objfiles.c (rt_common_objfile): Remove.
2353 (free_objfile): Remove rt_common_objfile comparison.
2354 * objfiles.h (rt_common_objfile): Remove.
2355 * solib-sunos.c: Remove.
2356 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2357
2659903b
JK
23582013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2359
2360 Remove a.out NetBSD and OpenBSD hosts.
2361 * NEWS (Removed native configurations): New.
2362 * config/arm/nbsdaout.mh: Remove.
2363 * config/i386/nbsdaout.mh: Remove.
2364 * config/i386/obsdaout.mh: Remove.
2365 * config/m68k/nbsdaout.mh: Remove.
2366 * config/sparc/nbsdaout.mh: Remove.
2367 * config/vax/nbsdaout.mh: Remove.
2368 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2369 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2370 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2371 error.
2372 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2373 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2374 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2375
f60e2d5c
TT
23762013-09-23 Tom Tromey <tromey@redhat.com>
2377
2378 * linespec.c (struct minsym_and_objfile): Remove.
2379 (minsym_and_objfile_d): Remove.
2380 (struct linespec, struct collect_info, linespec_parse_basic)
2381 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2382 (compare_msymbols, find_method, find_function_symbols)
2383 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2384 (add_minsym, search_minsyms_for_name): Update.
2385
d3eaaf66
AB
23862013-09-23 Andrew Burgess <aburgess@broadcom.com>
2387
2388 * regcache.c: Add include of valprint.h.
2389 (dump_endian_bytes): Delete.
2390 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2391
2cc762b5
AB
23922013-09-23 Andrew Burgess <aburgess@broadcom.com>
2393
2394 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2395
96181529
PA
23962013-09-19 Pedro Alves <palves@redhat.com>
2397
2398 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2399 breakpoints.
2400
9b3f3ee6
TS
24012013-09-19 Pedro Alves <palves@redhat.com>
2402 Thomas Schwinge <thomas@codesourcery.com>
2403 Yue Lu <hacklu.newborn@gmail.com>
2404
2405 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2406 Take a gdb_byte pointer instead of a char pointer.
2407
2408 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2409 gnu_xfer_partial helper.
2410 (gnu_xfer_partial): New function.
2411 (gnu_target): Don't install a deprecated_xfer_memory hook.
2412 Install a to_xfer_partial hook.
2413
69150c3d
JK
24142013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2415
2416 Constification.
2417 * main.c (captured_main): Replace catch_command_errors by
2418 catch_command_errors_const. Twice.
2419 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2420 (symbol_file_add): Make name parameter const.
2421 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2422 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2423 variable name. Change their usage accordingly.
2424 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2425 const.
2426 (symbol_file_add_main): Make args parameter const.
2427
086850b2
UW
24282013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2429 Ulrich Weigand <uweigand@de.ibm.com>
2430
2431 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2432 of c_value member.
2433 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2434
ca08a94c 24352013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2436 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2437
2438 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2439 (gnu_create_inferior)
2440 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2441 (set_sig_thread_cmd): Use the lwpid field of ptids to
2442 store/extract thread ids instead of the tid field.
2443 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2444
e4c6a2c4
AB
24452013-09-18 Andrew Burgess <aburgess@broadcom.com>
2446
2447 * infcmd.c (default_print_one_register_info): Add detection of
2448 optimized out values.
2449 (default_print_registers_info): Switch to using
2450 get_frame_register_value.
2451
58c48e72
MM
24522013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2453
2454 * infrun.c (handle_inferior_event): Check if we know the
2455 function start address before setting a resume breakpoint.
2456
c8d37639
PA
24572013-09-18 Pedro Alves <palves@redhat.com>
2458
2459 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2460 minus_one_ptid instead of looking at the ptid's tid field and
2461 comparing that to -1.
2462
71926e28
AB
24632013-09-18 Andrew Burgess <aburgess@broadcom.com>
2464
2465 * main.h (get_gdb_program_name): Remove extra whitespace.
2466
c88a1531
AB
24672013-09-18 Andrew Burgess <aburgess@broadcom.com>
2468
2469 * main.h (get_gdb_program_name): Add declaration.
2470 * main.c (get_gdb_program_name): Add definition.
2471
4390d890
DE
24722013-09-17 Doug Evans <dje@google.com>
2473
2474 * dwarf2read.c: Move definitions of complaint functions to after
2475 forward declarations of local functions.
2476
49fa26b0
PA
24772013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2478 Pedro Alves <palves@redhat.com>
2479
2480 PR gdb/11568
2481 * breakpoint.c (remove_threaded_breakpoints): New function.
2482 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2483 as thread_exit observer.
2484
08d72866
PA
24852013-09-17 Pedro Alves <palves@redhat.com>
2486
2487 PR gdb/15911
2488 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2489 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2490 * corelow.c (core_open):
2491 * frame.h (print_stack_frame, print_frame_info): New
2492 'set_current_sal' parameter.
2493 * infcmd.c (finish_command, kill_command): Adjust call to
2494 print_stack_frame.
2495 * inferior.c (inferior_command): Likewise.
2496 * infrun.c (normal_stop): Likewise.
2497 * linux-fork.c (linux_fork_context): Likewise.
2498 * record-full.c (record_full_goto_entry, record_full_restore):
2499 Likewise.
2500 * remote-mips.c (common_open): Likewise.
2501 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2502 Use it.
2503 (print_frame_info): New 'set_current_sal' parameter. Set the last
2504 displayed sal depending on the new paremeter instead of looking at
2505 print_what.
2506 (backtrace_command_1, select_and_print_frame, frame_command)
2507 (current_frame_command, up_command, down_command): Adjust call to
2508 print_stack_frame.
2509 * thread.c (print_thread_info, restore_selected_frame)
2510 (do_captured_thread_select): Adjust call to print_stack_frame.
2511 * tracepoint.c (tfind_1): Likewise.
2512 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2513 (mi_cmd_stack_info_frame): Likewise.
2514 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2515 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2516
6bc305f5
SDJ
25172013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2518
2519 * value.c (isvoid_internal_fn): Replace "parameter" with
2520 "argument".
2521
0a7cfe2c
SS
25222013-09-16 Stan Shebs <stan@codesourcery.com>
2523
2524 * README: Update references to writing code for GDB.
2525 * configure.ac (build_warnings): Remove obsolete comment.
2526 * configure: Regenerate.
2527 * gdbarch.sh: Remove references to gdbint.texinfo.
2528 * gdbarch.h: Regenerate.
2529 * gdbtypes.c (objfile_type): Remove comments referencing internals
2530 manual and D10V.
2531
a280dbd1
SDJ
25322013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2533
2534 * NEWS: Mention new convenience function $_isvoid.
2535 * value.c (isvoid_internal_fn): New function.
2536 (_initialize_values): Add new convenience function $_isvoid.
2537
04a83fee
PM
25382013-09-16 Pierre Muller <muller@sourceware.org>
2539
2540 * arm-linux-tdep.c: Add "elf/common.h" header.
2541 Remove AT_HWCAP macro definintion as it is provided in
2542 added include file.
2543 * s390-tdep.c: Remove system header <elf.h>
2544 Add "elf/common.h" header for AT_HWCAP definition.
2545 (s390_core_read_description): Use correct CORE_ADDR
2546 for hwcap local variable used as third parameter
2547 of function target_auxv_search.
2548
88505fac
PM
25492013-09-14 Pierre Muller <muller@sourceware.org>
2550 Tom Tromey <tromey@redhat.com>
2551 Pedro Alves <palves@redhat.com>
2552
2553 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2554 mode if operating system doesn't know O_CLOEXEC.
2555
d3846e71
JK
25562013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2557
2558 Code cleanup.
2559 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2560 inner block.
2561
4ac33720
UW
25622013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2563
2564 * NEWS: Mention TDB support.
2565 * features/s390-tdb.xml: New file.
2566 * features/s390-te-linux64.xml: New file.
2567 * features/s390x-te-linux64.xml: New file.
2568 * features/Makefile (WHICH): Add new tdescs above.
2569 (s390-te-linux64-expedite): Set.
2570 (s390x-te-linux64-expedite): Set.
2571 * features/s390-te-linux64.c: New file (generated).
2572 * features/s390x-te-linux64.c: New file (generated).
2573 * regformats/s390-te-linux64.dat: New file (generated).
2574 * regformats/s390x-te-linux64.dat: New file (generated).
2575 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2576 (HWCAP_S390_TE): Likewise.
2577 (S390_TDB_DWORD0_REGNUM): Likewise.
2578 (S390_TDB_DWORD0_REGNUM): Likewise.
2579 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2580 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2581 (S390_TDB_ATIA_REGNUM): Likewise.
2582 (S390_TDB_R0_REGNUM): Likewise.
2583 (S390_TDB_R1_REGNUM): Likewise.
2584 (S390_TDB_R2_REGNUM): Likewise.
2585 (S390_TDB_R3_REGNUM): Likewise.
2586 (S390_TDB_R4_REGNUM): Likewise.
2587 (S390_TDB_R5_REGNUM): Likewise.
2588 (S390_TDB_R6_REGNUM): Likewise.
2589 (S390_TDB_R7_REGNUM): Likewise.
2590 (S390_TDB_R8_REGNUM): Likewise.
2591 (S390_TDB_R9_REGNUM): Likewise.
2592 (S390_TDB_R10_REGNUM): Likewise.
2593 (S390_TDB_R11_REGNUM): Likewise.
2594 (S390_TDB_R12_REGNUM): Likewise.
2595 (S390_TDB_R13_REGNUM): Likewise.
2596 (S390_TDB_R14_REGNUM): Likewise.
2597 (S390_TDB_R15_REGNUM): Likewise.
2598 (S390_NUM_REGS): Increase.
2599 (S390_IS_TDBREGSET_REGNUM): New macro.
2600 (s390_regmap_tdb): Declare.
2601 (s390_sizeof_tdbregset): Define.
2602 (tdesc_s390_te_linux64): Declare.
2603 (tdesc_s390x_te_linux64): Likewise.
2604 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2605 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2606 (s390_regmap_tdb): New regmap.
2607 (s390_supply_tdb_regset): New function.
2608 (s390_tdb_regset): New regset.
2609 (s390_linux64v2_regset_sections): Add TDB regset to list.
2610 (s390x_linux64v2_regset_sections): Likewise.
2611 (s390_regset_from_core_section): Recognize TDB core note section.
2612 (s390_core_read_description): If HWCAP indicates TE support,
2613 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2614 (s390_gdbarch_init): Handle TDB regset.
2615 (_initialize_s390_tdep): Initialize new tdescs.
2616 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2617 (have_regset_tdb): New variable.
2618 (s390_native_supply): Support register invalidation.
2619 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2620 (check_regset): Treat ENODATA as "regset exists".
2621 (s390_linux_fetch_inferior_registers): Add TDB.
2622 (s390_read_description): Check for TDB existence and select
2623 appropriate tdesc.
2624 * gdbserver/Makefile.in (clean): Add removal of new makefile
2625 targets.
2626 (s390-te-linux64.c): New makefile target.
2627 (s390x-te-linux64.c): Likewise.
2628 * gdbserver/configure.srv (srv_regobj): Append new objects
2629 s390-te-linux64.o and s390x-te-linux64.o.
2630 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2631 s390x-te-linux64.xml, and s390-tdb.xml.
2632 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2633 declaration.
2634 (tdesc_s390_te_linux64): Likewise.
2635 (init_registers_s390x_te_linux64): Likewise.
2636 (tdesc_s390x_te_linux64): Likewise.
2637 (s390_check_regset): Treat ENODATA as "regset exists".
2638 (s390_arch_setup): Add TDB regset support.
2639 (initialize_low_arch): Initialize registers for new tdescs.
2640
2ccd1468
UW
26412013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2642
2643 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2644 (S390_IS_FPREGSET_REGNUM): New macro.
2645 * s390-tdep.c (s390_dwarf_regmap): Make const.
2646 (regnum_is_gpr_full): New function for replacing repeated code.
2647 (s390_pseudo_register_name): Use it.
2648 (s390_pseudo_register_type): Likewise.
2649 (s390_pseudo_register_read): Likewise.
2650 (s390_pseudo_register_write): Likewise.
2651 (s390_unwind_pseudo_register): Likewise.
2652 (s390_regmap_gregset): New format for regmap.
2653 (s390x_regmap_gregset): Likewise.
2654 (s390_regmap_fpregset): Likewise.
2655 (s390_regmap_upper): Likewise.
2656 (s390_regmap_last_break): Likewise.
2657 (s390_regmap_system_call): Likewise.
2658 (s390_supply_regset): Adjust to new regmap format.
2659 (s390_collect_regset): Likewise.
2660 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2661 (s390_native_collect): Likewise.
2662 (supply_gregset): Likewise.
2663 (fill_gregset): Likewise.
2664 (supply_fpregset): Likewise.
2665 (fill_fpregset): Likewise.
2666 (fetch_regset): Likewise.
2667 (store_regset): Likewise.
2668 (s390_linux_fetch_inferior_registers): Likewise.
2669 (s390_linux_fetch_inferior_registers): Likewise.
2670
1aa4cd77
AP
26712013-09-12 Andrew Pinski <apinski@cavium.com>
2672
2673 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2674
d91fab15
UW
26752013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2676
2677 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2678
5a5d8ead
AB
26792013-09-09 Andrew Burgess <aburgess@broadcom.com>
2680
2681 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2682
1385f66c
PA
26832013-09-06 Pedro Alves <palves@redhat.com>
2684
2685 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2686 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2687 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2688 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2689 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2690 gdb_stdlog.
2691
146ec4db
PA
26922013-09-06 Pedro Alves <palves@redhat.com>
2693
2694 * remote-sim.c (dump_mem): Constify buf parameter.
2695 gdbsim_xfer_inferior_memory): Rename to ...
2696 (gdbsim_xfer_memory): ... this. Adjust interface as
2697 target_xfer_partial helper.
2698 (gdbsim_xfer_partial): New function.
2699 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2700 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2701
fcde0081
PA
27022013-09-06 Pedro Alves <palves@redhat.com>
2703
2704 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2705 host_address_to_string, and send debug output to gdb_stdlog.
2706
749c8b38
RW
27072013-09-06 Ricard Wanderlof <ricardw@axis.com>
2708
2709 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2710 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2711 gdb_target_obs for cris target.
2712 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2713 (cris_gdbarch_init): Move calls to
2714 set_gdbarch_fetch_tls_load_module_address and
2715 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2716 Add call to gdbarch_init_osabi.
2717 * cris-linux-tdep.c: New file.
2718 * cris-tdep.h: New file.
2719
43df09d9
AB
27202013-09-06 Andrew Burgess <aburgess@broadcom.com>
2721
2722 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2723 to deprecated_init_ui_hook.
2724
4d09c5b4
AB
27252013-09-06 Andrew Burgess <aburgess@broadcom.com>
2726
2727 * cli/cli-interp.c (_initialize_cli_interp): Add a
2728 command_loop_proc to interp_procs.
2729 * event-top.c (cli_command_loop): Change signature to match
2730 interp_command_loop_ftype.
2731 * event-top.h (cli_command_loop): Same.
2732 * interps.c (interp_new): Require every interpreter to have a
2733 command_loop_proc.
2734 (current_interp_command_loop): Just call the command_loop_proc on
2735 the current interpreter.
2736 * tui/tui-interp.c (_initialize_tui_interp): Add a
2737 command_loop_proc to interp_procs.
2738
8eb3d7b6
RW
27392013-09-06 Ricard Wanderlof <ricardw@axis.com>
2740
2741 * cris-tdep.c (cris_gdbarch_init): Add call to
2742 get_gdbarch_fetch_tls_load_module_address.
2743
18b3c2f5
RW
27442013-09-06 Ricard Wanderlof <ricardw@axis.com>
2745
2746 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2747 (cris_elf_gregset_t): Rename from elf_gregset_t.
2748 (crisv32_elf_gregset_t): Adjust.
2749 (cris_supply_gregset, fetch_core_registers): Adjust.
2750
dc8636ef
RW
27512013-09-06 Ricard Wanderlof <ricardw@axis.com>
2752
2753 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2754
257e6d53
AB
27552013-09-05 Andrew Burgess <aburgess@broadcom.com>
2756
1581d8a7 2757 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2758 references in comments.
1581d8a7 2759 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2760 deprecated_command_loop_hook.
2761 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2762 setup.
1581d8a7 2763 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2764
7c33b57c
PA
27652013-09-05 Pedro Alves <palves@redhat.com>
2766
2767 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2768 local is now int instead of ULONGEST. Print it with %d
2769 instead of paddress.
2770
9f8edbd5
TG
27712013-09-05 Tristan Gingold <gingold@adacore.com>
2772
2773 * MAINTAINERS: Remove avr maintainership.
2774
d5b495b4
PA
27752013-09-05 Pedro Alves <palves@redhat.com>
2776
2777 * findvar.c (value_of_register): Rework in terms of
2778 value_of_register_lazy.
2779
40b91786
MB
27802013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2781
2782 * symfile.c (add_symbol_file_command): Remove trailing
2783 whitespaces and blank line after comment.
2784
6eed1678
PA
27852013-09-05 Pedro Alves <palves@redhat.com>
2786
2787 * tui/tui-regs.c (tui_register_format): Don't look at the
2788 register's name here. Return string representing register
2789 value instead of storing it in the data element.
2790 (tui_get_register): Compare register string representations
2791 instead of register value states and contents.
2792
8eb6bda2
PA
27932013-09-05 Pedro Alves <palves@redhat.com>
2794
2795 PR tui/15933
2796 * tui/tui-regs.c (tui_show_registers): Show registers of the
2797 selected frame, not the current frame.
2798
48b1f08c
RW
27992013-09-05 Ricard Wanderlof <ricardw@axis.com>
2800
2801 * MAINTAINERS (Write After Approval): Add myself to the list.
2802
89e63ee4
DE
28032013-09-04 Doug Evans <dje@google.com>
2804
2805 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2806 (queue_and_load_dwo_tu): New function.
2807 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2808 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2809 Make dependent_cu optional.
2810 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2811 and an older .gdb_index is in use, queue and load all its TUs too.
2812
492c0ab7
JK
28132013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2814
2815 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2816 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2817 variable search_flags.
2818 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2819 (OPF_RETURN_REALPATH): ... here.
2820 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2821 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2822 call. Twice.
2823 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2824 openp call.
2825 * solib.c (solib_find): Likewise. Four times.
2826 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2827 in the function comment and for the realpath_fptr variable.
2828 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2829 (find_and_open_source): Likewise. Twice.
2830 * symfile.c (symfile_bfd_open): Likewise, also twice.
2831
23a44de8
DE
28322013-09-04 Doug Evans <dje@google.com>
2833
2834 * progspace.c (save_current_space_and_thread): Remove unnecessary
2835 call to save_current_inferior.
2836
47061676
AB
28372013-09-04 Andrew Burgess <aburgess@broadcom.com>
2838
2839 * sh64-tdep.c (sh64_do_register): Return after printing message
2840 about unavailable register contents.
2841
41dc8db8
MB
28422013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2843 Pedro Alves <palves@redhat.com>
2844
2845 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
2846 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2847 options and collapse into single conditional branch.
41dc8db8 2848
07107ca6
LM
28492013-09-03 Luis Machado <lgustavo@codesourcery.com>
2850
a7ea61cf 2851 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2852 detach_fork.
2853 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2854 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2855 * inferior.h (detach_fork): Remove.
2856 * infrun.c (detach_fork): Adjust comment and make it
2857 static.
2858 (follow_fork): Pass detach_fork parameter to
2859 target_follow_fork.
2860 * linux-nat.c (linux_child_follow_fork): New parameter
2861 detach_fork.
2862 * target.c (target_follow_fork): New parameter detach_fork.
2863 Pass detach_fork as parameter and print its value.
2864 * target.h (struct target_ops) <to_follow_fork>: New int
2865 parameter.
2866 (target_follow_fork): New parameter detach_fork.
2867
3bec2768
JB
28682013-09-03 Joel Brobecker <brobecker@adacore.com>
2869
2870 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2871 Replace sec->bfd by sec->the_bfd_section->owner.
2872
c01cbb3d
YQ
28732013-09-03 Yao Qi <yao@codesourcery.com>
2874
2875 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2876 from linux_has_shared_address_space.
2877 (linux_has_shared_address_space): Call linux_is_uclinux.
2878 * linux-tdep.h (linux_is_uclinux): Declare.
2879 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2880 linux_is_uclinux.
2881
7b00db47
YQ
28822013-09-03 Yao Qi <yao@codesourcery.com>
2883
2884 * config/djgpp/fnchange.lst: Remove entry of
2885 i386-interix-nat.c and i386-interix-tdep.c.
2886 * configure.ac: Remove '*-*-interix*'.
2887 * configure: Re-generated.
2888 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2889 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2890 obsolete comments.
2891 * osabi.c (gdb_osabi_names): Remove "Interix".
2892
0f9741f2
YQ
28932013-09-03 Yao Qi <yao@codesourcery.com>
2894
2895 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2896
1e038f67
MM
28972013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2898
2899 * record.h (record_print_flag) <record_print_src_line,
2900 record_print_insn_range>: Rename into ...
2901 (record_print_flag) <record_print_src_line,
2902 record_print_insn_range>: ... this. Update all users.
2903
9e52adf9
PM
29042013-09-02 Pierre Muller <muller@sourceware.org>
2905
2906 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2907 error code.
2908
a2388568
PM
29092013-09-02 Pierre Muller <muller@sourceware.org>
2910
2911 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2912 by use of plongest function.
2913
9058cc3a
TG
29142013-09-02 Tristan Gingold <gingold@adacore.com>
2915
2916 * NEWS: Add entry mentioning support for native Windows x64
2917 SEH data.
2918
2919 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2920 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2921 (struct amd64_windows_frame_cache): New struct.
2922 (amd64_windows_w2gdb_regnum): New global.
2923 (pc_in_range, amd64_windows_frame_decode_epilogue)
2924 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2925 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2926 (amd64_windows_frame_this_id): New functions.
2927 (amd64_windows_frame_unwind): New static global.
2928 (amd64_windows_skip_prologue): New function.
2929 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2930 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2931 with amd64_windows_skip_prologue.
2932
3161820b 29332013-08-30 Joel Brobecker <brobecker@adacore.com>
2934
2935 GDB 7.6.1 released.
2936
02457c76
PA
29372013-08-30 Pedro Alves <palves@redhat.com>
2938
2939 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2940 SRC_AND_LOC.
2941
e0162910
PA
29422013-08-30 Pedro Alves <palves@redhat.com>
2943
2944 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2945 warning text.
2946
6391ce51
PA
29472013-08-30 Pedro Alves <palves@redhat.com>
2948
2949 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2950 Adjust arguments to print_stack_frame.
2951
d1da0587
PA
29522013-08-30 Pedro Alves <palves@redhat.com>
2953
2954 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2955
adfd8245
PA
29562013-08-30 Pedro Alves <palves@redhat.com>
2957
2958 * frame.h (show_and_print_stack_frame): Delete declaration.
2959
96d9056e
PM
29602013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2961
2962 PR python/15461
96d9056e
PM
2963 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2964 (archpy_name): Check for valid architecture.
2965 (archpy_disassemble): Ditto.
2966
11cb8762
JB
29672013-08-29 Joel Brobecker <brobecker@adacore.com>
2968
2969 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2970 instead of "long long" in call to ptrace64.
2971
1af12a7d
AB
29722013-08-29 Andrew Burgess <aburgess@broadcom.com>
2973
2974 * mi/mi-interp.c (mi_command_loop): Change signature to match
2975 interp_command_loop_ftype.
2976 (mi1_command_loop): Remove.
2977 (mi2_command_loop): Remove.
2978 (mi3_command_loop): Remove.
2979 (mi_interpreter_resume): Remove setting of
2980 deprecated_command_loop_hook.
2981 (_initialize_mi_interp): Set mi_command_loop as the command loop
2982 callback.
2983
acc900c2
SA
29842013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2985
2986 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2987 value_type.
2988
548b762d
SA
29892013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2990
2991 * value.c (allocate_value_contents): Make static.
2992 * value.h (allocate_value_contents): Remove prototype.
2993
08039c9e
SA
29942013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2995
2996 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2997 of assembling value via allocate_value_lazy and attribute setter.
2998 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2999 assembling value via allocate_value_lazy and attribute setter.
3000 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3001 assembling value via allocate_value_lazy and attribute setter.
3002
314c7de9
SA
30032013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3004
3005 * value.c (value_from_contents_and_address): Replace allocate_value and
3006 memcpy with value_from_contents.
3007
8f28f522
PM
30082013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3009
3010 * python/py-framefilter.c (py_print_frame): Remove usage of
3011 PyString_AsString. Use python_string_to_host_string instead.
3012 Refactor function to work with a string as a new allocation
3013 instead of a pointer.
3014 (py_print_frame): Ditto.
3015 * python/lib/gdb/frames.py (return_list): Cain iterators together
3016 instead of adding them as a list.
3017 (_sort_list): Call return_list, and remove duplicate code.
3018 (execute_frame_filters): Convert iterator to a list with list().
3019 * python/lib/gdb/command/frame_filters.py
3020 (SetFrameFilterPriority._set_filter_priority): Convert priority
3021 attribute to an integer.
3022 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3023 wrapper function __next__.
3024 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3025 define as "str".
3026
8ee002df
PM
30272013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3028
3029 PR python/15752
8ee002df
PM
3030 * python/py-framefilter.c (apply_frame_filter): Check
3031 gdb_python_initialized. Exit if the Python frame-filter code
3032 cannot be initialized.
3033
af4c453a
PM
30342013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3035
3036 PR cli/15842
af4c453a
PM
3037 * top.c (print_gdb_version): Remove erroneous newline after help
3038 text.
3039
bf8793bb
YQ
30402013-08-29 Yao Qi <yao@codesourcery.com>
3041
3042 * varobj.c (install_dynamic_child): Remove trailing space.
3043 Add one blank line after variable declaration.
3044
1f0c4988
JK
30452013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3046
3047 PR gdb/15415
3048 * corefile.c (get_exec_file): Use exec_filename.
3049 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3050 * exec.c (exec_close): Free EXEC_FILENAME.
3051 (exec_file_attach): New variable canonical_pathname. Use
3052 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3053 EXEC_FILENAME.
3054 * exec.h (exec_filename): New.
3055 * inferior.c (print_inferior, inferior_command): Use
3056 PSPACE_EXEC_FILENAME.
3057 * mi/mi-main.c (print_one_inferior): Likewise.
3058 * progspace.c (clone_program_space, print_program_space): Likewise.
3059 * progspace.h (struct program_space): New field pspace_exec_filename.
3060 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3061 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3062
59ee9f94
WN
30632013-08-28 Will Newton <will.newton@linaro.org>
3064
3065 * common/linux-ptrace.c: Include stdint.h unconditionally.
3066
c8a2a419
JK
30672013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3068
3069 Code cleanup.
3070 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3071
ffa4ac95
YQ
30722013-08-28 Yao Qi <yao@codesourcery.com>
3073 Pedro Alves <palves@redhat.com>
3074
3075 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3076 instead of stdio_fileopen.
3077 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3078 .Call stderr_fileopen instead of stdio_fileopen.
3079 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3080 [__MINGW32__] (stderr_file_fputs): New function.
3081 (stderr_fileopen): New function.
3082 * ui-file.h (stderr_fileopen): Declare.
3083
69d751e3
DE
30842013-08-27 Doug Evans <dje@google.com>
3085
3086 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3087 (struct dwarf2_per_cu_data): Ditto.
3088 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3089 (process_imported_unit_die): Ditto.
3090 (follow_die_sig_1): Simplify assert.
3091
44f38867
PA
30922013-08-27 Pedro Alves <palves@redhat.com>
3093
3094 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3095 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3096 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3097 windows_xfer_memory directly.
3098 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3099
d28d46b5
PA
31002013-08-27 Pedro Alves <palves@redhat.com>
3101
3102 * darwin-nat.c (darwin_xfer_memory): Delete.
3103 (_initialize_darwin_inferior): Don't install a
3104 deprecated_xfer_memory method.
3105
6211c335
YQ
31062013-08-27 Pedro Alves <pedro@codesourcery.com>
3107 Yao Qi <yao@codesourcery.com>
3108
3109 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3110 (parse_no_frames_option): Remove.
3111 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3112 (mi_cmd_stack_list_args): Adjust.
3113 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3114 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3115 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3116 Caller update.
3117 (list_args_or_locals): New parameter 'skip_unavailable'.
3118 Handle it.
3119 * valprint.c (scalar_type_p): Rename to ...
3120 (val_print_scalar_type_p): ... this. Make extern.
3121 (val_print, value_check_printable): Adjust.
3122 * valprint.h (val_print_scalar_type_p): Declare.
3123 * value.c (value_entirely_unavailable): New function.
3124 * value.h (value_entirely_unavailable): Declare.
3125
3126 * NEWS: Mention the new option "--skip-unavailable" to MI
3127 commands '-stack-list-locals', '-stack-list-arguments' and
3128 '-stack-list-variables'.
3129
242f1fd7
YQ
31302013-08-27 Yao Qi <yao@codesourcery.com>
3131
3132 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3133 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3134 options.
3135 * mi/mi-getopt.c (mi_getopt): Remove.
3136 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3137 'error_on_unknown'.
3138 (mi_getopt): Call mi_getopt_1.
3139 (mi_getopt_silent): New.
3140 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3141
260b681b
DE
31422013-08-26 Doug Evans <dje@google.com>
3143
779bd270
DE
3144 PR symtab/15885
3145 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3146 .gdb_index is in use.
3147 * symfile.c (reread_symbols): Reset objfile->sf.
3148
52e260a3
DE
3149 * NEWS: Document "mt print objfiles" now takes optional regexp.
3150 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3151 regexp of objfiles to print.
3152 (_initialize_symmisc): Update doc string for "mt print objfiles".
3153
260b681b
DE
3154 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3155 missing debug info checks.
3156
a85c52f2
UW
31572013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3158 Ulrich Weigand <uweigand@de.ibm.com>
3159
3160 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3161 line tables generated by XLC compiled binaries.
3162
4f00dda3
DE
31632013-08-23 Doug Evans <dje@google.com>
3164
db68bbae
DE
3165 * symmisc.c (dump_symtab): Delete prototype.
3166 (dump_msymbols, dump_objfile): Ditto.
3167 (maintenance_info_symtabs): Mark as dont_repeat.
3168 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3169
4f00dda3
DE
3170 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3171 debugging printf to better location.
3172
23d577b0
PA
31732013-08-23 Pedro Alves <palves@redhat.com>
3174
3175 * target.c (target_read_live_memory): Change type of 'ret' local
3176 to LONGEST.
3177
00d84524
PA
31782013-08-23 Pedro Alves <palves@redhat.com>
3179
3180 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3181 (remote_read_bytes): Change return type to LONGEST, and adjust to
3182 return a target_xfer_error on error.
3183 (remote_xfer_memory): Delete.
3184 (remote_flash_write): Change type of 'ret' local to LONGEST.
3185 (remote_xfer_partial, remote_xfer_partial): Adjust.
3186 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3187
1ed3ee94
PM
31882013-08-23 Pierre Muller <muller@sourceware.org>
3189
3190 ARI fix: Push # directives to start of line.
3191 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3192
9eaabc75
MW
31932013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3194
3195 PR gdb/15501
3196 * breakpoint.c (enable_command, disable_command): Iterate over
3197 all specified breakpoint locations.
3198
101158d9
LM
31992013-08-22 Luis Machado <lgustavo@codesourcery.com>
3200
3201 * common/linux-ptrace.c (linux_fork_to_function): Push #
3202 directives to the start of the line.
3203 (linux_check_ptrace_features): Fix warning message to use
3204 the "_" markup.
3205
96d7229d
LM
32062013-08-22 Luis Machado <lgustavo@codesourcery.com>
3207
3208 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3209 nat/linux-waitpid.h.
3210 (linux-waitpid.o): New object file rule.
3211 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3212 (current_ptrace_options): Moved from linux-nat.c.
3213 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3214 parameters.
3215 (linux_fork_to_function): New function.
3216 (linux_grandchild_function): Likewise.
3217 (linux_child_function): Likewise.
3218 (linux_check_ptrace_features): New function, heavily
3219 based on linux-nat.c:linux_test_for_tracefork.
3220 (linux_enable_event_reporting): New function.
3221 (ptrace_supports_feature): Likewise.
3222 (linux_supports_tracefork): Likewise.
3223 (linux_supports_traceclone): Likewise.
3224 (linux_supports_tracevforkdone): Likewise.
3225 (linux_supports_tracesysgood): Likewise.
3226 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3227 gdbserver/linux-low.c.
3228 (linux_enable_event_reporting): New declaration.
3229 (linux_supports_tracefork): Likewise.
3230 (linux_supports_traceclone): Likewise.
3231 (linux_supports_tracevforkdone): Likewise.
3232 (linux_supports_tracesysgood): Likewise.
3233 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3234 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3235 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3236 * config/arm/linux.mh (NATDEPFILES): Likewise.
3237 * config/i386/linux.mh (NATDEPFILES): Likewise.
3238 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3239 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3240 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3241 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3242 * config/mips/linux.mh (NATDEPFILES): Likewise.
3243 * config/pa/linux.mh (NATDEPFILES): Likewise..
3244 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3245 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3246 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3247 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3248 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3249 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3250 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3251 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3252 ptrace's 4th argument's types.
3253 Check the type of PTRACE_TYPE_ARG4.
3254 * configure: Regenerate.
3255 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3256 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3257 (linux_supports_tracefork_flag): Remove.
3258 (linux_supports_tracesysgood_flag): Likewise.
3259 (linux_supports_tracevforkdone_flag): Likewise.
3260 (current_ptrace_options): Moved to
3261 common/linux-ptrace.c.
3262 (linux_tracefork_child): Remove.
3263 (my_waitpid): Remove.
3264 (linux_test_for_tracefork): Renamed to
3265 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3266 (linux_test_for_tracesysgood): Remove.
3267 (linux_supports_tracesysgood): Remove.
3268 (linux_supports_tracefork): Remove.
3269 (linux_supports_tracevforkdone): Remove.
3270 (linux_enable_tracesysgood): Remove.
3271 (linux_enable_event_reporting): Remove.
3272 (linux_init_ptrace): New function.
3273 (linux_child_post_attach): Call linux_init_ptrace.
3274 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3275 (linux_child_follow_fork): Call linux_supports_tracefork
3276 and linux_supports_tracevforkdone.
3277 (linux_child_insert_fork_catchpoint): Call
3278 linux_supports_tracefork.
3279 (linux_child_insert_vfork_catchpoint): Likewise.
3280 (linux_child_set_syscall_catchpoint): Call
3281 linux_supports_tracesysgood.
3282 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3283 * nat/linux-nat.h: New file.
3284 * nat/linux-waitpid.c: New file.
3285 * nat/linux-waitpid.h: New file.
3286
9f948660
SDJ
32872013-08-22 Samuel Bronson <naesten@gmail.com>
3288
3289 ARM Linux support for `catch syscall'.
3290 * syscalls/arm-linux.py: New file.
3291 * syscalls/arm-linux.xml: Likewise.
3292 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3293 (arm_linux_init_abi): Register the new function and syscall xml file.
3294 * data-directory/Makefile.in: Install the new syscall xml file.
3295 * NEWS: Brag about this.
3296
6be7b56e
PA
32972013-08-22 Pedro Alves <palves@redhat.com>
3298
3299 PR gdb/15871
3300 * corefile.c (target_xfer_memory_error): New function.
3301 (memory_error): Defer EIO to target_memory_error.
3302 (read_memory): Use target_xfer_partial, and handle finer-grained
3303 target xfer errors.
3304 * target.c (target_xfer_error_to_string): New function.
3305 (memory_xfer_partial_1): If memory is known to be
3306 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3307 (target_xfer_partial): Make extern.
3308 * target.h (enum target_xfer_error): New enum.
3309 (target_xfer_error_to_string): Declare function.
3310 (target_xfer_partial): Declare function.
3311 (struct target_ops) <xfer_partial>: Adjust describing comment.
3312
bcbec14e
AM
33132013-08-22 Alan Modra <amodra@gmail.com>
3314
3315 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3316 * configure.tgt: Likewise as targets.
3317
fc474241
DE
33182013-08-20 Doug Evans <dje@google.com>
3319
3320 * buildsym.c (subfile_stack): Move here from buildsym.h.
3321 (pending_macros): Ditto.
3322 (get_macro_table): New function.
3323 (buildsym_init): Initialize subfile_stack.
3324 * coffread.c (type_vector,type_vector_length): Moved here from
3325 buildsym.h.
3326 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3327 (coff_symtab_read): Use it.
3328 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3329 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3330 with call to get_macro_table.
3331 * stabsread.c (type_vector,type_vector_length): Moved here from
3332 buildsym.h.
3333 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3334 * buildsym.h (get_macro_table): Declare.
3335
bec71544
TT
33362013-08-20 Tom Tromey <tromey@redhat.com>
3337
3338 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3339 Update.
3340 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3341
0002ad5f
DE
33422013-08-20 Doug Evans <dje@google.com>
3343
3344 * blockframe.c: Remove #include "psymtab.h".
3345 * cp-support.c: Ditto.
3346 * source.c: Ditto.
3347 * stack.c: Ditto.
3348
df302446
TT
33492013-08-20 Tom Tromey <tromey@redhat.com>
3350
3351 PR python/15816:
3352 * exceptions.h (return_mask): Now an enum.
3353 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3354 enum constants.
3355
df6d5441
TT
33562013-08-20 Tom Tromey <tromey@redhat.com>
3357
3358 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3359 get_objfile_arch.
3360 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3361 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3362 * jit.c (jit_object_close_impl): Update.
3363 * jv-lang.c (get_dynamics_objfile): Update.
3364 * linespec.c (add_minsym): Use get_dynamics_objfile.
3365 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3366 (allocate_objfile): Don't initialize 'gdbarch' field.
3367 (get_objfile_arch): Update.
3368 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3369 moved from...
3370 (struct objfile) <gdbarch>: ... here. Remove.
3371 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3372 get_objfile_arch.
3373 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3374
f5aee5ee
AM
33752013-08-20 Alan Modra <amodra@gmail.com>
3376
3377 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3378 for IBM long double nan and inf.
3379 (floatformat_is_negative, floatformat_classify,
3380 floatformat_mantissa): Similarly.
3381 (floatformat_ieee_single, floatformat_ieee_double,
3382 floatformat_ieee_quad, floatformat_arm_ext,
3383 floatformat_ia64_spill): Delete unused vars.
3384 (_initialize_doublest): Delete unused function.
3385 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3386 little-endian variants of floatformat_ibm_long_double.
3387
33b60d58 33882013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3389
33b60d58
LM
3390 * Makefile.in (SFILES): Remove common/target-common.c and
3391 add target/waitstatus.c.
3392 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3393 target/resume.h, target/wait.h and target/waitstatus.h.
3394 (COMMON_OBS): Remove target-common.o and add
3395 waitstatus.o.
3396 (target-common.o): Remove.
3397 (waitstatus.o): New target object file.
3398 * common/target-common.c: Move contents to
3399 target/waitstatus.c and remove.
3400 * common/target-common.h: Move contents to other files and
3401 remove.
3402 (enum resume_kind: Move to target/resume.h.
3403 (TARGET_WNOHANG): Move to target/wait.h.
3404 (enum target_waitkind): Move to target/waitstatus.h.
3405 (struct target_waitstatus): Likewise.
3406 * target.h: Do not include target-common.h and
3407 include target/resume.h, target/wait.h and
3408 target/waitstatus.h.
3409 * target/resume.h: New file.
3410 * target/wait.h: New file.
3411 * target/waitstatus.h: New file.
3412 * target/waitstatus.c: New file.
3413
12696c10
PA
34142013-08-19 Pedro Alves <palves@redhat.com>
3415
3416 * linux-nat.c (linux_test_for_tracefork)
3417 (linux_test_for_tracesysgood, linux_child_follow_fork)
3418 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3419 (linux_nat_wait_1): Extend comment.
3420 (linux_async_pipe): Add comment.
3421
ba89f962
KB
34222013-08-15 Kevin Buettner <kevinb@redhat.com>
3423
3424 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3425 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3426 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3427 Update to account for fact that PC is now a pseudo-register.
3428 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3429 cases for RL78_PC_REGNUM.
3430
35ab155d
MB
34312013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3432
3433 PR cli/15841
3434 * top.c (quit_force): Skip writing history file
3435 if input is not from terminal.
3436
0d031856
TT
34372013-08-14 Tom Tromey <tromey@redhat.com>
3438
3439 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3440 resultthreadlist>: New fields.
3441 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3442 (remote_get_threadlist, remote_threadlist_iterator): Use
3443 new fields. Remove static variables.
3444
ee154bee
TT
34452013-08-14 Tom Tromey <tromey@redhat.com>
3446
3447 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3448 remote_watch_data_address>: New fields.
3449 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3450 (process_stop_reply, remote_wait_as)
3451 (remote_check_watch_resources, remote_stopped_data_address): Update.
3452
88b496c3
TT
34532013-08-14 Tom Tromey <tromey@redhat.com>
3454
3455 * remote.c (struct remote_state) <async_client_callback,
3456 async_client_context>: New fields.
3457 (async_client_callback, async_client_context): Remove.
3458 (remote_async_serial_handler, remote_async): Update.
3459
2f65bcb7
TT
34602013-08-14 Tom Tromey <tromey@redhat.com>
3461
3462 * remote.c (sizeof_pkt): Remove.
3463 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3464
b80fafe3
TT
34652013-08-14 Tom Tromey <tromey@redhat.com>
3466
3467 * remote.c (struct remote_state) <use_threadinfo_query,
3468 use_threadextra_query>: New fields.
3469 (remote_threads_info, remote_threads_extra_info)
3470 (remote_open_1): Update.
3471
8e88304f
TT
34722013-08-14 Tom Tromey <tromey@redhat.com>
3473
3474 * remote.c (struct remote_state) <finished_object,
3475 finished_annex, finished_offset>: New fields.
3476 (remote_read_qxfer): Use remote_state fields; remove static
3477 variables.
3478
280ceea3
TT
34792013-08-14 Tom Tromey <tromey@redhat.com>
3480
3481 * remote.c (struct remote_state) <last_sent_step>:
3482 New field.
3483 (last_sent_step): Remove.
3484 (remote_resume, remote_wait_as): Update.
3485
b73be471
TT
34862013-08-14 Tom Tromey <tromey@redhat.com>
3487
3488 * remote.c (struct remote_state) <last_sent_signal>:
3489 New field.
3490 (last_sent_signal): Remove.
3491 (new_remote_state, remote_resume, remote_wait_as): Update.
3492
5e4a05c4
TT
34932013-08-14 Tom Tromey <tromey@redhat.com>
3494
3495 * remote.c (struct remote_state) <last_program_signals_packet>:
3496 New field.
3497 (last_program_signals_packet): Remove.
3498 (remote_program_signals, remote_open_1): Update.
3499
747dc59d
TT
35002013-08-14 Tom Tromey <tromey@redhat.com>
3501
3502 * remote.c (struct remote_state) <last_pass_packet>:
3503 New field.
3504 (last_pass_packet): Remove.
3505 (remote_pass_signals, remote_open_1): Update.
3506
262e1174
TT
35072013-08-14 Tom Tromey <tromey@redhat.com>
3508
3509 * remote.c (struct remote_state) <remote_traceframe_number>:
3510 New field.
3511 (remote_traceframe_number): Remove.
3512 (new_remote_state, remote_open_1, set_remote_traceframe)
3513 (remote_trace_find): Update.
3514
47f8a51d
TT
35152013-08-14 Tom Tromey <tromey@redhat.com>
3516
3517 * remote.c (struct remote_state) <general_thread, continue_thread>:
3518 New fields.
3519 (general_thread, continue_thread): Remove.
3520 (record_currthread, set_thread, set_general_process)
3521 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3522 (extended_remote_mourn_1): Update.
3523
5d93a237
TT
35242013-08-14 Tom Tromey <tromey@redhat.com>
3525
3526 * remote.c (struct remote_state) <remote_desc>: New field.
3527 (remote_desc): Remove.
3528 (remote_threads_info, remote_threads_extra_info, remote_close)
3529 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3530 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3531 (remote_hostio_send_command, remote_file_put, remote_file_get)
3532 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3533 (remote_async, remote_new_objfile, set_range_stepping): Update.
3534
cf792862
TT
35352013-08-14 Tom Tromey <tromey@redhat.com>
3536
3537 * remote.c (remote_state): Now a pointer.
3538 (get_remote_state_raw): Update.
3539 (new_remote_state): New function.
3540 (_initialize_remote): Use new_remote_state.
3541
dc473cfb
TT
35422013-08-14 Tom Tromey <tromey@redhat.com>
3543
3544 * remote.c (remote_protocol_features): Now const.
3545
85ec6ce7
TT
35462013-08-14 Tom Tromey <tromey@redhat.com>
3547
3548 * remote.c (crc32_table, crc32): Remove.
3549 (remote_verify_memory): Use xcrc32.
3550
73033f12
SDJ
35512013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3552
3553 * value.h (create_internalvar_type_lazy): Adjust prototype
3554 declaration.
3555
5c30d39a
AB
35562013-08-13 Andrew Burgess <aburgess@broadcom.com>
3557
3558 * common/format.c (parse_format_string): Don't allow '#' flag for
3559 pointer arguments in format string.
3560
1a66331e
PM
35612013-08-13 Pierre Muller <muller@sourceware.org>
3562
fde605f3 3563 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3564 if rl_get_screen_size did not return useful values.
3565
b4013987
AA
35662013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3567
3568 PR breakpoints/15117
3569 * linespec.c (linespec_parse_basic): Check for convenience
3570 variable or history value while parsing.
3571
959b6a66
SDJ
35722013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3573
3574 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3575 AVR.
3576 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3577 different signals between the generic Linux kernel implementation
3578 and AVR's.
3579 (avr_linux_gdb_signal_from_target): Delete.
3580 (avr_linux_gdb_signal_to_target): Delete.
3581 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3582
24a55014
DE
35832013-08-09 Doug Evans <dje@google.com>
3584
3585 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3586 entries.
3587
eb14d406
SDJ
35882013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3589
3590 * linux-tdep.c: Define enum with generic signal numbers.
3591 (linux_gdb_signal_from_target): New function.
3592 (linux_gdb_signal_to_target): Likewise.
3593 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3594 methods to the functions above.
3595 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3596 (linux_gdb_signal_to_target): Likewise.
3597 * alpha-linux-tdep.c: Define new enum with signals different
3598 from generic Linux kernel.
3599 (alpha_linux_gdb_signal_from_target): New function.
3600 (alpha_linux_gdb_signal_to_target): Likewise.
3601 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3602 with the functions mentioned above.
3603 * avr-tdep.c: Define enum with differences between Linux kernel
3604 and AVR signals.
3605 (avr_linux_gdb_signal_from_target): New function.
3606 (avr_linux_gdb_signal_to_target): Likewise.
3607 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3608 the functions mentioned above.
3609 * sparc-linux-tdep.c: Define enum with differences between SPARC
3610 and generic Linux kernel signal numbers.
3611 (sparc32_linux_gdb_signal_from_target): New function.
3612 (sparc32_linux_gdb_signal_to_target): Likewise.
3613 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3614 to the functions defined above.
3615 * xtensa-linux-tdep.c: Define enum with differences between
3616 Xtensa and Linux kernel generic signals.
3617 (xtensa_linux_gdb_signal_from_target): New function.
3618 (xtensa_linux_gdb_signal_to_target): Likewise.
3619 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3620 to the functions defined above.
3621 * mips-linux-tdep.c: Define enum with differences between
3622 signals in MIPS and Linux kernel generic ones.
3623 (mips_gdb_signal_to_target): New function.
3624 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3625 only different signals from the Linux kernel generic.
3626 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3627 the functions defined above.
3628 * mips-linux-tdep.h (enum mips_signals): Remove.
3629
156d08c8
PA
36302013-08-09 Pedro Alves <palves@redhat.com>
3631
3632 * avr-tdep.c (XMALLOC): Delete macro.
3633 * cli/cli-dump.c (XMALLOC): Delete macro.
3634
db229724
PA
36352013-08-09 Pedro Alves <palves@redhat.com>
3636
3637 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3638 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3639 (fopen_with_cleanup, add_dump_command): Make static.
3640 * cli/cli-dump.h: Delete file.
3641 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3642 cli/cli-dump.h.
3643
3f12a589
PA
36442013-08-09 Pedro Alves <palves@redhat.com>
3645
3646 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3647 error message.
3648
c718be47
PA
36492013-08-09 Pedro Alves <palves@redhat.com>
3650
156d08c8 3651 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3652 error message.
3653
1e351ed1
PA
36542013-08-09 Pedro Alves <palves@redhat.com>
3655
3656 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3657 (gcore_command): Use tilde_expand here, and when showing the
3658 filename to the user, show the expanded version.
3659
1ed8d800
YQ
36602013-08-09 Yao Qi <yao@codesourcery.com>
3661
3662 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3663 'entryval' is set.
3664
47ecca85
PA
36652013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3666
3667 * gcore.c (create_gcore_bfd): Use tilde_expand.
3668
82a0a75f
YQ
36692013-08-08 Yao Qi <yao@codesourcery.com>
3670
3671 * frame.h (read_frame_local): Declare.
3672 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3673 read_frame_local.
3674 * stack.c (read_frame_local): New.
3675
5c4aa40b
YQ
36762013-08-08 Yao Qi <yao@codesourcery.com>
3677
3678 * mi/mi-cmd-stack.c: Update comments to function
3679 list_args_or_locals.
3680
b93601f3
TT
36812013-08-07 Tom Tromey <tromey@redhat.com>
3682
3683 PR symtab/15028:
3684 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3685 (process_psymtab_comp_unit_reader): Use it.
3686 (process_psymtab_comp_unit): Update. Add "pretend_language"
3687 argument.
3688 (dwarf2_build_psymtabs_hard): Update.
3689 (scan_partial_symbols): Pass CU's language to
3690 process_psymtab_comp_unit.
3691
fa760f46
TT
36922013-08-07 Tom Tromey <tromey@redhat.com>
3693
3694 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3695 (dwarf2_gdb_index_functions): Update.
3696 * psymtab.c (find_symbol_file_from_partial): Remove.
3697 (psym_functions): Update.
3698 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3699 Remove.
3700
bf6d8a91
TT
37012013-08-07 Tom Tromey <tromey@redhat.com>
3702
3703 * symfile.c (set_initial_language): Look up "main" symbol
3704 and use its language.
3705 * symtab.c (find_main_filename): Remove.
3706 * symtab.h (find_main_filename): Remove.
3707
f9125b6c
TT
37082013-08-07 Tom Tromey <tromey@redhat.com>
3709
3710 * dwarf2read.c (recursively_compute_inclusions): Add
3711 "immediate_parent" argument. Set symtab's "user" field
3712 if not set.
3713 (compute_symtab_includes): Update.
3714
fdbb204b
TT
37152013-08-07 Tom Tromey <tromey@redhat.com>
3716
3717 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3718 when adding label symbols.
3719
49de1690
UW
37202013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3721 Ulrich Weigand <uweigand@de.ibm.com>
3722
3723 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3724 * configure.host (powerpc64-*-aix*): Likewise.
3725
b08ee99f
UW
37262013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3727 Ulrich Weigand <uweigand@de.ibm.com>
3728
3729 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3730 is defined.
3731 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3732 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3733 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3734 * configure.ac: Check for ptrace64.
3735 * configure, config.in: Regenerate.
3736
fecf803e
UW
37372013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3738 Ulrich Weigand <uweigand@de.ibm.com>
3739
3740 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3741 Call ptrace64 instead of ptrace if defined.
3742 Add macro addr_ptr to take care of ptrace address argument.
3743 (pdc_read_regs): Likewise.
3744 (pdc_write_regs): Likewise.
3745 (aix_thread_resume): Likewise.
3746 (fetch_regs_kernel_thread): Likewise.
3747 (store_regs_kernel_thread): Likewise.
3748
3bb5e4a8
AB
37492013-08-07 Anton Blanchard <anton@samba.org>
3750
3751 * MAINTAINERS: Add myself to Write After Approval.
3752
12070676
TT
37532013-08-05 Tom Tromey <tromey@redhat.com>
3754
3755 * aix-thread.c (_initialize_aix_thread): Use
3756 complete_target_initialization.
3757 * bsd-uthread.c (_initialize_bsd_uthread): Use
3758 complete_target_initialization.
3759 * dec-thread.c (_initialize_dec_thread): Use
3760 complete_target_initialization.
3761 * ravenscar-thread.c (_initialize_ravenscar): Use
3762 complete_target_initialization.
3763 * sol-thread.c (_initialize_sol_thread): Use
3764 complete_target_initialization.
3765 * spu-multiarch.c (_initialize_spu_multiarch): Use
3766 complete_target_initialization.
3767
7c7b6655
TT
37682013-08-05 Tom Tromey <tromey@redhat.com>
3769
3770 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3771 * ada-lang.c (ada_lookup_simple_minsym): Return
3772 bound_minimal_symbol.
3773 * ada-lang.h (ada_lookup_simple_minsym): Update.
3774 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3775 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3776 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3777 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3778 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3779 * minsyms.c (msymbol_objfile): Remove.
3780 (lookup_minimal_symbol_internal): New function, from
3781 lookup_minimal_symbol.
3782 (lookup_minimal_symbol): Rewrite using
3783 lookup_minimal_symbol_internal.
3784 (lookup_bound_minimal_symbol): New function.
3785 * minsyms.h (msymbol_objfile): Remove.
3786 (lookup_bound_minimal_symbol): Declare.
3787 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3788 * parse.c (write_exp_msymbol): Change parameter to a
3789 bound_minimal_symbol.
3790 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3791 * parser-defs.h (write_exp_msymbol): Update.
3792 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3793 * symfile.c (simple_read_overlay_table): Use
3794 lookup_bound_minimal_symbol.
3795 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3796 (search_symbols): Likewise.
3797 (print_msymbol_info): Take a bound_minimal_symbol argument.
3798 (symtab_symbol_info, rbreak_command): Update.
3799 * symtab.h (struct symbol_search) <msymbol>: Change type
3800 to bound_minimal_symbol.
3801 * valops.c (find_function_in_inferior): Use
3802 lookup_bound_minimal_symbol.
3803 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3804
934b9bac
JK
38052013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3806
3807 Code cleanup.
3808 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3809 to ...
3810 (async_cleanup_sigint_signal_handler): ... this.
3811 (initialize_sigint_signal_handler): Remove declaration.
3812 (handle_remote_sigint): Rename the declaration to ...
3813 (async_handle_remote_sigint): ... this.
3814 (handle_remote_sigint_twice): Rename the declaration to ...
3815 (async_handle_remote_sigint_twice): ... this.
3816 (async_remote_interrupt, async_remote_interrupt_twice)
3817 (remote_interrupt): Remove the declarations.
3818 (remote_interrupt_twice): Rename the declaration ...
3819 (sync_remote_interrupt_twice): ... this.
3820 (sigint_remote_twice_token): Rename the variable to ...
3821 (async_sigint_remote_twice_token): ... this.
3822 (sigint_remote_token): Rename the variable to ...
3823 (async_sigint_remote_token): ... this.
3824 (initialize_sigint_signal_handler): Rename the function to ...
3825 (async_initialize_sigint_signal_handler): ... this. Update the name
3826 inside.
3827 (handle_remote_sigint): Rename the function to ...
3828 (async_handle_remote_sigint): ... this. Update the names inside.
3829 (handle_remote_sigint_twice): Rename the function to ...
3830 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3831 (cleanup_sigint_signal_handler): Rename the function to ...
3832 (async_cleanup_sigint_signal_handler): ... this.
3833 (remote_interrupt): Rename the function to ...
3834 (sync_remote_interrupt): this. Update the names inside.
3835 (remote_interrupt_twice): Rename the function to ...
3836 (sync_remote_interrupt_twice): this. Update the names inside.
3837 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3838 (_initialize_remote): Update the names inside.
3839
3a1115a0
TT
38402013-08-02 Tom Tromey <tromey@redhat.com>
3841
3842 PR symtab/15719:
3843 * breakpoint.c (update_watchpoint, watchpoint_check)
3844 (watch_command_1): Update.
3845 * eval.c (fetch_subexp_value): Add "preserve_errors"
3846 parameter.
3847 * ppc-linux-nat.c (check_condition): Update.
3848 * value.h (fetch_subexp_value): Update.
3849
58b19776
AB
38502013-08-02 Andrew Burgess <aburgess@broadcom.com>
3851
3852 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3853 add_file_handler.
3854
ec94af83
DE
38552013-08-01 Doug Evans <dje@google.com>
3856
7ee85ab1
DE
3857 PR symtab/15691
3858 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3859 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3860 Add assert of sig_entry->dwo_unit == NULL.
3861 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3862 had already been read.
3863 (read_signatured_type): Set per_cu.tu_read.
3864
b846d303
DE
3865 PR symtab/15695
3866 * valops.c (value_struct_elt): Add missing call to check_typedef.
3867 (value_find_oload_method_list): Ditto.
3868
b52109bc
DE
3869 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3870 effectively, struct symbol_search **.
3871 (make_cleanup_free_search_symbols): Change arg to struct
3872 symbol_search **. All callers updated.
3873 (compare_search_syms): Compare symtab file name and block as well.
3874 (search_symbols_equal): New function.
3875 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3876 New args new_head, new_tail. Result is now void. Remove dups after
3877 sorting the symbols.
3878 (search_symbols): Sort all found symbols once, after all have been
3879 found, and remove duplicates. Simplify cleanup tracking of result.
3880 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3881
ec94af83
DE
3882 Further workarounds for binutils/15021.
3883 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3884 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3885 Watch for duplicate symtabs coming from type units.
3886 (compute_symtab_includes): Update call to
3887 recursively_compute_inclusions. Build vector of included symtabs
3888 instead of per_cus.
3889 * symtab.h (symtab_ptr): New typedef.
3890 (DEF_VEC_P (symtab_ptr)): New VEC type.
3891 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3892 instead.
3893
b2ae85cf
AB
38942013-08-01 Andrew Burgess <aburgess@broadcom.com>
3895
3896 * cli/cli-script.c (script_from_file): Remove use of
3897 error_pre_print.
3898 * main.c (captured_main): Remove use of error_pre_print and
3899 quit_pre_print.
3900 * utils.c (error_pre_print, quit_pre_print): Remove.
3901 * utils.h (error_pre_print, quit_pre_print): Likewise.
3902
645eab03
YQ
39032013-08-01 Yao Qi <yao@codesourcery.com>
3904
3905 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3906 with mi_getopt.
3907 (mi_cmd_stack_list_variables): Likewise.
3908
16f92dd4
AB
39092013-07-31 Andrew Burgess <aburgess@broadcom.com>
3910
3911 * exceptions.c (deprecated_throw_reason): Remove.
3912 * exceptions.h (deprecated_throw_reason): Remove.
3913
13f78033
AB
39142013-07-31 Andrew Burgess <aburgess@broadcom.com>
3915
3916 * remote-mips.c (mips_error): Replace use of
3917 deprecated_throw_reason with throw_verror. Use the error message
3918 passed to mips_error as the error message for throw_verror.
3919
039e3c22
AB
39202013-07-31 Andrew Burgess <aburgess@broadcom.com>
3921
3922 * monitor.c (monitor_interrupt_query): Replace use of
3923 deprecated_throw_reason with quit.
3924 * nto-procfs.c (interrupt_query): Likewise.
3925 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3926 * remote-mips.c (mips_kill): Likewise.
3927 * remote.c (interrupt_query): Likewise.
3928
8150913b
AB
39292013-07-31 Andrew Burgess <aburgess@broadcom.com>
3930
3931 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3932 with call to fatal.
3933
de74e63a
YQ
39342013-07-31 Pedro Alves <pedro@codesourcery.com>
3935 Yao Qi <yao@codesourcery.com>
3936
3937 * tracepoint.c (trace_dump_command): Select the current frame.
3938
247f5c4f
DE
39392013-07-30 Doug Evans <dje@google.com>
3940
3941 * dwarf2read.c (process_queue): Add type signature to debug output.
3942
11b4b7cc
AB
39432013-07-30 Andrew Burgess <aburgess@broadcom.com>
3944
3945 * value.c (value_fetch_lazy): Mark optimized out values as such
3946 rather than raising an error.
3947
b0c54aa5
AB
39482013-07-30 Andrew Burgess <aburgess@broadcom.com>
3949
3950 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3951 before checking which bits of the parent, not the child, value are
3952 valid.
3953
97c85fc6
MB
39542013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3955
3956 PR gdb/15715
3957 * top.c: Include "filenames.h".
3958 (set_history_filename): New function.
3959 (init_main): Install it as set hook of the "set history filename"
3960 command.
3961
ff39bb5e
SA
39622013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3963
3964 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3965 attribute parameter.
3966 (dwarf2_const_value_data): Constify struct attribute parameter.
3967 (dwarf2_const_value): Constify struct attribute parameter.
3968 (dwarf2_const_value_attr): Constify struct attribute parameter.
3969 (lookup_die_type): Constify struct attribute parameter.
3970 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3971 (follow_die_ref_or_sig): Constify struct attribute parameter.
3972 (follow_die_ref): Constify struct attribute parameter.
3973 (follow_die_sig): Constify struct attribute parameter.
3974 (get_DW_AT_signature_type): Constify struct attribute parameter.
3975 (get_type_unit_group): Constify struct attribute parameter.
3976 (fill_in_loclist_baton): Constify struct attribute parameter.
3977 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3978 (type_unit_group): Constify struct attribute parameter.
3979
6e5a29e1
SA
39802013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3981
3982 * dwarf2read.c (attr_form_is_block): Make argument const.
3983 (attr_form_is_section_offset): Make argument const.
3984 (attr_form_is_constant): Make argument const.
3985 (attr_form_is_ref): Make argument const.
3986
7771576e
SA
39872013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3988
3989 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3990 All uses updated.
3991 (attr_form_is_ref): Moved below attr_form_is_constant.
3992
a94e8645
DE
39932013-07-29 Doug Evans <dje@google.com>
3994
bb5291d0
DE
3995 * main.c (captured_command_loop): Tweak comment.
3996
b5419e49
DE
3997 * target.c (target_async_permitted_1): Fix comment.
3998
b2d23133
DE
3999 * symtab.c (iterate_over_some_symtabs): Add comment.
4000
a94e8645
DE
4001 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4002
7a60ad40
YQ
40032013-07-27 Yao Qi <yao@codesourcery.com>
4004
4005 * NEWS: Mention that GDBserver now supports hardware
4006 watchpoints on the MIPS GNU/Linux target.
4007
aaee2056
YQ
40082013-07-27 Yao Qi <yao@codesourcery.com>
4009
4010 * Makefile.in (HFILES_NO_SRCDIR): Add
4011 common/mips-linux-watch.h.
4012 (mips-linux-watch.o): New rule.
4013 * common/mips-linux-watch.c: New.
4014 * common/mips-linux-watch.h: New.
4015 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4016 * mips-linux-nat.c: Include mips-linux-watch.h.
4017 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4018 to common/mips-linux-watch.h.
4019 (MAX_DEBUG_REGISTER): Likewise.
4020 (enum pt_watch_style): Likewise.
4021 (struct mips32_watch_regs): Likewise.
4022 (struct mips64_watch_regs): Likewise.
4023 (struct pt_watch_regs): Likewise.
4024 (struct mips_watchpoint): Likewise.
4025 (mips_linux_watch_get_irw_mask): Move to
4026 common/mips-linux-watch.c.
4027 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4028 (mips_linux_watch_get_watchlo): Likewise.
4029 (mips_linux_watch_set_watchlo): Likewise.
4030 (mips_linux_watch_get_watchhi): Likewise.
4031 (mips_linux_watch_set_watchhi): Likewise.
4032 (mips_linux_read_watch_registers): Likewise.
4033 (mips_linux_watch_type_to_irw): Likewise.
4034 (mips_linux_stopped_data_address, fill_mask): Likewise.
4035 (mips_linux_watch_try_one_watch): Likewise.
4036 (mips_linux_watch_populate_regs): Likewise.
4037
b3436450
YQ
40382013-07-27 Yao Qi <yao@codesourcery.com>
4039
4040 * mips-linux-nat.c (get_irw_mask): Rename to ...
4041 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4042 'set' to 'n'. Update function comment. All callers changed.
4043 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4044 function comment. All callers changed.
4045 (get_num_valid): Rename to ...
4046 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4047 'set' to 'n'. Update function comment. All callers changed.
4048 (get_watchlo): Rename to ...
4049 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4050 'set' to 'n'. Update function comment. All callers changed.
4051 (set_watchlo): Rename to ...
4052 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4053 'set' to 'n'. Update function comment. All callers changed.
4054 (get_watchhi): Rename to ...
4055 (mips_linux_watch_get_watchhi): ... this. Update function
4056 comment. All callers changed.
4057 (set_watchhi): Rename to ...
4058 (mips_linux_watch_set_watchhi): ... this. Update function
4059 comment. All callers changed.
4060 (mips_linux_read_watch_registers): Update function comment.
4061 Add new parameters 'lwpid', 'watch_readback', and
4062 'watch_readback_valid'. Update.
4063 (type_to_irw): Rename to ...
4064 (mips_linux_watch_type_to_irw): ... this. Update function
4065 comment. All callers changed.
4066 (fill_mask): Update function comment.
4067 (try_one_watch): Rename to ...
4068 (mips_linux_watch_try_one_watch): ... this. Change the type
4069 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4070 (populate_regs_from_watches): Rename to ...
4071 (mips_linux_watch_populate_regs): ... this. Add parameter
4072 'current_watches'. All callers changed.
4073
9be14b81
YQ
40742013-07-27 Yao Qi <yao@codesourcery.com>
4075
4076 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4077 the code.
4078 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4079 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4080 (struct pt_watch_regs): Likewise.
4081 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4082 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4083 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4084 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4085 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4086
de6f69ad
YQ
40872013-07-27 Yao Qi <yao@codesourcery.com>
4088
4089 * breakpoint.h: Include break-common.h.
4090 (enum target_hw_bp_type): Move to ...
4091 * common/break-common.h: ... here. New.
4092
6f64ef53
PA
40932013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4094
4095 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4096 process group regardless of having tty on stdin.
4097
6107e809
DE
40982013-07-25 Doug Evans <dje@google.com>
4099
4100 * linux-fork.h (detach_fork): Delete.
4101
7fdc1521
TT
41022013-07-25 Tom Tromey <tromey@redhat.com>
4103
4104 PR remote/15256, PR remote/15266:
4105 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4106 * monitor.c (monitor_detach): Use unpush_target.
4107 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4108 * remote-mips.c (mips_detach): Use unpush_target. Don't
4109 call mips_close.
4110 * remote-sim.c (gdbsim_detach): Use unpush_target.
4111 * target.c (pop_target): Remove.
4112 (pop_all_targets_above): Don't call target_close.
4113 (target_close): Assert that the target is unpushed.
4114 * target.h (pop_target): Don't declare.
4115 * tracepoint.c (tfile_open): Use unpush_target.
4116
c22a2b88
TT
41172013-07-25 Tom Tromey <tromey@redhat.com>
4118
4119 * linux-thread-db.c (init_thread_db_ops): Call
4120 complete_target_initialization.
4121 (_initialize_thread_db): Don't call add_target.
4122 * target.c (complete_target_initialization): New function.
4123 (add_target_with_completer): Call it.
4124 * target.h (complete_target_initialization): Declare.
4125
cbb6aada
MK
41262013-07-25 Mark Kettenis <kettenis@gnu.org>
4127
4128 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4129 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4130 (HPPANBSD_SIZEOF_GREGS): New define.
4131 (hppaobsd_supply_gregset): Handle additional registers.
4132 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4133 we provide more registers now.
4134 (hppabsd_supply_gregset): Supply additional registers.
4135 (hppabsd_collect_gregset): Collect additional registers.
4136
17767988
MK
41372013-07-25 Mark Kettenis <kettenis@gnu.org>
4138
4139 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4140 (hppabsd_dwarf2_frame_init_reg): New function.
4141 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4142
fdc8aae8
AB
41432013-07-25 Andrew Burgess <aburgess@broadcom.com>
4144
4145 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4146 'z' format code. Remove error for optimized out values, standard
4147 code will handle these fine.
4148
6fbe845e
AB
41492013-07-25 Andrew Burgess <aburgess@broadcom.com>
4150
4151 * NEWS: Mention new 'z' formatter.
4152 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4153 (_initialize_printcmd): Mention 'z' formatter in help text of the
4154 'x' command.
4155
3373342d
MR
41562013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4157
4158 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4159 formatting.
4160
25f9533e
SDJ
41612013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4162
4163 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4164 interface can evaluate arguments. Fallback to the old mode if it
4165 cannot.
4166 (create_exception_master_breakpoint): Likewise.
4167 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4168 (struct sym_probe_fns elf_probe_fns): Export function above to the
4169 probe interface.
4170 * probe.c (can_evaluate_probe_arguments): New function.
4171 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4172 function pointer.
4173 (can_evaluate_probe_arguments): New function prototype.
4174 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4175 probe interface can evaluate arguments. Fallback to the old mode
4176 if it cannot.
4177 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4178 interface can evaluate arguments. Warning the user if it cannot.
4179 (stap_can_evaluate_probe_arguments): New function.
4180 (struct probe_ops stap_probe_ops): Export function above to the
4181 probe interface.
4182 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4183 New function pointer.
4184
3360c0bf
LM
41852013-07-24 Luis Machado <lgustavo@codesourcery.com>
4186
4187 * Makefile.in (SFILES): Add common/target-common.c.
4188 Add common/target-common.h to headers.
4189 (COMMON_OBS): Add target-common.o.
4190 (target-common.o): New target.
4191 * linux-nat.h (resume_kind): Move to common/target-common.h.
4192 * target.c (target_waitstatus_to_string): Move to
4193 common/target-common.c.
4194 * target.h: Include target-common.h.
4195 (target_waitkind): Move to common/target-common.h.
4196 (target_waitstatus): Likewise.
4197 (TARGET_WNOHANG): Likewise.
4198 * common/target-common.c: New file.
4199 * common/target-common.h: New file.
4200
6656a72d
DE
42012013-07-24 Doug Evans <dje@google.com>
4202
4203 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4204 a warning.
4205
6df81a63
YQ
42062013-07-23 Yao Qi <yao@codesourcery.com>
4207
4208 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4209 parameter 'gdbarch'.
4210 (i386_stack_tramp_frame_sniffer): Caller update.
4211 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4212 parameter 'gdbarch' and 'target'.
4213 (i386_linux_core_read_description): Caller update.
4214 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4215 Likewise.
4216 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4217 declaration.
4218
365156ad
TT
42192013-07-23 Tom Tromey <tromey@redhat.com>
4220
4221 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4222 2013-07-22.
4223
046ac79f
JK
42242013-07-22 Doug Evans <dje@google.com>
4225
4226 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4227 * exec.c (exec_close): Update call to remove_target_sections.
4228 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4229 * solib.c (update_solib_list): Ditto.
4230 (reload_shared_libraries_1): Ditto.
4231 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4232 * target.h (struct target_section): Rename key to owner.
4233 All uses updated.
046ac79f 4234
29b2cc46
TT
42352013-07-22 Tom Tromey <tromey@redhat.com>
4236
4237 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4238
d1160018
TT
42392013-07-22 Tom Tromey <tromey@redhat.com>
4240
4241 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4242 Simplify cleanup handling.
4243
2f324bf6
TT
42442013-07-22 Tom Tromey <tromey@redhat.com>
4245
4246 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4247 on all return paths.
4248
e23b9d6e
UW
42492013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4250
4251 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4252 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4253 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4254
1cf55f60
PM
42552013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4256
4257 * top.c (print_gdb_version): Add help, apropos description and
4258 url to online documentation.
4259
fa876972
HZ
42602013-07-19 Hui Zhu <hui@codesourcery.com>
4261
4262 PR gdb/15692
4263 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4264
1527aea8
YQ
42652013-07-19 Yao Qi <yao@codesourcery.com>
4266
4267 * target.c (update_current_target): Change the default action
4268 of 'to_traceframe_info' from tcomplain to return_zero.
4269 * target.h (struct target_ops) <to_traceframe_info>: Add more
4270 comments.
4271 * valops.c (read_value_memory): Call
4272 traceframe_available_memory unconditionally.
4273
886f230e
YQ
42742013-07-18 Yao Qi <yao@codesourcery.com>
4275
4276 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4277 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4278 symbol without prefix. If found, set its type to
4279 'mst_solib_trampoline'.
4280
16419bae
DE
42812013-07-17 Doug Evans <dje@google.com>
4282
e7045703
DE
4283 * NEWS: Mention "set print raw frame-arguments".
4284 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4285 * stack.c (print_raw_frame_arguments): New static global.
4286 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4287 (_initialize_stack): New command "set/show print raw frame-arguments".
4288 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4289 (set_print_raw, show_print_raw): New functions.
4290 (_initialize_valprint): New prefix command "set/show print raw".
4291 * valprint.h (value_print_options): Improve comments.
4292
453e48a5
DE
4293 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4294 of all *list variables.
4295
16419bae
DE
4296 * gdbcmd.h (togglelist): Delete.
4297 * cli/cli-cmds.c (togglelist): Delete.
4298 (init_cmd_lists): Update.
4299 * cli/cli-cmds.h (togglelist): Delete.
4300
626f2d1c
TT
43012013-07-17 Tom Tromey <tromey@redhat.com>
4302
4303 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4304 dwarf2_per_objfile.
4305
57e6060e
DE
43062013-07-16 Doug Evans <dje@google.com>
4307
4308 * nto-tdep.c (nto_relocate_section_addresses): Update,
4309 target_section.bfd deleted.
4310 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4311 * s390-tdep.c (s390_load): Ditto.
4312 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4313
5ea5559b
AB
43142013-07-16 Andrew Burgess <aburgess@broadcom.com>
4315
4316 * common/format.c (parse_format_string): Add checks for NULL
4317 character before calling strchr.
4318
2b2848e2
DE
43192013-07-16 Doug Evans <dje@google.com>
4320
2c571006
DE
4321 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4322 temp_pathname argument.
4323 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4324 when opening the file fails.
4325
2b2848e2
DE
4326 * target.h (struct target_section): Delete member bfd.
4327 All users updated to use the_bfd_section->owner instead.
4328 * exec.c (add_to_section_table): Assert bfd is expected value.
4329 Remove initialization of target_section.bfd.
4330 (remove_target_sections): Update.
4331 (section_table_available_memory): Update.
4332 (section_table_xfer_memory_partial): Update.
4333 (print_section_info): Update.
4334 (exec_set_section_address): Update.
4335 * record-full.c (record_full_core_xfer_partial): Update.
4336 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4337 * solib-target.c (solib_target_relocate_section_addresses): Update.
4338 * symfile.c (build_section_addr_info_from_section_table): Update.
4339 * target.c (memory_xfer_live_readonly_partial): Update.
4340 (memory_xfer_partial_1): Update.
4341
926bf92d
UW
43422013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4343
4344 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4345 now available for embedded (BookE) and server (BookS) processors,
4346 correct mentions of 'booke' and adjust comments accordingly in order to
4347 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4348 (have_ptrace_booke_interface): Rename function and variable
4349 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4350 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4351 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4352 'hwdebug_point_cmp'. Update all uses.
4353 (booke_find_thread_points_by_tid): Rename function
4354 'booke_find_thread_points_by_tid' to
4355 'hwdebug_find_thread_points_by_tid'. Update all uses.
4356 (booke_insert_point): Rename function 'booke_insert_point' to
4357 'hwdebug_insert_point'. Update all uses.
4358 (booke_remove_point): Rename function 'booke_remove_point' to
4359 'hwdebug_remove_point'. Update all uses.
4360
d929bc19
MR
43612013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4362
4363 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4364 numbers with enum values.
4365
054e8d9e
AA
43662013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4367
4368 PR threads/13217
4369 * thread.c (thread_apply_all_command): Check for valid threads
4370 and thread count.
4371 (thread_array_cleanup): New struct.
4372 (set_thread_refcount): New function.
4373
cf006359
AB
43742013-07-11 Andrew Burgess <aburgess@broadcom.com>
4375
4376 * infcmd.c (default_print_one_register_info): Reuse function
4377 print_hex_chars.
4378
94e36acc
TT
43792013-07-10 Tom Tromey <tromey@redhat.com>
4380
4381 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4382 (ada-exp.o): New target.
4383
915dd369
SDJ
43842013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4385
4386 * mt-tdep.c (mt_registers_info): Call
4387 get_no_prettyformat_print_options instead of
4388 get_raw_print_options (regression by last patch from Doug
4389 Evans).
4390
eca07816
JB
43912013-07-09 Pedro Alves <palves@redhat.com>
4392
4393 Checked in by Joel Brobecker <brobecker@adacore.com>.
4394 * ada-lang.c (coerce_unspec_val_to_type): Use
4395 value_optimized_out_const.
4396 * value.c (value_optimized_out_const): New function.
4397 * value.h (value_optimized_out_const): New declaration.
4398
2a998fc0
DE
43992013-07-09 Doug Evans <dje@google.com>
4400
4401 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4402 Enum values rename as well. All uses updated.
4403 * valprint.h (value_print_options): Rename member pretty to
4404 pretty format. Rename member prettyprint_arrays to
4405 prettyformat_arrays. Rename member prettyprint_structs to
4406 prettyformat_structs. All uses updated.
4407 (get_no_prettyformat_print_options): Renamed from
4408 get_raw_print_options.
4409 * valprint.c (get_no_prettyformat_print_options): Renamed from
4410 get_raw_print_options. All callers updated.
4411 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4412 All callers updated.
4413 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4414 All callers updated.
4415 (_initialize_valprint): Improve help text for "set print pretty" and
4416 "set print arrays".
4417
466c1fca
AB
44182013-07-09 Andrew Burgess <aburgess@broadcom.com>
4419
4420 * value.c (value_bits_valid): Revert previous change, and change
4421 by Pedro on 2013-07-04, due to regressions in
4422 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4423
ad0f0303
AB
44242013-07-08 Andrew Burgess <aburgess@broadcom.com>
4425 Pedro Alves <palves@redhat.com>
4426
4427 * value.c (value_bits_valid): If the value is not lval_computed
4428 or has no check validity handler then the answer is the
4429 optimized_out flag, otherwise defer to the handler.
4430
b187bec1
EZ
44312013-07-06 Eli Zaretskii <eliz@gnu.org>
4432
48d1d6f5
EZ
4433 * top.c (print_gdb_configuration): Explain in output of
4434 --configuration what does "relocatable" mean.
4435
b187bec1
EZ
4436 * main.c (print_gdb_help): Regroup options in the --help text.
4437 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4438 the relevant discussions.
4439
52d361e1
YQ
44402013-07-06 Yao Qi <yao@codesourcery.com>
4441
4442 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4443 Remove parameter 'lsal'.
4444 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4445 to inner block. Caller update.
4446 (base_breakpoint_create_breakpoints_sal): Update.
4447 (bkpt_create_breakpoints_sal): Likewise.
4448 (tracepoint_create_breakpoints_sal): Likewise.
4449 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4450 element 0 of vector 'canonical->sals'.
4451
e1ec1b42
LM
44522013-07-05 Luis Machado <lgustavo@codesourcery.com>
4453
4454 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4455 register number instead of the pseudo register one.
4456 (rs6000_dwarf2_reg_to_regnum): Likewise.
4457
7195e6f0
PA
44582013-07-04 Pedro Alves <palves@redhat.com>
4459
4460 * findvar.c (value_of_register): Use allocate_optimized_out_value
4461 if the register has been optimized out, instead of
4462 set_value_optimized_out.
4463 * frame-unwind.c (frame_unwind_got_optimized): Use
4464 allocate_optimized_out_value.
4465
58722cac
PA
44662013-07-04 Pedro Alves <palves@redhat.com>
4467
4468 * value.c (value_bits_valid): If the value is not lval_computed,
4469 or doesn't have a check_validity hook, assume the value is entirely
4470 valid.
4471
691a26f5
AB
44722013-07-04 Andrew Burgess <aburgess@broadcom.com>
4473
4474 * stack.c (read_frame_arg): No longer fetch lazy values.
4475 * value.c (value_optimized_out): If the value is not already
4476 marked optimized out, and is lazy then fetch it.
4477 (value_primitive_field): Move optimized out check to later in the
4478 function, after we have loaded any lazy values.
4479 (value_fetch_lazy): Use optimized out flag directly rather than
4480 calling optimized_out method.
4481
a58e2656
AB
44822013-07-04 Andrew Burgess <aburgess@broadcom.com>
4483
4484 * valops.c: Don't include "user-regs.h".
4485 (value_fetch_lazy): Moved to value.c.
4486 * value.c: Include "user-regs.h".
4487 (value_fetch_lazy): Moved from valops.c.
4488
bd885420
YQ
44892013-07-04 Yao Qi <yao@codesourcery.com>
4490
4491 Revert:
4492 2013-06-27 Yao Qi <yao@codesourcery.com>
4493
4494 * common/create-version.sh: Update comments. Handle the case
4495 that TARGET_ALIAS is empty.
4496
17ef446e
PA
44972013-07-03 Pedro Alves <palves@redhat.com>
4498
4499 * Makefile.in (config.status): Depend on development.sh.
4500 (aclocal_m4_deps): Add libmcheck.m4.
4501 * acinclude.m4: Include libmcheck.m4.
4502 * configure.ac: Source development.sh instead of setting
4503 'development' here. --enable-libmcheck/--disable-libmcheck code
4504 factored out to GDB_AC_LIBMCHECK. Run it.
4505 * development.sh: New file.
4506 * libmcheck.m4: New file.
4507 * configure: Regenerate.
4508
ac6dd50f
TT
45092013-07-02 Tom Tromey <tromey@redhat.com>
4510
4511 * contrib/ari/update-web-ari.sh: Update for version.in change.
4512
bd1df410
TT
45132013-07-02 Tom Tromey <tromey@redhat.com>
4514
4515 * common/ptid.h: Comment fixes.
4516
4db1a1dc
TT
45172013-07-01 Tom Tromey <tromey@redhat.com>
4518
4519 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4520 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4521 (dwarf2_read_index, create_all_comp_units): Update.
4522
dd9aa048
TT
45232013-07-01 Tom Tromey <tromey@redhat.com>
4524
4525 * configure.ac (build_warnings): Add -Wold-style-definition.
4526 * configure: Rebuild.
4527 * machoread.c (_initialize_machoread): Use "(void)".
4528 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4529 use "(void)".
4530
44d100c3
TT
45312013-07-01 Tom Tromey <tromey@redhat.com>
4532
4533 * configure.ac (build_warnings): Add -Wold-style-declaration.
4534 * configure: Rebuild.
4535 * dsrec.c (make_srec): Use "static const", not "const static".
4536 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4537 not "const static".
4538 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4539 Use "static const", not "const static".
4540 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4541 not "const static".
4542 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4543 not "const static".
4544 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4545 not "const static".
4546 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4547 not "const static".
4548 (v850_dbtrap_breakpoint_from_pc): Likewise.
4549 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4550 not "const static".
4551
2945b807
TT
45522013-07-01 Tom Tromey <tromey@redhat.com>
4553
4554 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4555 * configure: Rebuild.
4556
d8d2a3ee
PA
45572013-07-01 Pedro Alves <palves@redhat.com>
4558
4559 * defs.h: Include "pathmax.h".
4560 * utils.c: Don't include sys/param.h.
4561 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4562 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4563 instead of MAXPATHLEN.
4564 * solib-sunos.c: Don't include sys/param.h.
4565 * xcoffread.c: Don't include sys/param.h.
4566 * bsd-kvm.c: Don't include sys/param.h.
4567 * darwin-nat.c: Don't include sys/param.h.
4568 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4569 * darwin-nat-info.c: Don't include sys/param.h.
4570 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4571 MAXPATHLEN.
4572 * i386obsd-nat.c: Don't include sys/param.h.
4573 * inf-child.c: Don't include sys/param.h.
4574 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4575 * linux-fork.c: Don't include sys/param.h.
4576 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4577 * linux-nat.c: Don't include sys/param.h.
4578 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4579 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4580 * m68klinux-nat.c: Don't include sys/param.h.
4581 * nbsd-nat.c: Don't include sys/param.h.
4582 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4583 * ppc-linux-nat.c: Don't include sys/param.h.
4584 * rs6000-nat.c: Don't include sys/param.h.
4585 * spu-linux-nat.c. Don't include sys/param.h.
4586 * windows-nat.c: Don't include sys/param.h.
4587 * xtensa-linux-nat.c: Don't include sys/param.h.
4588 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4589
38ec2207
PA
45902013-07-01 Pedro Alves <palves@redhat.com>
4591
4592 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4593 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4594 * gnulib/aclocal.m4: Regenerate.
4595 * gnulib/config.in: Regenerate.
4596 * gnulib/configure: Regenerate.
4597 * gnulib/import/pathmax.h: New file.
4598 * gnulib/import/Makefile.am: Regenerate.
4599 * gnulib/import/Makefile.in: Regenerate.
4600 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4601 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4602 * gnulib/import/m4/pathmax.m4: New file.
4603
e655c1a2
PA
46042013-07-01 Pedro Alves <palves@redhat.com>
4605
4606 * configure.ac (GDBINIT): Define, depending on host.
4607 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4608 * top.c (PATH_MAX): Delete fallback definition.
4609 (GDBINIT_FILENAME): Delete.
4610 (gdbinit): Reimplement as const char array set to the GDBINIT
4611 string constant.
4612 * top.h (gdbinit): Make const.
4613 * configure, config.in: Regenerate.
4614
50dd9793
PA
46152013-07-01 Pedro Alves <palves@redhat.com>
4616
4617 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4618 * cli/cli-cmds.h (source_script): Likewise.
4619 * exceptions.c (catch_command_errors_const): New function.
4620 * exceptions.h (catch_command_errors_const): Declare.
4621 * main.c (get_init_files): Make parameters const, and adjust.
4622 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4623 'local_gdbinit' locals const. Adjust to use
4624 catch_command_errors_const.
4625 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4626 'local_gdbinit' locals const.
4627
bc7dea8d
PA
46282013-07-01 Pedro Alves <palves@redhat.com>
4629
4630 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4631 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4632 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4633 <unistd.h>.
4634
8839a007
PA
46352013-07-01 Pedro Alves <palves@redhat.com>
4636
4637 Import the "unistd" gnulib module.
4638 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4639 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4640 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4641 import/m4/unistd_h.m4.
4642 * gnulib/aclocal.m4: Renenerate.
4643 * gnulib/config.in: Renenerate.
4644 * gnulib/configure: Renenerate.
4645 * gnulib/import/Makefile.am: Renenerate.
4646 * gnulib/import/Makefile.in: Renenerate.
4647 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4648 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4649 * gnulib/import/m4/off_t.m4: New file.
4650 * gnulib/import/m4/ssize_t.m4: New file.
4651 * gnulib/import/m4/sys_types_h.m4: New file.
4652 * gnulib/import/m4/unistd_h.m4: New file.
4653 * gnulib/import/sys_types.in.h: New file.
4654 * gnulib/import/unistd.c: New file.
4655 * gnulib/import/unistd.in.h: New file.
4656
8c0da261
PA
46572013-07-01 Pedro Alves <palves@redhat.com>
4658
4659 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4660 defined instead of checking HAVE_UNISTD_H.
4661
3574124b
PA
46622013-07-01 Pedro Alves <palves@redhat.com>
4663
4664 Reimport gnulib from scratch.
4665 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4666 import/m4/onceonly.m4.
4667 * gnulib/aclocal.m4: Renegerate.
4668 * gnulib/config.in: Renegerate.
4669 * gnulib/configure: Renegerate.
4670 * gnulib/import/Makefile.in: Renegerate.
4671 * gnulib/import/extra/update-copyright: Renegerate.
4672 * gnulib/import/m4/onceonly.m4: Delete.
4673
702dc4fd
PA
46742013-07-01 Pedro Alves <palves@redhat.com>
4675
4676 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4677
47e1ce27
JK
46782013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4679
4680 Code cleanup.
4681 * remote.c (async_remote_interrupt_twice): Make it static.
4682 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4683
e82839d4
SDJ
46842013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4685
4686 * ia64-linux-tdep.c: Include <ctype.h>.
4687 (ia64_linux_stap_is_single_operand): New function.
4688 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4689
d6c2da54
TT
46902013-06-28 Tom Tromey <tromey@redhat.com>
4691
4692 * Makefile.in (version.c): Use version.in, not
4693 common/version.in.
4694 * common/create-version.sh: Likewise.
4695 * common/version.in: Move...
4696 * version.in: ...here.
4697
74da6f00
PA
46982013-06-28 Pedro Alves <palves@redhat.com>
4699
4700 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4701 here.
4702 * utils.h (pagination_enabled): Declare.
4703
d32dc48e
PA
47042013-06-28 Pedro Alves <palves@redhat.com>
4705
4706 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4707 Move higher up in file.
4708
0edd9e3b
TT
47092013-06-28 Tom Tromey <tromey@redhat.com>
4710
4711 * tracepoint.c (deprecated_readline_begin_hook)
4712 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4713 declare.
4714
4eb59108
PA
47152013-06-28 Pedro Alves <palves@redhat.com>
4716
4717 PR tui/14880
4718 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4719 checking if they're available.
4720 * value.c (value_available_contents_eq): Change comment.
4721 * value.h (value_available_contents_eq): Expand comment.
4722
97b17156
TT
47232013-06-27 Tom Tromey <tromey@redhat.com>
4724
4725 * target.c (find_run_target): Remove.
4726 * target.h (find_run_target): Remove.
4727
6a3bfc5c
TT
47282013-06-27 Tom Tromey <tromey@redhat.com>
4729
4730 * corelow.c (core_gdbarch): Now static.
4731
c9ef825d
TT
47322013-06-27 Tom Tromey <tromey@redhat.com>
4733
4734 * target.c (target_struct_index): Remove.
4735
e5823f1c
PA
47362013-06-27 Pedro Alves <palves@redhat.com>
4737
4738 * infrun.c: Remove comment describing the 'stepping over runtime
4739 loader dynamic symbol resolution code' mechanism; moved to
4740 gdbint.texinfo.
4741
97f8dd09
PA
47422013-06-27 Pedro Alves <palves@redhat.com>
4743
4744 * exceptions.c (catch_command_errors): Remove spurious space.
4745 * exceptions.h (catch_command_errors): Second parameter is "arg",
4746 not "command".
4747
02b1871e
YQ
47482013-06-27 Yao Qi <yao@codesourcery.com>
4749
4750 * common/create-version.sh: Update comments. Handle the case
4751 that TARGET_ALIAS is empty.
4752
bb1b1cf1
PA
47532013-06-26 Pedro Alves <palves@redhat.com>
4754
4755 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4756 comment.
4757
7b624e71
PA
47582013-06-26 Pedro Alves <palves@redhat.com>
4759
4760 * infrun.c: Update comments on stepping over runtime loader
4761 dynamic symbol resolution code.
4762
74e5a346
SDJ
47632013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4764
4765 * ax-gdb.h (union exp_element): Forward declare.
4766 * parser-defs.h: Include expression.h.
4767
a2fb2cee
MR
47682013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4769
4770 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4771
cdba14e0
DK
47722013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4773
4774 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4775
f30aa5af
DK
47762013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4777
4778 Fix trace-status to output proper start-time and stop-time.
4779 * tracepoint.c (trace_status_command): Fix type of printf arg to
4780 prevent improper type conversion.
4781 (trace_status_mi): Likewise.
4782
1aee363c
MR
47832013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4784
4785 * mips-tdep.c (mips_next_pc): Fix a typo.
4786
3356937a
MR
47872013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4788
4789 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4790
dc673c81
YQ
47912013-06-26 Pedro Alves <pedro@codesourcery.com>
4792 Yao Qi <yao@codesourcery.com>
4793
4794 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4795 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4796 * mi/mi-main.c (print_variable_or_computed): New function.
4797 (mi_cmd_trace_frame_collected): New function.
4798 * tracepoint.c (find_trace_state_variable_by_number): New.
4799 (struct traceframe_info): Move to tracepoint.h
4800 (struct collection_list): Likewise.
4801 (do_collect_symbol): Include locals and arguments in the
4802 collected variables list.
4803 (clear_collection_list): Clear wholly collected variables list
4804 and computed variables list.
4805 (append_exp): New function.
4806 (encode_actions_1): Include variables in the wholly
4807 collected variables list. Include memory ranges and
4808 full-fledged expressions in the computed expressions list.
4809 (encode_actions): Move some code to ...
4810 Return the cleanup chain.
4811 (encode_actions_rsp): ... here. New function.
4812 (get_traceframe_location, get_traceframe_info): Remove static.
4813 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4814 (struct collection_list): Moved from tracepoint.c. Add two
4815 new fields 'wholly_collected' and 'computed'.
4816 (find_trace_state_variable_by_number): Declare.
4817 (encode_actions): Adjust declaration.
4818 (encode_actions_rsp): Declare.
4819 (get_traceframe_info, get_traceframe_location): Declare.
4820
4821 * NEWS: Mention new MI command -trace-frame-collected.
4822
28a93511
YQ
48232013-06-26 Pedro Alves <pedro@codesourcery.com>
4824 Yao Qi <yao@codesourcery.com>
4825
4826 * ctf.c (ctf_traceframe_info): Push trace state variables
4827 present in the trace data into the traceframe info object.
4828 * breakpoint.c (DEF_VEC_I): Remove.
4829 * common/filestuff.c (DEF_VEC_I): Likewise.
4830 * dwarf2loc.c (DEF_VEC_I): Likewise.
4831 * mi/mi-main.c (DEF_VEC_I): Likewise.
4832 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4833 * features/traceframe-info.dtd: Add tvar element and its
4834 attributes.
4835 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4836 (build_traceframe_info): Push trace state variables present in
4837 the trace data into the traceframe info object.
4838 (traceframe_info_start_tvar): New function.
4839 (tvar_attributes): New.
4840 (traceframe_info_children): Add "tvar" element.
4841 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4842
4843 * NEWS: Mention the change in GDB and GDBserver.
4844
ddacd3c8
YQ
48452013-06-26 Pedro Alves <pedro@codesourcery.com>
4846 Yao Qi <yao@codesourcery.com>
4847
4848 * tracepoint.c (trace_dump_command): Move code to ...
4849 (get_traceframe_location): ... here. New.
4850
05796b35
YQ
48512013-06-26 Pedro Alves <pedro@codesourcery.com>
4852 Yao Qi <yao@codesourcery.com>
4853
4854 * tracepoint.c (trace_dump_command): GDB emits an error
4855 instead of a warning when a traceframe is not selected.
4856
cbfa3b61
YQ
48572013-06-26 Pedro Alves <pedro@codesourcery.com>
4858 Yao Qi <yao@codesourcery.com>
4859
4860 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4861 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4862 in collection_list.
4863 (do_clear_collection_list, init_collection_list): New.
4864 (encode_actions): Add local variables 'tracepoint_list' and
4865 'stepping_list'. Call init_collection_list and make cleanup
4866 which calls do_clear_collection_list. Don't call
4867 clear_collection_list.
4868 (_initialize_tracepoint): Delete references to
4869 'tracepoint_list' and 'stepping_list'.
4870
6e2048d3
TT
48712013-06-25 Tom Tromey <tromey@redhat.com>
4872
4873 * common/create-version.sh (date): Use "$", not "$$" in sed
4874 expression.
4875
42059f0e
KB
48762013-06-25 Kevin Buettner <kevinb@redhat.com>
4877
4878 * NEWS (New targets): Add entry for TI MSP430.
4879
a0743c90
YQ
48802013-06-25 Yao Qi <yao@codesourcery.com>
4881
4882 * remote.c (remote_start_remote): Move code to upload tsv
4883 earlier.
4884
9d6e6e84
HZ
48852013-06-25 Yao Qi <yao@codesourcery.com>
4886 Hui Zhu <hui@codesourcery.com>
4887 Pedro Alves <palves@redhat.com>
4888
4889 PR breakpoints/15075
4890 PR breakpoints/15434
4891 * breakpoint.c (bpstat_stop_status): Call
4892 b->ops->after_condition_true.
4893 (update_dprintf_command_list): Don't append "continue" command
4894 to the command list of dprintf breakpoint.
4895 (base_breakpoint_after_condition_true): New function.
4896 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4897 (dprintf_after_condition_true): New function.
4898 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4899 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4900
586cf749
KB
49012013-06-24 Kevin Buettner <kevinb@redhat.com>
4902
4903 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4904 (ALLDEPFILES): Add msp430-tdep.c.
4905 * configure.tgt (msp430*-*-elf): New target.
4906 * msp430-tdep.c: New file.
4907
1bbce132
MR
49082013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4909
4910 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4911 microMIPS synthetic symbols.
4912
3e5d3a5a
MR
49132013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4914
4915 * objfiles.h (pc_in_section): New prototype.
4916 (in_plt_section): Remove name argument, replace prototype with
4917 static inline function.
4918 * mips-tdep.h: Include "objfiles.h".
4919 (in_mips_stubs_section): New function.
4920 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4921 in_solib_call_trampoline member.
4922 (hppa_in_solib_call_trampoline): Remove name argument.
4923 * objfiles.c (pc_in_section): New function.
4924 (in_plt_section): Remove function.
4925 * mips-linux-tdep.c: Include "objfiles.h".
4926 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4927 name argument. Return 1 rather than the low 16-bit halfword of
4928 any instruction examined.
4929 (mips_linux_in_dynsym_resolve_code): Update
4930 mips_linux_in_dynsym_stub call accordingly.
4931 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4932 rather than an equivalent hand-coded sequence.
4933 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4934 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4935 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4936 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4937 in_opd_section.
4938 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4939 on call to tdep->in_solib_call_trampoline.
4940 (hppa_in_solib_call_trampoline): Remove name argument, update
4941 according to in_plt_section change.
4942 (hppa_skip_trampoline_code): Update according to in_plt_section
4943 change.
4944 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4945 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4946 Likewise.
4947 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4948 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4949 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4950 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4951 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4952 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4953 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4954 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4955 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4956 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4957 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4958 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4959 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4960
b9b26a16
JB
49612013-06-24 Joel Brobecker <brobecker@adacore.com>
4962
4963 * common/create-version.sh: Fix expansion of $host_alias
4964 and $target_alias in generation of HOST_NAME and TARGET_NAME
4965 (resp.).
4966
01208463
TT
49672013-06-24 Tom Tromey <tromey@redhat.com>
4968
4969 * common/create-version.sh: New file.
4970 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4971 create-version.sh.
4972 (HFILES_NO_SRCDIR): Use common/version.h.
4973 * version.in: Move to ...
4974 * common/version.in: ... here. Replace date with "DATE".
4975 * version.h: Move to ...
4976 * common/version.h: ... here.
4977
bb6b9a5e
JB
49782013-06-21 Joel Brobecker <brobecker@adacore.com>
4979
4980 * gdb/gnulib/Makefile.in: Update date in copyright header.
4981 * gdb/gnulib/configure.ac: Ditto.
4982 * gdb/gnulib/update-gnulib.sh: Ditto.
4983
c3b18ee7
JB
49842013-06-21 Joel Brobecker <brobecker@adacore.com>
4985
4986 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4987 "gdb/gnulib/import".
4988
85d3b769
WN
49892013-06-21 Will Newton <will.newton@linaro.org>
4990
4991 * doublest.c (ldfrexp): Remove function.
4992 (convert_doublest_to_floatformat): Call frexpl instead of
4993 ldfrexp.
4994
88b48903
WN
49952013-06-21 Will Newton <will.newton@linaro.org>
4996
4997 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4998 * gnulib/aclocal.m4: Regenerate.
4999 * gnulib/config.in: Regenerate.
5000 * gnulib/configure: Regenerate.
5001 * gnulib/import/Makefile.am: Update.
5002 * gnulib/import/Makefile.in: Update.
5003 * gnulib/import/m4/gnulib-cache.m4: Update.
5004 * gnulib/import/m4/gnulib-comp.m4: Update.
5005 * gnulib/import/float+.h: Import.
5006 * gnulib/import/float.c: Import.
5007 * gnulib/import/float.in.h: Import.
5008 * gnulib/import/fpucw.h: Import.
5009 * gnulib/import/frexp.c: Import.
5010 * gnulib/import/frexpl.c: Import.
5011 * gnulib/import/isnan.c: Import.
5012 * gnulib/import/isnand-nolibm.h: Import.
5013 * gnulib/import/isnand.c: Import.
5014 * gnulib/import/isnanl-nolibm.h: Import.
5015 * gnulib/import/isnanl.c: Import.
5016 * gnulib/import/itold.c: Import.
5017 * gnulib/import/m4/exponentd.m4: Import.
5018 * gnulib/import/m4/exponentl.m4: Import.
5019 * gnulib/import/m4/float_h.m4: Import.
5020 * gnulib/import/m4/fpieee.m4: Import.
5021 * gnulib/import/m4/frexp.m4: Import.
5022 * gnulib/import/m4/frexpl.m4: Import.
5023 * gnulib/import/m4/isnand.m4: Import.
5024 * gnulib/import/m4/isnanl.m4: Import.
5025 * gnulib/import/m4/math_h.m4: Import.
5026 * gnulib/import/math.c: Import.
5027 * gnulib/import/math.in.h: Import.
5028
4353c9e6
JK
50292013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5030
5031 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5032 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5033 signature_INTEL_edx comparisons.
5034
e3e06db3
DE
50352013-06-20 Doug Evans <dje@google.com>
5036
6ac97d4c
DE
5037 symtab/15652
5038 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5039 All callers updated.
5040 (open_dwp_file): If we can't find the dwp file, search the basename
5041 in debug-file-directory.
5042
93417882
DE
5043 * dwarf2read.c (struct dwp_file): Fix comment.
5044 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5045
e3e06db3
DE
5046 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5047 better.
5048
0878d0fa
YQ
50492013-06-20 Yao Qi <yao@codesourcery.com>
5050
5051 * breakpoint.c (create_breakpoint): Fix code indentation.
5052
023fa29b
YQ
50532013-06-20 Yao Qi <yao@codesourcery.com>
5054
5055 * breakpoint.c (create_breakpoints_sal_default): Remove
5056 parameter 'lsal'. Update declaration.
5057 (bkpt_create_breakpoints_sal): Caller update.
5058 (tracepoint_create_breakpoints_sal): Likewise.
5059
c898adb7
YQ
50602013-06-20 Pedro Alves <pedro@codesourcery.com>
5061 Yao Qi <yao@codesourcery.com>
5062
5063 * NEWS: Mention the new option '--skip-unavailable' of command
5064 -data-list-register-values.
5065 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5066 --skip-unavailable option. Adjust to use output_register.
5067 (output_register): Add new 'skip_unavailable' parameter.
5068 Handle it.
5069
4d157a3d
MF
50702013-06-19 Mike Frysinger <vapier@gentoo.org>
5071
5072 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5073 common/i386-gcc-cpuid.h.
5074 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5075 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5076 Copy the latest version from upstream gcc.
5077 * common/linux-btrace.c: Include i386-cpuid.h.
5078 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5079 call to i386_cpuid.
5080 (cpu_supports_btrace): Likewise.
5081 * go32-nat.c: Include i386-cpuid.h.
5082 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5083
1ce4db08
DE
50842013-06-19 Doug Evans <dje@google.com>
5085
5086 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5087 (get_section_index): Ditto.
5088
0e4777df
TT
50892013-06-19 Tom Tromey <tromey@redhat.com>
5090
5091 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5092 "dprintf" help.
5093
3190f0c6
DE
50942013-06-18 Doug Evans <dje@google.com>
5095
5096 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5097 before using it.
5098 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5099 Move test of cu_index closer to use. Print complaint if cu_index
5100 is bad.
5101
8b89a20a
JB
51022013-06-18 Joel Brobecker <brobecker@adacore.com>
5103
5104 * machoread.c (oso_vector): Delete this global.
5105 (macho_register_oso): Add new parameter "oso_vector_ptr".
5106 Use it instead of the "oso_vector" global.
5107 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5108 (macho_symfile_read): Use a local oso_vector, to be free'ed
5109 at the end of this function, in place of the old "oso_vector"
5110 global. Update various function calls accordingly. Use one
5111 single cleanup chain for the entire function.
5112
59b0c7c1
JB
51132013-06-18 Joel Brobecker <brobecker@adacore.com>
5114
937c708c 5115 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5116 DWARF2_PER_OBJFILE by uses of DATA instead.
5117
427cd150
TT
51182013-06-18 Tom Tromey <tromey@redhat.com>
5119
5120 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5121 argument.
5122 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5123 Special case signals other than GDB_SIGNAL_TRAP.
5124 (explains_signal_watchpoint): New function.
5125 (base_breakpoint_explains_signal): Add 'sig' argument.
5126 (initialize_breakpoint_ops): Set 'explains_signal' method for
5127 watchpoints.
5128 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5129 signal argument.
5130 (bpstat_explains_signal): Likewise.
5131 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5132
2d57700b
TT
51332013-06-18 Tom Tromey <tromey@redhat.com>
5134
5135 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5136
ac475191
TT
51372013-06-18 Tom Tromey <tromey@redhat.com>
5138
5139 * python/python.c (finish_python_initialization): Decref
5140 'pythondir' on failure path as well.
5141
5bd1ef56
TT
51422013-06-18 Tom Tromey <tromey@redhat.com>
5143
5144 PR symtab/15391:
5145 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5146 after taking bits_to_skip into account. Sign extend byte_offset.
5147 * utils.h (gdb_sign_extend): Declare.
5148 * utils.c (gdb_sign_extend): New function.
5149
92fac807
JK
51502013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5151
5152 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5153
2d503272
PM
51542013-06-17 Pierre Muller <muller@sourceware.org>
5155
5156 * corelow.c (core_open): Print GDB signal name instead of target
5157 signal number.
5158
6916fd98
MF
51592013-06-17 Mike Frysinger <vapier@gentoo.org>
5160
5161 * .gitignore: Add /gcore.
5162
9c02c129
DE
51632013-06-13 Doug Evans <dje@google.com>
5164
5165 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5166 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5167
d0548fa2
PM
51682013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5169
5170 * stack.c (backtrace_command_1): Fix indentation.
5171
22128028
JB
51722013-06-11 Joel Brobecker <brobecker@adacore.com>
5173
5174 * window-nat.c (thread_rec): Add missing empty line after
5175 local variable declaration.
5176
2ed3e009
JB
51772013-06-11 Joel Brobecker <brobecker@adacore.com>
5178
5179 * windows-nat.c (thread_rec): Revert format used to print
5180 error code returned by SuspendThread from %d back to %u.
5181
0c3d84be
JB
51822013-06-11 Joel Brobecker <brobecker@adacore.com>
5183
5184 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5185 ID in debug trace.
5186 (get_windows_debug_event): Likewise, for all debug traces.
5187
80e88e1a
JB
51882013-06-11 Joel Brobecker <brobecker@adacore.com>
5189
5190 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5191 warning message.
5192
1edebdbf
YQ
51932013-06-08 Pedro Alves <pedro@codesourcery.com>
5194 Yao Qi <yao@codesourcery.com>
5195
5196 * mi/mi-main.c (get_register): Remove declaration.
5197 (output_register): Declare.
5198 (mi_cmd_data_list_register_values): Remove local variable
5199 'tuple_cleanup'. Move some code into output_register.
5200 (get_register): Renamed to ...
5201 (output_register): ... this. Output the register's
5202 "number" ui_out tuple here.
5203
47d48711
PA
52042013-06-07 Pedro Alves <palves@redhat.com>
5205
5206 * darwin-nat.c: Fix formating in copyright header.
5207 * darwin-nat.h: Likewise.
5208 * gnu-nat.c: Likewise.
5209 * machoread.c: Likewise.
5210
3aee8918
PA
52112013-06-07 Pedro Alves <palves@redhat.com>
5212
5f2b57b5 5213 PR server/14823
3aee8918
PA
5214 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5215 static. Output a global target description pointer.
5216 (init_registers_${name}): Adjust to initialize a
5217 target description structure.
5218
fe8400b4
WN
52192013-06-07 Will Newton <will.newton@linaro.org>
5220
5221 * printcmd.c (build_address_symbolic): Call
5222 gdbarch_addr_bits_remove for text minimal symbols.
5223
20df6206
WN
52242013-06-07 Will Newton <will.newton@linaro.org>
5225
5226 * MAINTAINERS: Add myself to Write After Approval.
5227
aef525cb
YQ
52282013-06-07 Yao Qi <yao@codesourcery.com>
5229
5230 * tracepoint.c (start_tracing): Move code to ...
5231 (trace_reset_local_state): ... here. New.
5232 (disconnect_tracing): Don't call set_current_traceframe,
5233 set_tracepoint_num, and set_traceframe_context. Call
5234 trace_reset_local_state instead.
5235 (tfile_close): Call trace_reset_local_state.
5236 * ctf.c (ctf_close): Likewise.
5237 * remote.c (remote_close): Likewise.
5238 * tracepoint.h (trace_reset_local_state): Declare.
5239
d2415c6c
DE
52402013-06-06 Doug Evans <dje@google.com>
5241
5242 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5243 and fix header docs.
5244
69fc87c2
DE
52452013-06-05 Doug Evans <dje@google.com>
5246 Keith Seitz <keiths@redhat.com>
5247
5248 PR 15519
5249 * cp-namespace.c (find_symbol_in_baseclass): Call
5250 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5251 Check result of call to lookup_symbol_static.
5252 Call lookup_static_symbol_aux unconditionally.
5253 Call check_typedef on base types before accessing them.
5254 (cp_lookup_nested_symbol): Fix comment.
5255
a513d1e8
LM
52562013-06-05 Luis Machado <lgustavo@codesourcery.com>
5257
5258 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5259 minimal symbols pointing to function descriptors.
5260
351a6f02
TT
52612013-06-05 Tom Tromey <tromey@redhat.com>
5262
5263 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5264
5e1b953b 52652013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5266 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5267
5268 * remote.c (remote_wait_as): Restore signal handler before returning
5269 when GDB gets a notification.
5270
f9e14852
GB
52712013-06-04 Gary Benson <gbenson@redhat.com>
5272
8445cbf1 5273 PR 2328
f9e14852
GB
5274 * breakpoint.h (handle_solib_event): Moved function declaration
5275 to solib.h.
5276 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5277 (bpstat_stop_status): Pass new argument to handle_solib_event.
5278 * solib.h (update_solib_breakpoints): New function declaration.
5279 (handle_solib_event): Moved function declaration from
5280 breakpoint.h.
5281 * solib.c (update_solib_breakpoints): New function.
5282 (handle_solib_event): Moved function from breakpoint.c.
5283 Updated to call solib_ops->handle_event if not NULL.
5284 * solist.h (target_so_ops): New fields "update_breakpoints" and
5285 "handle_event".
5286 * infrun.c (set_stop_on_solib_events): New function.
5287 (_initialize_infrun): Use the above for "set
5288 stop-on-solib-events".
5289 (handle_inferior_event): Pass new argument to handle_solib_event.
5290 * solib-svr4.c (probe.h): New include.
5291 (svr4_free_library_list): New forward declaration.
5292 (probe_action): New enum.
5293 (probe_info): New struct.
5294 (probe_info): New static variable.
5295 (NUM_PROBES): New definition.
5296 (svr4_info): New fields "using_xfer", "probes_table" and
5297 "solib_list".
5298 (free_probes_table): New function.
5299 (free_solib_list): New function.
5300 (svr4_pspace_data_cleanup): Free probes table and solib list.
5301 (svr4_copy_library_list): New function.
5302 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5303 (svr4_read_so_list): New parameter "prev_lm".
5304 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5305 (svr4_current_sos): New function.
5306 (probe_and_action): New struct.
5307 (hash_probe_and_action): New function.
5308 (equal_probe_and_action): Likewise.
5309 (register_solib_event_probe): Likewise.
5310 (solib_event_probe_at): Likewise.
5311 (solib_event_probe_action): Likewise.
5312 (solist_update_full): Likewise.
5313 (solist_update_incremental): Likewise.
5314 (disable_probes_interface_cleanup): Likewise.
5315 (svr4_handle_solib_event): Likewise.
5316 (svr4_update_solib_event_breakpoint): Likewise.
5317 (svr4_update_solib_event_breakpoints): Likewise.
5318 (svr4_create_solib_event_breakpoints): Likewise.
5319 (enable_break): Free probes table before creating breakpoints.
5320 Use svr4_create_solib_event_breakpoints to create breakpoints.
5321 (svr4_solib_create_inferior_hook): Free the solib list.
5322 (_initialize_svr4_solib): Initialise
5323 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5324
ced63ec0
GB
53252013-06-04 Gary Benson <gbenson@redhat.com>
5326
5327 * target.h (target_ops): New field
5328 "to_augmented_libraries_svr4_read".
5329 (target_augmented_libraries_svr4_read): New macro.
5330 * target.c (update_current_target): Handle
5331 to_augmented_libraries_svr4_read.
5332 * remote.c (remote_state): New field
5333 "augmented_libraries_svr4_read".
5334 (remote_augmented_libraries_svr4_read_feature): New function.
5335 (remote_protocol_features): Add entry for
5336 "augmented-libraries-svr4-read".
5337 (remote_augmented_libraries_svr4_read): New function.
5338 (init_remote_ops): Initialize
5339 remote_ops.to_augmented_libraries_svr4_read.
5340
7f91dbec
GB
53412013-06-04 Gary Benson <gbenson@redhat.com>
5342
5343 * NEWS: Update.
5344
607ece04
GB
53452013-06-04 Gary Benson <gbenson@redhat.com>
5346
5347 * objfiles.h (inhibit_section_map_updates): New function
5348 declaration.
5349 (resume_section_map_updates): Likewise.
5350 (resume_section_map_updates_cleanup): Likewise.
5351 * objfiles.c (objfile_pspace_info): Removed field
5352 "objfiles_changed_p". New fields "new_objfiles_available",
5353 "section_map_dirty" and "inhibit_updates".
5354 (allocate_objfile): Set new_objfiles_available.
5355 (free_objfile): Set section_map_dirty.
5356 (objfile_relocate1): Likewise.
5357 (in_plt_section): Likewise.
5358 (find_pc_section): Update the conditions under which the
5359 section map will be updated.
5360 (inhibit_section_map_updates): New function.
5361 (resume_section_map_updates): Likewise.
5362 (resume_section_map_updates_cleanup): Likewise.
5363
9ee6a5ac
GB
53642013-06-04 Gary Benson <gbenson@redhat.com>
5365
5366 * probe.h (get_probe_argument_count): New declaration.
5367 (evaluate_probe_argument): Likewise.
5368 * probe.c (get_probe_argument_count): New function.
5369 (evaluate_probe_argument): Likewise.
5370 (probe_safe_evaluate_at_pc): Use the above new functions.
5371
845d4708
AM
53722013-06-04 Alan Modra <amodra@gmail.com>
5373
5374 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5375 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5376 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5377 target mem reads on optional insns.
5378 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5379 ppc_insns_match_pattern calls.
5380 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5381 Add match for power7 thread safety insns, and new order of
5382 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5383 invocation in comment, and update rest of comment.
5384 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5385 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5386 (ppc64_standard_linkage2_target): Update insn offsets.
5387 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5388 stubs first. Update calls.
5389
404e278f
YQ
53902013-06-04 Yao Qi <yao@codesourcery.com>
5391
5392 * solib.c (solib_find): Don't need dir separator if path has
5393 drive spec.
5394
f6aea118
JB
53952013-06-03 Joel Brobecker <brobecker@adacore.com>
5396
5397 Revert (indirectly causes a SIGSEGV):
5398 * machoread.c (macho_symfile_read): Assign first cleanup to
5399 'back_to'.
5400
87967e27
YQ
54012013-06-03 Yao Qi <yao@codesourcery.com>
5402
5403 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5404 mi-parse.c. Make them static.
5405 (mi_all_values): Likewise.
5406 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5407 mi_parse_print_values. Make it external.
5408 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5409 Remove the declarations.
5410 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5411 * mi/mi-parse.h (mi_parse_print_values): Declare.
5412 * mi/mi-cmd-stack.c: Include mi-parse.h.
5413 (parse_print_values): Remove
5414 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5415 of parse_print_values.
5416 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5417
3ca73e0c
YQ
54182013-05-31 Pedro Alves <pedro@codesourcery.com>
5419 Yao Qi <yao@codesourcery.com>
5420
5421 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5422 (encode_actions): Move code to ...
5423 (all_tracepoint_actions_and_cleanup): ... here. New.
5424 (trace_dump_command): Likewise.
5425
4e993a19
TT
54262013-05-30 Tom Tromey <tromey@redhat.com>
5427
5428 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5429
e3b76b4f
TT
54302013-05-30 Tom Tromey <tromey@redhat.com>
5431
5432 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5433 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5434 'old_chain' argument. Add 'parser_result' argument.
5435 (gdb_xml_create_parser_and_cleanup): Remove old version.
5436 (gdb_xml_parse_quick): Update.
5437 (xml_process_xincludes): Update.
5438 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5439 declare.
5440
db26349c
TT
54412013-05-30 Tom Tromey <tromey@redhat.com>
5442
5443 * probe.c (collect_probes): Check arguments for NULL before
5444 calling compile_rx_or_error.
5445 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5446 Remove NULL return.
5447
77f9e713
TT
54482013-05-30 Tom Tromey <tromey@redhat.com>
5449
5450 * infrun.c (adjust_pc_after_break): Introduce an outer null
5451 cleanup.
5452
45475de7
TT
54532013-05-30 Tom Tromey <tromey@redhat.com>
5454
5455 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5456
ac5007fd
TT
54572013-05-30 Tom Tromey <tromey@redhat.com>
5458
5459 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5460 for 'old_chain'. Do not check 'head' before processing
5461 cleanups.
5462
cd82eddc
TT
54632013-05-30 Tom Tromey <tromey@redhat.com>
5464
5465 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5466 "cleanup_tuple".
5467
57cee33a
TT
54682013-05-30 Tom Tromey <tromey@redhat.com>
5469
5470 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5471 inner scope. Unconditionally call do_cleanups.
5472
795d915c
TT
54732013-05-30 Tom Tromey <tromey@redhat.com>
5474
5475 * source.c (find_and_open_source): Call do_cleanups.
5476
1fc3cf4a
TT
54772013-05-30 Tom Tromey <tromey@redhat.com>
5478
5479 * linux-thread-db.c (thread_db_load_search): Unconditionally
5480 call do_cleanups.
5481
e35ac9bf
TT
54822013-05-30 Tom Tromey <tromey@redhat.com>
5483
5484 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5485 for 'cleanup'; instead use a later one.
5486
f3300387
TT
54872013-05-30 Tom Tromey <tromey@redhat.com>
5488
5489 * python/py-breakpoint.c (bppy_get_commands): Use
5490 explicit, unconditional return.
5491 * python/py-frame.c (frapy_read_var): Likewise.
5492 * python/python.c (gdbpy_decode_line): Likewise.
5493
c27e16e3
TT
54942013-05-30 Tom Tromey <tromey@redhat.com>
5495
5496 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5497 do_cleanups on all return paths.
5498
5ae85e44
TT
54992013-05-30 Tom Tromey <tromey@redhat.com>
5500
5501 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5502
73b8d9da
TT
55032013-05-30 Tom Tromey <tromey@redhat.com>
5504
5505 * stabsread.c (read_struct_type): Call do_cleanups along
5506 all return paths.
5507
7d266584
MR
55082013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5509
5510 * mips-linux-tdep.c: Adjust formatting throughout.
5511
0f900f54
TT
55122013-05-30 Tom Tromey <tromey@redhat.com>
5513
5514 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5515 along all return paths.
5516
a991ac28
TT
55172013-05-30 Tom Tromey <tromey@redhat.com>
5518
5519 * symfile.c (find_separate_debug_file): Call do_cleanups
5520 along all return paths.
5521
1abaf042
TT
55222013-05-30 Tom Tromey <tromey@redhat.com>
5523
5524 * symtab.c (search_symbols): Introduce a null cleanup for
5525 'retval_chain'.
5526
edefe1da
TT
55272013-05-30 Tom Tromey <tromey@redhat.com>
5528
5529 * python/py-value.c (valpy_binop): Call do_cleanups before
5530 exiting loop.
5531
54f72dcc
TT
55322013-05-30 Tom Tromey <tromey@redhat.com>
5533
5534 * python/py-prettyprint.c (print_children): Remove extra
5535 do_cleanups call.
5536
af1c6971
TT
55372013-05-30 Tom Tromey <tromey@redhat.com>
5538
5539 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5540 all return paths.
5541
b862ce75
TT
55422013-05-30 Tom Tromey <tromey@redhat.com>
5543
5544 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5545 along all return paths.
5546
e12fefc8
TT
55472013-05-30 Tom Tromey <tromey@redhat.com>
5548
5549 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5550 call do_cleanups.
5551
4867f990
TT
55522013-05-30 Tom Tromey <tromey@redhat.com>
5553
5554 * varobj.c (c_value_of_root): Call do_cleanups along all
5555 return paths.
5556
4fd2d6af
TT
55572013-05-30 Tom Tromey <tromey@redhat.com>
5558
5559 * tracepoint.c (trace_dump_command): Unconditionally call
5560 do_cleanups.
5561
752eb8b4
TT
55622013-05-30 Tom Tromey <tromey@redhat.com>
5563
5564 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5565 do_cleanups earlier.
5566
e42d0aa5
TT
55672013-05-30 Tom Tromey <tromey@redhat.com>
5568
5569 * machoread.c (macho_symfile_read): Assign first cleanup to
5570 'back_to'.
5571
4bbc010a
TT
55722013-05-30 Tom Tromey <tromey@redhat.com>
5573
5574 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5575
b9635925
TT
55762013-05-30 Tom Tromey <tromey@redhat.com>
5577
5578 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5579
25f43500
TT
55802013-05-30 Tom Tromey <tromey@redhat.com>
5581
5582 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5583 call discard_cleanups.
5584 (inf_ptrace_attach): Likewise.
5585
d6a2e54a
TT
55862013-05-30 Tom Tromey <tromey@redhat.com>
5587
5588 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5589 return paths.
5590 (mips_initialize): Likewise.
5591 (common_open): Call do_cleanups.
5592
48be7c1b
TT
55932013-05-30 Tom Tromey <tromey@redhat.com>
5594
5595 * utils.c (internal_vproblem): Call do_cleanups.
5596
e61727ab
TT
55972013-05-30 Tom Tromey <tromey@redhat.com>
5598
5599 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5600
b81b921f
TT
56012013-05-30 Tom Tromey <tromey@redhat.com>
5602
5603 * cli/cli-script.c (setup_user_args): Don't return after error.
5604
fe48dfb1
TT
56052013-05-30 Tom Tromey <tromey@redhat.com>
5606
5607 * somread.c (som_symtab_read): Call do_cleanups.
5608
27833de7
TT
56092013-05-30 Tom Tromey <tromey@redhat.com>
5610
5611 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5612
5b3fca71
TT
56132013-05-30 Tom Tromey <tromey@redhat.com>
5614
5615 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5616 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5617 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5618 * source.c (show_substitute_path_command): Call do_cleanups.
5619 (unset_substitute_path_command, set_substitute_path_command):
5620 Likewise.
5621 * symfile.c (load_command): Call do_cleanups.
5622
af83e3f8
TT
56232013-05-30 Tom Tromey <tromey@redhat.com>
5624
5625 * contrib/cleanup_check.py: New file.
5626 * contrib/gcc-with-excheck: Add option parsing.
5627
564eac42
JB
56282013-05-30 Joel Brobecker <brobecker@adacore.com>
5629
5630 * windows-nat.c (windows_delete_thread): Add missing space
5631 in cast expression.
5632
47902076
HAQ
56332013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5634
5635 * inferior.c (top level): Include tilde.h.
5636 (add_inferior_command): Call tilde_expand on the value of 'exec'
5637 argument.
5638
23da373a
YQ
56392013-05-30 Pedro Alves <pedro@codesourcery.com>
5640 Yao Qi <yao@codesourcery.com>
5641
5642 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5643 Caller update.
5644 (encode_actions): Likewise.
5645 * remote.c (remote_download_tracepoint): Caller update.
5646 * tracepoint.h (encode_actions): Update declaration.
5647
a6e6f791
PA
56482013-05-30 Pedro Alves <palves@redhat.com>
5649
5650 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5651 pointer.
5652
36d25514
YQ
56532013-05-30 Yao Qi <yao@codesourcery.com>
5654
5655 * remote.c (remote_check_symbols): Remove unused parameter
5656 'objfile'.
5657 Declaration update.
5658 (remote_start_remote, remote_new_objfile): Caller update.
5659
62a813cc
YQ
56602013-05-30 Yao Qi <yao@codesourcery.com>
5661
5662 * mi/mi-cmds.c (mi_cmds): Define MI command
5663 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5664 DEF_MI_CMD_CLI.
5665
28439a30
PA
56662013-05-29 Pedro Alves <palves@redhat.com>
5667
5668 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5669 (remote_insert_watchpoint, remote_remove_watchpoint)
5670 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5671 (remote_verify_memory, compare_sections_command)
5672 (remote_search_memory): Set the general process/thread on the
5673 remote side.
5674
6ac1c082
PA
56752013-05-29 Pedro Alves <palves@redhat.com>
5676
5677 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5678 (_initialize_aarch64_tdep): Don't call
5679 initialize_tdesc_aarch64_without_fpu.
5680 * features/Makefile (WHICH): Remove reference to
5681 aarch64-without-fpu.
5682 * features/aarch64-without-fpu.c: Delete file.
5683 * regformats/aarch64-without-fpu.dat: Delete file.
5684
a73e3634
YQ
56852013-05-28 Yao Qi <yao@codesourcery.com>
5686
5687 * tracepoint.c (stringify_collection_list): Remove parameter
5688 'string'.
5689 (encode_actions): Caller update. Remove local variables.
5690
c0ea94eb
YQ
56912013-05-24 Yao Qi <yao@codesourcery.com>
5692
5693 * tracepoint.c (TFILE_PID): Remove.
5694 (tfile_open): Don't add thread and inferior.
5695 (tfile_close): Don't set 'inferior_ptid'. Don't call
5696 exit_inferior_silent.
5697 (tfile_thread_alive): Remove.
5698 (init_tfile_ops): Don't set field 'to_thread_alive' of
5699 tfile_ops.
5700
20d7f211
DE
57012013-05-23 Doug Evans <dje@google.com>
5702
5703 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5704
8658d16d
PA
57052013-05-23 Pedro Alves <palves@redhat.com>
5706
5707 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5708 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5709 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5710 Only define if HAVE_SOCKETS is defined.
5711 * configure.ac: Check for sys/socket.h.
5712 * config.in, configure: Regenerate.
5713
21aa081e
PA
57142013-05-23 Pedro Alves <palves@redhat.com>
5715
5716 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5717 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5718 printing uint32_t variables.
5719
c2d6af84
PA
57202013-05-23 Pedro Alves <palves@redhat.com>
5721
5722 * NEWS: Mention GDBserver range stepping support.
5723
c1e36e3e
PA
57242013-05-23 Yao Qi <yao@codesourcery.com>
5725 Pedro Alves <palves@redhat.com>
5726
5727 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5728 field.
5729 * infcmd.c (step_once, until_next_command): Enable range stepping.
5730 * infrun.c (displaced_step_prepare): Disable range stepping.
5731 (resume): Disable range stepping if stepping over a breakpoint or
5732 we have software watchpoints. If range stepping is enabled,
5733 assert the thread is in the stepping range.
5734 (clear_proceed_status_thread): Clear may_range_step.
5735 (handle_inferior_event): Disable range stepping as soon as we know
5736 the thread that hit the event. Re-enable it whenever we're going
5737 to step with a step range.
5738 * remote.c (struct vCont_action_support) <r>: New field.
5739 (use_range_stepping): New global.
5740 (remote_vcont_probe): Handle 'r' action.
5741 (append_resumption): Append an 'r' action if the thread may range
5742 step.
5743 (show_range_stepping): New function.
5744 (set_range_stepping): New function.
5745 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5746 'set range-stepping' and 'show range-stepping' commands.
5747 * NEWS: Mention range stepping, the new vCont;r action, and the
5748 new "set/show range-stepping" commands.
5749
d458bd84
PA
57502013-05-23 Yao Qi <yao@codesourcery.com>
5751 Pedro Alves <palves@redhat.com>
5752
5753 * remote.c (struct vCont_action_support): New struct.
5754 (struct remote_state) <support_vCont_t>: Remove field.
5755 <vCont_actions_support>: New field.
5756 (remote_vcont_probe, remote_stop_ns): Update.
5757
ce4c476a
PA
57582013-05-23 Yao Qi <yao@codesourcery.com>
5759 Pedro Alves <palves@redhat.com>
5760
5761 * gdbthread.h (pc_in_thread_step_range): New declaration.
5762 * thread.c (pc_in_thread_step_range): New function.
5763 * infrun.c (handle_inferior_event): Use it.
5764
ce70887a
JB
57652013-05-23 Joel Brobecker <brobecker@adacore.com>
5766
5767 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5768 of sprintf.
5769
55b87a52
KS
57702013-05-22 Keith Seitz <keiths@redhat.com>
5771
5772 * ada-lang.c (is_known_support_routine): Add explicit free of
5773 'func_name' from find_frame_funname.
5774 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5775 for func_name from find_frame_funname.
5776 * python/py-frame.c (frapy_name): Add explicit free of
5777 'name' from find_frame_funname.
5778 * stack.c (find_frame_funname): Add comment explaining that
5779 funcp must be freed by the caller.
5780 Return copy of symbol names instead of pointers.
5781 (print_frame): Add a cleanup for 'funname' from
5782 find_frame_funname.
5783 * stack.h (find_frame_funname): Remove "const" from
5784 'funname' parameter.
5785
5f2e6b00
TT
57862013-05-22 Tom Tromey <tromey@redhat.com>
5787
5788 PR c++/15401:
5789 * c-valprint.c (c_value_print): Use value_addr for
5790 references. Convert back to reference type with value_ref.
5791
d85c4847
EZ
57922013-05-22 Eli Zaretskii <eliz@gnu.org>
5793
5794 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5795 unloaded DLL, it will be done by handle_solib_event. See
5796 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5797 details.
5798
54eb231c
PM
57992013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5800
5801 * ui-out.c: Create typedef ui_out_level_p and define vector
5802 operations for that type.
5803 (struct ui_out): Use a vector instead of an array.
5804 (current_level): Return level from a vector.
5805 (push_level): Create a level in a vector.
5806 (pop_level): Delete a level in a vector.
5807 (ui_out_new): Create initial level zero level, and store in a
5808 vector.
5809 (ui_out_destroy): Add vector cleanup.
5810
ac90359c
PA
58112013-05-22 Pedro Alves <palves@redhat.com>
5812
5813 * python/python-internal.h (gdb_Py_DECREF): Tag with
5814 "ARI: editCase function".
5815
6dcc1893
PP
58162013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5817
5818 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5819
c8c735b9
PA
58202013-05-21 Pedro Alves <palves@redhat.com>
5821
5822 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5823 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5824 * python/py-utils.c (py_decref): Don't check for NULL before
5825 calling Py_DECREF.
5826
1915daeb
PA
58272013-05-21 Pedro Alves <palves@redhat.com>
5828
5829 * python/py-utils.c (py_decref): Remove extra braces.
5830 (gdb_pymodule_addobject): Remove extra braces.
5831 * python-internal.h (gdb_Py_DECREF): New static inline function.
5832 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5833
bd9673a4
PW
58342013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5835
5836 * breakpoints.c (detach_breakpoints): Do not
5837 detach breakpoints locations with loc_type bp_loc_other.
5838
ff6009d0
JK
58392013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5840
5841 Workaround Python 2.6.
5842 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5843 a block.
5844
3641da11
JK
58452013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5846
5847 Code cleanup: constification.
5848 * solib.c (solib_ops): Make return type and ops variable type const.
5849 (set_solib_ops): Make the new_ops parameter and ops variable const.
5850 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5851 (solib_add, solib_keep_data_in_core, clear_solib)
5852 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5853 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5854 const.
5855 * solib.h (set_solib_ops): Make the new_ops parameter const.
5856
776af39e
JB
58572013-05-21 Joel Brobecker <brobecker@adacore.com>
5858
5859 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5860 variable.
5861 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5862 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5863 (SYSTEM_GDBINIT_FILES): New variables.
5864 (all): Add stamp-system-gdbinit.
5865 (stamp-system-gdbinit): New rule.
5866 (clean-system-gdbinit, install-system-gdbinit)
5867 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5868 (install-only): Add dependency on install-system-gdbinit.
5869 (uninstall): Add dependency on uninstall-system-gdbinit.
5870 (clean): Add dependency on clean-system-gdbinit.
5871 * system-gdbinit/elinos.py: New file.
5872 * system-gdbinit/wrs-linux.py: New file.
5873
1509e573
JB
58742013-05-21 Joel Brobecker <brobecker@adacore.com>
5875
5876 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5877
c5867ab6
HZ
58782013-05-21 Hui Zhu <hui@codesourcery.com>
5879
5880 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5881 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5882 * mi/mi-cmd-break.c (ctype.h): New include.
5883 (gdb_obstack.h): New include.
5884 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5885 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5886 (mi_cmd_dprintf_insert): New.
5887 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5888 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5889
7d38e38f
TT
58902013-05-20 Tom Tromey <tromey@redhat.com>
5891
5892 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5893
97b77b39
TT
58942013-05-20 Tom Tromey <tromey@redhat.com>
5895
5896 * python/py-value.c (valpy_get_dynamic_type): Simplify
5897 dynamic_type assignment. Use Py_XINCREF.
5898
53e66479
TT
58992013-05-20 Tom Tromey <tromey@redhat.com>
5900
5901 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5902
dcf87832
TT
59032013-05-20 Tom Tromey <tromey@redhat.com>
5904
5905 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5906 (gdbpy_selected_frame): Move object-construction code
5907 out of TRY_CATCH.
5908
aa36459a
TT
59092013-05-20 Tom Tromey <tromey@redhat.com>
5910
5911 * python/py-arch.c (gdbpy_initialize_arch): Use
5912 gdb_pymodule_addobject.
5913 * python/py-block.c (gdbpy_initialize_blocks): Use
5914 gdb_pymodule_addobject.
5915 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5916 gdb_pymodule_addobject.
5917 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5918 gdb_pymodule_addobject.
5919 * python/py-event.c (gdbpy_initialize_event_generic): Use
5920 gdb_pymodule_addobject.
5921 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5922 gdb_pymodule_addobject.
5923 * python/py-evts.c (add_new_registry): Use
5924 gdb_pymodule_addobject.
5925 (gdbpy_initialize_py_events): Likewise.
5926 * python/py-finishbreakpoint.c
5927 (gdbpy_initialize_finishbreakpoints): Use
5928 gdb_pymodule_addobject.
5929 * python/py-frame.c (gdbpy_initialize_frames): Use
5930 gdb_pymodule_addobject.
5931 * python/py-function.c (gdbpy_initialize_functions): Use
5932 gdb_pymodule_addobject.
5933 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5934 gdb_pymodule_addobject.
5935 * python/py-infthread.c (gdbpy_initialize_thread): Use
5936 gdb_pymodule_addobject.
5937 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5938 gdb_pymodule_addobject.
5939 * python/py-param.c (gdbpy_initialize_parameters): Use
5940 gdb_pymodule_addobject.
5941 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5942 gdb_pymodule_addobject.
5943 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5944 gdb_pymodule_addobject.
5945 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5946 gdb_pymodule_addobject.
5947 * python/py-type.c (gdbpy_initialize_types): Use
5948 gdb_pymodule_addobject.
5949 * python/py-utils.c (gdb_pymodule_addobject): New function.
5950 * python/py-value.c (gdbpy_initialize_values): Use
5951 gdb_pymodule_addobject.
5952 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5953 * python/python.c (_initialize_python): Use
5954 gdb_pymodule_addobject.
5955
3d4a3c3e
TT
59562013-05-20 Tom Tromey <tromey@redhat.com>
5957
5958 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5959 * python/py-param.c (get_set_value, get_show_value): Use
5960 explicit decrefs.
5961 * python/python.c (start_type_printers, apply_type_printers):
5962 Use explicit decrefs.
5963
72ff8829
TT
59642013-05-20 Tom Tromey <tromey@redhat.com>
5965
5966 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5967 incref the module.
5968
02146ba5
TT
59692013-05-20 Tom Tromey <tromey@redhat.com>
5970
5971 * python/python.c (gdbpy_run_events): Decref the result
5972 of PyObject_CallObject.
5973
33ee792f
TT
59742013-05-20 Tom Tromey <tromey@redhat.com>
5975
5976 * python/py-symtab.c (set_sal): Use
5977 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5978 (symtab_and_line_to_sal_object): Update.
5979
fcb49fc8
TT
59802013-05-20 Tom Tromey <tromey@redhat.com>
5981
5982 * python/py-param.c (compute_enum_values): Decref 'item'.
5983
0646da15
TT
59842013-05-20 Tom Tromey <tromey@redhat.com>
5985
5986 * mi/mi-main.c: Include python-internal.h.
5987 (mi_cmd_list_features): Check gdb_python_initialized.
5988 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5989 (python_inferior_exit, python_new_objfile, add_thread_object)
5990 (delete_thread_object, py_free_inferior): Check
5991 gdb_python_initialized.
5992 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5993 gdb_python_initialized.
5994 * python/py-type.c (save_objfile_types): Check
5995 gdb_python_initialized.
5996 * python/python-internal.h (gdb_python_initialized): Declare.
5997 * python/python.c (ensure_python_env): Throw exception if
5998 Python not initialized.
5999 (before_prompt_hook, source_python_script_for_objfile)
6000 (start_type_printers, apply_type_printers,
6001 free_type_printers): Check gdb_python_initialized.
6002 * varobj.c (varobj_get_display_hint)
6003 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6004 (install_new_value_visualizer, varobj_set_visualizer)
6005 (value_get_print_value): Check gdb_python_initialized.
6006
999633ed
TT
60072013-05-20 Tom Tromey <tromey@redhat.com>
6008
6009 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6010 Check errors.
6011 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6012 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6013 Check errors.
6014 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6015 Check errors.
6016 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6017 Check errors.
6018 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6019 Check errors.
6020 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6021 init function to return 'int'.
6022 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6023 Return 'int'. Check errors.
6024 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6025 Check errors.
6026 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6027 Return 'int'. Check errors.
6028 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6029 Check errors.
6030 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6031 Check errors.
6032 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6033 Check errors.
6034 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6035 Check errors.
6036 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6037 Check errors.
6038 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6039 Check errors.
6040 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6041 Check errors.
6042 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6043 Check errors.
6044 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6045 Check errors.
6046 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6047 Check errors.
6048 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6049 Check errors.
6050 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6051 Check errors.
6052 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6053 Check errors.
6054 * python/python-internal.h (gdbpy_initialize_auto_load,
6055 gdbpy_initialize_values, gdbpy_initialize_frames,
6056 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6057 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6058 gdbpy_initialize_blocks, gdbpy_initialize_types,
6059 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6060 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6061 gdbpy_initialize_finishbreakpoints,
6062 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6063 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6064 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6065 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6066 gdbpy_initialize_signal_event,
6067 gdbpy_initialize_breakpoint_event,
6068 gdbpy_initialize_continue_event,
6069 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6070 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6071 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6072 * python/python.c (gdb_python_initialized): New global.
6073 (gdbpy_initialize_events): Return 'int'. Check errors.
6074 (_initialize_python): Check errors. Set
6075 gdb_python_initialized.
6076
18868860
TT
60772013-05-20 Tom Tromey <tromey@redhat.com>
6078
6079 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6080 Decref the reslut of PyObject_CallMethod.
6081
9f4ff0c2
TT
60822013-05-20 Tom Tromey <tromey@redhat.com>
6083
6084 * python/py-event.c (gdbpy_initialize_event_generic): Return
6085 early if PyType_Ready fails.
6086
0d3a2e8a
TT
60872013-05-20 Tom Tromey <tromey@redhat.com>
6088
6089 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6090 as 'default' in the switch.
6091
b86af38a
TT
60922013-05-20 Tom Tromey <tromey@redhat.com>
6093
6094 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6095 get_addr_from_python calls out of TRY_CATCH.
6096 (infpy_write_memory, infpy_search_memory): Likewise.
6097 * python/py-utils.c (get_addr_from_python): Return negative
6098 value on error. Use TRY_CATCH.
6099 * python/python-internal.h (get_addr_from_python): Use
6100 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6101
c127ec58
TT
61022013-05-20 Tom Tromey <tromey@redhat.com>
6103
6104 * python/py-event.c (evpy_emit_event): Decref the
6105 result of PyObject_CallFunctionObjArgs.
6106
ba327838
TT
61072013-05-20 Tom Tromey <tromey@redhat.com>
6108
6109 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6110 Correctly decref.
6111
d8191432
TT
61122013-05-20 Tom Tromey <tromey@redhat.com>
6113
6114 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6115
5d153bd1
TT
61162013-05-20 Tom Tromey <tromey@redhat.com>
6117
6118 * python/py-event.h (gdbpy_initialize_event_generic): Use
6119 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6120 * python/py-evts.c (add_new_registry): Use
6121 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6122 * python/python-internal.h
6123 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6124
56cc411c
TT
61252013-05-20 Tom Tromey <tromey@redhat.com>
6126
6127 * python/py-arch.c (archpy_disassemble): Update.
6128 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6129 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6130 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6131 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6132 macro.
6133 (GDB_PY_HANDLE_EXCEPTION): Update.
6134 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6135
8919e174
TT
61362013-05-20 Tom Tromey <tromey@redhat.com>
6137
6138 * python/python-internal.h (events_object_type): Remove.
6139
9b08f225
TT
61402013-05-20 Tom Tromey <tromey@redhat.com>
6141
f5aee5ee
AM
6142 * python/py-event.h (evpy_emit_event): Use
6143 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6144 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6145 New macro.
9b08f225 6146
f04010ff
TT
61472013-05-20 Tom Tromey <tromey@redhat.com>
6148
6149 * py-evtregistry.c (create_event_object): Decref
6150 eventregistry_object if PyList_New fails.
6151
3919fd96
TT
61522013-05-20 Tom Tromey <tromey@redhat.com>
6153
6154 * py-cmd.c (gdbpy_string_to_argv): Check result of
6155 PyList_New.
6156
0430e8cb
TT
61572013-05-20 Tom Tromey <tromey@redhat.com>
6158
6159 * python/python.c (before_prompt_hook): Add cleanup to
6160 decref 'hook'.
6161
764123e4
TT
61622013-05-20 Tom Tromey <tromey@redhat.com>
6163
6164 * python/py-function.c (fnpy_init): Decref result of
6165 PyObject_GetAttrString.
6166
634c58be
TT
61672013-05-20 Tom Tromey <tromey@redhat.com>
6168
6169 * python/py-threadevent.c (get_event_thread): Use
6170 CPYCHECKER_RETURNS_BORROWED_REF.
6171 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6172 New define.
6173 (pspace_to_pspace_object, objfile_to_objfile_object)
6174 (find_thread_object): Use it.
6175
62eec1a5
TT
61762013-05-20 Tom Tromey <tromey@redhat.com>
6177
6178 * python/py-arch.c (arch_object_type): Use
6179 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6180 * python/py-block.c (block_syms_iterator_object_type):
6181 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6182 * python/py-bpevent.c (breakpoint_event_object_type):
6183 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6184 * python/py-cmd.c (cmdpy_object_type): Use
6185 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6186 * python/py-continueevent.c (continue_event_object_type):
6187 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6188 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6189 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6190 * python/py-events.h (thread_event_object_type):
6191 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6192 * python/py-evtregistry.c (eventregistry_object_type): Use
6193 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6194 * python/py-exitedevent.c (exited_event_object_type):
6195 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6196 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6197 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6198 * python/py-function.c (fnpy_object_type): Use
6199 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6200 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6201 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6202 * python/py-infthread.c (thread_object_type): Use
6203 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6204 * python/py-lazy-string.c (lazy_string_object_type):
6205 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6206 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6207 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6208 * python/py-objfile.c (objfile_object_type): Use
6209 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6210 * python/py-param.c (parmpy_object_type):
6211 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6212 * python/py-progspace.c (pspace_object_type):
6213 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6214 * python/py-signalevent.c (signal_event_object_type):
6215 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6216 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6217 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6218 * python/py-type.c (type_object_type, field_object_type)
6219 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6220 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6221 define.
6222 (value_object_type, block_object_type, symbol_object_type)
6223 (event_object_type, stop_event_object_type, breakpoint_object_type)
6224 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6225
81ea8796
AT
62262013-05-20 Andreas Tobler <andreas@fgznet.ch>
6227
6228 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6229 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6230
a2ce51a0
DE
62312013-05-20 Doug Evans <dje@google.com>
6232
6233 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6234 For Fission.
6235 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6236 reading_dwo_directly.
6237 (struct signatured_type): New member dwo_unit.
6238 (struct die_reader_specs): New member comp_dir.
6239 (create_signatured_type_table_from_index): Use malloc for
6240 all_type_units instead of objfile's obstack.
6241 (create_all_type_units): Ditto.
6242 (fill_in_sig_entry_from_dwo_entry): New function.
6243 (add_type_unit): New function.
6244 (lookup_dwo_signatured_type): New function.
6245 (lookup_dwp_signatured_type): New function.
6246 (lookup_signatured_type): New arg cu. All callers updated.
6247 (init_cu_die_reader): Initialize comp_dir.
6248 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6249 Change assert of matching type signatures to call error on mismatch.
6250 (lookup_dwo_unit): Add assert.
6251 (init_tu_and_read_dwo_dies): New function.
6252 (init_cutu_and_read_dies): Call it.
6253 (build_type_unit_groups): Handle case of no type unit groups created.
6254 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6255 (lookup_dwo_cutu): Tweak complaint.
6256 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6257 (dwarf2_per_objfile_free): Free all_type_units.
6258
a25cd31f
JB
62592013-05-20 Joel Brobecker <brobecker@adacore.com>
6260
6261 * windows-nat.c (handle_unload_dll): Add missing empty line.
6262
4d804846
JB
62632013-05-20 Joel Brobecker <brobecker@adacore.com>
6264
6265 * dwarf2read.c (prototyped_function_p): New function.
6266 (read_subroutine_type): Use it.
6267
1c432e72
JB
62682013-05-20 Joel Brobecker <brobecker@adacore.com>
6269
6270 * rs6000-aix-tdep.c: De-indent some example code provided
6271 as a comment.
6272
4feebbdd
EBM
62732013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6274
6275 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6276 region is ok for a hardware watchpoint using the new ptrace interface
6277 on Power servers.
6278
7d0c9981
DE
62792013-05-17 Doug Evans <dje@google.com>
6280
6281 * NEWS: Mention new maintenance commands check-symtabs, and
6282 expand-symtabs, and renamed check-psymtabs.
6283 * psymtab.c (maintenance_check_psymtabs): Renamed from
6284 maintenance_check_symtabs. Only process already-expanded symbol
6285 tables.
6286 (_initialize_psymtab): Update.
6287 * symmisc.c (maintenance_check_symtabs): New function.
6288 (maintenance_expand_name_matcher): New function
6289 (maintenance_expand_file_matcher): New function
6290 (maintenance_expand_symtabs): New function.
6291 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6292 commands.
6293
6cbc7c3d
TT
62942013-05-17 Tom Tromey <tromey@redhat.com>
6295
6296 * python/py-inferior.c (infpy_read_memory): Don't call
6297 PyErr_SetString if PyObject_New fails.
6298 * python/py-frame.c (frame_info_to_frame_object): Don't call
6299 PyErr_SetString if PyObject_New fails.
6300
a48b32c0
L
63012013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6302
6303 * acinclude.m4: Add check for dlopen in libdl.
6304 * configure.ac: Ditto.
6305 * configure: Regenerate.
6306
3de661e6
PM
63072013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6308
6309 * frame.c (frame_stash): Convert to htab.
6310 (frame_addr_hash): New function.
6311 (frame_addr_hash_eq): New function.
6312 (frame_stash_create): Convert function to create
6313 a hash table.
6314 (frame_stash_add): Convert function to add an entry to a hash
6315 table.
6316 (frame_stash_find): Convert function to search the hash table.
6317 (frame_stash_invalidate): Convert function to empty the hash
6318 table.
6319 (get_frame_id): Only add to stash if a frame_id is created.
6320 (_initialize_frame): Call frame_stash_create.
6321
bb4168a9 63222013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6323
6324 * configure.ac: Ensure MIG is available when building for GNU Hurd
6325 hosts.
6326 * configure: Regenerate.
6327
d1be3247
JB
63282013-05-16 Joel Brobecker <brobecker@adacore.com>
6329
6330 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6331
b8fea896
JB
63322013-05-16 Joel Brobecker <brobecker@adacore.com>
6333
6334 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6335 all cleanups are done before returning from this function.
6336
af880d85
JB
63372013-05-15 Joel Brobecker <brobecker@adacore.com>
6338
6339 * utils.h: #include "exceptions.h".
6340 (enum errors): Remove partial declaration.
6341
356a5233
JB
63422013-05-15 Joel Brobecker <brobecker@adacore.com>
6343
6344 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6345 * gdbarch.h, gdbarch.c: Regenerate.
6346 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6347 handling.
6348
6349 * rs6000-aix-tdep.h: New file.
6350 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6351 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6352 "xml-utils.h".
6353 (struct field_info, struct ld_info_desc): New types.
6354 (ld_info32_desc, ld_info64_desc): New static constants.
6355 (struct ld_info): New type.
6356 (rs6000_aix_extract_ld_info): New function.
6357 (rs6000_aix_shared_library_to_xml): Likewise.
6358 (rs6000_aix_ld_info_to_xml): Likewise.
6359 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6360 (rs6000_aix_init_osabi): Add call to
6361 set_gdbarch_core_xfer_shared_libraries_aix.
6362 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6363 Remove "xml-utils.h" include.
6364 (LdInfo): Delete typedef.
6365 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6366 Delete macros.
6367 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6368 Adjust code accordingly.
6369 (rs6000_core_ldinfo): Delete, folded into
6370 rs6000_aix_core_xfer_shared_libraries_aix.
6371 (rs6000_xfer_shared_library): Delete.
6372 (rs6000_xfer_shared_libraries): Reimplement.
6373
742ce053
MM
63742013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6375
6376 * record.c (record_goto_cmdlist): New.
6377 (cmd_record_goto): Split into this ...
6378 (cmd_record_goto_begin): ... this
6379 (cmd_record_goto_end): ... and this.
6380 (_initialize_record): Change "record goto" to prefix command.
6381 Add commands for "record goto begin" and "record goto end".
6382 Add an alias for "record goto start" to "record goto begin".
6383
e93ba630
JK
63842013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6385
6386 * linespec.c (convert_linespec_to_sals): New comment for
6387 SOURCE_FILENAME assignment.
6388
5821aace
JK
63892013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6390
6391 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6392 internal_warning.
6393
a1b8c4cc
TT
63942013-05-14 Tom Tromey <tromey@redhat.com>
6395
6396 * eval.c (parse_and_eval_long): Make 'exp' const.
6397 * value.h (parse_and_eval_long): Update.
6398
23b3a2c3
TT
63992013-05-14 Tom Tromey <tromey@redhat.com>
6400
6401 * ui-file.c (gdb_fopen): Make arguments const.
6402 * ui-file.h (gdb_fopen): Make arguments const.
6403
ca623f82
TT
64042013-05-14 Tom Tromey <tromey@redhat.com>
6405
6406 * remote.c (remote_set_trace_notes): Make arguments const.
6407 * target.c (update_current_target): Update cast.
6408 * target.h (to_set_trace_notes): Make arguments const.
6409
503ebb2c
TT
64102013-05-14 Tom Tromey <tromey@redhat.com>
6411
6412 * go32-nat.c (go32_terminal_info): Make 'args' const.
6413 * inferior.h (child_terminal_info): Update.
6414 * inflow.c (child_terminal_info): Make 'args' const.
6415 * target.c (default_terminal_info): Make 'args' const.
6416 (debug_to_terminal_save_ours): Likewise.
6417 * target.h (struct target_ops) <to_terminal_info>: Make argument
6418 const.
6419
85e1311a
TT
64202013-05-13 Tom Tromey <tromey@redhat.com>
6421
6422 * gcore.c (create_gcore_bfd): Make 'filename' const.
6423 * gcore.h (create_gcore_bfd): Make 'filename' const.
6424 * record-full.c (record_full_save): Make 'recfilename' const.
6425 * target.c (target_save_record): Make 'filename' const.
6426 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6427 const.
6428 (target_save_record): Likewise.
6429
d62bfeaf
TT
64302013-05-13 Tom Tromey <tromey@redhat.com>
6431
f5aee5ee 6432 PR gdb/15338:
d62bfeaf
TT
6433 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6434 ranges section has been read.
6435
ac1ca910
TT
64362013-05-13 Tom Tromey <tromey@redhat.com>
6437
6438 PR exp/15364:
6439 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6440 STRUCTOP_PTR>: Return a not_lval value for
6441 EVAL_AVOID_SIDE_EFFECTS.
6442 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6443 for EVAL_AVOID_SIDE_EFFECTS.
6444
36d1c68c
JB
64452013-05-13 Joel Brobecker <brobecker@adacore.com>
6446
6447 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6448 floating point registers to register type before storing
6449 value.
6450 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6451 Likewise.
6452
21ff4686
TT
64532013-05-10 Joel Brobecker <brobecker@adacore.com>
6454 Tom Tromey <tromey@redhat.com>
6455
6456 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6457 New functions.
6458 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6459 Declare.
6460 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6461 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6462 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6463 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6464
d3685d60
TT
64652013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6466 Tom Tromey <tromey@redhat.com>
6467
6468 PR build/15414:
6469 * configure: Rebuild.
6470 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6471 with -Wno-format.
6472
eb9fe518
PA
64732013-05-10 Pedro Alves <palves@redhat.com>
6474
6475 * remote.c (_initialize_remote): Fix spelling of
6476 qXfer:traceframe-info:read packet in packet config command.
6477
9779ab84
PA
64782013-05-10 David Taylor <dtaylor@emc.com>
6479
6480 PR remote/15455
6481
6482 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6483 "QTro" at start of packet.
6484
060cfbef
JB
64852013-05-10 Joel Brobecker <brobecker@adacore.com>
6486
6487 * solib-aix.c (solib_aix_relocate_section_addresses):
6488 For the .bss section action, apply the same offset as
6489 the .data section.
6490
ab1c4e88
JB
64912013-05-10 Joel Brobecker <brobecker@adacore.com>
6492
6493 * solib-aix.c (solib_aix_relocate_section_addresses):
6494 Remove FIXME comment.
6495
c1357578
JB
64962013-05-10 Joel Brobecker <brobecker@adacore.com>
6497
6498 PR tdep/15420:
6499 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6500 New functions, directly copied from sparc-sol-thread.c.
6501 * sparc-sol-thread.c: Delete.
6502 * configure.ac: Remove code handling sparc-solaris-thread.c.
6503 * configure: Regenerate.
6504
1e611234
PM
65052013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6506
6507 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6508 filter logic.
6509 (backtrace_command): Add "no-filters" option parsing.
6510 (_initialize_stack): Alter help to reflect "no-filters" option.
6511 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6512 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6513 (py-frame.o): Add target
6514 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6515 filter files.
6516 * python/python.h: Add new frame filter constants, and flag enum.
6517 (apply_frame_filter): Add definition.
6518 * python/python.c (apply_frame_filter): New non-Python
6519 enabled function.
6520 * python/py-utils.c (py_xdecref): New function.
6521 (make_cleanup_py_xdecref): Ditto.
6522 * python/py-objfile.c: Declare frame_filters dictionary.
6523 (objfpy_dealloc): Add frame_filters dealloc.
6524 (objfpy_new): Initialize frame_filters attribute.
6525 (objfile_to_objfile_object): Ditto.
6526 (objfpy_get_frame_filters): New function.
6527 (objfpy_set_frame_filters): New function.
6528 * python/py-progspace.c: Declare frame_filters dictionary.
6529 (pspy_dealloc): Add frame_filters dealloc.
6530 (pspy_new): Initialize frame_filters attribute.
6531 (pspacee_to_pspace_object): Ditto.
6532 (pspy_get_frame_filters): New function.
6533 (pspy_set_frame_filters): New function.
6534 * python/py-framefilter.c: New file.
6535 * python/lib/gdb/command/frame_filters.py: New file.
6536 * python/lib/gdb/frames.py: New file.
6537 * python/lib/gdb/__init__.py: Initialize global frame_filters
6538 dictionary
6539 * python/lib/gdb/FrameDecorator.py: New file.
6540 * python/lib/gdb/FrameIterator.py: New file.
6541 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6542 * mi/mi-cmds.h: Declare.
6543 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6544 --no-frame-filter logic, and Python frame filter logic.
6545 (stack_enable_frame_filters): New function.
6546 (parse_no_frame_option): Ditto.
6547 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6548 filter logic.
6549 (mi_cmd_stack_list_locals): Ditto.
6550 (mi_cmd_stack_list_args): Ditto.
6551 (mi_cmd_stack_list_variables): Ditto.
6552 * NEWS: Add frame filter note.
6553
2cb9c859
DE
65542013-05-09 Doug Evans <dje@google.com>
6555
6bf667bb
DE
6556 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6557 All callers updated.
6558 (syms_from_objfile): Ditto. Make static.
6559 (symbol_file_add_with_addrs): Renamed from
6560 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6561 num_offsets. All callers updated.
6562 * symfile.h (syms_from_objfile): Delete.
6563
2cb9c859
DE
6564 * symfile.c (decrement_reading_symtab): Add assert.
6565 (increment_reading_symtab): Ditto.
6566
40aea477
JB
65672013-05-09 Joel Brobecker <brobecker@adacore.com>
6568
6569 * source.c (forward_search_command): Replace call to getc
6570 by call to fgetc.
6571 (reverse_search_command): Likewise.
6572
680d1742
DE
65732013-05-08 Doug Evans <dje@google.com>
6574
6575 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6576 matching test.
6577
17e760ae
JB
65782013-05-08 Joel Brobecker <brobecker@adacore.com>
6579
6580 * sol-thread.c (info_cb): Factorize the code a little.
6581
c0f5f490
JB
65822013-05-08 Joel Brobecker <brobecker@adacore.com>
6583
6584 * sol-thread.c (info_cb): Rework the output of the "maintenance
6585 info sol-threads" command a bit.
6586
5d74e061
JB
65872013-05-08 Joel Brobecker <brobecker@adacore.com>
6588
6589 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6590 Replace ti.ti_startfunc by ti.ti_pc.
6591
814a3ff7
JB
65922013-05-08 Joel Brobecker <brobecker@adacore.com>
6593
6594 * solib-aix.c (solib_aix_free_library_list): New function
6595 for the case where HAVE_LIBEXPAT is not defined.
6596
58ce7251
SDJ
65972013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6598
6599 PR breakpoints/15413:
6600 * breakpoint.c (condition_completer): Simplify the code to
6601 disconsider multiple locations of breakpoints when completing the
6602 "condition" command.
6603
be8b1ea6
PM
66042013-05-07 Pierre Muller <muller@sourceware.org>
6605
6606 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6607 instead of <sys/wait.h>.
6608
1e52bda6
PM
66092013-05-07 Pierre Muller <muller@sourceware.org>
6610
6611 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6612 trailing new line from warning message.
6613
27fd0c6b
PM
66142013-05-07 Pierre Muller <muller@sourceware.org>
6615
6616 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6617 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6618
e228ac87
JB
66192013-05-07 Joel Brobecker <brobecker@adacore.com>
6620
6621 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6622 error message (ARI fix).
6623
66242013-05-07 Joel Brobecker <brobecker@adacore.com>
6625
6626 * features/library-list-aix.dtd: Replace library-list by
6627 library-list-aix.
6628 * rs6000-nat.c: Replace library-list by library-list-aix
6629 throughout.
6630 * solib-aix.c: Likewise.
6631
66322013-05-07 Joel Brobecker <brobecker@adacore.com>
6633
6634 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6635 Renames TARGET_OBJECT_AIX_LIBRARIES.
6636 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6637 TARGET_OBJECT_LIBRARIES_AIX throughout.
6638 * solib-aix.c: Likwise.
6639
26a4dda9
YQ
66402013-05-07 Yao Qi <yao@codesourcery.com>
6641
6642 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6643 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6644
3582629f
YQ
66452013-05-07 Yao Qi <yao@codesourcery.com>
6646
6647 * solib-dsbt.c (enable_break): Declare.
6648 (dsbt_current_sos): Remove call to enable_break2.
6649 (enable_break2): Rename to enable_break. Set solib breakpoint
6650 on '_dl_debug_state'.
6651 (enable_break): Remove.
6652
aacbb8a5
LM
66532013-05-07 Luis Machado <lgustavo@codesourcery.com>
6654
6655 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6656 debug state prior to replicating existing hardware watchpoints or
6657 breakpoints.
6658
0c013353
JK
66592013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6660
6661 * gcore.c (gcore_create_callback): Ignore sections with
6662 separate_debug_objfile_backlink != NULL.
6663
a1217d97
SL
66642013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6665 Andrew Jenner <andrew@codesourcery.com>
6666 Chung-Lin Tang <cltang@codesourcery.com>
6667 Julian Brown <julian@codesourcery.com>
6668
6669 Based on the nios2-elf port from Altera Corporation.
6670
6671 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6672 nios2-linux-tdep.o.
6673 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6674 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6675 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6676 * nios2-tdep.h: New.
6677 * nios2-tdep.c: New.
6678 * nios2-linux-tdep.c: New.
6679 * features/Makefile (WHICH): Add nios2-linux.
6680 (nios2-linux-expedite): Set.
6681 * features/nios2-cpu.xml: New.
6682 * features/nios2.xml: New.
6683 * features/nios2-linux.xml: New.
6684 * features/nios2.c: New (autogenerated).
6685 * features/nios2-linux.c: New (autogenerated).
6686 * regformats/nios2-linux.dat: New (autogenerated).
6687 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6688 and commands.
6689
0892cb63
DE
66902013-05-06 Doug Evans <dje@google.com>
6691
3b7bacac
DE
6692 * symfile.c: Whitespace cleanup.
6693
0892cb63
DE
6694 * solist.h (struct target_so_ops): New member clear_so.
6695 * solib-svr4.c (svr4_clear_so): New function.
6696 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6697 * solib.c (clear_so): Renamed from free_so_symbols.
6698 All callers updated. Call target clear_so if it exists.
6699
40501e00
TT
67002013-05-06 Tom Tromey <tromey@redhat.com>
6701
6702 * ada-lang.c (ada_value_primitive_packed_val): Don't
6703 call value_incref.
6704 * value.c (set_value_parent): Incref the new parent and decref
6705 the old parent.
6706 (value_copy, value_primitive_field): Use set_value_parent.
6707
b6807d98
TT
67082013-05-06 Tom Tromey <tromey@redhat.com>
6709
6710 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6711 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6712 if needed.
6713 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6714 * dwarf2read.c (write_constant_as_bytes)
6715 (dwarf2_fetch_constant_bytes): New functions.
6716
3aef2284
TT
67172013-05-06 Tom Tromey <tromey@redhat.com>
6718
6719 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6720 parameters.
6721 (dwarf2_const_value_attr): Update.
6722
66f65e2b
TT
67232013-05-06 Tom Tromey <tromey@redhat.com>
6724
6725 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6726 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6727 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6728 Remove declaration.
6729
7919a973
TT
67302013-05-06 Tom Tromey <tromey@redhat.com>
6731
6732 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6733 objfile's obstack.
6734
a7bfba49
DE
67352013-05-06 Doug Evans <dje@google.com>
6736
3189cb12
DE
6737 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6738 * stabsread.h (process_one_symbol): Update declaration.
6739 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6740 * elfread.c (elf_symfile_relocate_probe): Ditto.
6741 * psymtab.c (relocate_psymtabs): Ditto.
6742 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6743 (objfile_relocate): Ditto.
6744 * objfiles.h (objfile_relocate): Update declaration.
6745 * symfile.c (relative_addr_info_to_section_offsets): Constify
6746 addrs parameter.
6747 (default_symfile_offsets): Ditto.
6748 (syms_from_objfile_1): Constify offsets parameter.
6749 (syms_from_objfile): Ditto.
6750 (symbol_file_add_with_addrs_or_offsets): Ditto.
6751 (symfile_map_offsets_to_segments): Constify data parameter.
6752 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6753 delta parameters of member relocate.
6754 (struct sym_probe_fns): Constify new_offsets,
6755 delta parameters of member sym_relocate_probe.
6756 (struct sym_fns): Constify section_addr_info parameter of member
6757 sym_offsets.
6758 (relative_addr_info_to_section_offsets): Update declaration.
6759 (default_symfile_offsets): Ditto.
6760 (syms_from_objfile): Ditto.
6761 (symfile_map_offsets_to_segments): Ditto.
6762
a7bfba49
DE
6763 * symfile.c (syms_from_objfile_1): Use correct section count when
6764 objfile->sf == NULL.
6765
5f8e0b8f
MF
67662013-05-06 Mike Frysinger <vapier@gentoo.org>
6767
6768 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6769
ea52d893
DE
67702013-05-06 Doug Evans <dje@google.com>
6771
6772 * psympriv.h (struct partial_symtab): Augment comment for member
6773 section_offsets.
6774
4d1eb6b4
JB
67752013-05-06 Joel Brobecker <brobecker@adacore.com>
6776
6777 Reimplement shared library support on ppc-aix...
6778 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6779 * features/library-list-aix.dtd: New file.
6780 * solib-aix.h, solib-aix.c: New file.
6781 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6782 (rs6000_find_toc_address_hook): Delete.
6783 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6784 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6785 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6786 "xml-utils.h".
6787 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6788 (vmap_symtab, fixup_breakpoints): Delete.
6789 (rs6000_xfer_shared_libraries): New function.
6790 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6791 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6792 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6793 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6794 (rs6000_xfer_shared_library): New function.
6795 (find_toc_address): Delete.
6796 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6797 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6798 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6799 before creating minimal symbol. Adjust function description
6800 accordingly.
6801 (scan_xcoff_symtab): Replace call to
6802 prim_record_minimal_symbol_and_info by call to
6803 record_minimal_symbol.
6804 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6805 around default_symfile_offsets.
6806 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6807 powerpc-aix targets.
6808 * config/rs6000/nm-rs6000.h: Delete.
6809 * config/powerpc/aix.mh (NAT_FILE): Delete.
6810 (NATDEPFILES): Remove xcoffsolib.o.
6811 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6812 (ALL_TARGET_OBS): Add solib-aix.o.
6813 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6814 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6815 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6816 * xcoffsolib.h, xcoffsolib.c: Delete.
6817
6818 * solib.c (reload_shared_libraries): Remove reference to
6819 SOLIB_CREATE_INFERIOR_HOOK.
6820 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6821 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6822 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6823 comment.
6824 * corelow.c (deprecated_core_resize_section_table): Delete.
6825 * exec.c: Remove include of xcoffsolib.h".
6826 (map_vmap, vmap): Delete.
6827 (exec_close_1): Remove references to vmap.
6828 (exec_file_attach): Remove vmap handling code, and reference
6829 to DEPRECATED_IBM6000_TARGET.
6830 (bfdsec_to_vmap): Delete.
6831 (exec_files_info): Remove block of code handling VMAP.
6832 * infcmd.c (post_create_inferior): Remove reference to
6833 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6834 * infrun.c (follow_exec): Remove reference to
6835 SOLIB_CREATE_INFERIOR_HOOK.
6836 * stack.c (print_frame): Remove reference to PC_SOLIB.
6837 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6838 (dsbt_relocate_main_executable): Likewise.
6839 * solib-frv.c (frv_current_sos): Likewise.
6840
0c4f667c
JB
68412013-05-06 Joel Brobecker <brobecker@adacore.com>
6842
6843 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6844 to target_write_memory and target_read_memory.
6845
726ce67c
JB
68462013-05-06 Joel Brobecker <brobecker@adacore.com>
6847
6848 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6849 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6850
c8c9911f
JB
68512013-05-06 Joel Brobecker <brobecker@adacore.com>
6852
6853 * darwin-nat.c: Replace all "%x" instances in format strings
6854 into "0x%x" throughout.
6855
fda184b6
JB
68562013-05-06 Joel Brobecker <brobecker@adacore.com>
6857
6858 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6859 gdb_assert by call to MACH_CHECK_ERROR.
6860 (darwin_attach_pid): Raise an error rather than a failed
6861 assertion when various system calls failed. Report a warning
6862 instead of raising a failed assertion when PREV_NOT is not NULL
6863 after call to mach_port_request_notification.
6864 (darwin_ptrace_me): Raise an error rather than a failed
6865 assertion when read returns nonzero.
6866
d1d69afb
JB
68672013-05-06 Joel Brobecker <brobecker@adacore.com>
6868
6869 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6870
dc90b24d
JK
68712013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6872
6873 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6874
faab9922
JK
68752013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6876
6877 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6878 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6879 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6880 a stale cleanup. Fix double free of NAME.
6881
e0ea48a0
EZ
68822013-05-04 Eli Zaretskii <eliz@gnu.org>
6883
6884 * windows-nat.c (windows_delete_thread): Accept an additional
6885 argument, the thread's exit code, and announce thread death when
6886 print_thread_events is non-zero and we are deleting a thread that
6887 is not the main thread.
6888 (get_windows_debug_event): Pass thread exit code to
6889 windows_delete_thread.
6890
83b2706a
KB
68912013-05-03 Kevin Buettner <kevinb@redhat.com>
6892
6893 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6894 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6895 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6896 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6897 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6898 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6899 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6900 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6901 (gdbarch_tdep): New struct.
6902 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6903 E_NUM_REGS.
6904 (v850e3v5_register_name): New function.
6905 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6906 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6907 code handling the struct return conventions for the RH850 ABI.
6908 Update all callers.
6909 (v850_eight_byte_align_p): New function.
6910 (v850_push_call_dummy): Push structs by value, not by reference
6911 for the RH850 ABI. Add support for eight byte alignment.
6912 (v850_dbtrap_breakpoint_from_pc): New function.
6913 (v850_gdbarch_init): Add ABI detection code. Register
6914 v850e3v5_register_name for the v850e3v5 architecture. Set the
6915 number of registers for v850e3v5. Register
6916 v850_dbtrap_breakpoint_from_pc as appropriate.
6917 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6918
d445b2f6
DE
69192013-05-03 Doug Evans <dje@google.com>
6920
6921 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6922 of bfd_count_sections.
6923 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6924 * symfile.c (default_symfile_offsets): Ditto.
6925 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6926 one entry, not bfd_count_sections entries.
6927
b3ce41ea
KB
69282013-05-03 Kevin Buettner <kevinb@redhat.com>
6929
6930 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6931 `save' and `restore' register groups. Don't include SPL
6932 or SPH in these groups.
6933 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6934 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6935 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6936 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6937 dwarf2_append_unwinders().
6938
96f7d3f1
PW
69392013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6940
6941 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6942 ignore SIGINT and SIGTRAP in case these internal signals are
6943 caught explicitely.
6944
b9dd1947
JB
69452013-05-01 Joel Brobecker <brobecker@adacore.com>
6946
6947 * darwin-nat.c (darwin_read_write_inferior): Change types
6948 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6949 of copy_count to "mach_msg_type_number_t".
6950 (darwin_read_dyld_info): Change type of parameter
6951 rdaddr to "gdb_byte *".
6952
4ca18a63
JB
69532013-05-01 Joel Brobecker <brobecker@adacore.com>
6954
6955 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6956 of &info->load_map from "char *" to "gdb_byte *".
6957
2b692d32
JB
69582013-05-01 Joel Brobecker <brobecker@adacore.com>
6959
6960 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6961 from "char *" to "gdb_byte *".
6962 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6963
a98c29a0
DE
69642013-04-30 Doug Evans <dje@google.com>
6965
6a506a2d
DE
6966 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6967 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6968 DWO stub. If DWO isn't found, just use stub.
6969 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6970
a98c29a0
DE
6971 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6972 calling init_cutu_and_read_dies.
6973
f92b06da
WT
69742013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6975
6976 * target-descriptions.c (maint_print_c_tdesc_cmd):
6977 Add case to parse structures as register types and
6978 bitfields.
6979
95eebdcc
WT
69802013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6981
6982 * MAINTAINERS (Write After Approval): Add myself to the list.
6983
019c1128
JB
69842013-04-30 Joel Brobecker <brobecker@adacore.com>
6985
6986 * sol-thread.c (rw_common): Change type of parameter "buf"
6987 to "gdb_byte *".
6988 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6989 rw_common to "gdb_byte *" instead of "char *".
6990
5812197c
JB
69912013-04-30 Joel Brobecker <brobecker@adacore.com>
6992
6993 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6994 of local variable msym to const struct bound_minimal_symbol.
6995 Adjust use accordingly.
6996 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6997
ecccb813
TS
69982013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6999
7000 * i386gnu-nat.c (CREG_OFFSET): New macro.
7001 (creg_offset): New array.
7002 (CREG_ADDR): Use creg_offset instead of reg_offset.
7003
f1d02dd4 70042013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7005
7006 * mep-tdep.c (mep_write_pc): Delete.
7007 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7008 Add call to set_gdbarch_pc_regnum.
7009
f1d02dd4 70102013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7011
7012 * common/filestuff.c: Replace #include <dirent.h> by
7013 #include "gdb_dirent.h".
7014
f1d02dd4 70152013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7016
7017 * common/filestuff.c: Replace #include <sys/stat.h> by
7018 #include "gdb_stat.h".
7019
b385a60d
PM
70202013-04-29 Pierre Muller <muller@sourceware.org>
7021
7022 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7023 editCase function rule.
7024 (get_DW_AT_signature_type): Likewise.
7025
d27b54ad
JB
70262013-04-29 Joel Brobecker <brobecker@adacore.com>
7027
7028 * m32r-tdep.c (m32r_write_pc): Delete.
7029 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7030 Add call to set_gdbarch_pc_regnum.
7031
47d21dc5
PM
70322013-04-29 Pierre Muller <muller@sourceware.org>
7033
7034 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7035
9056882e
JB
70362013-04-29 Joel Brobecker <brobecker@adacore.com>
7037
7038 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7039
7ee4732a
YQ
70402013-04-28 Yao Qi <yao@codesourcery.com>
7041
7042 * solib-dsbt.c (fetch_loadmap): Re-indent.
7043 (displacement_from_map, enable_break2): Likewise.
7044 (dsbt_relocate_section_addresses): Likewise.
7045
2260af53 70462013-04-26 Joel Brobecker <brobecker@adacore.com>
7047
7048 GDB 7.6 released.
7049
ff546935
TT
70502013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7051
7052 PR corefiles/14983:
7053 * dwarf2read.c (process_full_comp_unit): Always create a static
7054 block.
7055
40fb6c5e
HZ
70562013-04-25 Hui Zhu <hui@codesourcery.com>
7057
7058 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7059 to loc->cmd_bytecode.
7060
74e04d1c
DE
70612013-04-24 Doug Evans <dje@google.com>
7062
7063 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7064
3cf62c1d
KS
70652013-04-22 Keith Seitz <keiths@redhat.com>
7066
7067 * tracepoint.c (trace_save): Call the writer's start method.
7068
bf9e4d0c
MB
70692013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7070
7071 PR gdb/10462
7072 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7073 before argument.
7074
5d71132c
TT
70752013-04-23 Tom Tromey <tromey@redhat.com>
7076
7077 * common/filestuff.c: Check USE_WIN32API before including
7078 sys/socket.h.
7079 (HAVE_F_GETFD): New define.
7080 (mark_cloexec): Check HAVE_F_GETFD.
7081 (gdb_open_cloexec): Change 'mode' to unsigned long.
7082 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7083 (gdb_pipe_cloexec): Check HAVE_PIPE.
7084 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7085 long.
7086
a11cfd87
HZ
70872013-04-23 Hui Zhu <hui@codesourcery.com>
7088
7089 PR gdb/15293
a11cfd87
HZ
7090 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7091
2d9442cc
HZ
70922013-04-23 Hui Zhu <hui@codesourcery.com>
7093
7094 PR gdb/15165
2d9442cc
HZ
7095 * breakpoint.c (dprintf_print_recreate): New.
7096 (save_breakpoints): Let it not save dprintf commands.
7097 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7098
614c279d
TT
70992013-04-22 Tom Tromey <tromey@redhat.com>
7100
7101 PR gdb/7912:
7102 * Makefile.in (SFILES): Add filestuff.c
7103 (COMMON_OBS): Add filestuff.o.
7104 (filestuff.o): New target.
7105 * auto-load.c (auto_load_objfile_script_1): Use
7106 gdb_fopen_cloexec.
7107 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7108 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7109 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7110 * common/agent.c (gdb_connect_sync_socket): Use
7111 gdb_socket_cloexec.
7112 * common/filestuff.c: New file.
7113 * common/filestuff.h: New file.
7114 * common/linux-osdata.c (linux_common_core_of_thread)
7115 (command_from_pid, commandline_from_pid, print_source_lines)
7116 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7117 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7118 gdb_fopen_cloexec.
7119 * common/linux-procfs.c (linux_proc_get_int)
7120 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7121 * config.in, configure: Rebuild.
7122 * configure.ac: Don't check for sys/socket.h. Check for
7123 fdwalk, pipe2.
7124 * corelow.c (core_open): Use gdb_open_cloexec.
7125 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7126 * fork-child.c (fork_inferior): Call close_most_fds.
7127 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7128 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7129 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7130 Use gdb_fopen_cloexec.
7131 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7132 gdb_open_cloexec.
7133 (linux_async_pipe): Use gdb_pipe_cloexec.
7134 * remote-fileio.c (remote_fileio_func_open): Use
7135 gdb_open_cloexec.
7136 * remote.c (remote_file_put, remote_file_get): Use
7137 gdb_fopen_cloexec.
7138 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7139 close_most_fds.
7140 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7141 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7142 * solib.c (solib_find): Use gdb_open_cloexec.
7143 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7144 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7145 (tfile_open): Use gdb_open_cloexec.
7146 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7147 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7148 * xml-support.c (xml_fetch_content_from_file): Use
7149 gdb_fopen_cloexec.
7150 * main.c (captured_main): Call notice_open_fds.
7151
5fda2332
EBM
71522013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7153
7154 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7155 'char *' to 'gdb_byte *'.
7156 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7157 'gdb_byte'.
7158
eb6c553b
YQ
71592013-04-22 Yao Qi <yao@codesourcery.com>
7160
7161 * infrun.c: Fix typo in comment.
7162
9991b207
SDJ
71632013-04-22 Andrew Haley <aph@redhat.com>
7164
7165 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7166 instead of "long".
7167
8b4833e3
YQ
71682013-04-20 Yao Qi <yao@codesourcery.com>
7169
7170 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7171 'char *' to 'gdb_byte *'. Cast the return value of
7172 'bt_ctf_get_char_array' to 'gdb_byte *'.
7173
bd3f3b55
PA
71742013-04-19 Pedro Alves <palves@redhat.com>
7175
7176 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7177 -Wpointer-sign.
7178 * configure: Regenerate.
7179
c49e7f76
PA
71802013-04-19 Pedro Alves <palves@redhat.com>
7181
7182 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7183 'void *'.
7184
12ff8552
PA
71852013-04-19 Pedro Alves <palves@redhat.com>
7186
7187 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7188 Change type of 'myaddr' parameter to gdb_byte pointer.
7189 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7190 to 'long long' pointer instead of to 'unsigned long long'.
7191 (monitor_write_memory_block, monitor_read_memory_single)
7192 (monitor_read_memory): Change type of 'myaddr' parameter to
7193 gdb_byte pointer.
7194
9c37696b
PA
71952013-04-19 Pedro Alves <palves@redhat.com>
7196
7197 * record.c (validate_history_size): Make parameter 'setting'
7198 unsigned.
7199
a398505b
PA
72002013-04-19 Pedro Alves <palves@redhat.com>
7201
7202 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7203 to 'gdb_byte *'.
7204
9f8afa72
PA
72052013-04-19 Pedro Alves <palves@redhat.com>
7206
7207 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7208 local to int.
7209
c714b426
PA
72102013-04-19 Pedro Alves <palves@redhat.com>
7211
7212 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7213 * ada-tasks.c (read_fat_string_value): Likewise.
7214
507a579c
PA
72152013-04-19 Pedro Alves <palves@redhat.com>
7216
7217 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7218 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7219 'offset', and adjust.
7220
f9d83a0b
PA
72212013-04-19 Pedro Alves <palves@redhat.com>
7222
7223 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7224 (read_index_from_section): Add cast to 'char *'.
7225
745eb4fd
PA
72262013-04-19 Pedro Alves <palves@redhat.com>
7227
7228 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7229
db5be46f
PA
72302013-04-19 Pedro Alves <palves@redhat.com>
7231
7232 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7233
0f928d68
PA
72342013-04-19 Pedro Alves <palves@redhat.com>
7235
7236 * record-full.c (record_full_get_bookmark): Change local 'ret'
7237 type to char * and add cast to gdb_byte *.
7238 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7239 string.
7240 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7241
89f6d837
PA
72422013-04-19 Pedro Alves <palves@redhat.com>
7243
7244 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7245 * python/py-prettyprint.c (print_string_repr): Change type of
7246 'output' local to char *. Add cast to gdb_byte * in
7247 LA_PRINT_STRING call.
7248 (print_children): Change type of 'output' local to char *.
7249 * python/py-value.c (valpy_string): Add cast to const char * in
7250 PyUnicode_Decode call.
7251
ce6ec7d8
PA
72522013-04-19 Pedro Alves <palves@redhat.com>
7253
7254 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7255 and change its type to 'const char *'. Adjust.
7256 (mips_send_packet): Add cast to 'char *', and remove cast to
7257 'unsigned char *'.
7258 (mips_receive_packet): Remove cast to 'unsigned char *'.
7259 (mips_load_srec): Use bfd_byte.
7260 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7261 (pmon_checkset): Make 'value' parameter unsigned.
7262
fda0389f
PA
72632013-04-19 Pedro Alves <palves@redhat.com>
7264
7265 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7266
bc20a4af
PA
72672013-04-19 Pedro Alves <palves@redhat.com>
7268
7269 * remote.c (remote_write_bytes_aux, compare_sections_command)
7270 (remote_read_qxfer)
7271 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7272 (remote_hostio_readlink, remote_bfd_iovec_pread)
7273 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7274 binary buffer, and char when buffer is used as string.
7275 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7276 (trace_save, tfile_open, traceframe_walk_blocks)
7277 (tfile_fetch_registers): Likewise.
7278
c628b528
PA
72792013-04-19 Pedro Alves <palves@redhat.com>
7280
7281 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7282 buffer and size_t size. Adjust.
7283 * ser-base.h (ser_base_write): Adjust.
7284 * ser-go32.c (cnts): Change type to size_t.
7285 (dos_write): Change prototype -- take 'void *'
7286 buffer and size_t size. Adjust.
7287 (dos_info): Print elements of 'cnts' as unsigned long.
7288 * serial.c (serial_write): Likewise.
7289 * serial.h (serial_write): Adjust.
7290 (struct serial_ops) <write>: Change prototype -- take 'void *'
7291 buffer and size_t size. Adjust.
7292
51a5cd90
PA
72932013-04-19 Pedro Alves <palves@redhat.com>
7294
7295 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7296 gdb_byte *.
7297 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7298
a9933661
PA
72992013-04-19 Pedro Alves <palves@redhat.com>
7300
7301 * alpha-tdep.c (alpha_extract_return_value): Use
7302 regcache_cooked_read_unsigned to read 'v0'.
7303
19afdd07
PA
73042013-04-19 Pedro Alves <palves@redhat.com>
7305
7306 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7307 parameters 'at', 'as' and 'offset' to uint32_t.
7308
96b32e50
PA
73092013-04-19 Pedro Alves <palves@redhat.com>
7310
7311 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7312 'is64' to signed 'int'.
7313
eb1bd1fb
PA
73142013-04-19 Pedro Alves <palves@redhat.com>
7315
7316 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7317 parameter to int *.
7318
463920bf
PA
73192013-04-19 Pedro Alves <palves@redhat.com>
7320
7321 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7322 'insnbuf' buffer type to unsigned int[].
7323
70242eb1
PA
73242013-04-19 Pedro Alves <palves@redhat.com>
7325
7326 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7327
9d1dd0e2
PA
73282013-04-19 Pedro Alves <palves@redhat.com>
7329
7330 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7331 unsigned long *.
7332
44096aee
PA
73332013-04-19 Pedro Alves <palves@redhat.com>
7334
7335 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7336 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7337 UINT_MAX.
7338 * mips-tdep.c (heuristic_fence_post): Change type to int.
7339 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7340
e4286e57
PA
73412013-04-19 Pedro Alves <palves@redhat.com>
7342
7343 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7344 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7345 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7346
001f13d8
PA
73472013-04-19 Pedro Alves <palves@redhat.com>
7348
7349 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7350 it to get a string view of the byte buffer.
7351 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7352 type to gdb_byte *. Adjust.
7353 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7354 Change local to char *.
7355 * solib-darwin.c (find_program_interpreter): Change return type to
7356 char *. Adjust.
7357 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7358 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7359 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7360 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7361 * solib-svr4.c (find_program_interpreter): Change return type to
7362 char *. Adjust.
7363 (enable_break): Change local 'interp_name' to char *.
7364 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7365 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7366 (spu_pseudo_register_write_spu): Use char for string buffer.
7367 Adjust.
7368 (info_spu_event_command, info_spu_signal_command): Add casts to
7369 'char *'.
7370
948f8e3d
PA
73712013-04-19 Pedro Alves <palves@redhat.com>
7372
7373 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7374 gdb_byte[].
7375 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7376 * ada-lang.c (ada_value_assign): Use gdb_byte.
7377 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7378 (alphanbsd_sigtramp_offset): Use gdb_byte.
7379 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7380 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7381 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7382 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7383 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7384 * arm-tdep.c (arm_stub_unwind_sniffer)
7385 (arm_displaced_init_closure): Use gdb_byte.
7386 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7387 (arm_default_thumb_le_breakpoint)
7388 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7389 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7390 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7391 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7392 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7393 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7394 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7395 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7396 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7397 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7398 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7399 (cris_store_return_value, cris_extract_return_value): Use
7400 gdb_byte.
7401 (constraint): Change type of parameter to char * from signed
7402 char*. Use gdb_byte.
7403 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7404 of local buffer to gdb_byte *.
7405 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7406 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7407 (add_address_entry): Change type of local buffer to gdb_byte[].
7408 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7409 (frv_push_dummy_call): Use gdb_byte.
7410 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7411 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7412 (hppa_hpux_supply_save_state): Use gdb_byte.
7413 * hppa-tdep.c (hppa32_push_dummy_call)
7414 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7415 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7416 (slotN_contents, replace_slotN_contents): Change type of parameter
7417 to gdb_byte *.
7418 (fetch_instruction, ia64_pseudo_register_write)
7419 (ia64_register_to_value, ia64_value_to_register)
7420 (ia64_extract_return_value, ia64_store_return_value)
7421 (ia64_push_dummy_call): Use gdb_byte.
7422 * m32c-tdep.c (m32c_return_value): Remove cast.
7423 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7424 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7425 gdb_byte.
7426 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7427 * mn10300-tdep.c (mn10300_store_return_value)
7428 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7429 gdb_byte.
7430 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7431 (moxie_process_record): Remove casts.
7432 * ppc-ravenscar-thread.c (supply_register_at_address)
7433 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7434 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7435 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7436 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7437 * remote.c (compare_sections_command): Use gdb_byte.
7438 * score-tdep.c (score7_free_memblock): Change type of parameter to
7439 gdb_byte *.
7440 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7441 gdb_byte *. Use gdb_byte.
7442 (sh_push_dummy_call_fpu): Use gdb_byte.
7443 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7444 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7445 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7446 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7447 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7448 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7449 (sh64_store_return_value, sh64_register_convert_to_virtual):
7450 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7451 (sh64_pseudo_register_write): Use gdb_byte.
7452 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7453 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7454 buffer.
7455 (irix_current_sos): Use gdb_byte.
7456 * solib-som.c (som_current_sos): Use gdb_byte.
7457 * sparc-ravenscar-thread.c (supply_register_at_address)
7458 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7459 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7460 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7461 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7462 'gdb_byte *'.
7463 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7464 'gdb_byte *'.
7465 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7466 * xstormy16-tdep.c (xstormy16_extract_return_value)
7467 (xstormy16_store_return_value): Change parameter type to
7468 'gdb_byte *'. Adjust.
7469 (xstormy16_push_dummy_call): Use gdb_byte.
7470 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7471 (call0_analyze_prologue, execute_code): Use gdb_byte.
7472
433730c9
PA
74732013-04-19 Vladimir Kargov <kargov@gmail.com>
7474 Pedro Alves <palves@redhat.com>
7475
7476 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7477 value contents.
7478
ac9ec31b
DE
74792013-04-17 Doug Evans <dje@google.com>
7480
7481 * dwarf2read.c (struct signatured_type): New member type.
7482 (struct attribute): Replace member signatured_type with signature.
7483 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7484 (read_call_site_scope): Call follow_die_ref instead of
7485 follow_die_ref_or_sig.
7486 (read_structure_type): Rewrite handling of signatured types.
7487 (read_enumeration_type): Ditto.
7488 (read_attribute_value): Update.
7489 (build_error_marker_type): New function.
7490 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7491 Don't call error for bad types, just build an error marker type.
7492 (dump_die_shallow): Update.
7493 (follow_die_sig_1): Renamed from follow_die_sig.
7494 Don't call error for bad types, instead return NULL.
7495 (follow_die_sig): New function.
7496 (get_signatured_type, get_DW_AT_signature_type): New functions.
7497
e546e8bb
YZ
74982013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7499
7500 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7501 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7502 function.
e546e8bb 7503
ab116149
YQ
75042013-04-17 Yao Qi <yao@codesourcery.com>
7505
7506 * top.c (print_gdb_configuration): Print configure-time
7507 parameter on using libbabeltrace or not.
7508
488a42b8
PA
75092013-04-16 Pedro Alves <palves@redhat.com>
7510
7511 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7512
f5fb825b
PA
75132013-04-16 Pedro Alves <palves@redhat.com>
7514
85d494ea 7515 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7516 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7517
e1154999
PA
75182013-04-16 Pedro Alves <palves@redhat.com>
7519
7520 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7521 * common/glibc_thread_db.h: ... this new file ...
7522 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7523
e3b50a7f
PA
75242013-04-16 Will Newton <will.newton@gmail.com>
7525 Pedro Alves <palves@redhat.com>
7526
7527 PR build/11881
7528
7529 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7530 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7531 HAVE_THREAD_DB_H.
7532
1c2e4450
PA
75332013-04-16 Pedro Alves <palves@redhat.com>
7534 Eli Zaretskii <eliz@gnu.org>
7535
7536 * NEWS: Mention "set foo unlimited".
7537
4031ecc5
DE
75382013-04-15 Doug Evans <dje@google.com>
7539
19c3d4c9
DE
7540 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7541 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7542 (create_dwo_cu_reader): Renamed from
7543 create_dwo_debug_info_hash_table_reader.
7544 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7545 Remove support for multiple CUs in a DWO file.
7546 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7547
4031ecc5
DE
7548 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7549 instead of phex.
7550 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7551 (create_dwo_in_dwp): Ditto.
7552
b340913d
TT
75532013-04-15 Tom Tromey <tromey@redhat.com>
7554
7555 * NEWS: Move recent entries into "since 7.6" section.
7556
cc16e6c9
TT
75572013-04-15 Tom Tromey <tromey@redhat.com>
7558
7559 PR c++/13588:
7560 * NEWS: Update.
7561 * break-catch-throw.c (struct exception_catchpoint)
7562 <exception_rx, pattern>: New fields.
7563 (fetch_probe_arguments, dtor_exception_catchpoint)
7564 (check_status_exception_catchpoint)
7565 (print_one_detail_exception_catchpoint): New functions.
7566 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7567 Compile regular expression if needed.
7568 (extract_exception_regexp): New function.
7569 (catch_exception_command_1): Use extract_exception_regexp.
7570 (compute_exception): Use fetch_probe_arguments.
7571 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7572 and check_status fields.
7573 * cp-abi.c (cplus_typename_from_type_info): New function.
7574 * cp-abi.h (cplus_typename_from_type_info): Declare.
7575 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7576 * gdb_regex.h (compile_rx_or_error): Declare.
7577 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7578 comment.
7579 (init_gnuv3_ops): Set get_type_from_type_info field.
7580 * probe.c (compile_rx_or_error): Move...
7581 * utils.c (compile_rx_or_error): ... here.
7582
72f1fe8a
TT
75832013-04-15 Tom Tromey <tromey@redhat.com>
7584
7585 PR c++/15176:
7586 * NEWS: Update.
7587 * break-catch-throw.c (compute_exception): New function.
7588 (exception_funcs): New global.
7589 (_initialize_break_catch_throw): Create $_exception.
7590 * cp-abi.c (cplus_type_from_type_info): New function.
7591 * cp-abi.h (cplus_type_from_type_info): Declare.
7592 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7593 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7594 (gnuv3_get_type_from_type_info): New functions.
7595 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7596
fc4746a2
TT
75972013-04-15 Tom Tromey <tromey@redhat.com>
7598
7599 * break-catch-throw.c (struct exception_names): New.
7600 (exception_functions): Change type.
7601 (re_set_exception_catchpoint): Look for SDT probes.
7602
15a73f56
TT
76032013-04-15 Tom Tromey <tromey@redhat.com>
7604
7605 PR c++/10119:
7606 * break-catch-throw.c (exception_functions): New global.
7607 (gnu_v3_exception_catchpoint_ops): Move earlier.
7608 (struct exception_catchpoint): New.
7609 (classify_exception_breakpoint): Rewrite.
7610 (re_set_exception_catchpoint): New function.
7611 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7612 Allocate a struct exception_catchpoint.
7613 (catch_exception_command_1): Update.
7614 (initialize_throw_catchpoint_ops): Set 're_set' method.
7615
916703c0
TT
76162013-04-15 Tom Tromey <tromey@redhat.com>
7617
7618 * Makefile.in (SFILES): Add break-catch-throw.c
7619 (COMMON_OBS): Add break-catch-throw.o.
7620 * break-catch-throw.c: New file.
7621 * breakpoint.c: Move exception-catching code to new file.
7622 (ep_parse_optional_if_clause): No longer static.
7623 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7624
6e72ca20
TT
76252013-04-15 Tom Tromey <tromey@redhat.com>
7626
7627 PR c++/9065:
7628 * NEWS: Update.
7629 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7630 * c-exp.y (TYPEID): New token.
7631 (exp): Add new TYPEID productions.
7632 (ident_tokens): Add "typeid".
7633 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7634 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7635 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7636 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7637 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7638 case.
7639 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7640 (build_std_type_info_type, gnuv3_get_typeid_type)
7641 (gnuv3_get_typeid): New functions.
7642 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7643 new fields on ABI object.
7644 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7645 * std-operator.def (OP_TYPEID): New.
7646
715c6909
TT
76472013-04-15 Tom Tromey <tromey@redhat.com>
7648
7649 * elfread.c (elf_symtab_read): Install versioned symbol under
7650 unversioned name as well.
7651
8de20a37
TT
76522013-04-15 Tom Tromey <tromey@redhat.com>
7653
7654 PR c++/11990:
7655 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7656 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7657 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7658 (gdb_demangle): New function.
7659 * cp-support.h (gdb_demangle): Declare.
7660 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7661 (dwarf2_name): Use gdb_demangle.
7662 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7663 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7664 suffixes from name.
7665 (gnuv3_print_method_ptr): Use gdb_demangle.
7666 * jv-lang.c (java_demangle): Use gdb_demangle.
7667 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7668 * language.c (unk_lang_demangle): Use gdb_demangle.
7669 * symtab.c (symbol_find_demangled_name)
7670 (demangle_for_lookup): Use gdb_demangle.
7671
591f19e8
TT
76722013-04-15 Tom Tromey <tromey@redhat.com>
7673
7674 PR c++/12824:
7675 * NEWS: Update.
7676 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7677 New constant.
7678 (classify_exception_breakpoint): New function.
7679 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7680 (print_mention_exception_catchpoint)
7681 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7682 (catch_exception_command_1): Handle "rethrow" catchpoint.
7683 (catch_rethrow_command): New function.
7684 (_initialize_breakpoint): Add "catch rethrow" command.
7685
4d40cad2
PM
76862013-04-15 Pierre Muller <muller@sourceware.org>
7687
7688 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7689 set_gdbarch_write_pc as deprecated anymore.
7690
30bcb456
JB
76912013-04-15 Joel Brobecker <brobecker@adacore.com>
7692
7693 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7694 declarations.
7695
da9160e4
YQ
76962013-04-13 Yao Qi <yao@codesourcery.com>
7697
7698 * ctf.c (_initialize_ctf): Include "completer.h".
7699 Call add_target_with_completer instead of add_target.
7700
39ed5604
JK
77012013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7702
7703 Fix GDB regression related to PR binutils/14813.
7704 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7705 * minidebug.c (lzma_close): Add return value comment.
7706 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7707 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7708 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7709
77102013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7711
7712 * config.in: Regenerate.
7713
d521ce57
TT
77142013-04-12 Tom Tromey <tromey@redhat.com>
7715
7716 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7717 const.
7718 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7719 (struct die_reader_specs) <buffer>: Likewise.
7720 (die_reader_func_ftype): Make 'info_ptr' const.
7721 (struct line_header) <include_dirs, statement_program_start,
7722 statement_program_end>: Now const.
7723 (struct file_entry) <name>: Likewise.
7724 (struct partial_die_info) <sibling>: Likewise.
7725 (struct dwarf_block) <data>: Likewise.
7726 (dwarf2_read_section): Remove cast.
7727 (dwarf2_get_section_info): Make 'bufp' const.
7728 (read_index_from_section): Constify.
7729 (dw2_get_file_names_reader): Make 'info_ptr' const.
7730 (dw2_get_primary_filename_reader): Likewise.
7731 (read_comp_unit_head): Make 'info_ptr' and return type const.
7732 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7733 Likewise.
7734 (read_abbrev_offset): Constify.
7735 (dwarf2_create_include_psymtab): Make 'name' const.
7736 (create_debug_types_hash_table): Update.
7737 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7738 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7739 Constify.
7740 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7741 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7742 (read_comp_units_from_section): Constify.
7743 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7744 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7745 const.
7746 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7747 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7748 (create_dwp_hash_table, dwarf2_ranges_read)
7749 (dwarf2_record_block_ranges): Constify.
7750 (read_die_and_children, read_die_and_siblings_1)
7751 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7752 const.
7753 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7754 (abbrev_table_read_table): Constify.
7755 (load_partial_dies): Make 'info_ptr' const.
7756 (read_partial_die, read_attribute_value, read_attribute): Make
7757 'info_ptr' and return type const.
7758 (read_address, read_initial_length)
7759 (read_checked_initial_length_and_offset, read_offset)
7760 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7761 const.
7762 (read_direct_string): Make 'buf' and return type const.
7763 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7764 (read_indirect_string): Make return type const.
7765 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7766 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7767 'info_ptr' const.
7768 (read_str_index): Make return type const.
7769 (add_include_dir): Make 'include_dir' const.
7770 (add_file_name): Make 'name' const.
7771 (dwarf_decode_line_header): Constify.
7772 (psymtab_include_file_name): Make return type const.
7773 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7774 (dwarf2_start_subfile): Make 'filename' const.
7775 (dwarf2_const_value_attr): Make 'bytes' const.
7776 (read_signatured_type_reader): Make 'info_ptr' const.
7777 (decode_locdesc): Constify.
7778 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7779 const.
7780 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7781 'mac_end', and return type const.
7782 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7783 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7784 type const.
7785 (per_cu_header_read_in): Constify.
7786 * symfile.h (dwarf2_get_section_info): Update.
7787
d47a1bc1
TT
77882013-04-12 Tom Tromey <tromey@redhat.com>
7789
7790 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7791
6eaaf48b
EZ
77922013-04-12 Eli Zaretskii <eliz@gnu.org>
7793
fc4c25bf 7794 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7795 * top.c (print_gdb_configuration): New function, displays the
7796 details about GDB configure-time parameters.
7797 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7798 * cli/cli-cmds.c (show_configuration): New function.
7799 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7800 * main.c (captured_main) <print_configuration>: New static var.
7801 <long_options>: Use it.
7802 If --configuration was given, call print_gdb_configuration.
7803
b292c783
JK
78042013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7805 Pedro Alves <palves@redhat.com>
7806
7807 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7808 (generated_files): Add gcore.
7809 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7810 HAVE_NATIVE_GCORE_HOST.
7811 (gcore): New.
7812 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7813 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7814 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7815 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7816 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7817 Add HAVE_NATIVE_GCORE_HOST.
7818 * configure: Regenerate.
7819 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7820 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7821 AC_CONFIG_FILES for gcore.
7822 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7823 gdb_have_gcore.
7824 * gdb_gcore.sh: Rename to ...
7825 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7826 and GCORE_TRANSFORM_NAME substitutions.
7827
c96b3c4f
JK
7828 Fix parsing tabs in ${gdb_target_obs}.
7829 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7830
d6cb50a2
JK
78312013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7832
7833 * remote.c (unpush_and_perror): Add output message final dot.
7834
cf2cb5ec
YQ
78352013-04-11 Yao Qi <yao@codesourcery.com>
7836
7837 * tracepoint.c (tfile_interp_line): Fit parameters line and
7838 utpp in one line.
7839
07293be4
JB
78402013-04-10 Joel Brobecker <brobecker@adacore.com>
7841
7842 * solib.c (solib_map_sections): Remove code overwriting
7843 SO->SO_NAME with the bfd's filename.
7844
f81d1120
PA
78452013-04-10 Pedro Alves <palves@redhat.com>
7846
7847 * cli/cli-decode.c (integer_unlimited_completer): New function.
7848 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7849 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7850 completer.
7851 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7852 (is_unlimited_literal): New function.
7853 (do_set_command): Handle literal "unlimited" arguments.
7854 * frame.c (_initialize_frame) <set backtrace limit>: Document
7855 "unlimited".
7856 * printcmd.c (_initialize_printcmd) <set print
7857 max-symbolic-offset>: Add help text.
7858 * record-full.c (_initialize_record_full) <set record full
7859 insn-number-max>: Likewise.
7860 * record.c (_initialize_record) <set record
7861 instruction-history-size, set record function-call-history-size>:
7862 Add help text.
7863 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7864 help text.
7865 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7866 Likewise.
7867 * source.c (_initialize_source) <set listsize>: Add help text.
7868 * utils.c (initialize_utils) <set height, set width>: Likewise.
7869 <set pagination>: Mention "set height unlimited".
7870 * valprint.c (_initialize_valprint) <set print elements, set print
7871 repeats>: Document "unlimited".
7872
2f9d54cf
PA
78732013-04-10 Pedro Alves <palves@redhat.com>
7874
7875 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7876 instead of disconnect_tracing.
7877 * infcmd.c (detach_command, disconnect_command): Call
7878 query_if_trace_running. Adjust.
7879 * top.c: Include "tracepoint.h".
7880 (quit_target): Delete. Contents moved ...
7881 (quit_force): ... here. Wrap each stage of teardown in
7882 TRY_CATCH. Call disconnect_tracing before detaching.
7883
393fd4c3
YQ
78842013-04-10 Hui Zhu <hui@codesourcery.com>
7885 Yao Qi <yao@codesourcery.com>
7886
7887 * configure.ac: Check libbabeltrace is installed.
7888 * config.in: Regenerate.
7889 * configure: Regenerate.
7890 * Makefile.in (LIBBABELTRACE): New.
7891 (CLIBS): Add LIBBABELTRACE.
7892 * ctf.c: Include "exec.h".
7893 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7894 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7895 (ctf_save_metadata_header): Define new type aliases in
7896 metadata.
7897 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7898 in metadata. Start a new faked packet for trace status.
7899 (ctf_write_status): Write trace status to CTF.
7900 (ctf_write_uploaded_tsv): Write TSV to CTF.
7901 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7902 (ctf_write_definition_end): End the faked packet.
7903
7904 (ctx, ctf_iter, trace_dirname): New.
7905 (start_pos): New variable.
7906 (ctf_destroy, ctf_open_dir, ctf_open): New.
7907 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7908 macros.
7909 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7910 (ctf_fetch_registers, ctf_xfer_partial): New.
7911 (ctf_get_trace_state_variable_value): New.
7912 (ctf_get_tpnum_from_frame_event): New.
7913 (ctf_get_traceframe_address): New.
7914 (ctf_trace_find, ctf_has_stack): New.
7915 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7916 (ctf_get_trace_status, ctf_read_status): New.
7917 (_initialize_ctf): New.
7918 * tracepoint.c (get_tracepoint_number): New
7919 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7920 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7921 * tracepoint.h: ... here.
7922 (get_tracepoint_number): Declare it.
7923 (get_uploaded_tsv): Declare it.
7924
7925 * NEWS: Mention new configure option.
7926
5c2b4418
HZ
79272013-04-10 Pedro Alves <palves@redhat.com>
7928 Hui Zhu <hui@codesourcery.com>
7929
7930 * breakpoint.c (dprintf_re_set): New.
7931 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7932 to dprintf_re_set.
7933
a5c66735
JB
79342013-04-09 Joel Brobecker <brobecker@adacore.com>
7935
7936 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7937 Remove solib-svr4.o from the list.
7938
9e77999c
JB
79392013-04-09 Joel Brobecker <brobecker@adacore.com>
7940
7941 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7942 Use gdb_assert_not_reached instead of invalid boolean expression.
7943
1927e618
PA
79442013-04-09 Pedro Alves <palves@redhat.com>
7945
7946 * remote.c (unpush_and_perror): New function.
7947 (readchar, remote_serial_write): Use it.
7948
10782d74
MM
79492013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7950
7951 * NEWS: Mention new btrace RSP packets.
7952
4c8429ef
TT
79532013-04-08 Tom Tromey <tromey@redhat.com>
7954
7955 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7956 long.
7957
8625fc1b
TT
79582013-04-08 Tom Tromey <tromey@redhat.com>
7959
7960 * maint.c (print_bfd_section_info): Print the section index.
7961 * symmisc.c (dump_msymbols): Print the section index.
7962
e27d198c
TT
79632013-04-08 Tom Tromey <tromey@redhat.com>
7964
7965 PR symtab/8424:
7966 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7967 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7968 * breakpoint.c (resolve_sal_pc): Update.
7969 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7970 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7971 (minsym_lookup_iterator_cb): Use it.
7972 (default_read_var_value): Update.
7973 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7974 Update.
7975 * infcmd.c (jump_command): Update.
7976 * linespec.c (minsym_found): Update.
7977 * maint.c (maintenance_translate_address): Update.
7978 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7979 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7980 * parse.c (write_exp_msymbol): Update.
7981 * printcmd.c (address_info): Update.
7982 * psymtab.c (find_pc_sect_psymbol): Update.
7983 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7984 SYMBOL_OBJ_SECTION.
7985 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7986 Don't initialize SYMBOL_OBJ_SECTION.
7987 * spu-tdep.c (spu_catch_start): Update.
7988 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7989 * symmisc.c (dump_msymbols, print_symbol): Update.
7990 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7991 how fallback section is computed.
7992 (fixup_symbol_section): Update.
7993 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7994 Update.
7995 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7996 Initialize SYMBOL_SECTION.
7997 * symtab.h (struct general_symbol_info) <section>: Update comment.
7998 <obj_section>: Remove.
7999 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8000 (SYMBOL_OBJFILE): New macro.
8001
e6dc44a8
TT
80022013-04-08 Tom Tromey <tromey@redhat.com>
8003
8004 * coffread.c (record_minimal_symbol): Update.
8005 * dbxread.c (record_minimal_symbol): Update.
8006 * elfread.c (record_minimal_symbol): Update.
8007 * machoread.c (macho_symtab_add_minsym): Update.
8008 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8009 Update.
8010 * minsyms.c (prim_record_minimal_symbol): Update.
8011 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8012 argument.
8013 (prim_record_minimal_symbol_and_info): Likewise.
8014 * minsyms.h (prim_record_minimal_symbol_full)
8015 (prim_record_minimal_symbol_and_info): Update.
8016 * symtab.c (allocate_symbol, initialize_symbol)
8017 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8018 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8019 Update.
8020
36192a8d
TT
80212013-04-08 Tom Tromey <tromey@redhat.com>
8022
8023 PR symtab/8423:
8024 * solib-som.c (som_solib_section_offsets): Use BFD section
8025 indices. Set offsets for all sections.
8026 * somread.c (som_symtab_read): Compute BFD section for
8027 symbol. Use prim_record_minimal_symbol_and_info.
8028 (som_symfile_read): Fix comment.
8029 (struct find_section_offset_arg): New.
8030 (find_section_offset, set_section_index): New functions.
8031 (som_symfile_offsets): Use set_section_index to compute
8032 section indices.
8033
65cf3563
TT
80342013-04-08 Tom Tromey <tromey@redhat.com>
8035
8036 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8037 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8038 gdb_bfd_section_index.
8039 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8040 New functions.
8041 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8042 Declare.
8043 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8044 Update.
8045 * objfiles.c (add_to_objfile_sections_full): New function.
8046 (add_to_objfile_sections): Use it.
8047 (build_section_table): Rewrite.
8048 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8049 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8050 (struct objfile) <sections>: Update comment.
8051 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8052 is NULL.
8053 (ALL_OBJSECTIONS): Use it.
8054 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8055 * solib-frv.c (frv_relocate_main_executable): Update.
8056 * solib-target.c (solib_target_relocate_section_addresses):
8057 Use gdb_bfd_section_index.
8058 * symfile.c (build_section_addr_info_from_section_table):
8059 Use gdb_bfd_section_index.
8060 (build_section_addr_info_from_bfd, place_section): Likewise.
8061 * symtab.c (fixup_section): Update.
8062 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8063
7cbd4a93
TT
80642013-04-08 Tom Tromey <tromey@redhat.com>
8065
8066 * minsyms.h (struct bound_minimal_symbol): New.
8067 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8068 Remove objfile argument.
8069 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8070 Return bound_minimal_symbol.
8071 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8072 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8073 Return bound_minimal_symbol.
8074 (in_gnu_ifunc_stub): Update.
8075 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8076 Remove 'objfile_p' argument.
8077 (lookup_solib_trampoline_symbol_by_pc): Update.
8078 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8079 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8080 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8081 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8082 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8083 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8084 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8085 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8086 stack.c, symtab.c, tui/tui-disasm.c: Update.
8087
f85f34ed
TT
80882013-04-08 Tom Tromey <tromey@redhat.com>
8089
8090 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8091 Use symbol's obstack, not an objfile.
8092 * coffread.c (process_coff_symbol): Update.
8093 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8094 * jv-lang.c (add_class_symbol): Update.
8095 * mdebugread.c (new_symbol): Update.
8096 * minsyms.c (prim_record_minimal_symbol_full)
8097 (terminate_minimal_symbol_table): Update.
8098 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8099 * stabsread.c (define_symbol, read_enum_type): Update.
8100 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8101 Handle Ada specially.
8102 (symbol_set_language): Add 'obstack' argument.
8103 (symbol_set_names): Update.
8104 (symbol_natural_name, symbol_demangled_name): Always use
8105 ada_decode_symbol.
8106 * symtab.h (struct general_symbol_info)
8107 <language_specific::obstack>: New field.
8108 <ada_mangled>: New field.
8109 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8110 (symbol_set_language): Update.
8111
ccde22c0
TT
81122013-04-08 Tom Tromey <tromey@redhat.com>
8113
8114 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8115 Take an obstack, not an objfile.
8116 (symbol_set_names): Update.
8117 * symtab.h (symbol_set_demangled_name): Update.
8118
e623cf5d
TT
81192013-04-08 Tom Tromey <tromey@redhat.com>
8120
8121 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8122 allocate_symbol.
8123 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8124 (read_func_scope): Call allocate_template_symbol.
8125 (new_symbol_full): Call allocate_symbol.
8126 * jit.c (finalize_symtab): Call allocate_symbol.
8127 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8128 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8129 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8130 (common_block_end): Call allocate_symbol.
8131 * symtab.c (allocate_symbol, initialize_symbol)
8132 (allocate_template_symbol): New functions.
8133 * symtab.c (allocate_symbol, initialize_symbol)
8134 (allocate_template_symbol): Declare.
8135 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8136
f6de8ec2
PA
81372013-04-08 Pedro Alves <palves@redhat.com>
8138 Keith Seitz <keiths@redhat.com>
8139
8140 * breakpoint.c (create_breakpoint): Rename
8141 "parse_condition_and_thread" parameter to "parse_arg". Update
8142 describing comment. If !PARSE_ARG, then error out if ARG is not
8143 the empty string after extracting the location.
8144 * breakpoint.h (create_breakpoint): Rename
8145 "parse_condition_and_thread" parameter to "parse_arg".
8146
f65ce5fb
AR
81472013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8148
8149 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8150
cc5925ad
YQ
81512013-04-07 Yao Qi <yao@codesourcery.com>
8152
8153 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8154 and 'addr2' to CORE_ADDR.
8155 * target.c (update_current_target): Update.
8156 * target.h (struct target_ops) <to_trace_find>: Change parameter
8157 type to CORE_ADDR.
8158 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8159 'addr2' to CORE_ADDR.
8160 (tfile_trace_find): Likewise.
8161 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8162 Change local variable 'addr' to type CORE_ADDR.
8163 * tracepoint.h (tfind_1): Update declaration.
8164
d9ac0664
EZ
81652013-04-06 Eli Zaretskii <eliz@gnu.org>
8166
8167 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8168 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8169 Include main.h.
8170
8171 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8172 here...
8173 * main.h (windows_get_absolute_argv0): ...to here.
8174
02142a6c
DE
81752013-04-05 Doug Evans <dje@google.com>
8176
8177 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8178 (read_cutu_die_from_dwo): Add comments.
8179 (read_structure_type): Update comment.
8180 (read_enumeration_type, read_namespace_type): Update comment.
8181 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8182
43662968
JK
81832013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8184
8185 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8186 * Makefile.in (gdb.z): Remove.
8187 (install-only): Remove $(man1dir) and gdb.1 installation.
8188 * gdb.1: Remove.
8189
9ead1b84
JK
81902013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8191
8192 Fix compatibility with Linux kernel 3.8.3.
8193 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8194 to more inner block. Remove parsing of NUMBER from outer block.
8195 Parse NUMBER only if KEYWORD has been identified.
8196
d1794952
JK
81972013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8198
8199 Fix variable name shadowing.
8200 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8201 filename to mapsfilename and update its uses.
8202
9025569e
EZ
82032013-04-05 Eli Zaretskii <eliz@gnu.org>
8204
8205 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8206 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8207 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8208 details of the problem.
8209
c9a6ce02
PA
82102013-04-04 Pedro Alves <palves@redhat.com>
8211 Hui Zhu <hui@codesourcery.com>
8212
8213 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8214 tracepoint, reset its STEP_COUNT and call validate_actionline.
8215
5ff888ce
DE
82162013-04-03 Doug Evans <dje@google.com>
8217
bf6af496
DE
8218 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8219 read_die_and_siblings.
8220 (read_die_and_siblings): New function.
8221 (read_cutu_die_from_dwo): Dump die if requested.
8222 (read_die_and_children): Call read_full_die_1 and
8223 read_die_and_siblings_1.
8224 (read_full_die): Dump die if requested.
8225
8226 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8227
0ac5b59e
DE
8228 * dwarf2read.c (struct dwo_file): New member comp_dir.
8229 Rename member name to dwo_name. All uses updated.
8230 (hash_dwo_file): Include comp_dir in computation.
8231 (eq_dwo_file): Ditto.
8232 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8233 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8234
5ff888ce
DE
8235 * psymtab.c (read_psymtabs_with_fullname): Don't call
8236 psymtab_to_fullname if the basenames are different.
8237
ec83d211
JK
82382013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8239
8240 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8241 New entry about "fullname" presence.
8242
4f4352f7
PA
82432013-04-03 Pedro Alves <palves@redhat.com>
8244
8245 * NEWS: Mention x86_64/Cygwin as new native configuration.
8246
3d1d5ea3
DE
82472013-04-02 Doug Evans <dje@google.com>
8248
8249 * dwarf2read.c (read_structure_type): Fix typo in comment.
8250
be9a8770
PA
82512013-04-02 Pedro Alves <palves@redhat.com>
8252
8253 * NEWS: Mention "set/show debug aarch64", "set/show debug
8254 coff-pe-read" and "set/show debug mach-o".
8255
a46c1e42
PA
82562013-04-02 Pedro Alves <palves@redhat.com>
8257
8258 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8259
3ad18b19
EZ
82602013-04-02 Eli Zaretskii <eliz@gnu.org>
8261
8262 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8263 gdb_string.h is now in common/.
8264
e9f1758d
PA
82652013-04-02 Pedro Alves <palves@redhat.com>
8266
8267 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8268 under "New options".
8269
049dc89b
JK
82702013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8271
8272 Revert this patch:
8273 PR gdb/15275
8274 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8275
c33e31fd
PA
82762013-04-02 Pedro Alves <palves@redhat.com>
8277
8278 PR gdb/15275
8279
8280 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8281 (remote_serial_write): New function.
8282 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8283
ea5f3910
JW
82842013-04-01 Jiong Wang <jiwang@tilera.com>
8285
8286 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8287 "New targets" sections.
ea5f3910 8288
5c6fa7ab
DE
82892013-04-01 Doug Evans <dje@google.com>
8290
c0f78cd4
DE
8291 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8292 (process_enumeration_scope): Simplify.
8293
0186c6a7
DE
8294 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8295 type_unit_group ...
8296 (struct signatured_type): ... to here.
8297 (sig_type_ptr): New typedef.
8298 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8299 out of union 't'. All uses updated.
8300 (dw2_get_file_names_reader): Assert not called for a type unit.
8301 (dw2_get_file_names): Assert not called for a type unit or type
8302 unit group.
8303 (build_type_psymtabs_reader): Assert called for a type unit.
8304 (build_type_psymtab_dependencies): Assert called for a type unit group.
8305
5c6fa7ab
DE
8306 * dwarf2read.c (free_dwo_file): Add comment.
8307 (dwarf2_per_objfile_free): Unref dwp bfd.
8308
b3c0ad67 83092013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8310
8311 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8312 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8313 (read_pe_exported_syms): Remove unused 'exportix'.
8314 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8315 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8316 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8317
e2df1547
AR
83182013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8319
8320 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8321 (print_it_watchpoint): Remove unused 'bl'.
8322 (say_where): Remove unused 'uiout'.
8323 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8324 (bkpt_breakpoint_hit): Remove unused 'b'.
8325 (internal_bkpt_print_it): Remove unused 'uiout'.
8326 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8327
d81e75c0
TD
83282013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8329
8330 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8331 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8332
5a8b3f62
DE
83332013-03-29 Doug Evans <dje@google.com>
8334
ab5088bf
DE
8335 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8336 Delete arg is_dwp. All callers updated.
8337 (open_dwp_file): New function.
8338 (open_and_init_dwp_file): Call it.
8339 (get_dwp_file): New function.
8340 (lookup_dwo_cutu): Call it.
8341
a8ad1e57
DE
8342 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8343 unnecessary, cleanup.
8344
6296d8c1
DE
8345 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8346
b0c7bfa9
DE
8347 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8348 (lookup_dwo_unit): New function.
8349 (init_cutu_and_read_dies): Move DWO handling to new functions.
8350
c88ee1f0
DE
8351 * dwarf2read.c (struct signatured_type): Tweak comment.
8352 (struct dwo_unit): Tweak comment.
8353 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8354 (create_dwo_debug_info_hash_table): Tweak comment.
8355 (dwarf2_per_cu_offset_and_type): Tweak comment.
8356
5a8b3f62
DE
8357 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8358 missing .debug_types section.
8359
9852c492
YQ
83602013-03-29 Yao Qi <yao@codesourcery.com>
8361
8362 * corelow.c: Include "completer.h".
8363 (_initialize_corelow): Call add_target_with_completer with
8364 argument 'filename_completer'.
8365 * tracepoint.c: Likewise.
8366 * exec.c (_initialize_exec): Likewise.
8367 * target.c (add_target): Rename to ...
8368 (add_target_with_completer): ... this. Call set_cmd_completer
8369 if parameter completer is not NULL.
8370 (add_target): New.
8371 * target.h: Include "command.h".
8372 (add_target_with_completer): Declare it.
8373
af312be7
JB
83742013-03-28 Joel Brobecker <brobecker@adacore.com>
8375
8376 * coffread.c (is_import_fixup_symbol): New function.
8377 (record_minimal_symbol): Use is_import_fixup_symbol to
8378 detect import fixup symbols, and discard them.
8379
8a0459fd
DE
83802013-03-28 Doug Evans <dje@google.com>
8381
0349ea22
DE
8382 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8383 types hash table until we know we need it.
8384
f652bce2
DE
8385 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8386 index numbers.
8387
e4a48d9d
DE
8388 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8389 All callers updated.
8390 (dw2_print_stats): Print #read CUs too.
8391 (dump_die_shallow): Print signatured types better.
8392
8a0459fd
DE
8393 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8394 info_or_types_section to section. All uses updated.
8395 (struct dwo_unit): Ditto.
8396
bd3eecc3
PA
83972013-03-28 Pedro Alves <palves@redhat.com>
8398
8399 * NEWS (New options): New section.
8400 (New options): Mention set/show remote trace-status-packet.
8401 * remote.c (PACKET_qTStatus): New enumeration value.
8402 (remote_get_trace_status): Skip sending qTStatus if the packet is
8403 disabled. Use packet_ok.
8404 (_initialize_remote): Register a configuration command for
8405 qTStatus packet.
8406
41245087
DE
84072013-03-28 Doug Evans <dje@google.com>
8408
7edbb660
DE
8409 * symfile.c (find_separate_debug_file): Add comment.
8410 (terminate_after_last_dir_separator): Tweak comment.
8411
0018ea6f
DE
8412 * dwarf2read.c (create_partial_symtab): Add forward decl.
8413 (create_partial_symtab): Move to be closer to other psymtab functions.
8414 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8415
ca69b9e6
DE
8416 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8417 (compute_symtab_includes): Remove unnecessary forward declaration.
8418 (die_needs_namespace): Add comment marking group of functions for
8419 dwarf2 name computation.
8420
a9375afe
DE
8421 * typeprint.c (_initialize_typeprint): Improve type help text.
8422
41245087
DE
8423 * python/python.c (finish_python_initialization): Provide suggestion
8424 for how to tell gdb to find its python files.
8425
7f7cc265
PA
84262013-03-28 Pedro Alves <palves@redhat.com>
8427
8428 PR gdb/15294
8429
8430 * source.c (_initialize_source): Change back "set listsize" to an
8431 integer command.
8432
ec21308c
JK
84332013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8434
8435 PR gdb/15275
8436 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8437
840a9a1f
PA
84382013-03-27 Pedro Alves <palves@redhat.com>
8439
8440 * top.c (history_size): Rename to ...
8441 (history_size_setshow_var): ... this. Add comment.
8442 (show_commands): Use readline's 'history_length' instead of
8443 computing the history length by calling history_get in a loop.
8444 (set_history_size_command): Error out for sizes over INT_MAX.
8445 Restore previous history size on invalid size.
8446 (init_history): If HISTSIZE is negative, leave the history size as
8447 zero. Add comments.
8448 (init_main): Adjust.
8449
826ecc4d
PA
84502013-03-27 Pedro Alves <palves@redhat.com>
8451
8452 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8453 coff_pe_read" command to "set debug coff-pe-read".
8454
0ccfeeae
MM
84552013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8456
8457 * record.c (command_size_to_target_size): Fix size comparison.
8458 Change parameter type from pointer to integer to integer.
8459 Update all users.
8460
40653b35
PM
84612013-03-27 Pierre Muller <muller@sourceware.org>
8462
8463 * windows-nat.c (handle_output_debug_string): Avoid typecast
8464 from integer of different size warning.
8465
c62fa0e2
JB
84662013-03-26 Joel Brobecker <brobecker@adacore.com>
8467
8468 * windows-nat.c (handle_output_debug_string): Add empty line
8469 after local block variable definition.
8470
2c619be2
PA
84712013-03-26 Pedro Alves <palves@redhat.com>
8472
8473 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8474 (net_open): Make 'polls' local unsigned.
8475
1b493192
PA
84762013-03-26 Pedro Alves <palves@redhat.com>
8477
8478 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8479 a zuinteger command instead of uinteger.
8480
7ee70bf5
PA
84812013-03-26 Pedro Alves <palves@redhat.com>
8482
8483 * record-full.c (record_full_insn_num): Make it unsigned.
8484 (record_full_check_insn_num, record_full_message)
8485 (record_full_registers_change, record_full_xfer_partial): Remove
8486 record_full_insn_max_num check (it's always != 0).
8487 (record_full_info, record_full_restore): Use %u as format string.
8488 (): Use %u as format string.
8489 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8490 check (it's always != 0).
8491
dfd1f9bb
PA
84922013-03-26 Pedro Alves <palves@redhat.com>
8493
8494 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8495 and "set dcache size" commands zuinteger instead of uinteger.
8496
addb4faf
PA
84972013-03-26 Pedro Alves <palves@redhat.com>
8498
8499 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8500 command zuinteger instead of uinteger.
8501
b75bf488
PA
85022013-03-26 Pedro Alves <palves@redhat.com>
8503
8504 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8505 zuinteger instead of uinteger.
8506
42c634cb
PA
85072013-03-26 Pedro Alves <palves@redhat.com>
8508
8509 * record.c (record_insn_history_size_setshow_var)
8510 (record_call_history_size_setshow_var): New globals.
8511 (command_size_to_target_size): New function.
8512 (cmd_record_insn_history, cmd_record_call_history): Use
8513 command_size_to_target_size instead of cast.
8514 (validate_history_size, set_record_insn_history_size)
8515 (set_record_call_history_size): New functions.
8516 (_initialize_record): Install set_record_insn_history_size and
8517 set_record_call_history_size as "set" hooks of "set record
8518 instruction-history-size" and "set record
8519 function-call-history-size".
8520
1fb2e2b5
PA
85212013-03-26 Pedro Alves <palves@redhat.com>
8522
8523 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8524 use with history_max_entries use. Remove FIXME note.
8525
99c819ee
MM
85262013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8527
8528 * record-btrace.c (record_btrace_close): Call
8529 record_btrace_auto_disable.
8530
9f9e404c
JB
85312013-03-25 Joel Brobecker <brobecker@adacore.com>
8532
8533 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8534
ebcdfe33
DE
85352013-03-25 Doug Evans <dje@google.com>
8536
8537 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8538
24955f63
TT
85392013-03-25 Tom Tromey <tromey@redhat.com>
8540
8541 PR symtab/11462:
8542 * c-exp.y (exp): Add new productions for destructors after '.' and
8543 '->'.
8544 (write_destructor_name): New function.
8545
fce632b6
TT
85462013-03-25 Tom Tromey <tromey@redhat.com>
8547
8548 PR c++/9197:
8549 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8550 value_struct_elt, not lookup_struct_elt_type.
8551 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8552 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8553 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8554
a4341769
YQ
85552013-03-25 Yao Qi <yao@codesourcery.com>
8556
8557 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8558 instead of '_mkdir'.
8559
b5981e5a
EZ
85602013-03-23 Eli Zaretskii <eliz@gnu.org>
8561
8562 * windows-nat.c (windows_get_absolute_argv0): New function.
8563 * windows-nat.h: Add its prototype.
8564
8565 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8566 Use IS_DIR_SEPARATOR instead of looking for a character inside
8567 SLASH_STRING. Include filenames.h.
8568 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8569 relocate_gdb_directory works when passed gdb_program_name.
8570 Include windows-nat.h.
8571
598d3636
JK
85722013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8573
8574 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8575 * remote.c (trace_error): Remove the special handling of '2'.
8576 (readchar) <SERIAL_EOF>
8577 (readchar) <SERIAL_ERROR>
8578 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8579 (remote_get_trace_status): Call throw_exception if EX is
8580 TARGET_CLOSE_ERROR.
8581 * utils.c (perror_with_name): Rename to ...
8582 (throw_perror_with_name): ... here. New parameter errcode, describe it
8583 in the function comment.
8584 (perror_with_name): New function wrapper.
8585 * utils.h (enum errors): New stub declaration.
8586 (throw_perror_with_name): New declaration.
8587
82b821e9
PA
85882013-03-22 Pedro Alves <palves@redhat.com>
8589 Yao Qi <yao@codesourcery.com>
8590 Mark Kettenis <kettenis@gnu.org>
8591
8592 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8593 Don't let the user set the value to UINT_MAX directly.
8594 <var_integer>: Don't let the user set the value to INT_MAX
8595 directly.
8596
78a095c3
JK
85972013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8598
8599 * remote.c (remote_unpush_target): New function.
8600 (remote_open_1): Remove two pop_target calls, update one comment, add
8601 comment to target_preopen call. Replace pop_target call by
8602 remote_unpush_target call.
8603 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8604 pop_target calls by remote_unpush_target calls.
8605
3e74e146
PA
86062013-03-22 Pedro Alves <palves@redhat.com>
8607
8608 * linux-nat.c (linux_child_follow_fork): Don't call
8609 linux_enable_event_reporting.
8610 (linux_handle_extended_wait): Don't call
8611 linux_enable_event_reporting.
8612
a2213dca
PA
86132013-03-22 Pedro Alves <palves@redhat.com>
8614
8615 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8616 use it to rewrite the trampoline buffers with type gdb_byte[], and
8617 undefine the macro. Remove char* cast.
8618
bd712aed
DE
86192013-03-21 Doug Evans <dje@google.com>
8620
8621 New commands "mt set per-command {space,time,symtab} {on,off}".
8622 * NEWS: Add entry.
8623 * event-top.c: #include "maint.h".
8624 * main.c: #include "maint.h".
8625 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8626 timeval-utils.h, maint.h, cli/cli-setshow.h.
8627 (per_command_time, per_command_space): New static globals.
8628 (per_command_symtab): New static global.
8629 (per_command_setlist, per_command_showlist): New static globals.
8630 (struct cmd_stats): Move here from utils.c.
8631 (set_per_command_time): Renamed from set_display_time in utils.c
8632 and moved here. All callers updated.
8633 (set_per_command_space): Renamed from set_display_space in utils.c
8634 and moved here. All callers updated.
8635 (count_symtabs_and_blocks): New function.
8636 (report_command_stats): Moved here from utils.c. Add support for
8637 printing symtab stats. Only print data if enabled before command
8638 executed.
8639 (make_command_stats_cleanup): Ditto.
8640 (sert_per_command_cmd, show_per_command_cmd): New functions.
8641 (_initialize_maint_cmds): Add new commands
8642 mt set per-command {space,time,symtab} {on,off}.
8643 * maint.h: New file.
8644 * top.c: #include "maint.h".
8645 * utils.c (reset_prompt_for_continue_wait_time): New function.
8646 (get_prompt_for_continue_wait_time): New function.
8647 * utils.h (reset_prompt_for_continue_wait_time): Declare
8648 (get_prompt_for_continue_wait_time): Declare.
8649 (make_command_stats_cleanup): Moved to maint.h.
8650 (set_display_time, set_display_space): Moved to maint.h and renamed
8651 to set_per_command_time, set_per_command_space.
8652 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8653 parse_binary_operation and made non-static. Don't call error,
8654 just return an error marker. All callers updated.
8655 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8656
d76488d8
TT
86572013-03-21 Tom Tromey <tromey@redhat.com>
8658
8659 * symfile.c (alloc_section_addr_info): Update header. Don't set
8660 'num_sections' field.
8661 (build_section_addr_info_from_section_table): Set 'num_sections'.
8662 (build_section_addr_info_from_bfd): Likewise.
8663 (build_section_addr_info_from_objfile): Remove dead loop
8664 condition.
8665 (free_section_addr_info): Unconditionally call xfree.
8666 (relative_addr_info_to_section_offsets, addrs_section_sort)
8667 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8668 condition.
8669 (syms_from_objfile_1): Remove dead 'if' condition. Check
8670 'num_sections'.
8671 (add_symbol_file_command): Set 'num_sections'.
8672 * symfile-mem.c (symbol_file_add_from_memory): Set
8673 'num_sections'.
8674 * somread.c (som_symfile_offsets): Remove dead loop condition.
8675 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8676 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8677
a72e5169 86782013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8679
8680 * tracepoint.h (decode_agent_options): Add 'trace_string'
8681 argument.
8682 * tracepoint.c (decode_agent_options): Add 'trace_string'
8683 argument.
8684 (validate_actionline): Update.
8685 (collect_symbol): Add 'trace_string' argument.
8686 (struct add_local_symbols_data) <trace_string>: New field.
8687 (do_collect_symbol): Update.
8688 (add_local_symbols): Add 'trace_string' argument.
8689 (encode_actions_1): Update.
8690 (trace_dump_actions): Update.
8691 * dwarf2loc.c (access_memory): Update.
8692 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8693 * ax-general.c (new_agent_expr): Update.
8694 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8695 (gen_trace_for_return_address): Add argument.
8696 (trace_kludge, trace_string_kludge): Remove.
8697 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8698 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8699 (gen_trace_for_var): Add 'trace_string' argument.
8700 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8701 (gen_printf, agent_eval_command_one): Update.
8702
b2f83c08
TT
87032013-03-21 Tom Tromey <tromey@redhat.com>
8704
8705 PR exp/15109:
8706 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8707 Handle FILENAME token.
8708
9507860e
TT
87092013-03-21 Tom Tromey <tromey@redhat.com>
8710
8711 * c-exp.y (YYPRINT): Define.
8712 (c_print_token): New function.
8713
e403aa4b
TT
87142013-03-21 Tom Tromey <tromey@redhat.com>
8715
8716 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8717
af307d6a
YQ
87182013-03-21 Yao Qi <yao@codesourcery.com>
8719
8720 * ctf.c: Include "gdb_stat.h".
8721 [USE_WIN32API]: New macro 'mkdir'.
8722 (ctf_start): Use permission bits macros if they are defined.
8723
fb81d016
KS
87242013-03-20 Keith Seitz <keiths@redhat.com>
8725
8726 * breakpoint.h (struct breakpoint): Add comment to
8727 extra_string indicating that this member is mallod'd.
8728 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8729
ef0026f0
PA
87302013-03-20 Pedro Alves <palves@redhat.com>
8731
8732 PR gdb/15289
8733
8734 * cli/cli-setshow.c (do_set_command)
8735 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8736 the result of parsing the command argument. Throw error if the
8737 value is greater than UINT_MAX. Print the invalid value with
8738 plongest.
8739 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8740 result of parsing the command argument. Throw error if the value
8741 is greater than INT_MAX, not greater or equal. Also throw error
8742 if the value is less than INT_MIN. Print the invalid value with
8743 plongest.
8744 <var_zuinteger_unlimited>: Throw error if the value is greater
8745 than INT_MAX, not greater or equal.
8746 (do_show_command) <var_integer, var_zinteger,
8747 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8748
24d6c2a0
TT
87492013-03-20 Tom Tromey <tromey@redhat.com>
8750
8751 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8752 if possible.
8753 * dwarf2read.c (read_func_scope): Remove old FIXME.
8754 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8755 not LOC_COMPUTED.
8756 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8757 Unconditionally call via computed ops, if possible.
8758 * printcmd.c (address_info): Unconditionally call via computed ops,
8759 if possible.
8760 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8761 if possible.
8762 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8763 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8764 if possible.
8765
f1e6e072
TT
87662013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8767 Tom Tromey <tromey@redhat.com>
8768
8769 PR symtab/8421:
8770 * coffread.c (coff_register_index): New global.
8771 (process_coff_symbol, coff_read_enum_type): Set
8772 SYMBOL_ACLASS_INDEX.
8773 (_initialize_coffread): Initialize new global.
8774 * dwarf2loc.c (locexpr_find_frame_base_location)
8775 (dwarf2_block_frame_base_locexpr_funcs)
8776 (loclist_find_frame_base_location)
8777 (dwarf2_block_frame_base_loclist_funcs): New.
8778 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8779 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8780 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8781 (dwarf2_block_frame_base_loclist_funcs): New.
8782 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8783 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8784 globals.
8785 (read_func_scope): Update.
8786 (fixup_go_packaging, mark_common_block_symbol_computed)
8787 (var_decode_location, new_symbol_full, dwarf2_const_value):
8788 Set SYMBOL_ACLASS_INDEX.
8789 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8790 (_initialize_dwarf2_read): Initialize new globals.
8791 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8792 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8793 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8794 globals.
8795 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8796 (_initialize_mdebugread): Initialize new globals.
8797 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8798 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8799 (stab_register_index, stab_regparm_index): New globals.
8800 (define_symbol, read_enum_type, common_block_end): Set
8801 SYMBOL_ACLASS_INDEX.
8802 (_initialize_stabsread): Initialize new globals.
8803 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8804 globals.
8805 (MAX_SYMBOL_IMPLS): New define.
8806 (register_symbol_computed_impl, register_symbol_block_impl)
8807 (register_symbol_register_impl)
8808 (initialize_ordinary_address_classes): New functions.
8809 (_initialize_symtab): Call initialize_ordinary_address_classes.
8810 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8811 (struct symbol_impl): New.
8812 (SYMBOL_ACLASS_BITS): New define.
8813 (struct symbol) <aclass, ops>: Remove fields.
8814 <aclass_index>: New field.
8815 (symbol_impls): Declare.
8816 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8817 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8818 (register_symbol_computed_impl, register_symbol_block_impl)
8819 (register_symbol_register_impl): Declare.
8820 (struct symbol_computed_ops): Add location_has_loclist.
8821 (struct symbol_block_ops): New.
8822 (SYMBOL_BLOCK_OPS): New.
8823 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8824
dbccfd4c
TT
88252013-03-20 Tom Tromey <tromey@redhat.com>
8826
8827 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8828 (print_partial_symbols, recursively_search_psymtabs): Use
8829 PSYMBOL_CLASS.
8830
e3f1ad4f
PM
88312013-03-20 Pierre Muller <muller@sourceware.org>
8832
8833 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8834 addtion, subtraction, multiplication and division binary operator.
8835
460014f5
JK
88362013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8837
8838 Code cleanup.
8839 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8840 * bsd-kvm.c (bsd_kvm_close): Likewise.
8841 * bsd-uthread.c (bsd_uthread_close): Likewise.
8842 * corelow.c (core_close): Likewise.
8843 (core_close_cleanup): Remove parameter quitting from a caller.
8844 * event-top.c (async_disconnect): Likewise.
8845 * exec.c (exec_close_1): Remove parameter quitting.
8846 * go32-nat.c (go32_close): Likewise.
8847 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8848 parameter quitting from a caller.
8849 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8850 variable.
8851 (mips_linux_close): Remove parameter quitting. Remove parameter
8852 quitting from a caller.
8853 * monitor.c (monitor_close): Remove parameter quitting.
8854 * monitor.h (monitor_close): Likewise.
8855 * record-btrace.c (record_btrace_close): Likewise.
8856 * record-full.c (record_full_close): Likewise.
8857 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8858 it also from fprintf_unfiltered.
8859 * remote-mips.c (mips_close): Remove parameter quitting.
8860 (mips_detach): Remove parameter quitting from a caller.
8861 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8862 (gdbsim_close): Remove duplicate function comment. Remove parameter
8863 quitting and remove it also from printf_filtered.
8864 * remote.c (remote_close): Remove parameter quitting.
8865 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8866 * target.c (update_current_target): Remove parameter int from to_close
8867 de_fault.
8868 (push_target, unpush_target, pop_target): Remove parameter quitting from
8869 a caller.
8870 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8871 Remove parameter quitting from a caller.
8872 (target_preopen): Remove parameter quitting from a caller.
8873 (target_close): Remove parameter quitting. Remove parameter quitting
8874 from a caller two times. Remove parameter quitting also from
8875 fprintf_unfiltered.
8876 * target.h (struct target_ops): Remove parameter quitting and as int
8877 from fields to_xclose and to_close.
8878 (extern struct target_ops current_target):
8879 (target_close, pop_all_targets): Remove parameter quitting. Update the
8880 comment.
8881 (pop_all_targets_above): Remove parameter quitting.
8882 * top.c (quit_target): Remove parameter quitting from a caller.
8883 * tracepoint.c (tfile_close): Remove parameter quitting.
8884 * windows-nat.c (windows_close): Remove parameter quitting.
8885
35a7120b
CV
88862013-03-20 Corinna Vinschen <vinschen@redhat.com>
8887
8888 * windows-nat.c (handle_output_debug_string): Replace call
8889 to string_to_core_addr with call to strtoull.
8890
8249a5a9
YQ
88912013-03-20 Yao Qi <yao@codesourcery.com>
8892
8893 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8894 and write it to CTF metadata.
8895
2c15ef43
CV
88962013-03-19 Corinna Vinschen <vinschen@redhat.com>
8897
8898 * windows-nat.c (handle_output_debug_string): Change type of n to
8899 SIZE_T to avoid crash on 64 bit systems.
8900
1cdd3232
EZ
89012013-03-17 Eli Zaretskii <eliz@gnu.org>
8902
8903 * python/python-internal.h (HAVE_SNPRINTF)
8904 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8905 about redefinition of snprintf by pyerrors.h.
8906
3cb2ab1a
SE
89072013-03-15 Steve Ellcey <sellcey@mips.com>
8908
8909 * remote-sim.c (sim_command_completer): Make char arguments const.
8910
9ce98649
TT
89112013-03-15 Tom Tromey <tromey@redhat.com>
8912
8913 PR c++/15116:
8914 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8915
dccee2de
TT
89162013-03-14 Tom Tromey <tromey@redhat.com>
8917
8918 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8919 New fields.
8920 (get_file_crc): Move from symfile.c.
8921 (gdb_bfd_crc): New function.
8922 * gdb_bfd.h (gdb_bfd_crc): Declare.
8923 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8924 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8925 (separate_debug_file_exists): Use gdb_bfd_crc.
8926
cc0ea93c
TT
89272013-03-14 Tom Tromey <tromey@redhat.com>
8928
8929 * symfile.c (get_debug_link_info): Remove.
8930 (find_separate_debug_file_by_debuglink): Use
8931 bfd_get_debug_link_info.
8932
08c23b0d
TT
89332013-03-14 Tom Tromey <tromey@redhat.com>
8934
8935 * symtab.c (error_in_psymtab_expansion): New function.
8936 (lookup_symbol_aux_quick)
8937 (basic_lookup_transparent_type_quick): Remove "last resort"
8938 code. Use error_in_psymtab_expansion.
8939
288e77a7
JK
89402013-03-14 Doug Evans <dje@google.com>
8941 Jan Kratochvil <jan.kratochvil@redhat.com>
8942
8943 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8944 any successful compare_filenames_for_search or FILENAME_CMP.
8945 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8946 * symtab.c (iterate_over_some_symtabs): Likewise.
8947
8f1b8b82
JK
89482013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8949
8950 * source.c (print_source_lines_base): Make a local copy of
8951 symtab_to_fullname.
8952
23eb71e4
JK
89532013-03-14 Hui Zhu <hui_zhu@mentor.com>
8954 Jan Kratochvil <jan.kratochvil@redhat.com>
8955
8956 * source.c (print_source_lines_base): Suppress "file" for TUI.
8957
bb869963
SDJ
89582013-03-14 Keith Seitz <keiths@redhat.com>
8959 Alan Matsuoka <alanm@redhat.com>
8960
8961 PR c++/15203
8962 PR c++/15210
8963 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8964 TYPE_CODE_METHOD.
8965 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8966 symbols.
8967
d6682f9e
YQ
89682013-03-14 Yao Qi <yao@codesourcery.com>
8969
8970 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8971 status to tfile if trace is stopped by command 'tstop'.
8972
a22fa6e4
YQ
89732013-03-14 Yao Qi <yao@codesourcery.com>
8974
8975 * tracepoint.c (tfile_write_status): Write trace notes and user
8976 name into tfile if they are not NULL.
8977
d0353e76
YQ
89782013-03-14 Hui Zhu <hui@codesourcery.com>
8979 Yao Qi <yao@codesourcery.com>
8980
8981 * Makefile.in (REMOTE_OBS): Add ctf.o.
8982 (SFILES): Add ctf.c.
8983 (HFILES_NO_SRCDIR): Add ctf.h.
8984 * ctf.c, ctf.h: New files.
8985 * tracepoint.c: Include 'ctf.h'.
8986 (collect_pseudocommand): Remove static.
8987 (trace_save_command): Parse option "-ctf".
8988 Produce different trace file writers per option.
8989 Adjust output message.
8990 (trace_save_tfile, trace_save_ctf): New.
8991 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8992 * mi/mi-main.c: Include 'ctf.h'.
8993 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8994 trace_save_tfile or trace_save_ctf.
8995 * NEWS: Mention these changes.
8996
3f43bc09
YQ
89972013-03-14 Yao Qi <yao@codesourcery.com>
8998
8999 * tracepoint.c (trace_file_writer_xfree): New.
9000 (struct tfile_writer_data): New.
9001 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9002 (tfile_write_header, tfile_write_regblock_type): New.
9003 (tfile_write_status, tfile_write_uploaded_tsv): New.
9004 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9005 (tfile_write_raw_data, (tfile_end): New.
9006 (tfile_write_ops): New global variable.
9007 (TRACE_WRITE_R_BLOCK): New macro.
9008 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9009 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9010 (TRACE_WRITE_V_BLOCK): New macro.
9011 (trace_save): Add extra one parameter WRITER. Make it static.
9012 Use WRITER to writer trace.
9013 (tfile_trace_file_writer_new): New.
9014 (trace_save_command): Caller update.
9015 (trace_save_tfile): Write trace data in TFILE format.
9016 * tracepoint.h (struct trace_frame_write_ops): New.
9017 (struct trace_file_write_ops): New.
9018 (struct trace_file_writer): New.
9019 (trace_save): Remove its declaration.
9020 (trace_save_tfile): Declare it.
9021 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9022 instead of trace_save.
9023
58665b40
PA
90242013-03-13 Pedro Alves <palves@redhat.com>
9025
9026 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9027
10217050
PA
90282013-03-13 Pedro Alves <palves@redhat.com>
9029
9030 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9031 commented out code.
9032 * demangle.c (current_demangling_style_string): Make it const.
9033 (set_demangling_command): Assert the demangling style is known.
9034 Remove all handling of unknown styles. Set
9035 'current_demangling_style_string' to an element of the
9036 demangling_style_names array.
9037 (set_demangling_style): Delete.
9038 (_initialize_demangler): Set current_demangling_style_string to the
9039 element of the demangling_style_names array that corresponds to
9040 the default demangling style. Remove FIXME note. Don't call
9041 set_demangling_style.
9042 * gdb-demangle.h (set_demangling_style): Remove declaration.
9043
6f937416
PA
90442013-03-13 Pedro Alves <palves@redhat.com>
9045
9046 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9047 fields const.
9048 (ada_make_symbol_completion_list): Make "text0" parameter const.
9049 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9050 * breakpoint.c (condition_completer): Make "text" and "word"
9051 parameters const. Adjust.
9052 (check_tracepoint_command): Adjust to validate_actionline
9053 prototype change.
9054 (catch_syscall_completer): Make "text" and "word" parameters
9055 const.
9056 * cli/cli-cmds.c (show_user): Make "comname" local const.
9057 (valid_command_p): Make "command" parameter const.
9058 (alias_command): Make "alias_prefix" and "command_prefix" locals
9059 const.
9060 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9061 (add_alias_cmd): Make "name" and "oldname" parameters const.
9062 Adjust. No longer make copy of OLDNAME.
9063 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9064 (add_setshow_cmd_full, add_setshow_enum_cmd)
9065 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9066 (add_setshow_filename_cmd, add_setshow_string_cmd)
9067 (add_setshow_string_noescape_cmd)
9068 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9069 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9070 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9071 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9072 Make "name" parameter const.
9073 (help_cmd): Rename "command" parameter to "arg". New const local
9074 "command".
9075 (find_cmd): Make "command" parameter const.
9076 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9077 deprecated_cmd_warning prototype change.
9078 (undef_cmd_error): Make "cmdtype" parameter const.
9079 (lookup_cmd): Make "line" parameter const.
9080 (deprecated_cmd_warning): Change type of "text" parameter to
9081 pointer to const char, from pointer to pointer to char. Adjust.
9082 (lookup_cmd_composition): Make "text" parameter const.
9083 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9084 parameters const.
9085 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9086 const.
9087 * cli/cli-script.c (validate_comname): Make "tem" local const.
9088 (define_command): New const local "tem_c". Use it in calls to
9089 lookup_cmd.
9090 (document_command): Make "tem" and "comfull" locals const.
9091 (show_user_1): Make "prefix" and "name" parameters const.
9092 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9093 const.
9094 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9095 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9096 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9097 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9098 (complete_on_enum, add_setshow_enum_cmd)
9099 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9100 (add_setshow_filename_cmd, add_setshow_string_cmd)
9101 (add_setshow_string_noescape_cmd)
9102 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9103 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9104 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9105 Change prototypes, constifying strings.
9106 * completer.c (noop_completer, filename_completer): Make "text"
9107 and "prefix" parameters const.
9108 (location_completer, expression_completer)
9109 (complete_line_internal): Make "text" and "prefix" parameters
9110 const and adjust.
9111 (command_completer, signal_completer): Make "text" and "prefix"
9112 parameters const.
9113 * completer.h (noop_completer, filename_completer)
9114 (expression_completer, location_completer, command_completer)
9115 (signal_completer): Change prototypes.
9116 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9117 parameters const.
9118 * cp-abi.c (cp_abi_completer): Likewise.
9119 * expression.h (parse_expression_for_completion): Change
9120 prototype.
9121 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9122 parameters const.
9123 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9124 * infrun.c (handle_completer): Make "text" and "word" parameters
9125 const.
9126 * interps.c (interpreter_completer): Make "text" and "word"
9127 parameters const.
9128 * language.h (struct language_defn)
9129 <la_make_symbol_completion_list>: Make "text" and "word"
9130 parameters const.
9131 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9132 (parse_exp_in_context): Rename to ...
9133 (parse_exp_in_context_1): ... this.
9134 (parse_exp_in_context): Reimplement, with const hack from
9135 parse_exp_1.
9136 (parse_expression_for_completion): Make "string" parameter const.
9137 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9138 to pointer to const char. Adjust.
9139 (print_command_1): Make "exp" parameter const.
9140 (output_command): Rename to ...
9141 (output_command_const): ... this. Make "exp" parameter const.
9142 (output_command): Reimplement.
9143 (x_command): Adjust.
9144 (display_command): Rename "exp" parameter to "arg". New "exp"
9145 local, const version of "arg".
9146 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9147 "cmd_name" local const.
9148 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9149 call.
9150 (cmdpy_completer): Make "text" and "word" parameters const.
9151 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9152 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9153 const.
9154 * remote.c (_initialize_remote): Make "cmd_name" local const.
9155 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9156 parameters const. Adjust.
9157 (completion_list_add_fields): Make "sym_text", "text" and "word"
9158 parameters const.
9159 (struct add_name_data) <sym_text, text, word>: Make fields const.
9160 (default_make_symbol_completion_list_break_on): Make "text" and
9161 "word" parameters const. Adjust locals.
9162 (default_make_symbol_completion_list)
9163 (make_symbol_completion_list, make_symbol_completion_type)
9164 (make_symbol_completion_list_fn): Make "text" and "word"
9165 parameters const.
9166 (make_file_symbol_completion_list): Make "text", "word" and
9167 "srcfile" parameters const. Adjust locals.
9168 (add_filename_to_list): Make "text" and "word" parameters const.
9169 (struct add_partial_filename_data) <text, word>: Make fields
9170 const.
9171 (make_source_files_completion_list): Make "text" and "word"
9172 parameters const.
9173 * symtab.h (default_make_symbol_completion_list_break_on)
9174 (default_make_symbol_completion_list, make_symbol_completion_list)
9175 (make_symbol_completion_type enum type_code)
9176 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9177 (make_source_files_completion_list): Change prototype.
9178 * top.c (execute_command): Adjust to pass pointer to pointer to
9179 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9180 change.
9181 (set_verbose): Make "cmdname" local const.
9182 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9183 and adjust.
9184 (validate_actionline): Make "line" parameter a pointer to const
9185 char, and adjust.
9186 (encode_actions_1): Make "action_exp" local const, and adjust.
9187 (encode_actions): Adjust.
9188 (replace_comma): Delete.
9189 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9190 const, and adjust. Don't frob the action string while splitting
9191 it at commas. Instead, make a copy of each split substring in
9192 turn.
9193 (trace_dump_command): Adjust to validate_actionline prototype
9194 change.
9195 * tracepoint.h (decode_agent_options, decode_agent_options)
9196 (encode_actions, validate_actionline): Change prototypes.
9197 * valprint.h (output_command): Delete declaration.
9198 (output_command_const): Declare.
9199 * value.c (function_destroyer): Cast const away in xfree call.
9200
a0bcdaa7
PA
92012013-03-13 Pedro Alves <palves@redhat.com>
9202
9203 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9204 rather than casting 'const char * const *' to 'const char **'.
9205 * ada-lex.l (processInt): Make "trailer" local const. Remove
9206 'const char **' cast.
9207 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9208 locals, and use those as strtol output pointer, instead than doing
9209 invalid casts to from 'const char **' to 'char **'.
9210 (_initialize_demangle): Remove cast.
9211 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9212 locals, and use those as strtol output pointer, instead than doing
9213 invalid casts to from 'const char **' to 'char **'.
9214 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9215 casts.
9216 * stap-probe.c (stap_parse_register_operand)
9217 (stap_parse_single_operand): Likewise.
9218
8ddb1965
YQ
92192013-03-13 Yao Qi <yao@codesourcery.com>
9220
9221 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9222 the last matched 'V' blcok in trace frame.
9223
2d450646
JB
92242013-03-12 Joel Brobecker <brobecker@adacore.com>
9225
9226 * NEWS: Create a new section for the next release branch.
9227 Rename the section of the current branch, now that it has
9228 been cut.
9229
b4b79973 92302013-03-12 Joel Brobecker <brobecker@adacore.com>
9231
9232 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9233 * version.in: Bump version to 7.6.50.20130312-cvs.
9234
ee047554
KS
92352013-03-12 Keith Seitz <keiths@redhat.com>
9236
9237 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9238 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9239 Remove temporary copy of input string.
9240 (mi_execute_command_wrapper): Make "cmd" const.
9241 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9242 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9243 Use const strings.
9244 (mi_parse): Make "cmd" const.
9245 Use const strings.
9246 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9247
bbc13ae3
KS
92482013-03-12 Keith Seitz <keiths@redhat.com>
9249
9250 * ada-lang.c (ada_read_renaming_var_value): Pass const
9251 pointer to expression string to parse_exp_1.
9252 (create_excep_cond_exprs): Likewise.
9253 * ax-gdb.c (agent_eval_command_one): Likewise.
9254 (maint_agent_printf_command): Likewise.
9255 Constify much of the string handling/parsing.
9256 * breakpoint.c (set_breakpoint_condition): Pass const
9257 pointer to expression string to parse_exp_1.
9258 (update_watchpoint): Likewise.
9259 (parse_cmd_to_aexpr): Constify string handling.
9260 Pass const pointer to parse_exp_1.
9261 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9262 (find_condition_and_thread): Likewise.
9263 Make TOK const.
9264 (watch_command_1): Make "arg" const.
9265 Constify string handling.
9266 Copy the expression string instead of changing the input
9267 string.
9268 (update_breakpoint_location): Pass const pointer to
9269 parse_exp_1.
9270 * eval.c (parse_and_eval_address): Make "exp" const.
9271 (parse_to_comma_and_eval): Make "expp" const.
9272 (parse_and_eval): Make "exp" const.
9273 * expression.h (parse_expression): Make argument const.
9274 (parse_exp_1): Make first argument const.
9275 * findcmd.c (parse_find_args): Treat "args" as const.
9276 * linespec.c (parse_linespec): Pass const pointer to
9277 linespec_expression_to_pc.
9278 (linespec_expression_to_pc): Make "exp_ptr" const.
9279 * parse.c (parse_exp_1): Make "stringptr" const.
9280 Make a copy of the expression to pass to parse_exp_in_context until
9281 this whole interface can be constified.
9282 (parse_expression): Make "string" const.
9283 * printcmd.c (ui_printf): Treat "arg" as const.
9284 Handle const strings.
9285 * tracepoint.c (validate_actionline): Pass const pointer to
9286 all calls to parse_exp_1.
9287 (encode_actions_1): Likewise.
9288 * value.h (parse_to_comma_and_eval): Make argument const.
9289 (parse_and_eval_address): Likewise.
9290 (parse_and_eval): Likewise.
9291 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9292 (varobj_set_value): Likewise.
9293 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9294 constify string handling.
9295 Pass const pointers to parse_and_eval_address and
9296 parse_to_comman_and_eval.
9297 * cli/cli-utils.c (skip_to_space): Rename to ...
9298 (skip_to_space_const): ... this. Handle const strings.
9299 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9300 skip_to_space_const.
9301 (skip_to_space_const): Declare.
9302 * common/format.c (parse_format_string): Make "arg" const.
9303 Handle const strings.
9304 * common/format.h (parse_format_string): Make "arg" const.
9305 * gdbserver/ax.c (ax_printf): Make "format" const.
9306 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9307 of the expression string.
9308
f3cec7e6
HZ
93092013-03-12 Hui Zhu <hui@codesourcery.com>
9310
9311 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9312
9df7235c
HZ
93132013-03-12 Yao Qi <yao@codesourcery.com>
9314 Hui Zhu <hui@codesourcery.com>
9315
9316 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9317 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9318 DW_OP_deref_size.
9319
82d049ab
PH
93202013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9321
5f8e0b8f
MF
9322 * ada-lex.l (rules): Only recognize 'thread' as a
9323 delimiter when followed by numerals, as for c-exp.y.
9324 Use new rewind_to_char function to rewind the input for
9325 expression-delimiting tokens.
9326 (rewind_to_char): New function.
82d049ab 9327
8c1fb155
JK
93282013-03-11 Pedro Alves <palves@redhat.com>
9329 Jan Kratochvil <jan.kratochvil@redhat.com>
9330
9331 * configure: Regenerate.
9332 * configure.ac (check dynamic export flag): Link python test with
9333 $PYTHON_LIBS.
9334
cc81e1c6
DE
93352013-03-11 Doug Evans <dje@google.com>
9336 Keith Seitz <keiths@redhat.com>
9337
9338 * linespec.c (find_linespec_symbols): Call find_function_symbols
9339 first, and then call lookup_prefix_sym/find_method.
9340
39086a0e
PA
93412013-03-11 Pedro Alves <palves@redhat.com>
9342
9343 * charset.c (convert_between_encodings): Don't cast between
9344 different pointer to pointer types. Instead, make the 'inp' local
9345 be of the type iconv expects.
9346 (wchar_iterate): Don't cast between different pointer to pointer
9347 types. Instead, use new pointer local of the type iconv expects.
9348 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9349 Add new local of type char pointer, and use it to get a
9350 char/string view of the byte buffer, instead of casting between
9351 pointer to pointer types.
9352
90585175
HAQ
93532013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9354
9355 * remote.c (remote_set_trace_buffer_size): Move != operator
9356 to the start of next line to fix an ARI warning.
9357
59ea5688
MM
93582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9359
9360 * NEWS: Add record changes.
9361
946287b7
MM
93622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9363
9364 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9365 the instruction history disassembly.
9366 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9367 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9368
afedecd3
MM
93692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9370
9371 * Makefile.in (SFILES): Add record-btrace.c
9372 (COMMON_OBS): Add record-btrace.o
9373 * record-btrace.c: New.
9374 * objfiles.c: Include btrace.h.
9375 (free_objfile): call btrace_free_objfile.
9376
15984c13
MM
93772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9378
9379 * target.c (target_call_history, target_call_history_from,
9380 target_call_history_range): New.
9381 * target.h (target_ops) <to_call_history, to_call_history_from,
9382 to_call_history_range>: New fields.
9383 (target_call_history, target_call_history_from,
9384 target_call_history_range): New declaration.
9385 * record.c (get_call_history_modifiers, cmd_record_call_history,
9386 record_call_history_size): New.
9387 (_initialize_record): Add the "record function-call-history" command.
9388 Add "set/show record function-call-history-size" commands.
9389 * record.h (record_print_flag): New.
9390
67c86d06
MM
93912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9392
9393 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9394 to_insn_history_range>: New fields.
9395 (target_insn_history): New.
9396 (target_insn_history_from): New.
9397 (target_insn_history_range): New.
9398 * target.c (target_insn_history): New.
9399 (target_insn_history_from): New.
9400 (target_insn_history_range): New.
9401 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9402 (record_insn_history_size): New.
9403 (get_insn_number): New.
9404 (get_context_size): New.
9405 (no_chunk): New.
9406 (get_insn_history_modifiers): New.
9407 (cmd_record_insn_history): New.
9408 (_initialize_record): Add "set/show record instruction-history-size"
9409 command. Add "record instruction-history" command.
9410
7c1687a9
MM
94112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9412
9413 * record.h (record_disconnect): New.
9414 (record_detach): New.
9415 (record_mourn_inferior): New.
9416 (record_kill): New.
9417 * record-full.c (record_disconnect, record_detach,
9418 record_mourn_inferior, record_kill): Move to...
9419 * record.c: ...here.
9420 (DEBUG): New.
9421 (record_stop): New.
9422 (record_unpush): New.
9423 (cmd_record_stop): Call record_stop. Replace unpush_target
9424 call with record_unpush call.
9425 (record_disconnect, record_detach): Assert that the target
9426 is of record stratum. Call record_unpush, record_stop, and
9427 DEBUG.
9428 (record_mourn_inferior, record_kill): Assert that the target
9429 is of record stratum. Call record_unpush and DEBUG.
9430
25ea693b
MM
94312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9432
9433 * record-full.h, record-full.c (record_memory_query): Rename
9434 to ...
9435 (record_full_memory_query): ...this. Update all users.
9436 (record_arch_list_add_reg): Rename to ...
9437 (record_full_arch_list_add_reg): ...this. Update all users.
9438 (record_arch_list_add_mem): Rename to ...
9439 (record_full_arch_list_add_mem): ...this. Update all users.
9440 (record_arch_list_add_end): Rename to ...
9441 (record_full_arch_list_add_end): ...this. Update all users.
9442 (record_gdb_operation_disable_set): Rename to ...
9443 (record_full_gdb_operation_disable_set): ...this.
9444 Update all users.
9445
88d1aa9d
MM
94462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9447
9448 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9449 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9450 (RECORD_IS_REPLAY): Renamed to ...
9451 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9452 (RECORD_FILE_MAGIC): Renamed to ...
9453 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9454 (record_mem_entry): Renamed to ...
9455 (record_full_mem_entry): ... this. Updated all users.
9456 (record_reg_entry): Renamed to ...
9457 (record_full_reg_entry): ... this. Updated all users.
9458 (record_end_entry): Renamed to ...
9459 (record_full_end_entry): ... this. Updated all users.
9460 (record_type) <record_end, record_reg, record_mem>: Renamed
9461 to ...
9462 (record_full_type) <record_full_end, record_full_reg,
9463 record_full_mem>: ... this. Updated all users.
9464 (record_entry): Renamed to ...
9465 (record_full_entry): ... this. Updated all users.
9466 (record_core_buf_entry): Renamed to ...
9467 (record_full_core_buf_entry): ... this. Updated all users.
9468 (record_core_regbuf): Renamed to ...
9469 (record_full_core_regbuf): ... this. Updated all users.
9470 (record_core_start): Renamed to ...
9471 (record_full_core_start): ... this. Updated all users.
9472 (record_core_end): Renamed to ...
9473 (record_full_core_end): ... this. Updated all users.
9474 (record_core_buf_list): Renamed to ...
9475 (record_full_core_buf_list): ... this. Updated all users.
9476 (record_first): Renamed to ...
9477 (record_full_first): ... this. Updated all users.
9478 (record_list): Renamed to ...
9479 (record_full_list): ... this. Updated all users.
9480 (record_arch_list_head): Renamed to ...
9481 (record_full_arch_list_head): ... this. Updated all users.
9482 (record_arch_list_tail): Renamed to ...
9483 (record_full_arch_list_tail): ... this. Updated all users.
9484 (record_stop_at_limit): Renamed to ...
9485 (record_full_stop_at_limit): ... this. Updated all users.
9486 (record_insn_max_num): Renamed to ...
9487 (record_full_insn_max_num): ... this. Updated all users.
9488 (record_insn_num): Renamed to ...
9489 (record_full_insn_num): ... this. Updated all users.
9490 (record_insn_count): Renamed to ...
9491 (record_full_insn_count): ... this. Updated all users.
9492 (record_ops): Renamed to ...
9493 (record_full_ops): ... this. Updated all users.
9494 (record_core_ops): Renamed to ...
9495 (record_full_core_ops): ... this. Updated all users.
9496 (set_record_cmdlist): Renamed to ...
9497 (set_record_full_cmdlist): ... this. Updated all users.
9498 (show_record_cmdlist): Renamed to ...
9499 (show_record_full_cmdlist): ... this. Updated all users.
9500 (record_cmdlist): Renamed to ...
9501 (record_full_cmdlist): ... this. Updated all users.
9502 (record_beneath_to_resume_ops): Renamed to ...
9503 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9504 (record_beneath_to_resume): Renamed to ...
9505 (record_full_beneath_to_resume): ... this. Updated all users.
9506 (record_beneath_to_wait_ops): Renamed to ...
9507 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9508 (record_beneath_to_wait): Renamed to ...
9509 (record_full_beneath_to_wait): ... this. Updated all users.
9510 (record_beneath_to_store_registers_ops): Renamed to ...
9511 (record_full_beneath_to_store_registers_ops): ... this.
9512 Updated all users.
9513 (record_beneath_to_store_registers): Renamed to ...
9514 (record_full_beneath_to_store_registers): ... this.
9515 Updated all users.
9516 (record_beneath_to_xfer_partial_ops): Renamed to ...
9517 (record_full_beneath_to_xfer_partial_ops): ... this.
9518 Updated all users.
9519 (record_beneath_to_xfer_partial): Renamed to ...
9520 (record_full_beneath_to_xfer_partial): ... this.
9521 Updated all users.
9522 (record_beneath_to_insert_breakpoint): Renamed to ...
9523 (record_full_beneath_to_insert_breakpoint): ... this.
9524 Updated all users.
9525 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9526 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9527 Updated all users.
9528 (record_beneath_to_stopped_data_address): Renamed to ...
9529 (record_full_beneath_to_stopped_data_address): ... this.
9530 Updated all users.
9531 (record_beneath_to_async): Renamed to ...
9532 (record_full_beneath_to_async): ... this. Updated all users.
9533 (record_goto_insn): Renamed to ...
9534 (record_full_goto_insn): ... this. Updated all users.
9535 (record_save): Renamed to ...
9536 (record_full_save): ... this. Updated all users.
9537 (record_reg_alloc): Renamed to ...
9538 (record_full_reg_alloc): ... this. Updated all users.
9539 (record_reg_release): Renamed to ...
9540 (record_full_reg_release): ... this. Updated all users.
9541 (record_mem_alloc): Renamed to ...
9542 (record_full_mem_alloc): ... this. Updated all users.
9543 (record_mem_release): Renamed to ...
9544 (record_full_mem_release): ... this. Updated all users.
9545 (record_end_alloc): Renamed to ...
9546 (record_full_end_alloc): ... this. Updated all users.
9547 (record_end_release): Renamed to ...
9548 (record_full_end_release): ... this. Updated all users.
9549 (record_entry_release): Renamed to ...
9550 (record_full_entry_release): ... this. Updated all users.
9551 (record_list_release): Renamed to ...
9552 (record_full_list_release): ... this. Updated all users.
9553 (record_list_release_following): Renamed to ...
9554 (record_full_list_release_following): ... this.
9555 Updated all users.
9556 (record_list_release_first): Renamed to ...
9557 (record_full_list_release_first): ... this. Updated all users.
9558 (record_arch_list_add): Renamed to ...
9559 (record_full_arch_list_add): ... this. Updated all users.
9560 (record_get_loc): Renamed to ...
9561 (record_full_get_loc): ... this. Updated all users.
9562 (record_check_insn_num): Renamed to ...
9563 (record_full_check_insn_num): ... this. Updated all users.
9564 (record_arch_list_cleanups): Renamed to ...
9565 (record_full_arch_list_cleanups): ... this. Updated all users.
9566 (record_message): Renamed to ...
9567 (record_full_message): ... this. Updated all users.
9568 (record_message_wrapper): Renamed to ...
9569 (record_full_message_wrapper): ... this. Updated all users.
9570 (record_message_wrapper_safe): Renamed to ...
9571 (record_full_message_wrapper_safe): ... this. Updated all users.
9572 (record_gdb_operation_disable): Renamed to ...
9573 (record_full_gdb_operation_disable): ... this. Updated all users.
9574 (record_hw_watchpoint): Renamed to ...
9575 (record_full_hw_watchpoint): ... this. Updated all users.
9576 (record_exec_insn): Renamed to ...
9577 (record_full_exec_insn): ... this. Updated all users.
9578 (record_restore): Renamed to ...
9579 (record_full_restore): ... this. Updated all users.
9580 (record_async_inferior_event_token): Renamed to ...
9581 (record_full_async_inferior_event_token): ... this.
9582 Updated all users.
9583 (record_async_inferior_event_handler): Renamed to ...
9584 (record_full_async_inferior_event_handler): ... this.
9585 Updated all users.
9586 (record_core_open_1): Renamed to ...
9587 (record_full_core_open_1): ... this. Updated all users.
9588 (record_open_1): Renamed to ...
9589 (record_full_open_1): ... this. Updated all users.
9590 (record_open): Renamed to ...
9591 (record_full_open): ... this. Updated all users.
9592 (record_close): Renamed to ...
9593 (record_full_close): ... this. Updated all users.
9594 (record_resume_step): Renamed to ...
9595 (record_full_resume_step): ... this. Updated all users.
9596 (record_resumed): Renamed to ...
9597 (record_full_resumed): ... this. Updated all users.
9598 (record_execution_dir): Renamed to ...
9599 (record_full_execution_dir): ... this. Updated all users.
9600 (record_resume): Renamed to ...
9601 (record_full_resume): ... this. Updated all users.
9602 (record_get_sig): Renamed to ...
9603 (record_full_get_sig): ... this. Updated all users.
9604 (record_sig_handler): Renamed to ...
9605 (record_full_sig_handler): ... this. Updated all users.
9606 (record_wait_cleanups): Renamed to ...
9607 (record_full_wait_cleanups): ... this. Updated all users.
9608 (record_wait_1): Renamed to ...
9609 (record_full_wait_1): ... this. Updated all users.
9610 (record_wait): Renamed to ...
9611 (record_full_wait): ... this. Updated all users.
9612 (record_stopped_by_watchpoint): Renamed to ...
9613 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9614 (record_disconnect): Renamed to ...
9615 (record_full_disconnect): ... this. Updated all users.
9616 (record_detach): Renamed to ...
9617 (record_full_detach): ... this. Updated all users.
9618 (record_mourn_inferior): Renamed to ...
9619 (record_full_mourn_inferior): ... this. Updated all users.
9620 (record_kill): Renamed to ...
9621 (record_full_kill): ... this. Updated all users.
9622 (record_stopped_data_address): Renamed to ...
9623 (record_full_stopped_data_address): ... this. Updated all users.
9624 (record_registers_change): Renamed to ...
9625 (record_full_registers_change): ... this. Updated all users.
9626 (record_store_registers): Renamed to ...
9627 (record_full_store_registers): ... this. Updated all users.
9628 (record_xfer_partial): Renamed to ...
9629 (record_full_xfer_partial): ... this. Updated all users.
9630 (record_breakpoint): Renamed to ...
9631 (record_full_breakpoint): ... this. Updated all users.
9632 (record_breakpoint_p): Renamed to ...
9633 (record_full_breakpoint_p): ... this. Updated all users.
9634 (record_breakpoints): Renamed to ...
9635 (record_full_breakpoints): ... this. Updated all users.
9636 (record_sync_record_breakpoints): Renamed to ...
9637 (record_full_sync_record_breakpoints): ... this.
9638 Updated all users.
9639 (record_init_record_breakpoints): Renamed to ...
9640 (record_full_init_record_breakpoints): ... this.
9641 Updated all users.
9642 (record_insert_breakpoint): Renamed to ...
9643 (record_full_insert_breakpoint): ... this. Updated all users.
9644 (record_remove_breakpoint): Renamed to ...
9645 (record_full_remove_breakpoint): ... this. Updated all users.
9646 (record_can_execute_reverse): Renamed to ...
9647 (record_full_can_execute_reverse): ... this. Updated all users.
9648 (record_get_bookmark): Renamed to ...
9649 (record_full_get_bookmark): ... this. Updated all users.
9650 (record_goto_bookmark): Renamed to ...
9651 (record_full_goto_bookmark): ... this. Updated all users.
9652 (record_async): Renamed to ...
9653 (record_full_async): ... this. Updated all users.
9654 (record_can_async_p): Renamed to ...
9655 (record_full_can_async_p): ... this. Updated all users.
9656 (record_is_async_p): Renamed to ...
9657 (record_full_is_async_p): ... this. Updated all users.
9658 (record_execution_direction): Renamed to ...
9659 (record_full_execution_direction): ... this. Updated all users.
9660 (record_info): Renamed to ...
9661 (record_full_info): ... this. Updated all users.
9662 (record_delete): Renamed to ...
9663 (record_full_delete): ... this. Updated all users.
9664 (record_is_replaying): Renamed to ...
9665 (record_full_is_replaying): ... this. Updated all users.
9666 (record_goto_entry): Renamed to ...
9667 (record_full_goto_entry): ... this. Updated all users.
9668 (record_goto_begin): Renamed to ...
9669 (record_full_goto_begin): ... this. Updated all users.
9670 (record_goto_end): Renamed to ...
9671 (record_full_goto_end): ... this. Updated all users.
9672 (record_goto): Renamed to ...
9673 (record_full_goto): ... this. Updated all users.
9674 (init_record_ops): Renamed to ...
9675 (init_record_full_ops): ... this. Updated all users.
9676 (record_core_resume): Renamed to ...
9677 (record_full_core_resume): ... this. Updated all users.
9678 (record_core_kill): Renamed to ...
9679 (record_full_core_kill): ... this. Updated all users.
9680 (record_core_fetch_registers): Renamed to ...
9681 (record_full_core_fetch_registers): ... this. Updated all users.
9682 (record_core_prepare_to_store): Renamed to ...
9683 (record_full_core_prepare_to_store): ... this. Updated all users.
9684 (record_core_store_registers): Renamed to ...
9685 (record_full_core_store_registers): ... this. Updated all users.
9686 (record_core_xfer_partial): Renamed to ...
9687 (record_full_core_xfer_partial): ... this. Updated all users.
9688 (record_core_insert_breakpoint): Renamed to ...
9689 (record_full_core_insert_breakpoint): ... this. Updated all users.
9690 (record_core_remove_breakpoint): Renamed to ...
9691 (record_full_core_remove_breakpoint): ... this. Updated all users.
9692 (record_core_has_execution): Renamed to ...
9693 (record_full_core_has_execution): ... this. Updated all users.
9694 (init_record_core_ops): Renamed to ...
9695 (init_record_full_core_ops): ... this. Updated all users.
9696 (cmd_record_restore): Renamed to ...
9697 (cmd_record_full_restore): ... this. Updated all users.
9698 (record_save_cleanups): Renamed to ...
9699 (record_full_save_cleanups): ... this. Updated all users.
9700 (cmd_record_start): Renamed to ...
9701 (cmd_record_full_start): ... this. Updated all users.
9702 (set_record_insn_max_num): Renamed to ...
9703 (set_record_full_insn_max_num): ... this. Updated all users.
9704 (set_record_command): Renamed to ...
9705 (set_record_full_command): ... this. Updated all users.
9706 (show_record_command): Renamed to ...
9707 (show_record_full_command): ... this. Updated all users.
9708 (_initialize_record): Renamed to ...
9709 (_initialize_record_full): ... this. Updated all users.
9710
d02ed0bb
MM
97112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9712
9713 * record.h: Split into this and ...
9714 * record-full.h: ... this.
9715 * record.c: Split into this and ...
9716 * record-full.c: ... this.
9717 * target.h (target_ops): Add new fields to_info_record,
9718 to_save_record, to_delete_record, to_record_is_replaying,
9719 to_goto_record_begin, to_goto_record_end, to_goto_record.
9720 (target_info_record): New.
9721 (target_save_record): New.
9722 (target_supports_delete_record): New.
9723 (target_delete_record): New.
9724 (target_record_is_replaying): New.
9725 (target_goto_record_begin): New.
9726 (target_goto_record_end): New.
9727 (target_goto_record): New.
9728 * target.c (target_info_record): New.
9729 (target_save_record): New.
9730 (target_supports_delete_record): New.
9731 (target_delete_record): New.
9732 (target_record_is_replaying): New.
9733 (target_goto_record_begin): New.
9734 (target_goto_record_end): New.
9735 (target_goto_record): New.
9736 * record.h: Declare struct cmd_list_element.
9737 (record_cmdlist): New declaration.
9738 (set_record_cmdlist): New declaration.
9739 (show_record_cmdlist): New declaration.
9740 (info_record_cmdlist): New declaration.
9741 (cmd_record_goto): New declaration.
9742 * record.c: Remove unnecessary includes.
9743 Include inferior.h.
9744 (cmd_record_goto): Remove declaration.
9745 (record_cmdlist): Now extern. Initialize.
9746 (set_record_cmdlist): Now extern. Initialize.
9747 (show_record_cmdlist): Now extern. Initialize.
9748 (info_record_cmdlist): Now extern. Initialize.
9749 (find_record_target): New.
9750 (require_record_target): New.
9751 (cmd_record_start): Update.
9752 (cmd_record_delete): Remove target-specific code.
9753 Call target_delete_record.
9754 (cmd_record_stop): Unpush any record target.
9755 (set_record_insn_max_num): Move to record-full.c
9756 (set_record_command): Add comment.
9757 (show_record_command): Add comment.
9758 (info_record_command): Update comment.
9759 Remove target-specific code.
9760 Call the record target's to_info_record.
9761 (cmd_record_start): New.
9762 (cmd_record_goto): Now extern.
9763 Remove target-specific code.
9764 Call target_goto_begin, target_goto_end, or target_goto.
9765 (_initialize_record): Move record target ops initialization to
9766 record-full.c.
9767 Change "record" command help text.
9768 Move "record restore", "record set", and "record show" commands to
9769 record-full.c.
9770 * Makefile.in (SFILES): Add record-full.c.
9771 (HFILES_NO_SRCDIR): Add record-full.h.
9772 (COMMON_OBS): Add record-full.o.
9773 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9774 * arm-tdep.c: Include record-full.h.
9775 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9776 * i386-tdep.c: Include record-full.h.
9777 * infrun.c: Include record-full.h.
9778 * linux-record.c: Include record-full.h.
9779 * moxie-tdep.c: Include record-full.h.
9780 * record-full.c: Include record-full.h.
9781 Change module comment.
9782 (set_record_full_cmdlist): New.
9783 (show_record_full_cmdlist): New.
9784 (record_full_cmdlist): New.
9785 (record_goto_insn): New declaration.
9786 (record_save): New declaration.
9787 (record_check_insn_num): Change query string.
9788 (record_info): New.
9789 (record_delete): New.
9790 (record_is_replaying): New.
9791 (record_goto_entry): New.
9792 (record_goto_begin): New.
9793 (record_goto_end): New.
9794 (record_goto): New.
9795 (init_record_ops): Update.
9796 (init_record_core_ops): Update.
9797 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9798 (cmd_record_start): New.
9799 (set_record_insn_max_num): Moved from record.c
9800 (set_record_full_command): New.
9801 (show_record_full_command): New.
9802 (_initialize_record_full): New.
9803
b48d48eb
MM
98042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9805
9806 * target.h (add_deprecated_target_alias): New.
9807 * target.c (add_deprecated_target_alias): New.
9808
a950d57c
MM
98092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9810
9811 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9812 and signal.h.
9813 (linux_supports_btrace): Add kernel and
9814 cpuid check.
9815 (kernel_supports_btrace): New function.
9816 (cpu_supports_btrace): New function.
9817 (intel_supports_btrace): New function.
9818
9accd112
MM
98192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9820
9821 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9822 * remote.c: Include btrace.h.
9823 (struct btrace_target_info): New struct.
9824 (remote_supports_btrace): New function.
9825 (send_Qbtrace): New function.
9826 (remote_enable_btrace): New function.
9827 (remote_disable_btrace): New function.
9828 (remote_teardown_btrace): New function.
9829 (remote_read_btrace): New function.
9830 (init_remote_ops): Add btrace ops.
9831 (enum <unnamed>): Add btrace packets.
9832 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9833 (_initialize_remote): Add packet configuration for branch tracing.
9834
c12a2917
MM
98352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9836
9837 * features/btrace.dtd: New file.
9838 * Makefile.in (XMLFILES): Add btrace.dtd.
9839 * btrace.h (parse_xml_btrace): New declaration.
9840 * btrace.c: Include xml-support.h.
9841 (parse_xml_btrace): New function.
9842 (parse_xml_btrace_block): New function.
9843 (block_attributes): New struct.
9844 (btrace_attributes): New struct.
9845 (btrace_children): New struct.
9846 (btrace_elements): New struct.
9847
3e3aea48
MM
98482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9849
9850 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9851 (amd64_linux_enable_btrace): New.
9852 (amd64_linux_disable_btrace): New.
9853 (amd64_linux_teardown_btrace): New.
9854 (_initialize_amd64_linux_nat): Initialize btrace ops.
9855 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9856 (i386_linux_enable_btrace): New.
9857 (i386_linux_disable_btrace): New.
9858 (i386_linux_teardown_btrace): New.
9859 (_initialize_i386_linux_nat): Initialize btrace ops.
9860 * config/i386/linux.mh: Add linux-btrace.o.
9861 * config/i386/linux64.mh: Add linux-btrace.o.
9862
7c97f91e
MM
98632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9864
9865 * common/linux_btrace.h: New file.
9866 * common/linux_btrace.c: New file.
9867 * Makefile.in (SFILES): Add btrace.c.
9868 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9869 (COMMON_OBS): Add btrace.o.
9870 (linux-btrace.o): New rule.
9871
1999790b 98722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9873
9874 * target.h: Include btrace.h.
9875 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9876 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9877 * target.c (target_supports_btrace): New function.
9878 (target_enable_btrace): New function.
9879 (target_disable_btrace): New function.
9880 (target_teardown_btrace): New function.
9881 (target_read_btrace): New function.
9882 * btrace.h: New file.
9883 * btrace.c: New file.
9884 * Makefile.in: Add btrace.c.
9885 * gdbthread.h: Include btrace.h.
9886 (struct thread_info): Add btrace field.
9887 * thread.c: Include btrace.h.
9888 (clear_thread_inferior_resources): Call target_teardown_btrace.
9889 * common/btrace-common.h: New file.
9890
61a31a67
JK
98912013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9892
9893 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9894 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9895 kill_status to outer block.
9896
05c56a9d
JK
98972013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9898
9899 Fix entry-values if the callee called a noreturn function.
9900 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9901 get_frame_address_in_block. Add new comment.
9902
9112db09
JK
99032013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9904
9905 Fix entry-values in C++ across CUs.
9906 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9907 lookup_minimal_symbol. Add a comment.
9908 * dwarf2read.c
9909 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9910 DW_AT_linkage_name.
9911
9b67fcec
YQ
99122013-03-08 Yao Qi <yao@codesourcery.com>
9913
9914 * tracepoint.c (_initialize_tracepoint): Indent the code.
9915
6221be90
PA
99162013-03-08 Pedro Alves <palves@redhat.com>
9917
9918 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9919 (parse_find_args, find_command): Change type of pattern buffer
9920 locals to 'gdb_byte *'.
9921
be9a119c 99222013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9923 Hafiz Abid Qadeer <abidh@codesourcery.com>
9924
9925 * NEWS: Mention set and show trace-buffer-size commands.
9926 Mention new packet.
9927 * target.h (struct target_ops): New method
9928 to_set_trace_buffer_size.
9929 (target_set_trace_buffer_size): New macro.
9930 * target.c (update_current_target): Set up new method.
9931 * tracepoint.c (trace_buffer_size): New global.
9932 (start_tracing): Send it to the target.
9933 (set_trace_buffer_size): New function.
9934 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9935 * remote.c (remote_set_trace_buffer_size): New function.
9936 (_initialize_remote): Use it.
9937 (QTBuffer:size) New remote command.
9938 (PACKET_QTBuffer_size): New enum.
9939 (remote_protocol_features): Add an entry for
9940 PACKET_QTBuffer_size.
9941
7da3ab79
TT
99422013-03-08 Tom Tromey <tromey@redhat.com>
9943
9944 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9945 variable.
9946
0c1f71e7
PA
99472013-03-07 Pedro Alves <palves@redhat.com>
9948
9949 * target.c (target_read_stralloc, target_fileio_read_alloc):
9950 *Cast pointer to 'gdb_byte *' in target call.
9951
c8af03a2
PA
99522013-03-07 Pedro Alves <palves@redhat.com>
9953
9954 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9955 call.
9956
529480d0
KS
99572013-03-07 Keith Seitz <keiths@redhat.com>
9958
9959 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9960 (trace_pass_command): Likewise.
9961 * cli/cli-cmds.c: Include cli/cli-utils.h.
9962 (source_command): Use skip-spaces.
9963 (disassemble_command): Likewise.
9964 * findcmd.c: Include cli/cli-utils.h.
9965 (parse_find_args): Use skip_spaces.
9966 * go32-nat.c: Include cli/cli-utils.h.
9967 (go32_sldt): Use skip_spaces.
9968 (go32_sgdt): Likewise.
9969 (go32_sidt): Likewise.
9970 (go32_pde): Likewise.
9971 (go32_pte): Likewise.
9972 (go32_pte_for_address): Likewise.
9973 * infcmd.c: Include cli/cli-utils.h.
9974 (registers_info): Use skip_spaces.
9975 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9976 (linux_info_proc): Likewise.
9977 * linux-thread-db.c: Include cli/cli-utils.h.
9978 (info_auto_load_libthread_db): Use skip_spaces_const.
9979 * m32r-rom.c: Include cli/cli-utils.h.
9980 (m32r_upload_command): Use skip_spaces.
9981 * maint.c: Include cli/cli-utils.h.
9982 (maintenance_translate_address): Use skip_spaces.
9983 * mi/mi-parse.c: Include cli/cli-utils.h.
9984 (mi_parse_argv): Use skip_spaces.
9985 (mi_parse): Likewise.
9986 * minsyms.c: Include cli/cli-utils.h.
9987 (msymbol_hash_iw): Use skip_spaces_const.
9988 * objc-lang.c: Include cli/cli-utils.h.
9989 (parse_selector): Use skip_spaces.
9990 (parse_method): Likewise.
9991 * python/python.c: Include cli/cli-utils.h.
9992 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9993 (python_command)[HAVE_PYTHON]: Likewise.
9994 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9995 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9996 (m32r_load): Use skip_spaces.
9997 * serial.c: Include cli/cli-utils.h.
9998 (serial_open): Use skip_spaces_const.
9999 * stack.c: Include cli/cli-utils.h.
10000 (parse_frame_specification_1): Use skip_spaces_const.
10001 * symfile.c: Include cli/cli-utils.h.
10002 (set_ext_lang_command): Use skip_spaces.
10003 * symtab.c: Include cli/cli-utils.h.
10004 (rbreak_command): Use skip_spaces.
10005 * thread.c (thread_name_command): Use skip_spaces.
10006 * tracepoint.c (validate_actionline): Use skip_spaces.
10007 (encode_actions_1): Likewise.
10008 (trace_find_range_command): Likewise.
10009 (trace_find_outside_command): Likewise.
10010 (trace_dump_actions): Likewise.
10011
ac91cd70
PA
100122013-03-07 Pedro Alves <palves@redhat.com>
10013
10014 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10015 * expprint.c (print_subexp_standard): Likewise.
10016 * utils.c (host_char_to_target): Likewise.
10017 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10018 * varobj.c (value_get_print_value): Change type of local to char*.
10019 Cast it gdb_byte * in call to language printer.
10020
2898e560
PA
100212013-03-07 Pedro Alves <palves@redhat.com>
10022
10023 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10024 gdb_byte *'.
10025 (make_wchar_iterator): Remove cast to char*.
10026 (wchar_iterate): Change type of local.
10027
a09b4448
PA
100282013-03-07 Pedro Alves <palves@redhat.com>
10029
10030 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10031 for 'regcache->register_status'.
10032
20ced3e4
PA
100332013-03-07 Pedro Alves <palves@redhat.com>
10034
c2d6a675 10035 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10036 int.
10037
fe106009
PA
100382013-03-07 Pedro Alves <palves@redhat.com>
10039
10040 * stap-probe.c (handle_stap_probe): Add cast to char*.
10041
8ac2c12b
PA
100422013-03-07 Pedro Alves <palves@redhat.com>
10043
10044 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10045 RECORD_MSGRCV>: Pass a signed variable to
10046 regcache_raw_read_signed, instead of an unsigned one.
10047
99f0a309
PA
100482013-03-07 Pedro Alves <palves@redhat.com>
10049
10050 * remote-notif.c (notif_debug): Change type to int.
10051 * remote-notif.h (notif_debug): Likewise.
10052
964b8317
PA
100532013-03-07 Pedro Alves <palves@redhat.com>
10054
10055 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10056
f0cc8ad4
PA
100572013-03-07 Pedro Alves <palves@redhat.com>
10058
10059 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10060 * remote.h (hex2bin, bin2hex): ... here.
10061 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10062
77dec115
EZ
100632013-03-07 Eli Zaretskii <eliz@gnu.org>
10064
10065 * utils.c (initialize_utils): Improve doc strings of "set/show
10066 width", "set/show height", and "set/show pagination".
10067
741d92cf
KS
100682013-03-06 Keith Seitz <keiths@redhat.com>
10069
10070 * ax-gdb.c (gen_printf): Make FORMAT const.
10071 * ax-gdb.h (gen_printf): Likewise.
10072 * ax-general.c (ax_string): Make STR const.
10073 * ax.h (ax_string): Likewise.
10074
7b6c814e
DE
100752013-03-06 Doug Evans <dje@google.com>
10076
10077 * elfread.c (elf_symfile_read): Move debugging printf to more
10078 logical location.
10079
634334ab
PA
100802013-03-06 Pedro Alves <palves@redhat.com>
10081
10082 * python/py-utils.c (target_string_to_unicode): Delete function.
10083 * python/python-internal.h (target_string_to_unicode): Delete
10084 declaration.
10085
e482a1a7
PM
100862013-03-06 Pierre Muller <muller@sourceware.org>
10087
10088 * linespec.c (get_current_search_block): ARI fix, use (void)
10089 for empty parameter list.
10090
4eeaa230
DE
100912013-03-05 Doug Evans <dje@google.com>
10092
10093 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10094 of old ada_lookup_symbol_list. In !full_search case, don't
10095 search superblocks.
10096 (ada_lookup_symbol_list): Delete arg full_search, all callers
10097 updated. Call ada_lookup_symbol_list_worker.
10098 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10099 * ada-lang.h (ada_lookup_symbol_list): Update.
10100 * language.h (language_defn): Update comment for
10101 la_iterate_over_symbols.
10102 * linespec.c (iterate_over_file_blocks): New function.
10103 (iterate_over_all_matching_symtabs): Call it.
10104 (lookup_prefix_sym): Ditto.
10105 (get_current_search_block): New function.
10106 (get_search_block): Delete.
10107 (find_label_symbols): Call get_current_search_block.
10108 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10109 * symtab.c (iterate_over_symbols): Don't search superblocks.
10110
b69b1fb1
YQ
101112013-03-05 Yao Qi <yao@codesourcery.com>
10112
10113 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10114 parameter VAR's type from "unsigned int" to "int".
10115 * command.h (var_zuinteger_unlimited): Update its comments.
10116 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10117
3c095f49
CV
101182013-03-05 Corinna Vinschen <vinschen@redhat.de>
10119
10120 * NEWS: Mention new target x86_64-*-cygwin*.
10121
b5b0b0af
CV
101222013-03-05 Corinna Vinschen <vinschen@redhat.de>
10123
10124 * configure.host: Add x86_64-*-cygwin* as host.
10125 * configure.tgt: Add x86_64-*-cygwin* as target.
10126 * config/i386/cygwin64.mh: New file.
10127
f6f99966
JK
101282013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10129
10130 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10131
33f448b1
JK
101322013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10133
10134 * linespec.c (struct linespec_canonical_name): New.
10135 (struct linespec_state): Change canonical_names type to it.
10136 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10137 xrealloc element size. Initialize the different CANONICAL fields.
10138 (canonical_to_fullform): New.
10139 (filter_results): Use it. Add variables canonical, fullform and
10140 cleanup.
10141 (struct decode_line_2_item, decode_line_2_compare_items): New.
10142 (decode_line_2): Remove variables iter and item_names, add variables
10143 items and items_count. Modify the code for these new variables.
10144
feb14725
CV
101452013-03-04 Corinna Vinschen <vinschen@redhat.com>
10146
10147 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10148 calling do_cleanup.
10149
e83b17ba
HZ
101502013-03-04 Luis Machado <lgustavo@codesourcery.com>
10151
10152 * tracepoint.c (build_traceframe_info): Add code for byte order.
10153
a2d13a0d
KB
101542013-03-02 Kevin Buettner <kevinb@redhat.com>
10155
8dddcae8
KB
10156 * v850-tdep.c: (v850e2_register_name): Revise system register
10157 names to match current V850E2M architecture specifications.
10158 Update register number enum comments too.
f5aee5ee 10159
d79e58d8
JW
101602013-03-01 Jiong Wang <jiwang@tilera.com>
10161 Pedro Alves <palves@redhat.com>
10162
10163 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10164 to END_ADDR.
10165 (tilegx_skip_prologue): Limit prologue analysis to section end.
10166
c4be5165
JK
101672013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10168
10169 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10170 use it.
10171
e362b510
PA
101722013-03-01 Pedro Alves <palves@redhat.com>
10173
10174 Use gdb_byte for bytes from the program being debugged.
10175
10176 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10177 Change type of local 'buf' to gdb_byte.
10178 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10179 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10180 * cris-tdep.c (cris_sigcontext_addr)
10181 (cris_sigtramp_frame_unwind_cache): Likewise.
10182 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10183 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10184 Likewise.
10185 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10186 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10187 (hppa32_hpux_search_dummy_call_sequence)
10188 (hppa_hpux_supply_save_state): Likewise.
10189 * hppa-linux-tdep.c (insns_match_pattern)
10190 (hppa_linux_find_global_pointer): Likewise.
10191 * hppa-tdep.c (hppa_in_function_epilogue_p)
10192 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10193 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10194 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10195 (i386fbsd_collect_uthread): Likewise.
10196 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10197 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10198 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10199 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10200 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10201 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10202 (ia64_libunwind_frame_prev_register)
10203 (ia64_libunwind_sigtramp_frame_this_id)
10204 (ia64_find_global_pointer_from_dynamic_section)
10205 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10206 (ia64_unwind_pc): Likewise.
10207 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10208 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10209 (m68hc11_extract_return_value): Likewise.
10210 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10211 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10212 (mep_get_insn, mep_push_dummy_call): Likewise.
10213 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10214 (mips_linux_in_dynsym_stub): Likewise.
10215 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10216 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10217 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10218 to gdb_byte.
10219 * remote-mips.c (mips_set_register): Likewise.
10220 * remote-sim.c (gdbsim_fetch_register): Likewise.
10221 * score-tdep.c (score7_fetch_inst): Change type of parameter
10222 'memblock' and local 'buf' to gdb_byte.
10223 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10224 Change type of local 'buf' to gdb_byte. Adjust.
10225 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10226 to gdb_byte**.
10227 (score7_analyze_prologue): Change type of 'memblock' and
10228 'memblock_ptr' locals to gdb_byte*.
10229 * sh64-tdep.c (sh64_extract_return_value)
10230 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10231 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10232 * solib-pa64.c (pa64_solib_create_inferior_hook)
10233 (pa64_open_symbol_file_object): Remove local 'buf'.
10234 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10235 (som_open_symbol_file_object): Likewise.
10236 * solib-spu.c (spu_current_sos): Likewise.
10237 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10238 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10239 (spu_store_registers): Likewise.
10240 * target.c (debug_print_register): Likewise.
10241 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10242 * xstormy16-tdep.c (xstormy16_store_return_value)
10243 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10244 (xstormy16_find_jmp_table_entry): Likewise.
10245
75cc61ca 102462013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10247
10248 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10249 (tilegx_gdbarch_init): Install it.
10250
ddb08e9c
TT
102512013-02-28 Tom Tromey <tromey@redhat.com>
10252
10253 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10254 PyLong_Check.
10255
62d7fb51
DE
102562013-02-28 Doug Evans <dje@google.com>
10257
10258 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10259 * python/python.c (gdbpy_find_pc_line): Ditto.
10260
c4a9e8b4
TT
102612013-02-28 Tom Tromey <tromey@redhat.com>
10262
10263 * contrib/excheck.py: New file.
10264 * contrib/exsummary.py: New file.
10265 * contrib/gcc-with-excheck: New file.
10266
7f6a5dde
TT
102672013-02-28 Tom Tromey <tromey@redhat.com>
10268
10269 * python/python.c (gdbpy_print_stack): Call begin_line and
10270 fprintf_filtered inside TRY_CATCH.
10271
9e974e55
TT
102722013-02-28 Tom Tromey <tromey@redhat.com>
10273
10274 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10275 inside TRY_CATCH.
10276
dd5fa3e7
TT
102772013-02-28 Tom Tromey <tromey@redhat.com>
10278
10279 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10280 frame_object_to_frame_info inside TRY_CATCH.
10281
86a3263f
TT
102822013-02-28 Tom Tromey <tromey@redhat.com>
10283
10284 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10285 TRY_CATCH.
10286
81b52a3a
TT
102872013-02-28 Tom Tromey <tromey@redhat.com>
10288
10289 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10290
d50a0ce2
CV
102912013-02-27 Corinna Vinschen <vinschen@redhat.com>
10292
10293 * windows-nat.c: Throughout, fix format strings and casts of
10294 printf-like functions to avoid type related warnings on all
10295 platforms.
10296 (handle_output_debug_string): Fetch context information address
10297 from debug string using string_to_core_addr.
10298
e1f58301
JW
102992013-02-27 Jiong Wang <jiwang@tilera.com>
10300
10301 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10302 * regformats/reg-tilegx32.dat: New.
10303
4fcd89fc
JW
103042013-02-27 Jiong Wang <jiwang@tilera.com>
10305
10306 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10307
748d24e6
JW
103082013-02-27 Jiong Wang <jiwang@tilera.com>
10309
10310 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10311
6c8e944d
YQ
103122013-02-27 Yao Qi <yao@codesourcery.com>
10313 Pedro Alves <palves@redhat.com>
10314
10315 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10316 pc/tp/range/outside, look for the next trace frame instead of
10317 always starting from frame 0.
6c8e944d 10318
acd7db30
AG
103192013-02-26 Anthony Green <green@moxielogic.com>
10320
10321 * configure.tgt: Add support for moxie-*-rtems* target.
10322
025e6dce
PA
103232013-02-25 Pedro Alves <palves@redhat.com>
10324
10325 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10326 warning text.
10327
ca9c94ef
MR
103282013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10329
10330 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10331 if $fp is used as the virtual frame pointer.
10332
24c274a1
AM
103332013-02-23 Alan Modra <amodra@gmail.com>
10334
10335 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10336 symbol size.
10337 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10338 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10339 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10340 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10341
bfada189
JK
103422013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10343
10344 Code cleanup.
10345 * elfread.c (build_id_bfd_get): Make the return type const.
10346 (build_id_verify): Make the check parameter const.
10347 (build_id_to_debug_filename): Make the build_id parameter and variable
10348 data const.
10349 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10350
c0355132
AM
103512013-02-21 Alan Modra <amodra@gmail.com>
10352
10353 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10354
9f44fbc0
SCR
103552013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10356
10357 Add a new method 'disassemble' to gdb.Architecture class.
10358 * python/py-arch.c (archpy_disassmble): Implementation of the
10359 new method gdb.Architecture.disassemble.
10360 (arch_object_methods): Add entry for the new method.
10361
b74ea3eb
JW
103622013-02-20 Jiong Wang <jiwang@tilera.com>
10363
10364 * MAINTAINERS (Write After Approval): Add myself to the list.
10365
61a672f1
PA
103662013-02-19 Pedro Alves <palves@redhat.com>
10367
10368 Garbage collect 'struct monitor_ops'::load_routine.
10369
10370 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10371 * monitor.c (monitor_load): No longer call
10372 current_monitor->load_routine.
10373 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10374 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10375 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10376
40e397df
PA
103772013-02-19 Pedro Alves <palves@redhat.com>
10378
10379 PR gdb/15161
10380
10381 Harmonize with generic_load.
10382
10383 * monitor.c: Include "readline/readline.h".
10384 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10385 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10386 long/strtol for the 'load_offset' local. Error out if no argument
10387 is given or if too many arguments are given. Tilde expand the
10388 passed in file name.
10389
f698ca8e
KT
103902013-02-19 Kai Tietz <ktietz@redhat.com>
10391
10392 PR gdb/15161
10393 * symfile.c (load_section_data): Change type of load_offset
10394 to CORE_ADDR.
10395 (generic_load): User strtoulst instead of strtoul for conversion
10396 of load_offset.
10397
3361b059
WL
103982013-02-19 Jiong Wang <jiwang@tilera.com>
10399
10400 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10401 for return address, "lr" register, saved on stack.
10402 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10403 after we invoke tilegx_analyze_prologue.
10404
3e9d5130
WL
104052013-02-19 Jiong Wang <jiwang@tilera.com>
10406
bb1bcd86
WL
10407 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10408
3361b059 104092013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10410
b74ea3eb 10411 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10412
4aaf2503
WL
104132013-02-19 Jiong Wang <jiwang@tilera.com>
10414
b74ea3eb 10415 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10416 (tilegx_write_pc): New function.
10417 (tilegx_cannot_reference_register): Return zero if REGNO
10418 is TILEGX_FAULTNUM_REGNUM.
10419 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10420 (tilegx_register_name): Add handling of "faultnum" register.
10421 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10422 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10423 handling of TILEGX_FAULTNUM_REGNUM.
10424 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10425
bc23a956
WL
104262013-02-19 Jiong Wang <jiwang@tilera.com>
10427
10428 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10429 should be aligned to 64bit.
bc23a956 10430
42f45f1a
KT
104312013-02-19 Kai Tietz <ktietz@redhat.com>
10432
10433 * windows-nat.c (windows_xfer_memory): Fix debug-output
10434 for LLP64.
10435
6ce4c112
LL
104362013-02-19 Lei Liu <lei.liu2@windriver.com>
10437
10438 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10439 Don't check DSP register number if HAVE_DSP is not set.
10440
30e8ee25
AM
104412013-02-19 Alan Modra <amodra@gmail.com>
10442
10443 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10444 throughout file instead.
10445 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10446 Don't xmalloc return value.
10447 (build_id_verify): Similarly. Don't xfree.
10448 (build_id_to_debug_filename): Update.
10449 (find_separate_debug_file_by_buildid): Update, don't xfree.
10450
4c9ad8c2
TT
104512013-02-18 Tom Tromey <tromey@redhat.com>
10452
10453 PR gdb/15102:
10454 * dwarf2read.c (read_subrange_type): Use result of
10455 'check_typedef'.
10456
983dc440
YQ
104572013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10458
10459 * frame.c: Remove one extra white space after #include
10460 directive.
10461
7fb2b84a
JK
104622013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10463
10464 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10465
edceb2a9
JK
104662013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10467
10468 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10469 and dir commands into an if block.
10470
e81b7af8
TT
104712013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10472
10473 * python/py-breakpoint (struct pybp_code): Use int instead of
10474 enum type_code.
10475
f5911ea1
HAQ
104762013-02-15 Pedro Alves <pedro@codesourcery.com>
10477 Hafiz Abid Qadeer <abidh@codesourcery.com>
10478
10479 * NEWS: Mention new field "trace-file".
10480 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10481 (tfile_open): Record the trace file's filename in the trace
10482 status.
10483 (tfile_files_info): Mention the name of the trace file.
10484 Check the "filename" field explicitely.
10485 (trace_status_command): Explicitely check "filename" field.
10486 (trace_find_command): Ditto.
10487 (trace_find_pc_command): Ditto.
10488 (trace_find_tracepoint_command): Ditto.
10489 (trace_find_line_command): Ditto.
10490 (trace_find_range_command): Ditto.
10491 (trace_find_outside_command): Ditto.
10492 * tracepoint.h (struct trace_status) <from_file>: Rename it
10493 to "filename" and make it hold the trace file's filename
10494 instead of a boolean.
10495 * remote.c (remote_get_trace_status): Initialize "filename"
10496 field with NULL instead of 0.
10497
796cb314
YQ
104982013-02-15 Yao Qi <yao@codesourcery.com>
10499
10500 * remote.c: Fix a typo.
10501
42e79b1d
PM
105022013-02-14 Pierre Muller <muller@sourceware.org>
10503
10504 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10505
baea0dae
PA
105062013-02-14 Pedro Alves <palves@redhat.com>
10507
10508 * utils.c (savestring): Don't #undef it. Move function to
10509 common/common-utils.c.
10510 * common/common-utils.c: Include gdb_string.h.
10511 (savestring): Move here from utils.c.
10512 * common/common-utils.h (savestring): Declare.
10513
57c3b6ed
PA
105142013-02-14 Pedro Alves <palves@redhat.com>
10515
10516 * utils.c (savestring): Rename parameter 'size' to 'len'.
10517
d6c44983
YZ
105182013-02-14 Pedro Alves <palves@redhat.com>
10519 Yufeng Zhang <yufeng.zhang@arm.com>
10520
10521 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10522 (aarch64_inferior_data, struct aarch64_inferior_data):
10523 Delete.
10524 (struct aarch64_process_info): New.
10525 (aarch64_process_list): New global.
10526 (aarch64_find_process_pid, aarch64_add_process)
10527 (aarch64_process_info_get): New functions.
10528 (aarch64_inferior_data_get): Delete.
10529 (aarch64_process_info_get): New function.
10530 (aarch64_forget_process): New function.
10531 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10532 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10533 aarch64_get_debug_reg_state.
10534 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10535 instead of linux_nat_iterate_watchpoint_lwps.
10536 (aarch64_linux_new_fork): New function.
10537 (aarch64_linux_child_post_startup_inferior): Use
10538 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10539 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10540 (aarch64_linux_remove_hw_breakpoint)
10541 (aarch64_handle_aligned_watchpoint)
10542 (aarch64_handle_unaligned_watchpoint)
10543 (aarch64_linux_insert_watchpoint)
10544 (aarch64_linux_remove_watchpoint)
10545 (aarch64_linux_stopped_data_address): Adjust to pass the current
10546 process id to aarch64_debug_reg_state.
10547 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10548 linux_nat_new_fork hook, and aarch64_forget_process as
10549 linux_nat_forget_process hook; remove the call to
10550 register_inferior_data_with_cleanup.
10551
4819b3f8
PA
105522013-02-14 Pedro Alves <palves@redhat.com>
10553
10554 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10555 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10556 lval_memory.
10557
1773c82c
HAQ
105582013-02-14 Pedro Alves <pedro@codesourcery.com>
10559 Hafiz Abid Qadeer <abidh@codesourcery.com>
10560
10561 * tracepoint.h (validate_trace_state_variable_name): Declare.
10562 * tracepoint.c (validate_trace_state_variable_name): New.
10563 (trace_variable_command): Parse the trace state variable's name
10564 without using parse_expression. Do several validations.
10565 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10566 trace state variable's name with parse_expression. Validate it.
10567
53778a97
YQ
105682013-02-14 Yao Qi <yao@codesourcery.com>
10569
10570 * infcmd.c (breakpoint_proceeded): Remove it.
10571
7b3ae3a6
YQ
105722013-02-14 Yao Qi <yao@codesourcery.com>
10573
10574 * tracepoint.c (end_actions_pseudocommand): Make it static.
10575 (while_stepping_pseudocommand): Likewise.
10576 * tracepoint.h (end_actions_pseudocommand): Remove the
10577 declaration.
10578 (while_stepping_pseudocommand): Likewise.
10579
64580925
YQ
105802013-02-14 Yao Qi <yao@codesourcery.com>
10581
10582 * cli/cli-decode.c (help_cmd): Remove the declaration of
10583 "cmdlist".
10584 (help_all): Likewise.
10585
26cb8b7c
PA
105862013-02-13 Pedro Alves <palves@redhat.com>
10587
10588 * amd64-linux-nat.c (update_debug_registers_callback):
10589 Update comment.
10590 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10591 iterate_over_lwps.
10592 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10593 i386_debug_reg_state.
10594 (amd64_linux_new_fork): New function.
10595 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10596 linux_nat_new_fork hook, and i386_forget_process as
10597 linux_nat_forget_process hook.
10598 * i386-linux-nat.c (update_debug_registers_callback):
10599 Update comment.
a8256ea1 10600 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10601 iterate_over_lwps.
10602 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10603 i386_debug_reg_state.
10604 (i386_linux_new_fork): New function.
10605 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10606 linux_nat_new_fork hook, and i386_forget_process as
10607 linux_nat_forget_process hook.
10608 * i386-nat.c (i386_init_dregs): Delete.
10609 (i386_inferior_data, struct i386_inferior_data):
10610 Delete.
10611 (struct i386_process_info): New.
10612 (i386_process_list): New global.
10613 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10614 New functions.
10615 (i386_inferior_data_get): Delete.
10616 (i386_process_info_get): New function.
10617 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10618 (i386_forget_process): New function.
10619 (i386_cleanup_dregs): Rewrite.
10620 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10621 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10622 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10623 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10624 to i386_debug_reg_state.
10625 (i386_use_watchpoints): Don't register inferior data.
10626 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10627 adjust comment.
10628 (i386_forget_process): Declare.
10629 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10630 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10631 New static globals.
10632 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10633 (add_initial_lwp): New, factored out from ...
10634 (add_lwp): ... this. Don't check the number of lwps before
10635 calling linux_nat_new_thread.
10636 (linux_nat_iterate_watchpoint_lwps): Delete.
10637 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10638 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10639 forks and vforks.
10640 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10641 initial lwp.
10642 (linux_nat_kill, linux_nat_mourn_inferior): Call
10643 linux_nat_forget_process.
10644 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10645 (linux_nat_forget_process): New functions.
10646 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10647 type.
10648 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10649 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10650 types.
10651 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10652 (linux_nat_forget_process): New declarations.
10653
10654 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10655 (amd64fbsd_mourn_inferior): New function.
10656 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10657 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10658
5befea72
MS
106592013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10660
55015247
YQ
10661 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10662 Adding _().
5befea72 10663
1d3ffd6b
MS
106642013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10665
10666 * aarch64-linux-nat.c (debug_reg_change_callback)
10667 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10668 %s and phex().
10669
6eb04473
MS
106702013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10671
10672 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10673 with LONGEST.
10674
a016fc87
HAQ
106752013-02-13 Pedro Alves <palves@redhat.com>
10676 Hafiz Abid Qadeer <abidh@codesourcery.com>
10677
10678 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10679
e234dfaf
TT
106802013-02-12 Tom Tromey <tromey@redhat.com>
10681
10682 PR symtab/11464:
10683 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10684 NAME return.
10685 (classify_inner_name): Remove 'first_name' argument, add
10686 'context'. Remove unused variable.
10687 (yylex): Explicitly maintain the context type. Exit loop earlier
10688 if NAME result is seen.
10689
0b1afbb3
PA
106902013-02-12 Pedro Alves <palves@redhat.com>
10691
10692 * amd64-darwin-tdep.c: Add (C) after Copyright.
10693 * cli/cli-cmds.h: Ditto.
10694 * cli/cli-decode.c: Ditto.
10695 * cli/cli-decode.h: Ditto.
10696 * cli/cli-dump.c: Ditto.
10697 * cli/cli-dump.h: Ditto.
10698 * cli/cli-interp.c: Ditto.
10699 * cli/cli-logging.c: Ditto.
10700 * cli/cli-script.c: Ditto.
10701 * cli/cli-script.h: Ditto.
10702 * cli/cli-setshow.c: Ditto.
10703 * cli/cli-setshow.h: Ditto.
10704 * cli/cli-utils.c: Ditto.
10705 * cli/cli-utils.h: Ditto.
10706 * config/alpha/nm-osf3.h: Ditto.
10707 * config/djgpp/djconfig.sh: Ditto.
10708 * config/i386/nm-fbsd.h: Ditto.
10709 * config/i386/nm-i386gnu.h: Ditto.
10710 * config/nm-linux.h: Ditto.
10711 * config/nm-nto.h: Ditto.
10712 * config/rs6000/nm-rs6000.h: Ditto.
10713 * config/sparc/nm-sol2.h: Ditto.
10714 * darwin-nat-info.c: Ditto.
10715 * dfp.c: Ditto.
10716 * dfp.h: Ditto.
10717 * gdb-demangle.h: Ditto.
10718 * i386-darwin-nat.c: Ditto.
10719 * i386-darwin-tdep.c: Ditto.
10720 * linux-fork.h: Ditto.
10721 * m32c-tdep.c: Ditto.
10722 * microblaze-linux-tdep.c: Ditto.
10723 * microblaze-rom.c: Ditto.
10724 * microblaze-tdep.c: Ditto.
10725 * microblaze-tdep.h: Ditto.
10726 * mips-linux-tdep.h: Ditto.
10727 * ppc-ravenscar-thread.c: Ditto.
10728 * ppc-ravenscar-thread.h: Ditto.
10729 * prologue-value.c: Ditto.
10730 * prologue-value.h: Ditto.
10731 * ravenscar-thread.c: Ditto.
10732 * ravenscar-thread.h: Ditto.
10733 * sparc-ravenscar-thread.c: Ditto.
10734 * sparc-ravenscar-thread.h: Ditto.
10735 * tilegx-linux-tdep.c: Ditto.
10736 * unwind_stop_reasons.def: Ditto.
10737 * windows-nat.h: Ditto.
10738 * xtensa-linux-tdep.c: Ditto.
10739 * xtensa-xtregs.c: Ditto.
10740 * regformats/regdat.sh: Ditto.
10741 * regformats/regdef.h: Ditto.
10742
6c01dd94
PA
107432013-02-12 Pedro Alves <palves@redhat.com>
10744
10745 * break-catch-sig.c: Update copyright years.
10746
b65a2bd9
SCR
107472013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10748
10749 Add support for a destructor for ui_out data and use it to
10750 provide a ui_out destructor.
10751 * ui-out.h: Declare the new ui_out destructor.
10752 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10753 * ui-out.c (default_data_destroy): Add a default data destructor
10754 which does nothing.
10755 (default_ui_out_impl): Set the new data_destroy field to
10756 default_data_destroy
10757 (uo_data_destroy): Local function which invokes the data
10758 destructor if present.
10759 (clear_table): Local function which clears the table data of a
10760 ui_out object.
10761 (ui_out_destroy): Public function which frees a ui_out object.
10762 (ui_out_table_end): Use the new clear_table function.
10763 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10764 NULL.
10765 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10766 to NULL.
10767
c2792f5a
DE
107682013-02-11 Doug Evans <dje@google.com>
10769
10770 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10771 (printf_decfloat): New function. Broken out from ui_printf.
10772 Remove unnecessary code to shift the entire format string down.
10773 (printf_pointer): New function.
10774 (ui_printf): Code to print C strings, wide C strings, decfloats,
10775 and pointers moved to separate functions.
10776
d9e98382
SDJ
107772013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10778
10779 * valops.c (value_assign): Handling bitfield offset in
10780 `lval_internalvar_component' case.
10781
4ff3ce77
DE
107822013-02-08 Doug Evans <dje@google.com>
10783
10784 * common/format.c (parse_format_string): Fix whitespace.
10785
901900c4
MGD
107862013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10787
10788 * stack.c (return_command): Work around uninitialized variable
10789 warning.
10790
b5dbc8d4
YZ
107912013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10792
10793 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10794 number of the registers from 36 to 34.
10795
51d66578
MS
107962013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10797
10798 * NEWS: Mention new AArch64 native and target support.
10799
176b1c95
MS
108002013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10801
10802 * MAINTAINERS (Write After Approval): Add myself.
10803
9d19df75
MS
108042013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10805 Marcus Shawcroft <marcus.shawcroft@arm.com>
10806 Nigel Stephens <nigel.stephens@arm.com>
10807 Yufeng Zhang <yufeng.zhang@arm.com>
10808
10809 * aarch64-linux-nat.c: New file.
10810 * config/aarch64/linux.mh: New file.
10811 * configure.host: Add AArch64.
10812 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10813
7e1e0340
DE
108142013-02-07 Doug Evans <dje@google.com>
10815
10816 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10817 disassemble command.
10818
45e25a36
MS
108192013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10820
10821 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10822 set_gdbarch_fetch_tls_load_module_address.
10823
bbfdfe1c
DM
108242013-02-06 David S. Miller <davem@davemloft.net>
10825
10826 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10827 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10828 * value.c (struct_return_convention): New function.
10829 (using_struct_return): Implement in terms of struct_return_convention.
10830 * value.h (struct_return_convention): Declare.
10831 * stack.c (return_command): Allow successful overriding of the return
10832 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10833
bc9abe4a
TT
108342013-02-06 Tom Tromey <tromey@redhat.com>
10835
10836 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10837 outside of TRY_CATCH.
10838
134a2066
YQ
108392013-02-06 Yao Qi <yao@codesourcery.com>
10840
10841 * mi/mi-interp.c: Include "tracepoint.h".
10842 (mi_tsv_modified): Declare.
10843 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10844 (mi_interpreter_init): Call observer_attach_tsv_modified.
10845 (mi_tsv_modified): New.
10846 (mi_tsv_created, mi_tsv_deleted): Update.
10847 * tracepoint.c (trace_variable_command): Call
10848 observer_notify_tsv_modified if the initial value of tsv is
10849 changed.
10850 (delete_trace_state_variable): Call
10851 observer_notify_tsv_deleted earlier.
10852 (trace_variable_command): Caller update.
10853 (create_tsv_from_upload): Likewise.
10854 * observer.sh: Declare "struct trace_state_variable".
10855
10856 * NEWS: Mention the new MI notification "=tsv-modified".
10857
59be2b6a
DE
108582013-02-05 Doug Evans <dje@google.com>
10859
10860 * completer.c (location_completer): Fix typo in comment.
10861
d30113d4
JK
108622013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10863
10864 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10865 ADDRESS sorted.
10866
14ac654f
MS
108672013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10868
10869 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10870 Refactor if statement to avoid trailing || operator.
10871
543bf33d
AT
108722013-02-05 Andreas Tobler <andreast@fgznet.ch>
10873
10874 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10875
dc18f110
AT
108762013-02-04 Andreas Tobler <andreast@fgznet.ch>
10877
10878 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10879 * configure.host: Add powerpc*-*-freebsd* target.
10880 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10881 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10882 * config/powerpc/fbsd.mh: New file.
10883
b3ac9c77
SDJ
108842013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10885 Denys Vlasenko <dvlasenk@redhat.com>
10886 Pedro Alves <palves@redhat.com>
10887
10888 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10889 (struct elf_internal_linux_prpsinfo): Forward declare.
10890 * gdbarch.h, gdbarch.c: Regenerate.
10891 * linux-tdep.c: Include `cli/cli-utils.h'.
10892 (linux_fill_prpsinfo): New function.
10893 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10894 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10895 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10896 depending on gdbarch pointer bitness.
10897 * ppc-linux-tdep.c: Include elf-bfd.h.
10898 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10899 on 32-bit.
10900
176eb98c
MS
109012013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10902 Marcus Shawcroft <marcus.shawcroft@arm.com>
10903 Nigel Stephens <nigel.stephens@arm.com>
10904 Yufeng Zhang <yufeng.zhang@arm.com>
10905
10906 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10907
cf0dbd6f
MS
109082013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10909 Marcus Shawcroft <marcus.shawcroft@arm.com>
10910 Nigel Stephens <nigel.stephens@arm.com>
10911 Yufeng Zhang <yufeng.zhang@arm.com>
10912
10913 * aarch64-newlib-tdep.c: New file.
10914 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10915 aarch64*-*-elf.
10916 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10917 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10918 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10919 * osabi.c (gdb_osabi_names): Add "Newlib".
10920
1ae3db19
MS
109212013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10922 Marcus Shawcroft <marcus.shawcroft@arm.com>
10923 Nigel Stephens <nigel.stephens@arm.com>
10924 Yufeng Zhang <yufeng.zhang@arm.com>
10925
10926 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10927 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10928 * aarch64-linux-tdep.c: New file.
10929 * aarch64-linux-tdep.h: New file.
10930 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10931 * configure.tgt: Add aarch64-none-linux-gnu.
10932
07b287a0
MS
109332013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10934 Marcus Shawcroft <marcus.shawcroft@arm.com>
10935 Nigel Stephens <nigel.stephens@arm.com>
10936 Yufeng Zhang <yufeng.zhang@arm.com>
10937
10938 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10939 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10940 (ALLDEPFILES): Add aarch64-tdep.c.
10941 * aarch64-tdep.c: New file.
10942 * aarch64-tdep.h: New file.
10943 * configure.tgt: Add AArch64.
10944 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10945 (aarch64-expedite): New definition.
10946 * features/aarch64-core.xml: New file.
10947 * features/aarch64-fpu.xml: New file.
10948 * features/aarch64-without-fpu.c: New file (generated).
10949 * features/aarch64-without-fpu.xml: New file.
10950 * features/aarch64.c: New file (generated).
10951 * features/aarch64.xml: New file.
10952 * regformats/aarch64-without-fpu.dat: New file (generated).
10953 * regformats/aarch64.dat: New file (generated).
10954
0f1b18ab
JK
109552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10956
10957 * contrib/expect-read1.c: New file.
10958 * contrib/expect-read1.sh: New file.
10959
233d95b5
JK
109602013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10961
10962 * dwarf2read.c (file_file_name): New function with code from
10963 file_full_name.
10964 (file_full_name): Move most of the code to file_file_name.
10965 (macro_start_file): Rename variable full_name to file_name and use
10966 file_file_name for it. Add comp_dir parameter to new_macro_table.
10967 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10968 macro_source_file->filename access by macro_source_fullname call.
10969 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10970 caller.
10971 * macrotab.c (struct macro_table): New field comp_dir.
10972 (macro_include): New variables link_fullname and source_fullname.
10973 Replace any macro_source_file->filename access by macro_source_fullname
10974 call.
10975 (macro_lookup_inclusion): Remove the partial filenames checking code.
10976 (check_for_redefinition): New variables source_fullname and
10977 found_key_fullname. Replace any macro_source_file->filename access by
10978 macro_source_fullname call.
10979 (macro_undef): New variables source_fullname and key_fullname. Replace
10980 any macro_source_file->filename access by macro_source_fullname call.
10981 (macro_lookup_definition): New variables retval and source_fullname.
10982 Replace any macro_source_file->filename access by macro_source_fullname
10983 call.
10984 (foreach_macro): New variable key_fullname. Replace any
10985 macro_source_file->filename access by macro_source_fullname call.
10986 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10987 macro_source_file->filename access by macro_source_fullname call.
10988 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10989 (macro_source_fullname): New function.
10990 * macrotab.h (struct macro_source_file): Extent the filename field
10991 comment.
10992 (new_macro_table): New parameter comp_dir, add a comment for it.
10993 (macro_source_fullname): new declaration.
10994
da235a7c
JK
109952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10996
10997 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10998 this_real_name to outer block. Use it also for
10999 compare_filenames_for_search.
11000 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11001 with dw2_get_real_path for file_matcher, considering also
11002 BASENAMES_MAY_DIFFER.
11003 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11004
fbd9ab74
JK
110052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11006
11007 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11008 to the file_matcher parameter. Pass 0 to it.
11009 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11010 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11011 NULL psymtab_to_fullname result.
11012 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11013 an expected filename instead.
11014 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11015 file_matcher parameter. Call also psymtab_to_fullname, after newly
11016 considering BASENAMES_MAY_DIFFER.
11017 * source.c (rewrite_source_path): Remove static.
11018 * source.h (rewrite_source_path): New declaration.
11019 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11020 the expand_symtabs_matching field. Comment it.
11021 * symtab.c (file_matches): New function comment. Add parameter
11022 basenames, implement it.
11023 (search_symbols_file_matches): Add basenames parameter. Update the
11024 file_matches caller.
11025 (search_symbols): Match FILES also against symtab_to_fullname.
11026 Optimize it for BASENAMES_MAY_DIFFER.
11027
56d397a3
JK
110282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11029
11030 * source.c (print_source_lines_base): Print for TUI also "fullname".
11031 * tui/tui-data.c (init_content_element): Change tui_locator_element
11032 field to full_name.
11033 * tui/tui-data.h (struct tui_locator_element): Likewise.
11034 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11035 tui_update_locator_filename calls to tui_update_locator_fullname.
11036 Replace symtab->filename refererence by symtab_to_fullname call.
11037 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11038 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11039 field to full_name. Replace symtab->filename refererence by
11040 symtab_to_fullname call.
11041 (tui_show_symtab_source): Rename parameter to fullname. Change
11042 tui_locator_element field to full_name.
11043 * tui/tui-stack.c: Include source.h.
11044 (tui_set_locator_filename): Rename the declaration to ...
11045 (tui_set_locator_fullname): ... here. Rename its parameter to
11046 fullname, updates its comment.
11047 (tui_set_locator_info): Rename its parameter to fullname.
11048 (tui_set_locator_filename): Rename the definition to ...
11049 (tui_set_locator_fullname): ... here. Rename its parameter to
11050 fullname, updates its comment. Change tui_locator_element field to
11051 full_name.
11052 (tui_set_locator_info): Rename its parameter to fullname.
11053 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11054 (tui_update_locator_filename): Rename to ...
11055 (tui_update_locator_fullname): ... here. Rename callee to
11056 tui_set_locator_fullname.
11057 (tui_show_frame_info): Replace symtab->filename refererence by
11058 symtab_to_fullname call.
11059 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11060 (tui_update_locator_fullname): ... here.
11061 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11062 tui_update_locator_fullname. Replace symtab->filename refererence by
11063 symtab_to_fullname call.
11064 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11065 Rename the callee to tui_update_locator_fullname.
11066 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11067
05cba821
JK
110682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11069
11070 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11071 by symtab_to_filename_for_display calls.
11072 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11073 (clear_command): New variable sal_fullname, initialize it. Replace
11074 compare_filenames_for_search by filename_cmp with sal_fullname.
11075 (say_where, update_static_tracepoint): Replace symtab->filename
11076 refererences by symtab_to_filename_for_display calls.
11077 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11078 Likewise.
11079 * dwarf2read.c: Include source.h.
11080 (fixup_go_packaging): Replace symtab->filename refererences by
11081 symtab_to_filename_for_display calls.
11082 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11083 Replace symtab->filename refererences by symtab_to_filename_for_display
11084 calls.
11085 (create_sals_line_offset, convert_linespec_to_sals): New variable
11086 fullname, initialize it, replace symtab->filename reference by the
11087 variable.
11088 * linux-fork.c: Include source.h.
11089 (info_checkpoints_command): Replace symtab->filename refererences by
11090 symtab_to_filename_for_display calls.
11091 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11092 by symtab_to_filename_for_display calls.
11093 * mdebugread.c: Include source.h.
11094 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11095 symtab_to_filename_for_display calls.
11096 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11097 (mi_cmd_file_list_exec_source_files): Likewise.
11098 * printcmd.c: Include source.h.
11099 (build_address_symbolic): Replace symtab->filename refererences by
11100 symtab_to_filename_for_display calls.
11101 * psymtab.c (partial_map_symtabs_matching_filename)
11102 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11103 with psymtab_to_fullname.
11104 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11105 by symtab_to_filename_for_display calls.
11106 (stpy_get_filename): New variable filename, initialize it, use instead
11107 of symtab->filename refererences.
11108 (salpy_str): Make variable filename const char *. Replace
11109 symtab->filename refererences by symtab_to_filename_for_display calls.
11110 * skip.c: Include source.h and filenames.h.
11111 (skip_file_command): Remove const from the symtab variable. Replace
11112 symtab->filename refererences by symtab_to_fullname call.
11113 (function_name_is_marked_for_skip): New variables searched_for_fullname
11114 and fullname. Use them to search also with symtab's fullname.
11115 * source.c (find_source_lines): Replace symtab->filename refererences
11116 by symtab_to_filename_for_display calls.
11117 (print_source_lines_base): New variable filename, use it instead of
11118 symtab->filename. Replace symtab->filename refererences by
11119 symtab_to_filename_for_display calls.
11120 (line_info, forward_search_command): Replace symtab->filename
11121 refererences by symtab_to_filename_for_display calls.
11122 (reverse_search_command): Replace symtab->filename refererences by
11123 symtab_to_filename_for_display calls. New variable filename for it.
11124 * stack.c (frame_info): Likewise.
11125 * symmisc.c: Include source.h.
11126 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11127 (maintenance_info_symtabs): Replace symtab->filename refererences by
11128 symtab_to_filename_for_display calls.
11129 * symtab.c (iterate_over_some_symtabs): Call
11130 compare_filenames_for_search also with symtab_to_fullname.
11131 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11132 symtab->filename refererences by symtab_to_filename_for_display calls.
11133 (find_line_symtab): Replace symtab->filename refererences by
11134 symtab_to_filename_for_display calls.
11135 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11136 (print_symbol_info): Make the last parameter const char *. New
11137 variable s_filename. Use it in the function.
11138 (symtab_symbol_info): Make the last_filename variable const char *.
11139 Replace symtab->filename refererences by symtab_to_filename_for_display
11140 calls.
11141 (rbreak_command): New variable fullname. Use it. Replace
11142 symtab->filename refererence by symtab_to_filename_for_display call.
11143 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11144 (print_one_static_tracepoint_marker): Replace symtab->filename
11145 refererences by symtab_to_filename_for_display calls.
11146 * tui/tui-source.c (tui_set_source_content): New variables filename and
11147 s_filename. Replace symtab->filename refererences by this variable.
11148 Replace other symtab->filename refererences by
11149 symtab_to_filename_for_display calls.
11150
1b56eb55
JK
111512013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11152 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 Add a new variable that controls a way in which filenames are
11155 displayed.
11156 * NEWS (set filename-display): New entry.
11157 * source.c (filename_display_basename, filename_display_relative)
11158 (filename_display_absolute, filename_display_kind_names)
11159 (filename_display_string, show_filename_display_string)
11160 (symtab_to_filename_for_display): New.
11161 (_initialize_source): Added initialization of 'filename-display'
11162 variable.
11163 * source.h (symtab_to_filename_for_display): Added declaration.
11164 * stack.c (print_frame): Added new variable and calling of a new
11165 function and condition with this variable. Changed third argument of
11166 calling of a function.
11167
aa079c93
JK
111682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11169
11170 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11171 Rename field reference filename to fullname.
11172 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11173 fullname. New comment for it.
11174 * tui/tui-source.c (tui_set_source_content): Rename field reference
11175 filename to fullname. Initialize field by symtab_to_fullname now.
11176 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11177 reference filename to fullname. Use symtab_to_fullname during
11178 comparison.
11179
652a8996
JK
111802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11181
11182 Code cleanup.
11183 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11184 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11185 filename to fullname. Rename variable this_name to this_fullname.
11186 Lowercase FILENAME_CMP call.
11187 (dw2_find_symbol_file): New comment for the returned string.
11188 (dwarf2_gdb_index_functions): Rename the function to
11189 dw2_expand_symtabs_with_fullname.
11190 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11191 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11192 fullname.
11193 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11194 * symfile.h (struct quick_symbol_functions): Rename field
11195 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11196 parameter filename to fullname. Document returned string meaning for
11197 find_symbol_file.
11198 * symtab.c (find_line_symtab): Rename the called function to
11199 expand_symtabs_with_fullname.
11200
af529f8f
JK
112012013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11202
11203 Code cleanup.
11204 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11205 call of filename_cmp with compare_filenames_for_search.
11206 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11207 is_abs, unify the call of FILENAME_CMP with
11208 compare_filenames_for_search. New gdb_asserts for real_path and name.
11209 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11210 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11211 * symfile.h (struct quick_symbol_functions): Extend the comment for
11212 map_symtabs_matching_filename.
11213 * symtab.c (compare_filenames_for_search): Remove the function comment
11214 relative path requirement. Handle absolute filenames, with a comment.
11215 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11216 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11217 real_path and name. Unify the call of compare_filenames_for_search
11218 with FILENAME_CMP.
11219 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11220
2f202fde
JK
112212013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11222
11223 Code cleanup.
11224 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11225 source_file references by symtab field references. Remove variables
11226 sal and fullname.
11227 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11228 (clear_command, say_where): Replace bp_location field source_file
11229 references by symtab field references.
11230 (bp_location_dtor): Remove the source_file reference.
11231 (update_static_tracepoint): Replace bp_location field source_file
11232 references by symtab field references.
11233 (breakpoint_free_objfile): New function.
11234 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11235 Replace the field source_file by field symtab, extend its comment.
11236 (breakpoint_free_objfile): New declaration.
11237 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11238 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11239 field source_file references by symtab field references.
11240
f5b95b50
JK
112412013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11242
11243 Replace xfullpath calls by gdb_realpath calls.
11244 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11245 function comment.
11246 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11247 Remove it from the iterate_over_some_symtabs call.
11248 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11249 Remove it from the dw2_map_expand_apply calls, remove a block handling
11250 it.
11251 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11252 Remove it from the iterate_over_some_symtabs call.
11253 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11254 Remove it from the partial_map_expand_apply calls, remove a block
11255 handling it. Drop gdb_realpath call and cleanups from the real_path
11256 handling.
11257 * source.c (openp): Drop the comment part about xfullpath. Replace
11258 xfullpath calls by gdb_realpath calls.
11259 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11260 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11261 from method map_symtabs_matching_filename and its comment.
11262 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11263 gdb_realpath call.
11264 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11265 remove it also from the function comment, remove a block handling it.
11266 Drop gdb_realpath call and cleanups from the real_path handling.
11267 (iterate_over_symtabs): Drop variable full_path and its use.
11268 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11269 * utils.c (xfullpath): Remove.
11270 * utils.h (xfullpath): Remove.
11271
d78489bf
AT
112722013-02-01 Andreas Tobler <andreast@fgznet.ch>
11273
11274 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11275 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11276 (ALLDEPFILES): Add ppc64-tdep.c.
11277 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11278 ppc64-tdep.o to gdb_target_obs.
11279 * ppc64-tdep.h: New file.
11280 * ppc64-tdep.c: New file.
11281 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11282 ppc-linux-tdep.c to here.
11283 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11284 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11285 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11286 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11287 from ppc-linux-tdep.c to here.
11288 (ppc64_convert_from_func_ptr_addr): Rename from
11289 ppc64_linux_convert_from_func_ptr_addr to
11290 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11291 here.
11292 * rs6000-tdep.c:
11293 (read_insn): Move from ppc-linux-tdep.c to here.
11294 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11295 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11296 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11297 Removed above functions.
11298 (ppc_linux_init_abi): Adjust.
11299
8db60374
AR
113002013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11301
11302 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11303
f2e5f4ce
AR
113042013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11305
11306 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11307
c1f7d745
PA
113082013-02-01 Pedro Alves <palves@redhat.com>
11309
11310 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11311 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11312
8a92335b
JK
113132013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11314
11315 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11316 files with no separate debug info.
11317 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11318 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11319 only for files with no separate debug info.
11320
8eacb197
TT
113212013-01-31 Tom Tromey <tromey@redhat.com>
11322
11323 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11324 change type.
11325 (struct jit_program_space_data): Rename from jit_inferior_data.
11326 Update comments.
11327 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11328 Change return type. Attach data to program space.
11329 (jit_program_space_data_cleanup): Rename from
11330 jit_inferior_data_cleanup; change argument type.
11331 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11332 change type.
11333 (jit_register_code): Update.
11334 (jit_update_inferior_cache): Remove.
11335 (jit_breakpoint_deleted): Get jit data from the location's program
11336 space.
11337 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11338 'ps_data', change type.
11339 (jit_inferior_init, jit_breakpoint_re_set_internal)
11340 (jit_event_handler): Update.
11341 (free_objfile_data): Get data from objfile's program space.
11342 (_initialize_jit): Update.
11343
f25c0135
TT
113442013-01-31 Tom Tromey <tromey@redhat.com>
11345
11346 PR gdb/13987:
11347 * jit.c (struct jit_inferior_data) <cached_code_address,
11348 jit_breakpoint>: New fields.
11349 (jit_breakpoint_re_set_internal): Fix logging. Only create
11350 breakpoint if cached address has changed.
11351 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11352 functions.
11353 (_initialize_jit): Register breakpoint deleted observer.
11354
974a734b
AR
113552013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11356
11357 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11358 (save_infcall_suspend_state): Ifdef out unused inf.
11359 (restore_infcall_suspend_state): Ifdef out unused inf.
11360 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11361 (jit_frame_sniffer): Remove unused inf_data.
11362
df54f8eb
AR
113632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11364
11365 * c-exp.y (classify_inner_name): Remove unused type.
11366 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11367 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11368 need_escape.
11369 (c_get_string): Remove unused kind.
11370 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11371
5799c0b9
AR
113722013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11373
11374 * charset.c (intermediate_encoding): Remove unused i.
11375 * completer.c (signal_completer): Remove unused i.
11376 * continuations.c (discard_my_continuations_1): Remove unused
11377 continuation_ptr.
11378 * corelow.c (core_close): Remove unuseD name.
11379 (get_core_siginfo): Remove unused pid.
11380 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11381 i, cps.
11382 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11383 (loclist_describe_location): Remove unused first.
11384 * event-top.c (command_line_handler): Remove unused got_eof.
11385 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11386 (resize_section_table): Remove unused old_value.
11387 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11388 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11389 * i386-tdep.c (i386_process_record): Remove unused rex.
11390 * infcmd.c (get_return_value): Remove unused uiout.
11391 * jv-lang.c (type_from_class): Remove unused is_array.
11392 * jv-valprint.c (java_val_print): Remove unused i.
11393 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11394 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11395 * m2-typeprint.c (m2_print_type): Remove unused code.
11396 * macroexp.c (get_character_constant): Remove unused body_start.
11397 (macro_stringify): Remove unused result.
11398 * objc-lang.c (find_methods): Remove unused gdbarch.
11399 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11400 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11401 * stack.c (print_frame_args): Remove unused summary.
11402 * thread.c (thread_apply_command): Remove unused p.
11403 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11404 * valops.c (search_struct_method): Remove unused skip.
11405 * valprint.c (generic_val_print): Remove unused byte_order.
11406 * varobj.c (varobj_update): Remove unused changed.
11407 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11408 (alias_command): Remove unused c.
11409 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11410 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11411 format.
11412 (mi_cmd_data_write_memory): Remove unused word_format.
11413 (mi_cmd_data_write_memory_bytes): Remove unused r.
11414 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11415 p_start, p_end.
11416 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11417 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11418 line_width.
11419
c656bca5
AR
114202013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11421
11422 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11423 * symtab.c (iterate_over_symtabs): Remove unused s.
11424 (find_pc_sect_symtab): Remove unused pspAce.
11425 (find_pc_sect_line): Remove unused alt_symtab.
11426 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11427 (completion_list_add_name): Remove unused newsize.
11428
7078baeb
TT
114292013-01-31 Tom Tromey <tromey@redhat.com>
11430
11431 PR c++/14998:
11432 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11433 TYPE_CODE_FUNC.
11434
c2e8b827
AR
114352013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11436
11437 * target.c (target_read_string): Remove unused origlen.
11438
0e43993a
AR
114392013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11440
11441 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11442 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11443 * ax-general.c (ax_print): Remove unused is_float.
11444 * blockframe.c (block_innermost_frame): Remove unused start, end.
11445 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11446
765a97ab
AR
114472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11448
11449 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11450 (svr4_read_so_list): Remove unused lmo.
11451 * solib-target.c (solib_target_relocate_section_addresses): Remove
11452 unused flags.
11453
a99dad3d
TT
114542013-01-30 Tom Tromey <tromey@redhat.com>
11455
11456 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11457
3bff1ecd
TT
114582013-01-30 Tom Tromey <tromey@redhat.com>
11459
11460 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11461 * utils.c (gnu_debuglink_crc32): Remove.
11462 * utils.h (gnu_debuglink_crc32): Don't declare.
11463
7d455152
TT
114642013-01-30 Tom Tromey <tromey@redhat.com>
11465
11466 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11467 (read_structure_type, read_enumeration_type): Remove cast.
11468
abee88f2
TT
114692013-01-30 Tom Tromey <tromey@redhat.com>
11470
11471 * dwarf2read.c (read_namespace_type): Remove cast.
11472 (read_typedef): Likewise.
11473
8d9878a4
TT
114742013-01-29 Tom Tromey <tromey@redhat.com>
11475
11476 * dwarf2read.c (free_dwo_file): Remove assert.
11477
a543d2a9
TT
114782013-01-29 Tom Tromey <tromey@redhat.com>
11479
11480 * value.c (deprecated_set_value_modifiable): Remove.
11481 * value.h (deprecated_set_value_modifiable): Remove.
11482
bed911e5
DE
114832013-01-28 Doug Evans <dje@google.com>
11484
11485 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11486 to addresses from dwo files.
11487
28c64fc2
SCR
114882013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11489
11490 * valops.c (find_overload_match): Remove unused argument 'lax'.
11491 * value.h: Remove unused argument 'lax' from the declaration of
11492 find_overload_match.
11493 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11494 to find_overload_match.
11495 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11496 argument to find_overload_match.
11497
4d4ec4e5
TT
114982013-01-25 Tom Tromey <tromey@redhat.com>
11499
11500 * dwarf2read.c (processing_has_namespace_info): Remove.
11501 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11502 (process_die, read_func_scope, dwarf2_start_symtab)
11503 (new_symbol_full): Update.
11504
195a3f6c
TT
115052013-01-25 Tom Tromey <tromey@redhat.com>
11506
11507 * cp-namespace.c (cp_set_block_scope): Remove.
11508 * cp-support.h (cp_set_block_scope): Remove.
11509 * dbxread.c: Include block.h.
11510 (cp_set_block_scope): New function.
11511 (process_one_symbol): Update.
11512 * dwarf2read.c (read_func_scope): Use block_set_scope.
11513
8ba0730a
PA
115142013-01-25 Pedro Alves <palves@redhat.com>
11515
11516 * remote.c (add_current_inferior_and_thread): Tweak comment.
11517
12aaed36
TT
115182013-01-25 Tom Tromey <tromey@redhat.com>
11519
11520 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11521 (cp_add_using_directive): Add 'copy_names' argument.
11522 * cp-support.h (cp_add_using_directive): Update.
11523 (struct using_direct) <import_src, import_dest, alias,
11524 declaration>: Now const.
11525 * dwarf2read.c (read_import_statement): Use obconcat.
11526 Don't copy names passed to cp_add_using_directive.
11527
7fc75ca7
TT
115282013-01-25 Tom Tromey <tromey@redhat.com>
11529
11530 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11531
3405876a
PA
115322013-01-25 Pedro Alves <palves@redhat.com>
11533
11534 * remote.c (stop_reply_extract_thread): New.
11535 (add_current_inferior_and_thread): New parameter 'wait_status'.
11536 Handle it.
11537 (remote_start_remote): Pass wait status to
11538 add_current_inferior_and_thread.
11539 (extended_remote_run): Update comment.
11540 (extended_remote_create_inferior_1): Pass wait status to
11541 add_current_inferior_and_thread.
11542
8954db33
AB
115432013-01-25 Andrew Burgess <aburgess@broadcom.com>
11544 Ulrich Weigand <uweigand@de.ibm.com>
11545
11546 * valarith.c (value_vector_widen): New function for replicating a
11547 scalar into a vector.
11548 (value_binop): Use value_vector_widen to widen scalar to vector
11549 rather than casting, this better matches gcc C behaviour.
11550 * valops.c (value_casst): Update logic for casting between vector
11551 types, and for casting from scalar to vector, try to match gcc C
11552 behaviour.
11553 * value.h (value_vector_widen): Declare.
11554 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11555 function, handle special case for casting scalar to vector.
11556 (opencl_relop): Use opencl_value_cast.
11557 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11558 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11559 in order to use opencl_value_cast.
11560
843b20dc
YQ
115612013-01-25 Yao Qi <yao@codesourcery.com>
11562
11563 * event-loop.c: Include "queue.h".
11564 (gdb_event_p): New typedef.
11565 (DECLARE_QUEUE_P): Use.
11566 (DEFINE_QUEUE_P): Use.
11567 (async_queue_event): Remove.
11568 (gdb_event_xfree): New.
11569 (initialize_event_loop): New.
11570 (process_event): Use QUEUE macros.
11571 (event_queue): Remove.
11572 (gdb_wait_for_event): Caller update.
11573 (check_async_event_handlers): Likewise.
11574 (poll_timers): Likewise.
11575 * event-loop.h (initialize_event_loop): Declare.
11576 * event-loop.c (gdb_event_xfree): New.
11577 * top.c (gdb_init): Call initialize_event_loop.
11578
20ad8856
YQ
115792013-01-25 Yao Qi <yao@codesourcery.com>
11580
11581 * event-loop.c (async_queue_event): Remove one parameter
11582 'position'. Remove code handling 'position' == TAIL.
11583 (gdb_wait_for_event): Caller update.
11584 (check_async_event_handlers): Caller update.
11585 (poll_timers): Caller update.
11586 * event-loop.h (enum queue_position): Remove.
11587
3bbbe775
MK
115882013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11589
11590 * MAINTAINERS: Update my email.
11591
a87d9ac4
YQ
115922013-01-25 Yao Qi <yao@codesourcery.com>
11593
11594 * main.c (print_gdb_help): Remove "--epoch" from the help
11595 message.
11596
2077afdd
TD
115972013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11598
11599 * symtab.c (skip_prologue_using_sal): Consider a file
11600 change the same as an increased line number
11601
63da4037
TD
116022013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11603
30e8ee25 11604 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11605
45e6c716
TT
116062013-01-24 Tom Tromey <tromey@redhat.com>
11607
11608 * ada-lang.h (ada_decode_symbol): Make return type const.
11609 * ada-lang.c (ada_decode_symbol): Likewise.
11610
b1ae631a
DE
116112013-01-23 Doug Evans <dje@google.com>
11612
11613 * linespec.c (find_linespec_symbols): Make static.
11614
55a78401
SDJ
116152013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11616
11617 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11618 type on float conversion for complex type.
11619
bea883fd
SCR
116202013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11621
11622 Add a new class gdb.Architecture which exposes GDB's
11623 internal representation of architecture via GDB Python API.
11624 * Makefile.in: Add entries corresponding to the new file
11625 python/py-arch.c.
11626 * NEWS (Python Scripting): Add entries for the new class
11627 gdb.Architecture and the new method gdb.Frame.architecture.
11628 * python/py-arch.c: Implement gdb.Architecture class.
11629 * python/py-frame.c (frapy_arch): Implement the method
11630 gdb.Frame.architecture().
11631 (frame_object_methods): Add 'architecture' to the method table.
11632 * python/python-internal.h: Add declarations of new utility
11633 functions.
11634 * python/python.c (_initialize_python): Initialize
11635 gdb.Architecture class.
11636
796a7ff8
DE
116372013-01-23 Doug Evans <dje@google.com>
11638
11639 Work around binutils/15021.
11640 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11641 type_unit_group out of union s. All uses updated.
11642 (read_index_from_section): Watch for index version 8.
11643 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11644 an imported symtab.
11645 (write_psymtabs_to_index): Increment version number to 8.
11646
0928e93d
PA
116472013-01-22 Pedro Alves <palves@redhat.com>
11648
11649 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11650 user-visible.
11651
9c97429f
PA
116522013-01-22 Pedro Alves <palves@redhat.com>
11653
11654 * annotate.c (annotate_breakpoints_changed): Rename to ...
11655 (annotate_breakpoints_invalid): ... this. Make static.
11656 (breakpoint_changed): Adjust.
11657 (_initialize_annotate): Always install the observers. Install a
11658 "breakpoint_created" observer.
11659 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11660 * breakpoint.c (set_breakpoint_condition)
11661 (breakpoint_set_commands, do_map_commands_command)
11662 (init_raw_breakpoint, clear_command, set_ignore_count)
11663 (enable_breakpoint_disp): No longer call
11664 annotate_breakpoints_changed.
11665
bd00c694
PA
116662013-01-22 Pedro Alves <palves@redhat.com>
11667
11668 * annotate.c: Include "inferior.h".
11669 (frames_invalid_emitted)
11670 (breakpoints_invalid_emitted): New globals.
11671 (async_background_execution_p): New function.
11672 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11673 emitting the annotation if it has already been emitted.
11674 (annotate_display_prompt): New function.
11675 * annotate.h (annotate_display_prompt): New declaration.
11676 * event-top.c: Include annotate.h.
11677 (display_gdb_prompt): Call annotate_display_prompt.
11678
187d10dd
PA
116792013-01-22 Pedro Alves <palves@redhat.com>
11680
11681 * annotate.c (ignore_count_changed): Delete.
11682 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11683 (annotate_ignore_count_change): Delete.
11684 (annotate_stopped): Don't emit a delayed breakpoints-changed
11685 annotation.
11686 * annotate.h (annotate_ignore_count_change): Delete.
11687 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11688 annotate_ignore_count_change.
11689
d84cf7eb
TT
116902013-01-22 Tom Tromey <tromey@redhat.com>
11691
11692 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11693 require_rvalue for a register location.
11694
8f1d5693
MK
116952013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11696
11697 * breakpoint.c (print_one_breakpoint_location): Add MI
11698 field 'thread-groups' when printing a breakpoint.
11699 (output_thread_groups): New function.
11700
aa6199c6
SCR
117012013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11702
11703 * python/lib/gdb/commands/explore.py
11704 (CompoundExplorer.explore_expr): Correct the name of a method
11705 being invoked.
11706 (ExploreTypeCommand.invoke): Add a missing 'return'.
11707
d2afef13
TT
117082013-01-21 Tom Tromey <tromey@redhat.com>
11709
11710 * gdb_obstack.h (obconcat): Move declaration here, from...
11711 * symfile.h (obconcat): ... here.
11712 * gdb_obstack.c: New file.
11713 (obconcat): Move from...
11714 * symfile.c (obconcat): ... here.
11715 * Makefile.in (SFILES): Add gdb_obstack.c.
11716 (COMMON_OBS): Add gdb_obstack.o.
11717
10f0c4bb
TT
117182013-01-21 Tom Tromey <tromey@redhat.com>
11719
11720 * symfile.h (obsavestring): Don't declare.
11721 * symfile.c (obsavestring): Remove.
11722 * ada-exp.y: Use obstack_copy0, not obsavestring.
11723 * ada-lang.c: Use obstack_copy0, not obsavestring.
11724 * coffread.c: Use obstack_copy0, not obsavestring.
11725 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11726 * dbxread.c: Use obstack_copy0, not obsavestring.
11727 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11728 * jit.c: Use obstack_copy0, not obsavestring.
11729 * mdebugread.c: Use obstack_copy0, not obsavestring.
11730 * psymtab.c: Use obstack_copy0, not obsavestring.
11731 * stabsread.c: Use obstack_copy0, not obsavestring.
11732 * xcoffread.c: Use obstack_copy0, not obsavestring.
11733
86f62fd7
TT
117342013-01-21 Tom Tromey <tromey@redhat.com>
11735
11736 * dwarf2read.c (fixup_go_packaging): Save package name
11737 on objfile obstack.
11738 * gdbtypes.c (init_type): Don't copy name.
11739
15d034d0
TT
117402013-01-21 Tom Tromey <tromey@redhat.com>
11741
11742 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11743 const.
11744 (struct attribute) <u.str>: Now const.
11745 (struct fnfieldlist) <name>: Now const.
11746 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11747 (partial_die_parent_scope): Make return type const.
11748 (partial_die_full_name, add_partial_symbol): Update.
11749 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11750 'name' const.
11751 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11752 (read_file_scope, read_func_scope, dwarf2_add_field)
11753 (dwarf2_add_member_fn, read_structure_type)
11754 (process_enumeration_scope, read_array_type, read_module_type)
11755 (read_base_type, read_subrange_type): Update.
11756 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11757 (new_symbol_full, guess_full_die_structure_name): Update.
11758 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11759 (dwarf2_name): Return const type.
11760 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11761 const.
11762
748e18ae
TT
117632013-01-21 Tom Tromey <tromey@redhat.com>
11764
11765 * gdbtypes.c (init_type): Make 'name' const.
11766 * gdbtypes.h (init_type): Update.
11767
46212e0b
TT
117682013-01-21 Tom Tromey <tromey@redhat.com>
11769
11770 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11771 (start_symtab): Make 'name' and 'dirname' const. Use
11772 set_last_source_file.
11773 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11774 (last_source_file): Define. Now static.
11775 (set_last_source_file, get_last_source_file): New functions.
11776 * buildsym.h (last_source_file): Don't declare.
11777 (start_symtab): Update.
11778 (set_last_source_file, get_last_source_file): Declare.
11779 * coffread.c (complete_symtab): Use set_last_source_file.
11780 (coff_end_symtab): Likewise.
11781 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11782 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11783 set_last_source_file.
11784 (process_one_symbol): Use get_last_source_file.
11785 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11786 (psymtab_to_symtab_1): Use get_last_source_file.
11787 * xcoffread.c (process_linenos): Use get_last_source_file.
11788 (complete_symtab): Use set_last_source_file.
11789 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11790 (scan_xcoff_symtab): Use set_last_source_file.
11791
9d2ceabe
TT
117922013-01-21 Tom Tromey <tromey@redhat.com>
11793
11794 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11795 (symbol_set_names): Remove casts. Handle field const-ness.
11796
cfc594ee
TT
117972013-01-21 Tom Tromey <tromey@redhat.com>
11798
11799 * dwarf2read.c (new_symbol_full): Remove cast.
11800 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11801 * symtab.h (symbol_set_demangled_name): Update.
11802
5484b13a
TT
118032013-01-21 Tom Tromey <tromey@redhat.com>
11804
11805 * main.c (captured_main): Call bfd_init.
11806
1605ef26
TT
118072013-01-21 Tom Tromey <tromey@redhat.com>
11808
11809 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11810 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11811 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11812 * NEWS: Update.
11813
3b74cdc3
JK
118142013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11815
11816 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11817
5a352474
JK
118182013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11819
11820 Fix gdb.fortran/common-block.exp crash in PIE mode.
11821 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11822 LOC_COMMON_BLOCK.
11823 * f-valprint.c (info_common_command_for_block): Expect
11824 LOC_COMMON_BLOCK in gdb_assert.
11825 * symtab.h (struct general_symbol_info): Update comment for the
11826 common_block member.
11827 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11828 (enum address_class): New member LOC_COMMON_BLOCK.
11829
c60797fd
DB
118302013-01-18 David Blaikie <dblaikie@gmail.com>
11831
11832 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11833
46f35228
TT
118342013-01-18 Tom Tromey <tromey@redhat.com>
11835
11836 PR c++/14999:
11837 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11838 Call require_rvalue.
11839
257e7a09
YQ
118402013-01-18 Yao Qi <yao@codesourcery.com>
11841
11842 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11843 (dbx_read_symtab): New declaration.
11844 (dbx_psymtab_to_symtab): Delete.
11845 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11846 Rename parameter PST to SELF. Exchanged two parameters.
11847 (start_psymtab): Caller update.
11848 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11849 (dwarf2_read_symtab): New declaration.
11850 (dwarf2_psymtab_to_symtab): Delete.
11851 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11852 Rename parameter PST to SELF. Exchanged two parameters.
11853 (create_partial_symtab): Caller update.
11854 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11855 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11856 Rename parameter PST to SELF. Exchanged two parameters.
11857 (parse_partial_symbols, new_psymtab): Caller update.
11858 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11859 two parameters.
11860 * psymtab.c (psymtab_to_symtab): Caller update.
11861 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11862 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11863 Rename parameter PST to SELF. Exchanged two parameters.
11864 (xcoff_start_psymtab): Caller update.
11865
0de5618e
YQ
118662013-01-18 Yao Qi <yao@codesourcery.com>
11867
11868 * infrun.c (proceed): Rename local variable 'oneproc' to
11869 'force_step'.
11870
5c04624b
DE
118712013-01-17 Doug Evans <dje@google.com>
11872
848e3e78
DE
11873 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11874 (dw2_build_type_unit_groups): Delete. All uses updated.
11875
5c04624b
DE
11876 * symtab.h (struct symbol_search): Add comment.
11877
d84fca2c
JK
118782013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11879
11880 * symtab.c (compare_filenames_for_search): New comment for
11881 HAS_DRIVE_SPEC.
11882
6108433d
TT
118832013-01-17 Tom Tromey <tromey@redhat.com>
11884
11885 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11886
c89ffd86
JK
118872013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11888
11889 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11890 initialize it by existing make_cleanup. Call new do_cleanups.
11891
db2b2972
TT
118922013-01-17 Tom Tromey <tromey@redhat.com>
11893
11894 * cp-abi.c (cp_abi_completer): New function.
11895 (_initialize_cp_abi): Set completer for "set cp-abi".
11896
be7d37a2
TT
118972013-01-17 Tom Tromey <tromey@redhat.com>
11898
11899 * mem-break.c: Remove obsolete comment.
11900 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11901
c9fb1240
SD
119022012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11903
11904 * jit.c (jit_reader_load_command): Interpret the jit reader name
11905 as an absolute path if it begins with a forward slash.
11906
db334a01
SD
119072012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11908
11909 PR gdb/14550
11910
11911 * jit.c (finalize_symtab): Ensure that only the global block has a
11912 NULL superblock.
11913
7d928dac
PA
119142013-01-17 Pedro Alves <palves@redhat.com>
11915
11916 * acinclude.m4: Include ../config/plugins.m4,
11917 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11918 * Makefile.in (aclocal_m4_deps): Update.
11919 * aclocal.m4: Renegerate.
11920
fb8cf7c5
DE
119212013-01-16 Doug Evans <dje@google.com>
11922
11923 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11924
ab04a2af
TT
119252013-01-16 Pedro Alves <palves@redhat.com>
11926 Tom Tromey <tromey@redhat.com>
11927
11928 PR cli/7221:
11929 * NEWS: Add "catch signal".
11930 * breakpoint.c (base_breakpoint_ops): No longer static.
11931 (bpstat_explains_signal): New function.
11932 (init_catchpoint): No longer static.
11933 (base_breakpoint_explains_signal): New function.
11934 (base_breakpoint_ops): Initialize new field.
11935 * breakpoint.h (enum bpstat_signal_value): New.
11936 (struct breakpoint_ops) <explains_signal>: New field.
11937 (bpstat_explains_signal): Remove macro, declare as function.
11938 (base_breakpoint_ops, init_catchpoint): Declare.
11939 * break-catch-sig.c: New file.
11940 * inferior.h (signal_catch_update): Declare.
11941 * infrun.c (signal_catch): New global.
11942 (handle_syscall_event): Update for change to
11943 bpstat_explains_signal.
11944 (handle_inferior_event): Likewise. Always handle random signals
11945 via bpstats.
11946 (signal_cache_update): Check signal_catch.
11947 (signal_catch_update): New function.
11948 (_initialize_infrun): Initialize signal_catch.
11949 * Makefile.in (SFILES): Add break-catch-sig.c.
11950 (COMMON_OBS): Add break-catch-sig.o.
11951
8ac3646f
TT
119522013-01-16 Tom Tromey <tromey@redhat.com>
11953
11954 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11955 (print_one_catch_solib, print_one_catch_syscall)
11956 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11957 "catch-type".
11958
5a18e302
YQ
119592013-01-16 Yao Qi <yao@codesourcery.com>
11960
11961 * printcmd.c (current_display_number): Make it static.
11962
3f01d0d0
YQ
119632013-01-16 Yao Qi <yao@codesourcery.com>
11964
11965 * infcmd.c (step_once): Don't check '!single_inst' as it was
11966 checked before.
11967
1ed59174
JK
119682013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11969
11970 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11971
44478ab3
TT
119722013-01-14 Tom Tromey <tromey@redhat.com>
11973
11974 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11975 set command.
11976 * command.h (add_setshow_string_noescape_cmd): Update.
11977 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11978 (complete_set_gnutarget): New function.
11979 (_initialize_core): Set the "set gnutarget" completer.
11980
06d66ee9
TT
119812013-01-14 Tom Tromey <tromey@redhat.com>
11982
11983 PR symtab/14442:
11984 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11985 (c_type_print_modifier): Likewise.
11986 * dwarf2read.c (read_tag_restrict_type): New function.
11987 (read_type_die_1): Handle DW_TAG_restrict_type.
11988 * gdbtypes.c (make_restrict_type): New function.
11989 (recursive_dump_type): Handle TYPE_RESTRICT.
11990 * gdbtypes.h (enum type_flag_values): Renumber.
11991 (enum type_instance_flag_value): Add
11992 TYPE_INSTANCE_FLAG_RESTRICT.
11993 (TYPE_RESTRICT): New macro.
11994 (make_restrict_type): Declare.
11995
c9bf0622
TT
119962013-01-14 Tom Tromey <tromey@redhat.com>
11997
11998 PR symtab/14931:
11999 * psymtab.c (struct psymtab_state): New.
12000 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12001 functions.
12002 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12003 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12004
44d594fd
PA
120052013-01-14 Richard Sharman <richard_sharman@mitel.com>
12006 Pedro Alves <palves@redhat.com>
12007
12008 PR remote/14786
12009
12010 * remote.c (remote_threads_info): Make a copy of the reply from
12011 qfThreadInfo and use that instead of rs->buf.
12012
442e4d9c
YQ
120132013-01-14 Yao Qi <yao@codesourcery.com>
12014
12015 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12016 (dbx_psymtab_to_symtab): Likewise.
12017 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12018 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12019 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12020
5b12a61c
JK
120212013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12022
12023 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12024 make_cleanup_restore_current_language. Call set_language. Move
12025 OLD_CHAIN and INNER_CHAIN cleanups.
12026 * utils.c (do_restore_current_language)
12027 (make_cleanup_restore_current_language): New functions.
12028 * utils.h (make_cleanup_restore_current_language): New declaration.
12029
f0a4b570
JK
120302013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12031
12032 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12033 non-existing files.
12034
57b3c00c
JK
12035 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12036 non-existing files if FILENAME is already absolute.
12037
daefa854
JK
120382013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12039
12040 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12041 fputs_filtered. Append trailing newline.
12042
ca9c6ee2
YQ
120432013-01-11 Yao Qi <yao@codesourcery.com>
12044 Stan Shebs <stan@codesourcery.com>
12045
12046 * psymtab.c (init_psymbol_list): Clarify the comment.
12047
f28045c2
YQ
120482013-01-11 Yao Qi <yao@codesourcery.com>
12049
12050 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12051 (update_dprintf_command_list): Assert that 'printf_line' is
12052 non-null. Remove condition check.
12053
da5132d3
JK
120542013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12055
12056 Code cleanup.
12057 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12058 type const char *.
12059 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12060 const char *.
12061 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12062
843e694d
AG
120632013-01-09 Anthony Green <green@moxielogic.com>
12064
12065 * cp-abi.c (cplus_print_vtable): Don't return value from void
12066 function.
12067 * ada-lang.c (re_set_catch_assert): Ditto.
12068
da51c347
DE
120692013-01-09 Doug Evans <dje@google.com>
12070
12071 * symfile.h (quick_symbol_functions): Delete member
12072 pre_expand_symtabs_matching. All uses removed.
12073 * dwarf2read.c (dw2_lookup_symbol): Implement.
12074 (dw2_do_expand_symtabs_matching): Delete.
12075 (dw2_pre_expand_symtabs_matching): Delete.
12076 (struct dw2_symtab_iterator): New type.
12077 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12078 (dw2_expand_symtabs_for_function): Rewrite.
12079 (dwarf2_gdb_index_functions): Update.
12080 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12081 (psym_functions): Update.
12082
b2259038
TT
120832013-01-09 Tom Tromey <tromey@redhat.com>
12084
12085 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12086 * configure: Rebuild.
12087 * configure.ac: Add somread.o to the build if BFD has SOM
12088 support.
12089 * somread.c: Include som/aout.h, not syms.h.
12090 (som_symtab_read): Use som_external_symbol_dictionary_record.
12091 Unpack records manually.
12092 (_initialize_somread): Declare.
12093
bdad4180
MF
120942012-01-08 Mike Frysinger <vapier@gentoo.org>
12095
12096 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12097 Cast return_address to 64bits.
12098
03cdf680
HZ
120992013-01-08 Hui Zhu <hui_zhu@mentor.com>
12100
12101 * printcmd.c: Remove define of function output_command.
12102 * tracepoint.c: Remove extern of function output_command.
12103 * valprint.h: (output_command): New extern.
12104
8a808554
TT
121052013-01-07 Tom Tromey <tromey@redhat.com>
12106
12107 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12108 Remove.
12109 (objc_language_defn): Use c_printchar, c_printstr,
12110 c_emit_char.
12111
e93a8774
TT
121122013-01-07 Tom Tromey <tromey@redhat.com>
12113
12114 PR cli/7719:
12115 * NEWS: Update.
12116 * ada-valprint.c (printstr, print_field_values): Remove
12117 "inspect_it" code.
12118 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12119 code.
12120 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12121 code.
12122 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12123 * main.c (captured_main): Remove "epoch" argument.
12124 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12125 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12126 * p-valprint.c (pascal_object_print_value_fields): Remove
12127 "inspect_it" code.
12128 * printcmd.c (print_command_1): Remove 'inspect' argument.
12129 (print_command, call_command): Update.
12130 (inspect_command): Remove.
12131 (_initialize_printcmd): Make "inspect" an alias for "print".
12132 * top.c (epoch_interface): Remove.
12133 * top.h (epoch_interface): Remove.
12134 * valprint.c (user_print_options): Update.
12135 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12136 * valprint.h (struct value_print_options) <inspect_it>: Remove
12137 field.
12138
121392013-01-04 Tom Tromey <tromey@redhat.com>
12140
12141 * valprint.h (read_string): Add 'extern'.
12142
b967eb24
JB
121432013-01-07 Joel Brobecker <brobecker@adacore.com>
12144
12145 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12146 used to decide whether to define darwin_read_dyld_info or not.
12147
78a8b30e
PM
121482013-01-03 Pierre Muller <muller@sourceware.org>
12149
12150 * main.c (relocate_gdb_directory): Avoid calling stat function
12151 if DIR is empty.
12152
50da2f25
YQ
121532013-01-03 Yao Qi <yao@codesourcery.com>
12154
12155 * psymtab.c (fixup_psymbol_section): Update declaration.
12156 (fixup_psymbol_section): Remove code returning value.
12157
e7e8980f
YQ
121582013-01-03 Yao Qi <yao@codesourcery.com>
12159
12160 * symtab.h: Remove some out of date comments.
12161 (enum exception_event_kind): Move it ...
12162 * breakpoint.c: ... here.
12163
569283d4
MF
121642013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12165
9f9d9a96 12166 PR gdb/14405
569283d4
MF
12167 * darwin-nat.c (darwin_read_dyld_info): Only build if
12168 TASK_DYLD_INFO_COUNT is defined.
12169 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12170 TASK_DYLD_INFO_COUNT is defined.
12171
2e36fbea
TT
121722013-01-02 Tom Tromey <tromey@redhat.com>
12173
12174 * symfile.h (struct ecoff_debug_hack): Remove.
12175 * objfiles.c: Don't include mdebugread.h.
12176
4f05add4
TT
121772013-01-02 Tom Tromey <tromey@redhat.com>
12178
12179 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12180 * configure.ac: Check for Mach-O support in BFD. Update
12181 CONFIG_OBS.
12182 * configure: Rebuild.
12183
def63ff0
TT
121842013-01-02 Tom Tromey <tromey@redhat.com>
12185
12186 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12187 * configure.ac: Use GDB_AC_CHECK_BFD.
12188 * configure: Rebuild.
12189
60c5dd93
MK
121902013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12191
12192 * MAINTAINERS: Update my email.
12193
6e58437e
JB
121942013-01-01 Joel Brobecker <brobecker@adacore.com>
12195
12196 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12197
627fe805
JB
121982013-01-01 Joel Brobecker <brobecker@adacore.com>
12199
12200 * rs6000-nat.c (bss_data_overlap): New function.
12201 (vmap_symtab): Use it to adjust the .bss section's offset.
12202
28e7fd62
JB
122032013-01-01 Joel Brobecker <brobecker@adacore.com>
12204
12205 Update year range in copyright notice of all files.
12206
e93a8774 122072013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12208
12209 * top.c (print_gdb_version): Update copyright year.
12210
72b20e9c 12211For older changes see ChangeLog-2012.
c906108c
SS
12212\f
12213Local Variables:
12214mode: change-log
12215left-margin: 8
12216fill-column: 74
12217version-control: never
57da7796 12218coding: utf-8
c906108c 12219End:
This page took 2.117727 seconds and 4 git commands to generate.