don't check for stddef.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
161d1bec
TT
12013-11-18 Tom Tromey <tromey@redhat.com>
2
3 * config.in: Rebuild.
4 * configure: Rebuild.
5 * configure.ac: Don't check for stddef.h.
6 * defs.h: Unconditionally include stddef.h. Remove duplicate
7 inclusion.
8
2978b111
TT
92013-11-18 Tom Tromey <tromey@redhat.com>
10
11 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
12 * common/gdb_dirent.h: Remove.
13 * common/filestuff.c: Use dirent.h.
14 * common/linux-osdata.c: Use dirent.h.
15 (NAMELEN): Define.
16 * config.in: Rebuild.
17 * configure: Rebuild.
18 * configure.ac: Don't use AC_HEADER_DIRENT.
19 * linux-fork.c: Use dirent.h
20 * linux-nat.c: Use dirent.h.
21 * nto-procfs.c: Use dirent.h.
22 * procfs.c: Use dirent.h.
23
e26b6bb0
TT
242013-11-18 Tom Tromey <tromey@redhat.com>
25
26 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
27 * gnulib/aclocal.m4: Update.
28 * gnulib/config.in: Update.
29 * gnulib/configure: Update.
30 * gnulib/import/Makefile.am: Update.
31 * gnulib/import/Makefile.in: Update.
32 * gnulib/import/dirent.in.h: New.
33 * gnulib/import/m4/dirent_h.m4: New.
34 * gnulib/import/m4/gnulib-cache.m4: Update.
35 * gnulib/import/m4/gnulib-comp.m4: Update.
36
a3d08894
TT
372013-11-18 Tom Tromey <tromey@redhat.com>
38
39 * configure: Rebuild.
40 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
41 strings.h.
42
0e9f083f
TT
432013-11-18 Tom Tromey <tromey@redhat.com>
44
45 * common/gdb_string.h: Remove.
46 * aarch64-tdep.c: Use string.h, not gdb_string.h.
47 * ada-exp.y: Use string.h, not gdb_string.h.
48 * ada-lang.c: Use string.h, not gdb_string.h.
49 * ada-lex.l: Use string.h, not gdb_string.h.
50 * ada-typeprint.c: Use string.h, not gdb_string.h.
51 * ada-valprint.c: Use string.h, not gdb_string.h.
52 * aix-thread.c: Use string.h, not gdb_string.h.
53 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
54 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
55 * alpha-nat.c: Use string.h, not gdb_string.h.
56 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
57 * alpha-tdep.c: Use string.h, not gdb_string.h.
58 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
59 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
60 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
61 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
62 * amd64-nat.c: Use string.h, not gdb_string.h.
63 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
64 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
65 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
66 * arch-utils.c: Use string.h, not gdb_string.h.
67 * arm-linux-nat.c: Use string.h, not gdb_string.h.
68 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
69 * arm-tdep.c: Use string.h, not gdb_string.h.
70 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
71 * armbsd-tdep.c: Use string.h, not gdb_string.h.
72 * armnbsd-nat.c: Use string.h, not gdb_string.h.
73 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
74 * armobsd-tdep.c: Use string.h, not gdb_string.h.
75 * avr-tdep.c: Use string.h, not gdb_string.h.
76 * ax-gdb.c: Use string.h, not gdb_string.h.
77 * ax-general.c: Use string.h, not gdb_string.h.
78 * bcache.c: Use string.h, not gdb_string.h.
79 * bfin-tdep.c: Use string.h, not gdb_string.h.
80 * breakpoint.c: Use string.h, not gdb_string.h.
81 * build-id.c: Use string.h, not gdb_string.h.
82 * buildsym.c: Use string.h, not gdb_string.h.
83 * c-exp.y: Use string.h, not gdb_string.h.
84 * c-lang.c: Use string.h, not gdb_string.h.
85 * c-typeprint.c: Use string.h, not gdb_string.h.
86 * c-valprint.c: Use string.h, not gdb_string.h.
87 * charset.c: Use string.h, not gdb_string.h.
88 * cli-out.c: Use string.h, not gdb_string.h.
89 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
90 * cli/cli-decode.c: Use string.h, not gdb_string.h.
91 * cli/cli-dump.c: Use string.h, not gdb_string.h.
92 * cli/cli-interp.c: Use string.h, not gdb_string.h.
93 * cli/cli-logging.c: Use string.h, not gdb_string.h.
94 * cli/cli-script.c: Use string.h, not gdb_string.h.
95 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
96 * cli/cli-utils.c: Use string.h, not gdb_string.h.
97 * coffread.c: Use string.h, not gdb_string.h.
98 * common/common-utils.c: Use string.h, not gdb_string.h.
99 * common/filestuff.c: Use string.h, not gdb_string.h.
100 * common/linux-procfs.c: Use string.h, not gdb_string.h.
101 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
102 * common/signals.c: Use string.h, not gdb_string.h.
103 * common/vec.h: Use string.h, not gdb_string.h.
104 * core-regset.c: Use string.h, not gdb_string.h.
105 * corefile.c: Use string.h, not gdb_string.h.
106 * corelow.c: Use string.h, not gdb_string.h.
107 * cp-abi.c: Use string.h, not gdb_string.h.
108 * cp-support.c: Use string.h, not gdb_string.h.
109 * cp-valprint.c: Use string.h, not gdb_string.h.
110 * cris-tdep.c: Use string.h, not gdb_string.h.
111 * d-lang.c: Use string.h, not gdb_string.h.
112 * dbxread.c: Use string.h, not gdb_string.h.
113 * dcache.c: Use string.h, not gdb_string.h.
114 * demangle.c: Use string.h, not gdb_string.h.
115 * dicos-tdep.c: Use string.h, not gdb_string.h.
116 * disasm.c: Use string.h, not gdb_string.h.
117 * doublest.c: Use string.h, not gdb_string.h.
118 * dsrec.c: Use string.h, not gdb_string.h.
119 * dummy-frame.c: Use string.h, not gdb_string.h.
120 * dwarf2-frame.c: Use string.h, not gdb_string.h.
121 * dwarf2loc.c: Use string.h, not gdb_string.h.
122 * dwarf2read.c: Use string.h, not gdb_string.h.
123 * elfread.c: Use string.h, not gdb_string.h.
124 * environ.c: Use string.h, not gdb_string.h.
125 * eval.c: Use string.h, not gdb_string.h.
126 * event-loop.c: Use string.h, not gdb_string.h.
127 * exceptions.c: Use string.h, not gdb_string.h.
128 * exec.c: Use string.h, not gdb_string.h.
129 * expprint.c: Use string.h, not gdb_string.h.
130 * f-exp.y: Use string.h, not gdb_string.h.
131 * f-lang.c: Use string.h, not gdb_string.h.
132 * f-typeprint.c: Use string.h, not gdb_string.h.
133 * f-valprint.c: Use string.h, not gdb_string.h.
134 * fbsd-nat.c: Use string.h, not gdb_string.h.
135 * findcmd.c: Use string.h, not gdb_string.h.
136 * findvar.c: Use string.h, not gdb_string.h.
137 * fork-child.c: Use string.h, not gdb_string.h.
138 * frame.c: Use string.h, not gdb_string.h.
139 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
140 * frv-tdep.c: Use string.h, not gdb_string.h.
141 * gdb.c: Use string.h, not gdb_string.h.
142 * gdb_bfd.c: Use string.h, not gdb_string.h.
143 * gdbarch.c: Use string.h, not gdb_string.h.
144 * gdbtypes.c: Use string.h, not gdb_string.h.
145 * gnu-nat.c: Use string.h, not gdb_string.h.
146 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
147 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
148 * go-exp.y: Use string.h, not gdb_string.h.
149 * go-lang.c: Use string.h, not gdb_string.h.
150 * go32-nat.c: Use string.h, not gdb_string.h.
151 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
152 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
153 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
154 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
155 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
156 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
157 * i386-linux-nat.c: Use string.h, not gdb_string.h.
158 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
159 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
160 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
161 * i386-tdep.c: Use string.h, not gdb_string.h.
162 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
163 * i386gnu-nat.c: Use string.h, not gdb_string.h.
164 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
165 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
166 * i387-tdep.c: Use string.h, not gdb_string.h.
167 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
168 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
169 * inf-child.c: Use string.h, not gdb_string.h.
170 * inf-ptrace.c: Use string.h, not gdb_string.h.
171 * inf-ttrace.c: Use string.h, not gdb_string.h.
172 * infcall.c: Use string.h, not gdb_string.h.
173 * infcmd.c: Use string.h, not gdb_string.h.
174 * inflow.c: Use string.h, not gdb_string.h.
175 * infrun.c: Use string.h, not gdb_string.h.
176 * interps.c: Use string.h, not gdb_string.h.
177 * iq2000-tdep.c: Use string.h, not gdb_string.h.
178 * irix5-nat.c: Use string.h, not gdb_string.h.
179 * jv-exp.y: Use string.h, not gdb_string.h.
180 * jv-lang.c: Use string.h, not gdb_string.h.
181 * jv-typeprint.c: Use string.h, not gdb_string.h.
182 * jv-valprint.c: Use string.h, not gdb_string.h.
183 * language.c: Use string.h, not gdb_string.h.
184 * linux-fork.c: Use string.h, not gdb_string.h.
185 * linux-nat.c: Use string.h, not gdb_string.h.
186 * lm32-tdep.c: Use string.h, not gdb_string.h.
187 * m2-exp.y: Use string.h, not gdb_string.h.
188 * m2-typeprint.c: Use string.h, not gdb_string.h.
189 * m32c-tdep.c: Use string.h, not gdb_string.h.
190 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
191 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
192 * m32r-rom.c: Use string.h, not gdb_string.h.
193 * m32r-tdep.c: Use string.h, not gdb_string.h.
194 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
195 * m68k-tdep.c: Use string.h, not gdb_string.h.
196 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
197 * m68klinux-nat.c: Use string.h, not gdb_string.h.
198 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
199 * m88k-tdep.c: Use string.h, not gdb_string.h.
200 * macrocmd.c: Use string.h, not gdb_string.h.
201 * main.c: Use string.h, not gdb_string.h.
202 * mdebugread.c: Use string.h, not gdb_string.h.
203 * mem-break.c: Use string.h, not gdb_string.h.
204 * memattr.c: Use string.h, not gdb_string.h.
205 * memory-map.c: Use string.h, not gdb_string.h.
206 * mep-tdep.c: Use string.h, not gdb_string.h.
207 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
208 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
209 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
210 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
211 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
212 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
213 * mi/mi-console.c: Use string.h, not gdb_string.h.
214 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
215 * mi/mi-interp.c: Use string.h, not gdb_string.h.
216 * mi/mi-main.c: Use string.h, not gdb_string.h.
217 * mi/mi-parse.c: Use string.h, not gdb_string.h.
218 * microblaze-rom.c: Use string.h, not gdb_string.h.
219 * microblaze-tdep.c: Use string.h, not gdb_string.h.
220 * mingw-hdep.c: Use string.h, not gdb_string.h.
221 * minidebug.c: Use string.h, not gdb_string.h.
222 * minsyms.c: Use string.h, not gdb_string.h.
223 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
224 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
225 * mips-tdep.c: Use string.h, not gdb_string.h.
226 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
227 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
228 * mipsread.c: Use string.h, not gdb_string.h.
229 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
230 * mn10300-tdep.c: Use string.h, not gdb_string.h.
231 * monitor.c: Use string.h, not gdb_string.h.
232 * moxie-tdep.c: Use string.h, not gdb_string.h.
233 * mt-tdep.c: Use string.h, not gdb_string.h.
234 * nbsd-tdep.c: Use string.h, not gdb_string.h.
235 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
236 * nto-procfs.c: Use string.h, not gdb_string.h.
237 * nto-tdep.c: Use string.h, not gdb_string.h.
238 * objc-lang.c: Use string.h, not gdb_string.h.
239 * objfiles.c: Use string.h, not gdb_string.h.
240 * opencl-lang.c: Use string.h, not gdb_string.h.
241 * osabi.c: Use string.h, not gdb_string.h.
242 * osdata.c: Use string.h, not gdb_string.h.
243 * p-exp.y: Use string.h, not gdb_string.h.
244 * p-lang.c: Use string.h, not gdb_string.h.
245 * p-typeprint.c: Use string.h, not gdb_string.h.
246 * parse.c: Use string.h, not gdb_string.h.
247 * posix-hdep.c: Use string.h, not gdb_string.h.
248 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
249 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
250 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
251 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
252 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
253 * printcmd.c: Use string.h, not gdb_string.h.
254 * procfs.c: Use string.h, not gdb_string.h.
255 * prologue-value.c: Use string.h, not gdb_string.h.
256 * python/py-auto-load.c: Use string.h, not gdb_string.h.
257 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
258 * ravenscar-thread.c: Use string.h, not gdb_string.h.
259 * regcache.c: Use string.h, not gdb_string.h.
260 * registry.c: Use string.h, not gdb_string.h.
261 * remote-fileio.c: Use string.h, not gdb_string.h.
262 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
263 * remote-mips.c: Use string.h, not gdb_string.h.
264 * remote-sim.c: Use string.h, not gdb_string.h.
265 * remote.c: Use string.h, not gdb_string.h.
266 * reverse.c: Use string.h, not gdb_string.h.
267 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
268 * ser-base.c: Use string.h, not gdb_string.h.
269 * ser-go32.c: Use string.h, not gdb_string.h.
270 * ser-mingw.c: Use string.h, not gdb_string.h.
271 * ser-pipe.c: Use string.h, not gdb_string.h.
272 * ser-tcp.c: Use string.h, not gdb_string.h.
273 * ser-unix.c: Use string.h, not gdb_string.h.
274 * serial.c: Use string.h, not gdb_string.h.
275 * sh-tdep.c: Use string.h, not gdb_string.h.
276 * sh64-tdep.c: Use string.h, not gdb_string.h.
277 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
278 * skip.c: Use string.h, not gdb_string.h.
279 * sol-thread.c: Use string.h, not gdb_string.h.
280 * solib-dsbt.c: Use string.h, not gdb_string.h.
281 * solib-frv.c: Use string.h, not gdb_string.h.
282 * solib-osf.c: Use string.h, not gdb_string.h.
283 * solib-spu.c: Use string.h, not gdb_string.h.
284 * solib-target.c: Use string.h, not gdb_string.h.
285 * solib.c: Use string.h, not gdb_string.h.
286 * somread.c: Use string.h, not gdb_string.h.
287 * source.c: Use string.h, not gdb_string.h.
288 * sparc-nat.c: Use string.h, not gdb_string.h.
289 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
290 * sparc-tdep.c: Use string.h, not gdb_string.h.
291 * sparc64-tdep.c: Use string.h, not gdb_string.h.
292 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
293 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
294 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
295 * spu-linux-nat.c: Use string.h, not gdb_string.h.
296 * spu-multiarch.c: Use string.h, not gdb_string.h.
297 * spu-tdep.c: Use string.h, not gdb_string.h.
298 * stabsread.c: Use string.h, not gdb_string.h.
299 * stack.c: Use string.h, not gdb_string.h.
300 * std-regs.c: Use string.h, not gdb_string.h.
301 * symfile.c: Use string.h, not gdb_string.h.
302 * symmisc.c: Use string.h, not gdb_string.h.
303 * symtab.c: Use string.h, not gdb_string.h.
304 * target.c: Use string.h, not gdb_string.h.
305 * thread.c: Use string.h, not gdb_string.h.
306 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
307 * tilegx-tdep.c: Use string.h, not gdb_string.h.
308 * top.c: Use string.h, not gdb_string.h.
309 * tracepoint.c: Use string.h, not gdb_string.h.
310 * tui/tui-command.c: Use string.h, not gdb_string.h.
311 * tui/tui-data.c: Use string.h, not gdb_string.h.
312 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
313 * tui/tui-file.c: Use string.h, not gdb_string.h.
314 * tui/tui-layout.c: Use string.h, not gdb_string.h.
315 * tui/tui-out.c: Use string.h, not gdb_string.h.
316 * tui/tui-regs.c: Use string.h, not gdb_string.h.
317 * tui/tui-source.c: Use string.h, not gdb_string.h.
318 * tui/tui-stack.c: Use string.h, not gdb_string.h.
319 * tui/tui-win.c: Use string.h, not gdb_string.h.
320 * tui/tui-windata.c: Use string.h, not gdb_string.h.
321 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
322 * typeprint.c: Use string.h, not gdb_string.h.
323 * ui-file.c: Use string.h, not gdb_string.h.
324 * ui-out.c: Use string.h, not gdb_string.h.
325 * user-regs.c: Use string.h, not gdb_string.h.
326 * utils.c: Use string.h, not gdb_string.h.
327 * v850-tdep.c: Use string.h, not gdb_string.h.
328 * valarith.c: Use string.h, not gdb_string.h.
329 * valops.c: Use string.h, not gdb_string.h.
330 * valprint.c: Use string.h, not gdb_string.h.
331 * value.c: Use string.h, not gdb_string.h.
332 * varobj.c: Use string.h, not gdb_string.h.
333 * vax-tdep.c: Use string.h, not gdb_string.h.
334 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
335 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
336 * windows-nat.c: Use string.h, not gdb_string.h.
337 * xcoffread.c: Use string.h, not gdb_string.h.
338 * xml-support.c: Use string.h, not gdb_string.h.
339 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
340 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
341
63ce7108
TT
3422013-11-18 Tom Tromey <tromey@redhat.com>
343
344 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
345 and strstr.
346 * gnulib/aclocal.m4: Update.
347 * gnulib/config.in: Update.
348 * gnulib/configure: Update.
349 * gnulib/import/Makefile.am: Update.
350 * gnulib/import/Makefile.in: Update.
351 * gnulib/import/errno.in.h: New.
352 * gnulib/import/intprops.h: New.
353 * gnulib/import/m4/errno_h.m4: New.
354 * gnulib/import/m4/gnulib-cache.m4: Update.
355 * gnulib/import/m4/gnulib-comp.m4: Update.
356 * gnulib/import/m4/strerror.m4: New.
357 * gnulib/import/m4/strstr.m4: New.
358 * gnulib/import/m4/sys_socket_h.m4: New.
359 * gnulib/import/strerror-override.c: New.
360 * gnulib/import/strerror-override.h: New.
361 * gnulib/import/strerror.c: New.
362 * gnulib/import/strstr.c: New.
363
a7c11ee1
TT
3642013-11-18 Tom Tromey <tromey@redhat.com>
365
366 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
367 multiple lines.
368
d0b5971a
JM
3692013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
370
371 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
372 * sparc-tdep.h: And its prototype.
373
374 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
375 function.
376 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
377
4b4589ad
PA
3782013-11-18 Pedro Alves <palves@redhat.com>
379
380 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
381 use unpack_pointer.
382
422ad5c2
JB
3832013-11-18 Joel Brobecker <brobecker@adacore.com>
384
385 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
386 to -list-features output.
387
b1370418
JB
3882013-11-17 Joel Brobecker <brobecker@adacore.com>
389
390 * dwarf2expr.h (struct dwarf_expr_context_funcs)
391 <read_addr_from_reg>: Renames "read_reg".
392 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
393 Adjust comment.
394 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
395 Use read_addr_from_reg in place of read_reg.
396 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
397 in place of read_reg.
398 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
399 dwarf_expr_read_reg.
400 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
401 with dwarf_expr_read_addr_from_reg.
402 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
403 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
404 needs_frame_read_addr_from_reg.
405
6ea71545
JK
4062013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
407
408 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
409
19a1b230
AA
4102013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
411
412 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
413 NULL.
414
805e1f19
TT
4152013-11-15 Tom Tromey <tromey@redhat.com>
416
417 PR c++/16117:
418 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
419 (classify_name): Likewise. Prefer a field of "this" over a
420 filename.
421 (classify_inner_name, yylex): Update.
422
0acf8b65
JB
4232013-11-15 Joel Brobecker <brobecker@adacore.com>
424
425 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
426 Extend the documentation a bit.
427 <get_reg_value>: New field.
428 * dwarf2loc.c (dwarf_expr_get_reg_value)
429 (needs_frame_get_reg_value): New functions.
430 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
431 callback.
432 * dwarf2-frame.c (get_reg_value): New function.
433 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
434 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
435 Use new callback to compute result_val.
436
ef1bc9e7
AM
4372013-11-15 Alan Modra <amodra@gmail.com>
438
439 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
440 (ppc64_desc_entry_point): ..this. Update comments here and at
441 call points.
442 (ppc64_standard_linkage1, ppc64_standard_linkage2,
443 ppc64_standard_linkage3): Update comments.
444 (ppc64_standard_linkage4, ppc64_standard_linkage5,
445 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
446 patterns.
447 (ppc64_standard_linkage4_target): New function.
448 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
449 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
450 nop match. Fix comment wrap.
451
36fa8042
PA
4522013-11-14 Pedro Alves <palves@redhat.com>
453
454 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
455 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
456
4f5d7f63
PA
4572013-11-14 Pedro Alves <palves@redhat.com>
458
459 * infrun.c (struct execution_control_state)
460 <stepped_after_stopped_by_watchpoint>: New field.
461 (get_inferior_stop_soon): New function.
462 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
463 moved to struct execution_control_state -- adjust. Use
464 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
465 new function.
466 (handle_signal_stop): New function, factored out from
467 handle_inferior_event.
468
47591c29
PA
4692013-11-14 Pedro Alves <palves@redhat.com>
470
471 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
472 return a boolean.
473 * breakpoint.c (bpstat_explains_signal): Adjust to return a
474 boolean.
475 (explains_signal_watchpoint, base_breakpoint_explains_signal):
476 Adjust to return a boolean.
477 * breakpoint.h (enum bpstat_signal_value): Delete.
478 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
479 (bpstat_explains_signal): Likewise.
480 * infrun.c (handle_inferior_event) <random signal checks>:
481 bpstat_explains_signal now returns a boolean - adjust. No longer
482 consider hiding signals.
483
bac7d97b
PA
4842013-11-14 Pedro Alves <palves@redhat.com>
485
486 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
487 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
488 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
489 BPSTAT_SIGNAL_HIDE.
490 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
491 instead of BPSTAT_SIGNAL_HIDE.
492 * infrun.c (handle_inferior_event): Rework random signal checks.
493
ce12b012
PA
4942013-11-14 Pedro Alves <palves@redhat.com>
495
496 * infrun.c (struct execution_control_state): Remove
497 'random_signal' field.
498 (handle_syscall_event): Use bpstat_causes_stop instead of
499 bpstat_explains_signal. Don't set ecs->random_signal.
500 (handle_inferior_event): New 'random_signal' local.
501 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
502 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
503 bpstat_explains_signal. Don't set ecs->random_signal.
504 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
505 ecs->random_signal.
506
05ba8510
PA
5072013-11-14 Pedro Alves <palves@redhat.com>
508
509 * infrun.c (handle_inferior_event): Move comment from the
510 function's body to the function's description, adjusted.
511
5c09a2c5
PA
5122013-11-14 Pedro Alves <palves@redhat.com>
513
514 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
515 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
516 Assert we never fall through out of the TARGET_WAITKIND_LOADED
517 case.
518
91822956
TT
5192013-11-14 Tom Tromey <tromey@redhat.com>
520
521 * python/py-linetable.c (ltpy_has_line)
522 (ltpy_get_all_source_lines): Fix loop termination condition.
523
403cb6b1
JB
5242013-11-14 Joel Brobecker <brobecker@adacore.com>
525
526 * mi/mi-parse.h (struct mi_parse) <language>: New field.
527 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
528 PARSE->LANGUAGE during command execution, if set.
529 * mi/mi-parse.c: Add "language.h" #include.
530 (mi_parse): Add parsing of "--language" command option.
531
532 * NEWS: Add entry mentioning the new "--language" command option.
533
b5be8ce0
JB
5342013-11-14 Pedro Alves <palves@redhat.com>
535 Joel Brobecker <brobecker@adacore.com>
536
537 * cli/cli-utils.h (extract_arg_const): Add declaration.
538 * cli/cli-utils.c (extract_arg_const): New function.
539 (extract_arg): Reimplement using extract_arg_const.
540
671afef6
JB
5412013-11-14 Joel Brobecker <brobecker@adacore.com>
542
543 * language.h: Add "symtab.h" #include.
544
6c1b0f7b
DE
5452013-11-13 Doug Evans <xdje42@gmail.com>
546
547 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
548 specific breakpoints, don't evaluate breakpoint condition if
549 different thread.
550
74921315
KS
5512013-11-13 Keith Seitz <keiths@redhat.com>
552
248ace2e 553 PR c++/7935
74921315
KS
554 PR c++/10541
555 * cp-support.c (insepct_type): Add support for substituting
556 namespace aliases, too.
557 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
558 for DW_TAG_imported_declaration.
559 (add_partial_symbol): Likewise.
560 (process_die): Handle namespace aliases with
561 read_namespace_alias.
562 (die_needs_namespace): Add DW_TAG_imported_declaration.
563 (read_namespace_alias): New function.
564 (load_partial_dies): Load DW_TAG_imported_declaration, too.
565 (new_symbol_full): Handle DW_TAG_imported_declaration.
566
793156e6
KS
5672013-11-13 Keith Seitz <keiths@redhat.com>
568
569 * p-exp.y (uptok): Make first parameter const.
570 (yylex): Make `tokstart' and `tokptr' const.
571 Don't copy the lexer input to a temporary buffer.
572 Make `p' const.
573 Remove const workaround for parse_escape.
574 Create a temporary buffer for a convenience variable instead
575 of doing in-place modification of the input.
576 If a match is found with a different case from the input,
577 do not change the input at all.
578 Use `tmp' to construct the resultant stoken instead of
579 `tokstart'.
580
c42bd95a
DE
5812013-11-13 Doug Evans <xdje42@gmail.com>
582
583 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
584
93973826
JB
5852013-11-13 Joel Brobecker <brobecker@adacore.com>
586
587 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
588 entry with "ada-exceptions".
589
846060df
JB
5902013-11-13 Joel Brobecker <brobecker@adacore.com>
591
592 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
593 after re-initialization of OBJFILE's obstack.
594
5efd1b2b 5952013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
596
597 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
598 bs->stop != 0 on entry. Update function comment. Simplify early
599 exit for frame mismatch. Reindent rest of function.
600
ee7615e1
AA
6012013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
602
603 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
604 NULL.
605
8943b874
DE
6062013-11-12 Doug Evans <dje@google.com>
607
608 Work around gold/15646.
609 * dwarf2read.c (read_index_from_section): Update comment.
610 (struct dw2_symtab_iterator): New member global_seen.
611 (dw2_symtab_iter_init): Initialize it.
612 (dw2_symtab_iter_next): Skip duplicate global symbols.
613 (dw2_expand_symtabs_matching): Ditto.
614
a8a9844d
JB
6152013-11-12 Joel Brobecker <brobecker@adacore.com>
616
617 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
618 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
619 command.
620 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
621 (mi_cmd_info_ada_exceptions): New function.
622 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
623
778865d3
JB
6242013-11-12 Joel Brobecker <brobecker@adacore.com>
625
626 * ada-lang.h: #include "vec.h".
627 (struct ada_exc_info): New.
628 (ada_exc_info): New typedef.
629 (DEF_VEC_O(ada_exc_info)): New vector.
630 (ada_exceptions_list): Add declaration.
631 * ada-lang.c (ada_is_exception_sym)
632 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
633 (sort_remove_dups_ada_exceptions_list)
634 (ada_exc_search_name_matches, ada_add_standard_exceptions)
635 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
636 (ada_exceptions_list_1, ada_exceptions_list)
637 (info_exceptions_command): New function.
638 (_initialize_ada_language): Add "info exception" command.
639
bc79de95
PM
6402013-11-11 Phil Muldoon <pmuldoon@redhat.com>
641
642 PR python/15629
643 * NEWS: Add linetable feature.
644 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
645 * python/py-linetable.c: New file.
646 * python/py-symtab.c (stpy_get_linetable): New function.
647 * python/python-internal.h (symtab_to_linetable_object): Declare.
648 (gdbpy_initialize_linetable): Ditto.
649 * python/python.c (_initialize_python): Call
650 gdbpy_initialize_linetable.
651
2df4d1d5
JB
6522013-11-11 Joel Brobecker <brobecker@adacore.com>
653
654 * ada-lang.c (create_ada_exception_catchpoint): Enhance
655 the documentation of fields "except_string" and "condition".
656 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
657 CONDITION on the heap before passing it to
658 create_ada_exception_catchpoint.
659 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
660 CONDITION.
661
99c1d451
TT
6622013-11-11 Tom Tromey <tromey@redhat.com>
663
664 * config.in, configure: Rebuild.
665 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
666
8ca5801b
JB
6672013-11-11 Joel Brobecker <brobecker@adacore.com>
668
669 * remote-sim.c (gdbsim_detach): Break declaration into
670 shorter lines. No code change.
671
7a06d430
EBM
6722013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
673
674 * remote-sim.c (gdbsim_detach): Fix prototype.
675
73be47f5
DE
6762013-11-08 Doug Evans <dje@google.com>
677
678 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
679 (create_debug_types_hash_table): Only print debugging messages for
680 each TU if dwarf2-read >= 2.
681 (process_queue): Ditto.
682 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
683 Update doc string.
684
a18d8f10
TT
6852013-11-08 Tom Tromey <tromey@redhat.com>
686
687 * configure: Rebuild.
688 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
689
9467110b
TT
6902013-11-08 Tom Tromey <tromey@redhat.com>
691
692 * configure, config.in: Rebuild.
693 * configure.ac: Remove unused configury.
694
69706679
TT
6952013-11-08 Tom Tromey <tromey@redhat.com>
696
697 * m32c-tdep.c: Use gdb_string.h.
698
9b4bea72
TT
6992013-11-08 Tom Tromey <tromey@redhat.com>
700
701 * configure, config.in: Rebuild.
702 * configure.ac: Remove all link.h-related checks.
703
3266f10b
TT
7042013-11-08 Tom Tromey <tromey@redhat.com>
705
706 * acinclude.m4: Include common.m4.
707 * common/common.m4: New file.
708 * configure, config.in: Rebuild.
709 * configure.ac: Use GDB_AC_COMMON.
710
db0fec5c
DE
7112013-11-08 Doug Evans <dje@google.com>
712
713 * NEWS: Mention that "set debug symtab-create" now accepts a
714 verbosity level.
715 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
716 to set the symtab's primary flag.
717 * jit.c (finalize_symtab): Ditto.
718 * mdebugread.c (psymtab_to_symtab_1): Ditto.
719 * symfile.c (allocate_symtab): Only print debugging messages for
720 symtab_create_debug levels 2 and higher.
721 * symtab.c (symtab_create_debug): Change type to unsigned int.
722 (set_symtab_primary): New function.
723 (_initialize_symtab): Change "set debug symtab-create" to a
724 zuinteger option.
725 * symtab.h (set_symtab_primary): Declare.
726 (symtab_create_debug): Update decl.
727
52554a0e
TT
7282013-11-08 Tom Tromey <tromey@redhat.com>
729
730 * aix-thread.c (aix_thread_detach): Update.
731 * corelow.c (core_detach): Update.
732 * darwin-nat.c (darwin_detach): Update.
733 * dec-thread.c (dec_thread_detach): Update.
734 * gnu-nat.c (gnu_detach): Update.
735 * go32-nat.c (go32_detach): Update.
736 * inf-ptrace.c (inf_ptrace_detach): Update.
737 * inf-ttrace.c (inf_ttrace_detach): Update.
738 * linux-fork.c (linux_fork_detach): Update.
739 * linux-fork.h (linux_fork_detach): Update.
740 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
741 local for const-correctness.
742 * linux-thread-db.c (thread_db_detach): Update.
743 * monitor.c (monitor_detach): Update.
744 * nto-procfs.c (procfs_detach): Update.
745 * procfs.c (procfs_detach): Update.
746 * record.c (record_detach): Update.
747 * record.h (record_detach): Update.
748 * remote-m32r-sdi.c (m32r_detach): Update.
749 * remote-mips.c (mips_detach): Update.
750 * remote-sim.c (gdbsim_detach): Update.
751 * remote.c (remote_detach_1, remote_detach)
752 (extended_remote_detach): Update.
753 * sol-thread.c (sol_thread_detach): Update.
754 * target.c (target_detach): Make "args" const.
755 (init_dummy_target): Update.
756 * target.h (struct target_ops) <to_detach>: Make argument const.
757 (target_detach): Likewise.
758 * windows-nat.c (windows_detach): Update.
759
204b5331
DE
7602013-11-07 Doug Evans <dje@google.com>
761
762 PR 11786
763 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
764 and align fields for PT_GNU_RELRO segments.
765
92e32e33
PM
7662013-11-07 Phil Muldoon <pmuldoon@redhat.com>
767
ef1bc9e7
AM
768 PR python/15747
769 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 770
f76c27b5
PM
7712013-11-07 Phil Muldoon <pmuldoon@redhat.com>
772
773 * NEWS: Document Python temporary breakpoint support.
774 * python/py-breakpoint.c (bppy_get_temporary): New function.
775 (bppy_init): New keyword: temporary. Parse it and set breakpoint
776 to temporary if True.
777
d52cd232
JM
7782013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
779
780 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
781 removed to allow analyzing unconditional branch instructions
782 with PC-relative offsets of zero.
783
fa4d0c40
YQ
7842013-11-07 Yao Qi <yao@codesourcery.com>
785
786 * mi/mi-cmd-var.c: Include "language.h".
787 (mi_cmd_var_info_expression): Get language name from
788 language_defn.
789 * varobj.c (varobj_language_string): Remove.
790 (variable_language): Remove declaration.
791 (languages): Remove.
792 (varobj_get_language): Change the type of return value.
793 (variable_language): Remove.
794 * varobj.h (enum varobj_languages): Remove.
795 (varobj_language_string): Remove declaration.
796 (varobj_get_language): Update declaration.
797
6abde28f
YQ
7982013-11-07 Yao Qi <yao@codesourcery.com>
799
800 * language.h (struct language_defn) <la_natural_name>: New
801 field.
802 * ada-lang.c (ada_language_defn): Initialize field
803 'la_natural_name'.
804 * c-lang.c (c_language_defn): Likewise.
805 (cplus_language_defn, asm_language_defn): Likewise.
806 * d-lang.c (d_language_defn): Likewise.
807 * f-lang.c (f_language_defn): Likewise.
808 * go-lang.c (go_language_defn): Likewise.
809 * jv-lang.c (java_language_defn): Likewise.
810 * language.c (unknown_language_defn ): Likewise.
811 (auto_language_defn): Likewise.
812 * m2-lang.c (m2_language_defn): Likewise.
813 * objc-lang.c (objc_language_defn): Likewise.
814 * opencl-lang.c (opencl_language_defn): Likewise.
815 * p-lang.c (pascal_language_defn): Likewise.
816
27cd387b
YQ
8172013-11-07 Yao Qi <yao@codesourcery.com>
818
819 * language.c (language_str): Return const char *.
820 (add_language): Add const to 'language_names'
821 * language.h (struct language_defn) <la_name>: Add const.
822 (language_str: Update declaration.
823
6682d959
AA
8242013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
825
826 * s390-linux-nat.c (s390_read_description): Consider the TE field
827 in the HWCAP for determining 'have_regset_tdb'.
828
b9502d3f
WN
8292013-11-06 Will Newton <will.newton@linaro.org>
830
831 PR gdb/12866
832 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
833 values. (read_partial_die): Likewise.
834
840da61a
MB
8352013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
836
837 PR cli/16122
838 * top.c (command_line_input): Unify interactivity tests to use
839 input_from_terminal_p.
840 * event-top.c (command_line_handler): Likewise.
841
7636ccf9
YQ
8422013-11-06 Yao Qi <yao@codesourcery.com>
843
844 * Makefile.in (check-perf): New target.
845
12b27276
WN
8462013-11-05 Will Newton <will.newton@linaro.org>
847
848 PR gdb/7670
849 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
850 (arm_print_float_info): Likewise.
851
67c059c2
AB
8522013-11-04 Anton Blanchard <anton@samba.org>
853
854 * target.c (memory_xfer_partial): Cap write to 4KB.
855
0569175e
TSD
8562013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
857
858 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
859 probe scan even when the arch provides no get_longjmp_target.
860
b18e90f5
PA
8612013-10-31 Pedro Alves <palves@redhat.com>
862
863 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
864 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
865 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
866 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
867 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
868 <bpstat handling>: If the bpstat chain wants the signal to be
869 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
870 GDB_SIGNAL_TRAP.
871
638aa5a1
AB
8722013-10-31 Andrew Burgess <aburgess@broadcom.com>
873
874 * breakpoint.c (update_watchpoint): Update error message and add
875 an additional error message.
876
0e5fae36
UW
8772013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
878
879 * s390-tdep.h: Rename to...
880 * s390-linux-tdep.h: ...here.
881 * s390-tdep.c: Rename to...
882 * s390-linux-tdep.c: ...here. Adjust #include.
883 * s390-nat.c: Rename to...
884 * s390-linux-nat.c: ...here. Adjust #include.
885 * config/s390/s390.mh: Rename to...
886 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
887 s390-linux-nat.o.
888 * configure.host: Reflect host rename "s390" -> "linux".
889 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
890 * Makefile.in (ALL_TARGET_OBS): Likewise.
891 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
892 s390-linux-tdep.h.
893 (ALLDEPFILES): Reflect rename of .c files.
894
34201ae3
UW
8952013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
896
897 * s390-nat.c: Whitespace cleanup.
898 * s390-tdep.c: Likewise.
899 * s390-tdep.h: Remove empty line at end of file.
900
e17aaa33
MR
9012013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
902
903 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
904 siginfo_size.
905
aee17e42
TT
9062013-10-29 Tom Tromey <tromey@redhat.com>
907
908 * utils.c (reg): Move undefinition...
909 * gdb_curses.h: ... here. Update comment to mention AIX.
910
9ac69859
NB
9112013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
912
913 * exec.h (add_target_sections_of_objfile): New declaration.
914 * exec.c (add_target_sections_of_objfile): New function.
915 * symfile.c (add_symbol_file_command): Update current target sections.
916 (remove_symbol_file_command): New command.
917 (symfile_free_objfile): New function.
918 (_initialize_symfile): Register observer for free_objfile events.
919 * NEWS: Add description of the remove-symbol-file command.
920 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
921 * objfiles.c (free_objfile): Notify free_objfile.
922 (is_addr_in_objfile): New function.
923 * objfiles.h (is_addr_in_objfile): New declaration.
924 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
925 events instead of solib_unloaded events.
926 (_initialize_printcmd): Register observer for free_objfile instead
927 of solib_unloaded notifications.
928 * solib.c (remove_user_added_objfile): New function.
929 (_initialize_symfile): Add remove-symbol-file.
930
f69d9aef
AB
9312013-10-29 Andrew Burgess <aburgess@broadcom.com>
932
933 * infcmd.c (default_print_one_register_info): Use val_print to
934 print all values even optimized out or unavailable ones. Don't
935 try to print a raw form of optimized out or unavailable values.
936
487ad57c
YQ
9372013-10-29 Yao Qi <yao@codesourcery.com>
938
939 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
940 parameter 'arg' instead of from program_space_data.
941 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
942 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
943 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
944 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
945 * inflow.c (inflow_inferior_data_cleanup): Get data from
946 parameter 'arg' instead of inferior_data.
947 * registry.h: Add comments.
948
3c4797ba
PA
9492013-10-28 Pedro Alves <palves@redhat.com>
950
951 * breakpoint.c (watchpoints_triggered)
952 <!target_stopped_data_address>: Hardcode return 1.
953
cdaa5b73
PA
9542013-10-28 Pedro Alves <palves@redhat.com>
955
956 * infrun.c (process_event_stop_test): Remove unnecessary scoping
957 level and reindent.
958
94c57d6a
PA
9592013-10-28 Pedro Alves <palves@redhat.com>
960
961 * infrun.c (process_event_stop_test): New function, factored out
962 from handle_inferior_event.
963 (handle_inferior_event): 'process_event_stop_test' is now a
964 function instead of a goto label -- adjust.
965
fcf3daef
PA
9662013-10-28 Pedro Alves <palves@redhat.com>
967
968 * infrun.c (handle_inferior_event): Move process_event_stop_test
969 goto label to the else branch of the ecs->random_signal check,
970 along with FRAME and GDBARCH re-fetching.
971
c447ac0b
PA
9722013-10-28 Pedro Alves <palves@redhat.com>
973
974 * infrun.c (switch_back_to_stepped_thread): New function, factored
975 out from handle_inferior_event.
976 (handle_inferior_event): Adjust to call
977 switch_back_to_stepped_thread. Call it also at the tail of the
978 random signal handling, and return, instead of also handling
979 random signals just before the stepping tests.
980
f05e4c11
PA
9812013-10-28 Pedro Alves <palves@redhat.com>
982
983 * infrun.c (clear_stop_func): Delete.
984 (handle_inferior_event): Don't call clear_stop_func and don't
985 clear 'ecs->random_signal'.
986
ca20d462
YQ
9872013-10-27 Yao Qi <yao@codesourcery.com>
988
989 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
990 (varobj_create, varobj_get_path_expr): Update.
991 (varobj_value_has_mutated, varobj_update): Likewise.
992 (create_child_with_value, new_root_variable): Likewise.
993 (number_of_children, name_of_variable): Likewise.
994 (value_of_child, my_value_of_variable): Likewise.
995 (varobj_value_is_changeable_p): Likewise.
996
a53b64ea
YQ
9972013-10-25 Yao Qi <yao@codesourcery.com>
998
999 * language.h (struct lang_varobj_ops): Declare.
1000 (struct language_defn) <la_varobj_ops>: New field.
1001 * ada-lang.c: Include "varobj.h"
1002 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1003 ada_varobj_ops.
1004 * c-lang.c: Include "varobj.h"
1005 (c_language_defn): Initialize field 'la_varobj_ops' with
1006 c_varobj_ops.
1007 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1008 cplus_varobj_ops.
1009 (asm_language_defn): Initialize field 'la_varobj_ops' with
1010 default_varobj_ops.
1011 (minimal_language_defn): Likewise.
1012 * d-lang.c (d_language_defn): Likewise.
1013 * f-lang.c (f_language_defn): Likewise.
1014 * go-lang.c (go_language_defn): Likewise.
1015 * m2-lang.c (m2_language_defn): Likewise.
1016 * objc-lang.c (objc_language_defn): Likewise.
1017 * opencl-lang.c (opencl_language_defn): Likewise.
1018 * p-lang.c (pascal_language_defn): Likewise.
1019 * language.c (unknown_language_defn): Likewise.
1020 (auto_language_defn): Likewise.
1021 (local_language_defn): Likewise.
1022 * jv-lang.c (java_language_defn): Initialize field
1023 'la_varobj_ops' with java_varobj_ops.
1024 * varobj.c (varobj_create): Update.
1025 * varobj.h (default_varobj_ops): Define macro.
1026
686d4def
PA
10272013-10-25 Pedro Alves <palves@redhat.com>
1028
1029 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1030 static field value.
1031 (cp_print_static_field): If the value is entirely optimized out,
1032 print <optimized out> here.
1033 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1034 static field value.
1035 * p-valprint.c (pascal_object_print_static_field): If the value is
1036 entirely optimized out, print <optimized out> here.
1037 * valops.c (do_search_struct_field)
1038 (value_struct_elt_for_reference): No longer handle a NULL static
1039 field value.
1040 * value.c (value_static_field): Return an optimized out value
1041 instead of NULL.
1042
6c177e28
YQ
10432013-10-25 Yao Qi <yao@codesourcery.com>
1044
1045 * remote.c (remote_traceframe_info): Return early if
1046 traceframe is not selected.
1047
98322bfa
YQ
10482013-10-25 Yao Qi <yao@codesourcery.com>
1049
1050 * tracepoint.c (traceframe_fun): Remove.
1051 (traceframe_sal): Remove.
1052 (set_traceframe_context): Add local variables.
1053
6ba1f115
JB
10542013-10-25 Joel Brobecker <brobecker@adacore.com>
1055
1056 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1057 and parameter name.
1058
bbe769cc
MR
10592013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1060
1061 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1062 failure from register information collection.
1063
72ee4495 10642013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1065
1066 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1067 member.
1068 (linux_corefile_thread_callback): Update accordingly.
1069 (linux_make_corefile_notes): Likewise.
1070
98882a26
PA
10712013-10-24 Pedro Alves <palves@redhat.com>
1072
1073 * NEWS (New options): Mention set/show startup-with-shell.
1074 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1075 instead of 3.
1076 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1077 startup-with-shell'.
1078 (show_startup_with_shell): New function.
1079 (_initialize_fork_child): Register the set/show startup-with-shell
1080 commands.
1081 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1082 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1083 * procfs.c (procfs_init_inferior): Remove comment.
1084 * infcmd.c (startup_with_shell): New global.
1085 * inferior.h (startup_with_shell): Declare global.
1086 (STARTUP_WITH_SHELL): Delete.
1087 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1088
c9737c08
PA
10892013-10-23 Pedro Alves <palves@redhat.com>
1090
1091 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1092 * common/signals.c: Include "gdb_assert.h".
1093 (signals): New field 'symbol'.
1094 (SET): Use the 'symbol' parameter.
1095 (gdb_signal_to_symbol_string): New function.
1096 * infrun.c (handle_inferior_event) <random signal>: In debug
1097 output, print the random signal enum as string in addition to its
1098 number.
1099 * target/waitstatus.c (target_waitstatus_to_string): Print the
1100 signal's enum value as string instead of the (POSIX) signal name.
1101
f60db4f0
GB
11022013-10-23 Gary Benson <gbenson@redhat.com>
1103
1104 PR 16013
1105 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1106 from 32 to 18. Adjusted fscanf format string accordingly.
1107 (Avoids leaving cmd unterminated.)
1108 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1109 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1110 that local_address and remote_address will not overflow.
1111 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1112 leaving dependencies unterminated. Parse size as "%u" to match
1113 definition.
1114
6d3e7a94
PA
11152013-10-22 Pedro Alves <palves@redhat.com>
1116
1117 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1118 set ecs->random signal.
1119
42ec045f
PA
11202013-10-22 Pedro Alves <palves@redhat.com>
1121
1122 * infrun.c (keep_going): Update comments.
1123
11242013-10-22 Pedro Alves <palves@redhat.com>
1125
1126 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1127 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1128
11292013-10-22 Pedro Alves <palves@redhat.com>
1130
1131 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1132 GDB_EXC_BAD_ACCESS.
1133 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1134 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1135 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1136 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1137 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1138 (GDB_SIGNAL_LAST): Change description string.
1139 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1140 Adjust to signal renaming.
1141 * darwin-nat.c (darwin_decode_message): Likewise.
1142
c8fde1b1
JM
11432013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1144
1145 * MAINTAINERS (Write After Approval): Add myself to the list.
1146
e8369a73
AB
11472013-10-18 Andrew Burgess <aburgess@broadcom.com>
1148
1149 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1150 forced off, downgrade them to software watchpoints if possible,
1151 and error out if not possible.
1152 (watch_command_1): Move watchpoint type selection closer to
1153 watchpoint creation, and extend the comments.
1154
776f04fa
PA
11552013-10-18 Pedro Alves <palves@redhat.com>
1156
1157 PR gdb/16062
1158 * infrun.c (handle_inferior_event): Keep going if we got a random
1159 signal we should not stop for, instead of falling through to the
1160 step tests.
1161
0c6faab5
YQ
11622013-10-18 Yao Qi <yao@codesourcery.com>
1163
1164 * c-varobj.c (cplus_number_of_children): Fix indentation.
1165
50b34a18
TT
11662013-10-17 Tom Tromey <tromey@redhat.com>
1167
1168 PR gdb/15995:
1169 * printcmd.c (printcmd): Call gdb_flush.
1170
5c4c8a59
TT
11712013-10-17 Tom Tromey <tromey@redhat.com>
1172
1173 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1174 (elf_locate_sections): Update.
1175
c4124bf1
YQ
11762013-10-17 Yao Qi <yao@codesourcery.com>
1177
1178 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1179 * ada-varobj.c: Remove the include of ada-varobj.h.
1180 (ada_varobj_get_number_of_children): Declare.
1181 (ada_varobj_get_name_of_child): Make it static.
1182 (ada_varobj_get_path_expr_of_child): Likewise.
1183 (ada_varobj_get_value_of_child): Likewise.
1184 (ada_varobj_get_type_of_child): Likewise.
1185 (ada_varobj_get_value_of_array_variable): Likewise.
1186 * ada-varobj.h: Remove.
1187
99ad9427
YQ
11882013-10-17 Yao Qi <yao@codesourcery.com>
1189
1190 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1191 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1192 * ada-varobj.c: Include "varobj.h".
1193 (ada_number_of_children): New. Moved from varobj.c.
1194 (ada_name_of_variable, ada_name_of_child): Likewise.
1195 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1196 (ada_type_of_child, ada_value_of_variable): Likewise.
1197 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1198 (ada_varobj_ops): New.
1199 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1200 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1201 * gdbtypes.h (get_target_type): Declare.
1202 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1203 "ada-lang.h".
1204 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1205 (ANONYMOUS_UNION_NAME): Likewise.
1206 (get_type, get_value_type, get_target_type): Remove declarations.
1207 (value_get_print_value, varobj_value_get_print_value): Likewise.
1208 (c_number_of_children, c_name_of_variable): Likewise.
1209 (c_name_of_child, c_path_expr_of_child): Likewise.
1210 (c_value_of_child, c_type_of_child): Likewise.
1211 (c_value_of_variable, cplus_number_of_children): Likewise.
1212 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1213 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1214 (cplus_value_of_child, cplus_type_of_child): Likewise.
1215 (cplus_value_of_variable, java_number_of_children): Likewise.
1216 (java_name_of_variable, java_name_of_child): Likewise.
1217 (java_path_expr_of_child, java_value_of_child): Likewise.
1218 (java_type_of_child, java_value_of_variable): Likewise.
1219 (ada_number_of_children, ada_name_of_variable): Likewise.
1220 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1221 (ada_value_of_child, ada_type_of_child): Likewise.
1222 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1223 (ada_value_has_mutated): Likewise.
1224 (struct language_specific): Move it to varobj.h.
1225 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1226 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1227 Callers update.
1228 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1229 Make it extern.
1230 (is_anonymous_child): Move it to c-varobj.c and rename to
1231 varobj_is_anonymous_child. Caller update.
1232 (get_type): Move it to c-varobj.c.
1233 (get_value_type): Rename it varobj_get_value_type. Make it
1234 extern.
1235 (get_target_type): Move it gdbtypes.c.
1236 (varobj_formatted_print_options): New function.
1237 (value_get_print_value): Rename it to
1238 varobj_value_get_print_value and make it extern.
1239 (varobj_value_is_changeable_p): Make it extern.
1240 (adjust_value_for_child_access): Move it to c-varobj.c.
1241 (default_value_is_changeable_p): Rename it to
1242 varobj_default_value_is_changeable_p. Make it extern.
1243 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1244 (c_name_of_child, c_path_expr_of_child): Likewise.
1245 (c_value_of_child, c_type_of_child): Likewise.
1246 (c_value_of_variable, cplus_number_of_children): Likewise.
1247 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1248 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1249 (cplus_value_of_child, cplus_type_of_child): Likewise.
1250 (cplus_value_of_variable): Likewise.
1251 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1252 (java_name_of_child, java_path_expr_of_child): Likewise.
1253 (java_value_of_child, java_type_of_child): Likewise.
1254 (java_value_of_variable): Likewise.
1255 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1256 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1257 (ada_value_of_child, ada_type_of_child): Likewise.
1258 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1259 (ada_value_has_mutated): Likewise.
1260 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1261 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1262 (c_varobj_ops, cplus_varobj_ops): Declare.
1263 (java_varobj_ops, ada_varobj_ops): Declare.
1264 (varobj_default_value_is_changeable_p): Declare.
1265 (varobj_value_is_changeable_p): Declare.
1266 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1267 (varobj_get_path_expr_parent): Declare.
1268 (varobj_value_get_print_value): Declare.
1269 (varobj_formatted_print_options): Declare.
1270 (varobj_restrict_range): Declare.
1271
c8a62302
LM
12722013-10-17 Luis Machado <lgustavo@codesourcery.com>
1273
1274 * target/waitstatus.h (target_waitkind): Remove spurious
1275 character from the comments.
1276
eade6471
JB
12772013-10-17 Joel Brobecker <brobecker@adacore.com>
1278
1279 * gdbarch.sh (get_longjmp_target): Add method documentation.
1280 * gdbarch.h: Regenerate.
1281
5411b26c
TT
12822013-10-16 Tom Tromey <tromey@redhat.com>
1283
1284 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1285 label.
1286
87326c87
LM
12872013-10-16 Luis Machado <lgustavo@codesourcery.com>
1288
1289 * gcore.in: Call GDB using the full path to the gcore script.
1290 Error out if the GDB binary is not found.
1291
fd0a4d76
SDJ
12922013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1293
1294 PR gdb/16014
1295 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1296 sizeof.
1297
d92f7ee3
SDJ
12982013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1299
1300 PR gdb/16042
1301 * target.c (target_disable_btrace): Fix invalid return value for
1302 void function.
1303 (target_teardown_btrace): Likewise.
1304
bb5ce47a
YQ
13052013-10-14 Yao Qi <yao@codesourcery.com>
1306
1307 * varobj.c (struct varobj): Move most of the fields to
1308 varobj.h.
1309 (struct varobj_dynamic): New struct.
1310 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1311 (varobj_has_more): Likewise.
1312 (dynamic_varobj_has_child_method): Likewise.
1313 (update_dynamic_varobj_children): Likewise.
1314 (varobj_get_num_children): Likewise.
1315 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1316 (install_new_value_visualizer): Likewise.
1317 (install_new_value_visualizer, install_new_value): Likewise.
1318 (varobj_update, new_variable, free_variable): Likewise.
1319 (my_value_of_variable, value_get_print_value): Likewise.
1320 (install_visualizer): Change the type of parameter 'var' to
1321 'struct varobjd_dynamic *'. Callers update.
1322 * varobj.h (struct varobj): Moved from varobj.c.
1323 (struct varobj) <dynamic>: New field.
1324
0b76b0ce
SL
13252013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1326
1327 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1328 as the preferred name of r30.
1329 * nios2-linux-tdep.c (reg_offsets): Likewise.
1330 * features/nios2-cpu.xml: Likewise.
1331 * features/nios2-linux.c: Regenerated.
1332 * features/nios2.c: Regenerated.
1333 * regformats/nios2-linux.dat: Regenerated.
1334
4856b6bc
JK
13352013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1336
1337 Canonicalize directories for EXEC_FILENAME.
1338 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1339 exec_filename.
1340 * utils.c (gdb_realpath_keepfile): New function.
1341 * utils.h (gdb_realpath_keepfile): New declaration.
1342
9b557b58
DE
13432013-10-11 Doug Evans <dje@google.com>
1344
1345 * Makefile.in (GDBFLAGS): New variable.
1346 (run): New rule.
1347
ce13fade
JB
13482013-10-11 Joel Brobecker <brobecker@adacore.com>
1349
1350 * NEWS: Add entry documenting the new "-catch-assert" and
1351 "-catch-exception" GDB/MI commands.
1352
349774ef
JB
13532013-10-11 Joel Brobecker <brobecker@adacore.com>
1354
1355 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1356 "enabled".
1357 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1358 "enabled". Set B->ENABLE_STATE accordingly.
1359 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1360 ada-lang.c.
1361 (create_ada_exception_catchpoint): Add declaration.
1362 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1363 (create_ada_exception_catchpoint): Make non-static. Add new
1364 parameter "disabled". Use it in call to
1365 init_ada_exception_breakpoint.
1366 (catch_ada_exception_command): Add parameter "enabled" in call
1367 to create_ada_exception_catchpoint.
1368 (catch_assert_command): Likewise.
1369
1370 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1371 Add declarations.
1372 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1373 "catch-exception" commands.
1374 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1375 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1376
761269c8
JB
13772013-10-11 Joel Brobecker <brobecker@adacore.com>
1378
1379 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1380 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1381 of all its enumerates with "ada_". Update the rest of this
1382 file throughout.
1383
b4a5b78b
JB
13842013-10-11 Joel Brobecker <brobecker@adacore.com>
1385
1386 * ada-lang.c (ada_decode_exception_location): Delete.
1387 (create_ada_exception_catchpoint): Remove arguments "sal",
1388 "addr_string" and "ops". Add argument "ex_kind" instead.
1389 Adjust implementation accordingly, calling ada_exception_sal
1390 to get the entities it no longer gets passed as arguments.
1391 Document the function's arguments.
1392 (catch_ada_exception_command): Use catch_ada_exception_command_split
1393 instead of ada_decode_exception_location, and update call to
1394 create_ada_exception_catchpoint.
1395 (catch_ada_assert_command_split): Renames
1396 ada_decode_assert_location. Remove parameters "addr_string" and
1397 "ops", and now returns void. Adjust implementation accordingly.
1398 Update the function documentation.
1399 (catch_assert_command): Use catch_ada_assert_command_split
1400 instead of ada_decode_assert_location. Update call to
1401 create_ada_exception_catchpoint.
1402
7ad1d32c 14032013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1404
1405 * utils.h (perror_warning_with_name): Add declaration.
1406 * utils.c (perror_warning_with_name): New function.
1407 * cli/cli-cmds.c (source_script_with_search): Add call to
1408 perror_warning_with_name if from_tty is nul.
1409
7ad1d32c 14102013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1411
1412 * utils.c (perror_string): New function, extracted out of
1413 throw_perror_with_name.
1414 (throw_perror_with_name): Rework to use perror_string.
1415
bcc75809
YQ
14162013-10-11 Yao Qi <yao@codesourcery.com>
1417
1418 * remote.c (discard_pending_stop_replies_in_queue): Update
1419 declaration.
1420 (struct stop_reply) <rs>: New field.
1421 (remove_stop_reply_of_remote_state): New function.
1422 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1423 Callers update. Pass remove_stop_reply_of_remote_state to
1424 QUEUE_iterate.
1425 (remote_parse_stop_reply): Initialize field 'rs'.
1426
05feb193
WN
14272013-10-10 Will Newton <will.newton@linaro.org>
1428
1429 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1430 linux_init_abi.
1431
0d12017b
JB
14322013-10-10 Joel Brobecker <brobecker@adacore.com>
1433
1434 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1435 serial_baud_show_cmd.
1436 (_initialize_cli_cmds): Delete the code creating the
1437 "set/show remotebaud" commands.
1438 * serial.c (baud_rate): Move here from top.c.
1439 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1440 (_initialize_serial): Create "set/show serial baud" commands.
1441 Add "set/show remotebaud" command aliases.
1442 * top.c (baud_rate): Moved to serial.c.
1443 * NEWS: Document the new "set/show serial baud" commands,
1444 replacing "set/show remotebaud".
1445
578d3588
PA
14462013-10-09 Pedro Alves <palves@redhat.com>
1447
1448 * breakpoint.c (insert_bp_location): Use memory_error_message to
1449 build the memory error string.
1450 * c-lang.c: Include "gdbcore.h".
1451 (c_get_string): Use memory_error to throw error.
1452 (target_xfer_memory_error): Delete.
1453 (memory_error_message): New, factored out from
1454 target_xfer_memory_error.
1455 (memory_error): Change parameter type to target_xfer_error.
1456 Rewrite.
1457 (read_memory): Use memory_error instead of
1458 target_xfer_memory_error.
1459 * gdbcore.h: Include "target.h".
1460 (memory_error): Change parameter type to target_xfer_error.
1461 (memory_error_message): Declare function.
1462 * target.c (target_read_memory, target_read_stack)
1463 (target_write_memory, target_write_raw_memory): Return
1464 TARGET_XFER_E_IO on error. Adjust comments.
1465 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1466 instead of EIO.
1467 * target.h (target_read, target_insert_breakpoint)
1468 (target_remove_breakpoint): Adjust comments.
1469 * valprint.c (partial_memory_read): Rename parameter, and adjust
1470 comment.
1471 (val_print_string): Use memory_error_message to build the memory
1472 error string.
1473
c74e1ccf
JK
14742013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1477 result variable. Rename variable fopen_e_ever_failed to
1478 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1479
915215be
PA
14802013-10-09 Pedro Alves <palves@redhat.com>
1481
1482 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1483 (monitor_write_memory_longlongs, monitor_write_memory_block):
1484 Constify 'myaddr' parameter.
1485 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1486 helper.
1487 (monitor_xfer_partial): New function.
1488 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1489 hook. Install a to_xfer_partial hook.
1490
acd13123
TT
14912013-10-09 Tom Tromey <tromey@redhat.com>
1492
1493 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1494 bfd_get_alt_debug_link_info.
1495
40135bb1
JK
14962013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1497
1498 New flag OBJF_NOT_FILENAME.
1499 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1500 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1501 allocate_objfile.
1502 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1503 symbol_file_add_from_bfd.
1504 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1505 allocate_objfile.
1506 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1507 NULL.
1508 * objfiles.h (OBJF_NOT_FILENAME): New.
1509
dc294be5
TT
15102013-10-08 Tom Tromey <tromey@redhat.com>
1511
1512 * Makefile.in (SFILES): Add build-id.c.
1513 (HFILES_NO_SRCDIR): Add build-id.h.
1514 * build-id.c: New file, largely from elfread.c. Modified
1515 most functions.
1516 * build-id.h: New file.
1517 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1518 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1519 Search for dwz file using build-id.
1520 * elfread.c (build_id_bfd_get, build_id_verify)
1521 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1522
db230ce3
JB
15232013-10-08 Joel Brobecker <brobecker@adacore.com>
1524
1525 * ada-lang.c (compare_names_with_case): Renamed from
1526 compare_names, adding a new parameter "casing" and its handling.
1527 New function documentation.
1528 (compare_names): New function, implemented using
1529 compare_names_with_case.
1530
6501c98a
JB
15312013-10-08 Joel Brobecker <brobecker@adacore.com>
1532
1533 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1534
84a1243b
TT
15352013-10-07 Tom Tromey <tromey@redhat.com>
1536
1537 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1538 demangled_names_hash.
1539 (free_objfile): Don't delete the demangled_names_hash.
1540 * objfiles.h (struct objfile_per_bfd_storage)
1541 <demangled_names_hash>: New field.
1542 (struct objfile) <demangled_names_hash>: Move to
1543 objfile_per_bfd_storage.
1544 * symfile.c (reread_symbols): Don't delete the
1545 demangled_names_hash.
1546 * symtab.c (create_demangled_names_hash): Update.
1547 (symbol_set_names): Update.
1548
1da77581
TT
15492013-10-07 Tom Tromey <tromey@redhat.com>
1550
1551 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1552 needs_relocations>: New fields.
1553 (gdb_bfd_requires_relocations): New function.
1554 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1555 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1556 the BFD needs relocations applied.
1557
46ecd527
PA
15582013-10-07 Pedro Alves <palves@redhat.com>
1559
1560 PR breakpoints/11568
1561 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1562 the thread list" instead of "gone".
1563
0c557179
SDJ
15642013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1565
1566 * NEWS: Mention new convenience variable $_exitsignal.
1567 * corelow.c (core_open): Reset exit convenience variables. Set
1568 $_exitsignal to the uncaught signal which generated the corefile.
1569 * infrun.c (handle_inferior_event): Reset exit convenience
1570 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1571 (clear_exit_convenience_vars): New function.
1572 * inferior.h (clear_exit_convenience_vars): New prototype.
1573
1cc47d81
YQ
15742013-10-06 Yao Qi <yao@codesourcery.com>
1575
1576 * varobj.h: Add comments to enum varobj_languages.
1577
73869dc2
DE
15782013-10-04 Doug Evans <dje@google.com>
1579
1580 Add support for DWP file format version 2.
1581 * NEWS: Mention support for DWP file format version 2.
1582 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1583 union of asection, containing_section. New fields virtual_offset
1584 and is_virtual. Change type of readin filed from int to char.
1585 (dwo_sections, dwo_file): Tweak comments.
1586 (dwp_v2_section_ids): New enum.
1587 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1588 str_offsets, types.
1589 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1590 All uses updated.
1591 (virtual_v2_dwo_sections): New struct.
1592 (dwp_hash_table): New fields version, nr_columns. Change type of
1593 section_pool field to a union.
1594 (dwp_file): New field version.
1595 (dwarf2_has_info): Check for virtual sections.
1596 (get_containing_section): New function.
1597 (get_section_bfd_owner, get_section_bfd_section): Call it.
1598 (dwarf2_locate_sections): Update.
1599 (dwarf2_section_empty_p): Update.
1600 (dwarf2_read_section): Handle virtual sections.
1601 (locate_dwz_sections): Update.
1602 (create_dwp_hash_table): Document and handle V2 format.
1603 (locate_v1_virtual_dwo_sections): Renamed from
1604 locate_virtual_dwo_sections and update. All callers updated.
1605 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1606 Delete arg htab. Rename arg section_index to unit_index.
1607 All callers updated.
1608 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1609 All uses updated.
1610 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1611 (lookup_dwo_unit_in_dwp): Add V2 support.
1612 (dwarf2_locate_dwo_sections): Update.
1613 (dwarf2_locate_common_dwp_sections): Renamed from
1614 dwarf2_locate_dwp_sections and update. All callers updated.
1615 (dwarf2_locate_v2_dwp_sections): New function.
1616 (open_and_init_dwp_file): Add V2 support.
1617 (read_str_index): New locals str_section, str_offsets_section.
1618
9a2c3737
PA
16192013-10-04 Pedro Alves <palves@redhat.com>
1620
1621 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1622 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1623 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1624 describing comments with references to ptid.h.
1625 * common/ptid.h: Remove intro description of constructors,
1626 accessors and predicates.
1627 (struct ptid): Reformat.
1628 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1629 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1630 describing comments.
1631
f5371440
JB
16322013-10-04 Joel Brobecker <brobecker@adacore.com>
1633
1634 * aix-thread.c (sync_threadlists): Add missing ')' in call
1635 to ptid_build.
1636
793e1c06
JB
16372013-10-04 Joel Brobecker <brobecker@adacore.com>
1638
1639 * procfs.c (procfs_init_inferior): Fix typo causing the build
1640 to fail.
1641
26f0edc1
JB
16422013-10-04 Joel Brobecker <brobecker@adacore.com>
1643
1644 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1645
5713b9b5
JB
16462013-10-04 Joel Brobecker <brobecker@adacore.com>
1647
1648 * mi/mi-main.c (run_one_inferior): Add function description.
1649 Make ARG a pointer to an integer whose value determines whether
1650 we should "run" or "start" the program.
1651 (mi_cmd_exec_run): Add handling of the "--start" option.
1652 Reject all other command-line options.
1653 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1654
f48ff2a7
YQ
16552013-10-04 Yao Qi <yao@codesourcery.com>
1656
1657 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1658 (struct notif_client) <pending_event>: Moved
1659 to struct remote_notif_state.
1660 <id>: New field.
1661 (struct remote_notif_state) <pending_event>: New field.
1662 (notif_event_xfree): Declare.
1663 * remote-notif.c (handle_notification): Adjust.
1664 (notif_event_xfree): New function.
1665 (do_notif_event_xfree): Call notif_event_xfree.
1666 (remote_notif_state_xfree): Call notif_event_xfree to free
1667 each element in field pending_event.
1668 * remote.c (discard_pending_stop_replies): Remove declaration.
1669 (discard_pending_stop_replies_in_queue): Declare.
1670 (remote_close): Call discard_pending_stop_replies_in_queue
1671 instead of discard_pending_stop_replies.
1672 (remote_start_remote): Adjust.
1673 (stop_reply_xfree): Call notif_event_xfree.
1674 (notif_client_stop): Adjust initialization.
1675 (remote_notif_remove_all): Rename it to ...
1676 (remove_stop_reply_for_inferior): ... this. Update comments.
1677 Don't check INF is NULL.
1678 (discard_pending_stop_replies): Return early if notif_state is
1679 NULL. Adjust. Don't check INF is NULL.
1680 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 1681 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
1682 (remote_wait_ns): Likewise.
1683
5965e028
YQ
16842013-10-04 Yao Qi <yao@codesourcery.com>
1685
1686 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1687 (notif_queue): Remove.
1688 (remote_notif_process): Add one parameter 'notif_queue'.
1689 Update comments. Callers update.
1690 (remote_async_get_pending_events_token): Remove.
1691 (remote_notif_register_async_event_handler): Remove.
1692 (remote_notif_unregister_async_event_handler): Remove.
1693 (handle_notification): Add parameter 'notif_queue'. Update
1694 comments. Callers update.
1695 (notif_xfree): Remove.
1696 (remote_notif_state_allocate): New function.
1697 (remote_notif_state_xfree): New function.
1698 (_initialize_notif): Remove code to allocate queue.
1699 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1700 (struct remote_notif_state): New.
1701 (handle_notification): Update declaration.
1702 (remote_notif_process): Likewise.
1703 (remote_notif_register_async_event_handler): Remove.
1704 (remote_notif_unregister_async_event_handler): Remove.
1705 (remote_notif_state_allocate): Declare.
1706 (remote_notif_state_xfree): Declare.
1707 * remote.c (struct remote_state) <notif_state>: New field.
1708 (remote_close): Don't call
1709 remote_notif_unregister_async_event_handler. Call
1710 remote_notif_state_xfree.
1711 (remote_open_1): Don't call
1712 remote_notif_register_async_event_handler. Call
1713 remote_notif_state_allocate.
1714
5e5ac9a5
YQ
17152013-10-04 Yao Qi <yao@codesourcery.com>
1716
1717 * varobj.c (create_child_with_value): Remove 'const' from the
1718 type of parameter 'name'.
1719 (varobj_add_child): Likewise.
1720 (install_dynamic_child): Remove 'const' from the type of
1721 parameter 'name'.
1722 (varobj_add_child): Likewise.
1723 (create_child_with_value): Likewise. Update comments. Don't
1724 duplicate 'name'.
1725 (update_dynamic_varobj_children): Duplicate 'name'
1726 and pass it to install_dynamic_child.
1727
06ab7b19
PM
17282013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1729
1730 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1731 conversion logic to occur after PyLong_Check. Comment on order
1732 change significance.
1733 * python/py-arch.c (archpy_disassemble): Comment on order of
1734 conversion for integers and longs.
1735
8ae377e8
PA
17362013-10-03 Pedro Alves <palves@redhat.com>
1737
1738 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1739 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1740 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1741 PTRACE_O_TRACEFORK is not supported.
1742 (linux_test_for_tracesysgood): New function.
1743 (linux_test_for_tracefork): New function, factored out from
1744 linux_check_ptrace_features, and also don't kill child_pid here.
1745
b1328b1b
TG
17462013-10-03 Tristan Gingold <gingold@adacore.com>
1747
1748 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1749 Remove verbose error reporting. Use detected state to
1750 thread_set_state call.
1751 (i386_darwin_dr_get): Fix return type. Remove verbose error
1752 report.
1753 Remove trailing spaces.
1754
901461f8
PA
17552013-10-02 Pedro Alves <palves@redhat.com>
1756
1757 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1758 val_print_optimized_out.
1759 * jv-valprint.c (java_print_value_fields): Likewise.
1760 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1761 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1762 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1763 new optimized out value.
1764 * findvar.c (address_from_register): Likewise.
1765 * frame.c (put_frame_register): Tweak error string to say the
1766 register was not saved, rather than optimized out.
1767 * infcmd.c (default_print_one_register_info): Adjust call to
1768 val_print_optimized_out. Use value_of_register instead of
1769 get_frame_register_value.
1770 * mi/mi-main.c (output_register): Use value_of_register instead of
1771 get_frame_register_value.
1772 * valprint.c (valprint_check_validity): Likewise.
1773 (val_print_optimized_out): New value parameter. If the value is
1774 lval_register, print <not saved> instead.
1775 (value_check_printable, val_print_scalar_formatted): Adjust calls
1776 to val_print_optimized_out.
1777 * valprint.h (val_print_optimized_out): New value parameter.
1778 * value.c (struct value) <optimized_out>: Extend comment.
1779 (error_value_optimized_out): New function.
1780 (require_not_optimized_out): Use it. Use a different string for
1781 lval_register values.
1782 * value.h (error_value_optimized_out): New declaration.
1783 * NEWS: Mention <not saved>.
1784
042a84d9
JB
17852013-10-02 Joel Brobecker <brobecker@adacore.com>
1786
1787 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1788 strcmp to compare two symtab filenames.
1789
6b9780fb
JB
17902013-10-02 Joel Brobecker <brobecker@adacore.com>
1791
1792 * symtab.c (search_symbols_equal): Delete.
1793 (sort_search_symbols_remove_dups): Replace call to
1794 search_symbols_equal by call to compare_search_syms,
1795 adjusting as necessary.
1796
751e7549
PM
17972013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1798
1799 PR python/15579
751e7549
PM
1800 * python/python.c: Document gdb.execute command in Python help.
1801
1efd7661
PM
18022013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1803
1804 * python/py-frame.c (frame_info_to_frame_object): Use
1805 gdbpy_convert_exception. Clean up Python object on failure.
1806
562fc849
PM
18072013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1808
1809 * python/lib/gdb/command/frame_filters.py
1810 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1811 (ShowFrameFilterPriority.invoke): Ditto.
1812
d7561cbb
KS
18132013-10-01 Keith Seitz <keiths@redhat.com>
1814
1815 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1816 (parse_linespec): Make 'argptr' const.
1817 Remove temporary cast of 'argptr' to const char **.
1818 (decode_line_full): Pass const pointer to parse_linespec.
1819 (decode_line_1): Likewise.
1820 (decode_objc): Make local variable 'new_argptr' const.
1821 (find_function_symbols): Remove temporary cast to char *
1822 to find_imps.
1823 * objc-lang.c (find_imps): Make argument 'method' const.
1824 Return const.
1825 * objc-lang.h (find_imps): Likewise.
1826
18272013-10-01 Keith Seitz <keiths@redhat.com>
1828
1829 * completer.c (skip_quoted_chars): Make all arguments const.
1830 Return const.
1831 (skip_quoted): Likewise.
1832 * completer.h (skip_quoted_chars): Likewise.
1833 (skip_quoted): Likewise.
1834 * defs.h (skip_quoted): Remove duplicate declaration.
1835 * jv-exp.y: Include completer.h.
1836 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1837 * p-exp.y: Include completer.h.
1838
18392013-10-01 Keith Seitz <keiths@redhat.com>
1840
1841 * c-exp.y (parse_number): Make first argument const.
1842 Make a copy of the input to manipulate.
1843 (c_parse_escape): Make first argument const.
1844 Make local variable 'tokptr' const.
1845 (parse_string_or_char): Make first two arguments const.
1846 (macro_original_text): Make const.
1847 (lex_one_token): Make local variable 'tokstart' const.
1848 Likewise for local variables named 'p'.
1849 Cast away const for struct stoken (temporary).
1850 * c-lang.h (c_parse_escpae): Make first argument const.
1851 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1852 const.
1853 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1854 var_string case.
1855 * f-exp.y (parse_number): Make first argument const.
1856 (match_string_literal): Make local variable 'tokstart'
1857 const.
1858 (yylex): Make local variable 'p' const.
1859 Cast away const for struct stoken (temporary).
1860 * go-exp.y (parse_number): Make first argument const.
1861 (parse_string_or_char): Likewise.
1862 Make local variable 'tokstart' const.
1863 (lex_one_token): Likewise for numerous locals called 'p'.
1864 Cast away const for struct stoken (temporary).
1865 * jv-exp.y (parse_number): Make first argument const.
1866 Make local variables 'tokstart' and 'tokptr' const.
1867 Cast away const for call to skip_quoted (temporary).
1868 (yylex): Make local variable 'p' const.
1869 Cast away const for struct stoken (temporary).
1870 * m2-exp.y (parse_number): Make local variable 'p' const.
1871 (yylex): Likewise for 'tokstart'.
1872 Cast away const for struct stoken (temporary).
1873 Make local variable 'p' const.
1874 * macroexp.c (get_character_constant): Pass a const string
1875 to c_parse_escape.
1876 (get_string_literal): Likewise.
1877 (macro_expand_next): Make first argument const.
1878 Cast away const for init_shared_buffer.
1879 * macroexp.h (macro_expand_next): Make first argument const.
1880 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1881 Pass a const string to c_parse_escape.
1882 Make local variables 'p' and 'namestart' const.
1883 * parse.c (lexptr): Make const.
1884 (prev_lexptr): Likewise.
1885 (find_template_name_end): Return const.
1886 Make argument const, too.
1887 (parse_exp_in_context): Make first argument const.
1888 Remove the entire const_hack.
1889 (parse_exp_in_context_1): Make first argument const.
1890 * parser-defs.h (find_template_name_end): Return const.
1891 Make argument const, too.
1892 (lexptr): Make const.
1893 (prev_lexptr): Likewise.
1894 * utils.c (parse_escape): Make second argument const.
1895 * utils.h (parse_escape): Likewise.
1896
18972013-10-01 Keith Seitz <keiths@redhat.com>
1898
1899 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1900 is now const.
1901 (block_lookup): Make 'raw_name' and 'name' const.
1902 * ada-lex.l (processString): Update for struct stoken.ptr.
1903 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1904 (operator_stoken): Likewise.
1905 (lex_one_token): Remove temporary cast to char * for
1906 'yylval.sval.ptr'.
1907 * f-exp.y (yylex): Likewise.
1908 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1909 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1910 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1911 'yylval.sval.ptr'.
1912 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1913 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1914 * linespec.c (struct ls_parser): Make 'stream' const.
1915 (find_parameter_list_end): Make argument 'input' and local
1916 variable 'p' const.
1917 (linespec_lexer_lex_string): Make local variables 'start' and
1918 'p' const.
1919 Use skip_spaces_const instead of skip_spaces.
1920 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1921 const.
1922 (parse_linespec): Temporarily cast 'argptr' to const for
1923 'parser->lexer.stream'.
1924 * m2-exp.y (yylex): Remove temporary cast to char * for
1925 'yylval.sval.ptr'.
1926 * objc-lang.c (add_msglist): Make local variable 'p' const.
1927 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1928 (exp : STRING): Make 'sp' const.
1929 (parse_number): Make argument 'p' const.
1930 * parser-defs.h (struct stoken): Make 'ptr' const.
1931
193a8eac
DE
19322013-10-01 Doug Evans <dje@google.com>
1933
1934 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1935
2213e2be
YQ
19362013-10-01 Yao Qi <yao@codesourcery.com>
1937
1938 * varobj.c (c_value_of_root): Remove declaration.
1939 (cplus_value_of_root, java_value_of_root): Likewise.
1940 (ada_value_of_root): Likewise.
1941 (struct language_specific) <value_of_root>: Remove.
1942 (languages): Update initialization.
1943 (check_scope): Move earlier.
1944 (c_value_of_root): Move earlier and rename to ...
1945 (value_of_root_1): ... this.
1946 (value_of_root): Caller update.
1947 (cplus_value_of_root, java_value_of_root): Remove.
1948 (ada_value_of_root): Remove.
1949
c573f273
YQ
19502013-10-01 Yao Qi <yao@codesourcery.com>
1951
1952 * varobj.c (varobj_format_string): Remove "unknown".
1953 (languages): Remove the first element.
1954 * varobj.h (enum varobj_languages): Remove vlang_c.
1955
56250258
YQ
19562013-10-01 Yao Qi <yao@codesourcery.com>
1957
1958 * varobj.c (struct language_specific) <language>: Remove.
1959 (languages): Update the initialization.
1960
29f9ebfa
YQ
19612013-10-01 Yao Qi <yao@codesourcery.com>
1962
1963 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1964 "solib-target.h". Include "windows-tdep.h".
1965 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1966 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1967 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1968 windows-tdep.o to gdb_target_obs.
1969
64870a42
YQ
19702013-10-01 Yao Qi <yao@codesourcery.com>
1971
1972 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1973 "solib-target.h".
1974 (amd64_windows_init_abi): Don't call set_solib_ops and
1975 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1976 windows_init_abi instead.
1977 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1978 "solib-target.h".
1979 (i386_cygwin_init_abi): Don't call set_solib_ops,
1980 set_gdbarch_has_dos_based_file_system and
1981 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1982 windows_init_abi instead.
1983 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1984 (windows_init_abi): New function.
1985 (windows_iterate_over_objfiles_in_search_order): Make it
1986 static.
1987 * windows-tdep.h (windows_init_abi): Declare.
1988 (windows_iterate_over_objfiles_in_search_order): Remove
1989 declaration.
1990
0aebdefa
JB
19912013-10-01 Jerome Guitton <guitton@adacore.com>
1992
1993 Checked in by Joel Brobecker <brobecker@adacore.com>
1994 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1995 incomplete dictionnary instead of None in case of missing
1996 environment variables.
1997 (elinos_init): in case of an incomplete environment, best
1998 effort to load system libraries instead of abort.
1999
1c8e84b0
JB
20002013-10-01 Joel Brobecker <brobecker@adacore.com>
2001
2002 * ada-lang.c (ada_has_this_exception_support): Ignore
2003 mst_solib_trampoline minimal symbols.
2004
61d82a0d
TG
20052013-09-30 Tristan Gingold <gingold@adacore.com>
2006
2007 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2008 hardware watchpoint.
2009 (i386_darwin_dr_set): Support 32 and 64 bit states.
2010 (i386_darwin_dr_get): Likewise.
2011 (i386_darwin_dr_set_control): Make static.
2012 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2013 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2014
dfd4cc63
LM
20152013-09-30 Luis Machado <lgustavo@codesourcery.com>
2016
2017 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2018 Replace TIDGET with ptid_get_lwp.
2019 Replace GET_LWP with ptid_get_lwp.
2020 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2021 Replace BUILD_THREAD with ptid_build.
2022 Replace BUILD_LWP with ptid_build.
2023 Replace PIDGET with ptid_get_pid.
2024 Replace TIDGET with ptid_get_lwp.
2025 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2026 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2027 Replace TIDGET with ptid_get_lwp.
2028 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2029 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2030 Replace TIDGET with ptid_get_lwp.
2031 Replace GET_LWP with ptid_get_lwp.
2032 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2033 * auxv.c: Likewise.
2034 * breakpoint.c: Likewise.
2035 * common/ptid.c (ptid_is_pid): Condense check for
2036 null_ptid and minus_one_ptid.
2037 (ptid_lwp_p): New function.
2038 (ptid_tid_p): New function.
2039 * common/ptid.h: Update comments for accessors.
2040 (ptid_lwp_p): New prototype.
2041 (ptid_tid_p): New prototype.
2042 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2043 * gcore.c: Replace PIDGET with ptid_get_pid.
2044 * gdbthread.h: Likewise.
2045 * gnu-nat.c: Likewise.
2046 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2047 Replace TIDGET with ptid_get_lwp.
2048 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2049 * hppanbsd-nat.c: Likewise.
2050 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2051 Replace TIDGET with ptid_get_lwp.
2052 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2053 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2054 * infcmd.c: Likewise.
2055 * inferior.h: Likewise.
2056 * inflow.c: Likewise.
2057 * infrun.c: Likewise.
2058 * linux-fork.c: Likewise.
2059 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2060 Replace GET_PID with ptid_get_pid.
2061 Replace is_lwp with ptid_lwp_p.
2062 Replace GET_LWP with ptid_get_lwp.
2063 Replace BUILD_LWP with ptid_build.
2064
5b4e221c
MF
20652013-09-28 Mike Frysinger <vapier@gentoo.org>
2066
2067 * common/linux-btrace.c: Move sys/syscall.h out of the
2068 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2069 Also check for SYS_perf_event_open before attempting to buid.
2070
57d63ce2
DE
20712013-09-27 Doug Evans <dje@google.com>
2072
19ac8c2e
DE
2073 * dwarf2read.c (dwarf2_section_info): Add comment.
2074 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2075 All uses updated.
2076 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2077 (dwarf2_read_section): Delete unused local "header". Add section
2078 name to error message.
2079 (create_dwo_in_dwp): Tweak comment.
2080 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2081
a32a8923
DE
2082 * dwarf2read.c (die_reader_specs): Tweak comment.
2083 (get_section_bfd_owner, get_section_bfd_section): New functions.
2084 (get_section_name, get_section_file_name): New functions.
2085 (get_section_id, get_section_flags): New functions.
2086 (*): Use new functions to access section fields.
2087
57d63ce2
DE
2088 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2089 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2090 arg "htab". All callers updated.
2091 (create_debug_types_hash_table): Remove redundant copy of
2092 abbrev_section.
2093 (create_dwo_in_dwp): Tweak comments.
2094 (read_str_index): Tweak comment. Record dwarf form name in static
2095 local.
2096
3736004f
PA
20972013-09-27 Pedro Alves <palves@redhat.com>
2098
2099 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2100 (remote_filename_p): Add comment.
2101 * remote.c (remote_filename_p): Adjust to use
2102 REMOTE_SYSROOT_PREFIX.
2103 * solib.c (solib_find): When deciding whether we need to add a
2104 directory separator, check whether the sysroot is "remote:"
2105 instead of checking whether the patch has a drive spec. Add
2106 comments.
2107
5b5596ff
PA
21082013-09-27 Pedro Alves <palves@redhat.com>
2109
2110 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2111 Delete fields.
2112 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2113 directly.
2114
b5eef7aa
JK
21152013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2116
2117 Fix set debug frame output.
2118 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2119 SENTINEL_FRAME entry lower to match enum frame_type order.
2120
5b856f36
PM
21212013-09-26 Pierre Muller <muller@sourceware.org>
2122
2123 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2124 AMD64_R15_REGNUM when a register index is expected.
2125 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2126 Substitute in array.
2127 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2128 (amd64_push_arguments): Substitute in integer_regnum array.
2129
ade7ed9e
DE
21302013-09-25 Doug Evans <dje@google.com>
2131
d3e81981
DE
2132 * objfiles.c (allocate_objfile): Move comment to better place.
2133
8fb8eb5c
DE
2134 New option "set debug symfile on".
2135 * NEWS: Mention "set debug symfile".
2136 * Makefile.in (SFILES): Add symfile-debug.c.
2137 (COMMON_OBS): Add symfile-debug.o.
2138 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2139 objfile's symbol functions.
2140 * objfiles.h (objfile_set_sym_fns): Declare.
2141 * symfile-debug.c: New file.
2142 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2143 objfile's symbol functions.
2144 (reread_symbols): Ditto.
2145
c256e171
DE
2146 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2147 All uses updated.
2148 (add_symtab_fns): Update prototype.
2149 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2150 (registered_sym_fns): ... this.
2151 (symtab_fns): Update.
2152 (add_symtab_fns): New arg "flavour". All callers updated.
2153 (find_sym_fns): Rewrite to use new sym_fns registry.
2154
f56ce883
DE
2155 * symfile.h (struct sym_fns): Add "objfile" argument to
2156 sym_read_linetable. All uses updated.
2157
20c681d1
DE
2158 * symtab.c (domain_name, search_domain_name): New functions.
2159 * symtab.h (domain_name, search_domain_name): Declare.
2160
ade7ed9e
DE
2161 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2162 map_matching_symbols so objfile is first. All uses updated.
2163 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2164 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2165
7d760051
UW
21662013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2167
2168 PR shlibs/8882
2169 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2170 link map entries.
2171
020f7036
DE
21722013-09-24 Doug Evans <dje@google.com>
2173
2174 * objfiles.c (free_objfile): Move comment.
2175
598402f0
JB
21762013-09-24 Joel Brobecker <brobecker@adacore.com>
2177
2178 * ada-exp.y (string_to_operator): Delete.
2179 (dummy_string_to_ada_operator): Delete.
2180
bf4d6c1c
JB
21812013-09-24 Joel Brobecker <brobecker@adacore.com>
2182
2183 Revert:
2184 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2185 amd64-tdep.c.
2186 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2187 call_dummy_integer_regs, and classify.
2188 * amd64-tdep.h (amd64_classify): Add declaration.
2189 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2190 (amd64_reg_class): Delete, moved to i386-tdep.h.
2191 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2192 Replace call to amd64_classify by call to tdep->classify.
2193 (amd64_push_arguments): Get the list of registers to use for
2194 passing integer parameters from the gdbarch tdep structure,
2195 rather than using a hardcoded one. Replace calls to amd64_classify
2196 by calls to tdep->classify.
2197 (amd64_push_dummy_call): Get the register number used for
2198 the "hidden" argument from tdep->call_dummy_integer_regs.
2199 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2200 and tdep->call_dummy_integer_regs. Set tdep->classify.
2201
849e9755
JB
22022013-09-24 Joel Brobecker <brobecker@adacore.com>
2203
2204 Revert:
2205 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2206 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2207 where tdep->memory_args_by_pointer is non-zero.
2208
c1459fd6
JB
22092013-09-24 Joel Brobecker <brobecker@adacore.com>
2210
2211 Revert:
2212 * i386-tdep.h (struct gdbarch_tdep): Add new field
2213 integer_param_regs_saved_in_caller_frame.
2214 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2215 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2216
20c2e3e0
JB
22172013-09-24 Joel Brobecker <brobecker@adacore.com>
2218
874440b8 2219 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2220 (amd64_windows_classify): Delete.
2221 (amd64_windows_passed_by_integer_register)
2222 (amd64_windows_passed_by_xmm_register)
2223 (amd64_windows_passed_by_pointer)
2224 (amd64_windows_adjust_args_passed_by_pointer)
2225 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2226 (amd64_windows_push_dummy_call): New functions.
2227 (amd64_windows_init_abi): Remove setting of
2228 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2229 tdep->classify, tdep->memory_args_by_pointer and
2230 tdep->integer_param_regs_saved_in_caller_frame.
2231 Add call to set_gdbarch_push_dummy_call.
2232
82bf32bc
JK
22332013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2234
2235 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2236 objfile->original_name.
2237
24ba069a
JK
22382013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2239
2240 Pass down original filename for objfile.
2241 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2242 * elfread.c (elf_symfile_read): Likewise.
2243 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2244 longer set ORIGINAL_NAME.
2245 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2246 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2247 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2248 symbol_file_add_from_bfd call.
2249 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2250 (macho_check_dsym): Add parameter filenamep. Change function comment.
2251 Set *filenamep.
2252 (macho_symfile_read): New variable dsym_filename. Update
2253 macho_check_dsym call. Use it for symbol_file_add_separate.
2254 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2255 it. Use it for objfile->original_name.
2256 (objfile_name): Return OBFD's filename, if available.
2257 * objfiles.h (allocate_objfile): Add new parameter name.
2258 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2259 * symfile-mem.c (symbol_file_add_from_memory): Update
2260 symbol_file_add_from_bfd call.
2261 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2262 comment for it.
2263 (symbol_file_add_with_addrs): New parameter name, add function comment
2264 for it. Remove variable name. Update allocate_objfile call.
2265 (symbol_file_add_separate): New parameter name, add function comment
2266 for it. Update symbol_file_add_with_addrs call.
2267 (symbol_file_add_from_bfd): New parameter name. Update
2268 symbol_file_add_with_addrs call.
2269 (symbol_file_add): Update symbol_file_add_from_bfd call.
2270 (reread_symbols): New variable original_name. Save
2271 objfile->original_name by it.
2272 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2273 second parameter.
2274
4262abfb
JK
22752013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2276
2277 Code cleanup: Add objfile_name accessor function.
2278 * ada-lang.c (is_known_support_routine): Use objfile_name.
2279 * auto-load.c (source_gdb_script_for_objfile)
2280 (auto_load_objfile_script): Likewise.
2281 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2282 * dbxread.c (dbx_symfile_read): Likewise.
2283 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2284 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2285 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2286 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2287 (lookup_dwp_signatured_type, lookup_dwo_unit)
2288 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2289 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2290 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2291 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2292 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2293 (read_subrange_type, load_partial_dies, read_partial_die)
2294 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2295 (die_containing_type, build_error_marker_type, lookup_die_type)
2296 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2297 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2298 (get_DW_AT_signature_type, write_psymtabs_to_index)
2299 (save_gdb_index_command): Likewise.
2300 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2301 Likewise.
2302 * expprint.c (dump_subexp_body_standard): Likewise.
2303 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2304 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2305 original_name.
2306 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2307 obj_name, use objfile_name for it, use the variable.
2308 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2309 Use objfile_name.
2310 * machoread.c (macho_symtab_read, macho_check_dsym)
2311 (macho_symfile_relocate): Likewise.
2312 * maint.c (maintenance_translate_address): Likewise.
2313 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2314 * minsyms.c (install_minimal_symbols): Likewise.
2315 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2316 original_name.
2317 (filter_overlapping_sections): Use objfile_name.
2318 (objfile_name): New function.
2319 * objfiles.h (struct objfile): Rename field name to original_name.
2320 (objfile_name): New prototype.
2321 * printcmd.c (sym_info, address_info): Use objfile_name.
2322 * probe.c (parse_probes, collect_probes, compare_probes)
2323 (info_probes_for_ops): Likewise.
2324 * progspace.c (clone_program_space): Likewise.
2325 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2326 (maintenance_info_psymtabs): Likewise.
2327 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2328 (source_section_scripts): Likewise.
2329 * python/py-objfile.c (objfpy_get_filename): Likewise.
2330 * python/py-progspace.c (pspy_get_filename): Likewise.
2331 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2332 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2333 * solib.c (solib_read_symbols): Likewise.
2334 * stabsread.c (scan_file_globals): Likewise.
2335 * stap-probe.c (handle_stap_probe): Likewise.
2336 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2337 (find_separate_debug_file_by_debuglink): Likewise.
2338 (reread_symbols): Likewise. Use the objfile field name renamed to
2339 original_name.
2340 (allocate_symtab): Use objfile_name.
2341 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2342 (dump_objfile, dump_msymbols, dump_symtab_1)
2343 (maintenance_print_msymbols, maintenance_print_objfiles)
2344 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2345 * target.c (target_translate_tls_address, target_info): Likewise.
2346 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2347 objfile_name.
2348
4721dc18
JK
23492013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2350
2351 Code cleanup.
2352 * probe.c (parse_probes): Rename variable objfile_name to
2353 objfile_namestr.
2354
a61d6db8
JK
23552013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2356
2357 Remove solib-sunos.c.
2358 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2359 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2360 * objfiles.c (rt_common_objfile): Remove.
2361 (free_objfile): Remove rt_common_objfile comparison.
2362 * objfiles.h (rt_common_objfile): Remove.
2363 * solib-sunos.c: Remove.
2364 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2365
2659903b
JK
23662013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2367
2368 Remove a.out NetBSD and OpenBSD hosts.
2369 * NEWS (Removed native configurations): New.
2370 * config/arm/nbsdaout.mh: Remove.
2371 * config/i386/nbsdaout.mh: Remove.
2372 * config/i386/obsdaout.mh: Remove.
2373 * config/m68k/nbsdaout.mh: Remove.
2374 * config/sparc/nbsdaout.mh: Remove.
2375 * config/vax/nbsdaout.mh: Remove.
2376 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2377 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2378 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2379 error.
2380 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2381 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2382 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2383
f60e2d5c
TT
23842013-09-23 Tom Tromey <tromey@redhat.com>
2385
2386 * linespec.c (struct minsym_and_objfile): Remove.
2387 (minsym_and_objfile_d): Remove.
2388 (struct linespec, struct collect_info, linespec_parse_basic)
2389 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2390 (compare_msymbols, find_method, find_function_symbols)
2391 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2392 (add_minsym, search_minsyms_for_name): Update.
2393
d3eaaf66
AB
23942013-09-23 Andrew Burgess <aburgess@broadcom.com>
2395
2396 * regcache.c: Add include of valprint.h.
2397 (dump_endian_bytes): Delete.
2398 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2399
2cc762b5
AB
24002013-09-23 Andrew Burgess <aburgess@broadcom.com>
2401
2402 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2403
96181529
PA
24042013-09-19 Pedro Alves <palves@redhat.com>
2405
2406 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2407 breakpoints.
2408
9b3f3ee6
TS
24092013-09-19 Pedro Alves <palves@redhat.com>
2410 Thomas Schwinge <thomas@codesourcery.com>
2411 Yue Lu <hacklu.newborn@gmail.com>
2412
2413 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2414 Take a gdb_byte pointer instead of a char pointer.
2415
2416 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2417 gnu_xfer_partial helper.
2418 (gnu_xfer_partial): New function.
2419 (gnu_target): Don't install a deprecated_xfer_memory hook.
2420 Install a to_xfer_partial hook.
2421
69150c3d
JK
24222013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2423
2424 Constification.
2425 * main.c (captured_main): Replace catch_command_errors by
2426 catch_command_errors_const. Twice.
2427 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2428 (symbol_file_add): Make name parameter const.
2429 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2430 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2431 variable name. Change their usage accordingly.
2432 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2433 const.
2434 (symbol_file_add_main): Make args parameter const.
2435
086850b2
UW
24362013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2437 Ulrich Weigand <uweigand@de.ibm.com>
2438
2439 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2440 of c_value member.
2441 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2442
ca08a94c 24432013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2444 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2445
2446 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2447 (gnu_create_inferior)
2448 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2449 (set_sig_thread_cmd): Use the lwpid field of ptids to
2450 store/extract thread ids instead of the tid field.
2451 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2452
e4c6a2c4
AB
24532013-09-18 Andrew Burgess <aburgess@broadcom.com>
2454
2455 * infcmd.c (default_print_one_register_info): Add detection of
2456 optimized out values.
2457 (default_print_registers_info): Switch to using
2458 get_frame_register_value.
2459
58c48e72
MM
24602013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2461
2462 * infrun.c (handle_inferior_event): Check if we know the
2463 function start address before setting a resume breakpoint.
2464
c8d37639
PA
24652013-09-18 Pedro Alves <palves@redhat.com>
2466
2467 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2468 minus_one_ptid instead of looking at the ptid's tid field and
2469 comparing that to -1.
2470
71926e28
AB
24712013-09-18 Andrew Burgess <aburgess@broadcom.com>
2472
2473 * main.h (get_gdb_program_name): Remove extra whitespace.
2474
c88a1531
AB
24752013-09-18 Andrew Burgess <aburgess@broadcom.com>
2476
2477 * main.h (get_gdb_program_name): Add declaration.
2478 * main.c (get_gdb_program_name): Add definition.
2479
4390d890
DE
24802013-09-17 Doug Evans <dje@google.com>
2481
2482 * dwarf2read.c: Move definitions of complaint functions to after
2483 forward declarations of local functions.
2484
49fa26b0
PA
24852013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2486 Pedro Alves <palves@redhat.com>
2487
2488 PR gdb/11568
2489 * breakpoint.c (remove_threaded_breakpoints): New function.
2490 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2491 as thread_exit observer.
2492
08d72866
PA
24932013-09-17 Pedro Alves <palves@redhat.com>
2494
2495 PR gdb/15911
2496 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2497 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2498 * corelow.c (core_open):
2499 * frame.h (print_stack_frame, print_frame_info): New
2500 'set_current_sal' parameter.
2501 * infcmd.c (finish_command, kill_command): Adjust call to
2502 print_stack_frame.
2503 * inferior.c (inferior_command): Likewise.
2504 * infrun.c (normal_stop): Likewise.
2505 * linux-fork.c (linux_fork_context): Likewise.
2506 * record-full.c (record_full_goto_entry, record_full_restore):
2507 Likewise.
2508 * remote-mips.c (common_open): Likewise.
2509 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2510 Use it.
2511 (print_frame_info): New 'set_current_sal' parameter. Set the last
2512 displayed sal depending on the new paremeter instead of looking at
2513 print_what.
2514 (backtrace_command_1, select_and_print_frame, frame_command)
2515 (current_frame_command, up_command, down_command): Adjust call to
2516 print_stack_frame.
2517 * thread.c (print_thread_info, restore_selected_frame)
2518 (do_captured_thread_select): Adjust call to print_stack_frame.
2519 * tracepoint.c (tfind_1): Likewise.
2520 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2521 (mi_cmd_stack_info_frame): Likewise.
2522 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2523 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2524
6bc305f5
SDJ
25252013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2526
2527 * value.c (isvoid_internal_fn): Replace "parameter" with
2528 "argument".
2529
0a7cfe2c
SS
25302013-09-16 Stan Shebs <stan@codesourcery.com>
2531
2532 * README: Update references to writing code for GDB.
2533 * configure.ac (build_warnings): Remove obsolete comment.
2534 * configure: Regenerate.
2535 * gdbarch.sh: Remove references to gdbint.texinfo.
2536 * gdbarch.h: Regenerate.
2537 * gdbtypes.c (objfile_type): Remove comments referencing internals
2538 manual and D10V.
2539
a280dbd1
SDJ
25402013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2541
2542 * NEWS: Mention new convenience function $_isvoid.
2543 * value.c (isvoid_internal_fn): New function.
2544 (_initialize_values): Add new convenience function $_isvoid.
2545
04a83fee
PM
25462013-09-16 Pierre Muller <muller@sourceware.org>
2547
2548 * arm-linux-tdep.c: Add "elf/common.h" header.
2549 Remove AT_HWCAP macro definintion as it is provided in
2550 added include file.
2551 * s390-tdep.c: Remove system header <elf.h>
2552 Add "elf/common.h" header for AT_HWCAP definition.
2553 (s390_core_read_description): Use correct CORE_ADDR
2554 for hwcap local variable used as third parameter
2555 of function target_auxv_search.
2556
88505fac
PM
25572013-09-14 Pierre Muller <muller@sourceware.org>
2558 Tom Tromey <tromey@redhat.com>
2559 Pedro Alves <palves@redhat.com>
2560
2561 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2562 mode if operating system doesn't know O_CLOEXEC.
2563
d3846e71
JK
25642013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2565
2566 Code cleanup.
2567 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2568 inner block.
2569
4ac33720
UW
25702013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2571
2572 * NEWS: Mention TDB support.
2573 * features/s390-tdb.xml: New file.
2574 * features/s390-te-linux64.xml: New file.
2575 * features/s390x-te-linux64.xml: New file.
2576 * features/Makefile (WHICH): Add new tdescs above.
2577 (s390-te-linux64-expedite): Set.
2578 (s390x-te-linux64-expedite): Set.
2579 * features/s390-te-linux64.c: New file (generated).
2580 * features/s390x-te-linux64.c: New file (generated).
2581 * regformats/s390-te-linux64.dat: New file (generated).
2582 * regformats/s390x-te-linux64.dat: New file (generated).
2583 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2584 (HWCAP_S390_TE): Likewise.
2585 (S390_TDB_DWORD0_REGNUM): Likewise.
2586 (S390_TDB_DWORD0_REGNUM): Likewise.
2587 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2588 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2589 (S390_TDB_ATIA_REGNUM): Likewise.
2590 (S390_TDB_R0_REGNUM): Likewise.
2591 (S390_TDB_R1_REGNUM): Likewise.
2592 (S390_TDB_R2_REGNUM): Likewise.
2593 (S390_TDB_R3_REGNUM): Likewise.
2594 (S390_TDB_R4_REGNUM): Likewise.
2595 (S390_TDB_R5_REGNUM): Likewise.
2596 (S390_TDB_R6_REGNUM): Likewise.
2597 (S390_TDB_R7_REGNUM): Likewise.
2598 (S390_TDB_R8_REGNUM): Likewise.
2599 (S390_TDB_R9_REGNUM): Likewise.
2600 (S390_TDB_R10_REGNUM): Likewise.
2601 (S390_TDB_R11_REGNUM): Likewise.
2602 (S390_TDB_R12_REGNUM): Likewise.
2603 (S390_TDB_R13_REGNUM): Likewise.
2604 (S390_TDB_R14_REGNUM): Likewise.
2605 (S390_TDB_R15_REGNUM): Likewise.
2606 (S390_NUM_REGS): Increase.
2607 (S390_IS_TDBREGSET_REGNUM): New macro.
2608 (s390_regmap_tdb): Declare.
2609 (s390_sizeof_tdbregset): Define.
2610 (tdesc_s390_te_linux64): Declare.
2611 (tdesc_s390x_te_linux64): Likewise.
2612 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2613 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2614 (s390_regmap_tdb): New regmap.
2615 (s390_supply_tdb_regset): New function.
2616 (s390_tdb_regset): New regset.
2617 (s390_linux64v2_regset_sections): Add TDB regset to list.
2618 (s390x_linux64v2_regset_sections): Likewise.
2619 (s390_regset_from_core_section): Recognize TDB core note section.
2620 (s390_core_read_description): If HWCAP indicates TE support,
2621 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2622 (s390_gdbarch_init): Handle TDB regset.
2623 (_initialize_s390_tdep): Initialize new tdescs.
2624 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2625 (have_regset_tdb): New variable.
2626 (s390_native_supply): Support register invalidation.
2627 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2628 (check_regset): Treat ENODATA as "regset exists".
2629 (s390_linux_fetch_inferior_registers): Add TDB.
2630 (s390_read_description): Check for TDB existence and select
2631 appropriate tdesc.
2632 * gdbserver/Makefile.in (clean): Add removal of new makefile
2633 targets.
2634 (s390-te-linux64.c): New makefile target.
2635 (s390x-te-linux64.c): Likewise.
2636 * gdbserver/configure.srv (srv_regobj): Append new objects
2637 s390-te-linux64.o and s390x-te-linux64.o.
2638 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2639 s390x-te-linux64.xml, and s390-tdb.xml.
2640 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2641 declaration.
2642 (tdesc_s390_te_linux64): Likewise.
2643 (init_registers_s390x_te_linux64): Likewise.
2644 (tdesc_s390x_te_linux64): Likewise.
2645 (s390_check_regset): Treat ENODATA as "regset exists".
2646 (s390_arch_setup): Add TDB regset support.
2647 (initialize_low_arch): Initialize registers for new tdescs.
2648
2ccd1468
UW
26492013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2650
2651 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2652 (S390_IS_FPREGSET_REGNUM): New macro.
2653 * s390-tdep.c (s390_dwarf_regmap): Make const.
2654 (regnum_is_gpr_full): New function for replacing repeated code.
2655 (s390_pseudo_register_name): Use it.
2656 (s390_pseudo_register_type): Likewise.
2657 (s390_pseudo_register_read): Likewise.
2658 (s390_pseudo_register_write): Likewise.
2659 (s390_unwind_pseudo_register): Likewise.
2660 (s390_regmap_gregset): New format for regmap.
2661 (s390x_regmap_gregset): Likewise.
2662 (s390_regmap_fpregset): Likewise.
2663 (s390_regmap_upper): Likewise.
2664 (s390_regmap_last_break): Likewise.
2665 (s390_regmap_system_call): Likewise.
2666 (s390_supply_regset): Adjust to new regmap format.
2667 (s390_collect_regset): Likewise.
2668 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2669 (s390_native_collect): Likewise.
2670 (supply_gregset): Likewise.
2671 (fill_gregset): Likewise.
2672 (supply_fpregset): Likewise.
2673 (fill_fpregset): Likewise.
2674 (fetch_regset): Likewise.
2675 (store_regset): Likewise.
2676 (s390_linux_fetch_inferior_registers): Likewise.
2677 (s390_linux_fetch_inferior_registers): Likewise.
2678
1aa4cd77
AP
26792013-09-12 Andrew Pinski <apinski@cavium.com>
2680
2681 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2682
d91fab15
UW
26832013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2684
2685 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2686
5a5d8ead
AB
26872013-09-09 Andrew Burgess <aburgess@broadcom.com>
2688
2689 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2690
1385f66c
PA
26912013-09-06 Pedro Alves <palves@redhat.com>
2692
2693 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2694 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2695 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2696 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2697 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2698 gdb_stdlog.
2699
146ec4db
PA
27002013-09-06 Pedro Alves <palves@redhat.com>
2701
2702 * remote-sim.c (dump_mem): Constify buf parameter.
2703 gdbsim_xfer_inferior_memory): Rename to ...
2704 (gdbsim_xfer_memory): ... this. Adjust interface as
2705 target_xfer_partial helper.
2706 (gdbsim_xfer_partial): New function.
2707 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2708 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2709
fcde0081
PA
27102013-09-06 Pedro Alves <palves@redhat.com>
2711
2712 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2713 host_address_to_string, and send debug output to gdb_stdlog.
2714
749c8b38
RW
27152013-09-06 Ricard Wanderlof <ricardw@axis.com>
2716
2717 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2718 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2719 gdb_target_obs for cris target.
2720 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2721 (cris_gdbarch_init): Move calls to
2722 set_gdbarch_fetch_tls_load_module_address and
2723 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2724 Add call to gdbarch_init_osabi.
2725 * cris-linux-tdep.c: New file.
2726 * cris-tdep.h: New file.
2727
43df09d9
AB
27282013-09-06 Andrew Burgess <aburgess@broadcom.com>
2729
2730 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2731 to deprecated_init_ui_hook.
2732
4d09c5b4
AB
27332013-09-06 Andrew Burgess <aburgess@broadcom.com>
2734
2735 * cli/cli-interp.c (_initialize_cli_interp): Add a
2736 command_loop_proc to interp_procs.
2737 * event-top.c (cli_command_loop): Change signature to match
2738 interp_command_loop_ftype.
2739 * event-top.h (cli_command_loop): Same.
2740 * interps.c (interp_new): Require every interpreter to have a
2741 command_loop_proc.
2742 (current_interp_command_loop): Just call the command_loop_proc on
2743 the current interpreter.
2744 * tui/tui-interp.c (_initialize_tui_interp): Add a
2745 command_loop_proc to interp_procs.
2746
8eb3d7b6
RW
27472013-09-06 Ricard Wanderlof <ricardw@axis.com>
2748
2749 * cris-tdep.c (cris_gdbarch_init): Add call to
2750 get_gdbarch_fetch_tls_load_module_address.
2751
18b3c2f5
RW
27522013-09-06 Ricard Wanderlof <ricardw@axis.com>
2753
2754 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2755 (cris_elf_gregset_t): Rename from elf_gregset_t.
2756 (crisv32_elf_gregset_t): Adjust.
2757 (cris_supply_gregset, fetch_core_registers): Adjust.
2758
dc8636ef
RW
27592013-09-06 Ricard Wanderlof <ricardw@axis.com>
2760
2761 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2762
257e6d53
AB
27632013-09-05 Andrew Burgess <aburgess@broadcom.com>
2764
1581d8a7 2765 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2766 references in comments.
1581d8a7 2767 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2768 deprecated_command_loop_hook.
2769 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2770 setup.
1581d8a7 2771 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2772
7c33b57c
PA
27732013-09-05 Pedro Alves <palves@redhat.com>
2774
2775 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2776 local is now int instead of ULONGEST. Print it with %d
2777 instead of paddress.
2778
9f8edbd5
TG
27792013-09-05 Tristan Gingold <gingold@adacore.com>
2780
2781 * MAINTAINERS: Remove avr maintainership.
2782
d5b495b4
PA
27832013-09-05 Pedro Alves <palves@redhat.com>
2784
2785 * findvar.c (value_of_register): Rework in terms of
2786 value_of_register_lazy.
2787
40b91786
MB
27882013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2789
2790 * symfile.c (add_symbol_file_command): Remove trailing
2791 whitespaces and blank line after comment.
2792
6eed1678
PA
27932013-09-05 Pedro Alves <palves@redhat.com>
2794
2795 * tui/tui-regs.c (tui_register_format): Don't look at the
2796 register's name here. Return string representing register
2797 value instead of storing it in the data element.
2798 (tui_get_register): Compare register string representations
2799 instead of register value states and contents.
2800
8eb6bda2
PA
28012013-09-05 Pedro Alves <palves@redhat.com>
2802
2803 PR tui/15933
2804 * tui/tui-regs.c (tui_show_registers): Show registers of the
2805 selected frame, not the current frame.
2806
48b1f08c
RW
28072013-09-05 Ricard Wanderlof <ricardw@axis.com>
2808
2809 * MAINTAINERS (Write After Approval): Add myself to the list.
2810
89e63ee4
DE
28112013-09-04 Doug Evans <dje@google.com>
2812
2813 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2814 (queue_and_load_dwo_tu): New function.
2815 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2816 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2817 Make dependent_cu optional.
2818 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2819 and an older .gdb_index is in use, queue and load all its TUs too.
2820
492c0ab7
JK
28212013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2822
2823 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2824 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2825 variable search_flags.
2826 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2827 (OPF_RETURN_REALPATH): ... here.
2828 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2829 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2830 call. Twice.
2831 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2832 openp call.
2833 * solib.c (solib_find): Likewise. Four times.
2834 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2835 in the function comment and for the realpath_fptr variable.
2836 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2837 (find_and_open_source): Likewise. Twice.
2838 * symfile.c (symfile_bfd_open): Likewise, also twice.
2839
23a44de8
DE
28402013-09-04 Doug Evans <dje@google.com>
2841
2842 * progspace.c (save_current_space_and_thread): Remove unnecessary
2843 call to save_current_inferior.
2844
47061676
AB
28452013-09-04 Andrew Burgess <aburgess@broadcom.com>
2846
2847 * sh64-tdep.c (sh64_do_register): Return after printing message
2848 about unavailable register contents.
2849
41dc8db8
MB
28502013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2851 Pedro Alves <palves@redhat.com>
2852
2853 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
2854 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2855 options and collapse into single conditional branch.
41dc8db8 2856
07107ca6
LM
28572013-09-03 Luis Machado <lgustavo@codesourcery.com>
2858
a7ea61cf 2859 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2860 detach_fork.
2861 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2862 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2863 * inferior.h (detach_fork): Remove.
2864 * infrun.c (detach_fork): Adjust comment and make it
2865 static.
2866 (follow_fork): Pass detach_fork parameter to
2867 target_follow_fork.
2868 * linux-nat.c (linux_child_follow_fork): New parameter
2869 detach_fork.
2870 * target.c (target_follow_fork): New parameter detach_fork.
2871 Pass detach_fork as parameter and print its value.
2872 * target.h (struct target_ops) <to_follow_fork>: New int
2873 parameter.
2874 (target_follow_fork): New parameter detach_fork.
2875
3bec2768
JB
28762013-09-03 Joel Brobecker <brobecker@adacore.com>
2877
2878 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2879 Replace sec->bfd by sec->the_bfd_section->owner.
2880
c01cbb3d
YQ
28812013-09-03 Yao Qi <yao@codesourcery.com>
2882
2883 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2884 from linux_has_shared_address_space.
2885 (linux_has_shared_address_space): Call linux_is_uclinux.
2886 * linux-tdep.h (linux_is_uclinux): Declare.
2887 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2888 linux_is_uclinux.
2889
7b00db47
YQ
28902013-09-03 Yao Qi <yao@codesourcery.com>
2891
2892 * config/djgpp/fnchange.lst: Remove entry of
2893 i386-interix-nat.c and i386-interix-tdep.c.
2894 * configure.ac: Remove '*-*-interix*'.
2895 * configure: Re-generated.
2896 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2897 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2898 obsolete comments.
2899 * osabi.c (gdb_osabi_names): Remove "Interix".
2900
0f9741f2
YQ
29012013-09-03 Yao Qi <yao@codesourcery.com>
2902
2903 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2904
1e038f67
MM
29052013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2906
2907 * record.h (record_print_flag) <record_print_src_line,
2908 record_print_insn_range>: Rename into ...
2909 (record_print_flag) <record_print_src_line,
2910 record_print_insn_range>: ... this. Update all users.
2911
9e52adf9
PM
29122013-09-02 Pierre Muller <muller@sourceware.org>
2913
2914 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2915 error code.
2916
a2388568
PM
29172013-09-02 Pierre Muller <muller@sourceware.org>
2918
2919 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2920 by use of plongest function.
2921
9058cc3a
TG
29222013-09-02 Tristan Gingold <gingold@adacore.com>
2923
2924 * NEWS: Add entry mentioning support for native Windows x64
2925 SEH data.
2926
2927 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2928 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2929 (struct amd64_windows_frame_cache): New struct.
2930 (amd64_windows_w2gdb_regnum): New global.
2931 (pc_in_range, amd64_windows_frame_decode_epilogue)
2932 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2933 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2934 (amd64_windows_frame_this_id): New functions.
2935 (amd64_windows_frame_unwind): New static global.
2936 (amd64_windows_skip_prologue): New function.
2937 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2938 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2939 with amd64_windows_skip_prologue.
2940
3161820b 29412013-08-30 Joel Brobecker <brobecker@adacore.com>
2942
2943 GDB 7.6.1 released.
2944
02457c76
PA
29452013-08-30 Pedro Alves <palves@redhat.com>
2946
2947 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2948 SRC_AND_LOC.
2949
e0162910
PA
29502013-08-30 Pedro Alves <palves@redhat.com>
2951
2952 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2953 warning text.
2954
6391ce51
PA
29552013-08-30 Pedro Alves <palves@redhat.com>
2956
2957 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2958 Adjust arguments to print_stack_frame.
2959
d1da0587
PA
29602013-08-30 Pedro Alves <palves@redhat.com>
2961
2962 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2963
adfd8245
PA
29642013-08-30 Pedro Alves <palves@redhat.com>
2965
2966 * frame.h (show_and_print_stack_frame): Delete declaration.
2967
96d9056e
PM
29682013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2969
2970 PR python/15461
96d9056e
PM
2971 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2972 (archpy_name): Check for valid architecture.
2973 (archpy_disassemble): Ditto.
2974
11cb8762
JB
29752013-08-29 Joel Brobecker <brobecker@adacore.com>
2976
2977 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2978 instead of "long long" in call to ptrace64.
2979
1af12a7d
AB
29802013-08-29 Andrew Burgess <aburgess@broadcom.com>
2981
2982 * mi/mi-interp.c (mi_command_loop): Change signature to match
2983 interp_command_loop_ftype.
2984 (mi1_command_loop): Remove.
2985 (mi2_command_loop): Remove.
2986 (mi3_command_loop): Remove.
2987 (mi_interpreter_resume): Remove setting of
2988 deprecated_command_loop_hook.
2989 (_initialize_mi_interp): Set mi_command_loop as the command loop
2990 callback.
2991
acc900c2
SA
29922013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2993
2994 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2995 value_type.
2996
548b762d
SA
29972013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2998
2999 * value.c (allocate_value_contents): Make static.
3000 * value.h (allocate_value_contents): Remove prototype.
3001
08039c9e
SA
30022013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3003
3004 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3005 of assembling value via allocate_value_lazy and attribute setter.
3006 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3007 assembling value via allocate_value_lazy and attribute setter.
3008 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3009 assembling value via allocate_value_lazy and attribute setter.
3010
314c7de9
SA
30112013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3012
3013 * value.c (value_from_contents_and_address): Replace allocate_value and
3014 memcpy with value_from_contents.
3015
8f28f522
PM
30162013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3017
3018 * python/py-framefilter.c (py_print_frame): Remove usage of
3019 PyString_AsString. Use python_string_to_host_string instead.
3020 Refactor function to work with a string as a new allocation
3021 instead of a pointer.
3022 (py_print_frame): Ditto.
3023 * python/lib/gdb/frames.py (return_list): Cain iterators together
3024 instead of adding them as a list.
3025 (_sort_list): Call return_list, and remove duplicate code.
3026 (execute_frame_filters): Convert iterator to a list with list().
3027 * python/lib/gdb/command/frame_filters.py
3028 (SetFrameFilterPriority._set_filter_priority): Convert priority
3029 attribute to an integer.
3030 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3031 wrapper function __next__.
3032 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3033 define as "str".
3034
8ee002df
PM
30352013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3036
3037 PR python/15752
8ee002df
PM
3038 * python/py-framefilter.c (apply_frame_filter): Check
3039 gdb_python_initialized. Exit if the Python frame-filter code
3040 cannot be initialized.
3041
af4c453a
PM
30422013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3043
3044 PR cli/15842
af4c453a
PM
3045 * top.c (print_gdb_version): Remove erroneous newline after help
3046 text.
3047
bf8793bb
YQ
30482013-08-29 Yao Qi <yao@codesourcery.com>
3049
3050 * varobj.c (install_dynamic_child): Remove trailing space.
3051 Add one blank line after variable declaration.
3052
1f0c4988
JK
30532013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3054
3055 PR gdb/15415
3056 * corefile.c (get_exec_file): Use exec_filename.
3057 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3058 * exec.c (exec_close): Free EXEC_FILENAME.
3059 (exec_file_attach): New variable canonical_pathname. Use
3060 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3061 EXEC_FILENAME.
3062 * exec.h (exec_filename): New.
3063 * inferior.c (print_inferior, inferior_command): Use
3064 PSPACE_EXEC_FILENAME.
3065 * mi/mi-main.c (print_one_inferior): Likewise.
3066 * progspace.c (clone_program_space, print_program_space): Likewise.
3067 * progspace.h (struct program_space): New field pspace_exec_filename.
3068 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3069 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3070
59ee9f94
WN
30712013-08-28 Will Newton <will.newton@linaro.org>
3072
3073 * common/linux-ptrace.c: Include stdint.h unconditionally.
3074
c8a2a419
JK
30752013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3076
3077 Code cleanup.
3078 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3079
ffa4ac95
YQ
30802013-08-28 Yao Qi <yao@codesourcery.com>
3081 Pedro Alves <palves@redhat.com>
3082
3083 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3084 instead of stdio_fileopen.
3085 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3086 .Call stderr_fileopen instead of stdio_fileopen.
3087 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3088 [__MINGW32__] (stderr_file_fputs): New function.
3089 (stderr_fileopen): New function.
3090 * ui-file.h (stderr_fileopen): Declare.
3091
69d751e3
DE
30922013-08-27 Doug Evans <dje@google.com>
3093
3094 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3095 (struct dwarf2_per_cu_data): Ditto.
3096 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3097 (process_imported_unit_die): Ditto.
3098 (follow_die_sig_1): Simplify assert.
3099
44f38867
PA
31002013-08-27 Pedro Alves <palves@redhat.com>
3101
3102 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3103 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3104 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3105 windows_xfer_memory directly.
3106 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3107
d28d46b5
PA
31082013-08-27 Pedro Alves <palves@redhat.com>
3109
3110 * darwin-nat.c (darwin_xfer_memory): Delete.
3111 (_initialize_darwin_inferior): Don't install a
3112 deprecated_xfer_memory method.
3113
6211c335
YQ
31142013-08-27 Pedro Alves <pedro@codesourcery.com>
3115 Yao Qi <yao@codesourcery.com>
3116
3117 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3118 (parse_no_frames_option): Remove.
3119 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3120 (mi_cmd_stack_list_args): Adjust.
3121 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3122 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3123 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3124 Caller update.
3125 (list_args_or_locals): New parameter 'skip_unavailable'.
3126 Handle it.
3127 * valprint.c (scalar_type_p): Rename to ...
3128 (val_print_scalar_type_p): ... this. Make extern.
3129 (val_print, value_check_printable): Adjust.
3130 * valprint.h (val_print_scalar_type_p): Declare.
3131 * value.c (value_entirely_unavailable): New function.
3132 * value.h (value_entirely_unavailable): Declare.
3133
3134 * NEWS: Mention the new option "--skip-unavailable" to MI
3135 commands '-stack-list-locals', '-stack-list-arguments' and
3136 '-stack-list-variables'.
3137
242f1fd7
YQ
31382013-08-27 Yao Qi <yao@codesourcery.com>
3139
3140 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3141 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3142 options.
3143 * mi/mi-getopt.c (mi_getopt): Remove.
3144 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3145 'error_on_unknown'.
3146 (mi_getopt): Call mi_getopt_1.
3147 (mi_getopt_silent): New.
3148 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3149
260b681b
DE
31502013-08-26 Doug Evans <dje@google.com>
3151
779bd270
DE
3152 PR symtab/15885
3153 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3154 .gdb_index is in use.
3155 * symfile.c (reread_symbols): Reset objfile->sf.
3156
52e260a3
DE
3157 * NEWS: Document "mt print objfiles" now takes optional regexp.
3158 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3159 regexp of objfiles to print.
3160 (_initialize_symmisc): Update doc string for "mt print objfiles".
3161
260b681b
DE
3162 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3163 missing debug info checks.
3164
a85c52f2
UW
31652013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3166 Ulrich Weigand <uweigand@de.ibm.com>
3167
3168 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3169 line tables generated by XLC compiled binaries.
3170
4f00dda3
DE
31712013-08-23 Doug Evans <dje@google.com>
3172
db68bbae
DE
3173 * symmisc.c (dump_symtab): Delete prototype.
3174 (dump_msymbols, dump_objfile): Ditto.
3175 (maintenance_info_symtabs): Mark as dont_repeat.
3176 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3177
4f00dda3
DE
3178 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3179 debugging printf to better location.
3180
23d577b0
PA
31812013-08-23 Pedro Alves <palves@redhat.com>
3182
3183 * target.c (target_read_live_memory): Change type of 'ret' local
3184 to LONGEST.
3185
00d84524
PA
31862013-08-23 Pedro Alves <palves@redhat.com>
3187
3188 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3189 (remote_read_bytes): Change return type to LONGEST, and adjust to
3190 return a target_xfer_error on error.
3191 (remote_xfer_memory): Delete.
3192 (remote_flash_write): Change type of 'ret' local to LONGEST.
3193 (remote_xfer_partial, remote_xfer_partial): Adjust.
3194 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3195
1ed3ee94
PM
31962013-08-23 Pierre Muller <muller@sourceware.org>
3197
3198 ARI fix: Push # directives to start of line.
3199 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3200
9eaabc75
MW
32012013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3202
3203 PR gdb/15501
3204 * breakpoint.c (enable_command, disable_command): Iterate over
3205 all specified breakpoint locations.
3206
101158d9
LM
32072013-08-22 Luis Machado <lgustavo@codesourcery.com>
3208
3209 * common/linux-ptrace.c (linux_fork_to_function): Push #
3210 directives to the start of the line.
3211 (linux_check_ptrace_features): Fix warning message to use
3212 the "_" markup.
3213
96d7229d
LM
32142013-08-22 Luis Machado <lgustavo@codesourcery.com>
3215
3216 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3217 nat/linux-waitpid.h.
3218 (linux-waitpid.o): New object file rule.
3219 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3220 (current_ptrace_options): Moved from linux-nat.c.
3221 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3222 parameters.
3223 (linux_fork_to_function): New function.
3224 (linux_grandchild_function): Likewise.
3225 (linux_child_function): Likewise.
3226 (linux_check_ptrace_features): New function, heavily
3227 based on linux-nat.c:linux_test_for_tracefork.
3228 (linux_enable_event_reporting): New function.
3229 (ptrace_supports_feature): Likewise.
3230 (linux_supports_tracefork): Likewise.
3231 (linux_supports_traceclone): Likewise.
3232 (linux_supports_tracevforkdone): Likewise.
3233 (linux_supports_tracesysgood): Likewise.
3234 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3235 gdbserver/linux-low.c.
3236 (linux_enable_event_reporting): New declaration.
3237 (linux_supports_tracefork): Likewise.
3238 (linux_supports_traceclone): Likewise.
3239 (linux_supports_tracevforkdone): Likewise.
3240 (linux_supports_tracesysgood): Likewise.
3241 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3242 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3243 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3244 * config/arm/linux.mh (NATDEPFILES): Likewise.
3245 * config/i386/linux.mh (NATDEPFILES): Likewise.
3246 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3247 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3248 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3249 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3250 * config/mips/linux.mh (NATDEPFILES): Likewise.
3251 * config/pa/linux.mh (NATDEPFILES): Likewise..
3252 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3253 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3254 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3255 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3256 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3257 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3258 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3259 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3260 ptrace's 4th argument's types.
3261 Check the type of PTRACE_TYPE_ARG4.
3262 * configure: Regenerate.
3263 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3264 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3265 (linux_supports_tracefork_flag): Remove.
3266 (linux_supports_tracesysgood_flag): Likewise.
3267 (linux_supports_tracevforkdone_flag): Likewise.
3268 (current_ptrace_options): Moved to
3269 common/linux-ptrace.c.
3270 (linux_tracefork_child): Remove.
3271 (my_waitpid): Remove.
3272 (linux_test_for_tracefork): Renamed to
3273 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3274 (linux_test_for_tracesysgood): Remove.
3275 (linux_supports_tracesysgood): Remove.
3276 (linux_supports_tracefork): Remove.
3277 (linux_supports_tracevforkdone): Remove.
3278 (linux_enable_tracesysgood): Remove.
3279 (linux_enable_event_reporting): Remove.
3280 (linux_init_ptrace): New function.
3281 (linux_child_post_attach): Call linux_init_ptrace.
3282 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3283 (linux_child_follow_fork): Call linux_supports_tracefork
3284 and linux_supports_tracevforkdone.
3285 (linux_child_insert_fork_catchpoint): Call
3286 linux_supports_tracefork.
3287 (linux_child_insert_vfork_catchpoint): Likewise.
3288 (linux_child_set_syscall_catchpoint): Call
3289 linux_supports_tracesysgood.
3290 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3291 * nat/linux-nat.h: New file.
3292 * nat/linux-waitpid.c: New file.
3293 * nat/linux-waitpid.h: New file.
3294
9f948660
SDJ
32952013-08-22 Samuel Bronson <naesten@gmail.com>
3296
3297 ARM Linux support for `catch syscall'.
3298 * syscalls/arm-linux.py: New file.
3299 * syscalls/arm-linux.xml: Likewise.
3300 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3301 (arm_linux_init_abi): Register the new function and syscall xml file.
3302 * data-directory/Makefile.in: Install the new syscall xml file.
3303 * NEWS: Brag about this.
3304
6be7b56e
PA
33052013-08-22 Pedro Alves <palves@redhat.com>
3306
3307 PR gdb/15871
3308 * corefile.c (target_xfer_memory_error): New function.
3309 (memory_error): Defer EIO to target_memory_error.
3310 (read_memory): Use target_xfer_partial, and handle finer-grained
3311 target xfer errors.
3312 * target.c (target_xfer_error_to_string): New function.
3313 (memory_xfer_partial_1): If memory is known to be
3314 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3315 (target_xfer_partial): Make extern.
3316 * target.h (enum target_xfer_error): New enum.
3317 (target_xfer_error_to_string): Declare function.
3318 (target_xfer_partial): Declare function.
3319 (struct target_ops) <xfer_partial>: Adjust describing comment.
3320
bcbec14e
AM
33212013-08-22 Alan Modra <amodra@gmail.com>
3322
3323 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3324 * configure.tgt: Likewise as targets.
3325
fc474241
DE
33262013-08-20 Doug Evans <dje@google.com>
3327
3328 * buildsym.c (subfile_stack): Move here from buildsym.h.
3329 (pending_macros): Ditto.
3330 (get_macro_table): New function.
3331 (buildsym_init): Initialize subfile_stack.
3332 * coffread.c (type_vector,type_vector_length): Moved here from
3333 buildsym.h.
3334 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3335 (coff_symtab_read): Use it.
3336 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3337 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3338 with call to get_macro_table.
3339 * stabsread.c (type_vector,type_vector_length): Moved here from
3340 buildsym.h.
3341 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3342 * buildsym.h (get_macro_table): Declare.
3343
bec71544
TT
33442013-08-20 Tom Tromey <tromey@redhat.com>
3345
3346 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3347 Update.
3348 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3349
0002ad5f
DE
33502013-08-20 Doug Evans <dje@google.com>
3351
3352 * blockframe.c: Remove #include "psymtab.h".
3353 * cp-support.c: Ditto.
3354 * source.c: Ditto.
3355 * stack.c: Ditto.
3356
df302446
TT
33572013-08-20 Tom Tromey <tromey@redhat.com>
3358
3359 PR python/15816:
3360 * exceptions.h (return_mask): Now an enum.
3361 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3362 enum constants.
3363
df6d5441
TT
33642013-08-20 Tom Tromey <tromey@redhat.com>
3365
3366 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3367 get_objfile_arch.
3368 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3369 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3370 * jit.c (jit_object_close_impl): Update.
3371 * jv-lang.c (get_dynamics_objfile): Update.
3372 * linespec.c (add_minsym): Use get_dynamics_objfile.
3373 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3374 (allocate_objfile): Don't initialize 'gdbarch' field.
3375 (get_objfile_arch): Update.
3376 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3377 moved from...
3378 (struct objfile) <gdbarch>: ... here. Remove.
3379 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3380 get_objfile_arch.
3381 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3382
f5aee5ee
AM
33832013-08-20 Alan Modra <amodra@gmail.com>
3384
3385 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3386 for IBM long double nan and inf.
3387 (floatformat_is_negative, floatformat_classify,
3388 floatformat_mantissa): Similarly.
3389 (floatformat_ieee_single, floatformat_ieee_double,
3390 floatformat_ieee_quad, floatformat_arm_ext,
3391 floatformat_ia64_spill): Delete unused vars.
3392 (_initialize_doublest): Delete unused function.
3393 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3394 little-endian variants of floatformat_ibm_long_double.
3395
33b60d58 33962013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3397
33b60d58
LM
3398 * Makefile.in (SFILES): Remove common/target-common.c and
3399 add target/waitstatus.c.
3400 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3401 target/resume.h, target/wait.h and target/waitstatus.h.
3402 (COMMON_OBS): Remove target-common.o and add
3403 waitstatus.o.
3404 (target-common.o): Remove.
3405 (waitstatus.o): New target object file.
3406 * common/target-common.c: Move contents to
3407 target/waitstatus.c and remove.
3408 * common/target-common.h: Move contents to other files and
3409 remove.
3410 (enum resume_kind: Move to target/resume.h.
3411 (TARGET_WNOHANG): Move to target/wait.h.
3412 (enum target_waitkind): Move to target/waitstatus.h.
3413 (struct target_waitstatus): Likewise.
3414 * target.h: Do not include target-common.h and
3415 include target/resume.h, target/wait.h and
3416 target/waitstatus.h.
3417 * target/resume.h: New file.
3418 * target/wait.h: New file.
3419 * target/waitstatus.h: New file.
3420 * target/waitstatus.c: New file.
3421
12696c10
PA
34222013-08-19 Pedro Alves <palves@redhat.com>
3423
3424 * linux-nat.c (linux_test_for_tracefork)
3425 (linux_test_for_tracesysgood, linux_child_follow_fork)
3426 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3427 (linux_nat_wait_1): Extend comment.
3428 (linux_async_pipe): Add comment.
3429
ba89f962
KB
34302013-08-15 Kevin Buettner <kevinb@redhat.com>
3431
3432 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3433 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3434 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3435 Update to account for fact that PC is now a pseudo-register.
3436 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3437 cases for RL78_PC_REGNUM.
3438
35ab155d
MB
34392013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3440
3441 PR cli/15841
3442 * top.c (quit_force): Skip writing history file
3443 if input is not from terminal.
3444
0d031856
TT
34452013-08-14 Tom Tromey <tromey@redhat.com>
3446
3447 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3448 resultthreadlist>: New fields.
3449 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3450 (remote_get_threadlist, remote_threadlist_iterator): Use
3451 new fields. Remove static variables.
3452
ee154bee
TT
34532013-08-14 Tom Tromey <tromey@redhat.com>
3454
3455 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3456 remote_watch_data_address>: New fields.
3457 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3458 (process_stop_reply, remote_wait_as)
3459 (remote_check_watch_resources, remote_stopped_data_address): Update.
3460
88b496c3
TT
34612013-08-14 Tom Tromey <tromey@redhat.com>
3462
3463 * remote.c (struct remote_state) <async_client_callback,
3464 async_client_context>: New fields.
3465 (async_client_callback, async_client_context): Remove.
3466 (remote_async_serial_handler, remote_async): Update.
3467
2f65bcb7
TT
34682013-08-14 Tom Tromey <tromey@redhat.com>
3469
3470 * remote.c (sizeof_pkt): Remove.
3471 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3472
b80fafe3
TT
34732013-08-14 Tom Tromey <tromey@redhat.com>
3474
3475 * remote.c (struct remote_state) <use_threadinfo_query,
3476 use_threadextra_query>: New fields.
3477 (remote_threads_info, remote_threads_extra_info)
3478 (remote_open_1): Update.
3479
8e88304f
TT
34802013-08-14 Tom Tromey <tromey@redhat.com>
3481
3482 * remote.c (struct remote_state) <finished_object,
3483 finished_annex, finished_offset>: New fields.
3484 (remote_read_qxfer): Use remote_state fields; remove static
3485 variables.
3486
280ceea3
TT
34872013-08-14 Tom Tromey <tromey@redhat.com>
3488
3489 * remote.c (struct remote_state) <last_sent_step>:
3490 New field.
3491 (last_sent_step): Remove.
3492 (remote_resume, remote_wait_as): Update.
3493
b73be471
TT
34942013-08-14 Tom Tromey <tromey@redhat.com>
3495
3496 * remote.c (struct remote_state) <last_sent_signal>:
3497 New field.
3498 (last_sent_signal): Remove.
3499 (new_remote_state, remote_resume, remote_wait_as): Update.
3500
5e4a05c4
TT
35012013-08-14 Tom Tromey <tromey@redhat.com>
3502
3503 * remote.c (struct remote_state) <last_program_signals_packet>:
3504 New field.
3505 (last_program_signals_packet): Remove.
3506 (remote_program_signals, remote_open_1): Update.
3507
747dc59d
TT
35082013-08-14 Tom Tromey <tromey@redhat.com>
3509
3510 * remote.c (struct remote_state) <last_pass_packet>:
3511 New field.
3512 (last_pass_packet): Remove.
3513 (remote_pass_signals, remote_open_1): Update.
3514
262e1174
TT
35152013-08-14 Tom Tromey <tromey@redhat.com>
3516
3517 * remote.c (struct remote_state) <remote_traceframe_number>:
3518 New field.
3519 (remote_traceframe_number): Remove.
3520 (new_remote_state, remote_open_1, set_remote_traceframe)
3521 (remote_trace_find): Update.
3522
47f8a51d
TT
35232013-08-14 Tom Tromey <tromey@redhat.com>
3524
3525 * remote.c (struct remote_state) <general_thread, continue_thread>:
3526 New fields.
3527 (general_thread, continue_thread): Remove.
3528 (record_currthread, set_thread, set_general_process)
3529 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3530 (extended_remote_mourn_1): Update.
3531
5d93a237
TT
35322013-08-14 Tom Tromey <tromey@redhat.com>
3533
3534 * remote.c (struct remote_state) <remote_desc>: New field.
3535 (remote_desc): Remove.
3536 (remote_threads_info, remote_threads_extra_info, remote_close)
3537 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3538 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3539 (remote_hostio_send_command, remote_file_put, remote_file_get)
3540 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3541 (remote_async, remote_new_objfile, set_range_stepping): Update.
3542
cf792862
TT
35432013-08-14 Tom Tromey <tromey@redhat.com>
3544
3545 * remote.c (remote_state): Now a pointer.
3546 (get_remote_state_raw): Update.
3547 (new_remote_state): New function.
3548 (_initialize_remote): Use new_remote_state.
3549
dc473cfb
TT
35502013-08-14 Tom Tromey <tromey@redhat.com>
3551
3552 * remote.c (remote_protocol_features): Now const.
3553
85ec6ce7
TT
35542013-08-14 Tom Tromey <tromey@redhat.com>
3555
3556 * remote.c (crc32_table, crc32): Remove.
3557 (remote_verify_memory): Use xcrc32.
3558
73033f12
SDJ
35592013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3560
3561 * value.h (create_internalvar_type_lazy): Adjust prototype
3562 declaration.
3563
5c30d39a
AB
35642013-08-13 Andrew Burgess <aburgess@broadcom.com>
3565
3566 * common/format.c (parse_format_string): Don't allow '#' flag for
3567 pointer arguments in format string.
3568
1a66331e
PM
35692013-08-13 Pierre Muller <muller@sourceware.org>
3570
fde605f3 3571 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3572 if rl_get_screen_size did not return useful values.
3573
b4013987
AA
35742013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3575
3576 PR breakpoints/15117
3577 * linespec.c (linespec_parse_basic): Check for convenience
3578 variable or history value while parsing.
3579
959b6a66
SDJ
35802013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3581
3582 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3583 AVR.
3584 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3585 different signals between the generic Linux kernel implementation
3586 and AVR's.
3587 (avr_linux_gdb_signal_from_target): Delete.
3588 (avr_linux_gdb_signal_to_target): Delete.
3589 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3590
24a55014
DE
35912013-08-09 Doug Evans <dje@google.com>
3592
3593 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3594 entries.
3595
eb14d406
SDJ
35962013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3597
3598 * linux-tdep.c: Define enum with generic signal numbers.
3599 (linux_gdb_signal_from_target): New function.
3600 (linux_gdb_signal_to_target): Likewise.
3601 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3602 methods to the functions above.
3603 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3604 (linux_gdb_signal_to_target): Likewise.
3605 * alpha-linux-tdep.c: Define new enum with signals different
3606 from generic Linux kernel.
3607 (alpha_linux_gdb_signal_from_target): New function.
3608 (alpha_linux_gdb_signal_to_target): Likewise.
3609 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3610 with the functions mentioned above.
3611 * avr-tdep.c: Define enum with differences between Linux kernel
3612 and AVR signals.
3613 (avr_linux_gdb_signal_from_target): New function.
3614 (avr_linux_gdb_signal_to_target): Likewise.
3615 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3616 the functions mentioned above.
3617 * sparc-linux-tdep.c: Define enum with differences between SPARC
3618 and generic Linux kernel signal numbers.
3619 (sparc32_linux_gdb_signal_from_target): New function.
3620 (sparc32_linux_gdb_signal_to_target): Likewise.
3621 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3622 to the functions defined above.
3623 * xtensa-linux-tdep.c: Define enum with differences between
3624 Xtensa and Linux kernel generic signals.
3625 (xtensa_linux_gdb_signal_from_target): New function.
3626 (xtensa_linux_gdb_signal_to_target): Likewise.
3627 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3628 to the functions defined above.
3629 * mips-linux-tdep.c: Define enum with differences between
3630 signals in MIPS and Linux kernel generic ones.
3631 (mips_gdb_signal_to_target): New function.
3632 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3633 only different signals from the Linux kernel generic.
3634 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3635 the functions defined above.
3636 * mips-linux-tdep.h (enum mips_signals): Remove.
3637
156d08c8
PA
36382013-08-09 Pedro Alves <palves@redhat.com>
3639
3640 * avr-tdep.c (XMALLOC): Delete macro.
3641 * cli/cli-dump.c (XMALLOC): Delete macro.
3642
db229724
PA
36432013-08-09 Pedro Alves <palves@redhat.com>
3644
3645 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3646 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3647 (fopen_with_cleanup, add_dump_command): Make static.
3648 * cli/cli-dump.h: Delete file.
3649 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3650 cli/cli-dump.h.
3651
3f12a589
PA
36522013-08-09 Pedro Alves <palves@redhat.com>
3653
3654 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3655 error message.
3656
c718be47
PA
36572013-08-09 Pedro Alves <palves@redhat.com>
3658
156d08c8 3659 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3660 error message.
3661
1e351ed1
PA
36622013-08-09 Pedro Alves <palves@redhat.com>
3663
3664 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3665 (gcore_command): Use tilde_expand here, and when showing the
3666 filename to the user, show the expanded version.
3667
1ed8d800
YQ
36682013-08-09 Yao Qi <yao@codesourcery.com>
3669
3670 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3671 'entryval' is set.
3672
47ecca85
PA
36732013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3674
3675 * gcore.c (create_gcore_bfd): Use tilde_expand.
3676
82a0a75f
YQ
36772013-08-08 Yao Qi <yao@codesourcery.com>
3678
3679 * frame.h (read_frame_local): Declare.
3680 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3681 read_frame_local.
3682 * stack.c (read_frame_local): New.
3683
5c4aa40b
YQ
36842013-08-08 Yao Qi <yao@codesourcery.com>
3685
3686 * mi/mi-cmd-stack.c: Update comments to function
3687 list_args_or_locals.
3688
b93601f3
TT
36892013-08-07 Tom Tromey <tromey@redhat.com>
3690
3691 PR symtab/15028:
3692 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3693 (process_psymtab_comp_unit_reader): Use it.
3694 (process_psymtab_comp_unit): Update. Add "pretend_language"
3695 argument.
3696 (dwarf2_build_psymtabs_hard): Update.
3697 (scan_partial_symbols): Pass CU's language to
3698 process_psymtab_comp_unit.
3699
fa760f46
TT
37002013-08-07 Tom Tromey <tromey@redhat.com>
3701
3702 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3703 (dwarf2_gdb_index_functions): Update.
3704 * psymtab.c (find_symbol_file_from_partial): Remove.
3705 (psym_functions): Update.
3706 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3707 Remove.
3708
bf6d8a91
TT
37092013-08-07 Tom Tromey <tromey@redhat.com>
3710
3711 * symfile.c (set_initial_language): Look up "main" symbol
3712 and use its language.
3713 * symtab.c (find_main_filename): Remove.
3714 * symtab.h (find_main_filename): Remove.
3715
f9125b6c
TT
37162013-08-07 Tom Tromey <tromey@redhat.com>
3717
3718 * dwarf2read.c (recursively_compute_inclusions): Add
3719 "immediate_parent" argument. Set symtab's "user" field
3720 if not set.
3721 (compute_symtab_includes): Update.
3722
fdbb204b
TT
37232013-08-07 Tom Tromey <tromey@redhat.com>
3724
3725 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3726 when adding label symbols.
3727
49de1690
UW
37282013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3729 Ulrich Weigand <uweigand@de.ibm.com>
3730
3731 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3732 * configure.host (powerpc64-*-aix*): Likewise.
3733
b08ee99f
UW
37342013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3735 Ulrich Weigand <uweigand@de.ibm.com>
3736
3737 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3738 is defined.
3739 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3740 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3741 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3742 * configure.ac: Check for ptrace64.
3743 * configure, config.in: Regenerate.
3744
fecf803e
UW
37452013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3746 Ulrich Weigand <uweigand@de.ibm.com>
3747
3748 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3749 Call ptrace64 instead of ptrace if defined.
3750 Add macro addr_ptr to take care of ptrace address argument.
3751 (pdc_read_regs): Likewise.
3752 (pdc_write_regs): Likewise.
3753 (aix_thread_resume): Likewise.
3754 (fetch_regs_kernel_thread): Likewise.
3755 (store_regs_kernel_thread): Likewise.
3756
3bb5e4a8
AB
37572013-08-07 Anton Blanchard <anton@samba.org>
3758
3759 * MAINTAINERS: Add myself to Write After Approval.
3760
12070676
TT
37612013-08-05 Tom Tromey <tromey@redhat.com>
3762
3763 * aix-thread.c (_initialize_aix_thread): Use
3764 complete_target_initialization.
3765 * bsd-uthread.c (_initialize_bsd_uthread): Use
3766 complete_target_initialization.
3767 * dec-thread.c (_initialize_dec_thread): Use
3768 complete_target_initialization.
3769 * ravenscar-thread.c (_initialize_ravenscar): Use
3770 complete_target_initialization.
3771 * sol-thread.c (_initialize_sol_thread): Use
3772 complete_target_initialization.
3773 * spu-multiarch.c (_initialize_spu_multiarch): Use
3774 complete_target_initialization.
3775
7c7b6655
TT
37762013-08-05 Tom Tromey <tromey@redhat.com>
3777
3778 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3779 * ada-lang.c (ada_lookup_simple_minsym): Return
3780 bound_minimal_symbol.
3781 * ada-lang.h (ada_lookup_simple_minsym): Update.
3782 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3783 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3784 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3785 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3786 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3787 * minsyms.c (msymbol_objfile): Remove.
3788 (lookup_minimal_symbol_internal): New function, from
3789 lookup_minimal_symbol.
3790 (lookup_minimal_symbol): Rewrite using
3791 lookup_minimal_symbol_internal.
3792 (lookup_bound_minimal_symbol): New function.
3793 * minsyms.h (msymbol_objfile): Remove.
3794 (lookup_bound_minimal_symbol): Declare.
3795 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3796 * parse.c (write_exp_msymbol): Change parameter to a
3797 bound_minimal_symbol.
3798 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3799 * parser-defs.h (write_exp_msymbol): Update.
3800 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3801 * symfile.c (simple_read_overlay_table): Use
3802 lookup_bound_minimal_symbol.
3803 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3804 (search_symbols): Likewise.
3805 (print_msymbol_info): Take a bound_minimal_symbol argument.
3806 (symtab_symbol_info, rbreak_command): Update.
3807 * symtab.h (struct symbol_search) <msymbol>: Change type
3808 to bound_minimal_symbol.
3809 * valops.c (find_function_in_inferior): Use
3810 lookup_bound_minimal_symbol.
3811 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3812
934b9bac
JK
38132013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3814
3815 Code cleanup.
3816 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3817 to ...
3818 (async_cleanup_sigint_signal_handler): ... this.
3819 (initialize_sigint_signal_handler): Remove declaration.
3820 (handle_remote_sigint): Rename the declaration to ...
3821 (async_handle_remote_sigint): ... this.
3822 (handle_remote_sigint_twice): Rename the declaration to ...
3823 (async_handle_remote_sigint_twice): ... this.
3824 (async_remote_interrupt, async_remote_interrupt_twice)
3825 (remote_interrupt): Remove the declarations.
3826 (remote_interrupt_twice): Rename the declaration ...
3827 (sync_remote_interrupt_twice): ... this.
3828 (sigint_remote_twice_token): Rename the variable to ...
3829 (async_sigint_remote_twice_token): ... this.
3830 (sigint_remote_token): Rename the variable to ...
3831 (async_sigint_remote_token): ... this.
3832 (initialize_sigint_signal_handler): Rename the function to ...
3833 (async_initialize_sigint_signal_handler): ... this. Update the name
3834 inside.
3835 (handle_remote_sigint): Rename the function to ...
3836 (async_handle_remote_sigint): ... this. Update the names inside.
3837 (handle_remote_sigint_twice): Rename the function to ...
3838 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3839 (cleanup_sigint_signal_handler): Rename the function to ...
3840 (async_cleanup_sigint_signal_handler): ... this.
3841 (remote_interrupt): Rename the function to ...
3842 (sync_remote_interrupt): this. Update the names inside.
3843 (remote_interrupt_twice): Rename the function to ...
3844 (sync_remote_interrupt_twice): this. Update the names inside.
3845 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3846 (_initialize_remote): Update the names inside.
3847
3a1115a0
TT
38482013-08-02 Tom Tromey <tromey@redhat.com>
3849
3850 PR symtab/15719:
3851 * breakpoint.c (update_watchpoint, watchpoint_check)
3852 (watch_command_1): Update.
3853 * eval.c (fetch_subexp_value): Add "preserve_errors"
3854 parameter.
3855 * ppc-linux-nat.c (check_condition): Update.
3856 * value.h (fetch_subexp_value): Update.
3857
58b19776
AB
38582013-08-02 Andrew Burgess <aburgess@broadcom.com>
3859
3860 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3861 add_file_handler.
3862
ec94af83
DE
38632013-08-01 Doug Evans <dje@google.com>
3864
7ee85ab1
DE
3865 PR symtab/15691
3866 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3867 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3868 Add assert of sig_entry->dwo_unit == NULL.
3869 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3870 had already been read.
3871 (read_signatured_type): Set per_cu.tu_read.
3872
b846d303
DE
3873 PR symtab/15695
3874 * valops.c (value_struct_elt): Add missing call to check_typedef.
3875 (value_find_oload_method_list): Ditto.
3876
b52109bc
DE
3877 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3878 effectively, struct symbol_search **.
3879 (make_cleanup_free_search_symbols): Change arg to struct
3880 symbol_search **. All callers updated.
3881 (compare_search_syms): Compare symtab file name and block as well.
3882 (search_symbols_equal): New function.
3883 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3884 New args new_head, new_tail. Result is now void. Remove dups after
3885 sorting the symbols.
3886 (search_symbols): Sort all found symbols once, after all have been
3887 found, and remove duplicates. Simplify cleanup tracking of result.
3888 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3889
ec94af83
DE
3890 Further workarounds for binutils/15021.
3891 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3892 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3893 Watch for duplicate symtabs coming from type units.
3894 (compute_symtab_includes): Update call to
3895 recursively_compute_inclusions. Build vector of included symtabs
3896 instead of per_cus.
3897 * symtab.h (symtab_ptr): New typedef.
3898 (DEF_VEC_P (symtab_ptr)): New VEC type.
3899 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3900 instead.
3901
b2ae85cf
AB
39022013-08-01 Andrew Burgess <aburgess@broadcom.com>
3903
3904 * cli/cli-script.c (script_from_file): Remove use of
3905 error_pre_print.
3906 * main.c (captured_main): Remove use of error_pre_print and
3907 quit_pre_print.
3908 * utils.c (error_pre_print, quit_pre_print): Remove.
3909 * utils.h (error_pre_print, quit_pre_print): Likewise.
3910
645eab03
YQ
39112013-08-01 Yao Qi <yao@codesourcery.com>
3912
3913 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3914 with mi_getopt.
3915 (mi_cmd_stack_list_variables): Likewise.
3916
16f92dd4
AB
39172013-07-31 Andrew Burgess <aburgess@broadcom.com>
3918
3919 * exceptions.c (deprecated_throw_reason): Remove.
3920 * exceptions.h (deprecated_throw_reason): Remove.
3921
13f78033
AB
39222013-07-31 Andrew Burgess <aburgess@broadcom.com>
3923
3924 * remote-mips.c (mips_error): Replace use of
3925 deprecated_throw_reason with throw_verror. Use the error message
3926 passed to mips_error as the error message for throw_verror.
3927
039e3c22
AB
39282013-07-31 Andrew Burgess <aburgess@broadcom.com>
3929
3930 * monitor.c (monitor_interrupt_query): Replace use of
3931 deprecated_throw_reason with quit.
3932 * nto-procfs.c (interrupt_query): Likewise.
3933 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3934 * remote-mips.c (mips_kill): Likewise.
3935 * remote.c (interrupt_query): Likewise.
3936
8150913b
AB
39372013-07-31 Andrew Burgess <aburgess@broadcom.com>
3938
3939 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3940 with call to fatal.
3941
de74e63a
YQ
39422013-07-31 Pedro Alves <pedro@codesourcery.com>
3943 Yao Qi <yao@codesourcery.com>
3944
3945 * tracepoint.c (trace_dump_command): Select the current frame.
3946
247f5c4f
DE
39472013-07-30 Doug Evans <dje@google.com>
3948
3949 * dwarf2read.c (process_queue): Add type signature to debug output.
3950
11b4b7cc
AB
39512013-07-30 Andrew Burgess <aburgess@broadcom.com>
3952
3953 * value.c (value_fetch_lazy): Mark optimized out values as such
3954 rather than raising an error.
3955
b0c54aa5
AB
39562013-07-30 Andrew Burgess <aburgess@broadcom.com>
3957
3958 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3959 before checking which bits of the parent, not the child, value are
3960 valid.
3961
97c85fc6
MB
39622013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3963
3964 PR gdb/15715
3965 * top.c: Include "filenames.h".
3966 (set_history_filename): New function.
3967 (init_main): Install it as set hook of the "set history filename"
3968 command.
3969
ff39bb5e
SA
39702013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3971
3972 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3973 attribute parameter.
3974 (dwarf2_const_value_data): Constify struct attribute parameter.
3975 (dwarf2_const_value): Constify struct attribute parameter.
3976 (dwarf2_const_value_attr): Constify struct attribute parameter.
3977 (lookup_die_type): Constify struct attribute parameter.
3978 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3979 (follow_die_ref_or_sig): Constify struct attribute parameter.
3980 (follow_die_ref): Constify struct attribute parameter.
3981 (follow_die_sig): Constify struct attribute parameter.
3982 (get_DW_AT_signature_type): Constify struct attribute parameter.
3983 (get_type_unit_group): Constify struct attribute parameter.
3984 (fill_in_loclist_baton): Constify struct attribute parameter.
3985 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3986 (type_unit_group): Constify struct attribute parameter.
3987
6e5a29e1
SA
39882013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3989
3990 * dwarf2read.c (attr_form_is_block): Make argument const.
3991 (attr_form_is_section_offset): Make argument const.
3992 (attr_form_is_constant): Make argument const.
3993 (attr_form_is_ref): Make argument const.
3994
7771576e
SA
39952013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3996
3997 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3998 All uses updated.
3999 (attr_form_is_ref): Moved below attr_form_is_constant.
4000
a94e8645
DE
40012013-07-29 Doug Evans <dje@google.com>
4002
bb5291d0
DE
4003 * main.c (captured_command_loop): Tweak comment.
4004
b5419e49
DE
4005 * target.c (target_async_permitted_1): Fix comment.
4006
b2d23133
DE
4007 * symtab.c (iterate_over_some_symtabs): Add comment.
4008
a94e8645
DE
4009 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4010
7a60ad40
YQ
40112013-07-27 Yao Qi <yao@codesourcery.com>
4012
4013 * NEWS: Mention that GDBserver now supports hardware
4014 watchpoints on the MIPS GNU/Linux target.
4015
aaee2056
YQ
40162013-07-27 Yao Qi <yao@codesourcery.com>
4017
4018 * Makefile.in (HFILES_NO_SRCDIR): Add
4019 common/mips-linux-watch.h.
4020 (mips-linux-watch.o): New rule.
4021 * common/mips-linux-watch.c: New.
4022 * common/mips-linux-watch.h: New.
4023 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4024 * mips-linux-nat.c: Include mips-linux-watch.h.
4025 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4026 to common/mips-linux-watch.h.
4027 (MAX_DEBUG_REGISTER): Likewise.
4028 (enum pt_watch_style): Likewise.
4029 (struct mips32_watch_regs): Likewise.
4030 (struct mips64_watch_regs): Likewise.
4031 (struct pt_watch_regs): Likewise.
4032 (struct mips_watchpoint): Likewise.
4033 (mips_linux_watch_get_irw_mask): Move to
4034 common/mips-linux-watch.c.
4035 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4036 (mips_linux_watch_get_watchlo): Likewise.
4037 (mips_linux_watch_set_watchlo): Likewise.
4038 (mips_linux_watch_get_watchhi): Likewise.
4039 (mips_linux_watch_set_watchhi): Likewise.
4040 (mips_linux_read_watch_registers): Likewise.
4041 (mips_linux_watch_type_to_irw): Likewise.
4042 (mips_linux_stopped_data_address, fill_mask): Likewise.
4043 (mips_linux_watch_try_one_watch): Likewise.
4044 (mips_linux_watch_populate_regs): Likewise.
4045
b3436450
YQ
40462013-07-27 Yao Qi <yao@codesourcery.com>
4047
4048 * mips-linux-nat.c (get_irw_mask): Rename to ...
4049 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4050 'set' to 'n'. Update function comment. All callers changed.
4051 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4052 function comment. All callers changed.
4053 (get_num_valid): Rename to ...
4054 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4055 'set' to 'n'. Update function comment. All callers changed.
4056 (get_watchlo): Rename to ...
4057 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4058 'set' to 'n'. Update function comment. All callers changed.
4059 (set_watchlo): Rename to ...
4060 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4061 'set' to 'n'. Update function comment. All callers changed.
4062 (get_watchhi): Rename to ...
4063 (mips_linux_watch_get_watchhi): ... this. Update function
4064 comment. All callers changed.
4065 (set_watchhi): Rename to ...
4066 (mips_linux_watch_set_watchhi): ... this. Update function
4067 comment. All callers changed.
4068 (mips_linux_read_watch_registers): Update function comment.
4069 Add new parameters 'lwpid', 'watch_readback', and
4070 'watch_readback_valid'. Update.
4071 (type_to_irw): Rename to ...
4072 (mips_linux_watch_type_to_irw): ... this. Update function
4073 comment. All callers changed.
4074 (fill_mask): Update function comment.
4075 (try_one_watch): Rename to ...
4076 (mips_linux_watch_try_one_watch): ... this. Change the type
4077 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4078 (populate_regs_from_watches): Rename to ...
4079 (mips_linux_watch_populate_regs): ... this. Add parameter
4080 'current_watches'. All callers changed.
4081
9be14b81
YQ
40822013-07-27 Yao Qi <yao@codesourcery.com>
4083
4084 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4085 the code.
4086 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4087 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4088 (struct pt_watch_regs): Likewise.
4089 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4090 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4091 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4092 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4093 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4094
de6f69ad
YQ
40952013-07-27 Yao Qi <yao@codesourcery.com>
4096
4097 * breakpoint.h: Include break-common.h.
4098 (enum target_hw_bp_type): Move to ...
4099 * common/break-common.h: ... here. New.
4100
6f64ef53
PA
41012013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4102
4103 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4104 process group regardless of having tty on stdin.
4105
6107e809
DE
41062013-07-25 Doug Evans <dje@google.com>
4107
4108 * linux-fork.h (detach_fork): Delete.
4109
7fdc1521
TT
41102013-07-25 Tom Tromey <tromey@redhat.com>
4111
4112 PR remote/15256, PR remote/15266:
4113 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4114 * monitor.c (monitor_detach): Use unpush_target.
4115 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4116 * remote-mips.c (mips_detach): Use unpush_target. Don't
4117 call mips_close.
4118 * remote-sim.c (gdbsim_detach): Use unpush_target.
4119 * target.c (pop_target): Remove.
4120 (pop_all_targets_above): Don't call target_close.
4121 (target_close): Assert that the target is unpushed.
4122 * target.h (pop_target): Don't declare.
4123 * tracepoint.c (tfile_open): Use unpush_target.
4124
c22a2b88
TT
41252013-07-25 Tom Tromey <tromey@redhat.com>
4126
4127 * linux-thread-db.c (init_thread_db_ops): Call
4128 complete_target_initialization.
4129 (_initialize_thread_db): Don't call add_target.
4130 * target.c (complete_target_initialization): New function.
4131 (add_target_with_completer): Call it.
4132 * target.h (complete_target_initialization): Declare.
4133
cbb6aada
MK
41342013-07-25 Mark Kettenis <kettenis@gnu.org>
4135
4136 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4137 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4138 (HPPANBSD_SIZEOF_GREGS): New define.
4139 (hppaobsd_supply_gregset): Handle additional registers.
4140 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4141 we provide more registers now.
4142 (hppabsd_supply_gregset): Supply additional registers.
4143 (hppabsd_collect_gregset): Collect additional registers.
4144
17767988
MK
41452013-07-25 Mark Kettenis <kettenis@gnu.org>
4146
4147 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4148 (hppabsd_dwarf2_frame_init_reg): New function.
4149 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4150
fdc8aae8
AB
41512013-07-25 Andrew Burgess <aburgess@broadcom.com>
4152
4153 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4154 'z' format code. Remove error for optimized out values, standard
4155 code will handle these fine.
4156
6fbe845e
AB
41572013-07-25 Andrew Burgess <aburgess@broadcom.com>
4158
4159 * NEWS: Mention new 'z' formatter.
4160 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4161 (_initialize_printcmd): Mention 'z' formatter in help text of the
4162 'x' command.
4163
3373342d
MR
41642013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4165
4166 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4167 formatting.
4168
25f9533e
SDJ
41692013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4170
4171 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4172 interface can evaluate arguments. Fallback to the old mode if it
4173 cannot.
4174 (create_exception_master_breakpoint): Likewise.
4175 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4176 (struct sym_probe_fns elf_probe_fns): Export function above to the
4177 probe interface.
4178 * probe.c (can_evaluate_probe_arguments): New function.
4179 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4180 function pointer.
4181 (can_evaluate_probe_arguments): New function prototype.
4182 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4183 probe interface can evaluate arguments. Fallback to the old mode
4184 if it cannot.
4185 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4186 interface can evaluate arguments. Warning the user if it cannot.
4187 (stap_can_evaluate_probe_arguments): New function.
4188 (struct probe_ops stap_probe_ops): Export function above to the
4189 probe interface.
4190 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4191 New function pointer.
4192
3360c0bf
LM
41932013-07-24 Luis Machado <lgustavo@codesourcery.com>
4194
4195 * Makefile.in (SFILES): Add common/target-common.c.
4196 Add common/target-common.h to headers.
4197 (COMMON_OBS): Add target-common.o.
4198 (target-common.o): New target.
4199 * linux-nat.h (resume_kind): Move to common/target-common.h.
4200 * target.c (target_waitstatus_to_string): Move to
4201 common/target-common.c.
4202 * target.h: Include target-common.h.
4203 (target_waitkind): Move to common/target-common.h.
4204 (target_waitstatus): Likewise.
4205 (TARGET_WNOHANG): Likewise.
4206 * common/target-common.c: New file.
4207 * common/target-common.h: New file.
4208
6656a72d
DE
42092013-07-24 Doug Evans <dje@google.com>
4210
4211 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4212 a warning.
4213
6df81a63
YQ
42142013-07-23 Yao Qi <yao@codesourcery.com>
4215
4216 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4217 parameter 'gdbarch'.
4218 (i386_stack_tramp_frame_sniffer): Caller update.
4219 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4220 parameter 'gdbarch' and 'target'.
4221 (i386_linux_core_read_description): Caller update.
4222 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4223 Likewise.
4224 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4225 declaration.
4226
365156ad
TT
42272013-07-23 Tom Tromey <tromey@redhat.com>
4228
4229 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4230 2013-07-22.
4231
046ac79f
JK
42322013-07-22 Doug Evans <dje@google.com>
4233
4234 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4235 * exec.c (exec_close): Update call to remove_target_sections.
4236 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4237 * solib.c (update_solib_list): Ditto.
4238 (reload_shared_libraries_1): Ditto.
4239 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4240 * target.h (struct target_section): Rename key to owner.
4241 All uses updated.
046ac79f 4242
29b2cc46
TT
42432013-07-22 Tom Tromey <tromey@redhat.com>
4244
4245 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4246
d1160018
TT
42472013-07-22 Tom Tromey <tromey@redhat.com>
4248
4249 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4250 Simplify cleanup handling.
4251
2f324bf6
TT
42522013-07-22 Tom Tromey <tromey@redhat.com>
4253
4254 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4255 on all return paths.
4256
e23b9d6e
UW
42572013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4258
4259 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4260 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4261 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4262
1cf55f60
PM
42632013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4264
4265 * top.c (print_gdb_version): Add help, apropos description and
4266 url to online documentation.
4267
fa876972
HZ
42682013-07-19 Hui Zhu <hui@codesourcery.com>
4269
4270 PR gdb/15692
4271 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4272
1527aea8
YQ
42732013-07-19 Yao Qi <yao@codesourcery.com>
4274
4275 * target.c (update_current_target): Change the default action
4276 of 'to_traceframe_info' from tcomplain to return_zero.
4277 * target.h (struct target_ops) <to_traceframe_info>: Add more
4278 comments.
4279 * valops.c (read_value_memory): Call
4280 traceframe_available_memory unconditionally.
4281
886f230e
YQ
42822013-07-18 Yao Qi <yao@codesourcery.com>
4283
4284 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4285 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4286 symbol without prefix. If found, set its type to
4287 'mst_solib_trampoline'.
4288
16419bae
DE
42892013-07-17 Doug Evans <dje@google.com>
4290
e7045703
DE
4291 * NEWS: Mention "set print raw frame-arguments".
4292 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4293 * stack.c (print_raw_frame_arguments): New static global.
4294 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4295 (_initialize_stack): New command "set/show print raw frame-arguments".
4296 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4297 (set_print_raw, show_print_raw): New functions.
4298 (_initialize_valprint): New prefix command "set/show print raw".
4299 * valprint.h (value_print_options): Improve comments.
4300
453e48a5
DE
4301 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4302 of all *list variables.
4303
16419bae
DE
4304 * gdbcmd.h (togglelist): Delete.
4305 * cli/cli-cmds.c (togglelist): Delete.
4306 (init_cmd_lists): Update.
4307 * cli/cli-cmds.h (togglelist): Delete.
4308
626f2d1c
TT
43092013-07-17 Tom Tromey <tromey@redhat.com>
4310
4311 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4312 dwarf2_per_objfile.
4313
57e6060e
DE
43142013-07-16 Doug Evans <dje@google.com>
4315
4316 * nto-tdep.c (nto_relocate_section_addresses): Update,
4317 target_section.bfd deleted.
4318 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4319 * s390-tdep.c (s390_load): Ditto.
4320 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4321
5ea5559b
AB
43222013-07-16 Andrew Burgess <aburgess@broadcom.com>
4323
4324 * common/format.c (parse_format_string): Add checks for NULL
4325 character before calling strchr.
4326
2b2848e2
DE
43272013-07-16 Doug Evans <dje@google.com>
4328
2c571006
DE
4329 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4330 temp_pathname argument.
4331 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4332 when opening the file fails.
4333
2b2848e2
DE
4334 * target.h (struct target_section): Delete member bfd.
4335 All users updated to use the_bfd_section->owner instead.
4336 * exec.c (add_to_section_table): Assert bfd is expected value.
4337 Remove initialization of target_section.bfd.
4338 (remove_target_sections): Update.
4339 (section_table_available_memory): Update.
4340 (section_table_xfer_memory_partial): Update.
4341 (print_section_info): Update.
4342 (exec_set_section_address): Update.
4343 * record-full.c (record_full_core_xfer_partial): Update.
4344 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4345 * solib-target.c (solib_target_relocate_section_addresses): Update.
4346 * symfile.c (build_section_addr_info_from_section_table): Update.
4347 * target.c (memory_xfer_live_readonly_partial): Update.
4348 (memory_xfer_partial_1): Update.
4349
926bf92d
UW
43502013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4351
4352 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4353 now available for embedded (BookE) and server (BookS) processors,
4354 correct mentions of 'booke' and adjust comments accordingly in order to
4355 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4356 (have_ptrace_booke_interface): Rename function and variable
4357 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4358 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4359 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4360 'hwdebug_point_cmp'. Update all uses.
4361 (booke_find_thread_points_by_tid): Rename function
4362 'booke_find_thread_points_by_tid' to
4363 'hwdebug_find_thread_points_by_tid'. Update all uses.
4364 (booke_insert_point): Rename function 'booke_insert_point' to
4365 'hwdebug_insert_point'. Update all uses.
4366 (booke_remove_point): Rename function 'booke_remove_point' to
4367 'hwdebug_remove_point'. Update all uses.
4368
d929bc19
MR
43692013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4370
4371 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4372 numbers with enum values.
4373
054e8d9e
AA
43742013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4375
4376 PR threads/13217
4377 * thread.c (thread_apply_all_command): Check for valid threads
4378 and thread count.
4379 (thread_array_cleanup): New struct.
4380 (set_thread_refcount): New function.
4381
cf006359
AB
43822013-07-11 Andrew Burgess <aburgess@broadcom.com>
4383
4384 * infcmd.c (default_print_one_register_info): Reuse function
4385 print_hex_chars.
4386
94e36acc
TT
43872013-07-10 Tom Tromey <tromey@redhat.com>
4388
4389 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4390 (ada-exp.o): New target.
4391
915dd369
SDJ
43922013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4393
4394 * mt-tdep.c (mt_registers_info): Call
4395 get_no_prettyformat_print_options instead of
4396 get_raw_print_options (regression by last patch from Doug
4397 Evans).
4398
eca07816
JB
43992013-07-09 Pedro Alves <palves@redhat.com>
4400
4401 Checked in by Joel Brobecker <brobecker@adacore.com>.
4402 * ada-lang.c (coerce_unspec_val_to_type): Use
4403 value_optimized_out_const.
4404 * value.c (value_optimized_out_const): New function.
4405 * value.h (value_optimized_out_const): New declaration.
4406
2a998fc0
DE
44072013-07-09 Doug Evans <dje@google.com>
4408
4409 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4410 Enum values rename as well. All uses updated.
4411 * valprint.h (value_print_options): Rename member pretty to
4412 pretty format. Rename member prettyprint_arrays to
4413 prettyformat_arrays. Rename member prettyprint_structs to
4414 prettyformat_structs. All uses updated.
4415 (get_no_prettyformat_print_options): Renamed from
4416 get_raw_print_options.
4417 * valprint.c (get_no_prettyformat_print_options): Renamed from
4418 get_raw_print_options. All callers updated.
4419 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4420 All callers updated.
4421 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4422 All callers updated.
4423 (_initialize_valprint): Improve help text for "set print pretty" and
4424 "set print arrays".
4425
466c1fca
AB
44262013-07-09 Andrew Burgess <aburgess@broadcom.com>
4427
4428 * value.c (value_bits_valid): Revert previous change, and change
4429 by Pedro on 2013-07-04, due to regressions in
4430 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4431
ad0f0303
AB
44322013-07-08 Andrew Burgess <aburgess@broadcom.com>
4433 Pedro Alves <palves@redhat.com>
4434
4435 * value.c (value_bits_valid): If the value is not lval_computed
4436 or has no check validity handler then the answer is the
4437 optimized_out flag, otherwise defer to the handler.
4438
b187bec1
EZ
44392013-07-06 Eli Zaretskii <eliz@gnu.org>
4440
48d1d6f5
EZ
4441 * top.c (print_gdb_configuration): Explain in output of
4442 --configuration what does "relocatable" mean.
4443
b187bec1
EZ
4444 * main.c (print_gdb_help): Regroup options in the --help text.
4445 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4446 the relevant discussions.
4447
52d361e1
YQ
44482013-07-06 Yao Qi <yao@codesourcery.com>
4449
4450 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4451 Remove parameter 'lsal'.
4452 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4453 to inner block. Caller update.
4454 (base_breakpoint_create_breakpoints_sal): Update.
4455 (bkpt_create_breakpoints_sal): Likewise.
4456 (tracepoint_create_breakpoints_sal): Likewise.
4457 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4458 element 0 of vector 'canonical->sals'.
4459
e1ec1b42
LM
44602013-07-05 Luis Machado <lgustavo@codesourcery.com>
4461
4462 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4463 register number instead of the pseudo register one.
4464 (rs6000_dwarf2_reg_to_regnum): Likewise.
4465
7195e6f0
PA
44662013-07-04 Pedro Alves <palves@redhat.com>
4467
4468 * findvar.c (value_of_register): Use allocate_optimized_out_value
4469 if the register has been optimized out, instead of
4470 set_value_optimized_out.
4471 * frame-unwind.c (frame_unwind_got_optimized): Use
4472 allocate_optimized_out_value.
4473
58722cac
PA
44742013-07-04 Pedro Alves <palves@redhat.com>
4475
4476 * value.c (value_bits_valid): If the value is not lval_computed,
4477 or doesn't have a check_validity hook, assume the value is entirely
4478 valid.
4479
691a26f5
AB
44802013-07-04 Andrew Burgess <aburgess@broadcom.com>
4481
4482 * stack.c (read_frame_arg): No longer fetch lazy values.
4483 * value.c (value_optimized_out): If the value is not already
4484 marked optimized out, and is lazy then fetch it.
4485 (value_primitive_field): Move optimized out check to later in the
4486 function, after we have loaded any lazy values.
4487 (value_fetch_lazy): Use optimized out flag directly rather than
4488 calling optimized_out method.
4489
a58e2656
AB
44902013-07-04 Andrew Burgess <aburgess@broadcom.com>
4491
4492 * valops.c: Don't include "user-regs.h".
4493 (value_fetch_lazy): Moved to value.c.
4494 * value.c: Include "user-regs.h".
4495 (value_fetch_lazy): Moved from valops.c.
4496
bd885420
YQ
44972013-07-04 Yao Qi <yao@codesourcery.com>
4498
4499 Revert:
4500 2013-06-27 Yao Qi <yao@codesourcery.com>
4501
4502 * common/create-version.sh: Update comments. Handle the case
4503 that TARGET_ALIAS is empty.
4504
17ef446e
PA
45052013-07-03 Pedro Alves <palves@redhat.com>
4506
4507 * Makefile.in (config.status): Depend on development.sh.
4508 (aclocal_m4_deps): Add libmcheck.m4.
4509 * acinclude.m4: Include libmcheck.m4.
4510 * configure.ac: Source development.sh instead of setting
4511 'development' here. --enable-libmcheck/--disable-libmcheck code
4512 factored out to GDB_AC_LIBMCHECK. Run it.
4513 * development.sh: New file.
4514 * libmcheck.m4: New file.
4515 * configure: Regenerate.
4516
ac6dd50f
TT
45172013-07-02 Tom Tromey <tromey@redhat.com>
4518
4519 * contrib/ari/update-web-ari.sh: Update for version.in change.
4520
bd1df410
TT
45212013-07-02 Tom Tromey <tromey@redhat.com>
4522
4523 * common/ptid.h: Comment fixes.
4524
4db1a1dc
TT
45252013-07-01 Tom Tromey <tromey@redhat.com>
4526
4527 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4528 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4529 (dwarf2_read_index, create_all_comp_units): Update.
4530
dd9aa048
TT
45312013-07-01 Tom Tromey <tromey@redhat.com>
4532
4533 * configure.ac (build_warnings): Add -Wold-style-definition.
4534 * configure: Rebuild.
4535 * machoread.c (_initialize_machoread): Use "(void)".
4536 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4537 use "(void)".
4538
44d100c3
TT
45392013-07-01 Tom Tromey <tromey@redhat.com>
4540
4541 * configure.ac (build_warnings): Add -Wold-style-declaration.
4542 * configure: Rebuild.
4543 * dsrec.c (make_srec): Use "static const", not "const static".
4544 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4545 not "const static".
4546 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4547 Use "static const", not "const static".
4548 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4549 not "const static".
4550 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4551 not "const static".
4552 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4553 not "const static".
4554 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4555 not "const static".
4556 (v850_dbtrap_breakpoint_from_pc): Likewise.
4557 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4558 not "const static".
4559
2945b807
TT
45602013-07-01 Tom Tromey <tromey@redhat.com>
4561
4562 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4563 * configure: Rebuild.
4564
d8d2a3ee
PA
45652013-07-01 Pedro Alves <palves@redhat.com>
4566
4567 * defs.h: Include "pathmax.h".
4568 * utils.c: Don't include sys/param.h.
4569 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4570 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4571 instead of MAXPATHLEN.
4572 * solib-sunos.c: Don't include sys/param.h.
4573 * xcoffread.c: Don't include sys/param.h.
4574 * bsd-kvm.c: Don't include sys/param.h.
4575 * darwin-nat.c: Don't include sys/param.h.
4576 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4577 * darwin-nat-info.c: Don't include sys/param.h.
4578 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4579 MAXPATHLEN.
4580 * i386obsd-nat.c: Don't include sys/param.h.
4581 * inf-child.c: Don't include sys/param.h.
4582 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4583 * linux-fork.c: Don't include sys/param.h.
4584 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4585 * linux-nat.c: Don't include sys/param.h.
4586 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4587 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4588 * m68klinux-nat.c: Don't include sys/param.h.
4589 * nbsd-nat.c: Don't include sys/param.h.
4590 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4591 * ppc-linux-nat.c: Don't include sys/param.h.
4592 * rs6000-nat.c: Don't include sys/param.h.
4593 * spu-linux-nat.c. Don't include sys/param.h.
4594 * windows-nat.c: Don't include sys/param.h.
4595 * xtensa-linux-nat.c: Don't include sys/param.h.
4596 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4597
38ec2207
PA
45982013-07-01 Pedro Alves <palves@redhat.com>
4599
4600 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4601 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4602 * gnulib/aclocal.m4: Regenerate.
4603 * gnulib/config.in: Regenerate.
4604 * gnulib/configure: Regenerate.
4605 * gnulib/import/pathmax.h: New file.
4606 * gnulib/import/Makefile.am: Regenerate.
4607 * gnulib/import/Makefile.in: Regenerate.
4608 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4609 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4610 * gnulib/import/m4/pathmax.m4: New file.
4611
e655c1a2
PA
46122013-07-01 Pedro Alves <palves@redhat.com>
4613
4614 * configure.ac (GDBINIT): Define, depending on host.
4615 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4616 * top.c (PATH_MAX): Delete fallback definition.
4617 (GDBINIT_FILENAME): Delete.
4618 (gdbinit): Reimplement as const char array set to the GDBINIT
4619 string constant.
4620 * top.h (gdbinit): Make const.
4621 * configure, config.in: Regenerate.
4622
50dd9793
PA
46232013-07-01 Pedro Alves <palves@redhat.com>
4624
4625 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4626 * cli/cli-cmds.h (source_script): Likewise.
4627 * exceptions.c (catch_command_errors_const): New function.
4628 * exceptions.h (catch_command_errors_const): Declare.
4629 * main.c (get_init_files): Make parameters const, and adjust.
4630 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4631 'local_gdbinit' locals const. Adjust to use
4632 catch_command_errors_const.
4633 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4634 'local_gdbinit' locals const.
4635
bc7dea8d
PA
46362013-07-01 Pedro Alves <palves@redhat.com>
4637
4638 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4639 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4640 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4641 <unistd.h>.
4642
8839a007
PA
46432013-07-01 Pedro Alves <palves@redhat.com>
4644
4645 Import the "unistd" gnulib module.
4646 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4647 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4648 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4649 import/m4/unistd_h.m4.
4650 * gnulib/aclocal.m4: Renenerate.
4651 * gnulib/config.in: Renenerate.
4652 * gnulib/configure: Renenerate.
4653 * gnulib/import/Makefile.am: Renenerate.
4654 * gnulib/import/Makefile.in: Renenerate.
4655 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4656 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4657 * gnulib/import/m4/off_t.m4: New file.
4658 * gnulib/import/m4/ssize_t.m4: New file.
4659 * gnulib/import/m4/sys_types_h.m4: New file.
4660 * gnulib/import/m4/unistd_h.m4: New file.
4661 * gnulib/import/sys_types.in.h: New file.
4662 * gnulib/import/unistd.c: New file.
4663 * gnulib/import/unistd.in.h: New file.
4664
8c0da261
PA
46652013-07-01 Pedro Alves <palves@redhat.com>
4666
4667 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4668 defined instead of checking HAVE_UNISTD_H.
4669
3574124b
PA
46702013-07-01 Pedro Alves <palves@redhat.com>
4671
4672 Reimport gnulib from scratch.
4673 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4674 import/m4/onceonly.m4.
4675 * gnulib/aclocal.m4: Renegerate.
4676 * gnulib/config.in: Renegerate.
4677 * gnulib/configure: Renegerate.
4678 * gnulib/import/Makefile.in: Renegerate.
4679 * gnulib/import/extra/update-copyright: Renegerate.
4680 * gnulib/import/m4/onceonly.m4: Delete.
4681
702dc4fd
PA
46822013-07-01 Pedro Alves <palves@redhat.com>
4683
4684 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4685
47e1ce27
JK
46862013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4687
4688 Code cleanup.
4689 * remote.c (async_remote_interrupt_twice): Make it static.
4690 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4691
e82839d4
SDJ
46922013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4693
4694 * ia64-linux-tdep.c: Include <ctype.h>.
4695 (ia64_linux_stap_is_single_operand): New function.
4696 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4697
d6c2da54
TT
46982013-06-28 Tom Tromey <tromey@redhat.com>
4699
4700 * Makefile.in (version.c): Use version.in, not
4701 common/version.in.
4702 * common/create-version.sh: Likewise.
4703 * common/version.in: Move...
4704 * version.in: ...here.
4705
74da6f00
PA
47062013-06-28 Pedro Alves <palves@redhat.com>
4707
4708 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4709 here.
4710 * utils.h (pagination_enabled): Declare.
4711
d32dc48e
PA
47122013-06-28 Pedro Alves <palves@redhat.com>
4713
4714 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4715 Move higher up in file.
4716
0edd9e3b
TT
47172013-06-28 Tom Tromey <tromey@redhat.com>
4718
4719 * tracepoint.c (deprecated_readline_begin_hook)
4720 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4721 declare.
4722
4eb59108
PA
47232013-06-28 Pedro Alves <palves@redhat.com>
4724
4725 PR tui/14880
4726 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4727 checking if they're available.
4728 * value.c (value_available_contents_eq): Change comment.
4729 * value.h (value_available_contents_eq): Expand comment.
4730
97b17156
TT
47312013-06-27 Tom Tromey <tromey@redhat.com>
4732
4733 * target.c (find_run_target): Remove.
4734 * target.h (find_run_target): Remove.
4735
6a3bfc5c
TT
47362013-06-27 Tom Tromey <tromey@redhat.com>
4737
4738 * corelow.c (core_gdbarch): Now static.
4739
c9ef825d
TT
47402013-06-27 Tom Tromey <tromey@redhat.com>
4741
4742 * target.c (target_struct_index): Remove.
4743
e5823f1c
PA
47442013-06-27 Pedro Alves <palves@redhat.com>
4745
4746 * infrun.c: Remove comment describing the 'stepping over runtime
4747 loader dynamic symbol resolution code' mechanism; moved to
4748 gdbint.texinfo.
4749
97f8dd09
PA
47502013-06-27 Pedro Alves <palves@redhat.com>
4751
4752 * exceptions.c (catch_command_errors): Remove spurious space.
4753 * exceptions.h (catch_command_errors): Second parameter is "arg",
4754 not "command".
4755
02b1871e
YQ
47562013-06-27 Yao Qi <yao@codesourcery.com>
4757
4758 * common/create-version.sh: Update comments. Handle the case
4759 that TARGET_ALIAS is empty.
4760
bb1b1cf1
PA
47612013-06-26 Pedro Alves <palves@redhat.com>
4762
4763 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4764 comment.
4765
7b624e71
PA
47662013-06-26 Pedro Alves <palves@redhat.com>
4767
4768 * infrun.c: Update comments on stepping over runtime loader
4769 dynamic symbol resolution code.
4770
74e5a346
SDJ
47712013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4772
4773 * ax-gdb.h (union exp_element): Forward declare.
4774 * parser-defs.h: Include expression.h.
4775
a2fb2cee
MR
47762013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4777
4778 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4779
cdba14e0
DK
47802013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4781
4782 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4783
f30aa5af
DK
47842013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4785
4786 Fix trace-status to output proper start-time and stop-time.
4787 * tracepoint.c (trace_status_command): Fix type of printf arg to
4788 prevent improper type conversion.
4789 (trace_status_mi): Likewise.
4790
1aee363c
MR
47912013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4792
4793 * mips-tdep.c (mips_next_pc): Fix a typo.
4794
3356937a
MR
47952013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4796
4797 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4798
dc673c81
YQ
47992013-06-26 Pedro Alves <pedro@codesourcery.com>
4800 Yao Qi <yao@codesourcery.com>
4801
4802 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4803 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4804 * mi/mi-main.c (print_variable_or_computed): New function.
4805 (mi_cmd_trace_frame_collected): New function.
4806 * tracepoint.c (find_trace_state_variable_by_number): New.
4807 (struct traceframe_info): Move to tracepoint.h
4808 (struct collection_list): Likewise.
4809 (do_collect_symbol): Include locals and arguments in the
4810 collected variables list.
4811 (clear_collection_list): Clear wholly collected variables list
4812 and computed variables list.
4813 (append_exp): New function.
4814 (encode_actions_1): Include variables in the wholly
4815 collected variables list. Include memory ranges and
4816 full-fledged expressions in the computed expressions list.
4817 (encode_actions): Move some code to ...
4818 Return the cleanup chain.
4819 (encode_actions_rsp): ... here. New function.
4820 (get_traceframe_location, get_traceframe_info): Remove static.
4821 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4822 (struct collection_list): Moved from tracepoint.c. Add two
4823 new fields 'wholly_collected' and 'computed'.
4824 (find_trace_state_variable_by_number): Declare.
4825 (encode_actions): Adjust declaration.
4826 (encode_actions_rsp): Declare.
4827 (get_traceframe_info, get_traceframe_location): Declare.
4828
4829 * NEWS: Mention new MI command -trace-frame-collected.
4830
28a93511
YQ
48312013-06-26 Pedro Alves <pedro@codesourcery.com>
4832 Yao Qi <yao@codesourcery.com>
4833
4834 * ctf.c (ctf_traceframe_info): Push trace state variables
4835 present in the trace data into the traceframe info object.
4836 * breakpoint.c (DEF_VEC_I): Remove.
4837 * common/filestuff.c (DEF_VEC_I): Likewise.
4838 * dwarf2loc.c (DEF_VEC_I): Likewise.
4839 * mi/mi-main.c (DEF_VEC_I): Likewise.
4840 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4841 * features/traceframe-info.dtd: Add tvar element and its
4842 attributes.
4843 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4844 (build_traceframe_info): Push trace state variables present in
4845 the trace data into the traceframe info object.
4846 (traceframe_info_start_tvar): New function.
4847 (tvar_attributes): New.
4848 (traceframe_info_children): Add "tvar" element.
4849 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4850
4851 * NEWS: Mention the change in GDB and GDBserver.
4852
ddacd3c8
YQ
48532013-06-26 Pedro Alves <pedro@codesourcery.com>
4854 Yao Qi <yao@codesourcery.com>
4855
4856 * tracepoint.c (trace_dump_command): Move code to ...
4857 (get_traceframe_location): ... here. New.
4858
05796b35
YQ
48592013-06-26 Pedro Alves <pedro@codesourcery.com>
4860 Yao Qi <yao@codesourcery.com>
4861
4862 * tracepoint.c (trace_dump_command): GDB emits an error
4863 instead of a warning when a traceframe is not selected.
4864
cbfa3b61
YQ
48652013-06-26 Pedro Alves <pedro@codesourcery.com>
4866 Yao Qi <yao@codesourcery.com>
4867
4868 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4869 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4870 in collection_list.
4871 (do_clear_collection_list, init_collection_list): New.
4872 (encode_actions): Add local variables 'tracepoint_list' and
4873 'stepping_list'. Call init_collection_list and make cleanup
4874 which calls do_clear_collection_list. Don't call
4875 clear_collection_list.
4876 (_initialize_tracepoint): Delete references to
4877 'tracepoint_list' and 'stepping_list'.
4878
6e2048d3
TT
48792013-06-25 Tom Tromey <tromey@redhat.com>
4880
4881 * common/create-version.sh (date): Use "$", not "$$" in sed
4882 expression.
4883
42059f0e
KB
48842013-06-25 Kevin Buettner <kevinb@redhat.com>
4885
4886 * NEWS (New targets): Add entry for TI MSP430.
4887
a0743c90
YQ
48882013-06-25 Yao Qi <yao@codesourcery.com>
4889
4890 * remote.c (remote_start_remote): Move code to upload tsv
4891 earlier.
4892
9d6e6e84
HZ
48932013-06-25 Yao Qi <yao@codesourcery.com>
4894 Hui Zhu <hui@codesourcery.com>
4895 Pedro Alves <palves@redhat.com>
4896
4897 PR breakpoints/15075
4898 PR breakpoints/15434
4899 * breakpoint.c (bpstat_stop_status): Call
4900 b->ops->after_condition_true.
4901 (update_dprintf_command_list): Don't append "continue" command
4902 to the command list of dprintf breakpoint.
4903 (base_breakpoint_after_condition_true): New function.
4904 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4905 (dprintf_after_condition_true): New function.
4906 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4907 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4908
586cf749
KB
49092013-06-24 Kevin Buettner <kevinb@redhat.com>
4910
4911 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4912 (ALLDEPFILES): Add msp430-tdep.c.
4913 * configure.tgt (msp430*-*-elf): New target.
4914 * msp430-tdep.c: New file.
4915
1bbce132
MR
49162013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4917
4918 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4919 microMIPS synthetic symbols.
4920
3e5d3a5a
MR
49212013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4922
4923 * objfiles.h (pc_in_section): New prototype.
4924 (in_plt_section): Remove name argument, replace prototype with
4925 static inline function.
4926 * mips-tdep.h: Include "objfiles.h".
4927 (in_mips_stubs_section): New function.
4928 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4929 in_solib_call_trampoline member.
4930 (hppa_in_solib_call_trampoline): Remove name argument.
4931 * objfiles.c (pc_in_section): New function.
4932 (in_plt_section): Remove function.
4933 * mips-linux-tdep.c: Include "objfiles.h".
4934 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4935 name argument. Return 1 rather than the low 16-bit halfword of
4936 any instruction examined.
4937 (mips_linux_in_dynsym_resolve_code): Update
4938 mips_linux_in_dynsym_stub call accordingly.
4939 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4940 rather than an equivalent hand-coded sequence.
4941 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4942 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4943 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4944 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4945 in_opd_section.
4946 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4947 on call to tdep->in_solib_call_trampoline.
4948 (hppa_in_solib_call_trampoline): Remove name argument, update
4949 according to in_plt_section change.
4950 (hppa_skip_trampoline_code): Update according to in_plt_section
4951 change.
4952 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4953 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4954 Likewise.
4955 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4956 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4957 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4958 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4959 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4960 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4961 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4962 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4963 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4964 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4965 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4966 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4967 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4968
b9b26a16
JB
49692013-06-24 Joel Brobecker <brobecker@adacore.com>
4970
4971 * common/create-version.sh: Fix expansion of $host_alias
4972 and $target_alias in generation of HOST_NAME and TARGET_NAME
4973 (resp.).
4974
01208463
TT
49752013-06-24 Tom Tromey <tromey@redhat.com>
4976
4977 * common/create-version.sh: New file.
4978 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4979 create-version.sh.
4980 (HFILES_NO_SRCDIR): Use common/version.h.
4981 * version.in: Move to ...
4982 * common/version.in: ... here. Replace date with "DATE".
4983 * version.h: Move to ...
4984 * common/version.h: ... here.
4985
bb6b9a5e
JB
49862013-06-21 Joel Brobecker <brobecker@adacore.com>
4987
4988 * gdb/gnulib/Makefile.in: Update date in copyright header.
4989 * gdb/gnulib/configure.ac: Ditto.
4990 * gdb/gnulib/update-gnulib.sh: Ditto.
4991
c3b18ee7
JB
49922013-06-21 Joel Brobecker <brobecker@adacore.com>
4993
4994 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4995 "gdb/gnulib/import".
4996
85d3b769
WN
49972013-06-21 Will Newton <will.newton@linaro.org>
4998
4999 * doublest.c (ldfrexp): Remove function.
5000 (convert_doublest_to_floatformat): Call frexpl instead of
5001 ldfrexp.
5002
88b48903
WN
50032013-06-21 Will Newton <will.newton@linaro.org>
5004
5005 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5006 * gnulib/aclocal.m4: Regenerate.
5007 * gnulib/config.in: Regenerate.
5008 * gnulib/configure: Regenerate.
5009 * gnulib/import/Makefile.am: Update.
5010 * gnulib/import/Makefile.in: Update.
5011 * gnulib/import/m4/gnulib-cache.m4: Update.
5012 * gnulib/import/m4/gnulib-comp.m4: Update.
5013 * gnulib/import/float+.h: Import.
5014 * gnulib/import/float.c: Import.
5015 * gnulib/import/float.in.h: Import.
5016 * gnulib/import/fpucw.h: Import.
5017 * gnulib/import/frexp.c: Import.
5018 * gnulib/import/frexpl.c: Import.
5019 * gnulib/import/isnan.c: Import.
5020 * gnulib/import/isnand-nolibm.h: Import.
5021 * gnulib/import/isnand.c: Import.
5022 * gnulib/import/isnanl-nolibm.h: Import.
5023 * gnulib/import/isnanl.c: Import.
5024 * gnulib/import/itold.c: Import.
5025 * gnulib/import/m4/exponentd.m4: Import.
5026 * gnulib/import/m4/exponentl.m4: Import.
5027 * gnulib/import/m4/float_h.m4: Import.
5028 * gnulib/import/m4/fpieee.m4: Import.
5029 * gnulib/import/m4/frexp.m4: Import.
5030 * gnulib/import/m4/frexpl.m4: Import.
5031 * gnulib/import/m4/isnand.m4: Import.
5032 * gnulib/import/m4/isnanl.m4: Import.
5033 * gnulib/import/m4/math_h.m4: Import.
5034 * gnulib/import/math.c: Import.
5035 * gnulib/import/math.in.h: Import.
5036
4353c9e6
JK
50372013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5038
5039 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5040 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5041 signature_INTEL_edx comparisons.
5042
e3e06db3
DE
50432013-06-20 Doug Evans <dje@google.com>
5044
6ac97d4c
DE
5045 symtab/15652
5046 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5047 All callers updated.
5048 (open_dwp_file): If we can't find the dwp file, search the basename
5049 in debug-file-directory.
5050
93417882
DE
5051 * dwarf2read.c (struct dwp_file): Fix comment.
5052 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5053
e3e06db3
DE
5054 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5055 better.
5056
0878d0fa
YQ
50572013-06-20 Yao Qi <yao@codesourcery.com>
5058
5059 * breakpoint.c (create_breakpoint): Fix code indentation.
5060
023fa29b
YQ
50612013-06-20 Yao Qi <yao@codesourcery.com>
5062
5063 * breakpoint.c (create_breakpoints_sal_default): Remove
5064 parameter 'lsal'. Update declaration.
5065 (bkpt_create_breakpoints_sal): Caller update.
5066 (tracepoint_create_breakpoints_sal): Likewise.
5067
c898adb7
YQ
50682013-06-20 Pedro Alves <pedro@codesourcery.com>
5069 Yao Qi <yao@codesourcery.com>
5070
5071 * NEWS: Mention the new option '--skip-unavailable' of command
5072 -data-list-register-values.
5073 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5074 --skip-unavailable option. Adjust to use output_register.
5075 (output_register): Add new 'skip_unavailable' parameter.
5076 Handle it.
5077
4d157a3d
MF
50782013-06-19 Mike Frysinger <vapier@gentoo.org>
5079
5080 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5081 common/i386-gcc-cpuid.h.
5082 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5083 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5084 Copy the latest version from upstream gcc.
5085 * common/linux-btrace.c: Include i386-cpuid.h.
5086 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5087 call to i386_cpuid.
5088 (cpu_supports_btrace): Likewise.
5089 * go32-nat.c: Include i386-cpuid.h.
5090 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5091
1ce4db08
DE
50922013-06-19 Doug Evans <dje@google.com>
5093
5094 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5095 (get_section_index): Ditto.
5096
0e4777df
TT
50972013-06-19 Tom Tromey <tromey@redhat.com>
5098
5099 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5100 "dprintf" help.
5101
3190f0c6
DE
51022013-06-18 Doug Evans <dje@google.com>
5103
5104 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5105 before using it.
5106 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5107 Move test of cu_index closer to use. Print complaint if cu_index
5108 is bad.
5109
8b89a20a
JB
51102013-06-18 Joel Brobecker <brobecker@adacore.com>
5111
5112 * machoread.c (oso_vector): Delete this global.
5113 (macho_register_oso): Add new parameter "oso_vector_ptr".
5114 Use it instead of the "oso_vector" global.
5115 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5116 (macho_symfile_read): Use a local oso_vector, to be free'ed
5117 at the end of this function, in place of the old "oso_vector"
5118 global. Update various function calls accordingly. Use one
5119 single cleanup chain for the entire function.
5120
59b0c7c1
JB
51212013-06-18 Joel Brobecker <brobecker@adacore.com>
5122
937c708c 5123 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5124 DWARF2_PER_OBJFILE by uses of DATA instead.
5125
427cd150
TT
51262013-06-18 Tom Tromey <tromey@redhat.com>
5127
5128 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5129 argument.
5130 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5131 Special case signals other than GDB_SIGNAL_TRAP.
5132 (explains_signal_watchpoint): New function.
5133 (base_breakpoint_explains_signal): Add 'sig' argument.
5134 (initialize_breakpoint_ops): Set 'explains_signal' method for
5135 watchpoints.
5136 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5137 signal argument.
5138 (bpstat_explains_signal): Likewise.
5139 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5140
2d57700b
TT
51412013-06-18 Tom Tromey <tromey@redhat.com>
5142
5143 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5144
ac475191
TT
51452013-06-18 Tom Tromey <tromey@redhat.com>
5146
5147 * python/python.c (finish_python_initialization): Decref
5148 'pythondir' on failure path as well.
5149
5bd1ef56
TT
51502013-06-18 Tom Tromey <tromey@redhat.com>
5151
5152 PR symtab/15391:
5153 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5154 after taking bits_to_skip into account. Sign extend byte_offset.
5155 * utils.h (gdb_sign_extend): Declare.
5156 * utils.c (gdb_sign_extend): New function.
5157
92fac807
JK
51582013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5159
5160 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5161
2d503272
PM
51622013-06-17 Pierre Muller <muller@sourceware.org>
5163
5164 * corelow.c (core_open): Print GDB signal name instead of target
5165 signal number.
5166
6916fd98
MF
51672013-06-17 Mike Frysinger <vapier@gentoo.org>
5168
5169 * .gitignore: Add /gcore.
5170
9c02c129
DE
51712013-06-13 Doug Evans <dje@google.com>
5172
5173 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5174 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5175
d0548fa2
PM
51762013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5177
5178 * stack.c (backtrace_command_1): Fix indentation.
5179
22128028
JB
51802013-06-11 Joel Brobecker <brobecker@adacore.com>
5181
5182 * window-nat.c (thread_rec): Add missing empty line after
5183 local variable declaration.
5184
2ed3e009
JB
51852013-06-11 Joel Brobecker <brobecker@adacore.com>
5186
5187 * windows-nat.c (thread_rec): Revert format used to print
5188 error code returned by SuspendThread from %d back to %u.
5189
0c3d84be
JB
51902013-06-11 Joel Brobecker <brobecker@adacore.com>
5191
5192 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5193 ID in debug trace.
5194 (get_windows_debug_event): Likewise, for all debug traces.
5195
80e88e1a
JB
51962013-06-11 Joel Brobecker <brobecker@adacore.com>
5197
5198 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5199 warning message.
5200
1edebdbf
YQ
52012013-06-08 Pedro Alves <pedro@codesourcery.com>
5202 Yao Qi <yao@codesourcery.com>
5203
5204 * mi/mi-main.c (get_register): Remove declaration.
5205 (output_register): Declare.
5206 (mi_cmd_data_list_register_values): Remove local variable
5207 'tuple_cleanup'. Move some code into output_register.
5208 (get_register): Renamed to ...
5209 (output_register): ... this. Output the register's
5210 "number" ui_out tuple here.
5211
47d48711
PA
52122013-06-07 Pedro Alves <palves@redhat.com>
5213
5214 * darwin-nat.c: Fix formating in copyright header.
5215 * darwin-nat.h: Likewise.
5216 * gnu-nat.c: Likewise.
5217 * machoread.c: Likewise.
5218
3aee8918
PA
52192013-06-07 Pedro Alves <palves@redhat.com>
5220
5f2b57b5 5221 PR server/14823
3aee8918
PA
5222 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5223 static. Output a global target description pointer.
5224 (init_registers_${name}): Adjust to initialize a
5225 target description structure.
5226
fe8400b4
WN
52272013-06-07 Will Newton <will.newton@linaro.org>
5228
5229 * printcmd.c (build_address_symbolic): Call
5230 gdbarch_addr_bits_remove for text minimal symbols.
5231
20df6206
WN
52322013-06-07 Will Newton <will.newton@linaro.org>
5233
5234 * MAINTAINERS: Add myself to Write After Approval.
5235
aef525cb
YQ
52362013-06-07 Yao Qi <yao@codesourcery.com>
5237
5238 * tracepoint.c (start_tracing): Move code to ...
5239 (trace_reset_local_state): ... here. New.
5240 (disconnect_tracing): Don't call set_current_traceframe,
5241 set_tracepoint_num, and set_traceframe_context. Call
5242 trace_reset_local_state instead.
5243 (tfile_close): Call trace_reset_local_state.
5244 * ctf.c (ctf_close): Likewise.
5245 * remote.c (remote_close): Likewise.
5246 * tracepoint.h (trace_reset_local_state): Declare.
5247
d2415c6c
DE
52482013-06-06 Doug Evans <dje@google.com>
5249
5250 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5251 and fix header docs.
5252
69fc87c2
DE
52532013-06-05 Doug Evans <dje@google.com>
5254 Keith Seitz <keiths@redhat.com>
5255
5256 PR 15519
5257 * cp-namespace.c (find_symbol_in_baseclass): Call
5258 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5259 Check result of call to lookup_symbol_static.
5260 Call lookup_static_symbol_aux unconditionally.
5261 Call check_typedef on base types before accessing them.
5262 (cp_lookup_nested_symbol): Fix comment.
5263
a513d1e8
LM
52642013-06-05 Luis Machado <lgustavo@codesourcery.com>
5265
5266 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5267 minimal symbols pointing to function descriptors.
5268
351a6f02
TT
52692013-06-05 Tom Tromey <tromey@redhat.com>
5270
5271 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5272
5e1b953b 52732013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5274 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5275
5276 * remote.c (remote_wait_as): Restore signal handler before returning
5277 when GDB gets a notification.
5278
f9e14852
GB
52792013-06-04 Gary Benson <gbenson@redhat.com>
5280
8445cbf1 5281 PR 2328
f9e14852
GB
5282 * breakpoint.h (handle_solib_event): Moved function declaration
5283 to solib.h.
5284 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5285 (bpstat_stop_status): Pass new argument to handle_solib_event.
5286 * solib.h (update_solib_breakpoints): New function declaration.
5287 (handle_solib_event): Moved function declaration from
5288 breakpoint.h.
5289 * solib.c (update_solib_breakpoints): New function.
5290 (handle_solib_event): Moved function from breakpoint.c.
5291 Updated to call solib_ops->handle_event if not NULL.
5292 * solist.h (target_so_ops): New fields "update_breakpoints" and
5293 "handle_event".
5294 * infrun.c (set_stop_on_solib_events): New function.
5295 (_initialize_infrun): Use the above for "set
5296 stop-on-solib-events".
5297 (handle_inferior_event): Pass new argument to handle_solib_event.
5298 * solib-svr4.c (probe.h): New include.
5299 (svr4_free_library_list): New forward declaration.
5300 (probe_action): New enum.
5301 (probe_info): New struct.
5302 (probe_info): New static variable.
5303 (NUM_PROBES): New definition.
5304 (svr4_info): New fields "using_xfer", "probes_table" and
5305 "solib_list".
5306 (free_probes_table): New function.
5307 (free_solib_list): New function.
5308 (svr4_pspace_data_cleanup): Free probes table and solib list.
5309 (svr4_copy_library_list): New function.
5310 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5311 (svr4_read_so_list): New parameter "prev_lm".
5312 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5313 (svr4_current_sos): New function.
5314 (probe_and_action): New struct.
5315 (hash_probe_and_action): New function.
5316 (equal_probe_and_action): Likewise.
5317 (register_solib_event_probe): Likewise.
5318 (solib_event_probe_at): Likewise.
5319 (solib_event_probe_action): Likewise.
5320 (solist_update_full): Likewise.
5321 (solist_update_incremental): Likewise.
5322 (disable_probes_interface_cleanup): Likewise.
5323 (svr4_handle_solib_event): Likewise.
5324 (svr4_update_solib_event_breakpoint): Likewise.
5325 (svr4_update_solib_event_breakpoints): Likewise.
5326 (svr4_create_solib_event_breakpoints): Likewise.
5327 (enable_break): Free probes table before creating breakpoints.
5328 Use svr4_create_solib_event_breakpoints to create breakpoints.
5329 (svr4_solib_create_inferior_hook): Free the solib list.
5330 (_initialize_svr4_solib): Initialise
5331 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5332
ced63ec0
GB
53332013-06-04 Gary Benson <gbenson@redhat.com>
5334
5335 * target.h (target_ops): New field
5336 "to_augmented_libraries_svr4_read".
5337 (target_augmented_libraries_svr4_read): New macro.
5338 * target.c (update_current_target): Handle
5339 to_augmented_libraries_svr4_read.
5340 * remote.c (remote_state): New field
5341 "augmented_libraries_svr4_read".
5342 (remote_augmented_libraries_svr4_read_feature): New function.
5343 (remote_protocol_features): Add entry for
5344 "augmented-libraries-svr4-read".
5345 (remote_augmented_libraries_svr4_read): New function.
5346 (init_remote_ops): Initialize
5347 remote_ops.to_augmented_libraries_svr4_read.
5348
7f91dbec
GB
53492013-06-04 Gary Benson <gbenson@redhat.com>
5350
5351 * NEWS: Update.
5352
607ece04
GB
53532013-06-04 Gary Benson <gbenson@redhat.com>
5354
5355 * objfiles.h (inhibit_section_map_updates): New function
5356 declaration.
5357 (resume_section_map_updates): Likewise.
5358 (resume_section_map_updates_cleanup): Likewise.
5359 * objfiles.c (objfile_pspace_info): Removed field
5360 "objfiles_changed_p". New fields "new_objfiles_available",
5361 "section_map_dirty" and "inhibit_updates".
5362 (allocate_objfile): Set new_objfiles_available.
5363 (free_objfile): Set section_map_dirty.
5364 (objfile_relocate1): Likewise.
5365 (in_plt_section): Likewise.
5366 (find_pc_section): Update the conditions under which the
5367 section map will be updated.
5368 (inhibit_section_map_updates): New function.
5369 (resume_section_map_updates): Likewise.
5370 (resume_section_map_updates_cleanup): Likewise.
5371
9ee6a5ac
GB
53722013-06-04 Gary Benson <gbenson@redhat.com>
5373
5374 * probe.h (get_probe_argument_count): New declaration.
5375 (evaluate_probe_argument): Likewise.
5376 * probe.c (get_probe_argument_count): New function.
5377 (evaluate_probe_argument): Likewise.
5378 (probe_safe_evaluate_at_pc): Use the above new functions.
5379
845d4708
AM
53802013-06-04 Alan Modra <amodra@gmail.com>
5381
5382 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5383 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5384 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5385 target mem reads on optional insns.
5386 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5387 ppc_insns_match_pattern calls.
5388 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5389 Add match for power7 thread safety insns, and new order of
5390 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5391 invocation in comment, and update rest of comment.
5392 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5393 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5394 (ppc64_standard_linkage2_target): Update insn offsets.
5395 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5396 stubs first. Update calls.
5397
404e278f
YQ
53982013-06-04 Yao Qi <yao@codesourcery.com>
5399
5400 * solib.c (solib_find): Don't need dir separator if path has
5401 drive spec.
5402
f6aea118
JB
54032013-06-03 Joel Brobecker <brobecker@adacore.com>
5404
5405 Revert (indirectly causes a SIGSEGV):
5406 * machoread.c (macho_symfile_read): Assign first cleanup to
5407 'back_to'.
5408
87967e27
YQ
54092013-06-03 Yao Qi <yao@codesourcery.com>
5410
5411 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5412 mi-parse.c. Make them static.
5413 (mi_all_values): Likewise.
5414 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5415 mi_parse_print_values. Make it external.
5416 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5417 Remove the declarations.
5418 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5419 * mi/mi-parse.h (mi_parse_print_values): Declare.
5420 * mi/mi-cmd-stack.c: Include mi-parse.h.
5421 (parse_print_values): Remove
5422 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5423 of parse_print_values.
5424 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5425
3ca73e0c
YQ
54262013-05-31 Pedro Alves <pedro@codesourcery.com>
5427 Yao Qi <yao@codesourcery.com>
5428
5429 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5430 (encode_actions): Move code to ...
5431 (all_tracepoint_actions_and_cleanup): ... here. New.
5432 (trace_dump_command): Likewise.
5433
4e993a19
TT
54342013-05-30 Tom Tromey <tromey@redhat.com>
5435
5436 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5437
e3b76b4f
TT
54382013-05-30 Tom Tromey <tromey@redhat.com>
5439
5440 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5441 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5442 'old_chain' argument. Add 'parser_result' argument.
5443 (gdb_xml_create_parser_and_cleanup): Remove old version.
5444 (gdb_xml_parse_quick): Update.
5445 (xml_process_xincludes): Update.
5446 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5447 declare.
5448
db26349c
TT
54492013-05-30 Tom Tromey <tromey@redhat.com>
5450
5451 * probe.c (collect_probes): Check arguments for NULL before
5452 calling compile_rx_or_error.
5453 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5454 Remove NULL return.
5455
77f9e713
TT
54562013-05-30 Tom Tromey <tromey@redhat.com>
5457
5458 * infrun.c (adjust_pc_after_break): Introduce an outer null
5459 cleanup.
5460
45475de7
TT
54612013-05-30 Tom Tromey <tromey@redhat.com>
5462
5463 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5464
ac5007fd
TT
54652013-05-30 Tom Tromey <tromey@redhat.com>
5466
5467 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5468 for 'old_chain'. Do not check 'head' before processing
5469 cleanups.
5470
cd82eddc
TT
54712013-05-30 Tom Tromey <tromey@redhat.com>
5472
5473 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5474 "cleanup_tuple".
5475
57cee33a
TT
54762013-05-30 Tom Tromey <tromey@redhat.com>
5477
5478 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5479 inner scope. Unconditionally call do_cleanups.
5480
795d915c
TT
54812013-05-30 Tom Tromey <tromey@redhat.com>
5482
5483 * source.c (find_and_open_source): Call do_cleanups.
5484
1fc3cf4a
TT
54852013-05-30 Tom Tromey <tromey@redhat.com>
5486
5487 * linux-thread-db.c (thread_db_load_search): Unconditionally
5488 call do_cleanups.
5489
e35ac9bf
TT
54902013-05-30 Tom Tromey <tromey@redhat.com>
5491
5492 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5493 for 'cleanup'; instead use a later one.
5494
f3300387
TT
54952013-05-30 Tom Tromey <tromey@redhat.com>
5496
5497 * python/py-breakpoint.c (bppy_get_commands): Use
5498 explicit, unconditional return.
5499 * python/py-frame.c (frapy_read_var): Likewise.
5500 * python/python.c (gdbpy_decode_line): Likewise.
5501
c27e16e3
TT
55022013-05-30 Tom Tromey <tromey@redhat.com>
5503
5504 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5505 do_cleanups on all return paths.
5506
5ae85e44
TT
55072013-05-30 Tom Tromey <tromey@redhat.com>
5508
5509 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5510
73b8d9da
TT
55112013-05-30 Tom Tromey <tromey@redhat.com>
5512
5513 * stabsread.c (read_struct_type): Call do_cleanups along
5514 all return paths.
5515
7d266584
MR
55162013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5517
5518 * mips-linux-tdep.c: Adjust formatting throughout.
5519
0f900f54
TT
55202013-05-30 Tom Tromey <tromey@redhat.com>
5521
5522 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5523 along all return paths.
5524
a991ac28
TT
55252013-05-30 Tom Tromey <tromey@redhat.com>
5526
5527 * symfile.c (find_separate_debug_file): Call do_cleanups
5528 along all return paths.
5529
1abaf042
TT
55302013-05-30 Tom Tromey <tromey@redhat.com>
5531
5532 * symtab.c (search_symbols): Introduce a null cleanup for
5533 'retval_chain'.
5534
edefe1da
TT
55352013-05-30 Tom Tromey <tromey@redhat.com>
5536
5537 * python/py-value.c (valpy_binop): Call do_cleanups before
5538 exiting loop.
5539
54f72dcc
TT
55402013-05-30 Tom Tromey <tromey@redhat.com>
5541
5542 * python/py-prettyprint.c (print_children): Remove extra
5543 do_cleanups call.
5544
af1c6971
TT
55452013-05-30 Tom Tromey <tromey@redhat.com>
5546
5547 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5548 all return paths.
5549
b862ce75
TT
55502013-05-30 Tom Tromey <tromey@redhat.com>
5551
5552 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5553 along all return paths.
5554
e12fefc8
TT
55552013-05-30 Tom Tromey <tromey@redhat.com>
5556
5557 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5558 call do_cleanups.
5559
4867f990
TT
55602013-05-30 Tom Tromey <tromey@redhat.com>
5561
5562 * varobj.c (c_value_of_root): Call do_cleanups along all
5563 return paths.
5564
4fd2d6af
TT
55652013-05-30 Tom Tromey <tromey@redhat.com>
5566
5567 * tracepoint.c (trace_dump_command): Unconditionally call
5568 do_cleanups.
5569
752eb8b4
TT
55702013-05-30 Tom Tromey <tromey@redhat.com>
5571
5572 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5573 do_cleanups earlier.
5574
e42d0aa5
TT
55752013-05-30 Tom Tromey <tromey@redhat.com>
5576
5577 * machoread.c (macho_symfile_read): Assign first cleanup to
5578 'back_to'.
5579
4bbc010a
TT
55802013-05-30 Tom Tromey <tromey@redhat.com>
5581
5582 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5583
b9635925
TT
55842013-05-30 Tom Tromey <tromey@redhat.com>
5585
5586 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5587
25f43500
TT
55882013-05-30 Tom Tromey <tromey@redhat.com>
5589
5590 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5591 call discard_cleanups.
5592 (inf_ptrace_attach): Likewise.
5593
d6a2e54a
TT
55942013-05-30 Tom Tromey <tromey@redhat.com>
5595
5596 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5597 return paths.
5598 (mips_initialize): Likewise.
5599 (common_open): Call do_cleanups.
5600
48be7c1b
TT
56012013-05-30 Tom Tromey <tromey@redhat.com>
5602
5603 * utils.c (internal_vproblem): Call do_cleanups.
5604
e61727ab
TT
56052013-05-30 Tom Tromey <tromey@redhat.com>
5606
5607 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5608
b81b921f
TT
56092013-05-30 Tom Tromey <tromey@redhat.com>
5610
5611 * cli/cli-script.c (setup_user_args): Don't return after error.
5612
fe48dfb1
TT
56132013-05-30 Tom Tromey <tromey@redhat.com>
5614
5615 * somread.c (som_symtab_read): Call do_cleanups.
5616
27833de7
TT
56172013-05-30 Tom Tromey <tromey@redhat.com>
5618
5619 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5620
5b3fca71
TT
56212013-05-30 Tom Tromey <tromey@redhat.com>
5622
5623 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5624 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5625 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5626 * source.c (show_substitute_path_command): Call do_cleanups.
5627 (unset_substitute_path_command, set_substitute_path_command):
5628 Likewise.
5629 * symfile.c (load_command): Call do_cleanups.
5630
af83e3f8
TT
56312013-05-30 Tom Tromey <tromey@redhat.com>
5632
5633 * contrib/cleanup_check.py: New file.
5634 * contrib/gcc-with-excheck: Add option parsing.
5635
564eac42
JB
56362013-05-30 Joel Brobecker <brobecker@adacore.com>
5637
5638 * windows-nat.c (windows_delete_thread): Add missing space
5639 in cast expression.
5640
47902076
HAQ
56412013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5642
5643 * inferior.c (top level): Include tilde.h.
5644 (add_inferior_command): Call tilde_expand on the value of 'exec'
5645 argument.
5646
23da373a
YQ
56472013-05-30 Pedro Alves <pedro@codesourcery.com>
5648 Yao Qi <yao@codesourcery.com>
5649
5650 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5651 Caller update.
5652 (encode_actions): Likewise.
5653 * remote.c (remote_download_tracepoint): Caller update.
5654 * tracepoint.h (encode_actions): Update declaration.
5655
a6e6f791
PA
56562013-05-30 Pedro Alves <palves@redhat.com>
5657
5658 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5659 pointer.
5660
36d25514
YQ
56612013-05-30 Yao Qi <yao@codesourcery.com>
5662
5663 * remote.c (remote_check_symbols): Remove unused parameter
5664 'objfile'.
5665 Declaration update.
5666 (remote_start_remote, remote_new_objfile): Caller update.
5667
62a813cc
YQ
56682013-05-30 Yao Qi <yao@codesourcery.com>
5669
5670 * mi/mi-cmds.c (mi_cmds): Define MI command
5671 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5672 DEF_MI_CMD_CLI.
5673
28439a30
PA
56742013-05-29 Pedro Alves <palves@redhat.com>
5675
5676 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5677 (remote_insert_watchpoint, remote_remove_watchpoint)
5678 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5679 (remote_verify_memory, compare_sections_command)
5680 (remote_search_memory): Set the general process/thread on the
5681 remote side.
5682
6ac1c082
PA
56832013-05-29 Pedro Alves <palves@redhat.com>
5684
5685 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5686 (_initialize_aarch64_tdep): Don't call
5687 initialize_tdesc_aarch64_without_fpu.
5688 * features/Makefile (WHICH): Remove reference to
5689 aarch64-without-fpu.
5690 * features/aarch64-without-fpu.c: Delete file.
5691 * regformats/aarch64-without-fpu.dat: Delete file.
5692
a73e3634
YQ
56932013-05-28 Yao Qi <yao@codesourcery.com>
5694
5695 * tracepoint.c (stringify_collection_list): Remove parameter
5696 'string'.
5697 (encode_actions): Caller update. Remove local variables.
5698
c0ea94eb
YQ
56992013-05-24 Yao Qi <yao@codesourcery.com>
5700
5701 * tracepoint.c (TFILE_PID): Remove.
5702 (tfile_open): Don't add thread and inferior.
5703 (tfile_close): Don't set 'inferior_ptid'. Don't call
5704 exit_inferior_silent.
5705 (tfile_thread_alive): Remove.
5706 (init_tfile_ops): Don't set field 'to_thread_alive' of
5707 tfile_ops.
5708
20d7f211
DE
57092013-05-23 Doug Evans <dje@google.com>
5710
5711 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5712
8658d16d
PA
57132013-05-23 Pedro Alves <palves@redhat.com>
5714
5715 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5716 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5717 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5718 Only define if HAVE_SOCKETS is defined.
5719 * configure.ac: Check for sys/socket.h.
5720 * config.in, configure: Regenerate.
5721
21aa081e
PA
57222013-05-23 Pedro Alves <palves@redhat.com>
5723
5724 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5725 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5726 printing uint32_t variables.
5727
c2d6af84
PA
57282013-05-23 Pedro Alves <palves@redhat.com>
5729
5730 * NEWS: Mention GDBserver range stepping support.
5731
c1e36e3e
PA
57322013-05-23 Yao Qi <yao@codesourcery.com>
5733 Pedro Alves <palves@redhat.com>
5734
5735 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5736 field.
5737 * infcmd.c (step_once, until_next_command): Enable range stepping.
5738 * infrun.c (displaced_step_prepare): Disable range stepping.
5739 (resume): Disable range stepping if stepping over a breakpoint or
5740 we have software watchpoints. If range stepping is enabled,
5741 assert the thread is in the stepping range.
5742 (clear_proceed_status_thread): Clear may_range_step.
5743 (handle_inferior_event): Disable range stepping as soon as we know
5744 the thread that hit the event. Re-enable it whenever we're going
5745 to step with a step range.
5746 * remote.c (struct vCont_action_support) <r>: New field.
5747 (use_range_stepping): New global.
5748 (remote_vcont_probe): Handle 'r' action.
5749 (append_resumption): Append an 'r' action if the thread may range
5750 step.
5751 (show_range_stepping): New function.
5752 (set_range_stepping): New function.
5753 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5754 'set range-stepping' and 'show range-stepping' commands.
5755 * NEWS: Mention range stepping, the new vCont;r action, and the
5756 new "set/show range-stepping" commands.
5757
d458bd84
PA
57582013-05-23 Yao Qi <yao@codesourcery.com>
5759 Pedro Alves <palves@redhat.com>
5760
5761 * remote.c (struct vCont_action_support): New struct.
5762 (struct remote_state) <support_vCont_t>: Remove field.
5763 <vCont_actions_support>: New field.
5764 (remote_vcont_probe, remote_stop_ns): Update.
5765
ce4c476a
PA
57662013-05-23 Yao Qi <yao@codesourcery.com>
5767 Pedro Alves <palves@redhat.com>
5768
5769 * gdbthread.h (pc_in_thread_step_range): New declaration.
5770 * thread.c (pc_in_thread_step_range): New function.
5771 * infrun.c (handle_inferior_event): Use it.
5772
ce70887a
JB
57732013-05-23 Joel Brobecker <brobecker@adacore.com>
5774
5775 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5776 of sprintf.
5777
55b87a52
KS
57782013-05-22 Keith Seitz <keiths@redhat.com>
5779
5780 * ada-lang.c (is_known_support_routine): Add explicit free of
5781 'func_name' from find_frame_funname.
5782 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5783 for func_name from find_frame_funname.
5784 * python/py-frame.c (frapy_name): Add explicit free of
5785 'name' from find_frame_funname.
5786 * stack.c (find_frame_funname): Add comment explaining that
5787 funcp must be freed by the caller.
5788 Return copy of symbol names instead of pointers.
5789 (print_frame): Add a cleanup for 'funname' from
5790 find_frame_funname.
5791 * stack.h (find_frame_funname): Remove "const" from
5792 'funname' parameter.
5793
5f2e6b00
TT
57942013-05-22 Tom Tromey <tromey@redhat.com>
5795
5796 PR c++/15401:
5797 * c-valprint.c (c_value_print): Use value_addr for
5798 references. Convert back to reference type with value_ref.
5799
d85c4847
EZ
58002013-05-22 Eli Zaretskii <eliz@gnu.org>
5801
5802 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5803 unloaded DLL, it will be done by handle_solib_event. See
5804 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5805 details.
5806
54eb231c
PM
58072013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5808
5809 * ui-out.c: Create typedef ui_out_level_p and define vector
5810 operations for that type.
5811 (struct ui_out): Use a vector instead of an array.
5812 (current_level): Return level from a vector.
5813 (push_level): Create a level in a vector.
5814 (pop_level): Delete a level in a vector.
5815 (ui_out_new): Create initial level zero level, and store in a
5816 vector.
5817 (ui_out_destroy): Add vector cleanup.
5818
ac90359c
PA
58192013-05-22 Pedro Alves <palves@redhat.com>
5820
5821 * python/python-internal.h (gdb_Py_DECREF): Tag with
5822 "ARI: editCase function".
5823
6dcc1893
PP
58242013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5825
5826 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5827
c8c735b9
PA
58282013-05-21 Pedro Alves <palves@redhat.com>
5829
5830 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5831 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5832 * python/py-utils.c (py_decref): Don't check for NULL before
5833 calling Py_DECREF.
5834
1915daeb
PA
58352013-05-21 Pedro Alves <palves@redhat.com>
5836
5837 * python/py-utils.c (py_decref): Remove extra braces.
5838 (gdb_pymodule_addobject): Remove extra braces.
5839 * python-internal.h (gdb_Py_DECREF): New static inline function.
5840 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5841
bd9673a4
PW
58422013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5843
5844 * breakpoints.c (detach_breakpoints): Do not
5845 detach breakpoints locations with loc_type bp_loc_other.
5846
ff6009d0
JK
58472013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5848
5849 Workaround Python 2.6.
5850 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5851 a block.
5852
3641da11
JK
58532013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5854
5855 Code cleanup: constification.
5856 * solib.c (solib_ops): Make return type and ops variable type const.
5857 (set_solib_ops): Make the new_ops parameter and ops variable const.
5858 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5859 (solib_add, solib_keep_data_in_core, clear_solib)
5860 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5861 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5862 const.
5863 * solib.h (set_solib_ops): Make the new_ops parameter const.
5864
776af39e
JB
58652013-05-21 Joel Brobecker <brobecker@adacore.com>
5866
5867 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5868 variable.
5869 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5870 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5871 (SYSTEM_GDBINIT_FILES): New variables.
5872 (all): Add stamp-system-gdbinit.
5873 (stamp-system-gdbinit): New rule.
5874 (clean-system-gdbinit, install-system-gdbinit)
5875 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5876 (install-only): Add dependency on install-system-gdbinit.
5877 (uninstall): Add dependency on uninstall-system-gdbinit.
5878 (clean): Add dependency on clean-system-gdbinit.
5879 * system-gdbinit/elinos.py: New file.
5880 * system-gdbinit/wrs-linux.py: New file.
5881
1509e573
JB
58822013-05-21 Joel Brobecker <brobecker@adacore.com>
5883
5884 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5885
c5867ab6
HZ
58862013-05-21 Hui Zhu <hui@codesourcery.com>
5887
5888 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5889 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5890 * mi/mi-cmd-break.c (ctype.h): New include.
5891 (gdb_obstack.h): New include.
5892 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5893 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5894 (mi_cmd_dprintf_insert): New.
5895 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5896 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5897
7d38e38f
TT
58982013-05-20 Tom Tromey <tromey@redhat.com>
5899
5900 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5901
97b77b39
TT
59022013-05-20 Tom Tromey <tromey@redhat.com>
5903
5904 * python/py-value.c (valpy_get_dynamic_type): Simplify
5905 dynamic_type assignment. Use Py_XINCREF.
5906
53e66479
TT
59072013-05-20 Tom Tromey <tromey@redhat.com>
5908
5909 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5910
dcf87832
TT
59112013-05-20 Tom Tromey <tromey@redhat.com>
5912
5913 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5914 (gdbpy_selected_frame): Move object-construction code
5915 out of TRY_CATCH.
5916
aa36459a
TT
59172013-05-20 Tom Tromey <tromey@redhat.com>
5918
5919 * python/py-arch.c (gdbpy_initialize_arch): Use
5920 gdb_pymodule_addobject.
5921 * python/py-block.c (gdbpy_initialize_blocks): Use
5922 gdb_pymodule_addobject.
5923 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5924 gdb_pymodule_addobject.
5925 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5926 gdb_pymodule_addobject.
5927 * python/py-event.c (gdbpy_initialize_event_generic): Use
5928 gdb_pymodule_addobject.
5929 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5930 gdb_pymodule_addobject.
5931 * python/py-evts.c (add_new_registry): Use
5932 gdb_pymodule_addobject.
5933 (gdbpy_initialize_py_events): Likewise.
5934 * python/py-finishbreakpoint.c
5935 (gdbpy_initialize_finishbreakpoints): Use
5936 gdb_pymodule_addobject.
5937 * python/py-frame.c (gdbpy_initialize_frames): Use
5938 gdb_pymodule_addobject.
5939 * python/py-function.c (gdbpy_initialize_functions): Use
5940 gdb_pymodule_addobject.
5941 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5942 gdb_pymodule_addobject.
5943 * python/py-infthread.c (gdbpy_initialize_thread): Use
5944 gdb_pymodule_addobject.
5945 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5946 gdb_pymodule_addobject.
5947 * python/py-param.c (gdbpy_initialize_parameters): Use
5948 gdb_pymodule_addobject.
5949 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5950 gdb_pymodule_addobject.
5951 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5952 gdb_pymodule_addobject.
5953 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5954 gdb_pymodule_addobject.
5955 * python/py-type.c (gdbpy_initialize_types): Use
5956 gdb_pymodule_addobject.
5957 * python/py-utils.c (gdb_pymodule_addobject): New function.
5958 * python/py-value.c (gdbpy_initialize_values): Use
5959 gdb_pymodule_addobject.
5960 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5961 * python/python.c (_initialize_python): Use
5962 gdb_pymodule_addobject.
5963
3d4a3c3e
TT
59642013-05-20 Tom Tromey <tromey@redhat.com>
5965
5966 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5967 * python/py-param.c (get_set_value, get_show_value): Use
5968 explicit decrefs.
5969 * python/python.c (start_type_printers, apply_type_printers):
5970 Use explicit decrefs.
5971
72ff8829
TT
59722013-05-20 Tom Tromey <tromey@redhat.com>
5973
5974 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5975 incref the module.
5976
02146ba5
TT
59772013-05-20 Tom Tromey <tromey@redhat.com>
5978
5979 * python/python.c (gdbpy_run_events): Decref the result
5980 of PyObject_CallObject.
5981
33ee792f
TT
59822013-05-20 Tom Tromey <tromey@redhat.com>
5983
5984 * python/py-symtab.c (set_sal): Use
5985 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5986 (symtab_and_line_to_sal_object): Update.
5987
fcb49fc8
TT
59882013-05-20 Tom Tromey <tromey@redhat.com>
5989
5990 * python/py-param.c (compute_enum_values): Decref 'item'.
5991
0646da15
TT
59922013-05-20 Tom Tromey <tromey@redhat.com>
5993
5994 * mi/mi-main.c: Include python-internal.h.
5995 (mi_cmd_list_features): Check gdb_python_initialized.
5996 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5997 (python_inferior_exit, python_new_objfile, add_thread_object)
5998 (delete_thread_object, py_free_inferior): Check
5999 gdb_python_initialized.
6000 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6001 gdb_python_initialized.
6002 * python/py-type.c (save_objfile_types): Check
6003 gdb_python_initialized.
6004 * python/python-internal.h (gdb_python_initialized): Declare.
6005 * python/python.c (ensure_python_env): Throw exception if
6006 Python not initialized.
6007 (before_prompt_hook, source_python_script_for_objfile)
6008 (start_type_printers, apply_type_printers,
6009 free_type_printers): Check gdb_python_initialized.
6010 * varobj.c (varobj_get_display_hint)
6011 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6012 (install_new_value_visualizer, varobj_set_visualizer)
6013 (value_get_print_value): Check gdb_python_initialized.
6014
999633ed
TT
60152013-05-20 Tom Tromey <tromey@redhat.com>
6016
6017 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6018 Check errors.
6019 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6020 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6021 Check errors.
6022 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6023 Check errors.
6024 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6025 Check errors.
6026 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6027 Check errors.
6028 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6029 init function to return 'int'.
6030 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6031 Return 'int'. Check errors.
6032 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6033 Check errors.
6034 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6035 Return 'int'. Check errors.
6036 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6037 Check errors.
6038 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6039 Check errors.
6040 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6041 Check errors.
6042 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6043 Check errors.
6044 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6045 Check errors.
6046 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6047 Check errors.
6048 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6049 Check errors.
6050 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6051 Check errors.
6052 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6053 Check errors.
6054 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6055 Check errors.
6056 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6057 Check errors.
6058 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6059 Check errors.
6060 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6061 Check errors.
6062 * python/python-internal.h (gdbpy_initialize_auto_load,
6063 gdbpy_initialize_values, gdbpy_initialize_frames,
6064 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6065 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6066 gdbpy_initialize_blocks, gdbpy_initialize_types,
6067 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6068 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6069 gdbpy_initialize_finishbreakpoints,
6070 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6071 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6072 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6073 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6074 gdbpy_initialize_signal_event,
6075 gdbpy_initialize_breakpoint_event,
6076 gdbpy_initialize_continue_event,
6077 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6078 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6079 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6080 * python/python.c (gdb_python_initialized): New global.
6081 (gdbpy_initialize_events): Return 'int'. Check errors.
6082 (_initialize_python): Check errors. Set
6083 gdb_python_initialized.
6084
18868860
TT
60852013-05-20 Tom Tromey <tromey@redhat.com>
6086
6087 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6088 Decref the reslut of PyObject_CallMethod.
6089
9f4ff0c2
TT
60902013-05-20 Tom Tromey <tromey@redhat.com>
6091
6092 * python/py-event.c (gdbpy_initialize_event_generic): Return
6093 early if PyType_Ready fails.
6094
0d3a2e8a
TT
60952013-05-20 Tom Tromey <tromey@redhat.com>
6096
6097 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6098 as 'default' in the switch.
6099
b86af38a
TT
61002013-05-20 Tom Tromey <tromey@redhat.com>
6101
6102 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6103 get_addr_from_python calls out of TRY_CATCH.
6104 (infpy_write_memory, infpy_search_memory): Likewise.
6105 * python/py-utils.c (get_addr_from_python): Return negative
6106 value on error. Use TRY_CATCH.
6107 * python/python-internal.h (get_addr_from_python): Use
6108 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6109
c127ec58
TT
61102013-05-20 Tom Tromey <tromey@redhat.com>
6111
6112 * python/py-event.c (evpy_emit_event): Decref the
6113 result of PyObject_CallFunctionObjArgs.
6114
ba327838
TT
61152013-05-20 Tom Tromey <tromey@redhat.com>
6116
6117 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6118 Correctly decref.
6119
d8191432
TT
61202013-05-20 Tom Tromey <tromey@redhat.com>
6121
6122 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6123
5d153bd1
TT
61242013-05-20 Tom Tromey <tromey@redhat.com>
6125
6126 * python/py-event.h (gdbpy_initialize_event_generic): Use
6127 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6128 * python/py-evts.c (add_new_registry): Use
6129 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6130 * python/python-internal.h
6131 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6132
56cc411c
TT
61332013-05-20 Tom Tromey <tromey@redhat.com>
6134
6135 * python/py-arch.c (archpy_disassemble): Update.
6136 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6137 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6138 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6139 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6140 macro.
6141 (GDB_PY_HANDLE_EXCEPTION): Update.
6142 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6143
8919e174
TT
61442013-05-20 Tom Tromey <tromey@redhat.com>
6145
6146 * python/python-internal.h (events_object_type): Remove.
6147
9b08f225
TT
61482013-05-20 Tom Tromey <tromey@redhat.com>
6149
f5aee5ee
AM
6150 * python/py-event.h (evpy_emit_event): Use
6151 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6152 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6153 New macro.
9b08f225 6154
f04010ff
TT
61552013-05-20 Tom Tromey <tromey@redhat.com>
6156
6157 * py-evtregistry.c (create_event_object): Decref
6158 eventregistry_object if PyList_New fails.
6159
3919fd96
TT
61602013-05-20 Tom Tromey <tromey@redhat.com>
6161
6162 * py-cmd.c (gdbpy_string_to_argv): Check result of
6163 PyList_New.
6164
0430e8cb
TT
61652013-05-20 Tom Tromey <tromey@redhat.com>
6166
6167 * python/python.c (before_prompt_hook): Add cleanup to
6168 decref 'hook'.
6169
764123e4
TT
61702013-05-20 Tom Tromey <tromey@redhat.com>
6171
6172 * python/py-function.c (fnpy_init): Decref result of
6173 PyObject_GetAttrString.
6174
634c58be
TT
61752013-05-20 Tom Tromey <tromey@redhat.com>
6176
6177 * python/py-threadevent.c (get_event_thread): Use
6178 CPYCHECKER_RETURNS_BORROWED_REF.
6179 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6180 New define.
6181 (pspace_to_pspace_object, objfile_to_objfile_object)
6182 (find_thread_object): Use it.
6183
62eec1a5
TT
61842013-05-20 Tom Tromey <tromey@redhat.com>
6185
6186 * python/py-arch.c (arch_object_type): Use
6187 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6188 * python/py-block.c (block_syms_iterator_object_type):
6189 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6190 * python/py-bpevent.c (breakpoint_event_object_type):
6191 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6192 * python/py-cmd.c (cmdpy_object_type): Use
6193 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6194 * python/py-continueevent.c (continue_event_object_type):
6195 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6196 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6197 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6198 * python/py-events.h (thread_event_object_type):
6199 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6200 * python/py-evtregistry.c (eventregistry_object_type): Use
6201 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6202 * python/py-exitedevent.c (exited_event_object_type):
6203 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6204 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6205 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6206 * python/py-function.c (fnpy_object_type): Use
6207 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6208 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6209 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6210 * python/py-infthread.c (thread_object_type): Use
6211 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6212 * python/py-lazy-string.c (lazy_string_object_type):
6213 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6214 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6215 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6216 * python/py-objfile.c (objfile_object_type): Use
6217 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6218 * python/py-param.c (parmpy_object_type):
6219 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6220 * python/py-progspace.c (pspace_object_type):
6221 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6222 * python/py-signalevent.c (signal_event_object_type):
6223 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6224 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6225 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6226 * python/py-type.c (type_object_type, field_object_type)
6227 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6228 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6229 define.
6230 (value_object_type, block_object_type, symbol_object_type)
6231 (event_object_type, stop_event_object_type, breakpoint_object_type)
6232 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6233
81ea8796
AT
62342013-05-20 Andreas Tobler <andreas@fgznet.ch>
6235
6236 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6237 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6238
a2ce51a0
DE
62392013-05-20 Doug Evans <dje@google.com>
6240
6241 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6242 For Fission.
6243 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6244 reading_dwo_directly.
6245 (struct signatured_type): New member dwo_unit.
6246 (struct die_reader_specs): New member comp_dir.
6247 (create_signatured_type_table_from_index): Use malloc for
6248 all_type_units instead of objfile's obstack.
6249 (create_all_type_units): Ditto.
6250 (fill_in_sig_entry_from_dwo_entry): New function.
6251 (add_type_unit): New function.
6252 (lookup_dwo_signatured_type): New function.
6253 (lookup_dwp_signatured_type): New function.
6254 (lookup_signatured_type): New arg cu. All callers updated.
6255 (init_cu_die_reader): Initialize comp_dir.
6256 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6257 Change assert of matching type signatures to call error on mismatch.
6258 (lookup_dwo_unit): Add assert.
6259 (init_tu_and_read_dwo_dies): New function.
6260 (init_cutu_and_read_dies): Call it.
6261 (build_type_unit_groups): Handle case of no type unit groups created.
6262 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6263 (lookup_dwo_cutu): Tweak complaint.
6264 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6265 (dwarf2_per_objfile_free): Free all_type_units.
6266
a25cd31f
JB
62672013-05-20 Joel Brobecker <brobecker@adacore.com>
6268
6269 * windows-nat.c (handle_unload_dll): Add missing empty line.
6270
4d804846
JB
62712013-05-20 Joel Brobecker <brobecker@adacore.com>
6272
6273 * dwarf2read.c (prototyped_function_p): New function.
6274 (read_subroutine_type): Use it.
6275
1c432e72
JB
62762013-05-20 Joel Brobecker <brobecker@adacore.com>
6277
6278 * rs6000-aix-tdep.c: De-indent some example code provided
6279 as a comment.
6280
4feebbdd
EBM
62812013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6282
6283 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6284 region is ok for a hardware watchpoint using the new ptrace interface
6285 on Power servers.
6286
7d0c9981
DE
62872013-05-17 Doug Evans <dje@google.com>
6288
6289 * NEWS: Mention new maintenance commands check-symtabs, and
6290 expand-symtabs, and renamed check-psymtabs.
6291 * psymtab.c (maintenance_check_psymtabs): Renamed from
6292 maintenance_check_symtabs. Only process already-expanded symbol
6293 tables.
6294 (_initialize_psymtab): Update.
6295 * symmisc.c (maintenance_check_symtabs): New function.
6296 (maintenance_expand_name_matcher): New function
6297 (maintenance_expand_file_matcher): New function
6298 (maintenance_expand_symtabs): New function.
6299 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6300 commands.
6301
6cbc7c3d
TT
63022013-05-17 Tom Tromey <tromey@redhat.com>
6303
6304 * python/py-inferior.c (infpy_read_memory): Don't call
6305 PyErr_SetString if PyObject_New fails.
6306 * python/py-frame.c (frame_info_to_frame_object): Don't call
6307 PyErr_SetString if PyObject_New fails.
6308
a48b32c0
L
63092013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6310
6311 * acinclude.m4: Add check for dlopen in libdl.
6312 * configure.ac: Ditto.
6313 * configure: Regenerate.
6314
3de661e6
PM
63152013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6316
6317 * frame.c (frame_stash): Convert to htab.
6318 (frame_addr_hash): New function.
6319 (frame_addr_hash_eq): New function.
6320 (frame_stash_create): Convert function to create
6321 a hash table.
6322 (frame_stash_add): Convert function to add an entry to a hash
6323 table.
6324 (frame_stash_find): Convert function to search the hash table.
6325 (frame_stash_invalidate): Convert function to empty the hash
6326 table.
6327 (get_frame_id): Only add to stash if a frame_id is created.
6328 (_initialize_frame): Call frame_stash_create.
6329
bb4168a9 63302013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6331
6332 * configure.ac: Ensure MIG is available when building for GNU Hurd
6333 hosts.
6334 * configure: Regenerate.
6335
d1be3247
JB
63362013-05-16 Joel Brobecker <brobecker@adacore.com>
6337
6338 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6339
b8fea896
JB
63402013-05-16 Joel Brobecker <brobecker@adacore.com>
6341
6342 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6343 all cleanups are done before returning from this function.
6344
af880d85
JB
63452013-05-15 Joel Brobecker <brobecker@adacore.com>
6346
6347 * utils.h: #include "exceptions.h".
6348 (enum errors): Remove partial declaration.
6349
356a5233
JB
63502013-05-15 Joel Brobecker <brobecker@adacore.com>
6351
6352 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6353 * gdbarch.h, gdbarch.c: Regenerate.
6354 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6355 handling.
6356
6357 * rs6000-aix-tdep.h: New file.
6358 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6359 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6360 "xml-utils.h".
6361 (struct field_info, struct ld_info_desc): New types.
6362 (ld_info32_desc, ld_info64_desc): New static constants.
6363 (struct ld_info): New type.
6364 (rs6000_aix_extract_ld_info): New function.
6365 (rs6000_aix_shared_library_to_xml): Likewise.
6366 (rs6000_aix_ld_info_to_xml): Likewise.
6367 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6368 (rs6000_aix_init_osabi): Add call to
6369 set_gdbarch_core_xfer_shared_libraries_aix.
6370 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6371 Remove "xml-utils.h" include.
6372 (LdInfo): Delete typedef.
6373 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6374 Delete macros.
6375 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6376 Adjust code accordingly.
6377 (rs6000_core_ldinfo): Delete, folded into
6378 rs6000_aix_core_xfer_shared_libraries_aix.
6379 (rs6000_xfer_shared_library): Delete.
6380 (rs6000_xfer_shared_libraries): Reimplement.
6381
742ce053
MM
63822013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6383
6384 * record.c (record_goto_cmdlist): New.
6385 (cmd_record_goto): Split into this ...
6386 (cmd_record_goto_begin): ... this
6387 (cmd_record_goto_end): ... and this.
6388 (_initialize_record): Change "record goto" to prefix command.
6389 Add commands for "record goto begin" and "record goto end".
6390 Add an alias for "record goto start" to "record goto begin".
6391
e93ba630
JK
63922013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6393
6394 * linespec.c (convert_linespec_to_sals): New comment for
6395 SOURCE_FILENAME assignment.
6396
5821aace
JK
63972013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6398
6399 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6400 internal_warning.
6401
a1b8c4cc
TT
64022013-05-14 Tom Tromey <tromey@redhat.com>
6403
6404 * eval.c (parse_and_eval_long): Make 'exp' const.
6405 * value.h (parse_and_eval_long): Update.
6406
23b3a2c3
TT
64072013-05-14 Tom Tromey <tromey@redhat.com>
6408
6409 * ui-file.c (gdb_fopen): Make arguments const.
6410 * ui-file.h (gdb_fopen): Make arguments const.
6411
ca623f82
TT
64122013-05-14 Tom Tromey <tromey@redhat.com>
6413
6414 * remote.c (remote_set_trace_notes): Make arguments const.
6415 * target.c (update_current_target): Update cast.
6416 * target.h (to_set_trace_notes): Make arguments const.
6417
503ebb2c
TT
64182013-05-14 Tom Tromey <tromey@redhat.com>
6419
6420 * go32-nat.c (go32_terminal_info): Make 'args' const.
6421 * inferior.h (child_terminal_info): Update.
6422 * inflow.c (child_terminal_info): Make 'args' const.
6423 * target.c (default_terminal_info): Make 'args' const.
6424 (debug_to_terminal_save_ours): Likewise.
6425 * target.h (struct target_ops) <to_terminal_info>: Make argument
6426 const.
6427
85e1311a
TT
64282013-05-13 Tom Tromey <tromey@redhat.com>
6429
6430 * gcore.c (create_gcore_bfd): Make 'filename' const.
6431 * gcore.h (create_gcore_bfd): Make 'filename' const.
6432 * record-full.c (record_full_save): Make 'recfilename' const.
6433 * target.c (target_save_record): Make 'filename' const.
6434 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6435 const.
6436 (target_save_record): Likewise.
6437
d62bfeaf
TT
64382013-05-13 Tom Tromey <tromey@redhat.com>
6439
f5aee5ee 6440 PR gdb/15338:
d62bfeaf
TT
6441 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6442 ranges section has been read.
6443
ac1ca910
TT
64442013-05-13 Tom Tromey <tromey@redhat.com>
6445
6446 PR exp/15364:
6447 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6448 STRUCTOP_PTR>: Return a not_lval value for
6449 EVAL_AVOID_SIDE_EFFECTS.
6450 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6451 for EVAL_AVOID_SIDE_EFFECTS.
6452
36d1c68c
JB
64532013-05-13 Joel Brobecker <brobecker@adacore.com>
6454
6455 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6456 floating point registers to register type before storing
6457 value.
6458 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6459 Likewise.
6460
21ff4686
TT
64612013-05-10 Joel Brobecker <brobecker@adacore.com>
6462 Tom Tromey <tromey@redhat.com>
6463
6464 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6465 New functions.
6466 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6467 Declare.
6468 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6469 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6470 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6471 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6472
d3685d60
TT
64732013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6474 Tom Tromey <tromey@redhat.com>
6475
6476 PR build/15414:
6477 * configure: Rebuild.
6478 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6479 with -Wno-format.
6480
eb9fe518
PA
64812013-05-10 Pedro Alves <palves@redhat.com>
6482
6483 * remote.c (_initialize_remote): Fix spelling of
6484 qXfer:traceframe-info:read packet in packet config command.
6485
9779ab84
PA
64862013-05-10 David Taylor <dtaylor@emc.com>
6487
6488 PR remote/15455
6489
6490 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6491 "QTro" at start of packet.
6492
060cfbef
JB
64932013-05-10 Joel Brobecker <brobecker@adacore.com>
6494
6495 * solib-aix.c (solib_aix_relocate_section_addresses):
6496 For the .bss section action, apply the same offset as
6497 the .data section.
6498
ab1c4e88
JB
64992013-05-10 Joel Brobecker <brobecker@adacore.com>
6500
6501 * solib-aix.c (solib_aix_relocate_section_addresses):
6502 Remove FIXME comment.
6503
c1357578
JB
65042013-05-10 Joel Brobecker <brobecker@adacore.com>
6505
6506 PR tdep/15420:
6507 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6508 New functions, directly copied from sparc-sol-thread.c.
6509 * sparc-sol-thread.c: Delete.
6510 * configure.ac: Remove code handling sparc-solaris-thread.c.
6511 * configure: Regenerate.
6512
1e611234
PM
65132013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6514
6515 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6516 filter logic.
6517 (backtrace_command): Add "no-filters" option parsing.
6518 (_initialize_stack): Alter help to reflect "no-filters" option.
6519 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6520 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6521 (py-frame.o): Add target
6522 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6523 filter files.
6524 * python/python.h: Add new frame filter constants, and flag enum.
6525 (apply_frame_filter): Add definition.
6526 * python/python.c (apply_frame_filter): New non-Python
6527 enabled function.
6528 * python/py-utils.c (py_xdecref): New function.
6529 (make_cleanup_py_xdecref): Ditto.
6530 * python/py-objfile.c: Declare frame_filters dictionary.
6531 (objfpy_dealloc): Add frame_filters dealloc.
6532 (objfpy_new): Initialize frame_filters attribute.
6533 (objfile_to_objfile_object): Ditto.
6534 (objfpy_get_frame_filters): New function.
6535 (objfpy_set_frame_filters): New function.
6536 * python/py-progspace.c: Declare frame_filters dictionary.
6537 (pspy_dealloc): Add frame_filters dealloc.
6538 (pspy_new): Initialize frame_filters attribute.
6539 (pspacee_to_pspace_object): Ditto.
6540 (pspy_get_frame_filters): New function.
6541 (pspy_set_frame_filters): New function.
6542 * python/py-framefilter.c: New file.
6543 * python/lib/gdb/command/frame_filters.py: New file.
6544 * python/lib/gdb/frames.py: New file.
6545 * python/lib/gdb/__init__.py: Initialize global frame_filters
6546 dictionary
6547 * python/lib/gdb/FrameDecorator.py: New file.
6548 * python/lib/gdb/FrameIterator.py: New file.
6549 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6550 * mi/mi-cmds.h: Declare.
6551 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6552 --no-frame-filter logic, and Python frame filter logic.
6553 (stack_enable_frame_filters): New function.
6554 (parse_no_frame_option): Ditto.
6555 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6556 filter logic.
6557 (mi_cmd_stack_list_locals): Ditto.
6558 (mi_cmd_stack_list_args): Ditto.
6559 (mi_cmd_stack_list_variables): Ditto.
6560 * NEWS: Add frame filter note.
6561
2cb9c859
DE
65622013-05-09 Doug Evans <dje@google.com>
6563
6bf667bb
DE
6564 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6565 All callers updated.
6566 (syms_from_objfile): Ditto. Make static.
6567 (symbol_file_add_with_addrs): Renamed from
6568 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6569 num_offsets. All callers updated.
6570 * symfile.h (syms_from_objfile): Delete.
6571
2cb9c859
DE
6572 * symfile.c (decrement_reading_symtab): Add assert.
6573 (increment_reading_symtab): Ditto.
6574
40aea477
JB
65752013-05-09 Joel Brobecker <brobecker@adacore.com>
6576
6577 * source.c (forward_search_command): Replace call to getc
6578 by call to fgetc.
6579 (reverse_search_command): Likewise.
6580
680d1742
DE
65812013-05-08 Doug Evans <dje@google.com>
6582
6583 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6584 matching test.
6585
17e760ae
JB
65862013-05-08 Joel Brobecker <brobecker@adacore.com>
6587
6588 * sol-thread.c (info_cb): Factorize the code a little.
6589
c0f5f490
JB
65902013-05-08 Joel Brobecker <brobecker@adacore.com>
6591
6592 * sol-thread.c (info_cb): Rework the output of the "maintenance
6593 info sol-threads" command a bit.
6594
5d74e061
JB
65952013-05-08 Joel Brobecker <brobecker@adacore.com>
6596
6597 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6598 Replace ti.ti_startfunc by ti.ti_pc.
6599
814a3ff7
JB
66002013-05-08 Joel Brobecker <brobecker@adacore.com>
6601
6602 * solib-aix.c (solib_aix_free_library_list): New function
6603 for the case where HAVE_LIBEXPAT is not defined.
6604
58ce7251
SDJ
66052013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6606
6607 PR breakpoints/15413:
6608 * breakpoint.c (condition_completer): Simplify the code to
6609 disconsider multiple locations of breakpoints when completing the
6610 "condition" command.
6611
be8b1ea6
PM
66122013-05-07 Pierre Muller <muller@sourceware.org>
6613
6614 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6615 instead of <sys/wait.h>.
6616
1e52bda6
PM
66172013-05-07 Pierre Muller <muller@sourceware.org>
6618
6619 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6620 trailing new line from warning message.
6621
27fd0c6b
PM
66222013-05-07 Pierre Muller <muller@sourceware.org>
6623
6624 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6625 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6626
e228ac87
JB
66272013-05-07 Joel Brobecker <brobecker@adacore.com>
6628
6629 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6630 error message (ARI fix).
6631
66322013-05-07 Joel Brobecker <brobecker@adacore.com>
6633
6634 * features/library-list-aix.dtd: Replace library-list by
6635 library-list-aix.
6636 * rs6000-nat.c: Replace library-list by library-list-aix
6637 throughout.
6638 * solib-aix.c: Likewise.
6639
66402013-05-07 Joel Brobecker <brobecker@adacore.com>
6641
6642 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6643 Renames TARGET_OBJECT_AIX_LIBRARIES.
6644 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6645 TARGET_OBJECT_LIBRARIES_AIX throughout.
6646 * solib-aix.c: Likwise.
6647
26a4dda9
YQ
66482013-05-07 Yao Qi <yao@codesourcery.com>
6649
6650 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6651 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6652
3582629f
YQ
66532013-05-07 Yao Qi <yao@codesourcery.com>
6654
6655 * solib-dsbt.c (enable_break): Declare.
6656 (dsbt_current_sos): Remove call to enable_break2.
6657 (enable_break2): Rename to enable_break. Set solib breakpoint
6658 on '_dl_debug_state'.
6659 (enable_break): Remove.
6660
aacbb8a5
LM
66612013-05-07 Luis Machado <lgustavo@codesourcery.com>
6662
6663 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6664 debug state prior to replicating existing hardware watchpoints or
6665 breakpoints.
6666
0c013353
JK
66672013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6668
6669 * gcore.c (gcore_create_callback): Ignore sections with
6670 separate_debug_objfile_backlink != NULL.
6671
a1217d97
SL
66722013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6673 Andrew Jenner <andrew@codesourcery.com>
6674 Chung-Lin Tang <cltang@codesourcery.com>
6675 Julian Brown <julian@codesourcery.com>
6676
6677 Based on the nios2-elf port from Altera Corporation.
6678
6679 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6680 nios2-linux-tdep.o.
6681 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6682 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6683 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6684 * nios2-tdep.h: New.
6685 * nios2-tdep.c: New.
6686 * nios2-linux-tdep.c: New.
6687 * features/Makefile (WHICH): Add nios2-linux.
6688 (nios2-linux-expedite): Set.
6689 * features/nios2-cpu.xml: New.
6690 * features/nios2.xml: New.
6691 * features/nios2-linux.xml: New.
6692 * features/nios2.c: New (autogenerated).
6693 * features/nios2-linux.c: New (autogenerated).
6694 * regformats/nios2-linux.dat: New (autogenerated).
6695 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6696 and commands.
6697
0892cb63
DE
66982013-05-06 Doug Evans <dje@google.com>
6699
3b7bacac
DE
6700 * symfile.c: Whitespace cleanup.
6701
0892cb63
DE
6702 * solist.h (struct target_so_ops): New member clear_so.
6703 * solib-svr4.c (svr4_clear_so): New function.
6704 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6705 * solib.c (clear_so): Renamed from free_so_symbols.
6706 All callers updated. Call target clear_so if it exists.
6707
40501e00
TT
67082013-05-06 Tom Tromey <tromey@redhat.com>
6709
6710 * ada-lang.c (ada_value_primitive_packed_val): Don't
6711 call value_incref.
6712 * value.c (set_value_parent): Incref the new parent and decref
6713 the old parent.
6714 (value_copy, value_primitive_field): Use set_value_parent.
6715
b6807d98
TT
67162013-05-06 Tom Tromey <tromey@redhat.com>
6717
6718 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6719 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6720 if needed.
6721 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6722 * dwarf2read.c (write_constant_as_bytes)
6723 (dwarf2_fetch_constant_bytes): New functions.
6724
3aef2284
TT
67252013-05-06 Tom Tromey <tromey@redhat.com>
6726
6727 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6728 parameters.
6729 (dwarf2_const_value_attr): Update.
6730
66f65e2b
TT
67312013-05-06 Tom Tromey <tromey@redhat.com>
6732
6733 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6734 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6735 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6736 Remove declaration.
6737
7919a973
TT
67382013-05-06 Tom Tromey <tromey@redhat.com>
6739
6740 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6741 objfile's obstack.
6742
a7bfba49
DE
67432013-05-06 Doug Evans <dje@google.com>
6744
3189cb12
DE
6745 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6746 * stabsread.h (process_one_symbol): Update declaration.
6747 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6748 * elfread.c (elf_symfile_relocate_probe): Ditto.
6749 * psymtab.c (relocate_psymtabs): Ditto.
6750 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6751 (objfile_relocate): Ditto.
6752 * objfiles.h (objfile_relocate): Update declaration.
6753 * symfile.c (relative_addr_info_to_section_offsets): Constify
6754 addrs parameter.
6755 (default_symfile_offsets): Ditto.
6756 (syms_from_objfile_1): Constify offsets parameter.
6757 (syms_from_objfile): Ditto.
6758 (symbol_file_add_with_addrs_or_offsets): Ditto.
6759 (symfile_map_offsets_to_segments): Constify data parameter.
6760 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6761 delta parameters of member relocate.
6762 (struct sym_probe_fns): Constify new_offsets,
6763 delta parameters of member sym_relocate_probe.
6764 (struct sym_fns): Constify section_addr_info parameter of member
6765 sym_offsets.
6766 (relative_addr_info_to_section_offsets): Update declaration.
6767 (default_symfile_offsets): Ditto.
6768 (syms_from_objfile): Ditto.
6769 (symfile_map_offsets_to_segments): Ditto.
6770
a7bfba49
DE
6771 * symfile.c (syms_from_objfile_1): Use correct section count when
6772 objfile->sf == NULL.
6773
5f8e0b8f
MF
67742013-05-06 Mike Frysinger <vapier@gentoo.org>
6775
6776 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6777
ea52d893
DE
67782013-05-06 Doug Evans <dje@google.com>
6779
6780 * psympriv.h (struct partial_symtab): Augment comment for member
6781 section_offsets.
6782
4d1eb6b4
JB
67832013-05-06 Joel Brobecker <brobecker@adacore.com>
6784
6785 Reimplement shared library support on ppc-aix...
6786 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6787 * features/library-list-aix.dtd: New file.
6788 * solib-aix.h, solib-aix.c: New file.
6789 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6790 (rs6000_find_toc_address_hook): Delete.
6791 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6792 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6793 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6794 "xml-utils.h".
6795 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6796 (vmap_symtab, fixup_breakpoints): Delete.
6797 (rs6000_xfer_shared_libraries): New function.
6798 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6799 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6800 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6801 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6802 (rs6000_xfer_shared_library): New function.
6803 (find_toc_address): Delete.
6804 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6805 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6806 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6807 before creating minimal symbol. Adjust function description
6808 accordingly.
6809 (scan_xcoff_symtab): Replace call to
6810 prim_record_minimal_symbol_and_info by call to
6811 record_minimal_symbol.
6812 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6813 around default_symfile_offsets.
6814 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6815 powerpc-aix targets.
6816 * config/rs6000/nm-rs6000.h: Delete.
6817 * config/powerpc/aix.mh (NAT_FILE): Delete.
6818 (NATDEPFILES): Remove xcoffsolib.o.
6819 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6820 (ALL_TARGET_OBS): Add solib-aix.o.
6821 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6822 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6823 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6824 * xcoffsolib.h, xcoffsolib.c: Delete.
6825
6826 * solib.c (reload_shared_libraries): Remove reference to
6827 SOLIB_CREATE_INFERIOR_HOOK.
6828 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6829 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6830 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6831 comment.
6832 * corelow.c (deprecated_core_resize_section_table): Delete.
6833 * exec.c: Remove include of xcoffsolib.h".
6834 (map_vmap, vmap): Delete.
6835 (exec_close_1): Remove references to vmap.
6836 (exec_file_attach): Remove vmap handling code, and reference
6837 to DEPRECATED_IBM6000_TARGET.
6838 (bfdsec_to_vmap): Delete.
6839 (exec_files_info): Remove block of code handling VMAP.
6840 * infcmd.c (post_create_inferior): Remove reference to
6841 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6842 * infrun.c (follow_exec): Remove reference to
6843 SOLIB_CREATE_INFERIOR_HOOK.
6844 * stack.c (print_frame): Remove reference to PC_SOLIB.
6845 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6846 (dsbt_relocate_main_executable): Likewise.
6847 * solib-frv.c (frv_current_sos): Likewise.
6848
0c4f667c
JB
68492013-05-06 Joel Brobecker <brobecker@adacore.com>
6850
6851 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6852 to target_write_memory and target_read_memory.
6853
726ce67c
JB
68542013-05-06 Joel Brobecker <brobecker@adacore.com>
6855
6856 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6857 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6858
c8c9911f
JB
68592013-05-06 Joel Brobecker <brobecker@adacore.com>
6860
6861 * darwin-nat.c: Replace all "%x" instances in format strings
6862 into "0x%x" throughout.
6863
fda184b6
JB
68642013-05-06 Joel Brobecker <brobecker@adacore.com>
6865
6866 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6867 gdb_assert by call to MACH_CHECK_ERROR.
6868 (darwin_attach_pid): Raise an error rather than a failed
6869 assertion when various system calls failed. Report a warning
6870 instead of raising a failed assertion when PREV_NOT is not NULL
6871 after call to mach_port_request_notification.
6872 (darwin_ptrace_me): Raise an error rather than a failed
6873 assertion when read returns nonzero.
6874
d1d69afb
JB
68752013-05-06 Joel Brobecker <brobecker@adacore.com>
6876
6877 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6878
dc90b24d
JK
68792013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6880
6881 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6882
faab9922
JK
68832013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6884
6885 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6886 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6887 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6888 a stale cleanup. Fix double free of NAME.
6889
e0ea48a0
EZ
68902013-05-04 Eli Zaretskii <eliz@gnu.org>
6891
6892 * windows-nat.c (windows_delete_thread): Accept an additional
6893 argument, the thread's exit code, and announce thread death when
6894 print_thread_events is non-zero and we are deleting a thread that
6895 is not the main thread.
6896 (get_windows_debug_event): Pass thread exit code to
6897 windows_delete_thread.
6898
83b2706a
KB
68992013-05-03 Kevin Buettner <kevinb@redhat.com>
6900
6901 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6902 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6903 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6904 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6905 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6906 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6907 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6908 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6909 (gdbarch_tdep): New struct.
6910 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6911 E_NUM_REGS.
6912 (v850e3v5_register_name): New function.
6913 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6914 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6915 code handling the struct return conventions for the RH850 ABI.
6916 Update all callers.
6917 (v850_eight_byte_align_p): New function.
6918 (v850_push_call_dummy): Push structs by value, not by reference
6919 for the RH850 ABI. Add support for eight byte alignment.
6920 (v850_dbtrap_breakpoint_from_pc): New function.
6921 (v850_gdbarch_init): Add ABI detection code. Register
6922 v850e3v5_register_name for the v850e3v5 architecture. Set the
6923 number of registers for v850e3v5. Register
6924 v850_dbtrap_breakpoint_from_pc as appropriate.
6925 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6926
d445b2f6
DE
69272013-05-03 Doug Evans <dje@google.com>
6928
6929 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6930 of bfd_count_sections.
6931 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6932 * symfile.c (default_symfile_offsets): Ditto.
6933 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6934 one entry, not bfd_count_sections entries.
6935
b3ce41ea
KB
69362013-05-03 Kevin Buettner <kevinb@redhat.com>
6937
6938 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6939 `save' and `restore' register groups. Don't include SPL
6940 or SPH in these groups.
6941 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6942 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6943 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6944 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6945 dwarf2_append_unwinders().
6946
96f7d3f1
PW
69472013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6948
6949 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6950 ignore SIGINT and SIGTRAP in case these internal signals are
6951 caught explicitely.
6952
b9dd1947
JB
69532013-05-01 Joel Brobecker <brobecker@adacore.com>
6954
6955 * darwin-nat.c (darwin_read_write_inferior): Change types
6956 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6957 of copy_count to "mach_msg_type_number_t".
6958 (darwin_read_dyld_info): Change type of parameter
6959 rdaddr to "gdb_byte *".
6960
4ca18a63
JB
69612013-05-01 Joel Brobecker <brobecker@adacore.com>
6962
6963 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6964 of &info->load_map from "char *" to "gdb_byte *".
6965
2b692d32
JB
69662013-05-01 Joel Brobecker <brobecker@adacore.com>
6967
6968 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6969 from "char *" to "gdb_byte *".
6970 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6971
a98c29a0
DE
69722013-04-30 Doug Evans <dje@google.com>
6973
6a506a2d
DE
6974 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6975 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6976 DWO stub. If DWO isn't found, just use stub.
6977 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6978
a98c29a0
DE
6979 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6980 calling init_cutu_and_read_dies.
6981
f92b06da
WT
69822013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6983
6984 * target-descriptions.c (maint_print_c_tdesc_cmd):
6985 Add case to parse structures as register types and
6986 bitfields.
6987
95eebdcc
WT
69882013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6989
6990 * MAINTAINERS (Write After Approval): Add myself to the list.
6991
019c1128
JB
69922013-04-30 Joel Brobecker <brobecker@adacore.com>
6993
6994 * sol-thread.c (rw_common): Change type of parameter "buf"
6995 to "gdb_byte *".
6996 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6997 rw_common to "gdb_byte *" instead of "char *".
6998
5812197c
JB
69992013-04-30 Joel Brobecker <brobecker@adacore.com>
7000
7001 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7002 of local variable msym to const struct bound_minimal_symbol.
7003 Adjust use accordingly.
7004 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7005
ecccb813
TS
70062013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7007
7008 * i386gnu-nat.c (CREG_OFFSET): New macro.
7009 (creg_offset): New array.
7010 (CREG_ADDR): Use creg_offset instead of reg_offset.
7011
f1d02dd4 70122013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7013
7014 * mep-tdep.c (mep_write_pc): Delete.
7015 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7016 Add call to set_gdbarch_pc_regnum.
7017
f1d02dd4 70182013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7019
7020 * common/filestuff.c: Replace #include <dirent.h> by
7021 #include "gdb_dirent.h".
7022
f1d02dd4 70232013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7024
7025 * common/filestuff.c: Replace #include <sys/stat.h> by
7026 #include "gdb_stat.h".
7027
b385a60d
PM
70282013-04-29 Pierre Muller <muller@sourceware.org>
7029
7030 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7031 editCase function rule.
7032 (get_DW_AT_signature_type): Likewise.
7033
d27b54ad
JB
70342013-04-29 Joel Brobecker <brobecker@adacore.com>
7035
7036 * m32r-tdep.c (m32r_write_pc): Delete.
7037 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7038 Add call to set_gdbarch_pc_regnum.
7039
47d21dc5
PM
70402013-04-29 Pierre Muller <muller@sourceware.org>
7041
7042 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7043
9056882e
JB
70442013-04-29 Joel Brobecker <brobecker@adacore.com>
7045
7046 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7047
7ee4732a
YQ
70482013-04-28 Yao Qi <yao@codesourcery.com>
7049
7050 * solib-dsbt.c (fetch_loadmap): Re-indent.
7051 (displacement_from_map, enable_break2): Likewise.
7052 (dsbt_relocate_section_addresses): Likewise.
7053
2260af53 70542013-04-26 Joel Brobecker <brobecker@adacore.com>
7055
7056 GDB 7.6 released.
7057
ff546935
TT
70582013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7059
7060 PR corefiles/14983:
7061 * dwarf2read.c (process_full_comp_unit): Always create a static
7062 block.
7063
40fb6c5e
HZ
70642013-04-25 Hui Zhu <hui@codesourcery.com>
7065
7066 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7067 to loc->cmd_bytecode.
7068
74e04d1c
DE
70692013-04-24 Doug Evans <dje@google.com>
7070
7071 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7072
3cf62c1d
KS
70732013-04-22 Keith Seitz <keiths@redhat.com>
7074
7075 * tracepoint.c (trace_save): Call the writer's start method.
7076
bf9e4d0c
MB
70772013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7078
7079 PR gdb/10462
7080 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7081 before argument.
7082
5d71132c
TT
70832013-04-23 Tom Tromey <tromey@redhat.com>
7084
7085 * common/filestuff.c: Check USE_WIN32API before including
7086 sys/socket.h.
7087 (HAVE_F_GETFD): New define.
7088 (mark_cloexec): Check HAVE_F_GETFD.
7089 (gdb_open_cloexec): Change 'mode' to unsigned long.
7090 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7091 (gdb_pipe_cloexec): Check HAVE_PIPE.
7092 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7093 long.
7094
a11cfd87
HZ
70952013-04-23 Hui Zhu <hui@codesourcery.com>
7096
7097 PR gdb/15293
a11cfd87
HZ
7098 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7099
2d9442cc
HZ
71002013-04-23 Hui Zhu <hui@codesourcery.com>
7101
7102 PR gdb/15165
2d9442cc
HZ
7103 * breakpoint.c (dprintf_print_recreate): New.
7104 (save_breakpoints): Let it not save dprintf commands.
7105 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7106
614c279d
TT
71072013-04-22 Tom Tromey <tromey@redhat.com>
7108
7109 PR gdb/7912:
7110 * Makefile.in (SFILES): Add filestuff.c
7111 (COMMON_OBS): Add filestuff.o.
7112 (filestuff.o): New target.
7113 * auto-load.c (auto_load_objfile_script_1): Use
7114 gdb_fopen_cloexec.
7115 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7116 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7117 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7118 * common/agent.c (gdb_connect_sync_socket): Use
7119 gdb_socket_cloexec.
7120 * common/filestuff.c: New file.
7121 * common/filestuff.h: New file.
7122 * common/linux-osdata.c (linux_common_core_of_thread)
7123 (command_from_pid, commandline_from_pid, print_source_lines)
7124 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7125 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7126 gdb_fopen_cloexec.
7127 * common/linux-procfs.c (linux_proc_get_int)
7128 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7129 * config.in, configure: Rebuild.
7130 * configure.ac: Don't check for sys/socket.h. Check for
7131 fdwalk, pipe2.
7132 * corelow.c (core_open): Use gdb_open_cloexec.
7133 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7134 * fork-child.c (fork_inferior): Call close_most_fds.
7135 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7136 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7137 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7138 Use gdb_fopen_cloexec.
7139 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7140 gdb_open_cloexec.
7141 (linux_async_pipe): Use gdb_pipe_cloexec.
7142 * remote-fileio.c (remote_fileio_func_open): Use
7143 gdb_open_cloexec.
7144 * remote.c (remote_file_put, remote_file_get): Use
7145 gdb_fopen_cloexec.
7146 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7147 close_most_fds.
7148 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7149 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7150 * solib.c (solib_find): Use gdb_open_cloexec.
7151 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7152 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7153 (tfile_open): Use gdb_open_cloexec.
7154 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7155 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7156 * xml-support.c (xml_fetch_content_from_file): Use
7157 gdb_fopen_cloexec.
7158 * main.c (captured_main): Call notice_open_fds.
7159
5fda2332
EBM
71602013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7161
7162 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7163 'char *' to 'gdb_byte *'.
7164 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7165 'gdb_byte'.
7166
eb6c553b
YQ
71672013-04-22 Yao Qi <yao@codesourcery.com>
7168
7169 * infrun.c: Fix typo in comment.
7170
9991b207
SDJ
71712013-04-22 Andrew Haley <aph@redhat.com>
7172
7173 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7174 instead of "long".
7175
8b4833e3
YQ
71762013-04-20 Yao Qi <yao@codesourcery.com>
7177
7178 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7179 'char *' to 'gdb_byte *'. Cast the return value of
7180 'bt_ctf_get_char_array' to 'gdb_byte *'.
7181
bd3f3b55
PA
71822013-04-19 Pedro Alves <palves@redhat.com>
7183
7184 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7185 -Wpointer-sign.
7186 * configure: Regenerate.
7187
c49e7f76
PA
71882013-04-19 Pedro Alves <palves@redhat.com>
7189
7190 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7191 'void *'.
7192
12ff8552
PA
71932013-04-19 Pedro Alves <palves@redhat.com>
7194
7195 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7196 Change type of 'myaddr' parameter to gdb_byte pointer.
7197 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7198 to 'long long' pointer instead of to 'unsigned long long'.
7199 (monitor_write_memory_block, monitor_read_memory_single)
7200 (monitor_read_memory): Change type of 'myaddr' parameter to
7201 gdb_byte pointer.
7202
9c37696b
PA
72032013-04-19 Pedro Alves <palves@redhat.com>
7204
7205 * record.c (validate_history_size): Make parameter 'setting'
7206 unsigned.
7207
a398505b
PA
72082013-04-19 Pedro Alves <palves@redhat.com>
7209
7210 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7211 to 'gdb_byte *'.
7212
9f8afa72
PA
72132013-04-19 Pedro Alves <palves@redhat.com>
7214
7215 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7216 local to int.
7217
c714b426
PA
72182013-04-19 Pedro Alves <palves@redhat.com>
7219
7220 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7221 * ada-tasks.c (read_fat_string_value): Likewise.
7222
507a579c
PA
72232013-04-19 Pedro Alves <palves@redhat.com>
7224
7225 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7226 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7227 'offset', and adjust.
7228
f9d83a0b
PA
72292013-04-19 Pedro Alves <palves@redhat.com>
7230
7231 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7232 (read_index_from_section): Add cast to 'char *'.
7233
745eb4fd
PA
72342013-04-19 Pedro Alves <palves@redhat.com>
7235
7236 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7237
db5be46f
PA
72382013-04-19 Pedro Alves <palves@redhat.com>
7239
7240 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7241
0f928d68
PA
72422013-04-19 Pedro Alves <palves@redhat.com>
7243
7244 * record-full.c (record_full_get_bookmark): Change local 'ret'
7245 type to char * and add cast to gdb_byte *.
7246 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7247 string.
7248 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7249
89f6d837
PA
72502013-04-19 Pedro Alves <palves@redhat.com>
7251
7252 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7253 * python/py-prettyprint.c (print_string_repr): Change type of
7254 'output' local to char *. Add cast to gdb_byte * in
7255 LA_PRINT_STRING call.
7256 (print_children): Change type of 'output' local to char *.
7257 * python/py-value.c (valpy_string): Add cast to const char * in
7258 PyUnicode_Decode call.
7259
ce6ec7d8
PA
72602013-04-19 Pedro Alves <palves@redhat.com>
7261
7262 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7263 and change its type to 'const char *'. Adjust.
7264 (mips_send_packet): Add cast to 'char *', and remove cast to
7265 'unsigned char *'.
7266 (mips_receive_packet): Remove cast to 'unsigned char *'.
7267 (mips_load_srec): Use bfd_byte.
7268 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7269 (pmon_checkset): Make 'value' parameter unsigned.
7270
fda0389f
PA
72712013-04-19 Pedro Alves <palves@redhat.com>
7272
7273 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7274
bc20a4af
PA
72752013-04-19 Pedro Alves <palves@redhat.com>
7276
7277 * remote.c (remote_write_bytes_aux, compare_sections_command)
7278 (remote_read_qxfer)
7279 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7280 (remote_hostio_readlink, remote_bfd_iovec_pread)
7281 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7282 binary buffer, and char when buffer is used as string.
7283 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7284 (trace_save, tfile_open, traceframe_walk_blocks)
7285 (tfile_fetch_registers): Likewise.
7286
c628b528
PA
72872013-04-19 Pedro Alves <palves@redhat.com>
7288
7289 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7290 buffer and size_t size. Adjust.
7291 * ser-base.h (ser_base_write): Adjust.
7292 * ser-go32.c (cnts): Change type to size_t.
7293 (dos_write): Change prototype -- take 'void *'
7294 buffer and size_t size. Adjust.
7295 (dos_info): Print elements of 'cnts' as unsigned long.
7296 * serial.c (serial_write): Likewise.
7297 * serial.h (serial_write): Adjust.
7298 (struct serial_ops) <write>: Change prototype -- take 'void *'
7299 buffer and size_t size. Adjust.
7300
51a5cd90
PA
73012013-04-19 Pedro Alves <palves@redhat.com>
7302
7303 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7304 gdb_byte *.
7305 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7306
a9933661
PA
73072013-04-19 Pedro Alves <palves@redhat.com>
7308
7309 * alpha-tdep.c (alpha_extract_return_value): Use
7310 regcache_cooked_read_unsigned to read 'v0'.
7311
19afdd07
PA
73122013-04-19 Pedro Alves <palves@redhat.com>
7313
7314 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7315 parameters 'at', 'as' and 'offset' to uint32_t.
7316
96b32e50
PA
73172013-04-19 Pedro Alves <palves@redhat.com>
7318
7319 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7320 'is64' to signed 'int'.
7321
eb1bd1fb
PA
73222013-04-19 Pedro Alves <palves@redhat.com>
7323
7324 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7325 parameter to int *.
7326
463920bf
PA
73272013-04-19 Pedro Alves <palves@redhat.com>
7328
7329 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7330 'insnbuf' buffer type to unsigned int[].
7331
70242eb1
PA
73322013-04-19 Pedro Alves <palves@redhat.com>
7333
7334 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7335
9d1dd0e2
PA
73362013-04-19 Pedro Alves <palves@redhat.com>
7337
7338 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7339 unsigned long *.
7340
44096aee
PA
73412013-04-19 Pedro Alves <palves@redhat.com>
7342
7343 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7344 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7345 UINT_MAX.
7346 * mips-tdep.c (heuristic_fence_post): Change type to int.
7347 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7348
e4286e57
PA
73492013-04-19 Pedro Alves <palves@redhat.com>
7350
7351 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7352 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7353 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7354
001f13d8
PA
73552013-04-19 Pedro Alves <palves@redhat.com>
7356
7357 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7358 it to get a string view of the byte buffer.
7359 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7360 type to gdb_byte *. Adjust.
7361 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7362 Change local to char *.
7363 * solib-darwin.c (find_program_interpreter): Change return type to
7364 char *. Adjust.
7365 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7366 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7367 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7368 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7369 * solib-svr4.c (find_program_interpreter): Change return type to
7370 char *. Adjust.
7371 (enable_break): Change local 'interp_name' to char *.
7372 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7373 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7374 (spu_pseudo_register_write_spu): Use char for string buffer.
7375 Adjust.
7376 (info_spu_event_command, info_spu_signal_command): Add casts to
7377 'char *'.
7378
948f8e3d
PA
73792013-04-19 Pedro Alves <palves@redhat.com>
7380
7381 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7382 gdb_byte[].
7383 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7384 * ada-lang.c (ada_value_assign): Use gdb_byte.
7385 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7386 (alphanbsd_sigtramp_offset): Use gdb_byte.
7387 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7388 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7389 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7390 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7391 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7392 * arm-tdep.c (arm_stub_unwind_sniffer)
7393 (arm_displaced_init_closure): Use gdb_byte.
7394 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7395 (arm_default_thumb_le_breakpoint)
7396 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7397 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7398 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7399 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7400 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7401 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7402 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7403 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7404 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7405 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7406 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7407 (cris_store_return_value, cris_extract_return_value): Use
7408 gdb_byte.
7409 (constraint): Change type of parameter to char * from signed
7410 char*. Use gdb_byte.
7411 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7412 of local buffer to gdb_byte *.
7413 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7414 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7415 (add_address_entry): Change type of local buffer to gdb_byte[].
7416 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7417 (frv_push_dummy_call): Use gdb_byte.
7418 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7419 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7420 (hppa_hpux_supply_save_state): Use gdb_byte.
7421 * hppa-tdep.c (hppa32_push_dummy_call)
7422 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7423 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7424 (slotN_contents, replace_slotN_contents): Change type of parameter
7425 to gdb_byte *.
7426 (fetch_instruction, ia64_pseudo_register_write)
7427 (ia64_register_to_value, ia64_value_to_register)
7428 (ia64_extract_return_value, ia64_store_return_value)
7429 (ia64_push_dummy_call): Use gdb_byte.
7430 * m32c-tdep.c (m32c_return_value): Remove cast.
7431 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7432 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7433 gdb_byte.
7434 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7435 * mn10300-tdep.c (mn10300_store_return_value)
7436 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7437 gdb_byte.
7438 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7439 (moxie_process_record): Remove casts.
7440 * ppc-ravenscar-thread.c (supply_register_at_address)
7441 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7442 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7443 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7444 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7445 * remote.c (compare_sections_command): Use gdb_byte.
7446 * score-tdep.c (score7_free_memblock): Change type of parameter to
7447 gdb_byte *.
7448 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7449 gdb_byte *. Use gdb_byte.
7450 (sh_push_dummy_call_fpu): Use gdb_byte.
7451 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7452 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7453 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7454 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7455 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7456 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7457 (sh64_store_return_value, sh64_register_convert_to_virtual):
7458 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7459 (sh64_pseudo_register_write): Use gdb_byte.
7460 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7461 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7462 buffer.
7463 (irix_current_sos): Use gdb_byte.
7464 * solib-som.c (som_current_sos): Use gdb_byte.
7465 * sparc-ravenscar-thread.c (supply_register_at_address)
7466 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7467 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7468 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7469 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7470 'gdb_byte *'.
7471 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7472 'gdb_byte *'.
7473 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7474 * xstormy16-tdep.c (xstormy16_extract_return_value)
7475 (xstormy16_store_return_value): Change parameter type to
7476 'gdb_byte *'. Adjust.
7477 (xstormy16_push_dummy_call): Use gdb_byte.
7478 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7479 (call0_analyze_prologue, execute_code): Use gdb_byte.
7480
433730c9
PA
74812013-04-19 Vladimir Kargov <kargov@gmail.com>
7482 Pedro Alves <palves@redhat.com>
7483
7484 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7485 value contents.
7486
ac9ec31b
DE
74872013-04-17 Doug Evans <dje@google.com>
7488
7489 * dwarf2read.c (struct signatured_type): New member type.
7490 (struct attribute): Replace member signatured_type with signature.
7491 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7492 (read_call_site_scope): Call follow_die_ref instead of
7493 follow_die_ref_or_sig.
7494 (read_structure_type): Rewrite handling of signatured types.
7495 (read_enumeration_type): Ditto.
7496 (read_attribute_value): Update.
7497 (build_error_marker_type): New function.
7498 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7499 Don't call error for bad types, just build an error marker type.
7500 (dump_die_shallow): Update.
7501 (follow_die_sig_1): Renamed from follow_die_sig.
7502 Don't call error for bad types, instead return NULL.
7503 (follow_die_sig): New function.
7504 (get_signatured_type, get_DW_AT_signature_type): New functions.
7505
e546e8bb
YZ
75062013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7507
7508 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7509 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7510 function.
e546e8bb 7511
ab116149
YQ
75122013-04-17 Yao Qi <yao@codesourcery.com>
7513
7514 * top.c (print_gdb_configuration): Print configure-time
7515 parameter on using libbabeltrace or not.
7516
488a42b8
PA
75172013-04-16 Pedro Alves <palves@redhat.com>
7518
7519 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7520
f5fb825b
PA
75212013-04-16 Pedro Alves <palves@redhat.com>
7522
85d494ea 7523 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7524 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7525
e1154999
PA
75262013-04-16 Pedro Alves <palves@redhat.com>
7527
7528 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7529 * common/glibc_thread_db.h: ... this new file ...
7530 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7531
e3b50a7f
PA
75322013-04-16 Will Newton <will.newton@gmail.com>
7533 Pedro Alves <palves@redhat.com>
7534
7535 PR build/11881
7536
7537 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7538 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7539 HAVE_THREAD_DB_H.
7540
1c2e4450
PA
75412013-04-16 Pedro Alves <palves@redhat.com>
7542 Eli Zaretskii <eliz@gnu.org>
7543
7544 * NEWS: Mention "set foo unlimited".
7545
4031ecc5
DE
75462013-04-15 Doug Evans <dje@google.com>
7547
19c3d4c9
DE
7548 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7549 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7550 (create_dwo_cu_reader): Renamed from
7551 create_dwo_debug_info_hash_table_reader.
7552 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7553 Remove support for multiple CUs in a DWO file.
7554 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7555
4031ecc5
DE
7556 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7557 instead of phex.
7558 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7559 (create_dwo_in_dwp): Ditto.
7560
b340913d
TT
75612013-04-15 Tom Tromey <tromey@redhat.com>
7562
7563 * NEWS: Move recent entries into "since 7.6" section.
7564
cc16e6c9
TT
75652013-04-15 Tom Tromey <tromey@redhat.com>
7566
7567 PR c++/13588:
7568 * NEWS: Update.
7569 * break-catch-throw.c (struct exception_catchpoint)
7570 <exception_rx, pattern>: New fields.
7571 (fetch_probe_arguments, dtor_exception_catchpoint)
7572 (check_status_exception_catchpoint)
7573 (print_one_detail_exception_catchpoint): New functions.
7574 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7575 Compile regular expression if needed.
7576 (extract_exception_regexp): New function.
7577 (catch_exception_command_1): Use extract_exception_regexp.
7578 (compute_exception): Use fetch_probe_arguments.
7579 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7580 and check_status fields.
7581 * cp-abi.c (cplus_typename_from_type_info): New function.
7582 * cp-abi.h (cplus_typename_from_type_info): Declare.
7583 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7584 * gdb_regex.h (compile_rx_or_error): Declare.
7585 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7586 comment.
7587 (init_gnuv3_ops): Set get_type_from_type_info field.
7588 * probe.c (compile_rx_or_error): Move...
7589 * utils.c (compile_rx_or_error): ... here.
7590
72f1fe8a
TT
75912013-04-15 Tom Tromey <tromey@redhat.com>
7592
7593 PR c++/15176:
7594 * NEWS: Update.
7595 * break-catch-throw.c (compute_exception): New function.
7596 (exception_funcs): New global.
7597 (_initialize_break_catch_throw): Create $_exception.
7598 * cp-abi.c (cplus_type_from_type_info): New function.
7599 * cp-abi.h (cplus_type_from_type_info): Declare.
7600 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7601 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7602 (gnuv3_get_type_from_type_info): New functions.
7603 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7604
fc4746a2
TT
76052013-04-15 Tom Tromey <tromey@redhat.com>
7606
7607 * break-catch-throw.c (struct exception_names): New.
7608 (exception_functions): Change type.
7609 (re_set_exception_catchpoint): Look for SDT probes.
7610
15a73f56
TT
76112013-04-15 Tom Tromey <tromey@redhat.com>
7612
7613 PR c++/10119:
7614 * break-catch-throw.c (exception_functions): New global.
7615 (gnu_v3_exception_catchpoint_ops): Move earlier.
7616 (struct exception_catchpoint): New.
7617 (classify_exception_breakpoint): Rewrite.
7618 (re_set_exception_catchpoint): New function.
7619 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7620 Allocate a struct exception_catchpoint.
7621 (catch_exception_command_1): Update.
7622 (initialize_throw_catchpoint_ops): Set 're_set' method.
7623
916703c0
TT
76242013-04-15 Tom Tromey <tromey@redhat.com>
7625
7626 * Makefile.in (SFILES): Add break-catch-throw.c
7627 (COMMON_OBS): Add break-catch-throw.o.
7628 * break-catch-throw.c: New file.
7629 * breakpoint.c: Move exception-catching code to new file.
7630 (ep_parse_optional_if_clause): No longer static.
7631 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7632
6e72ca20
TT
76332013-04-15 Tom Tromey <tromey@redhat.com>
7634
7635 PR c++/9065:
7636 * NEWS: Update.
7637 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7638 * c-exp.y (TYPEID): New token.
7639 (exp): Add new TYPEID productions.
7640 (ident_tokens): Add "typeid".
7641 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7642 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7643 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7644 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7645 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7646 case.
7647 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7648 (build_std_type_info_type, gnuv3_get_typeid_type)
7649 (gnuv3_get_typeid): New functions.
7650 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7651 new fields on ABI object.
7652 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7653 * std-operator.def (OP_TYPEID): New.
7654
715c6909
TT
76552013-04-15 Tom Tromey <tromey@redhat.com>
7656
7657 * elfread.c (elf_symtab_read): Install versioned symbol under
7658 unversioned name as well.
7659
8de20a37
TT
76602013-04-15 Tom Tromey <tromey@redhat.com>
7661
7662 PR c++/11990:
7663 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7664 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7665 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7666 (gdb_demangle): New function.
7667 * cp-support.h (gdb_demangle): Declare.
7668 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7669 (dwarf2_name): Use gdb_demangle.
7670 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7671 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7672 suffixes from name.
7673 (gnuv3_print_method_ptr): Use gdb_demangle.
7674 * jv-lang.c (java_demangle): Use gdb_demangle.
7675 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7676 * language.c (unk_lang_demangle): Use gdb_demangle.
7677 * symtab.c (symbol_find_demangled_name)
7678 (demangle_for_lookup): Use gdb_demangle.
7679
591f19e8
TT
76802013-04-15 Tom Tromey <tromey@redhat.com>
7681
7682 PR c++/12824:
7683 * NEWS: Update.
7684 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7685 New constant.
7686 (classify_exception_breakpoint): New function.
7687 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7688 (print_mention_exception_catchpoint)
7689 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7690 (catch_exception_command_1): Handle "rethrow" catchpoint.
7691 (catch_rethrow_command): New function.
7692 (_initialize_breakpoint): Add "catch rethrow" command.
7693
4d40cad2
PM
76942013-04-15 Pierre Muller <muller@sourceware.org>
7695
7696 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7697 set_gdbarch_write_pc as deprecated anymore.
7698
30bcb456
JB
76992013-04-15 Joel Brobecker <brobecker@adacore.com>
7700
7701 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7702 declarations.
7703
da9160e4
YQ
77042013-04-13 Yao Qi <yao@codesourcery.com>
7705
7706 * ctf.c (_initialize_ctf): Include "completer.h".
7707 Call add_target_with_completer instead of add_target.
7708
39ed5604
JK
77092013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7710
7711 Fix GDB regression related to PR binutils/14813.
7712 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7713 * minidebug.c (lzma_close): Add return value comment.
7714 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7715 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7716 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7717
77182013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7719
7720 * config.in: Regenerate.
7721
d521ce57
TT
77222013-04-12 Tom Tromey <tromey@redhat.com>
7723
7724 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7725 const.
7726 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7727 (struct die_reader_specs) <buffer>: Likewise.
7728 (die_reader_func_ftype): Make 'info_ptr' const.
7729 (struct line_header) <include_dirs, statement_program_start,
7730 statement_program_end>: Now const.
7731 (struct file_entry) <name>: Likewise.
7732 (struct partial_die_info) <sibling>: Likewise.
7733 (struct dwarf_block) <data>: Likewise.
7734 (dwarf2_read_section): Remove cast.
7735 (dwarf2_get_section_info): Make 'bufp' const.
7736 (read_index_from_section): Constify.
7737 (dw2_get_file_names_reader): Make 'info_ptr' const.
7738 (dw2_get_primary_filename_reader): Likewise.
7739 (read_comp_unit_head): Make 'info_ptr' and return type const.
7740 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7741 Likewise.
7742 (read_abbrev_offset): Constify.
7743 (dwarf2_create_include_psymtab): Make 'name' const.
7744 (create_debug_types_hash_table): Update.
7745 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7746 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7747 Constify.
7748 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7749 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7750 (read_comp_units_from_section): Constify.
7751 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7752 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7753 const.
7754 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7755 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7756 (create_dwp_hash_table, dwarf2_ranges_read)
7757 (dwarf2_record_block_ranges): Constify.
7758 (read_die_and_children, read_die_and_siblings_1)
7759 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7760 const.
7761 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7762 (abbrev_table_read_table): Constify.
7763 (load_partial_dies): Make 'info_ptr' const.
7764 (read_partial_die, read_attribute_value, read_attribute): Make
7765 'info_ptr' and return type const.
7766 (read_address, read_initial_length)
7767 (read_checked_initial_length_and_offset, read_offset)
7768 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7769 const.
7770 (read_direct_string): Make 'buf' and return type const.
7771 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7772 (read_indirect_string): Make return type const.
7773 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7774 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7775 'info_ptr' const.
7776 (read_str_index): Make return type const.
7777 (add_include_dir): Make 'include_dir' const.
7778 (add_file_name): Make 'name' const.
7779 (dwarf_decode_line_header): Constify.
7780 (psymtab_include_file_name): Make return type const.
7781 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7782 (dwarf2_start_subfile): Make 'filename' const.
7783 (dwarf2_const_value_attr): Make 'bytes' const.
7784 (read_signatured_type_reader): Make 'info_ptr' const.
7785 (decode_locdesc): Constify.
7786 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7787 const.
7788 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7789 'mac_end', and return type const.
7790 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7791 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7792 type const.
7793 (per_cu_header_read_in): Constify.
7794 * symfile.h (dwarf2_get_section_info): Update.
7795
d47a1bc1
TT
77962013-04-12 Tom Tromey <tromey@redhat.com>
7797
7798 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7799
6eaaf48b
EZ
78002013-04-12 Eli Zaretskii <eliz@gnu.org>
7801
fc4c25bf 7802 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7803 * top.c (print_gdb_configuration): New function, displays the
7804 details about GDB configure-time parameters.
7805 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7806 * cli/cli-cmds.c (show_configuration): New function.
7807 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7808 * main.c (captured_main) <print_configuration>: New static var.
7809 <long_options>: Use it.
7810 If --configuration was given, call print_gdb_configuration.
7811
b292c783
JK
78122013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7813 Pedro Alves <palves@redhat.com>
7814
7815 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7816 (generated_files): Add gcore.
7817 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7818 HAVE_NATIVE_GCORE_HOST.
7819 (gcore): New.
7820 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7821 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7822 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7823 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7824 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7825 Add HAVE_NATIVE_GCORE_HOST.
7826 * configure: Regenerate.
7827 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7828 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7829 AC_CONFIG_FILES for gcore.
7830 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7831 gdb_have_gcore.
7832 * gdb_gcore.sh: Rename to ...
7833 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7834 and GCORE_TRANSFORM_NAME substitutions.
7835
c96b3c4f
JK
7836 Fix parsing tabs in ${gdb_target_obs}.
7837 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7838
d6cb50a2
JK
78392013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7840
7841 * remote.c (unpush_and_perror): Add output message final dot.
7842
cf2cb5ec
YQ
78432013-04-11 Yao Qi <yao@codesourcery.com>
7844
7845 * tracepoint.c (tfile_interp_line): Fit parameters line and
7846 utpp in one line.
7847
07293be4
JB
78482013-04-10 Joel Brobecker <brobecker@adacore.com>
7849
7850 * solib.c (solib_map_sections): Remove code overwriting
7851 SO->SO_NAME with the bfd's filename.
7852
f81d1120
PA
78532013-04-10 Pedro Alves <palves@redhat.com>
7854
7855 * cli/cli-decode.c (integer_unlimited_completer): New function.
7856 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7857 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7858 completer.
7859 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7860 (is_unlimited_literal): New function.
7861 (do_set_command): Handle literal "unlimited" arguments.
7862 * frame.c (_initialize_frame) <set backtrace limit>: Document
7863 "unlimited".
7864 * printcmd.c (_initialize_printcmd) <set print
7865 max-symbolic-offset>: Add help text.
7866 * record-full.c (_initialize_record_full) <set record full
7867 insn-number-max>: Likewise.
7868 * record.c (_initialize_record) <set record
7869 instruction-history-size, set record function-call-history-size>:
7870 Add help text.
7871 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7872 help text.
7873 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7874 Likewise.
7875 * source.c (_initialize_source) <set listsize>: Add help text.
7876 * utils.c (initialize_utils) <set height, set width>: Likewise.
7877 <set pagination>: Mention "set height unlimited".
7878 * valprint.c (_initialize_valprint) <set print elements, set print
7879 repeats>: Document "unlimited".
7880
2f9d54cf
PA
78812013-04-10 Pedro Alves <palves@redhat.com>
7882
7883 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7884 instead of disconnect_tracing.
7885 * infcmd.c (detach_command, disconnect_command): Call
7886 query_if_trace_running. Adjust.
7887 * top.c: Include "tracepoint.h".
7888 (quit_target): Delete. Contents moved ...
7889 (quit_force): ... here. Wrap each stage of teardown in
7890 TRY_CATCH. Call disconnect_tracing before detaching.
7891
393fd4c3
YQ
78922013-04-10 Hui Zhu <hui@codesourcery.com>
7893 Yao Qi <yao@codesourcery.com>
7894
7895 * configure.ac: Check libbabeltrace is installed.
7896 * config.in: Regenerate.
7897 * configure: Regenerate.
7898 * Makefile.in (LIBBABELTRACE): New.
7899 (CLIBS): Add LIBBABELTRACE.
7900 * ctf.c: Include "exec.h".
7901 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7902 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7903 (ctf_save_metadata_header): Define new type aliases in
7904 metadata.
7905 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7906 in metadata. Start a new faked packet for trace status.
7907 (ctf_write_status): Write trace status to CTF.
7908 (ctf_write_uploaded_tsv): Write TSV to CTF.
7909 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7910 (ctf_write_definition_end): End the faked packet.
7911
7912 (ctx, ctf_iter, trace_dirname): New.
7913 (start_pos): New variable.
7914 (ctf_destroy, ctf_open_dir, ctf_open): New.
7915 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7916 macros.
7917 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7918 (ctf_fetch_registers, ctf_xfer_partial): New.
7919 (ctf_get_trace_state_variable_value): New.
7920 (ctf_get_tpnum_from_frame_event): New.
7921 (ctf_get_traceframe_address): New.
7922 (ctf_trace_find, ctf_has_stack): New.
7923 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7924 (ctf_get_trace_status, ctf_read_status): New.
7925 (_initialize_ctf): New.
7926 * tracepoint.c (get_tracepoint_number): New
7927 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7928 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7929 * tracepoint.h: ... here.
7930 (get_tracepoint_number): Declare it.
7931 (get_uploaded_tsv): Declare it.
7932
7933 * NEWS: Mention new configure option.
7934
5c2b4418
HZ
79352013-04-10 Pedro Alves <palves@redhat.com>
7936 Hui Zhu <hui@codesourcery.com>
7937
7938 * breakpoint.c (dprintf_re_set): New.
7939 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7940 to dprintf_re_set.
7941
a5c66735
JB
79422013-04-09 Joel Brobecker <brobecker@adacore.com>
7943
7944 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7945 Remove solib-svr4.o from the list.
7946
9e77999c
JB
79472013-04-09 Joel Brobecker <brobecker@adacore.com>
7948
7949 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7950 Use gdb_assert_not_reached instead of invalid boolean expression.
7951
1927e618
PA
79522013-04-09 Pedro Alves <palves@redhat.com>
7953
7954 * remote.c (unpush_and_perror): New function.
7955 (readchar, remote_serial_write): Use it.
7956
10782d74
MM
79572013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7958
7959 * NEWS: Mention new btrace RSP packets.
7960
4c8429ef
TT
79612013-04-08 Tom Tromey <tromey@redhat.com>
7962
7963 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7964 long.
7965
8625fc1b
TT
79662013-04-08 Tom Tromey <tromey@redhat.com>
7967
7968 * maint.c (print_bfd_section_info): Print the section index.
7969 * symmisc.c (dump_msymbols): Print the section index.
7970
e27d198c
TT
79712013-04-08 Tom Tromey <tromey@redhat.com>
7972
7973 PR symtab/8424:
7974 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7975 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7976 * breakpoint.c (resolve_sal_pc): Update.
7977 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7978 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7979 (minsym_lookup_iterator_cb): Use it.
7980 (default_read_var_value): Update.
7981 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7982 Update.
7983 * infcmd.c (jump_command): Update.
7984 * linespec.c (minsym_found): Update.
7985 * maint.c (maintenance_translate_address): Update.
7986 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7987 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7988 * parse.c (write_exp_msymbol): Update.
7989 * printcmd.c (address_info): Update.
7990 * psymtab.c (find_pc_sect_psymbol): Update.
7991 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7992 SYMBOL_OBJ_SECTION.
7993 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7994 Don't initialize SYMBOL_OBJ_SECTION.
7995 * spu-tdep.c (spu_catch_start): Update.
7996 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7997 * symmisc.c (dump_msymbols, print_symbol): Update.
7998 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7999 how fallback section is computed.
8000 (fixup_symbol_section): Update.
8001 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8002 Update.
8003 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8004 Initialize SYMBOL_SECTION.
8005 * symtab.h (struct general_symbol_info) <section>: Update comment.
8006 <obj_section>: Remove.
8007 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8008 (SYMBOL_OBJFILE): New macro.
8009
e6dc44a8
TT
80102013-04-08 Tom Tromey <tromey@redhat.com>
8011
8012 * coffread.c (record_minimal_symbol): Update.
8013 * dbxread.c (record_minimal_symbol): Update.
8014 * elfread.c (record_minimal_symbol): Update.
8015 * machoread.c (macho_symtab_add_minsym): Update.
8016 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8017 Update.
8018 * minsyms.c (prim_record_minimal_symbol): Update.
8019 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8020 argument.
8021 (prim_record_minimal_symbol_and_info): Likewise.
8022 * minsyms.h (prim_record_minimal_symbol_full)
8023 (prim_record_minimal_symbol_and_info): Update.
8024 * symtab.c (allocate_symbol, initialize_symbol)
8025 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8026 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8027 Update.
8028
36192a8d
TT
80292013-04-08 Tom Tromey <tromey@redhat.com>
8030
8031 PR symtab/8423:
8032 * solib-som.c (som_solib_section_offsets): Use BFD section
8033 indices. Set offsets for all sections.
8034 * somread.c (som_symtab_read): Compute BFD section for
8035 symbol. Use prim_record_minimal_symbol_and_info.
8036 (som_symfile_read): Fix comment.
8037 (struct find_section_offset_arg): New.
8038 (find_section_offset, set_section_index): New functions.
8039 (som_symfile_offsets): Use set_section_index to compute
8040 section indices.
8041
65cf3563
TT
80422013-04-08 Tom Tromey <tromey@redhat.com>
8043
8044 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8045 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8046 gdb_bfd_section_index.
8047 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8048 New functions.
8049 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8050 Declare.
8051 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8052 Update.
8053 * objfiles.c (add_to_objfile_sections_full): New function.
8054 (add_to_objfile_sections): Use it.
8055 (build_section_table): Rewrite.
8056 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8057 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8058 (struct objfile) <sections>: Update comment.
8059 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8060 is NULL.
8061 (ALL_OBJSECTIONS): Use it.
8062 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8063 * solib-frv.c (frv_relocate_main_executable): Update.
8064 * solib-target.c (solib_target_relocate_section_addresses):
8065 Use gdb_bfd_section_index.
8066 * symfile.c (build_section_addr_info_from_section_table):
8067 Use gdb_bfd_section_index.
8068 (build_section_addr_info_from_bfd, place_section): Likewise.
8069 * symtab.c (fixup_section): Update.
8070 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8071
7cbd4a93
TT
80722013-04-08 Tom Tromey <tromey@redhat.com>
8073
8074 * minsyms.h (struct bound_minimal_symbol): New.
8075 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8076 Remove objfile argument.
8077 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8078 Return bound_minimal_symbol.
8079 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8080 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8081 Return bound_minimal_symbol.
8082 (in_gnu_ifunc_stub): Update.
8083 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8084 Remove 'objfile_p' argument.
8085 (lookup_solib_trampoline_symbol_by_pc): Update.
8086 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8087 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8088 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8089 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8090 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8091 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8092 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8093 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8094 stack.c, symtab.c, tui/tui-disasm.c: Update.
8095
f85f34ed
TT
80962013-04-08 Tom Tromey <tromey@redhat.com>
8097
8098 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8099 Use symbol's obstack, not an objfile.
8100 * coffread.c (process_coff_symbol): Update.
8101 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8102 * jv-lang.c (add_class_symbol): Update.
8103 * mdebugread.c (new_symbol): Update.
8104 * minsyms.c (prim_record_minimal_symbol_full)
8105 (terminate_minimal_symbol_table): Update.
8106 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8107 * stabsread.c (define_symbol, read_enum_type): Update.
8108 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8109 Handle Ada specially.
8110 (symbol_set_language): Add 'obstack' argument.
8111 (symbol_set_names): Update.
8112 (symbol_natural_name, symbol_demangled_name): Always use
8113 ada_decode_symbol.
8114 * symtab.h (struct general_symbol_info)
8115 <language_specific::obstack>: New field.
8116 <ada_mangled>: New field.
8117 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8118 (symbol_set_language): Update.
8119
ccde22c0
TT
81202013-04-08 Tom Tromey <tromey@redhat.com>
8121
8122 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8123 Take an obstack, not an objfile.
8124 (symbol_set_names): Update.
8125 * symtab.h (symbol_set_demangled_name): Update.
8126
e623cf5d
TT
81272013-04-08 Tom Tromey <tromey@redhat.com>
8128
8129 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8130 allocate_symbol.
8131 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8132 (read_func_scope): Call allocate_template_symbol.
8133 (new_symbol_full): Call allocate_symbol.
8134 * jit.c (finalize_symtab): Call allocate_symbol.
8135 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8136 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8137 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8138 (common_block_end): Call allocate_symbol.
8139 * symtab.c (allocate_symbol, initialize_symbol)
8140 (allocate_template_symbol): New functions.
8141 * symtab.c (allocate_symbol, initialize_symbol)
8142 (allocate_template_symbol): Declare.
8143 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8144
f6de8ec2
PA
81452013-04-08 Pedro Alves <palves@redhat.com>
8146 Keith Seitz <keiths@redhat.com>
8147
8148 * breakpoint.c (create_breakpoint): Rename
8149 "parse_condition_and_thread" parameter to "parse_arg". Update
8150 describing comment. If !PARSE_ARG, then error out if ARG is not
8151 the empty string after extracting the location.
8152 * breakpoint.h (create_breakpoint): Rename
8153 "parse_condition_and_thread" parameter to "parse_arg".
8154
f65ce5fb
AR
81552013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8156
8157 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8158
cc5925ad
YQ
81592013-04-07 Yao Qi <yao@codesourcery.com>
8160
8161 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8162 and 'addr2' to CORE_ADDR.
8163 * target.c (update_current_target): Update.
8164 * target.h (struct target_ops) <to_trace_find>: Change parameter
8165 type to CORE_ADDR.
8166 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8167 'addr2' to CORE_ADDR.
8168 (tfile_trace_find): Likewise.
8169 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8170 Change local variable 'addr' to type CORE_ADDR.
8171 * tracepoint.h (tfind_1): Update declaration.
8172
d9ac0664
EZ
81732013-04-06 Eli Zaretskii <eliz@gnu.org>
8174
8175 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8176 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8177 Include main.h.
8178
8179 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8180 here...
8181 * main.h (windows_get_absolute_argv0): ...to here.
8182
02142a6c
DE
81832013-04-05 Doug Evans <dje@google.com>
8184
8185 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8186 (read_cutu_die_from_dwo): Add comments.
8187 (read_structure_type): Update comment.
8188 (read_enumeration_type, read_namespace_type): Update comment.
8189 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8190
43662968
JK
81912013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8192
8193 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8194 * Makefile.in (gdb.z): Remove.
8195 (install-only): Remove $(man1dir) and gdb.1 installation.
8196 * gdb.1: Remove.
8197
9ead1b84
JK
81982013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8199
8200 Fix compatibility with Linux kernel 3.8.3.
8201 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8202 to more inner block. Remove parsing of NUMBER from outer block.
8203 Parse NUMBER only if KEYWORD has been identified.
8204
d1794952
JK
82052013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8206
8207 Fix variable name shadowing.
8208 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8209 filename to mapsfilename and update its uses.
8210
9025569e
EZ
82112013-04-05 Eli Zaretskii <eliz@gnu.org>
8212
8213 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8214 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8215 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8216 details of the problem.
8217
c9a6ce02
PA
82182013-04-04 Pedro Alves <palves@redhat.com>
8219 Hui Zhu <hui@codesourcery.com>
8220
8221 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8222 tracepoint, reset its STEP_COUNT and call validate_actionline.
8223
5ff888ce
DE
82242013-04-03 Doug Evans <dje@google.com>
8225
bf6af496
DE
8226 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8227 read_die_and_siblings.
8228 (read_die_and_siblings): New function.
8229 (read_cutu_die_from_dwo): Dump die if requested.
8230 (read_die_and_children): Call read_full_die_1 and
8231 read_die_and_siblings_1.
8232 (read_full_die): Dump die if requested.
8233
8234 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8235
0ac5b59e
DE
8236 * dwarf2read.c (struct dwo_file): New member comp_dir.
8237 Rename member name to dwo_name. All uses updated.
8238 (hash_dwo_file): Include comp_dir in computation.
8239 (eq_dwo_file): Ditto.
8240 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8241 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8242
5ff888ce
DE
8243 * psymtab.c (read_psymtabs_with_fullname): Don't call
8244 psymtab_to_fullname if the basenames are different.
8245
ec83d211
JK
82462013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8247
8248 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8249 New entry about "fullname" presence.
8250
4f4352f7
PA
82512013-04-03 Pedro Alves <palves@redhat.com>
8252
8253 * NEWS: Mention x86_64/Cygwin as new native configuration.
8254
3d1d5ea3
DE
82552013-04-02 Doug Evans <dje@google.com>
8256
8257 * dwarf2read.c (read_structure_type): Fix typo in comment.
8258
be9a8770
PA
82592013-04-02 Pedro Alves <palves@redhat.com>
8260
8261 * NEWS: Mention "set/show debug aarch64", "set/show debug
8262 coff-pe-read" and "set/show debug mach-o".
8263
a46c1e42
PA
82642013-04-02 Pedro Alves <palves@redhat.com>
8265
8266 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8267
3ad18b19
EZ
82682013-04-02 Eli Zaretskii <eliz@gnu.org>
8269
8270 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8271 gdb_string.h is now in common/.
8272
e9f1758d
PA
82732013-04-02 Pedro Alves <palves@redhat.com>
8274
8275 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8276 under "New options".
8277
049dc89b
JK
82782013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8279
8280 Revert this patch:
8281 PR gdb/15275
8282 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8283
c33e31fd
PA
82842013-04-02 Pedro Alves <palves@redhat.com>
8285
8286 PR gdb/15275
8287
8288 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8289 (remote_serial_write): New function.
8290 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8291
ea5f3910
JW
82922013-04-01 Jiong Wang <jiwang@tilera.com>
8293
8294 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8295 "New targets" sections.
ea5f3910 8296
5c6fa7ab
DE
82972013-04-01 Doug Evans <dje@google.com>
8298
c0f78cd4
DE
8299 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8300 (process_enumeration_scope): Simplify.
8301
0186c6a7
DE
8302 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8303 type_unit_group ...
8304 (struct signatured_type): ... to here.
8305 (sig_type_ptr): New typedef.
8306 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8307 out of union 't'. All uses updated.
8308 (dw2_get_file_names_reader): Assert not called for a type unit.
8309 (dw2_get_file_names): Assert not called for a type unit or type
8310 unit group.
8311 (build_type_psymtabs_reader): Assert called for a type unit.
8312 (build_type_psymtab_dependencies): Assert called for a type unit group.
8313
5c6fa7ab
DE
8314 * dwarf2read.c (free_dwo_file): Add comment.
8315 (dwarf2_per_objfile_free): Unref dwp bfd.
8316
b3c0ad67 83172013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8318
8319 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8320 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8321 (read_pe_exported_syms): Remove unused 'exportix'.
8322 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8323 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8324 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8325
e2df1547
AR
83262013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8327
8328 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8329 (print_it_watchpoint): Remove unused 'bl'.
8330 (say_where): Remove unused 'uiout'.
8331 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8332 (bkpt_breakpoint_hit): Remove unused 'b'.
8333 (internal_bkpt_print_it): Remove unused 'uiout'.
8334 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8335
d81e75c0
TD
83362013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8337
8338 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8339 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8340
5a8b3f62
DE
83412013-03-29 Doug Evans <dje@google.com>
8342
ab5088bf
DE
8343 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8344 Delete arg is_dwp. All callers updated.
8345 (open_dwp_file): New function.
8346 (open_and_init_dwp_file): Call it.
8347 (get_dwp_file): New function.
8348 (lookup_dwo_cutu): Call it.
8349
a8ad1e57
DE
8350 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8351 unnecessary, cleanup.
8352
6296d8c1
DE
8353 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8354
b0c7bfa9
DE
8355 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8356 (lookup_dwo_unit): New function.
8357 (init_cutu_and_read_dies): Move DWO handling to new functions.
8358
c88ee1f0
DE
8359 * dwarf2read.c (struct signatured_type): Tweak comment.
8360 (struct dwo_unit): Tweak comment.
8361 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8362 (create_dwo_debug_info_hash_table): Tweak comment.
8363 (dwarf2_per_cu_offset_and_type): Tweak comment.
8364
5a8b3f62
DE
8365 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8366 missing .debug_types section.
8367
9852c492
YQ
83682013-03-29 Yao Qi <yao@codesourcery.com>
8369
8370 * corelow.c: Include "completer.h".
8371 (_initialize_corelow): Call add_target_with_completer with
8372 argument 'filename_completer'.
8373 * tracepoint.c: Likewise.
8374 * exec.c (_initialize_exec): Likewise.
8375 * target.c (add_target): Rename to ...
8376 (add_target_with_completer): ... this. Call set_cmd_completer
8377 if parameter completer is not NULL.
8378 (add_target): New.
8379 * target.h: Include "command.h".
8380 (add_target_with_completer): Declare it.
8381
af312be7
JB
83822013-03-28 Joel Brobecker <brobecker@adacore.com>
8383
8384 * coffread.c (is_import_fixup_symbol): New function.
8385 (record_minimal_symbol): Use is_import_fixup_symbol to
8386 detect import fixup symbols, and discard them.
8387
8a0459fd
DE
83882013-03-28 Doug Evans <dje@google.com>
8389
0349ea22
DE
8390 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8391 types hash table until we know we need it.
8392
f652bce2
DE
8393 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8394 index numbers.
8395
e4a48d9d
DE
8396 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8397 All callers updated.
8398 (dw2_print_stats): Print #read CUs too.
8399 (dump_die_shallow): Print signatured types better.
8400
8a0459fd
DE
8401 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8402 info_or_types_section to section. All uses updated.
8403 (struct dwo_unit): Ditto.
8404
bd3eecc3
PA
84052013-03-28 Pedro Alves <palves@redhat.com>
8406
8407 * NEWS (New options): New section.
8408 (New options): Mention set/show remote trace-status-packet.
8409 * remote.c (PACKET_qTStatus): New enumeration value.
8410 (remote_get_trace_status): Skip sending qTStatus if the packet is
8411 disabled. Use packet_ok.
8412 (_initialize_remote): Register a configuration command for
8413 qTStatus packet.
8414
41245087
DE
84152013-03-28 Doug Evans <dje@google.com>
8416
7edbb660
DE
8417 * symfile.c (find_separate_debug_file): Add comment.
8418 (terminate_after_last_dir_separator): Tweak comment.
8419
0018ea6f
DE
8420 * dwarf2read.c (create_partial_symtab): Add forward decl.
8421 (create_partial_symtab): Move to be closer to other psymtab functions.
8422 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8423
ca69b9e6
DE
8424 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8425 (compute_symtab_includes): Remove unnecessary forward declaration.
8426 (die_needs_namespace): Add comment marking group of functions for
8427 dwarf2 name computation.
8428
a9375afe
DE
8429 * typeprint.c (_initialize_typeprint): Improve type help text.
8430
41245087
DE
8431 * python/python.c (finish_python_initialization): Provide suggestion
8432 for how to tell gdb to find its python files.
8433
7f7cc265
PA
84342013-03-28 Pedro Alves <palves@redhat.com>
8435
8436 PR gdb/15294
8437
8438 * source.c (_initialize_source): Change back "set listsize" to an
8439 integer command.
8440
ec21308c
JK
84412013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8442
8443 PR gdb/15275
8444 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8445
840a9a1f
PA
84462013-03-27 Pedro Alves <palves@redhat.com>
8447
8448 * top.c (history_size): Rename to ...
8449 (history_size_setshow_var): ... this. Add comment.
8450 (show_commands): Use readline's 'history_length' instead of
8451 computing the history length by calling history_get in a loop.
8452 (set_history_size_command): Error out for sizes over INT_MAX.
8453 Restore previous history size on invalid size.
8454 (init_history): If HISTSIZE is negative, leave the history size as
8455 zero. Add comments.
8456 (init_main): Adjust.
8457
826ecc4d
PA
84582013-03-27 Pedro Alves <palves@redhat.com>
8459
8460 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8461 coff_pe_read" command to "set debug coff-pe-read".
8462
0ccfeeae
MM
84632013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8464
8465 * record.c (command_size_to_target_size): Fix size comparison.
8466 Change parameter type from pointer to integer to integer.
8467 Update all users.
8468
40653b35
PM
84692013-03-27 Pierre Muller <muller@sourceware.org>
8470
8471 * windows-nat.c (handle_output_debug_string): Avoid typecast
8472 from integer of different size warning.
8473
c62fa0e2
JB
84742013-03-26 Joel Brobecker <brobecker@adacore.com>
8475
8476 * windows-nat.c (handle_output_debug_string): Add empty line
8477 after local block variable definition.
8478
2c619be2
PA
84792013-03-26 Pedro Alves <palves@redhat.com>
8480
8481 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8482 (net_open): Make 'polls' local unsigned.
8483
1b493192
PA
84842013-03-26 Pedro Alves <palves@redhat.com>
8485
8486 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8487 a zuinteger command instead of uinteger.
8488
7ee70bf5
PA
84892013-03-26 Pedro Alves <palves@redhat.com>
8490
8491 * record-full.c (record_full_insn_num): Make it unsigned.
8492 (record_full_check_insn_num, record_full_message)
8493 (record_full_registers_change, record_full_xfer_partial): Remove
8494 record_full_insn_max_num check (it's always != 0).
8495 (record_full_info, record_full_restore): Use %u as format string.
8496 (): Use %u as format string.
8497 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8498 check (it's always != 0).
8499
dfd1f9bb
PA
85002013-03-26 Pedro Alves <palves@redhat.com>
8501
8502 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8503 and "set dcache size" commands zuinteger instead of uinteger.
8504
addb4faf
PA
85052013-03-26 Pedro Alves <palves@redhat.com>
8506
8507 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8508 command zuinteger instead of uinteger.
8509
b75bf488
PA
85102013-03-26 Pedro Alves <palves@redhat.com>
8511
8512 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8513 zuinteger instead of uinteger.
8514
42c634cb
PA
85152013-03-26 Pedro Alves <palves@redhat.com>
8516
8517 * record.c (record_insn_history_size_setshow_var)
8518 (record_call_history_size_setshow_var): New globals.
8519 (command_size_to_target_size): New function.
8520 (cmd_record_insn_history, cmd_record_call_history): Use
8521 command_size_to_target_size instead of cast.
8522 (validate_history_size, set_record_insn_history_size)
8523 (set_record_call_history_size): New functions.
8524 (_initialize_record): Install set_record_insn_history_size and
8525 set_record_call_history_size as "set" hooks of "set record
8526 instruction-history-size" and "set record
8527 function-call-history-size".
8528
1fb2e2b5
PA
85292013-03-26 Pedro Alves <palves@redhat.com>
8530
8531 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8532 use with history_max_entries use. Remove FIXME note.
8533
99c819ee
MM
85342013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8535
8536 * record-btrace.c (record_btrace_close): Call
8537 record_btrace_auto_disable.
8538
9f9e404c
JB
85392013-03-25 Joel Brobecker <brobecker@adacore.com>
8540
8541 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8542
ebcdfe33
DE
85432013-03-25 Doug Evans <dje@google.com>
8544
8545 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8546
24955f63
TT
85472013-03-25 Tom Tromey <tromey@redhat.com>
8548
8549 PR symtab/11462:
8550 * c-exp.y (exp): Add new productions for destructors after '.' and
8551 '->'.
8552 (write_destructor_name): New function.
8553
fce632b6
TT
85542013-03-25 Tom Tromey <tromey@redhat.com>
8555
8556 PR c++/9197:
8557 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8558 value_struct_elt, not lookup_struct_elt_type.
8559 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8560 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8561 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8562
a4341769
YQ
85632013-03-25 Yao Qi <yao@codesourcery.com>
8564
8565 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8566 instead of '_mkdir'.
8567
b5981e5a
EZ
85682013-03-23 Eli Zaretskii <eliz@gnu.org>
8569
8570 * windows-nat.c (windows_get_absolute_argv0): New function.
8571 * windows-nat.h: Add its prototype.
8572
8573 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8574 Use IS_DIR_SEPARATOR instead of looking for a character inside
8575 SLASH_STRING. Include filenames.h.
8576 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8577 relocate_gdb_directory works when passed gdb_program_name.
8578 Include windows-nat.h.
8579
598d3636
JK
85802013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8581
8582 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8583 * remote.c (trace_error): Remove the special handling of '2'.
8584 (readchar) <SERIAL_EOF>
8585 (readchar) <SERIAL_ERROR>
8586 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8587 (remote_get_trace_status): Call throw_exception if EX is
8588 TARGET_CLOSE_ERROR.
8589 * utils.c (perror_with_name): Rename to ...
8590 (throw_perror_with_name): ... here. New parameter errcode, describe it
8591 in the function comment.
8592 (perror_with_name): New function wrapper.
8593 * utils.h (enum errors): New stub declaration.
8594 (throw_perror_with_name): New declaration.
8595
82b821e9
PA
85962013-03-22 Pedro Alves <palves@redhat.com>
8597 Yao Qi <yao@codesourcery.com>
8598 Mark Kettenis <kettenis@gnu.org>
8599
8600 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8601 Don't let the user set the value to UINT_MAX directly.
8602 <var_integer>: Don't let the user set the value to INT_MAX
8603 directly.
8604
78a095c3
JK
86052013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8606
8607 * remote.c (remote_unpush_target): New function.
8608 (remote_open_1): Remove two pop_target calls, update one comment, add
8609 comment to target_preopen call. Replace pop_target call by
8610 remote_unpush_target call.
8611 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8612 pop_target calls by remote_unpush_target calls.
8613
3e74e146
PA
86142013-03-22 Pedro Alves <palves@redhat.com>
8615
8616 * linux-nat.c (linux_child_follow_fork): Don't call
8617 linux_enable_event_reporting.
8618 (linux_handle_extended_wait): Don't call
8619 linux_enable_event_reporting.
8620
a2213dca
PA
86212013-03-22 Pedro Alves <palves@redhat.com>
8622
8623 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8624 use it to rewrite the trampoline buffers with type gdb_byte[], and
8625 undefine the macro. Remove char* cast.
8626
bd712aed
DE
86272013-03-21 Doug Evans <dje@google.com>
8628
8629 New commands "mt set per-command {space,time,symtab} {on,off}".
8630 * NEWS: Add entry.
8631 * event-top.c: #include "maint.h".
8632 * main.c: #include "maint.h".
8633 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8634 timeval-utils.h, maint.h, cli/cli-setshow.h.
8635 (per_command_time, per_command_space): New static globals.
8636 (per_command_symtab): New static global.
8637 (per_command_setlist, per_command_showlist): New static globals.
8638 (struct cmd_stats): Move here from utils.c.
8639 (set_per_command_time): Renamed from set_display_time in utils.c
8640 and moved here. All callers updated.
8641 (set_per_command_space): Renamed from set_display_space in utils.c
8642 and moved here. All callers updated.
8643 (count_symtabs_and_blocks): New function.
8644 (report_command_stats): Moved here from utils.c. Add support for
8645 printing symtab stats. Only print data if enabled before command
8646 executed.
8647 (make_command_stats_cleanup): Ditto.
8648 (sert_per_command_cmd, show_per_command_cmd): New functions.
8649 (_initialize_maint_cmds): Add new commands
8650 mt set per-command {space,time,symtab} {on,off}.
8651 * maint.h: New file.
8652 * top.c: #include "maint.h".
8653 * utils.c (reset_prompt_for_continue_wait_time): New function.
8654 (get_prompt_for_continue_wait_time): New function.
8655 * utils.h (reset_prompt_for_continue_wait_time): Declare
8656 (get_prompt_for_continue_wait_time): Declare.
8657 (make_command_stats_cleanup): Moved to maint.h.
8658 (set_display_time, set_display_space): Moved to maint.h and renamed
8659 to set_per_command_time, set_per_command_space.
8660 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8661 parse_binary_operation and made non-static. Don't call error,
8662 just return an error marker. All callers updated.
8663 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8664
d76488d8
TT
86652013-03-21 Tom Tromey <tromey@redhat.com>
8666
8667 * symfile.c (alloc_section_addr_info): Update header. Don't set
8668 'num_sections' field.
8669 (build_section_addr_info_from_section_table): Set 'num_sections'.
8670 (build_section_addr_info_from_bfd): Likewise.
8671 (build_section_addr_info_from_objfile): Remove dead loop
8672 condition.
8673 (free_section_addr_info): Unconditionally call xfree.
8674 (relative_addr_info_to_section_offsets, addrs_section_sort)
8675 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8676 condition.
8677 (syms_from_objfile_1): Remove dead 'if' condition. Check
8678 'num_sections'.
8679 (add_symbol_file_command): Set 'num_sections'.
8680 * symfile-mem.c (symbol_file_add_from_memory): Set
8681 'num_sections'.
8682 * somread.c (som_symfile_offsets): Remove dead loop condition.
8683 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8684 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8685
a72e5169 86862013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8687
8688 * tracepoint.h (decode_agent_options): Add 'trace_string'
8689 argument.
8690 * tracepoint.c (decode_agent_options): Add 'trace_string'
8691 argument.
8692 (validate_actionline): Update.
8693 (collect_symbol): Add 'trace_string' argument.
8694 (struct add_local_symbols_data) <trace_string>: New field.
8695 (do_collect_symbol): Update.
8696 (add_local_symbols): Add 'trace_string' argument.
8697 (encode_actions_1): Update.
8698 (trace_dump_actions): Update.
8699 * dwarf2loc.c (access_memory): Update.
8700 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8701 * ax-general.c (new_agent_expr): Update.
8702 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8703 (gen_trace_for_return_address): Add argument.
8704 (trace_kludge, trace_string_kludge): Remove.
8705 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8706 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8707 (gen_trace_for_var): Add 'trace_string' argument.
8708 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8709 (gen_printf, agent_eval_command_one): Update.
8710
b2f83c08
TT
87112013-03-21 Tom Tromey <tromey@redhat.com>
8712
8713 PR exp/15109:
8714 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8715 Handle FILENAME token.
8716
9507860e
TT
87172013-03-21 Tom Tromey <tromey@redhat.com>
8718
8719 * c-exp.y (YYPRINT): Define.
8720 (c_print_token): New function.
8721
e403aa4b
TT
87222013-03-21 Tom Tromey <tromey@redhat.com>
8723
8724 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8725
af307d6a
YQ
87262013-03-21 Yao Qi <yao@codesourcery.com>
8727
8728 * ctf.c: Include "gdb_stat.h".
8729 [USE_WIN32API]: New macro 'mkdir'.
8730 (ctf_start): Use permission bits macros if they are defined.
8731
fb81d016
KS
87322013-03-20 Keith Seitz <keiths@redhat.com>
8733
8734 * breakpoint.h (struct breakpoint): Add comment to
8735 extra_string indicating that this member is mallod'd.
8736 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8737
ef0026f0
PA
87382013-03-20 Pedro Alves <palves@redhat.com>
8739
8740 PR gdb/15289
8741
8742 * cli/cli-setshow.c (do_set_command)
8743 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8744 the result of parsing the command argument. Throw error if the
8745 value is greater than UINT_MAX. Print the invalid value with
8746 plongest.
8747 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8748 result of parsing the command argument. Throw error if the value
8749 is greater than INT_MAX, not greater or equal. Also throw error
8750 if the value is less than INT_MIN. Print the invalid value with
8751 plongest.
8752 <var_zuinteger_unlimited>: Throw error if the value is greater
8753 than INT_MAX, not greater or equal.
8754 (do_show_command) <var_integer, var_zinteger,
8755 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8756
24d6c2a0
TT
87572013-03-20 Tom Tromey <tromey@redhat.com>
8758
8759 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8760 if possible.
8761 * dwarf2read.c (read_func_scope): Remove old FIXME.
8762 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8763 not LOC_COMPUTED.
8764 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8765 Unconditionally call via computed ops, if possible.
8766 * printcmd.c (address_info): Unconditionally call via computed ops,
8767 if possible.
8768 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8769 if possible.
8770 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8771 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8772 if possible.
8773
f1e6e072
TT
87742013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8775 Tom Tromey <tromey@redhat.com>
8776
8777 PR symtab/8421:
8778 * coffread.c (coff_register_index): New global.
8779 (process_coff_symbol, coff_read_enum_type): Set
8780 SYMBOL_ACLASS_INDEX.
8781 (_initialize_coffread): Initialize new global.
8782 * dwarf2loc.c (locexpr_find_frame_base_location)
8783 (dwarf2_block_frame_base_locexpr_funcs)
8784 (loclist_find_frame_base_location)
8785 (dwarf2_block_frame_base_loclist_funcs): New.
8786 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8787 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8788 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8789 (dwarf2_block_frame_base_loclist_funcs): New.
8790 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8791 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8792 globals.
8793 (read_func_scope): Update.
8794 (fixup_go_packaging, mark_common_block_symbol_computed)
8795 (var_decode_location, new_symbol_full, dwarf2_const_value):
8796 Set SYMBOL_ACLASS_INDEX.
8797 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8798 (_initialize_dwarf2_read): Initialize new globals.
8799 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8800 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8801 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8802 globals.
8803 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8804 (_initialize_mdebugread): Initialize new globals.
8805 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8806 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8807 (stab_register_index, stab_regparm_index): New globals.
8808 (define_symbol, read_enum_type, common_block_end): Set
8809 SYMBOL_ACLASS_INDEX.
8810 (_initialize_stabsread): Initialize new globals.
8811 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8812 globals.
8813 (MAX_SYMBOL_IMPLS): New define.
8814 (register_symbol_computed_impl, register_symbol_block_impl)
8815 (register_symbol_register_impl)
8816 (initialize_ordinary_address_classes): New functions.
8817 (_initialize_symtab): Call initialize_ordinary_address_classes.
8818 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8819 (struct symbol_impl): New.
8820 (SYMBOL_ACLASS_BITS): New define.
8821 (struct symbol) <aclass, ops>: Remove fields.
8822 <aclass_index>: New field.
8823 (symbol_impls): Declare.
8824 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8825 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8826 (register_symbol_computed_impl, register_symbol_block_impl)
8827 (register_symbol_register_impl): Declare.
8828 (struct symbol_computed_ops): Add location_has_loclist.
8829 (struct symbol_block_ops): New.
8830 (SYMBOL_BLOCK_OPS): New.
8831 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8832
dbccfd4c
TT
88332013-03-20 Tom Tromey <tromey@redhat.com>
8834
8835 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8836 (print_partial_symbols, recursively_search_psymtabs): Use
8837 PSYMBOL_CLASS.
8838
e3f1ad4f
PM
88392013-03-20 Pierre Muller <muller@sourceware.org>
8840
8841 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8842 addtion, subtraction, multiplication and division binary operator.
8843
460014f5
JK
88442013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8845
8846 Code cleanup.
8847 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8848 * bsd-kvm.c (bsd_kvm_close): Likewise.
8849 * bsd-uthread.c (bsd_uthread_close): Likewise.
8850 * corelow.c (core_close): Likewise.
8851 (core_close_cleanup): Remove parameter quitting from a caller.
8852 * event-top.c (async_disconnect): Likewise.
8853 * exec.c (exec_close_1): Remove parameter quitting.
8854 * go32-nat.c (go32_close): Likewise.
8855 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8856 parameter quitting from a caller.
8857 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8858 variable.
8859 (mips_linux_close): Remove parameter quitting. Remove parameter
8860 quitting from a caller.
8861 * monitor.c (monitor_close): Remove parameter quitting.
8862 * monitor.h (monitor_close): Likewise.
8863 * record-btrace.c (record_btrace_close): Likewise.
8864 * record-full.c (record_full_close): Likewise.
8865 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8866 it also from fprintf_unfiltered.
8867 * remote-mips.c (mips_close): Remove parameter quitting.
8868 (mips_detach): Remove parameter quitting from a caller.
8869 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8870 (gdbsim_close): Remove duplicate function comment. Remove parameter
8871 quitting and remove it also from printf_filtered.
8872 * remote.c (remote_close): Remove parameter quitting.
8873 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8874 * target.c (update_current_target): Remove parameter int from to_close
8875 de_fault.
8876 (push_target, unpush_target, pop_target): Remove parameter quitting from
8877 a caller.
8878 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8879 Remove parameter quitting from a caller.
8880 (target_preopen): Remove parameter quitting from a caller.
8881 (target_close): Remove parameter quitting. Remove parameter quitting
8882 from a caller two times. Remove parameter quitting also from
8883 fprintf_unfiltered.
8884 * target.h (struct target_ops): Remove parameter quitting and as int
8885 from fields to_xclose and to_close.
8886 (extern struct target_ops current_target):
8887 (target_close, pop_all_targets): Remove parameter quitting. Update the
8888 comment.
8889 (pop_all_targets_above): Remove parameter quitting.
8890 * top.c (quit_target): Remove parameter quitting from a caller.
8891 * tracepoint.c (tfile_close): Remove parameter quitting.
8892 * windows-nat.c (windows_close): Remove parameter quitting.
8893
35a7120b
CV
88942013-03-20 Corinna Vinschen <vinschen@redhat.com>
8895
8896 * windows-nat.c (handle_output_debug_string): Replace call
8897 to string_to_core_addr with call to strtoull.
8898
8249a5a9
YQ
88992013-03-20 Yao Qi <yao@codesourcery.com>
8900
8901 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8902 and write it to CTF metadata.
8903
2c15ef43
CV
89042013-03-19 Corinna Vinschen <vinschen@redhat.com>
8905
8906 * windows-nat.c (handle_output_debug_string): Change type of n to
8907 SIZE_T to avoid crash on 64 bit systems.
8908
1cdd3232
EZ
89092013-03-17 Eli Zaretskii <eliz@gnu.org>
8910
8911 * python/python-internal.h (HAVE_SNPRINTF)
8912 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8913 about redefinition of snprintf by pyerrors.h.
8914
3cb2ab1a
SE
89152013-03-15 Steve Ellcey <sellcey@mips.com>
8916
8917 * remote-sim.c (sim_command_completer): Make char arguments const.
8918
9ce98649
TT
89192013-03-15 Tom Tromey <tromey@redhat.com>
8920
8921 PR c++/15116:
8922 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8923
dccee2de
TT
89242013-03-14 Tom Tromey <tromey@redhat.com>
8925
8926 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8927 New fields.
8928 (get_file_crc): Move from symfile.c.
8929 (gdb_bfd_crc): New function.
8930 * gdb_bfd.h (gdb_bfd_crc): Declare.
8931 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8932 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8933 (separate_debug_file_exists): Use gdb_bfd_crc.
8934
cc0ea93c
TT
89352013-03-14 Tom Tromey <tromey@redhat.com>
8936
8937 * symfile.c (get_debug_link_info): Remove.
8938 (find_separate_debug_file_by_debuglink): Use
8939 bfd_get_debug_link_info.
8940
08c23b0d
TT
89412013-03-14 Tom Tromey <tromey@redhat.com>
8942
8943 * symtab.c (error_in_psymtab_expansion): New function.
8944 (lookup_symbol_aux_quick)
8945 (basic_lookup_transparent_type_quick): Remove "last resort"
8946 code. Use error_in_psymtab_expansion.
8947
288e77a7
JK
89482013-03-14 Doug Evans <dje@google.com>
8949 Jan Kratochvil <jan.kratochvil@redhat.com>
8950
8951 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8952 any successful compare_filenames_for_search or FILENAME_CMP.
8953 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8954 * symtab.c (iterate_over_some_symtabs): Likewise.
8955
8f1b8b82
JK
89562013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8957
8958 * source.c (print_source_lines_base): Make a local copy of
8959 symtab_to_fullname.
8960
23eb71e4
JK
89612013-03-14 Hui Zhu <hui_zhu@mentor.com>
8962 Jan Kratochvil <jan.kratochvil@redhat.com>
8963
8964 * source.c (print_source_lines_base): Suppress "file" for TUI.
8965
bb869963
SDJ
89662013-03-14 Keith Seitz <keiths@redhat.com>
8967 Alan Matsuoka <alanm@redhat.com>
8968
8969 PR c++/15203
8970 PR c++/15210
8971 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8972 TYPE_CODE_METHOD.
8973 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8974 symbols.
8975
d6682f9e
YQ
89762013-03-14 Yao Qi <yao@codesourcery.com>
8977
8978 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8979 status to tfile if trace is stopped by command 'tstop'.
8980
a22fa6e4
YQ
89812013-03-14 Yao Qi <yao@codesourcery.com>
8982
8983 * tracepoint.c (tfile_write_status): Write trace notes and user
8984 name into tfile if they are not NULL.
8985
d0353e76
YQ
89862013-03-14 Hui Zhu <hui@codesourcery.com>
8987 Yao Qi <yao@codesourcery.com>
8988
8989 * Makefile.in (REMOTE_OBS): Add ctf.o.
8990 (SFILES): Add ctf.c.
8991 (HFILES_NO_SRCDIR): Add ctf.h.
8992 * ctf.c, ctf.h: New files.
8993 * tracepoint.c: Include 'ctf.h'.
8994 (collect_pseudocommand): Remove static.
8995 (trace_save_command): Parse option "-ctf".
8996 Produce different trace file writers per option.
8997 Adjust output message.
8998 (trace_save_tfile, trace_save_ctf): New.
8999 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9000 * mi/mi-main.c: Include 'ctf.h'.
9001 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9002 trace_save_tfile or trace_save_ctf.
9003 * NEWS: Mention these changes.
9004
3f43bc09
YQ
90052013-03-14 Yao Qi <yao@codesourcery.com>
9006
9007 * tracepoint.c (trace_file_writer_xfree): New.
9008 (struct tfile_writer_data): New.
9009 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9010 (tfile_write_header, tfile_write_regblock_type): New.
9011 (tfile_write_status, tfile_write_uploaded_tsv): New.
9012 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9013 (tfile_write_raw_data, (tfile_end): New.
9014 (tfile_write_ops): New global variable.
9015 (TRACE_WRITE_R_BLOCK): New macro.
9016 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9017 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9018 (TRACE_WRITE_V_BLOCK): New macro.
9019 (trace_save): Add extra one parameter WRITER. Make it static.
9020 Use WRITER to writer trace.
9021 (tfile_trace_file_writer_new): New.
9022 (trace_save_command): Caller update.
9023 (trace_save_tfile): Write trace data in TFILE format.
9024 * tracepoint.h (struct trace_frame_write_ops): New.
9025 (struct trace_file_write_ops): New.
9026 (struct trace_file_writer): New.
9027 (trace_save): Remove its declaration.
9028 (trace_save_tfile): Declare it.
9029 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9030 instead of trace_save.
9031
58665b40
PA
90322013-03-13 Pedro Alves <palves@redhat.com>
9033
9034 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9035
10217050
PA
90362013-03-13 Pedro Alves <palves@redhat.com>
9037
9038 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9039 commented out code.
9040 * demangle.c (current_demangling_style_string): Make it const.
9041 (set_demangling_command): Assert the demangling style is known.
9042 Remove all handling of unknown styles. Set
9043 'current_demangling_style_string' to an element of the
9044 demangling_style_names array.
9045 (set_demangling_style): Delete.
9046 (_initialize_demangler): Set current_demangling_style_string to the
9047 element of the demangling_style_names array that corresponds to
9048 the default demangling style. Remove FIXME note. Don't call
9049 set_demangling_style.
9050 * gdb-demangle.h (set_demangling_style): Remove declaration.
9051
6f937416
PA
90522013-03-13 Pedro Alves <palves@redhat.com>
9053
9054 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9055 fields const.
9056 (ada_make_symbol_completion_list): Make "text0" parameter const.
9057 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9058 * breakpoint.c (condition_completer): Make "text" and "word"
9059 parameters const. Adjust.
9060 (check_tracepoint_command): Adjust to validate_actionline
9061 prototype change.
9062 (catch_syscall_completer): Make "text" and "word" parameters
9063 const.
9064 * cli/cli-cmds.c (show_user): Make "comname" local const.
9065 (valid_command_p): Make "command" parameter const.
9066 (alias_command): Make "alias_prefix" and "command_prefix" locals
9067 const.
9068 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9069 (add_alias_cmd): Make "name" and "oldname" parameters const.
9070 Adjust. No longer make copy of OLDNAME.
9071 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9072 (add_setshow_cmd_full, add_setshow_enum_cmd)
9073 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9074 (add_setshow_filename_cmd, add_setshow_string_cmd)
9075 (add_setshow_string_noescape_cmd)
9076 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9077 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9078 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9079 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9080 Make "name" parameter const.
9081 (help_cmd): Rename "command" parameter to "arg". New const local
9082 "command".
9083 (find_cmd): Make "command" parameter const.
9084 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9085 deprecated_cmd_warning prototype change.
9086 (undef_cmd_error): Make "cmdtype" parameter const.
9087 (lookup_cmd): Make "line" parameter const.
9088 (deprecated_cmd_warning): Change type of "text" parameter to
9089 pointer to const char, from pointer to pointer to char. Adjust.
9090 (lookup_cmd_composition): Make "text" parameter const.
9091 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9092 parameters const.
9093 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9094 const.
9095 * cli/cli-script.c (validate_comname): Make "tem" local const.
9096 (define_command): New const local "tem_c". Use it in calls to
9097 lookup_cmd.
9098 (document_command): Make "tem" and "comfull" locals const.
9099 (show_user_1): Make "prefix" and "name" parameters const.
9100 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9101 const.
9102 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9103 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9104 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9105 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9106 (complete_on_enum, add_setshow_enum_cmd)
9107 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9108 (add_setshow_filename_cmd, add_setshow_string_cmd)
9109 (add_setshow_string_noescape_cmd)
9110 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9111 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9112 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9113 Change prototypes, constifying strings.
9114 * completer.c (noop_completer, filename_completer): Make "text"
9115 and "prefix" parameters const.
9116 (location_completer, expression_completer)
9117 (complete_line_internal): Make "text" and "prefix" parameters
9118 const and adjust.
9119 (command_completer, signal_completer): Make "text" and "prefix"
9120 parameters const.
9121 * completer.h (noop_completer, filename_completer)
9122 (expression_completer, location_completer, command_completer)
9123 (signal_completer): Change prototypes.
9124 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9125 parameters const.
9126 * cp-abi.c (cp_abi_completer): Likewise.
9127 * expression.h (parse_expression_for_completion): Change
9128 prototype.
9129 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9130 parameters const.
9131 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9132 * infrun.c (handle_completer): Make "text" and "word" parameters
9133 const.
9134 * interps.c (interpreter_completer): Make "text" and "word"
9135 parameters const.
9136 * language.h (struct language_defn)
9137 <la_make_symbol_completion_list>: Make "text" and "word"
9138 parameters const.
9139 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9140 (parse_exp_in_context): Rename to ...
9141 (parse_exp_in_context_1): ... this.
9142 (parse_exp_in_context): Reimplement, with const hack from
9143 parse_exp_1.
9144 (parse_expression_for_completion): Make "string" parameter const.
9145 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9146 to pointer to const char. Adjust.
9147 (print_command_1): Make "exp" parameter const.
9148 (output_command): Rename to ...
9149 (output_command_const): ... this. Make "exp" parameter const.
9150 (output_command): Reimplement.
9151 (x_command): Adjust.
9152 (display_command): Rename "exp" parameter to "arg". New "exp"
9153 local, const version of "arg".
9154 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9155 "cmd_name" local const.
9156 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9157 call.
9158 (cmdpy_completer): Make "text" and "word" parameters const.
9159 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9160 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9161 const.
9162 * remote.c (_initialize_remote): Make "cmd_name" local const.
9163 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9164 parameters const. Adjust.
9165 (completion_list_add_fields): Make "sym_text", "text" and "word"
9166 parameters const.
9167 (struct add_name_data) <sym_text, text, word>: Make fields const.
9168 (default_make_symbol_completion_list_break_on): Make "text" and
9169 "word" parameters const. Adjust locals.
9170 (default_make_symbol_completion_list)
9171 (make_symbol_completion_list, make_symbol_completion_type)
9172 (make_symbol_completion_list_fn): Make "text" and "word"
9173 parameters const.
9174 (make_file_symbol_completion_list): Make "text", "word" and
9175 "srcfile" parameters const. Adjust locals.
9176 (add_filename_to_list): Make "text" and "word" parameters const.
9177 (struct add_partial_filename_data) <text, word>: Make fields
9178 const.
9179 (make_source_files_completion_list): Make "text" and "word"
9180 parameters const.
9181 * symtab.h (default_make_symbol_completion_list_break_on)
9182 (default_make_symbol_completion_list, make_symbol_completion_list)
9183 (make_symbol_completion_type enum type_code)
9184 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9185 (make_source_files_completion_list): Change prototype.
9186 * top.c (execute_command): Adjust to pass pointer to pointer to
9187 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9188 change.
9189 (set_verbose): Make "cmdname" local const.
9190 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9191 and adjust.
9192 (validate_actionline): Make "line" parameter a pointer to const
9193 char, and adjust.
9194 (encode_actions_1): Make "action_exp" local const, and adjust.
9195 (encode_actions): Adjust.
9196 (replace_comma): Delete.
9197 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9198 const, and adjust. Don't frob the action string while splitting
9199 it at commas. Instead, make a copy of each split substring in
9200 turn.
9201 (trace_dump_command): Adjust to validate_actionline prototype
9202 change.
9203 * tracepoint.h (decode_agent_options, decode_agent_options)
9204 (encode_actions, validate_actionline): Change prototypes.
9205 * valprint.h (output_command): Delete declaration.
9206 (output_command_const): Declare.
9207 * value.c (function_destroyer): Cast const away in xfree call.
9208
a0bcdaa7
PA
92092013-03-13 Pedro Alves <palves@redhat.com>
9210
9211 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9212 rather than casting 'const char * const *' to 'const char **'.
9213 * ada-lex.l (processInt): Make "trailer" local const. Remove
9214 'const char **' cast.
9215 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9216 locals, and use those as strtol output pointer, instead than doing
9217 invalid casts to from 'const char **' to 'char **'.
9218 (_initialize_demangle): Remove cast.
9219 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9220 locals, and use those as strtol output pointer, instead than doing
9221 invalid casts to from 'const char **' to 'char **'.
9222 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9223 casts.
9224 * stap-probe.c (stap_parse_register_operand)
9225 (stap_parse_single_operand): Likewise.
9226
8ddb1965
YQ
92272013-03-13 Yao Qi <yao@codesourcery.com>
9228
9229 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9230 the last matched 'V' blcok in trace frame.
9231
2d450646
JB
92322013-03-12 Joel Brobecker <brobecker@adacore.com>
9233
9234 * NEWS: Create a new section for the next release branch.
9235 Rename the section of the current branch, now that it has
9236 been cut.
9237
b4b79973 92382013-03-12 Joel Brobecker <brobecker@adacore.com>
9239
9240 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9241 * version.in: Bump version to 7.6.50.20130312-cvs.
9242
ee047554
KS
92432013-03-12 Keith Seitz <keiths@redhat.com>
9244
9245 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9246 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9247 Remove temporary copy of input string.
9248 (mi_execute_command_wrapper): Make "cmd" const.
9249 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9250 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9251 Use const strings.
9252 (mi_parse): Make "cmd" const.
9253 Use const strings.
9254 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9255
bbc13ae3
KS
92562013-03-12 Keith Seitz <keiths@redhat.com>
9257
9258 * ada-lang.c (ada_read_renaming_var_value): Pass const
9259 pointer to expression string to parse_exp_1.
9260 (create_excep_cond_exprs): Likewise.
9261 * ax-gdb.c (agent_eval_command_one): Likewise.
9262 (maint_agent_printf_command): Likewise.
9263 Constify much of the string handling/parsing.
9264 * breakpoint.c (set_breakpoint_condition): Pass const
9265 pointer to expression string to parse_exp_1.
9266 (update_watchpoint): Likewise.
9267 (parse_cmd_to_aexpr): Constify string handling.
9268 Pass const pointer to parse_exp_1.
9269 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9270 (find_condition_and_thread): Likewise.
9271 Make TOK const.
9272 (watch_command_1): Make "arg" const.
9273 Constify string handling.
9274 Copy the expression string instead of changing the input
9275 string.
9276 (update_breakpoint_location): Pass const pointer to
9277 parse_exp_1.
9278 * eval.c (parse_and_eval_address): Make "exp" const.
9279 (parse_to_comma_and_eval): Make "expp" const.
9280 (parse_and_eval): Make "exp" const.
9281 * expression.h (parse_expression): Make argument const.
9282 (parse_exp_1): Make first argument const.
9283 * findcmd.c (parse_find_args): Treat "args" as const.
9284 * linespec.c (parse_linespec): Pass const pointer to
9285 linespec_expression_to_pc.
9286 (linespec_expression_to_pc): Make "exp_ptr" const.
9287 * parse.c (parse_exp_1): Make "stringptr" const.
9288 Make a copy of the expression to pass to parse_exp_in_context until
9289 this whole interface can be constified.
9290 (parse_expression): Make "string" const.
9291 * printcmd.c (ui_printf): Treat "arg" as const.
9292 Handle const strings.
9293 * tracepoint.c (validate_actionline): Pass const pointer to
9294 all calls to parse_exp_1.
9295 (encode_actions_1): Likewise.
9296 * value.h (parse_to_comma_and_eval): Make argument const.
9297 (parse_and_eval_address): Likewise.
9298 (parse_and_eval): Likewise.
9299 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9300 (varobj_set_value): Likewise.
9301 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9302 constify string handling.
9303 Pass const pointers to parse_and_eval_address and
9304 parse_to_comman_and_eval.
9305 * cli/cli-utils.c (skip_to_space): Rename to ...
9306 (skip_to_space_const): ... this. Handle const strings.
9307 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9308 skip_to_space_const.
9309 (skip_to_space_const): Declare.
9310 * common/format.c (parse_format_string): Make "arg" const.
9311 Handle const strings.
9312 * common/format.h (parse_format_string): Make "arg" const.
9313 * gdbserver/ax.c (ax_printf): Make "format" const.
9314 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9315 of the expression string.
9316
f3cec7e6
HZ
93172013-03-12 Hui Zhu <hui@codesourcery.com>
9318
9319 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9320
9df7235c
HZ
93212013-03-12 Yao Qi <yao@codesourcery.com>
9322 Hui Zhu <hui@codesourcery.com>
9323
9324 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9325 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9326 DW_OP_deref_size.
9327
82d049ab
PH
93282013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9329
5f8e0b8f
MF
9330 * ada-lex.l (rules): Only recognize 'thread' as a
9331 delimiter when followed by numerals, as for c-exp.y.
9332 Use new rewind_to_char function to rewind the input for
9333 expression-delimiting tokens.
9334 (rewind_to_char): New function.
82d049ab 9335
8c1fb155
JK
93362013-03-11 Pedro Alves <palves@redhat.com>
9337 Jan Kratochvil <jan.kratochvil@redhat.com>
9338
9339 * configure: Regenerate.
9340 * configure.ac (check dynamic export flag): Link python test with
9341 $PYTHON_LIBS.
9342
cc81e1c6
DE
93432013-03-11 Doug Evans <dje@google.com>
9344 Keith Seitz <keiths@redhat.com>
9345
9346 * linespec.c (find_linespec_symbols): Call find_function_symbols
9347 first, and then call lookup_prefix_sym/find_method.
9348
39086a0e
PA
93492013-03-11 Pedro Alves <palves@redhat.com>
9350
9351 * charset.c (convert_between_encodings): Don't cast between
9352 different pointer to pointer types. Instead, make the 'inp' local
9353 be of the type iconv expects.
9354 (wchar_iterate): Don't cast between different pointer to pointer
9355 types. Instead, use new pointer local of the type iconv expects.
9356 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9357 Add new local of type char pointer, and use it to get a
9358 char/string view of the byte buffer, instead of casting between
9359 pointer to pointer types.
9360
90585175
HAQ
93612013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9362
9363 * remote.c (remote_set_trace_buffer_size): Move != operator
9364 to the start of next line to fix an ARI warning.
9365
59ea5688
MM
93662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9367
9368 * NEWS: Add record changes.
9369
946287b7
MM
93702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9371
9372 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9373 the instruction history disassembly.
9374 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9375 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9376
afedecd3
MM
93772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9378
9379 * Makefile.in (SFILES): Add record-btrace.c
9380 (COMMON_OBS): Add record-btrace.o
9381 * record-btrace.c: New.
9382 * objfiles.c: Include btrace.h.
9383 (free_objfile): call btrace_free_objfile.
9384
15984c13
MM
93852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9386
9387 * target.c (target_call_history, target_call_history_from,
9388 target_call_history_range): New.
9389 * target.h (target_ops) <to_call_history, to_call_history_from,
9390 to_call_history_range>: New fields.
9391 (target_call_history, target_call_history_from,
9392 target_call_history_range): New declaration.
9393 * record.c (get_call_history_modifiers, cmd_record_call_history,
9394 record_call_history_size): New.
9395 (_initialize_record): Add the "record function-call-history" command.
9396 Add "set/show record function-call-history-size" commands.
9397 * record.h (record_print_flag): New.
9398
67c86d06
MM
93992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9400
9401 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9402 to_insn_history_range>: New fields.
9403 (target_insn_history): New.
9404 (target_insn_history_from): New.
9405 (target_insn_history_range): New.
9406 * target.c (target_insn_history): New.
9407 (target_insn_history_from): New.
9408 (target_insn_history_range): New.
9409 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9410 (record_insn_history_size): New.
9411 (get_insn_number): New.
9412 (get_context_size): New.
9413 (no_chunk): New.
9414 (get_insn_history_modifiers): New.
9415 (cmd_record_insn_history): New.
9416 (_initialize_record): Add "set/show record instruction-history-size"
9417 command. Add "record instruction-history" command.
9418
7c1687a9
MM
94192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9420
9421 * record.h (record_disconnect): New.
9422 (record_detach): New.
9423 (record_mourn_inferior): New.
9424 (record_kill): New.
9425 * record-full.c (record_disconnect, record_detach,
9426 record_mourn_inferior, record_kill): Move to...
9427 * record.c: ...here.
9428 (DEBUG): New.
9429 (record_stop): New.
9430 (record_unpush): New.
9431 (cmd_record_stop): Call record_stop. Replace unpush_target
9432 call with record_unpush call.
9433 (record_disconnect, record_detach): Assert that the target
9434 is of record stratum. Call record_unpush, record_stop, and
9435 DEBUG.
9436 (record_mourn_inferior, record_kill): Assert that the target
9437 is of record stratum. Call record_unpush and DEBUG.
9438
25ea693b
MM
94392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9440
9441 * record-full.h, record-full.c (record_memory_query): Rename
9442 to ...
9443 (record_full_memory_query): ...this. Update all users.
9444 (record_arch_list_add_reg): Rename to ...
9445 (record_full_arch_list_add_reg): ...this. Update all users.
9446 (record_arch_list_add_mem): Rename to ...
9447 (record_full_arch_list_add_mem): ...this. Update all users.
9448 (record_arch_list_add_end): Rename to ...
9449 (record_full_arch_list_add_end): ...this. Update all users.
9450 (record_gdb_operation_disable_set): Rename to ...
9451 (record_full_gdb_operation_disable_set): ...this.
9452 Update all users.
9453
88d1aa9d
MM
94542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9455
9456 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9457 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9458 (RECORD_IS_REPLAY): Renamed to ...
9459 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9460 (RECORD_FILE_MAGIC): Renamed to ...
9461 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9462 (record_mem_entry): Renamed to ...
9463 (record_full_mem_entry): ... this. Updated all users.
9464 (record_reg_entry): Renamed to ...
9465 (record_full_reg_entry): ... this. Updated all users.
9466 (record_end_entry): Renamed to ...
9467 (record_full_end_entry): ... this. Updated all users.
9468 (record_type) <record_end, record_reg, record_mem>: Renamed
9469 to ...
9470 (record_full_type) <record_full_end, record_full_reg,
9471 record_full_mem>: ... this. Updated all users.
9472 (record_entry): Renamed to ...
9473 (record_full_entry): ... this. Updated all users.
9474 (record_core_buf_entry): Renamed to ...
9475 (record_full_core_buf_entry): ... this. Updated all users.
9476 (record_core_regbuf): Renamed to ...
9477 (record_full_core_regbuf): ... this. Updated all users.
9478 (record_core_start): Renamed to ...
9479 (record_full_core_start): ... this. Updated all users.
9480 (record_core_end): Renamed to ...
9481 (record_full_core_end): ... this. Updated all users.
9482 (record_core_buf_list): Renamed to ...
9483 (record_full_core_buf_list): ... this. Updated all users.
9484 (record_first): Renamed to ...
9485 (record_full_first): ... this. Updated all users.
9486 (record_list): Renamed to ...
9487 (record_full_list): ... this. Updated all users.
9488 (record_arch_list_head): Renamed to ...
9489 (record_full_arch_list_head): ... this. Updated all users.
9490 (record_arch_list_tail): Renamed to ...
9491 (record_full_arch_list_tail): ... this. Updated all users.
9492 (record_stop_at_limit): Renamed to ...
9493 (record_full_stop_at_limit): ... this. Updated all users.
9494 (record_insn_max_num): Renamed to ...
9495 (record_full_insn_max_num): ... this. Updated all users.
9496 (record_insn_num): Renamed to ...
9497 (record_full_insn_num): ... this. Updated all users.
9498 (record_insn_count): Renamed to ...
9499 (record_full_insn_count): ... this. Updated all users.
9500 (record_ops): Renamed to ...
9501 (record_full_ops): ... this. Updated all users.
9502 (record_core_ops): Renamed to ...
9503 (record_full_core_ops): ... this. Updated all users.
9504 (set_record_cmdlist): Renamed to ...
9505 (set_record_full_cmdlist): ... this. Updated all users.
9506 (show_record_cmdlist): Renamed to ...
9507 (show_record_full_cmdlist): ... this. Updated all users.
9508 (record_cmdlist): Renamed to ...
9509 (record_full_cmdlist): ... this. Updated all users.
9510 (record_beneath_to_resume_ops): Renamed to ...
9511 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9512 (record_beneath_to_resume): Renamed to ...
9513 (record_full_beneath_to_resume): ... this. Updated all users.
9514 (record_beneath_to_wait_ops): Renamed to ...
9515 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9516 (record_beneath_to_wait): Renamed to ...
9517 (record_full_beneath_to_wait): ... this. Updated all users.
9518 (record_beneath_to_store_registers_ops): Renamed to ...
9519 (record_full_beneath_to_store_registers_ops): ... this.
9520 Updated all users.
9521 (record_beneath_to_store_registers): Renamed to ...
9522 (record_full_beneath_to_store_registers): ... this.
9523 Updated all users.
9524 (record_beneath_to_xfer_partial_ops): Renamed to ...
9525 (record_full_beneath_to_xfer_partial_ops): ... this.
9526 Updated all users.
9527 (record_beneath_to_xfer_partial): Renamed to ...
9528 (record_full_beneath_to_xfer_partial): ... this.
9529 Updated all users.
9530 (record_beneath_to_insert_breakpoint): Renamed to ...
9531 (record_full_beneath_to_insert_breakpoint): ... this.
9532 Updated all users.
9533 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9534 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9535 Updated all users.
9536 (record_beneath_to_stopped_data_address): Renamed to ...
9537 (record_full_beneath_to_stopped_data_address): ... this.
9538 Updated all users.
9539 (record_beneath_to_async): Renamed to ...
9540 (record_full_beneath_to_async): ... this. Updated all users.
9541 (record_goto_insn): Renamed to ...
9542 (record_full_goto_insn): ... this. Updated all users.
9543 (record_save): Renamed to ...
9544 (record_full_save): ... this. Updated all users.
9545 (record_reg_alloc): Renamed to ...
9546 (record_full_reg_alloc): ... this. Updated all users.
9547 (record_reg_release): Renamed to ...
9548 (record_full_reg_release): ... this. Updated all users.
9549 (record_mem_alloc): Renamed to ...
9550 (record_full_mem_alloc): ... this. Updated all users.
9551 (record_mem_release): Renamed to ...
9552 (record_full_mem_release): ... this. Updated all users.
9553 (record_end_alloc): Renamed to ...
9554 (record_full_end_alloc): ... this. Updated all users.
9555 (record_end_release): Renamed to ...
9556 (record_full_end_release): ... this. Updated all users.
9557 (record_entry_release): Renamed to ...
9558 (record_full_entry_release): ... this. Updated all users.
9559 (record_list_release): Renamed to ...
9560 (record_full_list_release): ... this. Updated all users.
9561 (record_list_release_following): Renamed to ...
9562 (record_full_list_release_following): ... this.
9563 Updated all users.
9564 (record_list_release_first): Renamed to ...
9565 (record_full_list_release_first): ... this. Updated all users.
9566 (record_arch_list_add): Renamed to ...
9567 (record_full_arch_list_add): ... this. Updated all users.
9568 (record_get_loc): Renamed to ...
9569 (record_full_get_loc): ... this. Updated all users.
9570 (record_check_insn_num): Renamed to ...
9571 (record_full_check_insn_num): ... this. Updated all users.
9572 (record_arch_list_cleanups): Renamed to ...
9573 (record_full_arch_list_cleanups): ... this. Updated all users.
9574 (record_message): Renamed to ...
9575 (record_full_message): ... this. Updated all users.
9576 (record_message_wrapper): Renamed to ...
9577 (record_full_message_wrapper): ... this. Updated all users.
9578 (record_message_wrapper_safe): Renamed to ...
9579 (record_full_message_wrapper_safe): ... this. Updated all users.
9580 (record_gdb_operation_disable): Renamed to ...
9581 (record_full_gdb_operation_disable): ... this. Updated all users.
9582 (record_hw_watchpoint): Renamed to ...
9583 (record_full_hw_watchpoint): ... this. Updated all users.
9584 (record_exec_insn): Renamed to ...
9585 (record_full_exec_insn): ... this. Updated all users.
9586 (record_restore): Renamed to ...
9587 (record_full_restore): ... this. Updated all users.
9588 (record_async_inferior_event_token): Renamed to ...
9589 (record_full_async_inferior_event_token): ... this.
9590 Updated all users.
9591 (record_async_inferior_event_handler): Renamed to ...
9592 (record_full_async_inferior_event_handler): ... this.
9593 Updated all users.
9594 (record_core_open_1): Renamed to ...
9595 (record_full_core_open_1): ... this. Updated all users.
9596 (record_open_1): Renamed to ...
9597 (record_full_open_1): ... this. Updated all users.
9598 (record_open): Renamed to ...
9599 (record_full_open): ... this. Updated all users.
9600 (record_close): Renamed to ...
9601 (record_full_close): ... this. Updated all users.
9602 (record_resume_step): Renamed to ...
9603 (record_full_resume_step): ... this. Updated all users.
9604 (record_resumed): Renamed to ...
9605 (record_full_resumed): ... this. Updated all users.
9606 (record_execution_dir): Renamed to ...
9607 (record_full_execution_dir): ... this. Updated all users.
9608 (record_resume): Renamed to ...
9609 (record_full_resume): ... this. Updated all users.
9610 (record_get_sig): Renamed to ...
9611 (record_full_get_sig): ... this. Updated all users.
9612 (record_sig_handler): Renamed to ...
9613 (record_full_sig_handler): ... this. Updated all users.
9614 (record_wait_cleanups): Renamed to ...
9615 (record_full_wait_cleanups): ... this. Updated all users.
9616 (record_wait_1): Renamed to ...
9617 (record_full_wait_1): ... this. Updated all users.
9618 (record_wait): Renamed to ...
9619 (record_full_wait): ... this. Updated all users.
9620 (record_stopped_by_watchpoint): Renamed to ...
9621 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9622 (record_disconnect): Renamed to ...
9623 (record_full_disconnect): ... this. Updated all users.
9624 (record_detach): Renamed to ...
9625 (record_full_detach): ... this. Updated all users.
9626 (record_mourn_inferior): Renamed to ...
9627 (record_full_mourn_inferior): ... this. Updated all users.
9628 (record_kill): Renamed to ...
9629 (record_full_kill): ... this. Updated all users.
9630 (record_stopped_data_address): Renamed to ...
9631 (record_full_stopped_data_address): ... this. Updated all users.
9632 (record_registers_change): Renamed to ...
9633 (record_full_registers_change): ... this. Updated all users.
9634 (record_store_registers): Renamed to ...
9635 (record_full_store_registers): ... this. Updated all users.
9636 (record_xfer_partial): Renamed to ...
9637 (record_full_xfer_partial): ... this. Updated all users.
9638 (record_breakpoint): Renamed to ...
9639 (record_full_breakpoint): ... this. Updated all users.
9640 (record_breakpoint_p): Renamed to ...
9641 (record_full_breakpoint_p): ... this. Updated all users.
9642 (record_breakpoints): Renamed to ...
9643 (record_full_breakpoints): ... this. Updated all users.
9644 (record_sync_record_breakpoints): Renamed to ...
9645 (record_full_sync_record_breakpoints): ... this.
9646 Updated all users.
9647 (record_init_record_breakpoints): Renamed to ...
9648 (record_full_init_record_breakpoints): ... this.
9649 Updated all users.
9650 (record_insert_breakpoint): Renamed to ...
9651 (record_full_insert_breakpoint): ... this. Updated all users.
9652 (record_remove_breakpoint): Renamed to ...
9653 (record_full_remove_breakpoint): ... this. Updated all users.
9654 (record_can_execute_reverse): Renamed to ...
9655 (record_full_can_execute_reverse): ... this. Updated all users.
9656 (record_get_bookmark): Renamed to ...
9657 (record_full_get_bookmark): ... this. Updated all users.
9658 (record_goto_bookmark): Renamed to ...
9659 (record_full_goto_bookmark): ... this. Updated all users.
9660 (record_async): Renamed to ...
9661 (record_full_async): ... this. Updated all users.
9662 (record_can_async_p): Renamed to ...
9663 (record_full_can_async_p): ... this. Updated all users.
9664 (record_is_async_p): Renamed to ...
9665 (record_full_is_async_p): ... this. Updated all users.
9666 (record_execution_direction): Renamed to ...
9667 (record_full_execution_direction): ... this. Updated all users.
9668 (record_info): Renamed to ...
9669 (record_full_info): ... this. Updated all users.
9670 (record_delete): Renamed to ...
9671 (record_full_delete): ... this. Updated all users.
9672 (record_is_replaying): Renamed to ...
9673 (record_full_is_replaying): ... this. Updated all users.
9674 (record_goto_entry): Renamed to ...
9675 (record_full_goto_entry): ... this. Updated all users.
9676 (record_goto_begin): Renamed to ...
9677 (record_full_goto_begin): ... this. Updated all users.
9678 (record_goto_end): Renamed to ...
9679 (record_full_goto_end): ... this. Updated all users.
9680 (record_goto): Renamed to ...
9681 (record_full_goto): ... this. Updated all users.
9682 (init_record_ops): Renamed to ...
9683 (init_record_full_ops): ... this. Updated all users.
9684 (record_core_resume): Renamed to ...
9685 (record_full_core_resume): ... this. Updated all users.
9686 (record_core_kill): Renamed to ...
9687 (record_full_core_kill): ... this. Updated all users.
9688 (record_core_fetch_registers): Renamed to ...
9689 (record_full_core_fetch_registers): ... this. Updated all users.
9690 (record_core_prepare_to_store): Renamed to ...
9691 (record_full_core_prepare_to_store): ... this. Updated all users.
9692 (record_core_store_registers): Renamed to ...
9693 (record_full_core_store_registers): ... this. Updated all users.
9694 (record_core_xfer_partial): Renamed to ...
9695 (record_full_core_xfer_partial): ... this. Updated all users.
9696 (record_core_insert_breakpoint): Renamed to ...
9697 (record_full_core_insert_breakpoint): ... this. Updated all users.
9698 (record_core_remove_breakpoint): Renamed to ...
9699 (record_full_core_remove_breakpoint): ... this. Updated all users.
9700 (record_core_has_execution): Renamed to ...
9701 (record_full_core_has_execution): ... this. Updated all users.
9702 (init_record_core_ops): Renamed to ...
9703 (init_record_full_core_ops): ... this. Updated all users.
9704 (cmd_record_restore): Renamed to ...
9705 (cmd_record_full_restore): ... this. Updated all users.
9706 (record_save_cleanups): Renamed to ...
9707 (record_full_save_cleanups): ... this. Updated all users.
9708 (cmd_record_start): Renamed to ...
9709 (cmd_record_full_start): ... this. Updated all users.
9710 (set_record_insn_max_num): Renamed to ...
9711 (set_record_full_insn_max_num): ... this. Updated all users.
9712 (set_record_command): Renamed to ...
9713 (set_record_full_command): ... this. Updated all users.
9714 (show_record_command): Renamed to ...
9715 (show_record_full_command): ... this. Updated all users.
9716 (_initialize_record): Renamed to ...
9717 (_initialize_record_full): ... this. Updated all users.
9718
d02ed0bb
MM
97192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9720
9721 * record.h: Split into this and ...
9722 * record-full.h: ... this.
9723 * record.c: Split into this and ...
9724 * record-full.c: ... this.
9725 * target.h (target_ops): Add new fields to_info_record,
9726 to_save_record, to_delete_record, to_record_is_replaying,
9727 to_goto_record_begin, to_goto_record_end, to_goto_record.
9728 (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 * target.c (target_info_record): New.
9737 (target_save_record): New.
9738 (target_supports_delete_record): New.
9739 (target_delete_record): New.
9740 (target_record_is_replaying): New.
9741 (target_goto_record_begin): New.
9742 (target_goto_record_end): New.
9743 (target_goto_record): New.
9744 * record.h: Declare struct cmd_list_element.
9745 (record_cmdlist): New declaration.
9746 (set_record_cmdlist): New declaration.
9747 (show_record_cmdlist): New declaration.
9748 (info_record_cmdlist): New declaration.
9749 (cmd_record_goto): New declaration.
9750 * record.c: Remove unnecessary includes.
9751 Include inferior.h.
9752 (cmd_record_goto): Remove declaration.
9753 (record_cmdlist): Now extern. Initialize.
9754 (set_record_cmdlist): Now extern. Initialize.
9755 (show_record_cmdlist): Now extern. Initialize.
9756 (info_record_cmdlist): Now extern. Initialize.
9757 (find_record_target): New.
9758 (require_record_target): New.
9759 (cmd_record_start): Update.
9760 (cmd_record_delete): Remove target-specific code.
9761 Call target_delete_record.
9762 (cmd_record_stop): Unpush any record target.
9763 (set_record_insn_max_num): Move to record-full.c
9764 (set_record_command): Add comment.
9765 (show_record_command): Add comment.
9766 (info_record_command): Update comment.
9767 Remove target-specific code.
9768 Call the record target's to_info_record.
9769 (cmd_record_start): New.
9770 (cmd_record_goto): Now extern.
9771 Remove target-specific code.
9772 Call target_goto_begin, target_goto_end, or target_goto.
9773 (_initialize_record): Move record target ops initialization to
9774 record-full.c.
9775 Change "record" command help text.
9776 Move "record restore", "record set", and "record show" commands to
9777 record-full.c.
9778 * Makefile.in (SFILES): Add record-full.c.
9779 (HFILES_NO_SRCDIR): Add record-full.h.
9780 (COMMON_OBS): Add record-full.o.
9781 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9782 * arm-tdep.c: Include record-full.h.
9783 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9784 * i386-tdep.c: Include record-full.h.
9785 * infrun.c: Include record-full.h.
9786 * linux-record.c: Include record-full.h.
9787 * moxie-tdep.c: Include record-full.h.
9788 * record-full.c: Include record-full.h.
9789 Change module comment.
9790 (set_record_full_cmdlist): New.
9791 (show_record_full_cmdlist): New.
9792 (record_full_cmdlist): New.
9793 (record_goto_insn): New declaration.
9794 (record_save): New declaration.
9795 (record_check_insn_num): Change query string.
9796 (record_info): New.
9797 (record_delete): New.
9798 (record_is_replaying): New.
9799 (record_goto_entry): New.
9800 (record_goto_begin): New.
9801 (record_goto_end): New.
9802 (record_goto): New.
9803 (init_record_ops): Update.
9804 (init_record_core_ops): Update.
9805 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9806 (cmd_record_start): New.
9807 (set_record_insn_max_num): Moved from record.c
9808 (set_record_full_command): New.
9809 (show_record_full_command): New.
9810 (_initialize_record_full): New.
9811
b48d48eb
MM
98122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9813
9814 * target.h (add_deprecated_target_alias): New.
9815 * target.c (add_deprecated_target_alias): New.
9816
a950d57c
MM
98172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9818
9819 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9820 and signal.h.
9821 (linux_supports_btrace): Add kernel and
9822 cpuid check.
9823 (kernel_supports_btrace): New function.
9824 (cpu_supports_btrace): New function.
9825 (intel_supports_btrace): New function.
9826
9accd112
MM
98272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9828
9829 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9830 * remote.c: Include btrace.h.
9831 (struct btrace_target_info): New struct.
9832 (remote_supports_btrace): New function.
9833 (send_Qbtrace): New function.
9834 (remote_enable_btrace): New function.
9835 (remote_disable_btrace): New function.
9836 (remote_teardown_btrace): New function.
9837 (remote_read_btrace): New function.
9838 (init_remote_ops): Add btrace ops.
9839 (enum <unnamed>): Add btrace packets.
9840 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9841 (_initialize_remote): Add packet configuration for branch tracing.
9842
c12a2917
MM
98432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9844
9845 * features/btrace.dtd: New file.
9846 * Makefile.in (XMLFILES): Add btrace.dtd.
9847 * btrace.h (parse_xml_btrace): New declaration.
9848 * btrace.c: Include xml-support.h.
9849 (parse_xml_btrace): New function.
9850 (parse_xml_btrace_block): New function.
9851 (block_attributes): New struct.
9852 (btrace_attributes): New struct.
9853 (btrace_children): New struct.
9854 (btrace_elements): New struct.
9855
3e3aea48
MM
98562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9857
9858 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9859 (amd64_linux_enable_btrace): New.
9860 (amd64_linux_disable_btrace): New.
9861 (amd64_linux_teardown_btrace): New.
9862 (_initialize_amd64_linux_nat): Initialize btrace ops.
9863 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9864 (i386_linux_enable_btrace): New.
9865 (i386_linux_disable_btrace): New.
9866 (i386_linux_teardown_btrace): New.
9867 (_initialize_i386_linux_nat): Initialize btrace ops.
9868 * config/i386/linux.mh: Add linux-btrace.o.
9869 * config/i386/linux64.mh: Add linux-btrace.o.
9870
7c97f91e
MM
98712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9872
9873 * common/linux_btrace.h: New file.
9874 * common/linux_btrace.c: New file.
9875 * Makefile.in (SFILES): Add btrace.c.
9876 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9877 (COMMON_OBS): Add btrace.o.
9878 (linux-btrace.o): New rule.
9879
1999790b 98802013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9881
9882 * target.h: Include btrace.h.
9883 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9884 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9885 * target.c (target_supports_btrace): New function.
9886 (target_enable_btrace): New function.
9887 (target_disable_btrace): New function.
9888 (target_teardown_btrace): New function.
9889 (target_read_btrace): New function.
9890 * btrace.h: New file.
9891 * btrace.c: New file.
9892 * Makefile.in: Add btrace.c.
9893 * gdbthread.h: Include btrace.h.
9894 (struct thread_info): Add btrace field.
9895 * thread.c: Include btrace.h.
9896 (clear_thread_inferior_resources): Call target_teardown_btrace.
9897 * common/btrace-common.h: New file.
9898
61a31a67
JK
98992013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9900
9901 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9902 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9903 kill_status to outer block.
9904
05c56a9d
JK
99052013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9906
9907 Fix entry-values if the callee called a noreturn function.
9908 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9909 get_frame_address_in_block. Add new comment.
9910
9112db09
JK
99112013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9912
9913 Fix entry-values in C++ across CUs.
9914 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9915 lookup_minimal_symbol. Add a comment.
9916 * dwarf2read.c
9917 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9918 DW_AT_linkage_name.
9919
9b67fcec
YQ
99202013-03-08 Yao Qi <yao@codesourcery.com>
9921
9922 * tracepoint.c (_initialize_tracepoint): Indent the code.
9923
6221be90
PA
99242013-03-08 Pedro Alves <palves@redhat.com>
9925
9926 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9927 (parse_find_args, find_command): Change type of pattern buffer
9928 locals to 'gdb_byte *'.
9929
be9a119c 99302013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9931 Hafiz Abid Qadeer <abidh@codesourcery.com>
9932
9933 * NEWS: Mention set and show trace-buffer-size commands.
9934 Mention new packet.
9935 * target.h (struct target_ops): New method
9936 to_set_trace_buffer_size.
9937 (target_set_trace_buffer_size): New macro.
9938 * target.c (update_current_target): Set up new method.
9939 * tracepoint.c (trace_buffer_size): New global.
9940 (start_tracing): Send it to the target.
9941 (set_trace_buffer_size): New function.
9942 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9943 * remote.c (remote_set_trace_buffer_size): New function.
9944 (_initialize_remote): Use it.
9945 (QTBuffer:size) New remote command.
9946 (PACKET_QTBuffer_size): New enum.
9947 (remote_protocol_features): Add an entry for
9948 PACKET_QTBuffer_size.
9949
7da3ab79
TT
99502013-03-08 Tom Tromey <tromey@redhat.com>
9951
9952 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9953 variable.
9954
0c1f71e7
PA
99552013-03-07 Pedro Alves <palves@redhat.com>
9956
9957 * target.c (target_read_stralloc, target_fileio_read_alloc):
9958 *Cast pointer to 'gdb_byte *' in target call.
9959
c8af03a2
PA
99602013-03-07 Pedro Alves <palves@redhat.com>
9961
9962 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9963 call.
9964
529480d0
KS
99652013-03-07 Keith Seitz <keiths@redhat.com>
9966
9967 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9968 (trace_pass_command): Likewise.
9969 * cli/cli-cmds.c: Include cli/cli-utils.h.
9970 (source_command): Use skip-spaces.
9971 (disassemble_command): Likewise.
9972 * findcmd.c: Include cli/cli-utils.h.
9973 (parse_find_args): Use skip_spaces.
9974 * go32-nat.c: Include cli/cli-utils.h.
9975 (go32_sldt): Use skip_spaces.
9976 (go32_sgdt): Likewise.
9977 (go32_sidt): Likewise.
9978 (go32_pde): Likewise.
9979 (go32_pte): Likewise.
9980 (go32_pte_for_address): Likewise.
9981 * infcmd.c: Include cli/cli-utils.h.
9982 (registers_info): Use skip_spaces.
9983 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9984 (linux_info_proc): Likewise.
9985 * linux-thread-db.c: Include cli/cli-utils.h.
9986 (info_auto_load_libthread_db): Use skip_spaces_const.
9987 * m32r-rom.c: Include cli/cli-utils.h.
9988 (m32r_upload_command): Use skip_spaces.
9989 * maint.c: Include cli/cli-utils.h.
9990 (maintenance_translate_address): Use skip_spaces.
9991 * mi/mi-parse.c: Include cli/cli-utils.h.
9992 (mi_parse_argv): Use skip_spaces.
9993 (mi_parse): Likewise.
9994 * minsyms.c: Include cli/cli-utils.h.
9995 (msymbol_hash_iw): Use skip_spaces_const.
9996 * objc-lang.c: Include cli/cli-utils.h.
9997 (parse_selector): Use skip_spaces.
9998 (parse_method): Likewise.
9999 * python/python.c: Include cli/cli-utils.h.
10000 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10001 (python_command)[HAVE_PYTHON]: Likewise.
10002 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10003 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10004 (m32r_load): Use skip_spaces.
10005 * serial.c: Include cli/cli-utils.h.
10006 (serial_open): Use skip_spaces_const.
10007 * stack.c: Include cli/cli-utils.h.
10008 (parse_frame_specification_1): Use skip_spaces_const.
10009 * symfile.c: Include cli/cli-utils.h.
10010 (set_ext_lang_command): Use skip_spaces.
10011 * symtab.c: Include cli/cli-utils.h.
10012 (rbreak_command): Use skip_spaces.
10013 * thread.c (thread_name_command): Use skip_spaces.
10014 * tracepoint.c (validate_actionline): Use skip_spaces.
10015 (encode_actions_1): Likewise.
10016 (trace_find_range_command): Likewise.
10017 (trace_find_outside_command): Likewise.
10018 (trace_dump_actions): Likewise.
10019
ac91cd70
PA
100202013-03-07 Pedro Alves <palves@redhat.com>
10021
10022 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10023 * expprint.c (print_subexp_standard): Likewise.
10024 * utils.c (host_char_to_target): Likewise.
10025 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10026 * varobj.c (value_get_print_value): Change type of local to char*.
10027 Cast it gdb_byte * in call to language printer.
10028
2898e560
PA
100292013-03-07 Pedro Alves <palves@redhat.com>
10030
10031 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10032 gdb_byte *'.
10033 (make_wchar_iterator): Remove cast to char*.
10034 (wchar_iterate): Change type of local.
10035
a09b4448
PA
100362013-03-07 Pedro Alves <palves@redhat.com>
10037
10038 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10039 for 'regcache->register_status'.
10040
20ced3e4
PA
100412013-03-07 Pedro Alves <palves@redhat.com>
10042
c2d6a675 10043 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10044 int.
10045
fe106009
PA
100462013-03-07 Pedro Alves <palves@redhat.com>
10047
10048 * stap-probe.c (handle_stap_probe): Add cast to char*.
10049
8ac2c12b
PA
100502013-03-07 Pedro Alves <palves@redhat.com>
10051
10052 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10053 RECORD_MSGRCV>: Pass a signed variable to
10054 regcache_raw_read_signed, instead of an unsigned one.
10055
99f0a309
PA
100562013-03-07 Pedro Alves <palves@redhat.com>
10057
10058 * remote-notif.c (notif_debug): Change type to int.
10059 * remote-notif.h (notif_debug): Likewise.
10060
964b8317
PA
100612013-03-07 Pedro Alves <palves@redhat.com>
10062
10063 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10064
f0cc8ad4
PA
100652013-03-07 Pedro Alves <palves@redhat.com>
10066
10067 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10068 * remote.h (hex2bin, bin2hex): ... here.
10069 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10070
77dec115
EZ
100712013-03-07 Eli Zaretskii <eliz@gnu.org>
10072
10073 * utils.c (initialize_utils): Improve doc strings of "set/show
10074 width", "set/show height", and "set/show pagination".
10075
741d92cf
KS
100762013-03-06 Keith Seitz <keiths@redhat.com>
10077
10078 * ax-gdb.c (gen_printf): Make FORMAT const.
10079 * ax-gdb.h (gen_printf): Likewise.
10080 * ax-general.c (ax_string): Make STR const.
10081 * ax.h (ax_string): Likewise.
10082
7b6c814e
DE
100832013-03-06 Doug Evans <dje@google.com>
10084
10085 * elfread.c (elf_symfile_read): Move debugging printf to more
10086 logical location.
10087
634334ab
PA
100882013-03-06 Pedro Alves <palves@redhat.com>
10089
10090 * python/py-utils.c (target_string_to_unicode): Delete function.
10091 * python/python-internal.h (target_string_to_unicode): Delete
10092 declaration.
10093
e482a1a7
PM
100942013-03-06 Pierre Muller <muller@sourceware.org>
10095
10096 * linespec.c (get_current_search_block): ARI fix, use (void)
10097 for empty parameter list.
10098
4eeaa230
DE
100992013-03-05 Doug Evans <dje@google.com>
10100
10101 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10102 of old ada_lookup_symbol_list. In !full_search case, don't
10103 search superblocks.
10104 (ada_lookup_symbol_list): Delete arg full_search, all callers
10105 updated. Call ada_lookup_symbol_list_worker.
10106 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10107 * ada-lang.h (ada_lookup_symbol_list): Update.
10108 * language.h (language_defn): Update comment for
10109 la_iterate_over_symbols.
10110 * linespec.c (iterate_over_file_blocks): New function.
10111 (iterate_over_all_matching_symtabs): Call it.
10112 (lookup_prefix_sym): Ditto.
10113 (get_current_search_block): New function.
10114 (get_search_block): Delete.
10115 (find_label_symbols): Call get_current_search_block.
10116 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10117 * symtab.c (iterate_over_symbols): Don't search superblocks.
10118
b69b1fb1
YQ
101192013-03-05 Yao Qi <yao@codesourcery.com>
10120
10121 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10122 parameter VAR's type from "unsigned int" to "int".
10123 * command.h (var_zuinteger_unlimited): Update its comments.
10124 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10125
3c095f49
CV
101262013-03-05 Corinna Vinschen <vinschen@redhat.de>
10127
10128 * NEWS: Mention new target x86_64-*-cygwin*.
10129
b5b0b0af
CV
101302013-03-05 Corinna Vinschen <vinschen@redhat.de>
10131
10132 * configure.host: Add x86_64-*-cygwin* as host.
10133 * configure.tgt: Add x86_64-*-cygwin* as target.
10134 * config/i386/cygwin64.mh: New file.
10135
f6f99966
JK
101362013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10137
10138 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10139
33f448b1
JK
101402013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10141
10142 * linespec.c (struct linespec_canonical_name): New.
10143 (struct linespec_state): Change canonical_names type to it.
10144 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10145 xrealloc element size. Initialize the different CANONICAL fields.
10146 (canonical_to_fullform): New.
10147 (filter_results): Use it. Add variables canonical, fullform and
10148 cleanup.
10149 (struct decode_line_2_item, decode_line_2_compare_items): New.
10150 (decode_line_2): Remove variables iter and item_names, add variables
10151 items and items_count. Modify the code for these new variables.
10152
feb14725
CV
101532013-03-04 Corinna Vinschen <vinschen@redhat.com>
10154
10155 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10156 calling do_cleanup.
10157
e83b17ba
HZ
101582013-03-04 Luis Machado <lgustavo@codesourcery.com>
10159
10160 * tracepoint.c (build_traceframe_info): Add code for byte order.
10161
a2d13a0d
KB
101622013-03-02 Kevin Buettner <kevinb@redhat.com>
10163
8dddcae8
KB
10164 * v850-tdep.c: (v850e2_register_name): Revise system register
10165 names to match current V850E2M architecture specifications.
10166 Update register number enum comments too.
f5aee5ee 10167
d79e58d8
JW
101682013-03-01 Jiong Wang <jiwang@tilera.com>
10169 Pedro Alves <palves@redhat.com>
10170
10171 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10172 to END_ADDR.
10173 (tilegx_skip_prologue): Limit prologue analysis to section end.
10174
c4be5165
JK
101752013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10176
10177 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10178 use it.
10179
e362b510
PA
101802013-03-01 Pedro Alves <palves@redhat.com>
10181
10182 Use gdb_byte for bytes from the program being debugged.
10183
10184 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10185 Change type of local 'buf' to gdb_byte.
10186 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10187 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10188 * cris-tdep.c (cris_sigcontext_addr)
10189 (cris_sigtramp_frame_unwind_cache): Likewise.
10190 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10191 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10192 Likewise.
10193 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10194 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10195 (hppa32_hpux_search_dummy_call_sequence)
10196 (hppa_hpux_supply_save_state): Likewise.
10197 * hppa-linux-tdep.c (insns_match_pattern)
10198 (hppa_linux_find_global_pointer): Likewise.
10199 * hppa-tdep.c (hppa_in_function_epilogue_p)
10200 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10201 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10202 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10203 (i386fbsd_collect_uthread): Likewise.
10204 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10205 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10206 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10207 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10208 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10209 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10210 (ia64_libunwind_frame_prev_register)
10211 (ia64_libunwind_sigtramp_frame_this_id)
10212 (ia64_find_global_pointer_from_dynamic_section)
10213 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10214 (ia64_unwind_pc): Likewise.
10215 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10216 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10217 (m68hc11_extract_return_value): Likewise.
10218 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10219 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10220 (mep_get_insn, mep_push_dummy_call): Likewise.
10221 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10222 (mips_linux_in_dynsym_stub): Likewise.
10223 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10224 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10225 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10226 to gdb_byte.
10227 * remote-mips.c (mips_set_register): Likewise.
10228 * remote-sim.c (gdbsim_fetch_register): Likewise.
10229 * score-tdep.c (score7_fetch_inst): Change type of parameter
10230 'memblock' and local 'buf' to gdb_byte.
10231 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10232 Change type of local 'buf' to gdb_byte. Adjust.
10233 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10234 to gdb_byte**.
10235 (score7_analyze_prologue): Change type of 'memblock' and
10236 'memblock_ptr' locals to gdb_byte*.
10237 * sh64-tdep.c (sh64_extract_return_value)
10238 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10239 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10240 * solib-pa64.c (pa64_solib_create_inferior_hook)
10241 (pa64_open_symbol_file_object): Remove local 'buf'.
10242 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10243 (som_open_symbol_file_object): Likewise.
10244 * solib-spu.c (spu_current_sos): Likewise.
10245 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10246 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10247 (spu_store_registers): Likewise.
10248 * target.c (debug_print_register): Likewise.
10249 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10250 * xstormy16-tdep.c (xstormy16_store_return_value)
10251 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10252 (xstormy16_find_jmp_table_entry): Likewise.
10253
75cc61ca 102542013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10255
10256 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10257 (tilegx_gdbarch_init): Install it.
10258
ddb08e9c
TT
102592013-02-28 Tom Tromey <tromey@redhat.com>
10260
10261 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10262 PyLong_Check.
10263
62d7fb51
DE
102642013-02-28 Doug Evans <dje@google.com>
10265
10266 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10267 * python/python.c (gdbpy_find_pc_line): Ditto.
10268
c4a9e8b4
TT
102692013-02-28 Tom Tromey <tromey@redhat.com>
10270
10271 * contrib/excheck.py: New file.
10272 * contrib/exsummary.py: New file.
10273 * contrib/gcc-with-excheck: New file.
10274
7f6a5dde
TT
102752013-02-28 Tom Tromey <tromey@redhat.com>
10276
10277 * python/python.c (gdbpy_print_stack): Call begin_line and
10278 fprintf_filtered inside TRY_CATCH.
10279
9e974e55
TT
102802013-02-28 Tom Tromey <tromey@redhat.com>
10281
10282 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10283 inside TRY_CATCH.
10284
dd5fa3e7
TT
102852013-02-28 Tom Tromey <tromey@redhat.com>
10286
10287 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10288 frame_object_to_frame_info inside TRY_CATCH.
10289
86a3263f
TT
102902013-02-28 Tom Tromey <tromey@redhat.com>
10291
10292 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10293 TRY_CATCH.
10294
81b52a3a
TT
102952013-02-28 Tom Tromey <tromey@redhat.com>
10296
10297 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10298
d50a0ce2
CV
102992013-02-27 Corinna Vinschen <vinschen@redhat.com>
10300
10301 * windows-nat.c: Throughout, fix format strings and casts of
10302 printf-like functions to avoid type related warnings on all
10303 platforms.
10304 (handle_output_debug_string): Fetch context information address
10305 from debug string using string_to_core_addr.
10306
e1f58301
JW
103072013-02-27 Jiong Wang <jiwang@tilera.com>
10308
10309 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10310 * regformats/reg-tilegx32.dat: New.
10311
4fcd89fc
JW
103122013-02-27 Jiong Wang <jiwang@tilera.com>
10313
10314 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10315
748d24e6
JW
103162013-02-27 Jiong Wang <jiwang@tilera.com>
10317
10318 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10319
6c8e944d
YQ
103202013-02-27 Yao Qi <yao@codesourcery.com>
10321 Pedro Alves <palves@redhat.com>
10322
10323 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10324 pc/tp/range/outside, look for the next trace frame instead of
10325 always starting from frame 0.
6c8e944d 10326
acd7db30
AG
103272013-02-26 Anthony Green <green@moxielogic.com>
10328
10329 * configure.tgt: Add support for moxie-*-rtems* target.
10330
025e6dce
PA
103312013-02-25 Pedro Alves <palves@redhat.com>
10332
10333 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10334 warning text.
10335
ca9c94ef
MR
103362013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10337
10338 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10339 if $fp is used as the virtual frame pointer.
10340
24c274a1
AM
103412013-02-23 Alan Modra <amodra@gmail.com>
10342
10343 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10344 symbol size.
10345 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10346 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10347 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10348 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10349
bfada189
JK
103502013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10351
10352 Code cleanup.
10353 * elfread.c (build_id_bfd_get): Make the return type const.
10354 (build_id_verify): Make the check parameter const.
10355 (build_id_to_debug_filename): Make the build_id parameter and variable
10356 data const.
10357 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10358
c0355132
AM
103592013-02-21 Alan Modra <amodra@gmail.com>
10360
10361 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10362
9f44fbc0
SCR
103632013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10364
10365 Add a new method 'disassemble' to gdb.Architecture class.
10366 * python/py-arch.c (archpy_disassmble): Implementation of the
10367 new method gdb.Architecture.disassemble.
10368 (arch_object_methods): Add entry for the new method.
10369
b74ea3eb
JW
103702013-02-20 Jiong Wang <jiwang@tilera.com>
10371
10372 * MAINTAINERS (Write After Approval): Add myself to the list.
10373
61a672f1
PA
103742013-02-19 Pedro Alves <palves@redhat.com>
10375
10376 Garbage collect 'struct monitor_ops'::load_routine.
10377
10378 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10379 * monitor.c (monitor_load): No longer call
10380 current_monitor->load_routine.
10381 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10382 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10383 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10384
40e397df
PA
103852013-02-19 Pedro Alves <palves@redhat.com>
10386
10387 PR gdb/15161
10388
10389 Harmonize with generic_load.
10390
10391 * monitor.c: Include "readline/readline.h".
10392 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10393 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10394 long/strtol for the 'load_offset' local. Error out if no argument
10395 is given or if too many arguments are given. Tilde expand the
10396 passed in file name.
10397
f698ca8e
KT
103982013-02-19 Kai Tietz <ktietz@redhat.com>
10399
10400 PR gdb/15161
10401 * symfile.c (load_section_data): Change type of load_offset
10402 to CORE_ADDR.
10403 (generic_load): User strtoulst instead of strtoul for conversion
10404 of load_offset.
10405
3361b059
WL
104062013-02-19 Jiong Wang <jiwang@tilera.com>
10407
10408 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10409 for return address, "lr" register, saved on stack.
10410 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10411 after we invoke tilegx_analyze_prologue.
10412
3e9d5130
WL
104132013-02-19 Jiong Wang <jiwang@tilera.com>
10414
bb1bcd86
WL
10415 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10416
3361b059 104172013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10418
b74ea3eb 10419 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10420
4aaf2503
WL
104212013-02-19 Jiong Wang <jiwang@tilera.com>
10422
b74ea3eb 10423 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10424 (tilegx_write_pc): New function.
10425 (tilegx_cannot_reference_register): Return zero if REGNO
10426 is TILEGX_FAULTNUM_REGNUM.
10427 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10428 (tilegx_register_name): Add handling of "faultnum" register.
10429 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10430 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10431 handling of TILEGX_FAULTNUM_REGNUM.
10432 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10433
bc23a956
WL
104342013-02-19 Jiong Wang <jiwang@tilera.com>
10435
10436 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10437 should be aligned to 64bit.
bc23a956 10438
42f45f1a
KT
104392013-02-19 Kai Tietz <ktietz@redhat.com>
10440
10441 * windows-nat.c (windows_xfer_memory): Fix debug-output
10442 for LLP64.
10443
6ce4c112
LL
104442013-02-19 Lei Liu <lei.liu2@windriver.com>
10445
10446 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10447 Don't check DSP register number if HAVE_DSP is not set.
10448
30e8ee25
AM
104492013-02-19 Alan Modra <amodra@gmail.com>
10450
10451 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10452 throughout file instead.
10453 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10454 Don't xmalloc return value.
10455 (build_id_verify): Similarly. Don't xfree.
10456 (build_id_to_debug_filename): Update.
10457 (find_separate_debug_file_by_buildid): Update, don't xfree.
10458
4c9ad8c2
TT
104592013-02-18 Tom Tromey <tromey@redhat.com>
10460
10461 PR gdb/15102:
10462 * dwarf2read.c (read_subrange_type): Use result of
10463 'check_typedef'.
10464
983dc440
YQ
104652013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10466
10467 * frame.c: Remove one extra white space after #include
10468 directive.
10469
7fb2b84a
JK
104702013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10471
10472 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10473
edceb2a9
JK
104742013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10475
10476 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10477 and dir commands into an if block.
10478
e81b7af8
TT
104792013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10480
10481 * python/py-breakpoint (struct pybp_code): Use int instead of
10482 enum type_code.
10483
f5911ea1
HAQ
104842013-02-15 Pedro Alves <pedro@codesourcery.com>
10485 Hafiz Abid Qadeer <abidh@codesourcery.com>
10486
10487 * NEWS: Mention new field "trace-file".
10488 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10489 (tfile_open): Record the trace file's filename in the trace
10490 status.
10491 (tfile_files_info): Mention the name of the trace file.
10492 Check the "filename" field explicitely.
10493 (trace_status_command): Explicitely check "filename" field.
10494 (trace_find_command): Ditto.
10495 (trace_find_pc_command): Ditto.
10496 (trace_find_tracepoint_command): Ditto.
10497 (trace_find_line_command): Ditto.
10498 (trace_find_range_command): Ditto.
10499 (trace_find_outside_command): Ditto.
10500 * tracepoint.h (struct trace_status) <from_file>: Rename it
10501 to "filename" and make it hold the trace file's filename
10502 instead of a boolean.
10503 * remote.c (remote_get_trace_status): Initialize "filename"
10504 field with NULL instead of 0.
10505
796cb314
YQ
105062013-02-15 Yao Qi <yao@codesourcery.com>
10507
10508 * remote.c: Fix a typo.
10509
42e79b1d
PM
105102013-02-14 Pierre Muller <muller@sourceware.org>
10511
10512 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10513
baea0dae
PA
105142013-02-14 Pedro Alves <palves@redhat.com>
10515
10516 * utils.c (savestring): Don't #undef it. Move function to
10517 common/common-utils.c.
10518 * common/common-utils.c: Include gdb_string.h.
10519 (savestring): Move here from utils.c.
10520 * common/common-utils.h (savestring): Declare.
10521
57c3b6ed
PA
105222013-02-14 Pedro Alves <palves@redhat.com>
10523
10524 * utils.c (savestring): Rename parameter 'size' to 'len'.
10525
d6c44983
YZ
105262013-02-14 Pedro Alves <palves@redhat.com>
10527 Yufeng Zhang <yufeng.zhang@arm.com>
10528
10529 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10530 (aarch64_inferior_data, struct aarch64_inferior_data):
10531 Delete.
10532 (struct aarch64_process_info): New.
10533 (aarch64_process_list): New global.
10534 (aarch64_find_process_pid, aarch64_add_process)
10535 (aarch64_process_info_get): New functions.
10536 (aarch64_inferior_data_get): Delete.
10537 (aarch64_process_info_get): New function.
10538 (aarch64_forget_process): New function.
10539 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10540 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10541 aarch64_get_debug_reg_state.
10542 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10543 instead of linux_nat_iterate_watchpoint_lwps.
10544 (aarch64_linux_new_fork): New function.
10545 (aarch64_linux_child_post_startup_inferior): Use
10546 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10547 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10548 (aarch64_linux_remove_hw_breakpoint)
10549 (aarch64_handle_aligned_watchpoint)
10550 (aarch64_handle_unaligned_watchpoint)
10551 (aarch64_linux_insert_watchpoint)
10552 (aarch64_linux_remove_watchpoint)
10553 (aarch64_linux_stopped_data_address): Adjust to pass the current
10554 process id to aarch64_debug_reg_state.
10555 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10556 linux_nat_new_fork hook, and aarch64_forget_process as
10557 linux_nat_forget_process hook; remove the call to
10558 register_inferior_data_with_cleanup.
10559
4819b3f8
PA
105602013-02-14 Pedro Alves <palves@redhat.com>
10561
10562 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10563 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10564 lval_memory.
10565
1773c82c
HAQ
105662013-02-14 Pedro Alves <pedro@codesourcery.com>
10567 Hafiz Abid Qadeer <abidh@codesourcery.com>
10568
10569 * tracepoint.h (validate_trace_state_variable_name): Declare.
10570 * tracepoint.c (validate_trace_state_variable_name): New.
10571 (trace_variable_command): Parse the trace state variable's name
10572 without using parse_expression. Do several validations.
10573 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10574 trace state variable's name with parse_expression. Validate it.
10575
53778a97
YQ
105762013-02-14 Yao Qi <yao@codesourcery.com>
10577
10578 * infcmd.c (breakpoint_proceeded): Remove it.
10579
7b3ae3a6
YQ
105802013-02-14 Yao Qi <yao@codesourcery.com>
10581
10582 * tracepoint.c (end_actions_pseudocommand): Make it static.
10583 (while_stepping_pseudocommand): Likewise.
10584 * tracepoint.h (end_actions_pseudocommand): Remove the
10585 declaration.
10586 (while_stepping_pseudocommand): Likewise.
10587
64580925
YQ
105882013-02-14 Yao Qi <yao@codesourcery.com>
10589
10590 * cli/cli-decode.c (help_cmd): Remove the declaration of
10591 "cmdlist".
10592 (help_all): Likewise.
10593
26cb8b7c
PA
105942013-02-13 Pedro Alves <palves@redhat.com>
10595
10596 * amd64-linux-nat.c (update_debug_registers_callback):
10597 Update comment.
10598 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10599 iterate_over_lwps.
10600 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10601 i386_debug_reg_state.
10602 (amd64_linux_new_fork): New function.
10603 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10604 linux_nat_new_fork hook, and i386_forget_process as
10605 linux_nat_forget_process hook.
10606 * i386-linux-nat.c (update_debug_registers_callback):
10607 Update comment.
a8256ea1 10608 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10609 iterate_over_lwps.
10610 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10611 i386_debug_reg_state.
10612 (i386_linux_new_fork): New function.
10613 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10614 linux_nat_new_fork hook, and i386_forget_process as
10615 linux_nat_forget_process hook.
10616 * i386-nat.c (i386_init_dregs): Delete.
10617 (i386_inferior_data, struct i386_inferior_data):
10618 Delete.
10619 (struct i386_process_info): New.
10620 (i386_process_list): New global.
10621 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10622 New functions.
10623 (i386_inferior_data_get): Delete.
10624 (i386_process_info_get): New function.
10625 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10626 (i386_forget_process): New function.
10627 (i386_cleanup_dregs): Rewrite.
10628 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10629 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10630 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10631 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10632 to i386_debug_reg_state.
10633 (i386_use_watchpoints): Don't register inferior data.
10634 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10635 adjust comment.
10636 (i386_forget_process): Declare.
10637 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10638 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10639 New static globals.
10640 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10641 (add_initial_lwp): New, factored out from ...
10642 (add_lwp): ... this. Don't check the number of lwps before
10643 calling linux_nat_new_thread.
10644 (linux_nat_iterate_watchpoint_lwps): Delete.
10645 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10646 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10647 forks and vforks.
10648 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10649 initial lwp.
10650 (linux_nat_kill, linux_nat_mourn_inferior): Call
10651 linux_nat_forget_process.
10652 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10653 (linux_nat_forget_process): New functions.
10654 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10655 type.
10656 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10657 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10658 types.
10659 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10660 (linux_nat_forget_process): New declarations.
10661
10662 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10663 (amd64fbsd_mourn_inferior): New function.
10664 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10665 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10666
5befea72
MS
106672013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10668
55015247
YQ
10669 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10670 Adding _().
5befea72 10671
1d3ffd6b
MS
106722013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10673
10674 * aarch64-linux-nat.c (debug_reg_change_callback)
10675 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10676 %s and phex().
10677
6eb04473
MS
106782013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10679
10680 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10681 with LONGEST.
10682
a016fc87
HAQ
106832013-02-13 Pedro Alves <palves@redhat.com>
10684 Hafiz Abid Qadeer <abidh@codesourcery.com>
10685
10686 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10687
e234dfaf
TT
106882013-02-12 Tom Tromey <tromey@redhat.com>
10689
10690 PR symtab/11464:
10691 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10692 NAME return.
10693 (classify_inner_name): Remove 'first_name' argument, add
10694 'context'. Remove unused variable.
10695 (yylex): Explicitly maintain the context type. Exit loop earlier
10696 if NAME result is seen.
10697
0b1afbb3
PA
106982013-02-12 Pedro Alves <palves@redhat.com>
10699
10700 * amd64-darwin-tdep.c: Add (C) after Copyright.
10701 * cli/cli-cmds.h: Ditto.
10702 * cli/cli-decode.c: Ditto.
10703 * cli/cli-decode.h: Ditto.
10704 * cli/cli-dump.c: Ditto.
10705 * cli/cli-dump.h: Ditto.
10706 * cli/cli-interp.c: Ditto.
10707 * cli/cli-logging.c: Ditto.
10708 * cli/cli-script.c: Ditto.
10709 * cli/cli-script.h: Ditto.
10710 * cli/cli-setshow.c: Ditto.
10711 * cli/cli-setshow.h: Ditto.
10712 * cli/cli-utils.c: Ditto.
10713 * cli/cli-utils.h: Ditto.
10714 * config/alpha/nm-osf3.h: Ditto.
10715 * config/djgpp/djconfig.sh: Ditto.
10716 * config/i386/nm-fbsd.h: Ditto.
10717 * config/i386/nm-i386gnu.h: Ditto.
10718 * config/nm-linux.h: Ditto.
10719 * config/nm-nto.h: Ditto.
10720 * config/rs6000/nm-rs6000.h: Ditto.
10721 * config/sparc/nm-sol2.h: Ditto.
10722 * darwin-nat-info.c: Ditto.
10723 * dfp.c: Ditto.
10724 * dfp.h: Ditto.
10725 * gdb-demangle.h: Ditto.
10726 * i386-darwin-nat.c: Ditto.
10727 * i386-darwin-tdep.c: Ditto.
10728 * linux-fork.h: Ditto.
10729 * m32c-tdep.c: Ditto.
10730 * microblaze-linux-tdep.c: Ditto.
10731 * microblaze-rom.c: Ditto.
10732 * microblaze-tdep.c: Ditto.
10733 * microblaze-tdep.h: Ditto.
10734 * mips-linux-tdep.h: Ditto.
10735 * ppc-ravenscar-thread.c: Ditto.
10736 * ppc-ravenscar-thread.h: Ditto.
10737 * prologue-value.c: Ditto.
10738 * prologue-value.h: Ditto.
10739 * ravenscar-thread.c: Ditto.
10740 * ravenscar-thread.h: Ditto.
10741 * sparc-ravenscar-thread.c: Ditto.
10742 * sparc-ravenscar-thread.h: Ditto.
10743 * tilegx-linux-tdep.c: Ditto.
10744 * unwind_stop_reasons.def: Ditto.
10745 * windows-nat.h: Ditto.
10746 * xtensa-linux-tdep.c: Ditto.
10747 * xtensa-xtregs.c: Ditto.
10748 * regformats/regdat.sh: Ditto.
10749 * regformats/regdef.h: Ditto.
10750
6c01dd94
PA
107512013-02-12 Pedro Alves <palves@redhat.com>
10752
10753 * break-catch-sig.c: Update copyright years.
10754
b65a2bd9
SCR
107552013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10756
10757 Add support for a destructor for ui_out data and use it to
10758 provide a ui_out destructor.
10759 * ui-out.h: Declare the new ui_out destructor.
10760 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10761 * ui-out.c (default_data_destroy): Add a default data destructor
10762 which does nothing.
10763 (default_ui_out_impl): Set the new data_destroy field to
10764 default_data_destroy
10765 (uo_data_destroy): Local function which invokes the data
10766 destructor if present.
10767 (clear_table): Local function which clears the table data of a
10768 ui_out object.
10769 (ui_out_destroy): Public function which frees a ui_out object.
10770 (ui_out_table_end): Use the new clear_table function.
10771 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10772 NULL.
10773 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10774 to NULL.
10775
c2792f5a
DE
107762013-02-11 Doug Evans <dje@google.com>
10777
10778 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10779 (printf_decfloat): New function. Broken out from ui_printf.
10780 Remove unnecessary code to shift the entire format string down.
10781 (printf_pointer): New function.
10782 (ui_printf): Code to print C strings, wide C strings, decfloats,
10783 and pointers moved to separate functions.
10784
d9e98382
SDJ
107852013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10786
10787 * valops.c (value_assign): Handling bitfield offset in
10788 `lval_internalvar_component' case.
10789
4ff3ce77
DE
107902013-02-08 Doug Evans <dje@google.com>
10791
10792 * common/format.c (parse_format_string): Fix whitespace.
10793
901900c4
MGD
107942013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10795
10796 * stack.c (return_command): Work around uninitialized variable
10797 warning.
10798
b5dbc8d4
YZ
107992013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10800
10801 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10802 number of the registers from 36 to 34.
10803
51d66578
MS
108042013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10805
10806 * NEWS: Mention new AArch64 native and target support.
10807
176b1c95
MS
108082013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10809
10810 * MAINTAINERS (Write After Approval): Add myself.
10811
9d19df75
MS
108122013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10813 Marcus Shawcroft <marcus.shawcroft@arm.com>
10814 Nigel Stephens <nigel.stephens@arm.com>
10815 Yufeng Zhang <yufeng.zhang@arm.com>
10816
10817 * aarch64-linux-nat.c: New file.
10818 * config/aarch64/linux.mh: New file.
10819 * configure.host: Add AArch64.
10820 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10821
7e1e0340
DE
108222013-02-07 Doug Evans <dje@google.com>
10823
10824 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10825 disassemble command.
10826
45e25a36
MS
108272013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10828
10829 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10830 set_gdbarch_fetch_tls_load_module_address.
10831
bbfdfe1c
DM
108322013-02-06 David S. Miller <davem@davemloft.net>
10833
10834 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10835 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10836 * value.c (struct_return_convention): New function.
10837 (using_struct_return): Implement in terms of struct_return_convention.
10838 * value.h (struct_return_convention): Declare.
10839 * stack.c (return_command): Allow successful overriding of the return
10840 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10841
bc9abe4a
TT
108422013-02-06 Tom Tromey <tromey@redhat.com>
10843
10844 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10845 outside of TRY_CATCH.
10846
134a2066
YQ
108472013-02-06 Yao Qi <yao@codesourcery.com>
10848
10849 * mi/mi-interp.c: Include "tracepoint.h".
10850 (mi_tsv_modified): Declare.
10851 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10852 (mi_interpreter_init): Call observer_attach_tsv_modified.
10853 (mi_tsv_modified): New.
10854 (mi_tsv_created, mi_tsv_deleted): Update.
10855 * tracepoint.c (trace_variable_command): Call
10856 observer_notify_tsv_modified if the initial value of tsv is
10857 changed.
10858 (delete_trace_state_variable): Call
10859 observer_notify_tsv_deleted earlier.
10860 (trace_variable_command): Caller update.
10861 (create_tsv_from_upload): Likewise.
10862 * observer.sh: Declare "struct trace_state_variable".
10863
10864 * NEWS: Mention the new MI notification "=tsv-modified".
10865
59be2b6a
DE
108662013-02-05 Doug Evans <dje@google.com>
10867
10868 * completer.c (location_completer): Fix typo in comment.
10869
d30113d4
JK
108702013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10871
10872 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10873 ADDRESS sorted.
10874
14ac654f
MS
108752013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10876
10877 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10878 Refactor if statement to avoid trailing || operator.
10879
543bf33d
AT
108802013-02-05 Andreas Tobler <andreast@fgznet.ch>
10881
10882 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10883
dc18f110
AT
108842013-02-04 Andreas Tobler <andreast@fgznet.ch>
10885
10886 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10887 * configure.host: Add powerpc*-*-freebsd* target.
10888 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10889 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10890 * config/powerpc/fbsd.mh: New file.
10891
b3ac9c77
SDJ
108922013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10893 Denys Vlasenko <dvlasenk@redhat.com>
10894 Pedro Alves <palves@redhat.com>
10895
10896 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10897 (struct elf_internal_linux_prpsinfo): Forward declare.
10898 * gdbarch.h, gdbarch.c: Regenerate.
10899 * linux-tdep.c: Include `cli/cli-utils.h'.
10900 (linux_fill_prpsinfo): New function.
10901 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10902 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10903 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10904 depending on gdbarch pointer bitness.
10905 * ppc-linux-tdep.c: Include elf-bfd.h.
10906 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10907 on 32-bit.
10908
176eb98c
MS
109092013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10910 Marcus Shawcroft <marcus.shawcroft@arm.com>
10911 Nigel Stephens <nigel.stephens@arm.com>
10912 Yufeng Zhang <yufeng.zhang@arm.com>
10913
10914 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10915
cf0dbd6f
MS
109162013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10917 Marcus Shawcroft <marcus.shawcroft@arm.com>
10918 Nigel Stephens <nigel.stephens@arm.com>
10919 Yufeng Zhang <yufeng.zhang@arm.com>
10920
10921 * aarch64-newlib-tdep.c: New file.
10922 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10923 aarch64*-*-elf.
10924 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10925 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10926 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10927 * osabi.c (gdb_osabi_names): Add "Newlib".
10928
1ae3db19
MS
109292013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10930 Marcus Shawcroft <marcus.shawcroft@arm.com>
10931 Nigel Stephens <nigel.stephens@arm.com>
10932 Yufeng Zhang <yufeng.zhang@arm.com>
10933
10934 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10935 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10936 * aarch64-linux-tdep.c: New file.
10937 * aarch64-linux-tdep.h: New file.
10938 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10939 * configure.tgt: Add aarch64-none-linux-gnu.
10940
07b287a0
MS
109412013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10942 Marcus Shawcroft <marcus.shawcroft@arm.com>
10943 Nigel Stephens <nigel.stephens@arm.com>
10944 Yufeng Zhang <yufeng.zhang@arm.com>
10945
10946 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10947 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10948 (ALLDEPFILES): Add aarch64-tdep.c.
10949 * aarch64-tdep.c: New file.
10950 * aarch64-tdep.h: New file.
10951 * configure.tgt: Add AArch64.
10952 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10953 (aarch64-expedite): New definition.
10954 * features/aarch64-core.xml: New file.
10955 * features/aarch64-fpu.xml: New file.
10956 * features/aarch64-without-fpu.c: New file (generated).
10957 * features/aarch64-without-fpu.xml: New file.
10958 * features/aarch64.c: New file (generated).
10959 * features/aarch64.xml: New file.
10960 * regformats/aarch64-without-fpu.dat: New file (generated).
10961 * regformats/aarch64.dat: New file (generated).
10962
0f1b18ab
JK
109632013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10964
10965 * contrib/expect-read1.c: New file.
10966 * contrib/expect-read1.sh: New file.
10967
233d95b5
JK
109682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10969
10970 * dwarf2read.c (file_file_name): New function with code from
10971 file_full_name.
10972 (file_full_name): Move most of the code to file_file_name.
10973 (macro_start_file): Rename variable full_name to file_name and use
10974 file_file_name for it. Add comp_dir parameter to new_macro_table.
10975 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10976 macro_source_file->filename access by macro_source_fullname call.
10977 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10978 caller.
10979 * macrotab.c (struct macro_table): New field comp_dir.
10980 (macro_include): New variables link_fullname and source_fullname.
10981 Replace any macro_source_file->filename access by macro_source_fullname
10982 call.
10983 (macro_lookup_inclusion): Remove the partial filenames checking code.
10984 (check_for_redefinition): New variables source_fullname and
10985 found_key_fullname. Replace any macro_source_file->filename access by
10986 macro_source_fullname call.
10987 (macro_undef): New variables source_fullname and key_fullname. Replace
10988 any macro_source_file->filename access by macro_source_fullname call.
10989 (macro_lookup_definition): New variables retval and source_fullname.
10990 Replace any macro_source_file->filename access by macro_source_fullname
10991 call.
10992 (foreach_macro): New variable key_fullname. Replace any
10993 macro_source_file->filename access by macro_source_fullname call.
10994 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10995 macro_source_file->filename access by macro_source_fullname call.
10996 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10997 (macro_source_fullname): New function.
10998 * macrotab.h (struct macro_source_file): Extent the filename field
10999 comment.
11000 (new_macro_table): New parameter comp_dir, add a comment for it.
11001 (macro_source_fullname): new declaration.
11002
da235a7c
JK
110032013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11004
11005 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11006 this_real_name to outer block. Use it also for
11007 compare_filenames_for_search.
11008 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11009 with dw2_get_real_path for file_matcher, considering also
11010 BASENAMES_MAY_DIFFER.
11011 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11012
fbd9ab74
JK
110132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11014
11015 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11016 to the file_matcher parameter. Pass 0 to it.
11017 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11018 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11019 NULL psymtab_to_fullname result.
11020 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11021 an expected filename instead.
11022 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11023 file_matcher parameter. Call also psymtab_to_fullname, after newly
11024 considering BASENAMES_MAY_DIFFER.
11025 * source.c (rewrite_source_path): Remove static.
11026 * source.h (rewrite_source_path): New declaration.
11027 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11028 the expand_symtabs_matching field. Comment it.
11029 * symtab.c (file_matches): New function comment. Add parameter
11030 basenames, implement it.
11031 (search_symbols_file_matches): Add basenames parameter. Update the
11032 file_matches caller.
11033 (search_symbols): Match FILES also against symtab_to_fullname.
11034 Optimize it for BASENAMES_MAY_DIFFER.
11035
56d397a3
JK
110362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11037
11038 * source.c (print_source_lines_base): Print for TUI also "fullname".
11039 * tui/tui-data.c (init_content_element): Change tui_locator_element
11040 field to full_name.
11041 * tui/tui-data.h (struct tui_locator_element): Likewise.
11042 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11043 tui_update_locator_filename calls to tui_update_locator_fullname.
11044 Replace symtab->filename refererence by symtab_to_fullname call.
11045 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11046 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11047 field to full_name. Replace symtab->filename refererence by
11048 symtab_to_fullname call.
11049 (tui_show_symtab_source): Rename parameter to fullname. Change
11050 tui_locator_element field to full_name.
11051 * tui/tui-stack.c: Include source.h.
11052 (tui_set_locator_filename): Rename the declaration to ...
11053 (tui_set_locator_fullname): ... here. Rename its parameter to
11054 fullname, updates its comment.
11055 (tui_set_locator_info): Rename its parameter to fullname.
11056 (tui_set_locator_filename): Rename the definition to ...
11057 (tui_set_locator_fullname): ... here. Rename its parameter to
11058 fullname, updates its comment. Change tui_locator_element field to
11059 full_name.
11060 (tui_set_locator_info): Rename its parameter to fullname.
11061 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11062 (tui_update_locator_filename): Rename to ...
11063 (tui_update_locator_fullname): ... here. Rename callee to
11064 tui_set_locator_fullname.
11065 (tui_show_frame_info): Replace symtab->filename refererence by
11066 symtab_to_fullname call.
11067 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11068 (tui_update_locator_fullname): ... here.
11069 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11070 tui_update_locator_fullname. Replace symtab->filename refererence by
11071 symtab_to_fullname call.
11072 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11073 Rename the callee to tui_update_locator_fullname.
11074 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11075
05cba821
JK
110762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11077
11078 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11079 by symtab_to_filename_for_display calls.
11080 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11081 (clear_command): New variable sal_fullname, initialize it. Replace
11082 compare_filenames_for_search by filename_cmp with sal_fullname.
11083 (say_where, update_static_tracepoint): Replace symtab->filename
11084 refererences by symtab_to_filename_for_display calls.
11085 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11086 Likewise.
11087 * dwarf2read.c: Include source.h.
11088 (fixup_go_packaging): Replace symtab->filename refererences by
11089 symtab_to_filename_for_display calls.
11090 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11091 Replace symtab->filename refererences by symtab_to_filename_for_display
11092 calls.
11093 (create_sals_line_offset, convert_linespec_to_sals): New variable
11094 fullname, initialize it, replace symtab->filename reference by the
11095 variable.
11096 * linux-fork.c: Include source.h.
11097 (info_checkpoints_command): Replace symtab->filename refererences by
11098 symtab_to_filename_for_display calls.
11099 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11100 by symtab_to_filename_for_display calls.
11101 * mdebugread.c: Include source.h.
11102 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11103 symtab_to_filename_for_display calls.
11104 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11105 (mi_cmd_file_list_exec_source_files): Likewise.
11106 * printcmd.c: Include source.h.
11107 (build_address_symbolic): Replace symtab->filename refererences by
11108 symtab_to_filename_for_display calls.
11109 * psymtab.c (partial_map_symtabs_matching_filename)
11110 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11111 with psymtab_to_fullname.
11112 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11113 by symtab_to_filename_for_display calls.
11114 (stpy_get_filename): New variable filename, initialize it, use instead
11115 of symtab->filename refererences.
11116 (salpy_str): Make variable filename const char *. Replace
11117 symtab->filename refererences by symtab_to_filename_for_display calls.
11118 * skip.c: Include source.h and filenames.h.
11119 (skip_file_command): Remove const from the symtab variable. Replace
11120 symtab->filename refererences by symtab_to_fullname call.
11121 (function_name_is_marked_for_skip): New variables searched_for_fullname
11122 and fullname. Use them to search also with symtab's fullname.
11123 * source.c (find_source_lines): Replace symtab->filename refererences
11124 by symtab_to_filename_for_display calls.
11125 (print_source_lines_base): New variable filename, use it instead of
11126 symtab->filename. Replace symtab->filename refererences by
11127 symtab_to_filename_for_display calls.
11128 (line_info, forward_search_command): Replace symtab->filename
11129 refererences by symtab_to_filename_for_display calls.
11130 (reverse_search_command): Replace symtab->filename refererences by
11131 symtab_to_filename_for_display calls. New variable filename for it.
11132 * stack.c (frame_info): Likewise.
11133 * symmisc.c: Include source.h.
11134 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11135 (maintenance_info_symtabs): Replace symtab->filename refererences by
11136 symtab_to_filename_for_display calls.
11137 * symtab.c (iterate_over_some_symtabs): Call
11138 compare_filenames_for_search also with symtab_to_fullname.
11139 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11140 symtab->filename refererences by symtab_to_filename_for_display calls.
11141 (find_line_symtab): Replace symtab->filename refererences by
11142 symtab_to_filename_for_display calls.
11143 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11144 (print_symbol_info): Make the last parameter const char *. New
11145 variable s_filename. Use it in the function.
11146 (symtab_symbol_info): Make the last_filename variable const char *.
11147 Replace symtab->filename refererences by symtab_to_filename_for_display
11148 calls.
11149 (rbreak_command): New variable fullname. Use it. Replace
11150 symtab->filename refererence by symtab_to_filename_for_display call.
11151 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11152 (print_one_static_tracepoint_marker): Replace symtab->filename
11153 refererences by symtab_to_filename_for_display calls.
11154 * tui/tui-source.c (tui_set_source_content): New variables filename and
11155 s_filename. Replace symtab->filename refererences by this variable.
11156 Replace other symtab->filename refererences by
11157 symtab_to_filename_for_display calls.
11158
1b56eb55
JK
111592013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11160 Jan Kratochvil <jan.kratochvil@redhat.com>
11161
11162 Add a new variable that controls a way in which filenames are
11163 displayed.
11164 * NEWS (set filename-display): New entry.
11165 * source.c (filename_display_basename, filename_display_relative)
11166 (filename_display_absolute, filename_display_kind_names)
11167 (filename_display_string, show_filename_display_string)
11168 (symtab_to_filename_for_display): New.
11169 (_initialize_source): Added initialization of 'filename-display'
11170 variable.
11171 * source.h (symtab_to_filename_for_display): Added declaration.
11172 * stack.c (print_frame): Added new variable and calling of a new
11173 function and condition with this variable. Changed third argument of
11174 calling of a function.
11175
aa079c93
JK
111762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11177
11178 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11179 Rename field reference filename to fullname.
11180 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11181 fullname. New comment for it.
11182 * tui/tui-source.c (tui_set_source_content): Rename field reference
11183 filename to fullname. Initialize field by symtab_to_fullname now.
11184 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11185 reference filename to fullname. Use symtab_to_fullname during
11186 comparison.
11187
652a8996
JK
111882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11189
11190 Code cleanup.
11191 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11192 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11193 filename to fullname. Rename variable this_name to this_fullname.
11194 Lowercase FILENAME_CMP call.
11195 (dw2_find_symbol_file): New comment for the returned string.
11196 (dwarf2_gdb_index_functions): Rename the function to
11197 dw2_expand_symtabs_with_fullname.
11198 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11199 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11200 fullname.
11201 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11202 * symfile.h (struct quick_symbol_functions): Rename field
11203 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11204 parameter filename to fullname. Document returned string meaning for
11205 find_symbol_file.
11206 * symtab.c (find_line_symtab): Rename the called function to
11207 expand_symtabs_with_fullname.
11208
af529f8f
JK
112092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11210
11211 Code cleanup.
11212 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11213 call of filename_cmp with compare_filenames_for_search.
11214 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11215 is_abs, unify the call of FILENAME_CMP with
11216 compare_filenames_for_search. New gdb_asserts for real_path and name.
11217 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11218 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11219 * symfile.h (struct quick_symbol_functions): Extend the comment for
11220 map_symtabs_matching_filename.
11221 * symtab.c (compare_filenames_for_search): Remove the function comment
11222 relative path requirement. Handle absolute filenames, with a comment.
11223 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11224 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11225 real_path and name. Unify the call of compare_filenames_for_search
11226 with FILENAME_CMP.
11227 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11228
2f202fde
JK
112292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11230
11231 Code cleanup.
11232 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11233 source_file references by symtab field references. Remove variables
11234 sal and fullname.
11235 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11236 (clear_command, say_where): Replace bp_location field source_file
11237 references by symtab field references.
11238 (bp_location_dtor): Remove the source_file reference.
11239 (update_static_tracepoint): Replace bp_location field source_file
11240 references by symtab field references.
11241 (breakpoint_free_objfile): New function.
11242 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11243 Replace the field source_file by field symtab, extend its comment.
11244 (breakpoint_free_objfile): New declaration.
11245 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11246 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11247 field source_file references by symtab field references.
11248
f5b95b50
JK
112492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11250
11251 Replace xfullpath calls by gdb_realpath calls.
11252 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11253 function comment.
11254 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11255 Remove it from the iterate_over_some_symtabs call.
11256 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11257 Remove it from the dw2_map_expand_apply calls, remove a block handling
11258 it.
11259 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11260 Remove it from the iterate_over_some_symtabs call.
11261 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11262 Remove it from the partial_map_expand_apply calls, remove a block
11263 handling it. Drop gdb_realpath call and cleanups from the real_path
11264 handling.
11265 * source.c (openp): Drop the comment part about xfullpath. Replace
11266 xfullpath calls by gdb_realpath calls.
11267 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11268 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11269 from method map_symtabs_matching_filename and its comment.
11270 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11271 gdb_realpath call.
11272 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11273 remove it also from the function comment, remove a block handling it.
11274 Drop gdb_realpath call and cleanups from the real_path handling.
11275 (iterate_over_symtabs): Drop variable full_path and its use.
11276 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11277 * utils.c (xfullpath): Remove.
11278 * utils.h (xfullpath): Remove.
11279
d78489bf
AT
112802013-02-01 Andreas Tobler <andreast@fgznet.ch>
11281
11282 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11283 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11284 (ALLDEPFILES): Add ppc64-tdep.c.
11285 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11286 ppc64-tdep.o to gdb_target_obs.
11287 * ppc64-tdep.h: New file.
11288 * ppc64-tdep.c: New file.
11289 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11290 ppc-linux-tdep.c to here.
11291 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11292 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11293 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11294 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11295 from ppc-linux-tdep.c to here.
11296 (ppc64_convert_from_func_ptr_addr): Rename from
11297 ppc64_linux_convert_from_func_ptr_addr to
11298 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11299 here.
11300 * rs6000-tdep.c:
11301 (read_insn): Move from ppc-linux-tdep.c to here.
11302 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11303 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11304 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11305 Removed above functions.
11306 (ppc_linux_init_abi): Adjust.
11307
8db60374
AR
113082013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11309
11310 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11311
f2e5f4ce
AR
113122013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11313
11314 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11315
c1f7d745
PA
113162013-02-01 Pedro Alves <palves@redhat.com>
11317
11318 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11319 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11320
8a92335b
JK
113212013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11322
11323 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11324 files with no separate debug info.
11325 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11326 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11327 only for files with no separate debug info.
11328
8eacb197
TT
113292013-01-31 Tom Tromey <tromey@redhat.com>
11330
11331 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11332 change type.
11333 (struct jit_program_space_data): Rename from jit_inferior_data.
11334 Update comments.
11335 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11336 Change return type. Attach data to program space.
11337 (jit_program_space_data_cleanup): Rename from
11338 jit_inferior_data_cleanup; change argument type.
11339 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11340 change type.
11341 (jit_register_code): Update.
11342 (jit_update_inferior_cache): Remove.
11343 (jit_breakpoint_deleted): Get jit data from the location's program
11344 space.
11345 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11346 'ps_data', change type.
11347 (jit_inferior_init, jit_breakpoint_re_set_internal)
11348 (jit_event_handler): Update.
11349 (free_objfile_data): Get data from objfile's program space.
11350 (_initialize_jit): Update.
11351
f25c0135
TT
113522013-01-31 Tom Tromey <tromey@redhat.com>
11353
11354 PR gdb/13987:
11355 * jit.c (struct jit_inferior_data) <cached_code_address,
11356 jit_breakpoint>: New fields.
11357 (jit_breakpoint_re_set_internal): Fix logging. Only create
11358 breakpoint if cached address has changed.
11359 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11360 functions.
11361 (_initialize_jit): Register breakpoint deleted observer.
11362
974a734b
AR
113632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11364
11365 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11366 (save_infcall_suspend_state): Ifdef out unused inf.
11367 (restore_infcall_suspend_state): Ifdef out unused inf.
11368 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11369 (jit_frame_sniffer): Remove unused inf_data.
11370
df54f8eb
AR
113712013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11372
11373 * c-exp.y (classify_inner_name): Remove unused type.
11374 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11375 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11376 need_escape.
11377 (c_get_string): Remove unused kind.
11378 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11379
5799c0b9
AR
113802013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11381
11382 * charset.c (intermediate_encoding): Remove unused i.
11383 * completer.c (signal_completer): Remove unused i.
11384 * continuations.c (discard_my_continuations_1): Remove unused
11385 continuation_ptr.
11386 * corelow.c (core_close): Remove unuseD name.
11387 (get_core_siginfo): Remove unused pid.
11388 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11389 i, cps.
11390 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11391 (loclist_describe_location): Remove unused first.
11392 * event-top.c (command_line_handler): Remove unused got_eof.
11393 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11394 (resize_section_table): Remove unused old_value.
11395 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11396 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11397 * i386-tdep.c (i386_process_record): Remove unused rex.
11398 * infcmd.c (get_return_value): Remove unused uiout.
11399 * jv-lang.c (type_from_class): Remove unused is_array.
11400 * jv-valprint.c (java_val_print): Remove unused i.
11401 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11402 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11403 * m2-typeprint.c (m2_print_type): Remove unused code.
11404 * macroexp.c (get_character_constant): Remove unused body_start.
11405 (macro_stringify): Remove unused result.
11406 * objc-lang.c (find_methods): Remove unused gdbarch.
11407 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11408 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11409 * stack.c (print_frame_args): Remove unused summary.
11410 * thread.c (thread_apply_command): Remove unused p.
11411 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11412 * valops.c (search_struct_method): Remove unused skip.
11413 * valprint.c (generic_val_print): Remove unused byte_order.
11414 * varobj.c (varobj_update): Remove unused changed.
11415 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11416 (alias_command): Remove unused c.
11417 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11418 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11419 format.
11420 (mi_cmd_data_write_memory): Remove unused word_format.
11421 (mi_cmd_data_write_memory_bytes): Remove unused r.
11422 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11423 p_start, p_end.
11424 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11425 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11426 line_width.
11427
c656bca5
AR
114282013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11429
11430 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11431 * symtab.c (iterate_over_symtabs): Remove unused s.
11432 (find_pc_sect_symtab): Remove unused pspAce.
11433 (find_pc_sect_line): Remove unused alt_symtab.
11434 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11435 (completion_list_add_name): Remove unused newsize.
11436
7078baeb
TT
114372013-01-31 Tom Tromey <tromey@redhat.com>
11438
11439 PR c++/14998:
11440 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11441 TYPE_CODE_FUNC.
11442
c2e8b827
AR
114432013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11444
11445 * target.c (target_read_string): Remove unused origlen.
11446
0e43993a
AR
114472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11448
11449 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11450 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11451 * ax-general.c (ax_print): Remove unused is_float.
11452 * blockframe.c (block_innermost_frame): Remove unused start, end.
11453 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11454
765a97ab
AR
114552013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11456
11457 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11458 (svr4_read_so_list): Remove unused lmo.
11459 * solib-target.c (solib_target_relocate_section_addresses): Remove
11460 unused flags.
11461
a99dad3d
TT
114622013-01-30 Tom Tromey <tromey@redhat.com>
11463
11464 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11465
3bff1ecd
TT
114662013-01-30 Tom Tromey <tromey@redhat.com>
11467
11468 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11469 * utils.c (gnu_debuglink_crc32): Remove.
11470 * utils.h (gnu_debuglink_crc32): Don't declare.
11471
7d455152
TT
114722013-01-30 Tom Tromey <tromey@redhat.com>
11473
11474 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11475 (read_structure_type, read_enumeration_type): Remove cast.
11476
abee88f2
TT
114772013-01-30 Tom Tromey <tromey@redhat.com>
11478
11479 * dwarf2read.c (read_namespace_type): Remove cast.
11480 (read_typedef): Likewise.
11481
8d9878a4
TT
114822013-01-29 Tom Tromey <tromey@redhat.com>
11483
11484 * dwarf2read.c (free_dwo_file): Remove assert.
11485
a543d2a9
TT
114862013-01-29 Tom Tromey <tromey@redhat.com>
11487
11488 * value.c (deprecated_set_value_modifiable): Remove.
11489 * value.h (deprecated_set_value_modifiable): Remove.
11490
bed911e5
DE
114912013-01-28 Doug Evans <dje@google.com>
11492
11493 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11494 to addresses from dwo files.
11495
28c64fc2
SCR
114962013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11497
11498 * valops.c (find_overload_match): Remove unused argument 'lax'.
11499 * value.h: Remove unused argument 'lax' from the declaration of
11500 find_overload_match.
11501 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11502 to find_overload_match.
11503 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11504 argument to find_overload_match.
11505
4d4ec4e5
TT
115062013-01-25 Tom Tromey <tromey@redhat.com>
11507
11508 * dwarf2read.c (processing_has_namespace_info): Remove.
11509 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11510 (process_die, read_func_scope, dwarf2_start_symtab)
11511 (new_symbol_full): Update.
11512
195a3f6c
TT
115132013-01-25 Tom Tromey <tromey@redhat.com>
11514
11515 * cp-namespace.c (cp_set_block_scope): Remove.
11516 * cp-support.h (cp_set_block_scope): Remove.
11517 * dbxread.c: Include block.h.
11518 (cp_set_block_scope): New function.
11519 (process_one_symbol): Update.
11520 * dwarf2read.c (read_func_scope): Use block_set_scope.
11521
8ba0730a
PA
115222013-01-25 Pedro Alves <palves@redhat.com>
11523
11524 * remote.c (add_current_inferior_and_thread): Tweak comment.
11525
12aaed36
TT
115262013-01-25 Tom Tromey <tromey@redhat.com>
11527
11528 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11529 (cp_add_using_directive): Add 'copy_names' argument.
11530 * cp-support.h (cp_add_using_directive): Update.
11531 (struct using_direct) <import_src, import_dest, alias,
11532 declaration>: Now const.
11533 * dwarf2read.c (read_import_statement): Use obconcat.
11534 Don't copy names passed to cp_add_using_directive.
11535
7fc75ca7
TT
115362013-01-25 Tom Tromey <tromey@redhat.com>
11537
11538 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11539
3405876a
PA
115402013-01-25 Pedro Alves <palves@redhat.com>
11541
11542 * remote.c (stop_reply_extract_thread): New.
11543 (add_current_inferior_and_thread): New parameter 'wait_status'.
11544 Handle it.
11545 (remote_start_remote): Pass wait status to
11546 add_current_inferior_and_thread.
11547 (extended_remote_run): Update comment.
11548 (extended_remote_create_inferior_1): Pass wait status to
11549 add_current_inferior_and_thread.
11550
8954db33
AB
115512013-01-25 Andrew Burgess <aburgess@broadcom.com>
11552 Ulrich Weigand <uweigand@de.ibm.com>
11553
11554 * valarith.c (value_vector_widen): New function for replicating a
11555 scalar into a vector.
11556 (value_binop): Use value_vector_widen to widen scalar to vector
11557 rather than casting, this better matches gcc C behaviour.
11558 * valops.c (value_casst): Update logic for casting between vector
11559 types, and for casting from scalar to vector, try to match gcc C
11560 behaviour.
11561 * value.h (value_vector_widen): Declare.
11562 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11563 function, handle special case for casting scalar to vector.
11564 (opencl_relop): Use opencl_value_cast.
11565 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11566 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11567 in order to use opencl_value_cast.
11568
843b20dc
YQ
115692013-01-25 Yao Qi <yao@codesourcery.com>
11570
11571 * event-loop.c: Include "queue.h".
11572 (gdb_event_p): New typedef.
11573 (DECLARE_QUEUE_P): Use.
11574 (DEFINE_QUEUE_P): Use.
11575 (async_queue_event): Remove.
11576 (gdb_event_xfree): New.
11577 (initialize_event_loop): New.
11578 (process_event): Use QUEUE macros.
11579 (event_queue): Remove.
11580 (gdb_wait_for_event): Caller update.
11581 (check_async_event_handlers): Likewise.
11582 (poll_timers): Likewise.
11583 * event-loop.h (initialize_event_loop): Declare.
11584 * event-loop.c (gdb_event_xfree): New.
11585 * top.c (gdb_init): Call initialize_event_loop.
11586
20ad8856
YQ
115872013-01-25 Yao Qi <yao@codesourcery.com>
11588
11589 * event-loop.c (async_queue_event): Remove one parameter
11590 'position'. Remove code handling 'position' == TAIL.
11591 (gdb_wait_for_event): Caller update.
11592 (check_async_event_handlers): Caller update.
11593 (poll_timers): Caller update.
11594 * event-loop.h (enum queue_position): Remove.
11595
3bbbe775
MK
115962013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11597
11598 * MAINTAINERS: Update my email.
11599
a87d9ac4
YQ
116002013-01-25 Yao Qi <yao@codesourcery.com>
11601
11602 * main.c (print_gdb_help): Remove "--epoch" from the help
11603 message.
11604
2077afdd
TD
116052013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11606
11607 * symtab.c (skip_prologue_using_sal): Consider a file
11608 change the same as an increased line number
11609
63da4037
TD
116102013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11611
30e8ee25 11612 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11613
45e6c716
TT
116142013-01-24 Tom Tromey <tromey@redhat.com>
11615
11616 * ada-lang.h (ada_decode_symbol): Make return type const.
11617 * ada-lang.c (ada_decode_symbol): Likewise.
11618
b1ae631a
DE
116192013-01-23 Doug Evans <dje@google.com>
11620
11621 * linespec.c (find_linespec_symbols): Make static.
11622
55a78401
SDJ
116232013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11624
11625 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11626 type on float conversion for complex type.
11627
bea883fd
SCR
116282013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11629
11630 Add a new class gdb.Architecture which exposes GDB's
11631 internal representation of architecture via GDB Python API.
11632 * Makefile.in: Add entries corresponding to the new file
11633 python/py-arch.c.
11634 * NEWS (Python Scripting): Add entries for the new class
11635 gdb.Architecture and the new method gdb.Frame.architecture.
11636 * python/py-arch.c: Implement gdb.Architecture class.
11637 * python/py-frame.c (frapy_arch): Implement the method
11638 gdb.Frame.architecture().
11639 (frame_object_methods): Add 'architecture' to the method table.
11640 * python/python-internal.h: Add declarations of new utility
11641 functions.
11642 * python/python.c (_initialize_python): Initialize
11643 gdb.Architecture class.
11644
796a7ff8
DE
116452013-01-23 Doug Evans <dje@google.com>
11646
11647 Work around binutils/15021.
11648 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11649 type_unit_group out of union s. All uses updated.
11650 (read_index_from_section): Watch for index version 8.
11651 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11652 an imported symtab.
11653 (write_psymtabs_to_index): Increment version number to 8.
11654
0928e93d
PA
116552013-01-22 Pedro Alves <palves@redhat.com>
11656
11657 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11658 user-visible.
11659
9c97429f
PA
116602013-01-22 Pedro Alves <palves@redhat.com>
11661
11662 * annotate.c (annotate_breakpoints_changed): Rename to ...
11663 (annotate_breakpoints_invalid): ... this. Make static.
11664 (breakpoint_changed): Adjust.
11665 (_initialize_annotate): Always install the observers. Install a
11666 "breakpoint_created" observer.
11667 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11668 * breakpoint.c (set_breakpoint_condition)
11669 (breakpoint_set_commands, do_map_commands_command)
11670 (init_raw_breakpoint, clear_command, set_ignore_count)
11671 (enable_breakpoint_disp): No longer call
11672 annotate_breakpoints_changed.
11673
bd00c694
PA
116742013-01-22 Pedro Alves <palves@redhat.com>
11675
11676 * annotate.c: Include "inferior.h".
11677 (frames_invalid_emitted)
11678 (breakpoints_invalid_emitted): New globals.
11679 (async_background_execution_p): New function.
11680 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11681 emitting the annotation if it has already been emitted.
11682 (annotate_display_prompt): New function.
11683 * annotate.h (annotate_display_prompt): New declaration.
11684 * event-top.c: Include annotate.h.
11685 (display_gdb_prompt): Call annotate_display_prompt.
11686
187d10dd
PA
116872013-01-22 Pedro Alves <palves@redhat.com>
11688
11689 * annotate.c (ignore_count_changed): Delete.
11690 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11691 (annotate_ignore_count_change): Delete.
11692 (annotate_stopped): Don't emit a delayed breakpoints-changed
11693 annotation.
11694 * annotate.h (annotate_ignore_count_change): Delete.
11695 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11696 annotate_ignore_count_change.
11697
d84cf7eb
TT
116982013-01-22 Tom Tromey <tromey@redhat.com>
11699
11700 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11701 require_rvalue for a register location.
11702
8f1d5693
MK
117032013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11704
11705 * breakpoint.c (print_one_breakpoint_location): Add MI
11706 field 'thread-groups' when printing a breakpoint.
11707 (output_thread_groups): New function.
11708
aa6199c6
SCR
117092013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11710
11711 * python/lib/gdb/commands/explore.py
11712 (CompoundExplorer.explore_expr): Correct the name of a method
11713 being invoked.
11714 (ExploreTypeCommand.invoke): Add a missing 'return'.
11715
d2afef13
TT
117162013-01-21 Tom Tromey <tromey@redhat.com>
11717
11718 * gdb_obstack.h (obconcat): Move declaration here, from...
11719 * symfile.h (obconcat): ... here.
11720 * gdb_obstack.c: New file.
11721 (obconcat): Move from...
11722 * symfile.c (obconcat): ... here.
11723 * Makefile.in (SFILES): Add gdb_obstack.c.
11724 (COMMON_OBS): Add gdb_obstack.o.
11725
10f0c4bb
TT
117262013-01-21 Tom Tromey <tromey@redhat.com>
11727
11728 * symfile.h (obsavestring): Don't declare.
11729 * symfile.c (obsavestring): Remove.
11730 * ada-exp.y: Use obstack_copy0, not obsavestring.
11731 * ada-lang.c: Use obstack_copy0, not obsavestring.
11732 * coffread.c: Use obstack_copy0, not obsavestring.
11733 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11734 * dbxread.c: Use obstack_copy0, not obsavestring.
11735 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11736 * jit.c: Use obstack_copy0, not obsavestring.
11737 * mdebugread.c: Use obstack_copy0, not obsavestring.
11738 * psymtab.c: Use obstack_copy0, not obsavestring.
11739 * stabsread.c: Use obstack_copy0, not obsavestring.
11740 * xcoffread.c: Use obstack_copy0, not obsavestring.
11741
86f62fd7
TT
117422013-01-21 Tom Tromey <tromey@redhat.com>
11743
11744 * dwarf2read.c (fixup_go_packaging): Save package name
11745 on objfile obstack.
11746 * gdbtypes.c (init_type): Don't copy name.
11747
15d034d0
TT
117482013-01-21 Tom Tromey <tromey@redhat.com>
11749
11750 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11751 const.
11752 (struct attribute) <u.str>: Now const.
11753 (struct fnfieldlist) <name>: Now const.
11754 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11755 (partial_die_parent_scope): Make return type const.
11756 (partial_die_full_name, add_partial_symbol): Update.
11757 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11758 'name' const.
11759 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11760 (read_file_scope, read_func_scope, dwarf2_add_field)
11761 (dwarf2_add_member_fn, read_structure_type)
11762 (process_enumeration_scope, read_array_type, read_module_type)
11763 (read_base_type, read_subrange_type): Update.
11764 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11765 (new_symbol_full, guess_full_die_structure_name): Update.
11766 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11767 (dwarf2_name): Return const type.
11768 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11769 const.
11770
748e18ae
TT
117712013-01-21 Tom Tromey <tromey@redhat.com>
11772
11773 * gdbtypes.c (init_type): Make 'name' const.
11774 * gdbtypes.h (init_type): Update.
11775
46212e0b
TT
117762013-01-21 Tom Tromey <tromey@redhat.com>
11777
11778 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11779 (start_symtab): Make 'name' and 'dirname' const. Use
11780 set_last_source_file.
11781 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11782 (last_source_file): Define. Now static.
11783 (set_last_source_file, get_last_source_file): New functions.
11784 * buildsym.h (last_source_file): Don't declare.
11785 (start_symtab): Update.
11786 (set_last_source_file, get_last_source_file): Declare.
11787 * coffread.c (complete_symtab): Use set_last_source_file.
11788 (coff_end_symtab): Likewise.
11789 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11790 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11791 set_last_source_file.
11792 (process_one_symbol): Use get_last_source_file.
11793 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11794 (psymtab_to_symtab_1): Use get_last_source_file.
11795 * xcoffread.c (process_linenos): Use get_last_source_file.
11796 (complete_symtab): Use set_last_source_file.
11797 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11798 (scan_xcoff_symtab): Use set_last_source_file.
11799
9d2ceabe
TT
118002013-01-21 Tom Tromey <tromey@redhat.com>
11801
11802 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11803 (symbol_set_names): Remove casts. Handle field const-ness.
11804
cfc594ee
TT
118052013-01-21 Tom Tromey <tromey@redhat.com>
11806
11807 * dwarf2read.c (new_symbol_full): Remove cast.
11808 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11809 * symtab.h (symbol_set_demangled_name): Update.
11810
5484b13a
TT
118112013-01-21 Tom Tromey <tromey@redhat.com>
11812
11813 * main.c (captured_main): Call bfd_init.
11814
1605ef26
TT
118152013-01-21 Tom Tromey <tromey@redhat.com>
11816
11817 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11818 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11819 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11820 * NEWS: Update.
11821
3b74cdc3
JK
118222013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11823
11824 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11825
5a352474
JK
118262013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11827
11828 Fix gdb.fortran/common-block.exp crash in PIE mode.
11829 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11830 LOC_COMMON_BLOCK.
11831 * f-valprint.c (info_common_command_for_block): Expect
11832 LOC_COMMON_BLOCK in gdb_assert.
11833 * symtab.h (struct general_symbol_info): Update comment for the
11834 common_block member.
11835 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11836 (enum address_class): New member LOC_COMMON_BLOCK.
11837
c60797fd
DB
118382013-01-18 David Blaikie <dblaikie@gmail.com>
11839
11840 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11841
46f35228
TT
118422013-01-18 Tom Tromey <tromey@redhat.com>
11843
11844 PR c++/14999:
11845 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11846 Call require_rvalue.
11847
257e7a09
YQ
118482013-01-18 Yao Qi <yao@codesourcery.com>
11849
11850 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11851 (dbx_read_symtab): New declaration.
11852 (dbx_psymtab_to_symtab): Delete.
11853 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11854 Rename parameter PST to SELF. Exchanged two parameters.
11855 (start_psymtab): Caller update.
11856 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11857 (dwarf2_read_symtab): New declaration.
11858 (dwarf2_psymtab_to_symtab): Delete.
11859 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11860 Rename parameter PST to SELF. Exchanged two parameters.
11861 (create_partial_symtab): Caller update.
11862 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11863 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11864 Rename parameter PST to SELF. Exchanged two parameters.
11865 (parse_partial_symbols, new_psymtab): Caller update.
11866 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11867 two parameters.
11868 * psymtab.c (psymtab_to_symtab): Caller update.
11869 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11870 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11871 Rename parameter PST to SELF. Exchanged two parameters.
11872 (xcoff_start_psymtab): Caller update.
11873
0de5618e
YQ
118742013-01-18 Yao Qi <yao@codesourcery.com>
11875
11876 * infrun.c (proceed): Rename local variable 'oneproc' to
11877 'force_step'.
11878
5c04624b
DE
118792013-01-17 Doug Evans <dje@google.com>
11880
848e3e78
DE
11881 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11882 (dw2_build_type_unit_groups): Delete. All uses updated.
11883
5c04624b
DE
11884 * symtab.h (struct symbol_search): Add comment.
11885
d84fca2c
JK
118862013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11887
11888 * symtab.c (compare_filenames_for_search): New comment for
11889 HAS_DRIVE_SPEC.
11890
6108433d
TT
118912013-01-17 Tom Tromey <tromey@redhat.com>
11892
11893 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11894
c89ffd86
JK
118952013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11896
11897 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11898 initialize it by existing make_cleanup. Call new do_cleanups.
11899
db2b2972
TT
119002013-01-17 Tom Tromey <tromey@redhat.com>
11901
11902 * cp-abi.c (cp_abi_completer): New function.
11903 (_initialize_cp_abi): Set completer for "set cp-abi".
11904
be7d37a2
TT
119052013-01-17 Tom Tromey <tromey@redhat.com>
11906
11907 * mem-break.c: Remove obsolete comment.
11908 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11909
c9fb1240
SD
119102012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11911
11912 * jit.c (jit_reader_load_command): Interpret the jit reader name
11913 as an absolute path if it begins with a forward slash.
11914
db334a01
SD
119152012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11916
11917 PR gdb/14550
11918
11919 * jit.c (finalize_symtab): Ensure that only the global block has a
11920 NULL superblock.
11921
7d928dac
PA
119222013-01-17 Pedro Alves <palves@redhat.com>
11923
11924 * acinclude.m4: Include ../config/plugins.m4,
11925 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11926 * Makefile.in (aclocal_m4_deps): Update.
11927 * aclocal.m4: Renegerate.
11928
fb8cf7c5
DE
119292013-01-16 Doug Evans <dje@google.com>
11930
11931 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11932
ab04a2af
TT
119332013-01-16 Pedro Alves <palves@redhat.com>
11934 Tom Tromey <tromey@redhat.com>
11935
11936 PR cli/7221:
11937 * NEWS: Add "catch signal".
11938 * breakpoint.c (base_breakpoint_ops): No longer static.
11939 (bpstat_explains_signal): New function.
11940 (init_catchpoint): No longer static.
11941 (base_breakpoint_explains_signal): New function.
11942 (base_breakpoint_ops): Initialize new field.
11943 * breakpoint.h (enum bpstat_signal_value): New.
11944 (struct breakpoint_ops) <explains_signal>: New field.
11945 (bpstat_explains_signal): Remove macro, declare as function.
11946 (base_breakpoint_ops, init_catchpoint): Declare.
11947 * break-catch-sig.c: New file.
11948 * inferior.h (signal_catch_update): Declare.
11949 * infrun.c (signal_catch): New global.
11950 (handle_syscall_event): Update for change to
11951 bpstat_explains_signal.
11952 (handle_inferior_event): Likewise. Always handle random signals
11953 via bpstats.
11954 (signal_cache_update): Check signal_catch.
11955 (signal_catch_update): New function.
11956 (_initialize_infrun): Initialize signal_catch.
11957 * Makefile.in (SFILES): Add break-catch-sig.c.
11958 (COMMON_OBS): Add break-catch-sig.o.
11959
8ac3646f
TT
119602013-01-16 Tom Tromey <tromey@redhat.com>
11961
11962 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11963 (print_one_catch_solib, print_one_catch_syscall)
11964 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11965 "catch-type".
11966
5a18e302
YQ
119672013-01-16 Yao Qi <yao@codesourcery.com>
11968
11969 * printcmd.c (current_display_number): Make it static.
11970
3f01d0d0
YQ
119712013-01-16 Yao Qi <yao@codesourcery.com>
11972
11973 * infcmd.c (step_once): Don't check '!single_inst' as it was
11974 checked before.
11975
1ed59174
JK
119762013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11977
11978 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11979
44478ab3
TT
119802013-01-14 Tom Tromey <tromey@redhat.com>
11981
11982 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11983 set command.
11984 * command.h (add_setshow_string_noescape_cmd): Update.
11985 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11986 (complete_set_gnutarget): New function.
11987 (_initialize_core): Set the "set gnutarget" completer.
11988
06d66ee9
TT
119892013-01-14 Tom Tromey <tromey@redhat.com>
11990
11991 PR symtab/14442:
11992 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11993 (c_type_print_modifier): Likewise.
11994 * dwarf2read.c (read_tag_restrict_type): New function.
11995 (read_type_die_1): Handle DW_TAG_restrict_type.
11996 * gdbtypes.c (make_restrict_type): New function.
11997 (recursive_dump_type): Handle TYPE_RESTRICT.
11998 * gdbtypes.h (enum type_flag_values): Renumber.
11999 (enum type_instance_flag_value): Add
12000 TYPE_INSTANCE_FLAG_RESTRICT.
12001 (TYPE_RESTRICT): New macro.
12002 (make_restrict_type): Declare.
12003
c9bf0622
TT
120042013-01-14 Tom Tromey <tromey@redhat.com>
12005
12006 PR symtab/14931:
12007 * psymtab.c (struct psymtab_state): New.
12008 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12009 functions.
12010 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12011 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12012
44d594fd
PA
120132013-01-14 Richard Sharman <richard_sharman@mitel.com>
12014 Pedro Alves <palves@redhat.com>
12015
12016 PR remote/14786
12017
12018 * remote.c (remote_threads_info): Make a copy of the reply from
12019 qfThreadInfo and use that instead of rs->buf.
12020
442e4d9c
YQ
120212013-01-14 Yao Qi <yao@codesourcery.com>
12022
12023 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12024 (dbx_psymtab_to_symtab): Likewise.
12025 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12026 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12027 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12028
5b12a61c
JK
120292013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12030
12031 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12032 make_cleanup_restore_current_language. Call set_language. Move
12033 OLD_CHAIN and INNER_CHAIN cleanups.
12034 * utils.c (do_restore_current_language)
12035 (make_cleanup_restore_current_language): New functions.
12036 * utils.h (make_cleanup_restore_current_language): New declaration.
12037
f0a4b570
JK
120382013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12039
12040 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12041 non-existing files.
12042
57b3c00c
JK
12043 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12044 non-existing files if FILENAME is already absolute.
12045
daefa854
JK
120462013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12047
12048 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12049 fputs_filtered. Append trailing newline.
12050
ca9c6ee2
YQ
120512013-01-11 Yao Qi <yao@codesourcery.com>
12052 Stan Shebs <stan@codesourcery.com>
12053
12054 * psymtab.c (init_psymbol_list): Clarify the comment.
12055
f28045c2
YQ
120562013-01-11 Yao Qi <yao@codesourcery.com>
12057
12058 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12059 (update_dprintf_command_list): Assert that 'printf_line' is
12060 non-null. Remove condition check.
12061
da5132d3
JK
120622013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12063
12064 Code cleanup.
12065 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12066 type const char *.
12067 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12068 const char *.
12069 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12070
843e694d
AG
120712013-01-09 Anthony Green <green@moxielogic.com>
12072
12073 * cp-abi.c (cplus_print_vtable): Don't return value from void
12074 function.
12075 * ada-lang.c (re_set_catch_assert): Ditto.
12076
da51c347
DE
120772013-01-09 Doug Evans <dje@google.com>
12078
12079 * symfile.h (quick_symbol_functions): Delete member
12080 pre_expand_symtabs_matching. All uses removed.
12081 * dwarf2read.c (dw2_lookup_symbol): Implement.
12082 (dw2_do_expand_symtabs_matching): Delete.
12083 (dw2_pre_expand_symtabs_matching): Delete.
12084 (struct dw2_symtab_iterator): New type.
12085 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12086 (dw2_expand_symtabs_for_function): Rewrite.
12087 (dwarf2_gdb_index_functions): Update.
12088 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12089 (psym_functions): Update.
12090
b2259038
TT
120912013-01-09 Tom Tromey <tromey@redhat.com>
12092
12093 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12094 * configure: Rebuild.
12095 * configure.ac: Add somread.o to the build if BFD has SOM
12096 support.
12097 * somread.c: Include som/aout.h, not syms.h.
12098 (som_symtab_read): Use som_external_symbol_dictionary_record.
12099 Unpack records manually.
12100 (_initialize_somread): Declare.
12101
bdad4180
MF
121022012-01-08 Mike Frysinger <vapier@gentoo.org>
12103
12104 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12105 Cast return_address to 64bits.
12106
03cdf680
HZ
121072013-01-08 Hui Zhu <hui_zhu@mentor.com>
12108
12109 * printcmd.c: Remove define of function output_command.
12110 * tracepoint.c: Remove extern of function output_command.
12111 * valprint.h: (output_command): New extern.
12112
8a808554
TT
121132013-01-07 Tom Tromey <tromey@redhat.com>
12114
12115 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12116 Remove.
12117 (objc_language_defn): Use c_printchar, c_printstr,
12118 c_emit_char.
12119
e93a8774
TT
121202013-01-07 Tom Tromey <tromey@redhat.com>
12121
12122 PR cli/7719:
12123 * NEWS: Update.
12124 * ada-valprint.c (printstr, print_field_values): Remove
12125 "inspect_it" code.
12126 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12127 code.
12128 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12129 code.
12130 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12131 * main.c (captured_main): Remove "epoch" argument.
12132 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12133 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12134 * p-valprint.c (pascal_object_print_value_fields): Remove
12135 "inspect_it" code.
12136 * printcmd.c (print_command_1): Remove 'inspect' argument.
12137 (print_command, call_command): Update.
12138 (inspect_command): Remove.
12139 (_initialize_printcmd): Make "inspect" an alias for "print".
12140 * top.c (epoch_interface): Remove.
12141 * top.h (epoch_interface): Remove.
12142 * valprint.c (user_print_options): Update.
12143 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12144 * valprint.h (struct value_print_options) <inspect_it>: Remove
12145 field.
12146
121472013-01-04 Tom Tromey <tromey@redhat.com>
12148
12149 * valprint.h (read_string): Add 'extern'.
12150
b967eb24
JB
121512013-01-07 Joel Brobecker <brobecker@adacore.com>
12152
12153 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12154 used to decide whether to define darwin_read_dyld_info or not.
12155
78a8b30e
PM
121562013-01-03 Pierre Muller <muller@sourceware.org>
12157
12158 * main.c (relocate_gdb_directory): Avoid calling stat function
12159 if DIR is empty.
12160
50da2f25
YQ
121612013-01-03 Yao Qi <yao@codesourcery.com>
12162
12163 * psymtab.c (fixup_psymbol_section): Update declaration.
12164 (fixup_psymbol_section): Remove code returning value.
12165
e7e8980f
YQ
121662013-01-03 Yao Qi <yao@codesourcery.com>
12167
12168 * symtab.h: Remove some out of date comments.
12169 (enum exception_event_kind): Move it ...
12170 * breakpoint.c: ... here.
12171
569283d4
MF
121722013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12173
9f9d9a96 12174 PR gdb/14405
569283d4
MF
12175 * darwin-nat.c (darwin_read_dyld_info): Only build if
12176 TASK_DYLD_INFO_COUNT is defined.
12177 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12178 TASK_DYLD_INFO_COUNT is defined.
12179
2e36fbea
TT
121802013-01-02 Tom Tromey <tromey@redhat.com>
12181
12182 * symfile.h (struct ecoff_debug_hack): Remove.
12183 * objfiles.c: Don't include mdebugread.h.
12184
4f05add4
TT
121852013-01-02 Tom Tromey <tromey@redhat.com>
12186
12187 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12188 * configure.ac: Check for Mach-O support in BFD. Update
12189 CONFIG_OBS.
12190 * configure: Rebuild.
12191
def63ff0
TT
121922013-01-02 Tom Tromey <tromey@redhat.com>
12193
12194 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12195 * configure.ac: Use GDB_AC_CHECK_BFD.
12196 * configure: Rebuild.
12197
60c5dd93
MK
121982013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12199
12200 * MAINTAINERS: Update my email.
12201
6e58437e
JB
122022013-01-01 Joel Brobecker <brobecker@adacore.com>
12203
12204 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12205
627fe805
JB
122062013-01-01 Joel Brobecker <brobecker@adacore.com>
12207
12208 * rs6000-nat.c (bss_data_overlap): New function.
12209 (vmap_symtab): Use it to adjust the .bss section's offset.
12210
28e7fd62
JB
122112013-01-01 Joel Brobecker <brobecker@adacore.com>
12212
12213 Update year range in copyright notice of all files.
12214
e93a8774 122152013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12216
12217 * top.c (print_gdb_version): Update copyright year.
12218
72b20e9c 12219For older changes see ChangeLog-2012.
c906108c
SS
12220\f
12221Local Variables:
12222mode: change-log
12223left-margin: 8
12224fill-column: 74
12225version-control: never
57da7796 12226coding: utf-8
c906108c 12227End:
This page took 2.162596 seconds and 4 git commands to generate.