import gnulib dirent module
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e26b6bb0
TT
12013-11-18 Tom Tromey <tromey@redhat.com>
2
3 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
4 * gnulib/aclocal.m4: Update.
5 * gnulib/config.in: Update.
6 * gnulib/configure: Update.
7 * gnulib/import/Makefile.am: Update.
8 * gnulib/import/Makefile.in: Update.
9 * gnulib/import/dirent.in.h: New.
10 * gnulib/import/m4/dirent_h.m4: New.
11 * gnulib/import/m4/gnulib-cache.m4: Update.
12 * gnulib/import/m4/gnulib-comp.m4: Update.
13
a3d08894
TT
142013-11-18 Tom Tromey <tromey@redhat.com>
15
16 * configure: Rebuild.
17 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
18 strings.h.
19
0e9f083f
TT
202013-11-18 Tom Tromey <tromey@redhat.com>
21
22 * common/gdb_string.h: Remove.
23 * aarch64-tdep.c: Use string.h, not gdb_string.h.
24 * ada-exp.y: Use string.h, not gdb_string.h.
25 * ada-lang.c: Use string.h, not gdb_string.h.
26 * ada-lex.l: Use string.h, not gdb_string.h.
27 * ada-typeprint.c: Use string.h, not gdb_string.h.
28 * ada-valprint.c: Use string.h, not gdb_string.h.
29 * aix-thread.c: Use string.h, not gdb_string.h.
30 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
31 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
32 * alpha-nat.c: Use string.h, not gdb_string.h.
33 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
34 * alpha-tdep.c: Use string.h, not gdb_string.h.
35 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
36 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
37 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
38 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
39 * amd64-nat.c: Use string.h, not gdb_string.h.
40 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
41 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
42 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
43 * arch-utils.c: Use string.h, not gdb_string.h.
44 * arm-linux-nat.c: Use string.h, not gdb_string.h.
45 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
46 * arm-tdep.c: Use string.h, not gdb_string.h.
47 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
48 * armbsd-tdep.c: Use string.h, not gdb_string.h.
49 * armnbsd-nat.c: Use string.h, not gdb_string.h.
50 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
51 * armobsd-tdep.c: Use string.h, not gdb_string.h.
52 * avr-tdep.c: Use string.h, not gdb_string.h.
53 * ax-gdb.c: Use string.h, not gdb_string.h.
54 * ax-general.c: Use string.h, not gdb_string.h.
55 * bcache.c: Use string.h, not gdb_string.h.
56 * bfin-tdep.c: Use string.h, not gdb_string.h.
57 * breakpoint.c: Use string.h, not gdb_string.h.
58 * build-id.c: Use string.h, not gdb_string.h.
59 * buildsym.c: Use string.h, not gdb_string.h.
60 * c-exp.y: Use string.h, not gdb_string.h.
61 * c-lang.c: Use string.h, not gdb_string.h.
62 * c-typeprint.c: Use string.h, not gdb_string.h.
63 * c-valprint.c: Use string.h, not gdb_string.h.
64 * charset.c: Use string.h, not gdb_string.h.
65 * cli-out.c: Use string.h, not gdb_string.h.
66 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
67 * cli/cli-decode.c: Use string.h, not gdb_string.h.
68 * cli/cli-dump.c: Use string.h, not gdb_string.h.
69 * cli/cli-interp.c: Use string.h, not gdb_string.h.
70 * cli/cli-logging.c: Use string.h, not gdb_string.h.
71 * cli/cli-script.c: Use string.h, not gdb_string.h.
72 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
73 * cli/cli-utils.c: Use string.h, not gdb_string.h.
74 * coffread.c: Use string.h, not gdb_string.h.
75 * common/common-utils.c: Use string.h, not gdb_string.h.
76 * common/filestuff.c: Use string.h, not gdb_string.h.
77 * common/linux-procfs.c: Use string.h, not gdb_string.h.
78 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
79 * common/signals.c: Use string.h, not gdb_string.h.
80 * common/vec.h: Use string.h, not gdb_string.h.
81 * core-regset.c: Use string.h, not gdb_string.h.
82 * corefile.c: Use string.h, not gdb_string.h.
83 * corelow.c: Use string.h, not gdb_string.h.
84 * cp-abi.c: Use string.h, not gdb_string.h.
85 * cp-support.c: Use string.h, not gdb_string.h.
86 * cp-valprint.c: Use string.h, not gdb_string.h.
87 * cris-tdep.c: Use string.h, not gdb_string.h.
88 * d-lang.c: Use string.h, not gdb_string.h.
89 * dbxread.c: Use string.h, not gdb_string.h.
90 * dcache.c: Use string.h, not gdb_string.h.
91 * demangle.c: Use string.h, not gdb_string.h.
92 * dicos-tdep.c: Use string.h, not gdb_string.h.
93 * disasm.c: Use string.h, not gdb_string.h.
94 * doublest.c: Use string.h, not gdb_string.h.
95 * dsrec.c: Use string.h, not gdb_string.h.
96 * dummy-frame.c: Use string.h, not gdb_string.h.
97 * dwarf2-frame.c: Use string.h, not gdb_string.h.
98 * dwarf2loc.c: Use string.h, not gdb_string.h.
99 * dwarf2read.c: Use string.h, not gdb_string.h.
100 * elfread.c: Use string.h, not gdb_string.h.
101 * environ.c: Use string.h, not gdb_string.h.
102 * eval.c: Use string.h, not gdb_string.h.
103 * event-loop.c: Use string.h, not gdb_string.h.
104 * exceptions.c: Use string.h, not gdb_string.h.
105 * exec.c: Use string.h, not gdb_string.h.
106 * expprint.c: Use string.h, not gdb_string.h.
107 * f-exp.y: Use string.h, not gdb_string.h.
108 * f-lang.c: Use string.h, not gdb_string.h.
109 * f-typeprint.c: Use string.h, not gdb_string.h.
110 * f-valprint.c: Use string.h, not gdb_string.h.
111 * fbsd-nat.c: Use string.h, not gdb_string.h.
112 * findcmd.c: Use string.h, not gdb_string.h.
113 * findvar.c: Use string.h, not gdb_string.h.
114 * fork-child.c: Use string.h, not gdb_string.h.
115 * frame.c: Use string.h, not gdb_string.h.
116 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
117 * frv-tdep.c: Use string.h, not gdb_string.h.
118 * gdb.c: Use string.h, not gdb_string.h.
119 * gdb_bfd.c: Use string.h, not gdb_string.h.
120 * gdbarch.c: Use string.h, not gdb_string.h.
121 * gdbtypes.c: Use string.h, not gdb_string.h.
122 * gnu-nat.c: Use string.h, not gdb_string.h.
123 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
124 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
125 * go-exp.y: Use string.h, not gdb_string.h.
126 * go-lang.c: Use string.h, not gdb_string.h.
127 * go32-nat.c: Use string.h, not gdb_string.h.
128 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
129 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
130 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
131 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
132 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
133 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
134 * i386-linux-nat.c: Use string.h, not gdb_string.h.
135 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
136 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
137 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
138 * i386-tdep.c: Use string.h, not gdb_string.h.
139 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
140 * i386gnu-nat.c: Use string.h, not gdb_string.h.
141 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
142 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
143 * i387-tdep.c: Use string.h, not gdb_string.h.
144 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
145 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
146 * inf-child.c: Use string.h, not gdb_string.h.
147 * inf-ptrace.c: Use string.h, not gdb_string.h.
148 * inf-ttrace.c: Use string.h, not gdb_string.h.
149 * infcall.c: Use string.h, not gdb_string.h.
150 * infcmd.c: Use string.h, not gdb_string.h.
151 * inflow.c: Use string.h, not gdb_string.h.
152 * infrun.c: Use string.h, not gdb_string.h.
153 * interps.c: Use string.h, not gdb_string.h.
154 * iq2000-tdep.c: Use string.h, not gdb_string.h.
155 * irix5-nat.c: Use string.h, not gdb_string.h.
156 * jv-exp.y: Use string.h, not gdb_string.h.
157 * jv-lang.c: Use string.h, not gdb_string.h.
158 * jv-typeprint.c: Use string.h, not gdb_string.h.
159 * jv-valprint.c: Use string.h, not gdb_string.h.
160 * language.c: Use string.h, not gdb_string.h.
161 * linux-fork.c: Use string.h, not gdb_string.h.
162 * linux-nat.c: Use string.h, not gdb_string.h.
163 * lm32-tdep.c: Use string.h, not gdb_string.h.
164 * m2-exp.y: Use string.h, not gdb_string.h.
165 * m2-typeprint.c: Use string.h, not gdb_string.h.
166 * m32c-tdep.c: Use string.h, not gdb_string.h.
167 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
168 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
169 * m32r-rom.c: Use string.h, not gdb_string.h.
170 * m32r-tdep.c: Use string.h, not gdb_string.h.
171 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
172 * m68k-tdep.c: Use string.h, not gdb_string.h.
173 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
174 * m68klinux-nat.c: Use string.h, not gdb_string.h.
175 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
176 * m88k-tdep.c: Use string.h, not gdb_string.h.
177 * macrocmd.c: Use string.h, not gdb_string.h.
178 * main.c: Use string.h, not gdb_string.h.
179 * mdebugread.c: Use string.h, not gdb_string.h.
180 * mem-break.c: Use string.h, not gdb_string.h.
181 * memattr.c: Use string.h, not gdb_string.h.
182 * memory-map.c: Use string.h, not gdb_string.h.
183 * mep-tdep.c: Use string.h, not gdb_string.h.
184 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
185 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
186 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
187 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
188 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
189 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
190 * mi/mi-console.c: Use string.h, not gdb_string.h.
191 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
192 * mi/mi-interp.c: Use string.h, not gdb_string.h.
193 * mi/mi-main.c: Use string.h, not gdb_string.h.
194 * mi/mi-parse.c: Use string.h, not gdb_string.h.
195 * microblaze-rom.c: Use string.h, not gdb_string.h.
196 * microblaze-tdep.c: Use string.h, not gdb_string.h.
197 * mingw-hdep.c: Use string.h, not gdb_string.h.
198 * minidebug.c: Use string.h, not gdb_string.h.
199 * minsyms.c: Use string.h, not gdb_string.h.
200 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
201 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
202 * mips-tdep.c: Use string.h, not gdb_string.h.
203 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
204 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
205 * mipsread.c: Use string.h, not gdb_string.h.
206 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
207 * mn10300-tdep.c: Use string.h, not gdb_string.h.
208 * monitor.c: Use string.h, not gdb_string.h.
209 * moxie-tdep.c: Use string.h, not gdb_string.h.
210 * mt-tdep.c: Use string.h, not gdb_string.h.
211 * nbsd-tdep.c: Use string.h, not gdb_string.h.
212 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
213 * nto-procfs.c: Use string.h, not gdb_string.h.
214 * nto-tdep.c: Use string.h, not gdb_string.h.
215 * objc-lang.c: Use string.h, not gdb_string.h.
216 * objfiles.c: Use string.h, not gdb_string.h.
217 * opencl-lang.c: Use string.h, not gdb_string.h.
218 * osabi.c: Use string.h, not gdb_string.h.
219 * osdata.c: Use string.h, not gdb_string.h.
220 * p-exp.y: Use string.h, not gdb_string.h.
221 * p-lang.c: Use string.h, not gdb_string.h.
222 * p-typeprint.c: Use string.h, not gdb_string.h.
223 * parse.c: Use string.h, not gdb_string.h.
224 * posix-hdep.c: Use string.h, not gdb_string.h.
225 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
226 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
227 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
228 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
229 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
230 * printcmd.c: Use string.h, not gdb_string.h.
231 * procfs.c: Use string.h, not gdb_string.h.
232 * prologue-value.c: Use string.h, not gdb_string.h.
233 * python/py-auto-load.c: Use string.h, not gdb_string.h.
234 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
235 * ravenscar-thread.c: Use string.h, not gdb_string.h.
236 * regcache.c: Use string.h, not gdb_string.h.
237 * registry.c: Use string.h, not gdb_string.h.
238 * remote-fileio.c: Use string.h, not gdb_string.h.
239 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
240 * remote-mips.c: Use string.h, not gdb_string.h.
241 * remote-sim.c: Use string.h, not gdb_string.h.
242 * remote.c: Use string.h, not gdb_string.h.
243 * reverse.c: Use string.h, not gdb_string.h.
244 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
245 * ser-base.c: Use string.h, not gdb_string.h.
246 * ser-go32.c: Use string.h, not gdb_string.h.
247 * ser-mingw.c: Use string.h, not gdb_string.h.
248 * ser-pipe.c: Use string.h, not gdb_string.h.
249 * ser-tcp.c: Use string.h, not gdb_string.h.
250 * ser-unix.c: Use string.h, not gdb_string.h.
251 * serial.c: Use string.h, not gdb_string.h.
252 * sh-tdep.c: Use string.h, not gdb_string.h.
253 * sh64-tdep.c: Use string.h, not gdb_string.h.
254 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
255 * skip.c: Use string.h, not gdb_string.h.
256 * sol-thread.c: Use string.h, not gdb_string.h.
257 * solib-dsbt.c: Use string.h, not gdb_string.h.
258 * solib-frv.c: Use string.h, not gdb_string.h.
259 * solib-osf.c: Use string.h, not gdb_string.h.
260 * solib-spu.c: Use string.h, not gdb_string.h.
261 * solib-target.c: Use string.h, not gdb_string.h.
262 * solib.c: Use string.h, not gdb_string.h.
263 * somread.c: Use string.h, not gdb_string.h.
264 * source.c: Use string.h, not gdb_string.h.
265 * sparc-nat.c: Use string.h, not gdb_string.h.
266 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
267 * sparc-tdep.c: Use string.h, not gdb_string.h.
268 * sparc64-tdep.c: Use string.h, not gdb_string.h.
269 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
270 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
271 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
272 * spu-linux-nat.c: Use string.h, not gdb_string.h.
273 * spu-multiarch.c: Use string.h, not gdb_string.h.
274 * spu-tdep.c: Use string.h, not gdb_string.h.
275 * stabsread.c: Use string.h, not gdb_string.h.
276 * stack.c: Use string.h, not gdb_string.h.
277 * std-regs.c: Use string.h, not gdb_string.h.
278 * symfile.c: Use string.h, not gdb_string.h.
279 * symmisc.c: Use string.h, not gdb_string.h.
280 * symtab.c: Use string.h, not gdb_string.h.
281 * target.c: Use string.h, not gdb_string.h.
282 * thread.c: Use string.h, not gdb_string.h.
283 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
284 * tilegx-tdep.c: Use string.h, not gdb_string.h.
285 * top.c: Use string.h, not gdb_string.h.
286 * tracepoint.c: Use string.h, not gdb_string.h.
287 * tui/tui-command.c: Use string.h, not gdb_string.h.
288 * tui/tui-data.c: Use string.h, not gdb_string.h.
289 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
290 * tui/tui-file.c: Use string.h, not gdb_string.h.
291 * tui/tui-layout.c: Use string.h, not gdb_string.h.
292 * tui/tui-out.c: Use string.h, not gdb_string.h.
293 * tui/tui-regs.c: Use string.h, not gdb_string.h.
294 * tui/tui-source.c: Use string.h, not gdb_string.h.
295 * tui/tui-stack.c: Use string.h, not gdb_string.h.
296 * tui/tui-win.c: Use string.h, not gdb_string.h.
297 * tui/tui-windata.c: Use string.h, not gdb_string.h.
298 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
299 * typeprint.c: Use string.h, not gdb_string.h.
300 * ui-file.c: Use string.h, not gdb_string.h.
301 * ui-out.c: Use string.h, not gdb_string.h.
302 * user-regs.c: Use string.h, not gdb_string.h.
303 * utils.c: Use string.h, not gdb_string.h.
304 * v850-tdep.c: Use string.h, not gdb_string.h.
305 * valarith.c: Use string.h, not gdb_string.h.
306 * valops.c: Use string.h, not gdb_string.h.
307 * valprint.c: Use string.h, not gdb_string.h.
308 * value.c: Use string.h, not gdb_string.h.
309 * varobj.c: Use string.h, not gdb_string.h.
310 * vax-tdep.c: Use string.h, not gdb_string.h.
311 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
312 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
313 * windows-nat.c: Use string.h, not gdb_string.h.
314 * xcoffread.c: Use string.h, not gdb_string.h.
315 * xml-support.c: Use string.h, not gdb_string.h.
316 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
317 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
318
63ce7108
TT
3192013-11-18 Tom Tromey <tromey@redhat.com>
320
321 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
322 and strstr.
323 * gnulib/aclocal.m4: Update.
324 * gnulib/config.in: Update.
325 * gnulib/configure: Update.
326 * gnulib/import/Makefile.am: Update.
327 * gnulib/import/Makefile.in: Update.
328 * gnulib/import/errno.in.h: New.
329 * gnulib/import/intprops.h: New.
330 * gnulib/import/m4/errno_h.m4: New.
331 * gnulib/import/m4/gnulib-cache.m4: Update.
332 * gnulib/import/m4/gnulib-comp.m4: Update.
333 * gnulib/import/m4/strerror.m4: New.
334 * gnulib/import/m4/strstr.m4: New.
335 * gnulib/import/m4/sys_socket_h.m4: New.
336 * gnulib/import/strerror-override.c: New.
337 * gnulib/import/strerror-override.h: New.
338 * gnulib/import/strerror.c: New.
339 * gnulib/import/strstr.c: New.
340
a7c11ee1
TT
3412013-11-18 Tom Tromey <tromey@redhat.com>
342
343 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
344 multiple lines.
345
d0b5971a
JM
3462013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
347
348 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
349 * sparc-tdep.h: And its prototype.
350
351 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
352 function.
353 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
354
4b4589ad
PA
3552013-11-18 Pedro Alves <palves@redhat.com>
356
357 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
358 use unpack_pointer.
359
422ad5c2
JB
3602013-11-18 Joel Brobecker <brobecker@adacore.com>
361
362 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
363 to -list-features output.
364
b1370418
JB
3652013-11-17 Joel Brobecker <brobecker@adacore.com>
366
367 * dwarf2expr.h (struct dwarf_expr_context_funcs)
368 <read_addr_from_reg>: Renames "read_reg".
369 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
370 Adjust comment.
371 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
372 Use read_addr_from_reg in place of read_reg.
373 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
374 in place of read_reg.
375 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
376 dwarf_expr_read_reg.
377 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
378 with dwarf_expr_read_addr_from_reg.
379 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
380 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
381 needs_frame_read_addr_from_reg.
382
6ea71545
JK
3832013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
384
385 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
386
19a1b230
AA
3872013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
388
389 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
390 NULL.
391
805e1f19
TT
3922013-11-15 Tom Tromey <tromey@redhat.com>
393
394 PR c++/16117:
395 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
396 (classify_name): Likewise. Prefer a field of "this" over a
397 filename.
398 (classify_inner_name, yylex): Update.
399
0acf8b65
JB
4002013-11-15 Joel Brobecker <brobecker@adacore.com>
401
402 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
403 Extend the documentation a bit.
404 <get_reg_value>: New field.
405 * dwarf2loc.c (dwarf_expr_get_reg_value)
406 (needs_frame_get_reg_value): New functions.
407 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
408 callback.
409 * dwarf2-frame.c (get_reg_value): New function.
410 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
411 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
412 Use new callback to compute result_val.
413
ef1bc9e7
AM
4142013-11-15 Alan Modra <amodra@gmail.com>
415
416 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
417 (ppc64_desc_entry_point): ..this. Update comments here and at
418 call points.
419 (ppc64_standard_linkage1, ppc64_standard_linkage2,
420 ppc64_standard_linkage3): Update comments.
421 (ppc64_standard_linkage4, ppc64_standard_linkage5,
422 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
423 patterns.
424 (ppc64_standard_linkage4_target): New function.
425 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
426 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
427 nop match. Fix comment wrap.
428
36fa8042
PA
4292013-11-14 Pedro Alves <palves@redhat.com>
430
431 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
432 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
433
4f5d7f63
PA
4342013-11-14 Pedro Alves <palves@redhat.com>
435
436 * infrun.c (struct execution_control_state)
437 <stepped_after_stopped_by_watchpoint>: New field.
438 (get_inferior_stop_soon): New function.
439 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
440 moved to struct execution_control_state -- adjust. Use
441 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
442 new function.
443 (handle_signal_stop): New function, factored out from
444 handle_inferior_event.
445
47591c29
PA
4462013-11-14 Pedro Alves <palves@redhat.com>
447
448 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
449 return a boolean.
450 * breakpoint.c (bpstat_explains_signal): Adjust to return a
451 boolean.
452 (explains_signal_watchpoint, base_breakpoint_explains_signal):
453 Adjust to return a boolean.
454 * breakpoint.h (enum bpstat_signal_value): Delete.
455 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
456 (bpstat_explains_signal): Likewise.
457 * infrun.c (handle_inferior_event) <random signal checks>:
458 bpstat_explains_signal now returns a boolean - adjust. No longer
459 consider hiding signals.
460
bac7d97b
PA
4612013-11-14 Pedro Alves <palves@redhat.com>
462
463 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
464 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
465 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
466 BPSTAT_SIGNAL_HIDE.
467 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
468 instead of BPSTAT_SIGNAL_HIDE.
469 * infrun.c (handle_inferior_event): Rework random signal checks.
470
ce12b012
PA
4712013-11-14 Pedro Alves <palves@redhat.com>
472
473 * infrun.c (struct execution_control_state): Remove
474 'random_signal' field.
475 (handle_syscall_event): Use bpstat_causes_stop instead of
476 bpstat_explains_signal. Don't set ecs->random_signal.
477 (handle_inferior_event): New 'random_signal' local.
478 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
479 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
480 bpstat_explains_signal. Don't set ecs->random_signal.
481 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
482 ecs->random_signal.
483
05ba8510
PA
4842013-11-14 Pedro Alves <palves@redhat.com>
485
486 * infrun.c (handle_inferior_event): Move comment from the
487 function's body to the function's description, adjusted.
488
5c09a2c5
PA
4892013-11-14 Pedro Alves <palves@redhat.com>
490
491 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
492 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
493 Assert we never fall through out of the TARGET_WAITKIND_LOADED
494 case.
495
91822956
TT
4962013-11-14 Tom Tromey <tromey@redhat.com>
497
498 * python/py-linetable.c (ltpy_has_line)
499 (ltpy_get_all_source_lines): Fix loop termination condition.
500
403cb6b1
JB
5012013-11-14 Joel Brobecker <brobecker@adacore.com>
502
503 * mi/mi-parse.h (struct mi_parse) <language>: New field.
504 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
505 PARSE->LANGUAGE during command execution, if set.
506 * mi/mi-parse.c: Add "language.h" #include.
507 (mi_parse): Add parsing of "--language" command option.
508
509 * NEWS: Add entry mentioning the new "--language" command option.
510
b5be8ce0
JB
5112013-11-14 Pedro Alves <palves@redhat.com>
512 Joel Brobecker <brobecker@adacore.com>
513
514 * cli/cli-utils.h (extract_arg_const): Add declaration.
515 * cli/cli-utils.c (extract_arg_const): New function.
516 (extract_arg): Reimplement using extract_arg_const.
517
671afef6
JB
5182013-11-14 Joel Brobecker <brobecker@adacore.com>
519
520 * language.h: Add "symtab.h" #include.
521
6c1b0f7b
DE
5222013-11-13 Doug Evans <xdje42@gmail.com>
523
524 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
525 specific breakpoints, don't evaluate breakpoint condition if
526 different thread.
527
74921315
KS
5282013-11-13 Keith Seitz <keiths@redhat.com>
529
248ace2e 530 PR c++/7935
74921315
KS
531 PR c++/10541
532 * cp-support.c (insepct_type): Add support for substituting
533 namespace aliases, too.
534 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
535 for DW_TAG_imported_declaration.
536 (add_partial_symbol): Likewise.
537 (process_die): Handle namespace aliases with
538 read_namespace_alias.
539 (die_needs_namespace): Add DW_TAG_imported_declaration.
540 (read_namespace_alias): New function.
541 (load_partial_dies): Load DW_TAG_imported_declaration, too.
542 (new_symbol_full): Handle DW_TAG_imported_declaration.
543
793156e6
KS
5442013-11-13 Keith Seitz <keiths@redhat.com>
545
546 * p-exp.y (uptok): Make first parameter const.
547 (yylex): Make `tokstart' and `tokptr' const.
548 Don't copy the lexer input to a temporary buffer.
549 Make `p' const.
550 Remove const workaround for parse_escape.
551 Create a temporary buffer for a convenience variable instead
552 of doing in-place modification of the input.
553 If a match is found with a different case from the input,
554 do not change the input at all.
555 Use `tmp' to construct the resultant stoken instead of
556 `tokstart'.
557
c42bd95a
DE
5582013-11-13 Doug Evans <xdje42@gmail.com>
559
560 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
561
93973826
JB
5622013-11-13 Joel Brobecker <brobecker@adacore.com>
563
564 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
565 entry with "ada-exceptions".
566
846060df
JB
5672013-11-13 Joel Brobecker <brobecker@adacore.com>
568
569 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
570 after re-initialization of OBJFILE's obstack.
571
5efd1b2b 5722013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
573
574 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
575 bs->stop != 0 on entry. Update function comment. Simplify early
576 exit for frame mismatch. Reindent rest of function.
577
ee7615e1
AA
5782013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
579
580 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
581 NULL.
582
8943b874
DE
5832013-11-12 Doug Evans <dje@google.com>
584
585 Work around gold/15646.
586 * dwarf2read.c (read_index_from_section): Update comment.
587 (struct dw2_symtab_iterator): New member global_seen.
588 (dw2_symtab_iter_init): Initialize it.
589 (dw2_symtab_iter_next): Skip duplicate global symbols.
590 (dw2_expand_symtabs_matching): Ditto.
591
a8a9844d
JB
5922013-11-12 Joel Brobecker <brobecker@adacore.com>
593
594 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
595 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
596 command.
597 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
598 (mi_cmd_info_ada_exceptions): New function.
599 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
600
778865d3
JB
6012013-11-12 Joel Brobecker <brobecker@adacore.com>
602
603 * ada-lang.h: #include "vec.h".
604 (struct ada_exc_info): New.
605 (ada_exc_info): New typedef.
606 (DEF_VEC_O(ada_exc_info)): New vector.
607 (ada_exceptions_list): Add declaration.
608 * ada-lang.c (ada_is_exception_sym)
609 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
610 (sort_remove_dups_ada_exceptions_list)
611 (ada_exc_search_name_matches, ada_add_standard_exceptions)
612 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
613 (ada_exceptions_list_1, ada_exceptions_list)
614 (info_exceptions_command): New function.
615 (_initialize_ada_language): Add "info exception" command.
616
bc79de95
PM
6172013-11-11 Phil Muldoon <pmuldoon@redhat.com>
618
619 PR python/15629
620 * NEWS: Add linetable feature.
621 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
622 * python/py-linetable.c: New file.
623 * python/py-symtab.c (stpy_get_linetable): New function.
624 * python/python-internal.h (symtab_to_linetable_object): Declare.
625 (gdbpy_initialize_linetable): Ditto.
626 * python/python.c (_initialize_python): Call
627 gdbpy_initialize_linetable.
628
2df4d1d5
JB
6292013-11-11 Joel Brobecker <brobecker@adacore.com>
630
631 * ada-lang.c (create_ada_exception_catchpoint): Enhance
632 the documentation of fields "except_string" and "condition".
633 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
634 CONDITION on the heap before passing it to
635 create_ada_exception_catchpoint.
636 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
637 CONDITION.
638
99c1d451
TT
6392013-11-11 Tom Tromey <tromey@redhat.com>
640
641 * config.in, configure: Rebuild.
642 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
643
8ca5801b
JB
6442013-11-11 Joel Brobecker <brobecker@adacore.com>
645
646 * remote-sim.c (gdbsim_detach): Break declaration into
647 shorter lines. No code change.
648
7a06d430
EBM
6492013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
650
651 * remote-sim.c (gdbsim_detach): Fix prototype.
652
73be47f5
DE
6532013-11-08 Doug Evans <dje@google.com>
654
655 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
656 (create_debug_types_hash_table): Only print debugging messages for
657 each TU if dwarf2-read >= 2.
658 (process_queue): Ditto.
659 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
660 Update doc string.
661
a18d8f10
TT
6622013-11-08 Tom Tromey <tromey@redhat.com>
663
664 * configure: Rebuild.
665 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
666
9467110b
TT
6672013-11-08 Tom Tromey <tromey@redhat.com>
668
669 * configure, config.in: Rebuild.
670 * configure.ac: Remove unused configury.
671
69706679
TT
6722013-11-08 Tom Tromey <tromey@redhat.com>
673
674 * m32c-tdep.c: Use gdb_string.h.
675
9b4bea72
TT
6762013-11-08 Tom Tromey <tromey@redhat.com>
677
678 * configure, config.in: Rebuild.
679 * configure.ac: Remove all link.h-related checks.
680
3266f10b
TT
6812013-11-08 Tom Tromey <tromey@redhat.com>
682
683 * acinclude.m4: Include common.m4.
684 * common/common.m4: New file.
685 * configure, config.in: Rebuild.
686 * configure.ac: Use GDB_AC_COMMON.
687
db0fec5c
DE
6882013-11-08 Doug Evans <dje@google.com>
689
690 * NEWS: Mention that "set debug symtab-create" now accepts a
691 verbosity level.
692 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
693 to set the symtab's primary flag.
694 * jit.c (finalize_symtab): Ditto.
695 * mdebugread.c (psymtab_to_symtab_1): Ditto.
696 * symfile.c (allocate_symtab): Only print debugging messages for
697 symtab_create_debug levels 2 and higher.
698 * symtab.c (symtab_create_debug): Change type to unsigned int.
699 (set_symtab_primary): New function.
700 (_initialize_symtab): Change "set debug symtab-create" to a
701 zuinteger option.
702 * symtab.h (set_symtab_primary): Declare.
703 (symtab_create_debug): Update decl.
704
52554a0e
TT
7052013-11-08 Tom Tromey <tromey@redhat.com>
706
707 * aix-thread.c (aix_thread_detach): Update.
708 * corelow.c (core_detach): Update.
709 * darwin-nat.c (darwin_detach): Update.
710 * dec-thread.c (dec_thread_detach): Update.
711 * gnu-nat.c (gnu_detach): Update.
712 * go32-nat.c (go32_detach): Update.
713 * inf-ptrace.c (inf_ptrace_detach): Update.
714 * inf-ttrace.c (inf_ttrace_detach): Update.
715 * linux-fork.c (linux_fork_detach): Update.
716 * linux-fork.h (linux_fork_detach): Update.
717 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
718 local for const-correctness.
719 * linux-thread-db.c (thread_db_detach): Update.
720 * monitor.c (monitor_detach): Update.
721 * nto-procfs.c (procfs_detach): Update.
722 * procfs.c (procfs_detach): Update.
723 * record.c (record_detach): Update.
724 * record.h (record_detach): Update.
725 * remote-m32r-sdi.c (m32r_detach): Update.
726 * remote-mips.c (mips_detach): Update.
727 * remote-sim.c (gdbsim_detach): Update.
728 * remote.c (remote_detach_1, remote_detach)
729 (extended_remote_detach): Update.
730 * sol-thread.c (sol_thread_detach): Update.
731 * target.c (target_detach): Make "args" const.
732 (init_dummy_target): Update.
733 * target.h (struct target_ops) <to_detach>: Make argument const.
734 (target_detach): Likewise.
735 * windows-nat.c (windows_detach): Update.
736
204b5331
DE
7372013-11-07 Doug Evans <dje@google.com>
738
739 PR 11786
740 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
741 and align fields for PT_GNU_RELRO segments.
742
92e32e33
PM
7432013-11-07 Phil Muldoon <pmuldoon@redhat.com>
744
ef1bc9e7
AM
745 PR python/15747
746 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 747
f76c27b5
PM
7482013-11-07 Phil Muldoon <pmuldoon@redhat.com>
749
750 * NEWS: Document Python temporary breakpoint support.
751 * python/py-breakpoint.c (bppy_get_temporary): New function.
752 (bppy_init): New keyword: temporary. Parse it and set breakpoint
753 to temporary if True.
754
d52cd232
JM
7552013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
756
757 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
758 removed to allow analyzing unconditional branch instructions
759 with PC-relative offsets of zero.
760
fa4d0c40
YQ
7612013-11-07 Yao Qi <yao@codesourcery.com>
762
763 * mi/mi-cmd-var.c: Include "language.h".
764 (mi_cmd_var_info_expression): Get language name from
765 language_defn.
766 * varobj.c (varobj_language_string): Remove.
767 (variable_language): Remove declaration.
768 (languages): Remove.
769 (varobj_get_language): Change the type of return value.
770 (variable_language): Remove.
771 * varobj.h (enum varobj_languages): Remove.
772 (varobj_language_string): Remove declaration.
773 (varobj_get_language): Update declaration.
774
6abde28f
YQ
7752013-11-07 Yao Qi <yao@codesourcery.com>
776
777 * language.h (struct language_defn) <la_natural_name>: New
778 field.
779 * ada-lang.c (ada_language_defn): Initialize field
780 'la_natural_name'.
781 * c-lang.c (c_language_defn): Likewise.
782 (cplus_language_defn, asm_language_defn): Likewise.
783 * d-lang.c (d_language_defn): Likewise.
784 * f-lang.c (f_language_defn): Likewise.
785 * go-lang.c (go_language_defn): Likewise.
786 * jv-lang.c (java_language_defn): Likewise.
787 * language.c (unknown_language_defn ): Likewise.
788 (auto_language_defn): Likewise.
789 * m2-lang.c (m2_language_defn): Likewise.
790 * objc-lang.c (objc_language_defn): Likewise.
791 * opencl-lang.c (opencl_language_defn): Likewise.
792 * p-lang.c (pascal_language_defn): Likewise.
793
27cd387b
YQ
7942013-11-07 Yao Qi <yao@codesourcery.com>
795
796 * language.c (language_str): Return const char *.
797 (add_language): Add const to 'language_names'
798 * language.h (struct language_defn) <la_name>: Add const.
799 (language_str: Update declaration.
800
6682d959
AA
8012013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
802
803 * s390-linux-nat.c (s390_read_description): Consider the TE field
804 in the HWCAP for determining 'have_regset_tdb'.
805
b9502d3f
WN
8062013-11-06 Will Newton <will.newton@linaro.org>
807
808 PR gdb/12866
809 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
810 values. (read_partial_die): Likewise.
811
840da61a
MB
8122013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
813
814 PR cli/16122
815 * top.c (command_line_input): Unify interactivity tests to use
816 input_from_terminal_p.
817 * event-top.c (command_line_handler): Likewise.
818
7636ccf9
YQ
8192013-11-06 Yao Qi <yao@codesourcery.com>
820
821 * Makefile.in (check-perf): New target.
822
12b27276
WN
8232013-11-05 Will Newton <will.newton@linaro.org>
824
825 PR gdb/7670
826 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
827 (arm_print_float_info): Likewise.
828
67c059c2
AB
8292013-11-04 Anton Blanchard <anton@samba.org>
830
831 * target.c (memory_xfer_partial): Cap write to 4KB.
832
0569175e
TSD
8332013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
834
835 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
836 probe scan even when the arch provides no get_longjmp_target.
837
b18e90f5
PA
8382013-10-31 Pedro Alves <palves@redhat.com>
839
840 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
841 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
842 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
843 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
844 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
845 <bpstat handling>: If the bpstat chain wants the signal to be
846 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
847 GDB_SIGNAL_TRAP.
848
638aa5a1
AB
8492013-10-31 Andrew Burgess <aburgess@broadcom.com>
850
851 * breakpoint.c (update_watchpoint): Update error message and add
852 an additional error message.
853
0e5fae36
UW
8542013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
855
856 * s390-tdep.h: Rename to...
857 * s390-linux-tdep.h: ...here.
858 * s390-tdep.c: Rename to...
859 * s390-linux-tdep.c: ...here. Adjust #include.
860 * s390-nat.c: Rename to...
861 * s390-linux-nat.c: ...here. Adjust #include.
862 * config/s390/s390.mh: Rename to...
863 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
864 s390-linux-nat.o.
865 * configure.host: Reflect host rename "s390" -> "linux".
866 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
867 * Makefile.in (ALL_TARGET_OBS): Likewise.
868 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
869 s390-linux-tdep.h.
870 (ALLDEPFILES): Reflect rename of .c files.
871
34201ae3
UW
8722013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
873
874 * s390-nat.c: Whitespace cleanup.
875 * s390-tdep.c: Likewise.
876 * s390-tdep.h: Remove empty line at end of file.
877
e17aaa33
MR
8782013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
879
880 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
881 siginfo_size.
882
aee17e42
TT
8832013-10-29 Tom Tromey <tromey@redhat.com>
884
885 * utils.c (reg): Move undefinition...
886 * gdb_curses.h: ... here. Update comment to mention AIX.
887
9ac69859
NB
8882013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
889
890 * exec.h (add_target_sections_of_objfile): New declaration.
891 * exec.c (add_target_sections_of_objfile): New function.
892 * symfile.c (add_symbol_file_command): Update current target sections.
893 (remove_symbol_file_command): New command.
894 (symfile_free_objfile): New function.
895 (_initialize_symfile): Register observer for free_objfile events.
896 * NEWS: Add description of the remove-symbol-file command.
897 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
898 * objfiles.c (free_objfile): Notify free_objfile.
899 (is_addr_in_objfile): New function.
900 * objfiles.h (is_addr_in_objfile): New declaration.
901 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
902 events instead of solib_unloaded events.
903 (_initialize_printcmd): Register observer for free_objfile instead
904 of solib_unloaded notifications.
905 * solib.c (remove_user_added_objfile): New function.
906 (_initialize_symfile): Add remove-symbol-file.
907
f69d9aef
AB
9082013-10-29 Andrew Burgess <aburgess@broadcom.com>
909
910 * infcmd.c (default_print_one_register_info): Use val_print to
911 print all values even optimized out or unavailable ones. Don't
912 try to print a raw form of optimized out or unavailable values.
913
487ad57c
YQ
9142013-10-29 Yao Qi <yao@codesourcery.com>
915
916 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
917 parameter 'arg' instead of from program_space_data.
918 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
919 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
920 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
921 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
922 * inflow.c (inflow_inferior_data_cleanup): Get data from
923 parameter 'arg' instead of inferior_data.
924 * registry.h: Add comments.
925
3c4797ba
PA
9262013-10-28 Pedro Alves <palves@redhat.com>
927
928 * breakpoint.c (watchpoints_triggered)
929 <!target_stopped_data_address>: Hardcode return 1.
930
cdaa5b73
PA
9312013-10-28 Pedro Alves <palves@redhat.com>
932
933 * infrun.c (process_event_stop_test): Remove unnecessary scoping
934 level and reindent.
935
94c57d6a
PA
9362013-10-28 Pedro Alves <palves@redhat.com>
937
938 * infrun.c (process_event_stop_test): New function, factored out
939 from handle_inferior_event.
940 (handle_inferior_event): 'process_event_stop_test' is now a
941 function instead of a goto label -- adjust.
942
fcf3daef
PA
9432013-10-28 Pedro Alves <palves@redhat.com>
944
945 * infrun.c (handle_inferior_event): Move process_event_stop_test
946 goto label to the else branch of the ecs->random_signal check,
947 along with FRAME and GDBARCH re-fetching.
948
c447ac0b
PA
9492013-10-28 Pedro Alves <palves@redhat.com>
950
951 * infrun.c (switch_back_to_stepped_thread): New function, factored
952 out from handle_inferior_event.
953 (handle_inferior_event): Adjust to call
954 switch_back_to_stepped_thread. Call it also at the tail of the
955 random signal handling, and return, instead of also handling
956 random signals just before the stepping tests.
957
f05e4c11
PA
9582013-10-28 Pedro Alves <palves@redhat.com>
959
960 * infrun.c (clear_stop_func): Delete.
961 (handle_inferior_event): Don't call clear_stop_func and don't
962 clear 'ecs->random_signal'.
963
ca20d462
YQ
9642013-10-27 Yao Qi <yao@codesourcery.com>
965
966 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
967 (varobj_create, varobj_get_path_expr): Update.
968 (varobj_value_has_mutated, varobj_update): Likewise.
969 (create_child_with_value, new_root_variable): Likewise.
970 (number_of_children, name_of_variable): Likewise.
971 (value_of_child, my_value_of_variable): Likewise.
972 (varobj_value_is_changeable_p): Likewise.
973
a53b64ea
YQ
9742013-10-25 Yao Qi <yao@codesourcery.com>
975
976 * language.h (struct lang_varobj_ops): Declare.
977 (struct language_defn) <la_varobj_ops>: New field.
978 * ada-lang.c: Include "varobj.h"
979 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
980 ada_varobj_ops.
981 * c-lang.c: Include "varobj.h"
982 (c_language_defn): Initialize field 'la_varobj_ops' with
983 c_varobj_ops.
984 (cplus_language_defn): Initialize field 'la_varobj_ops' with
985 cplus_varobj_ops.
986 (asm_language_defn): Initialize field 'la_varobj_ops' with
987 default_varobj_ops.
988 (minimal_language_defn): Likewise.
989 * d-lang.c (d_language_defn): Likewise.
990 * f-lang.c (f_language_defn): Likewise.
991 * go-lang.c (go_language_defn): Likewise.
992 * m2-lang.c (m2_language_defn): Likewise.
993 * objc-lang.c (objc_language_defn): Likewise.
994 * opencl-lang.c (opencl_language_defn): Likewise.
995 * p-lang.c (pascal_language_defn): Likewise.
996 * language.c (unknown_language_defn): Likewise.
997 (auto_language_defn): Likewise.
998 (local_language_defn): Likewise.
999 * jv-lang.c (java_language_defn): Initialize field
1000 'la_varobj_ops' with java_varobj_ops.
1001 * varobj.c (varobj_create): Update.
1002 * varobj.h (default_varobj_ops): Define macro.
1003
686d4def
PA
10042013-10-25 Pedro Alves <palves@redhat.com>
1005
1006 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1007 static field value.
1008 (cp_print_static_field): If the value is entirely optimized out,
1009 print <optimized out> here.
1010 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1011 static field value.
1012 * p-valprint.c (pascal_object_print_static_field): If the value is
1013 entirely optimized out, print <optimized out> here.
1014 * valops.c (do_search_struct_field)
1015 (value_struct_elt_for_reference): No longer handle a NULL static
1016 field value.
1017 * value.c (value_static_field): Return an optimized out value
1018 instead of NULL.
1019
6c177e28
YQ
10202013-10-25 Yao Qi <yao@codesourcery.com>
1021
1022 * remote.c (remote_traceframe_info): Return early if
1023 traceframe is not selected.
1024
98322bfa
YQ
10252013-10-25 Yao Qi <yao@codesourcery.com>
1026
1027 * tracepoint.c (traceframe_fun): Remove.
1028 (traceframe_sal): Remove.
1029 (set_traceframe_context): Add local variables.
1030
6ba1f115
JB
10312013-10-25 Joel Brobecker <brobecker@adacore.com>
1032
1033 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1034 and parameter name.
1035
bbe769cc
MR
10362013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1037
1038 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1039 failure from register information collection.
1040
72ee4495 10412013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1042
1043 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1044 member.
1045 (linux_corefile_thread_callback): Update accordingly.
1046 (linux_make_corefile_notes): Likewise.
1047
98882a26
PA
10482013-10-24 Pedro Alves <palves@redhat.com>
1049
1050 * NEWS (New options): Mention set/show startup-with-shell.
1051 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1052 instead of 3.
1053 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1054 startup-with-shell'.
1055 (show_startup_with_shell): New function.
1056 (_initialize_fork_child): Register the set/show startup-with-shell
1057 commands.
1058 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1059 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1060 * procfs.c (procfs_init_inferior): Remove comment.
1061 * infcmd.c (startup_with_shell): New global.
1062 * inferior.h (startup_with_shell): Declare global.
1063 (STARTUP_WITH_SHELL): Delete.
1064 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1065
c9737c08
PA
10662013-10-23 Pedro Alves <palves@redhat.com>
1067
1068 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1069 * common/signals.c: Include "gdb_assert.h".
1070 (signals): New field 'symbol'.
1071 (SET): Use the 'symbol' parameter.
1072 (gdb_signal_to_symbol_string): New function.
1073 * infrun.c (handle_inferior_event) <random signal>: In debug
1074 output, print the random signal enum as string in addition to its
1075 number.
1076 * target/waitstatus.c (target_waitstatus_to_string): Print the
1077 signal's enum value as string instead of the (POSIX) signal name.
1078
f60db4f0
GB
10792013-10-23 Gary Benson <gbenson@redhat.com>
1080
1081 PR 16013
1082 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1083 from 32 to 18. Adjusted fscanf format string accordingly.
1084 (Avoids leaving cmd unterminated.)
1085 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1086 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1087 that local_address and remote_address will not overflow.
1088 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1089 leaving dependencies unterminated. Parse size as "%u" to match
1090 definition.
1091
6d3e7a94
PA
10922013-10-22 Pedro Alves <palves@redhat.com>
1093
1094 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1095 set ecs->random signal.
1096
42ec045f
PA
10972013-10-22 Pedro Alves <palves@redhat.com>
1098
1099 * infrun.c (keep_going): Update comments.
1100
11012013-10-22 Pedro Alves <palves@redhat.com>
1102
1103 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1104 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1105
11062013-10-22 Pedro Alves <palves@redhat.com>
1107
1108 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1109 GDB_EXC_BAD_ACCESS.
1110 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1111 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1112 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1113 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1114 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1115 (GDB_SIGNAL_LAST): Change description string.
1116 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1117 Adjust to signal renaming.
1118 * darwin-nat.c (darwin_decode_message): Likewise.
1119
c8fde1b1
JM
11202013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1121
1122 * MAINTAINERS (Write After Approval): Add myself to the list.
1123
e8369a73
AB
11242013-10-18 Andrew Burgess <aburgess@broadcom.com>
1125
1126 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1127 forced off, downgrade them to software watchpoints if possible,
1128 and error out if not possible.
1129 (watch_command_1): Move watchpoint type selection closer to
1130 watchpoint creation, and extend the comments.
1131
776f04fa
PA
11322013-10-18 Pedro Alves <palves@redhat.com>
1133
1134 PR gdb/16062
1135 * infrun.c (handle_inferior_event): Keep going if we got a random
1136 signal we should not stop for, instead of falling through to the
1137 step tests.
1138
0c6faab5
YQ
11392013-10-18 Yao Qi <yao@codesourcery.com>
1140
1141 * c-varobj.c (cplus_number_of_children): Fix indentation.
1142
50b34a18
TT
11432013-10-17 Tom Tromey <tromey@redhat.com>
1144
1145 PR gdb/15995:
1146 * printcmd.c (printcmd): Call gdb_flush.
1147
5c4c8a59
TT
11482013-10-17 Tom Tromey <tromey@redhat.com>
1149
1150 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1151 (elf_locate_sections): Update.
1152
c4124bf1
YQ
11532013-10-17 Yao Qi <yao@codesourcery.com>
1154
1155 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1156 * ada-varobj.c: Remove the include of ada-varobj.h.
1157 (ada_varobj_get_number_of_children): Declare.
1158 (ada_varobj_get_name_of_child): Make it static.
1159 (ada_varobj_get_path_expr_of_child): Likewise.
1160 (ada_varobj_get_value_of_child): Likewise.
1161 (ada_varobj_get_type_of_child): Likewise.
1162 (ada_varobj_get_value_of_array_variable): Likewise.
1163 * ada-varobj.h: Remove.
1164
99ad9427
YQ
11652013-10-17 Yao Qi <yao@codesourcery.com>
1166
1167 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1168 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1169 * ada-varobj.c: Include "varobj.h".
1170 (ada_number_of_children): New. Moved from varobj.c.
1171 (ada_name_of_variable, ada_name_of_child): Likewise.
1172 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1173 (ada_type_of_child, ada_value_of_variable): Likewise.
1174 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1175 (ada_varobj_ops): New.
1176 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1177 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1178 * gdbtypes.h (get_target_type): Declare.
1179 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1180 "ada-lang.h".
1181 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1182 (ANONYMOUS_UNION_NAME): Likewise.
1183 (get_type, get_value_type, get_target_type): Remove declarations.
1184 (value_get_print_value, varobj_value_get_print_value): Likewise.
1185 (c_number_of_children, c_name_of_variable): Likewise.
1186 (c_name_of_child, c_path_expr_of_child): Likewise.
1187 (c_value_of_child, c_type_of_child): Likewise.
1188 (c_value_of_variable, cplus_number_of_children): Likewise.
1189 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1190 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1191 (cplus_value_of_child, cplus_type_of_child): Likewise.
1192 (cplus_value_of_variable, java_number_of_children): Likewise.
1193 (java_name_of_variable, java_name_of_child): Likewise.
1194 (java_path_expr_of_child, java_value_of_child): Likewise.
1195 (java_type_of_child, java_value_of_variable): Likewise.
1196 (ada_number_of_children, ada_name_of_variable): Likewise.
1197 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1198 (ada_value_of_child, ada_type_of_child): Likewise.
1199 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1200 (ada_value_has_mutated): Likewise.
1201 (struct language_specific): Move it to varobj.h.
1202 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1203 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1204 Callers update.
1205 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1206 Make it extern.
1207 (is_anonymous_child): Move it to c-varobj.c and rename to
1208 varobj_is_anonymous_child. Caller update.
1209 (get_type): Move it to c-varobj.c.
1210 (get_value_type): Rename it varobj_get_value_type. Make it
1211 extern.
1212 (get_target_type): Move it gdbtypes.c.
1213 (varobj_formatted_print_options): New function.
1214 (value_get_print_value): Rename it to
1215 varobj_value_get_print_value and make it extern.
1216 (varobj_value_is_changeable_p): Make it extern.
1217 (adjust_value_for_child_access): Move it to c-varobj.c.
1218 (default_value_is_changeable_p): Rename it to
1219 varobj_default_value_is_changeable_p. Make it extern.
1220 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1221 (c_name_of_child, c_path_expr_of_child): Likewise.
1222 (c_value_of_child, c_type_of_child): Likewise.
1223 (c_value_of_variable, cplus_number_of_children): Likewise.
1224 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1225 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1226 (cplus_value_of_child, cplus_type_of_child): Likewise.
1227 (cplus_value_of_variable): Likewise.
1228 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1229 (java_name_of_child, java_path_expr_of_child): Likewise.
1230 (java_value_of_child, java_type_of_child): Likewise.
1231 (java_value_of_variable): Likewise.
1232 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1233 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1234 (ada_value_of_child, ada_type_of_child): Likewise.
1235 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1236 (ada_value_has_mutated): Likewise.
1237 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1238 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1239 (c_varobj_ops, cplus_varobj_ops): Declare.
1240 (java_varobj_ops, ada_varobj_ops): Declare.
1241 (varobj_default_value_is_changeable_p): Declare.
1242 (varobj_value_is_changeable_p): Declare.
1243 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1244 (varobj_get_path_expr_parent): Declare.
1245 (varobj_value_get_print_value): Declare.
1246 (varobj_formatted_print_options): Declare.
1247 (varobj_restrict_range): Declare.
1248
c8a62302
LM
12492013-10-17 Luis Machado <lgustavo@codesourcery.com>
1250
1251 * target/waitstatus.h (target_waitkind): Remove spurious
1252 character from the comments.
1253
eade6471
JB
12542013-10-17 Joel Brobecker <brobecker@adacore.com>
1255
1256 * gdbarch.sh (get_longjmp_target): Add method documentation.
1257 * gdbarch.h: Regenerate.
1258
5411b26c
TT
12592013-10-16 Tom Tromey <tromey@redhat.com>
1260
1261 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1262 label.
1263
87326c87
LM
12642013-10-16 Luis Machado <lgustavo@codesourcery.com>
1265
1266 * gcore.in: Call GDB using the full path to the gcore script.
1267 Error out if the GDB binary is not found.
1268
fd0a4d76
SDJ
12692013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1270
1271 PR gdb/16014
1272 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1273 sizeof.
1274
d92f7ee3
SDJ
12752013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1276
1277 PR gdb/16042
1278 * target.c (target_disable_btrace): Fix invalid return value for
1279 void function.
1280 (target_teardown_btrace): Likewise.
1281
bb5ce47a
YQ
12822013-10-14 Yao Qi <yao@codesourcery.com>
1283
1284 * varobj.c (struct varobj): Move most of the fields to
1285 varobj.h.
1286 (struct varobj_dynamic): New struct.
1287 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1288 (varobj_has_more): Likewise.
1289 (dynamic_varobj_has_child_method): Likewise.
1290 (update_dynamic_varobj_children): Likewise.
1291 (varobj_get_num_children): Likewise.
1292 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1293 (install_new_value_visualizer): Likewise.
1294 (install_new_value_visualizer, install_new_value): Likewise.
1295 (varobj_update, new_variable, free_variable): Likewise.
1296 (my_value_of_variable, value_get_print_value): Likewise.
1297 (install_visualizer): Change the type of parameter 'var' to
1298 'struct varobjd_dynamic *'. Callers update.
1299 * varobj.h (struct varobj): Moved from varobj.c.
1300 (struct varobj) <dynamic>: New field.
1301
0b76b0ce
SL
13022013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1303
1304 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1305 as the preferred name of r30.
1306 * nios2-linux-tdep.c (reg_offsets): Likewise.
1307 * features/nios2-cpu.xml: Likewise.
1308 * features/nios2-linux.c: Regenerated.
1309 * features/nios2.c: Regenerated.
1310 * regformats/nios2-linux.dat: Regenerated.
1311
4856b6bc
JK
13122013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1313
1314 Canonicalize directories for EXEC_FILENAME.
1315 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1316 exec_filename.
1317 * utils.c (gdb_realpath_keepfile): New function.
1318 * utils.h (gdb_realpath_keepfile): New declaration.
1319
9b557b58
DE
13202013-10-11 Doug Evans <dje@google.com>
1321
1322 * Makefile.in (GDBFLAGS): New variable.
1323 (run): New rule.
1324
ce13fade
JB
13252013-10-11 Joel Brobecker <brobecker@adacore.com>
1326
1327 * NEWS: Add entry documenting the new "-catch-assert" and
1328 "-catch-exception" GDB/MI commands.
1329
349774ef
JB
13302013-10-11 Joel Brobecker <brobecker@adacore.com>
1331
1332 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1333 "enabled".
1334 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1335 "enabled". Set B->ENABLE_STATE accordingly.
1336 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1337 ada-lang.c.
1338 (create_ada_exception_catchpoint): Add declaration.
1339 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1340 (create_ada_exception_catchpoint): Make non-static. Add new
1341 parameter "disabled". Use it in call to
1342 init_ada_exception_breakpoint.
1343 (catch_ada_exception_command): Add parameter "enabled" in call
1344 to create_ada_exception_catchpoint.
1345 (catch_assert_command): Likewise.
1346
1347 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1348 Add declarations.
1349 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1350 "catch-exception" commands.
1351 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1352 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1353
761269c8
JB
13542013-10-11 Joel Brobecker <brobecker@adacore.com>
1355
1356 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1357 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1358 of all its enumerates with "ada_". Update the rest of this
1359 file throughout.
1360
b4a5b78b
JB
13612013-10-11 Joel Brobecker <brobecker@adacore.com>
1362
1363 * ada-lang.c (ada_decode_exception_location): Delete.
1364 (create_ada_exception_catchpoint): Remove arguments "sal",
1365 "addr_string" and "ops". Add argument "ex_kind" instead.
1366 Adjust implementation accordingly, calling ada_exception_sal
1367 to get the entities it no longer gets passed as arguments.
1368 Document the function's arguments.
1369 (catch_ada_exception_command): Use catch_ada_exception_command_split
1370 instead of ada_decode_exception_location, and update call to
1371 create_ada_exception_catchpoint.
1372 (catch_ada_assert_command_split): Renames
1373 ada_decode_assert_location. Remove parameters "addr_string" and
1374 "ops", and now returns void. Adjust implementation accordingly.
1375 Update the function documentation.
1376 (catch_assert_command): Use catch_ada_assert_command_split
1377 instead of ada_decode_assert_location. Update call to
1378 create_ada_exception_catchpoint.
1379
7ad1d32c 13802013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1381
1382 * utils.h (perror_warning_with_name): Add declaration.
1383 * utils.c (perror_warning_with_name): New function.
1384 * cli/cli-cmds.c (source_script_with_search): Add call to
1385 perror_warning_with_name if from_tty is nul.
1386
7ad1d32c 13872013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1388
1389 * utils.c (perror_string): New function, extracted out of
1390 throw_perror_with_name.
1391 (throw_perror_with_name): Rework to use perror_string.
1392
bcc75809
YQ
13932013-10-11 Yao Qi <yao@codesourcery.com>
1394
1395 * remote.c (discard_pending_stop_replies_in_queue): Update
1396 declaration.
1397 (struct stop_reply) <rs>: New field.
1398 (remove_stop_reply_of_remote_state): New function.
1399 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1400 Callers update. Pass remove_stop_reply_of_remote_state to
1401 QUEUE_iterate.
1402 (remote_parse_stop_reply): Initialize field 'rs'.
1403
05feb193
WN
14042013-10-10 Will Newton <will.newton@linaro.org>
1405
1406 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1407 linux_init_abi.
1408
0d12017b
JB
14092013-10-10 Joel Brobecker <brobecker@adacore.com>
1410
1411 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1412 serial_baud_show_cmd.
1413 (_initialize_cli_cmds): Delete the code creating the
1414 "set/show remotebaud" commands.
1415 * serial.c (baud_rate): Move here from top.c.
1416 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1417 (_initialize_serial): Create "set/show serial baud" commands.
1418 Add "set/show remotebaud" command aliases.
1419 * top.c (baud_rate): Moved to serial.c.
1420 * NEWS: Document the new "set/show serial baud" commands,
1421 replacing "set/show remotebaud".
1422
578d3588
PA
14232013-10-09 Pedro Alves <palves@redhat.com>
1424
1425 * breakpoint.c (insert_bp_location): Use memory_error_message to
1426 build the memory error string.
1427 * c-lang.c: Include "gdbcore.h".
1428 (c_get_string): Use memory_error to throw error.
1429 (target_xfer_memory_error): Delete.
1430 (memory_error_message): New, factored out from
1431 target_xfer_memory_error.
1432 (memory_error): Change parameter type to target_xfer_error.
1433 Rewrite.
1434 (read_memory): Use memory_error instead of
1435 target_xfer_memory_error.
1436 * gdbcore.h: Include "target.h".
1437 (memory_error): Change parameter type to target_xfer_error.
1438 (memory_error_message): Declare function.
1439 * target.c (target_read_memory, target_read_stack)
1440 (target_write_memory, target_write_raw_memory): Return
1441 TARGET_XFER_E_IO on error. Adjust comments.
1442 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1443 instead of EIO.
1444 * target.h (target_read, target_insert_breakpoint)
1445 (target_remove_breakpoint): Adjust comments.
1446 * valprint.c (partial_memory_read): Rename parameter, and adjust
1447 comment.
1448 (val_print_string): Use memory_error_message to build the memory
1449 error string.
1450
c74e1ccf
JK
14512013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1452
1453 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1454 result variable. Rename variable fopen_e_ever_failed to
1455 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1456
915215be
PA
14572013-10-09 Pedro Alves <palves@redhat.com>
1458
1459 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1460 (monitor_write_memory_longlongs, monitor_write_memory_block):
1461 Constify 'myaddr' parameter.
1462 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1463 helper.
1464 (monitor_xfer_partial): New function.
1465 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1466 hook. Install a to_xfer_partial hook.
1467
acd13123
TT
14682013-10-09 Tom Tromey <tromey@redhat.com>
1469
1470 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1471 bfd_get_alt_debug_link_info.
1472
40135bb1
JK
14732013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1474
1475 New flag OBJF_NOT_FILENAME.
1476 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1477 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1478 allocate_objfile.
1479 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1480 symbol_file_add_from_bfd.
1481 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1482 allocate_objfile.
1483 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1484 NULL.
1485 * objfiles.h (OBJF_NOT_FILENAME): New.
1486
dc294be5
TT
14872013-10-08 Tom Tromey <tromey@redhat.com>
1488
1489 * Makefile.in (SFILES): Add build-id.c.
1490 (HFILES_NO_SRCDIR): Add build-id.h.
1491 * build-id.c: New file, largely from elfread.c. Modified
1492 most functions.
1493 * build-id.h: New file.
1494 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1495 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1496 Search for dwz file using build-id.
1497 * elfread.c (build_id_bfd_get, build_id_verify)
1498 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1499
db230ce3
JB
15002013-10-08 Joel Brobecker <brobecker@adacore.com>
1501
1502 * ada-lang.c (compare_names_with_case): Renamed from
1503 compare_names, adding a new parameter "casing" and its handling.
1504 New function documentation.
1505 (compare_names): New function, implemented using
1506 compare_names_with_case.
1507
6501c98a
JB
15082013-10-08 Joel Brobecker <brobecker@adacore.com>
1509
1510 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1511
84a1243b
TT
15122013-10-07 Tom Tromey <tromey@redhat.com>
1513
1514 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1515 demangled_names_hash.
1516 (free_objfile): Don't delete the demangled_names_hash.
1517 * objfiles.h (struct objfile_per_bfd_storage)
1518 <demangled_names_hash>: New field.
1519 (struct objfile) <demangled_names_hash>: Move to
1520 objfile_per_bfd_storage.
1521 * symfile.c (reread_symbols): Don't delete the
1522 demangled_names_hash.
1523 * symtab.c (create_demangled_names_hash): Update.
1524 (symbol_set_names): Update.
1525
1da77581
TT
15262013-10-07 Tom Tromey <tromey@redhat.com>
1527
1528 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1529 needs_relocations>: New fields.
1530 (gdb_bfd_requires_relocations): New function.
1531 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1532 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1533 the BFD needs relocations applied.
1534
46ecd527
PA
15352013-10-07 Pedro Alves <palves@redhat.com>
1536
1537 PR breakpoints/11568
1538 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1539 the thread list" instead of "gone".
1540
0c557179
SDJ
15412013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1542
1543 * NEWS: Mention new convenience variable $_exitsignal.
1544 * corelow.c (core_open): Reset exit convenience variables. Set
1545 $_exitsignal to the uncaught signal which generated the corefile.
1546 * infrun.c (handle_inferior_event): Reset exit convenience
1547 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1548 (clear_exit_convenience_vars): New function.
1549 * inferior.h (clear_exit_convenience_vars): New prototype.
1550
1cc47d81
YQ
15512013-10-06 Yao Qi <yao@codesourcery.com>
1552
1553 * varobj.h: Add comments to enum varobj_languages.
1554
73869dc2
DE
15552013-10-04 Doug Evans <dje@google.com>
1556
1557 Add support for DWP file format version 2.
1558 * NEWS: Mention support for DWP file format version 2.
1559 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1560 union of asection, containing_section. New fields virtual_offset
1561 and is_virtual. Change type of readin filed from int to char.
1562 (dwo_sections, dwo_file): Tweak comments.
1563 (dwp_v2_section_ids): New enum.
1564 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1565 str_offsets, types.
1566 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1567 All uses updated.
1568 (virtual_v2_dwo_sections): New struct.
1569 (dwp_hash_table): New fields version, nr_columns. Change type of
1570 section_pool field to a union.
1571 (dwp_file): New field version.
1572 (dwarf2_has_info): Check for virtual sections.
1573 (get_containing_section): New function.
1574 (get_section_bfd_owner, get_section_bfd_section): Call it.
1575 (dwarf2_locate_sections): Update.
1576 (dwarf2_section_empty_p): Update.
1577 (dwarf2_read_section): Handle virtual sections.
1578 (locate_dwz_sections): Update.
1579 (create_dwp_hash_table): Document and handle V2 format.
1580 (locate_v1_virtual_dwo_sections): Renamed from
1581 locate_virtual_dwo_sections and update. All callers updated.
1582 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1583 Delete arg htab. Rename arg section_index to unit_index.
1584 All callers updated.
1585 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1586 All uses updated.
1587 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1588 (lookup_dwo_unit_in_dwp): Add V2 support.
1589 (dwarf2_locate_dwo_sections): Update.
1590 (dwarf2_locate_common_dwp_sections): Renamed from
1591 dwarf2_locate_dwp_sections and update. All callers updated.
1592 (dwarf2_locate_v2_dwp_sections): New function.
1593 (open_and_init_dwp_file): Add V2 support.
1594 (read_str_index): New locals str_section, str_offsets_section.
1595
9a2c3737
PA
15962013-10-04 Pedro Alves <palves@redhat.com>
1597
1598 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1599 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1600 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1601 describing comments with references to ptid.h.
1602 * common/ptid.h: Remove intro description of constructors,
1603 accessors and predicates.
1604 (struct ptid): Reformat.
1605 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1606 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1607 describing comments.
1608
f5371440
JB
16092013-10-04 Joel Brobecker <brobecker@adacore.com>
1610
1611 * aix-thread.c (sync_threadlists): Add missing ')' in call
1612 to ptid_build.
1613
793e1c06
JB
16142013-10-04 Joel Brobecker <brobecker@adacore.com>
1615
1616 * procfs.c (procfs_init_inferior): Fix typo causing the build
1617 to fail.
1618
26f0edc1
JB
16192013-10-04 Joel Brobecker <brobecker@adacore.com>
1620
1621 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1622
5713b9b5
JB
16232013-10-04 Joel Brobecker <brobecker@adacore.com>
1624
1625 * mi/mi-main.c (run_one_inferior): Add function description.
1626 Make ARG a pointer to an integer whose value determines whether
1627 we should "run" or "start" the program.
1628 (mi_cmd_exec_run): Add handling of the "--start" option.
1629 Reject all other command-line options.
1630 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1631
f48ff2a7
YQ
16322013-10-04 Yao Qi <yao@codesourcery.com>
1633
1634 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1635 (struct notif_client) <pending_event>: Moved
1636 to struct remote_notif_state.
1637 <id>: New field.
1638 (struct remote_notif_state) <pending_event>: New field.
1639 (notif_event_xfree): Declare.
1640 * remote-notif.c (handle_notification): Adjust.
1641 (notif_event_xfree): New function.
1642 (do_notif_event_xfree): Call notif_event_xfree.
1643 (remote_notif_state_xfree): Call notif_event_xfree to free
1644 each element in field pending_event.
1645 * remote.c (discard_pending_stop_replies): Remove declaration.
1646 (discard_pending_stop_replies_in_queue): Declare.
1647 (remote_close): Call discard_pending_stop_replies_in_queue
1648 instead of discard_pending_stop_replies.
1649 (remote_start_remote): Adjust.
1650 (stop_reply_xfree): Call notif_event_xfree.
1651 (notif_client_stop): Adjust initialization.
1652 (remote_notif_remove_all): Rename it to ...
1653 (remove_stop_reply_for_inferior): ... this. Update comments.
1654 Don't check INF is NULL.
1655 (discard_pending_stop_replies): Return early if notif_state is
1656 NULL. Adjust. Don't check INF is NULL.
1657 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 1658 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
1659 (remote_wait_ns): Likewise.
1660
5965e028
YQ
16612013-10-04 Yao Qi <yao@codesourcery.com>
1662
1663 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1664 (notif_queue): Remove.
1665 (remote_notif_process): Add one parameter 'notif_queue'.
1666 Update comments. Callers update.
1667 (remote_async_get_pending_events_token): Remove.
1668 (remote_notif_register_async_event_handler): Remove.
1669 (remote_notif_unregister_async_event_handler): Remove.
1670 (handle_notification): Add parameter 'notif_queue'. Update
1671 comments. Callers update.
1672 (notif_xfree): Remove.
1673 (remote_notif_state_allocate): New function.
1674 (remote_notif_state_xfree): New function.
1675 (_initialize_notif): Remove code to allocate queue.
1676 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1677 (struct remote_notif_state): New.
1678 (handle_notification): Update declaration.
1679 (remote_notif_process): Likewise.
1680 (remote_notif_register_async_event_handler): Remove.
1681 (remote_notif_unregister_async_event_handler): Remove.
1682 (remote_notif_state_allocate): Declare.
1683 (remote_notif_state_xfree): Declare.
1684 * remote.c (struct remote_state) <notif_state>: New field.
1685 (remote_close): Don't call
1686 remote_notif_unregister_async_event_handler. Call
1687 remote_notif_state_xfree.
1688 (remote_open_1): Don't call
1689 remote_notif_register_async_event_handler. Call
1690 remote_notif_state_allocate.
1691
5e5ac9a5
YQ
16922013-10-04 Yao Qi <yao@codesourcery.com>
1693
1694 * varobj.c (create_child_with_value): Remove 'const' from the
1695 type of parameter 'name'.
1696 (varobj_add_child): Likewise.
1697 (install_dynamic_child): Remove 'const' from the type of
1698 parameter 'name'.
1699 (varobj_add_child): Likewise.
1700 (create_child_with_value): Likewise. Update comments. Don't
1701 duplicate 'name'.
1702 (update_dynamic_varobj_children): Duplicate 'name'
1703 and pass it to install_dynamic_child.
1704
06ab7b19
PM
17052013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1706
1707 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1708 conversion logic to occur after PyLong_Check. Comment on order
1709 change significance.
1710 * python/py-arch.c (archpy_disassemble): Comment on order of
1711 conversion for integers and longs.
1712
8ae377e8
PA
17132013-10-03 Pedro Alves <palves@redhat.com>
1714
1715 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1716 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1717 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1718 PTRACE_O_TRACEFORK is not supported.
1719 (linux_test_for_tracesysgood): New function.
1720 (linux_test_for_tracefork): New function, factored out from
1721 linux_check_ptrace_features, and also don't kill child_pid here.
1722
b1328b1b
TG
17232013-10-03 Tristan Gingold <gingold@adacore.com>
1724
1725 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1726 Remove verbose error reporting. Use detected state to
1727 thread_set_state call.
1728 (i386_darwin_dr_get): Fix return type. Remove verbose error
1729 report.
1730 Remove trailing spaces.
1731
901461f8
PA
17322013-10-02 Pedro Alves <palves@redhat.com>
1733
1734 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1735 val_print_optimized_out.
1736 * jv-valprint.c (java_print_value_fields): Likewise.
1737 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1738 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1739 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1740 new optimized out value.
1741 * findvar.c (address_from_register): Likewise.
1742 * frame.c (put_frame_register): Tweak error string to say the
1743 register was not saved, rather than optimized out.
1744 * infcmd.c (default_print_one_register_info): Adjust call to
1745 val_print_optimized_out. Use value_of_register instead of
1746 get_frame_register_value.
1747 * mi/mi-main.c (output_register): Use value_of_register instead of
1748 get_frame_register_value.
1749 * valprint.c (valprint_check_validity): Likewise.
1750 (val_print_optimized_out): New value parameter. If the value is
1751 lval_register, print <not saved> instead.
1752 (value_check_printable, val_print_scalar_formatted): Adjust calls
1753 to val_print_optimized_out.
1754 * valprint.h (val_print_optimized_out): New value parameter.
1755 * value.c (struct value) <optimized_out>: Extend comment.
1756 (error_value_optimized_out): New function.
1757 (require_not_optimized_out): Use it. Use a different string for
1758 lval_register values.
1759 * value.h (error_value_optimized_out): New declaration.
1760 * NEWS: Mention <not saved>.
1761
042a84d9
JB
17622013-10-02 Joel Brobecker <brobecker@adacore.com>
1763
1764 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1765 strcmp to compare two symtab filenames.
1766
6b9780fb
JB
17672013-10-02 Joel Brobecker <brobecker@adacore.com>
1768
1769 * symtab.c (search_symbols_equal): Delete.
1770 (sort_search_symbols_remove_dups): Replace call to
1771 search_symbols_equal by call to compare_search_syms,
1772 adjusting as necessary.
1773
751e7549
PM
17742013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1775
1776 PR python/15579
751e7549
PM
1777 * python/python.c: Document gdb.execute command in Python help.
1778
1efd7661
PM
17792013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1780
1781 * python/py-frame.c (frame_info_to_frame_object): Use
1782 gdbpy_convert_exception. Clean up Python object on failure.
1783
562fc849
PM
17842013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1785
1786 * python/lib/gdb/command/frame_filters.py
1787 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1788 (ShowFrameFilterPriority.invoke): Ditto.
1789
d7561cbb
KS
17902013-10-01 Keith Seitz <keiths@redhat.com>
1791
1792 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1793 (parse_linespec): Make 'argptr' const.
1794 Remove temporary cast of 'argptr' to const char **.
1795 (decode_line_full): Pass const pointer to parse_linespec.
1796 (decode_line_1): Likewise.
1797 (decode_objc): Make local variable 'new_argptr' const.
1798 (find_function_symbols): Remove temporary cast to char *
1799 to find_imps.
1800 * objc-lang.c (find_imps): Make argument 'method' const.
1801 Return const.
1802 * objc-lang.h (find_imps): Likewise.
1803
18042013-10-01 Keith Seitz <keiths@redhat.com>
1805
1806 * completer.c (skip_quoted_chars): Make all arguments const.
1807 Return const.
1808 (skip_quoted): Likewise.
1809 * completer.h (skip_quoted_chars): Likewise.
1810 (skip_quoted): Likewise.
1811 * defs.h (skip_quoted): Remove duplicate declaration.
1812 * jv-exp.y: Include completer.h.
1813 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1814 * p-exp.y: Include completer.h.
1815
18162013-10-01 Keith Seitz <keiths@redhat.com>
1817
1818 * c-exp.y (parse_number): Make first argument const.
1819 Make a copy of the input to manipulate.
1820 (c_parse_escape): Make first argument const.
1821 Make local variable 'tokptr' const.
1822 (parse_string_or_char): Make first two arguments const.
1823 (macro_original_text): Make const.
1824 (lex_one_token): Make local variable 'tokstart' const.
1825 Likewise for local variables named 'p'.
1826 Cast away const for struct stoken (temporary).
1827 * c-lang.h (c_parse_escpae): Make first argument const.
1828 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1829 const.
1830 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1831 var_string case.
1832 * f-exp.y (parse_number): Make first argument const.
1833 (match_string_literal): Make local variable 'tokstart'
1834 const.
1835 (yylex): Make local variable 'p' const.
1836 Cast away const for struct stoken (temporary).
1837 * go-exp.y (parse_number): Make first argument const.
1838 (parse_string_or_char): Likewise.
1839 Make local variable 'tokstart' const.
1840 (lex_one_token): Likewise for numerous locals called 'p'.
1841 Cast away const for struct stoken (temporary).
1842 * jv-exp.y (parse_number): Make first argument const.
1843 Make local variables 'tokstart' and 'tokptr' const.
1844 Cast away const for call to skip_quoted (temporary).
1845 (yylex): Make local variable 'p' const.
1846 Cast away const for struct stoken (temporary).
1847 * m2-exp.y (parse_number): Make local variable 'p' const.
1848 (yylex): Likewise for 'tokstart'.
1849 Cast away const for struct stoken (temporary).
1850 Make local variable 'p' const.
1851 * macroexp.c (get_character_constant): Pass a const string
1852 to c_parse_escape.
1853 (get_string_literal): Likewise.
1854 (macro_expand_next): Make first argument const.
1855 Cast away const for init_shared_buffer.
1856 * macroexp.h (macro_expand_next): Make first argument const.
1857 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1858 Pass a const string to c_parse_escape.
1859 Make local variables 'p' and 'namestart' const.
1860 * parse.c (lexptr): Make const.
1861 (prev_lexptr): Likewise.
1862 (find_template_name_end): Return const.
1863 Make argument const, too.
1864 (parse_exp_in_context): Make first argument const.
1865 Remove the entire const_hack.
1866 (parse_exp_in_context_1): Make first argument const.
1867 * parser-defs.h (find_template_name_end): Return const.
1868 Make argument const, too.
1869 (lexptr): Make const.
1870 (prev_lexptr): Likewise.
1871 * utils.c (parse_escape): Make second argument const.
1872 * utils.h (parse_escape): Likewise.
1873
18742013-10-01 Keith Seitz <keiths@redhat.com>
1875
1876 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1877 is now const.
1878 (block_lookup): Make 'raw_name' and 'name' const.
1879 * ada-lex.l (processString): Update for struct stoken.ptr.
1880 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1881 (operator_stoken): Likewise.
1882 (lex_one_token): Remove temporary cast to char * for
1883 'yylval.sval.ptr'.
1884 * f-exp.y (yylex): Likewise.
1885 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1886 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1887 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1888 'yylval.sval.ptr'.
1889 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1890 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1891 * linespec.c (struct ls_parser): Make 'stream' const.
1892 (find_parameter_list_end): Make argument 'input' and local
1893 variable 'p' const.
1894 (linespec_lexer_lex_string): Make local variables 'start' and
1895 'p' const.
1896 Use skip_spaces_const instead of skip_spaces.
1897 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1898 const.
1899 (parse_linespec): Temporarily cast 'argptr' to const for
1900 'parser->lexer.stream'.
1901 * m2-exp.y (yylex): Remove temporary cast to char * for
1902 'yylval.sval.ptr'.
1903 * objc-lang.c (add_msglist): Make local variable 'p' const.
1904 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1905 (exp : STRING): Make 'sp' const.
1906 (parse_number): Make argument 'p' const.
1907 * parser-defs.h (struct stoken): Make 'ptr' const.
1908
193a8eac
DE
19092013-10-01 Doug Evans <dje@google.com>
1910
1911 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1912
2213e2be
YQ
19132013-10-01 Yao Qi <yao@codesourcery.com>
1914
1915 * varobj.c (c_value_of_root): Remove declaration.
1916 (cplus_value_of_root, java_value_of_root): Likewise.
1917 (ada_value_of_root): Likewise.
1918 (struct language_specific) <value_of_root>: Remove.
1919 (languages): Update initialization.
1920 (check_scope): Move earlier.
1921 (c_value_of_root): Move earlier and rename to ...
1922 (value_of_root_1): ... this.
1923 (value_of_root): Caller update.
1924 (cplus_value_of_root, java_value_of_root): Remove.
1925 (ada_value_of_root): Remove.
1926
c573f273
YQ
19272013-10-01 Yao Qi <yao@codesourcery.com>
1928
1929 * varobj.c (varobj_format_string): Remove "unknown".
1930 (languages): Remove the first element.
1931 * varobj.h (enum varobj_languages): Remove vlang_c.
1932
56250258
YQ
19332013-10-01 Yao Qi <yao@codesourcery.com>
1934
1935 * varobj.c (struct language_specific) <language>: Remove.
1936 (languages): Update the initialization.
1937
29f9ebfa
YQ
19382013-10-01 Yao Qi <yao@codesourcery.com>
1939
1940 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1941 "solib-target.h". Include "windows-tdep.h".
1942 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1943 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1944 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1945 windows-tdep.o to gdb_target_obs.
1946
64870a42
YQ
19472013-10-01 Yao Qi <yao@codesourcery.com>
1948
1949 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1950 "solib-target.h".
1951 (amd64_windows_init_abi): Don't call set_solib_ops and
1952 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1953 windows_init_abi instead.
1954 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1955 "solib-target.h".
1956 (i386_cygwin_init_abi): Don't call set_solib_ops,
1957 set_gdbarch_has_dos_based_file_system and
1958 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1959 windows_init_abi instead.
1960 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1961 (windows_init_abi): New function.
1962 (windows_iterate_over_objfiles_in_search_order): Make it
1963 static.
1964 * windows-tdep.h (windows_init_abi): Declare.
1965 (windows_iterate_over_objfiles_in_search_order): Remove
1966 declaration.
1967
0aebdefa
JB
19682013-10-01 Jerome Guitton <guitton@adacore.com>
1969
1970 Checked in by Joel Brobecker <brobecker@adacore.com>
1971 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1972 incomplete dictionnary instead of None in case of missing
1973 environment variables.
1974 (elinos_init): in case of an incomplete environment, best
1975 effort to load system libraries instead of abort.
1976
1c8e84b0
JB
19772013-10-01 Joel Brobecker <brobecker@adacore.com>
1978
1979 * ada-lang.c (ada_has_this_exception_support): Ignore
1980 mst_solib_trampoline minimal symbols.
1981
61d82a0d
TG
19822013-09-30 Tristan Gingold <gingold@adacore.com>
1983
1984 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1985 hardware watchpoint.
1986 (i386_darwin_dr_set): Support 32 and 64 bit states.
1987 (i386_darwin_dr_get): Likewise.
1988 (i386_darwin_dr_set_control): Make static.
1989 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1990 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1991
dfd4cc63
LM
19922013-09-30 Luis Machado <lgustavo@codesourcery.com>
1993
1994 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1995 Replace TIDGET with ptid_get_lwp.
1996 Replace GET_LWP with ptid_get_lwp.
1997 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1998 Replace BUILD_THREAD with ptid_build.
1999 Replace BUILD_LWP with ptid_build.
2000 Replace PIDGET with ptid_get_pid.
2001 Replace TIDGET with ptid_get_lwp.
2002 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2003 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2004 Replace TIDGET with ptid_get_lwp.
2005 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2006 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2007 Replace TIDGET with ptid_get_lwp.
2008 Replace GET_LWP with ptid_get_lwp.
2009 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2010 * auxv.c: Likewise.
2011 * breakpoint.c: Likewise.
2012 * common/ptid.c (ptid_is_pid): Condense check for
2013 null_ptid and minus_one_ptid.
2014 (ptid_lwp_p): New function.
2015 (ptid_tid_p): New function.
2016 * common/ptid.h: Update comments for accessors.
2017 (ptid_lwp_p): New prototype.
2018 (ptid_tid_p): New prototype.
2019 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2020 * gcore.c: Replace PIDGET with ptid_get_pid.
2021 * gdbthread.h: Likewise.
2022 * gnu-nat.c: Likewise.
2023 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2024 Replace TIDGET with ptid_get_lwp.
2025 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2026 * hppanbsd-nat.c: Likewise.
2027 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2028 Replace TIDGET with ptid_get_lwp.
2029 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2030 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2031 * infcmd.c: Likewise.
2032 * inferior.h: Likewise.
2033 * inflow.c: Likewise.
2034 * infrun.c: Likewise.
2035 * linux-fork.c: Likewise.
2036 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2037 Replace GET_PID with ptid_get_pid.
2038 Replace is_lwp with ptid_lwp_p.
2039 Replace GET_LWP with ptid_get_lwp.
2040 Replace BUILD_LWP with ptid_build.
2041
5b4e221c
MF
20422013-09-28 Mike Frysinger <vapier@gentoo.org>
2043
2044 * common/linux-btrace.c: Move sys/syscall.h out of the
2045 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2046 Also check for SYS_perf_event_open before attempting to buid.
2047
57d63ce2
DE
20482013-09-27 Doug Evans <dje@google.com>
2049
19ac8c2e
DE
2050 * dwarf2read.c (dwarf2_section_info): Add comment.
2051 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2052 All uses updated.
2053 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2054 (dwarf2_read_section): Delete unused local "header". Add section
2055 name to error message.
2056 (create_dwo_in_dwp): Tweak comment.
2057 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2058
a32a8923
DE
2059 * dwarf2read.c (die_reader_specs): Tweak comment.
2060 (get_section_bfd_owner, get_section_bfd_section): New functions.
2061 (get_section_name, get_section_file_name): New functions.
2062 (get_section_id, get_section_flags): New functions.
2063 (*): Use new functions to access section fields.
2064
57d63ce2
DE
2065 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2066 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2067 arg "htab". All callers updated.
2068 (create_debug_types_hash_table): Remove redundant copy of
2069 abbrev_section.
2070 (create_dwo_in_dwp): Tweak comments.
2071 (read_str_index): Tweak comment. Record dwarf form name in static
2072 local.
2073
3736004f
PA
20742013-09-27 Pedro Alves <palves@redhat.com>
2075
2076 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2077 (remote_filename_p): Add comment.
2078 * remote.c (remote_filename_p): Adjust to use
2079 REMOTE_SYSROOT_PREFIX.
2080 * solib.c (solib_find): When deciding whether we need to add a
2081 directory separator, check whether the sysroot is "remote:"
2082 instead of checking whether the patch has a drive spec. Add
2083 comments.
2084
5b5596ff
PA
20852013-09-27 Pedro Alves <palves@redhat.com>
2086
2087 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2088 Delete fields.
2089 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2090 directly.
2091
b5eef7aa
JK
20922013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2093
2094 Fix set debug frame output.
2095 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2096 SENTINEL_FRAME entry lower to match enum frame_type order.
2097
5b856f36
PM
20982013-09-26 Pierre Muller <muller@sourceware.org>
2099
2100 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2101 AMD64_R15_REGNUM when a register index is expected.
2102 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2103 Substitute in array.
2104 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2105 (amd64_push_arguments): Substitute in integer_regnum array.
2106
ade7ed9e
DE
21072013-09-25 Doug Evans <dje@google.com>
2108
d3e81981
DE
2109 * objfiles.c (allocate_objfile): Move comment to better place.
2110
8fb8eb5c
DE
2111 New option "set debug symfile on".
2112 * NEWS: Mention "set debug symfile".
2113 * Makefile.in (SFILES): Add symfile-debug.c.
2114 (COMMON_OBS): Add symfile-debug.o.
2115 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2116 objfile's symbol functions.
2117 * objfiles.h (objfile_set_sym_fns): Declare.
2118 * symfile-debug.c: New file.
2119 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2120 objfile's symbol functions.
2121 (reread_symbols): Ditto.
2122
c256e171
DE
2123 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2124 All uses updated.
2125 (add_symtab_fns): Update prototype.
2126 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2127 (registered_sym_fns): ... this.
2128 (symtab_fns): Update.
2129 (add_symtab_fns): New arg "flavour". All callers updated.
2130 (find_sym_fns): Rewrite to use new sym_fns registry.
2131
f56ce883
DE
2132 * symfile.h (struct sym_fns): Add "objfile" argument to
2133 sym_read_linetable. All uses updated.
2134
20c681d1
DE
2135 * symtab.c (domain_name, search_domain_name): New functions.
2136 * symtab.h (domain_name, search_domain_name): Declare.
2137
ade7ed9e
DE
2138 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2139 map_matching_symbols so objfile is first. All uses updated.
2140 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2141 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2142
7d760051
UW
21432013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2144
2145 PR shlibs/8882
2146 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2147 link map entries.
2148
020f7036
DE
21492013-09-24 Doug Evans <dje@google.com>
2150
2151 * objfiles.c (free_objfile): Move comment.
2152
598402f0
JB
21532013-09-24 Joel Brobecker <brobecker@adacore.com>
2154
2155 * ada-exp.y (string_to_operator): Delete.
2156 (dummy_string_to_ada_operator): Delete.
2157
bf4d6c1c
JB
21582013-09-24 Joel Brobecker <brobecker@adacore.com>
2159
2160 Revert:
2161 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2162 amd64-tdep.c.
2163 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2164 call_dummy_integer_regs, and classify.
2165 * amd64-tdep.h (amd64_classify): Add declaration.
2166 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2167 (amd64_reg_class): Delete, moved to i386-tdep.h.
2168 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2169 Replace call to amd64_classify by call to tdep->classify.
2170 (amd64_push_arguments): Get the list of registers to use for
2171 passing integer parameters from the gdbarch tdep structure,
2172 rather than using a hardcoded one. Replace calls to amd64_classify
2173 by calls to tdep->classify.
2174 (amd64_push_dummy_call): Get the register number used for
2175 the "hidden" argument from tdep->call_dummy_integer_regs.
2176 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2177 and tdep->call_dummy_integer_regs. Set tdep->classify.
2178
849e9755
JB
21792013-09-24 Joel Brobecker <brobecker@adacore.com>
2180
2181 Revert:
2182 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2183 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2184 where tdep->memory_args_by_pointer is non-zero.
2185
c1459fd6
JB
21862013-09-24 Joel Brobecker <brobecker@adacore.com>
2187
2188 Revert:
2189 * i386-tdep.h (struct gdbarch_tdep): Add new field
2190 integer_param_regs_saved_in_caller_frame.
2191 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2192 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2193
20c2e3e0
JB
21942013-09-24 Joel Brobecker <brobecker@adacore.com>
2195
874440b8 2196 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2197 (amd64_windows_classify): Delete.
2198 (amd64_windows_passed_by_integer_register)
2199 (amd64_windows_passed_by_xmm_register)
2200 (amd64_windows_passed_by_pointer)
2201 (amd64_windows_adjust_args_passed_by_pointer)
2202 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2203 (amd64_windows_push_dummy_call): New functions.
2204 (amd64_windows_init_abi): Remove setting of
2205 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2206 tdep->classify, tdep->memory_args_by_pointer and
2207 tdep->integer_param_regs_saved_in_caller_frame.
2208 Add call to set_gdbarch_push_dummy_call.
2209
82bf32bc
JK
22102013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2211
2212 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2213 objfile->original_name.
2214
24ba069a
JK
22152013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2216
2217 Pass down original filename for objfile.
2218 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2219 * elfread.c (elf_symfile_read): Likewise.
2220 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2221 longer set ORIGINAL_NAME.
2222 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2223 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2224 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2225 symbol_file_add_from_bfd call.
2226 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2227 (macho_check_dsym): Add parameter filenamep. Change function comment.
2228 Set *filenamep.
2229 (macho_symfile_read): New variable dsym_filename. Update
2230 macho_check_dsym call. Use it for symbol_file_add_separate.
2231 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2232 it. Use it for objfile->original_name.
2233 (objfile_name): Return OBFD's filename, if available.
2234 * objfiles.h (allocate_objfile): Add new parameter name.
2235 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2236 * symfile-mem.c (symbol_file_add_from_memory): Update
2237 symbol_file_add_from_bfd call.
2238 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2239 comment for it.
2240 (symbol_file_add_with_addrs): New parameter name, add function comment
2241 for it. Remove variable name. Update allocate_objfile call.
2242 (symbol_file_add_separate): New parameter name, add function comment
2243 for it. Update symbol_file_add_with_addrs call.
2244 (symbol_file_add_from_bfd): New parameter name. Update
2245 symbol_file_add_with_addrs call.
2246 (symbol_file_add): Update symbol_file_add_from_bfd call.
2247 (reread_symbols): New variable original_name. Save
2248 objfile->original_name by it.
2249 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2250 second parameter.
2251
4262abfb
JK
22522013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2253
2254 Code cleanup: Add objfile_name accessor function.
2255 * ada-lang.c (is_known_support_routine): Use objfile_name.
2256 * auto-load.c (source_gdb_script_for_objfile)
2257 (auto_load_objfile_script): Likewise.
2258 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2259 * dbxread.c (dbx_symfile_read): Likewise.
2260 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2261 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2262 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2263 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2264 (lookup_dwp_signatured_type, lookup_dwo_unit)
2265 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2266 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2267 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2268 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2269 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2270 (read_subrange_type, load_partial_dies, read_partial_die)
2271 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2272 (die_containing_type, build_error_marker_type, lookup_die_type)
2273 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2274 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2275 (get_DW_AT_signature_type, write_psymtabs_to_index)
2276 (save_gdb_index_command): Likewise.
2277 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2278 Likewise.
2279 * expprint.c (dump_subexp_body_standard): Likewise.
2280 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2281 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2282 original_name.
2283 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2284 obj_name, use objfile_name for it, use the variable.
2285 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2286 Use objfile_name.
2287 * machoread.c (macho_symtab_read, macho_check_dsym)
2288 (macho_symfile_relocate): Likewise.
2289 * maint.c (maintenance_translate_address): Likewise.
2290 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2291 * minsyms.c (install_minimal_symbols): Likewise.
2292 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2293 original_name.
2294 (filter_overlapping_sections): Use objfile_name.
2295 (objfile_name): New function.
2296 * objfiles.h (struct objfile): Rename field name to original_name.
2297 (objfile_name): New prototype.
2298 * printcmd.c (sym_info, address_info): Use objfile_name.
2299 * probe.c (parse_probes, collect_probes, compare_probes)
2300 (info_probes_for_ops): Likewise.
2301 * progspace.c (clone_program_space): Likewise.
2302 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2303 (maintenance_info_psymtabs): Likewise.
2304 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2305 (source_section_scripts): Likewise.
2306 * python/py-objfile.c (objfpy_get_filename): Likewise.
2307 * python/py-progspace.c (pspy_get_filename): Likewise.
2308 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2309 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2310 * solib.c (solib_read_symbols): Likewise.
2311 * stabsread.c (scan_file_globals): Likewise.
2312 * stap-probe.c (handle_stap_probe): Likewise.
2313 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2314 (find_separate_debug_file_by_debuglink): Likewise.
2315 (reread_symbols): Likewise. Use the objfile field name renamed to
2316 original_name.
2317 (allocate_symtab): Use objfile_name.
2318 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2319 (dump_objfile, dump_msymbols, dump_symtab_1)
2320 (maintenance_print_msymbols, maintenance_print_objfiles)
2321 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2322 * target.c (target_translate_tls_address, target_info): Likewise.
2323 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2324 objfile_name.
2325
4721dc18
JK
23262013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 Code cleanup.
2329 * probe.c (parse_probes): Rename variable objfile_name to
2330 objfile_namestr.
2331
a61d6db8
JK
23322013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2333
2334 Remove solib-sunos.c.
2335 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2336 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2337 * objfiles.c (rt_common_objfile): Remove.
2338 (free_objfile): Remove rt_common_objfile comparison.
2339 * objfiles.h (rt_common_objfile): Remove.
2340 * solib-sunos.c: Remove.
2341 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2342
2659903b
JK
23432013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2344
2345 Remove a.out NetBSD and OpenBSD hosts.
2346 * NEWS (Removed native configurations): New.
2347 * config/arm/nbsdaout.mh: Remove.
2348 * config/i386/nbsdaout.mh: Remove.
2349 * config/i386/obsdaout.mh: Remove.
2350 * config/m68k/nbsdaout.mh: Remove.
2351 * config/sparc/nbsdaout.mh: Remove.
2352 * config/vax/nbsdaout.mh: Remove.
2353 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2354 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2355 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2356 error.
2357 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2358 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2359 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2360
f60e2d5c
TT
23612013-09-23 Tom Tromey <tromey@redhat.com>
2362
2363 * linespec.c (struct minsym_and_objfile): Remove.
2364 (minsym_and_objfile_d): Remove.
2365 (struct linespec, struct collect_info, linespec_parse_basic)
2366 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2367 (compare_msymbols, find_method, find_function_symbols)
2368 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2369 (add_minsym, search_minsyms_for_name): Update.
2370
d3eaaf66
AB
23712013-09-23 Andrew Burgess <aburgess@broadcom.com>
2372
2373 * regcache.c: Add include of valprint.h.
2374 (dump_endian_bytes): Delete.
2375 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2376
2cc762b5
AB
23772013-09-23 Andrew Burgess <aburgess@broadcom.com>
2378
2379 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2380
96181529
PA
23812013-09-19 Pedro Alves <palves@redhat.com>
2382
2383 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2384 breakpoints.
2385
9b3f3ee6
TS
23862013-09-19 Pedro Alves <palves@redhat.com>
2387 Thomas Schwinge <thomas@codesourcery.com>
2388 Yue Lu <hacklu.newborn@gmail.com>
2389
2390 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2391 Take a gdb_byte pointer instead of a char pointer.
2392
2393 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2394 gnu_xfer_partial helper.
2395 (gnu_xfer_partial): New function.
2396 (gnu_target): Don't install a deprecated_xfer_memory hook.
2397 Install a to_xfer_partial hook.
2398
69150c3d
JK
23992013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2400
2401 Constification.
2402 * main.c (captured_main): Replace catch_command_errors by
2403 catch_command_errors_const. Twice.
2404 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2405 (symbol_file_add): Make name parameter const.
2406 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2407 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2408 variable name. Change their usage accordingly.
2409 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2410 const.
2411 (symbol_file_add_main): Make args parameter const.
2412
086850b2
UW
24132013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2414 Ulrich Weigand <uweigand@de.ibm.com>
2415
2416 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2417 of c_value member.
2418 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2419
ca08a94c 24202013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2421 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2422
2423 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2424 (gnu_create_inferior)
2425 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2426 (set_sig_thread_cmd): Use the lwpid field of ptids to
2427 store/extract thread ids instead of the tid field.
2428 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2429
e4c6a2c4
AB
24302013-09-18 Andrew Burgess <aburgess@broadcom.com>
2431
2432 * infcmd.c (default_print_one_register_info): Add detection of
2433 optimized out values.
2434 (default_print_registers_info): Switch to using
2435 get_frame_register_value.
2436
58c48e72
MM
24372013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2438
2439 * infrun.c (handle_inferior_event): Check if we know the
2440 function start address before setting a resume breakpoint.
2441
c8d37639
PA
24422013-09-18 Pedro Alves <palves@redhat.com>
2443
2444 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2445 minus_one_ptid instead of looking at the ptid's tid field and
2446 comparing that to -1.
2447
71926e28
AB
24482013-09-18 Andrew Burgess <aburgess@broadcom.com>
2449
2450 * main.h (get_gdb_program_name): Remove extra whitespace.
2451
c88a1531
AB
24522013-09-18 Andrew Burgess <aburgess@broadcom.com>
2453
2454 * main.h (get_gdb_program_name): Add declaration.
2455 * main.c (get_gdb_program_name): Add definition.
2456
4390d890
DE
24572013-09-17 Doug Evans <dje@google.com>
2458
2459 * dwarf2read.c: Move definitions of complaint functions to after
2460 forward declarations of local functions.
2461
49fa26b0
PA
24622013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2463 Pedro Alves <palves@redhat.com>
2464
2465 PR gdb/11568
2466 * breakpoint.c (remove_threaded_breakpoints): New function.
2467 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2468 as thread_exit observer.
2469
08d72866
PA
24702013-09-17 Pedro Alves <palves@redhat.com>
2471
2472 PR gdb/15911
2473 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2474 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2475 * corelow.c (core_open):
2476 * frame.h (print_stack_frame, print_frame_info): New
2477 'set_current_sal' parameter.
2478 * infcmd.c (finish_command, kill_command): Adjust call to
2479 print_stack_frame.
2480 * inferior.c (inferior_command): Likewise.
2481 * infrun.c (normal_stop): Likewise.
2482 * linux-fork.c (linux_fork_context): Likewise.
2483 * record-full.c (record_full_goto_entry, record_full_restore):
2484 Likewise.
2485 * remote-mips.c (common_open): Likewise.
2486 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2487 Use it.
2488 (print_frame_info): New 'set_current_sal' parameter. Set the last
2489 displayed sal depending on the new paremeter instead of looking at
2490 print_what.
2491 (backtrace_command_1, select_and_print_frame, frame_command)
2492 (current_frame_command, up_command, down_command): Adjust call to
2493 print_stack_frame.
2494 * thread.c (print_thread_info, restore_selected_frame)
2495 (do_captured_thread_select): Adjust call to print_stack_frame.
2496 * tracepoint.c (tfind_1): Likewise.
2497 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2498 (mi_cmd_stack_info_frame): Likewise.
2499 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2500 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2501
6bc305f5
SDJ
25022013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2503
2504 * value.c (isvoid_internal_fn): Replace "parameter" with
2505 "argument".
2506
0a7cfe2c
SS
25072013-09-16 Stan Shebs <stan@codesourcery.com>
2508
2509 * README: Update references to writing code for GDB.
2510 * configure.ac (build_warnings): Remove obsolete comment.
2511 * configure: Regenerate.
2512 * gdbarch.sh: Remove references to gdbint.texinfo.
2513 * gdbarch.h: Regenerate.
2514 * gdbtypes.c (objfile_type): Remove comments referencing internals
2515 manual and D10V.
2516
a280dbd1
SDJ
25172013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2518
2519 * NEWS: Mention new convenience function $_isvoid.
2520 * value.c (isvoid_internal_fn): New function.
2521 (_initialize_values): Add new convenience function $_isvoid.
2522
04a83fee
PM
25232013-09-16 Pierre Muller <muller@sourceware.org>
2524
2525 * arm-linux-tdep.c: Add "elf/common.h" header.
2526 Remove AT_HWCAP macro definintion as it is provided in
2527 added include file.
2528 * s390-tdep.c: Remove system header <elf.h>
2529 Add "elf/common.h" header for AT_HWCAP definition.
2530 (s390_core_read_description): Use correct CORE_ADDR
2531 for hwcap local variable used as third parameter
2532 of function target_auxv_search.
2533
88505fac
PM
25342013-09-14 Pierre Muller <muller@sourceware.org>
2535 Tom Tromey <tromey@redhat.com>
2536 Pedro Alves <palves@redhat.com>
2537
2538 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2539 mode if operating system doesn't know O_CLOEXEC.
2540
d3846e71
JK
25412013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2542
2543 Code cleanup.
2544 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2545 inner block.
2546
4ac33720
UW
25472013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2548
2549 * NEWS: Mention TDB support.
2550 * features/s390-tdb.xml: New file.
2551 * features/s390-te-linux64.xml: New file.
2552 * features/s390x-te-linux64.xml: New file.
2553 * features/Makefile (WHICH): Add new tdescs above.
2554 (s390-te-linux64-expedite): Set.
2555 (s390x-te-linux64-expedite): Set.
2556 * features/s390-te-linux64.c: New file (generated).
2557 * features/s390x-te-linux64.c: New file (generated).
2558 * regformats/s390-te-linux64.dat: New file (generated).
2559 * regformats/s390x-te-linux64.dat: New file (generated).
2560 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2561 (HWCAP_S390_TE): Likewise.
2562 (S390_TDB_DWORD0_REGNUM): Likewise.
2563 (S390_TDB_DWORD0_REGNUM): Likewise.
2564 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2565 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2566 (S390_TDB_ATIA_REGNUM): Likewise.
2567 (S390_TDB_R0_REGNUM): Likewise.
2568 (S390_TDB_R1_REGNUM): Likewise.
2569 (S390_TDB_R2_REGNUM): Likewise.
2570 (S390_TDB_R3_REGNUM): Likewise.
2571 (S390_TDB_R4_REGNUM): Likewise.
2572 (S390_TDB_R5_REGNUM): Likewise.
2573 (S390_TDB_R6_REGNUM): Likewise.
2574 (S390_TDB_R7_REGNUM): Likewise.
2575 (S390_TDB_R8_REGNUM): Likewise.
2576 (S390_TDB_R9_REGNUM): Likewise.
2577 (S390_TDB_R10_REGNUM): Likewise.
2578 (S390_TDB_R11_REGNUM): Likewise.
2579 (S390_TDB_R12_REGNUM): Likewise.
2580 (S390_TDB_R13_REGNUM): Likewise.
2581 (S390_TDB_R14_REGNUM): Likewise.
2582 (S390_TDB_R15_REGNUM): Likewise.
2583 (S390_NUM_REGS): Increase.
2584 (S390_IS_TDBREGSET_REGNUM): New macro.
2585 (s390_regmap_tdb): Declare.
2586 (s390_sizeof_tdbregset): Define.
2587 (tdesc_s390_te_linux64): Declare.
2588 (tdesc_s390x_te_linux64): Likewise.
2589 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2590 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2591 (s390_regmap_tdb): New regmap.
2592 (s390_supply_tdb_regset): New function.
2593 (s390_tdb_regset): New regset.
2594 (s390_linux64v2_regset_sections): Add TDB regset to list.
2595 (s390x_linux64v2_regset_sections): Likewise.
2596 (s390_regset_from_core_section): Recognize TDB core note section.
2597 (s390_core_read_description): If HWCAP indicates TE support,
2598 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2599 (s390_gdbarch_init): Handle TDB regset.
2600 (_initialize_s390_tdep): Initialize new tdescs.
2601 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2602 (have_regset_tdb): New variable.
2603 (s390_native_supply): Support register invalidation.
2604 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2605 (check_regset): Treat ENODATA as "regset exists".
2606 (s390_linux_fetch_inferior_registers): Add TDB.
2607 (s390_read_description): Check for TDB existence and select
2608 appropriate tdesc.
2609 * gdbserver/Makefile.in (clean): Add removal of new makefile
2610 targets.
2611 (s390-te-linux64.c): New makefile target.
2612 (s390x-te-linux64.c): Likewise.
2613 * gdbserver/configure.srv (srv_regobj): Append new objects
2614 s390-te-linux64.o and s390x-te-linux64.o.
2615 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2616 s390x-te-linux64.xml, and s390-tdb.xml.
2617 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2618 declaration.
2619 (tdesc_s390_te_linux64): Likewise.
2620 (init_registers_s390x_te_linux64): Likewise.
2621 (tdesc_s390x_te_linux64): Likewise.
2622 (s390_check_regset): Treat ENODATA as "regset exists".
2623 (s390_arch_setup): Add TDB regset support.
2624 (initialize_low_arch): Initialize registers for new tdescs.
2625
2ccd1468
UW
26262013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2627
2628 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2629 (S390_IS_FPREGSET_REGNUM): New macro.
2630 * s390-tdep.c (s390_dwarf_regmap): Make const.
2631 (regnum_is_gpr_full): New function for replacing repeated code.
2632 (s390_pseudo_register_name): Use it.
2633 (s390_pseudo_register_type): Likewise.
2634 (s390_pseudo_register_read): Likewise.
2635 (s390_pseudo_register_write): Likewise.
2636 (s390_unwind_pseudo_register): Likewise.
2637 (s390_regmap_gregset): New format for regmap.
2638 (s390x_regmap_gregset): Likewise.
2639 (s390_regmap_fpregset): Likewise.
2640 (s390_regmap_upper): Likewise.
2641 (s390_regmap_last_break): Likewise.
2642 (s390_regmap_system_call): Likewise.
2643 (s390_supply_regset): Adjust to new regmap format.
2644 (s390_collect_regset): Likewise.
2645 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2646 (s390_native_collect): Likewise.
2647 (supply_gregset): Likewise.
2648 (fill_gregset): Likewise.
2649 (supply_fpregset): Likewise.
2650 (fill_fpregset): Likewise.
2651 (fetch_regset): Likewise.
2652 (store_regset): Likewise.
2653 (s390_linux_fetch_inferior_registers): Likewise.
2654 (s390_linux_fetch_inferior_registers): Likewise.
2655
1aa4cd77
AP
26562013-09-12 Andrew Pinski <apinski@cavium.com>
2657
2658 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2659
d91fab15
UW
26602013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661
2662 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2663
5a5d8ead
AB
26642013-09-09 Andrew Burgess <aburgess@broadcom.com>
2665
2666 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2667
1385f66c
PA
26682013-09-06 Pedro Alves <palves@redhat.com>
2669
2670 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2671 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2672 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2673 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2674 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2675 gdb_stdlog.
2676
146ec4db
PA
26772013-09-06 Pedro Alves <palves@redhat.com>
2678
2679 * remote-sim.c (dump_mem): Constify buf parameter.
2680 gdbsim_xfer_inferior_memory): Rename to ...
2681 (gdbsim_xfer_memory): ... this. Adjust interface as
2682 target_xfer_partial helper.
2683 (gdbsim_xfer_partial): New function.
2684 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2685 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2686
fcde0081
PA
26872013-09-06 Pedro Alves <palves@redhat.com>
2688
2689 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2690 host_address_to_string, and send debug output to gdb_stdlog.
2691
749c8b38
RW
26922013-09-06 Ricard Wanderlof <ricardw@axis.com>
2693
2694 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2695 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2696 gdb_target_obs for cris target.
2697 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2698 (cris_gdbarch_init): Move calls to
2699 set_gdbarch_fetch_tls_load_module_address and
2700 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2701 Add call to gdbarch_init_osabi.
2702 * cris-linux-tdep.c: New file.
2703 * cris-tdep.h: New file.
2704
43df09d9
AB
27052013-09-06 Andrew Burgess <aburgess@broadcom.com>
2706
2707 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2708 to deprecated_init_ui_hook.
2709
4d09c5b4
AB
27102013-09-06 Andrew Burgess <aburgess@broadcom.com>
2711
2712 * cli/cli-interp.c (_initialize_cli_interp): Add a
2713 command_loop_proc to interp_procs.
2714 * event-top.c (cli_command_loop): Change signature to match
2715 interp_command_loop_ftype.
2716 * event-top.h (cli_command_loop): Same.
2717 * interps.c (interp_new): Require every interpreter to have a
2718 command_loop_proc.
2719 (current_interp_command_loop): Just call the command_loop_proc on
2720 the current interpreter.
2721 * tui/tui-interp.c (_initialize_tui_interp): Add a
2722 command_loop_proc to interp_procs.
2723
8eb3d7b6
RW
27242013-09-06 Ricard Wanderlof <ricardw@axis.com>
2725
2726 * cris-tdep.c (cris_gdbarch_init): Add call to
2727 get_gdbarch_fetch_tls_load_module_address.
2728
18b3c2f5
RW
27292013-09-06 Ricard Wanderlof <ricardw@axis.com>
2730
2731 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2732 (cris_elf_gregset_t): Rename from elf_gregset_t.
2733 (crisv32_elf_gregset_t): Adjust.
2734 (cris_supply_gregset, fetch_core_registers): Adjust.
2735
dc8636ef
RW
27362013-09-06 Ricard Wanderlof <ricardw@axis.com>
2737
2738 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2739
257e6d53
AB
27402013-09-05 Andrew Burgess <aburgess@broadcom.com>
2741
1581d8a7 2742 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2743 references in comments.
1581d8a7 2744 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2745 deprecated_command_loop_hook.
2746 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2747 setup.
1581d8a7 2748 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2749
7c33b57c
PA
27502013-09-05 Pedro Alves <palves@redhat.com>
2751
2752 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2753 local is now int instead of ULONGEST. Print it with %d
2754 instead of paddress.
2755
9f8edbd5
TG
27562013-09-05 Tristan Gingold <gingold@adacore.com>
2757
2758 * MAINTAINERS: Remove avr maintainership.
2759
d5b495b4
PA
27602013-09-05 Pedro Alves <palves@redhat.com>
2761
2762 * findvar.c (value_of_register): Rework in terms of
2763 value_of_register_lazy.
2764
40b91786
MB
27652013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2766
2767 * symfile.c (add_symbol_file_command): Remove trailing
2768 whitespaces and blank line after comment.
2769
6eed1678
PA
27702013-09-05 Pedro Alves <palves@redhat.com>
2771
2772 * tui/tui-regs.c (tui_register_format): Don't look at the
2773 register's name here. Return string representing register
2774 value instead of storing it in the data element.
2775 (tui_get_register): Compare register string representations
2776 instead of register value states and contents.
2777
8eb6bda2
PA
27782013-09-05 Pedro Alves <palves@redhat.com>
2779
2780 PR tui/15933
2781 * tui/tui-regs.c (tui_show_registers): Show registers of the
2782 selected frame, not the current frame.
2783
48b1f08c
RW
27842013-09-05 Ricard Wanderlof <ricardw@axis.com>
2785
2786 * MAINTAINERS (Write After Approval): Add myself to the list.
2787
89e63ee4
DE
27882013-09-04 Doug Evans <dje@google.com>
2789
2790 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2791 (queue_and_load_dwo_tu): New function.
2792 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2793 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2794 Make dependent_cu optional.
2795 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2796 and an older .gdb_index is in use, queue and load all its TUs too.
2797
492c0ab7
JK
27982013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2799
2800 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2801 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2802 variable search_flags.
2803 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2804 (OPF_RETURN_REALPATH): ... here.
2805 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2806 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2807 call. Twice.
2808 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2809 openp call.
2810 * solib.c (solib_find): Likewise. Four times.
2811 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2812 in the function comment and for the realpath_fptr variable.
2813 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2814 (find_and_open_source): Likewise. Twice.
2815 * symfile.c (symfile_bfd_open): Likewise, also twice.
2816
23a44de8
DE
28172013-09-04 Doug Evans <dje@google.com>
2818
2819 * progspace.c (save_current_space_and_thread): Remove unnecessary
2820 call to save_current_inferior.
2821
47061676
AB
28222013-09-04 Andrew Burgess <aburgess@broadcom.com>
2823
2824 * sh64-tdep.c (sh64_do_register): Return after printing message
2825 about unavailable register contents.
2826
41dc8db8
MB
28272013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2828 Pedro Alves <palves@redhat.com>
2829
2830 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
2831 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2832 options and collapse into single conditional branch.
41dc8db8 2833
07107ca6
LM
28342013-09-03 Luis Machado <lgustavo@codesourcery.com>
2835
a7ea61cf 2836 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2837 detach_fork.
2838 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2839 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2840 * inferior.h (detach_fork): Remove.
2841 * infrun.c (detach_fork): Adjust comment and make it
2842 static.
2843 (follow_fork): Pass detach_fork parameter to
2844 target_follow_fork.
2845 * linux-nat.c (linux_child_follow_fork): New parameter
2846 detach_fork.
2847 * target.c (target_follow_fork): New parameter detach_fork.
2848 Pass detach_fork as parameter and print its value.
2849 * target.h (struct target_ops) <to_follow_fork>: New int
2850 parameter.
2851 (target_follow_fork): New parameter detach_fork.
2852
3bec2768
JB
28532013-09-03 Joel Brobecker <brobecker@adacore.com>
2854
2855 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2856 Replace sec->bfd by sec->the_bfd_section->owner.
2857
c01cbb3d
YQ
28582013-09-03 Yao Qi <yao@codesourcery.com>
2859
2860 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2861 from linux_has_shared_address_space.
2862 (linux_has_shared_address_space): Call linux_is_uclinux.
2863 * linux-tdep.h (linux_is_uclinux): Declare.
2864 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2865 linux_is_uclinux.
2866
7b00db47
YQ
28672013-09-03 Yao Qi <yao@codesourcery.com>
2868
2869 * config/djgpp/fnchange.lst: Remove entry of
2870 i386-interix-nat.c and i386-interix-tdep.c.
2871 * configure.ac: Remove '*-*-interix*'.
2872 * configure: Re-generated.
2873 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2874 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2875 obsolete comments.
2876 * osabi.c (gdb_osabi_names): Remove "Interix".
2877
0f9741f2
YQ
28782013-09-03 Yao Qi <yao@codesourcery.com>
2879
2880 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2881
1e038f67
MM
28822013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2883
2884 * record.h (record_print_flag) <record_print_src_line,
2885 record_print_insn_range>: Rename into ...
2886 (record_print_flag) <record_print_src_line,
2887 record_print_insn_range>: ... this. Update all users.
2888
9e52adf9
PM
28892013-09-02 Pierre Muller <muller@sourceware.org>
2890
2891 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2892 error code.
2893
a2388568
PM
28942013-09-02 Pierre Muller <muller@sourceware.org>
2895
2896 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2897 by use of plongest function.
2898
9058cc3a
TG
28992013-09-02 Tristan Gingold <gingold@adacore.com>
2900
2901 * NEWS: Add entry mentioning support for native Windows x64
2902 SEH data.
2903
2904 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2905 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2906 (struct amd64_windows_frame_cache): New struct.
2907 (amd64_windows_w2gdb_regnum): New global.
2908 (pc_in_range, amd64_windows_frame_decode_epilogue)
2909 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2910 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2911 (amd64_windows_frame_this_id): New functions.
2912 (amd64_windows_frame_unwind): New static global.
2913 (amd64_windows_skip_prologue): New function.
2914 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2915 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2916 with amd64_windows_skip_prologue.
2917
3161820b 29182013-08-30 Joel Brobecker <brobecker@adacore.com>
2919
2920 GDB 7.6.1 released.
2921
02457c76
PA
29222013-08-30 Pedro Alves <palves@redhat.com>
2923
2924 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2925 SRC_AND_LOC.
2926
e0162910
PA
29272013-08-30 Pedro Alves <palves@redhat.com>
2928
2929 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2930 warning text.
2931
6391ce51
PA
29322013-08-30 Pedro Alves <palves@redhat.com>
2933
2934 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2935 Adjust arguments to print_stack_frame.
2936
d1da0587
PA
29372013-08-30 Pedro Alves <palves@redhat.com>
2938
2939 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2940
adfd8245
PA
29412013-08-30 Pedro Alves <palves@redhat.com>
2942
2943 * frame.h (show_and_print_stack_frame): Delete declaration.
2944
96d9056e
PM
29452013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2946
2947 PR python/15461
96d9056e
PM
2948 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2949 (archpy_name): Check for valid architecture.
2950 (archpy_disassemble): Ditto.
2951
11cb8762
JB
29522013-08-29 Joel Brobecker <brobecker@adacore.com>
2953
2954 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2955 instead of "long long" in call to ptrace64.
2956
1af12a7d
AB
29572013-08-29 Andrew Burgess <aburgess@broadcom.com>
2958
2959 * mi/mi-interp.c (mi_command_loop): Change signature to match
2960 interp_command_loop_ftype.
2961 (mi1_command_loop): Remove.
2962 (mi2_command_loop): Remove.
2963 (mi3_command_loop): Remove.
2964 (mi_interpreter_resume): Remove setting of
2965 deprecated_command_loop_hook.
2966 (_initialize_mi_interp): Set mi_command_loop as the command loop
2967 callback.
2968
acc900c2
SA
29692013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2970
2971 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2972 value_type.
2973
548b762d
SA
29742013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2975
2976 * value.c (allocate_value_contents): Make static.
2977 * value.h (allocate_value_contents): Remove prototype.
2978
08039c9e
SA
29792013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2980
2981 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2982 of assembling value via allocate_value_lazy and attribute setter.
2983 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2984 assembling value via allocate_value_lazy and attribute setter.
2985 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2986 assembling value via allocate_value_lazy and attribute setter.
2987
314c7de9
SA
29882013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2989
2990 * value.c (value_from_contents_and_address): Replace allocate_value and
2991 memcpy with value_from_contents.
2992
8f28f522
PM
29932013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2994
2995 * python/py-framefilter.c (py_print_frame): Remove usage of
2996 PyString_AsString. Use python_string_to_host_string instead.
2997 Refactor function to work with a string as a new allocation
2998 instead of a pointer.
2999 (py_print_frame): Ditto.
3000 * python/lib/gdb/frames.py (return_list): Cain iterators together
3001 instead of adding them as a list.
3002 (_sort_list): Call return_list, and remove duplicate code.
3003 (execute_frame_filters): Convert iterator to a list with list().
3004 * python/lib/gdb/command/frame_filters.py
3005 (SetFrameFilterPriority._set_filter_priority): Convert priority
3006 attribute to an integer.
3007 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3008 wrapper function __next__.
3009 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3010 define as "str".
3011
8ee002df
PM
30122013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3013
3014 PR python/15752
8ee002df
PM
3015 * python/py-framefilter.c (apply_frame_filter): Check
3016 gdb_python_initialized. Exit if the Python frame-filter code
3017 cannot be initialized.
3018
af4c453a
PM
30192013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3020
3021 PR cli/15842
af4c453a
PM
3022 * top.c (print_gdb_version): Remove erroneous newline after help
3023 text.
3024
bf8793bb
YQ
30252013-08-29 Yao Qi <yao@codesourcery.com>
3026
3027 * varobj.c (install_dynamic_child): Remove trailing space.
3028 Add one blank line after variable declaration.
3029
1f0c4988
JK
30302013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3031
3032 PR gdb/15415
3033 * corefile.c (get_exec_file): Use exec_filename.
3034 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3035 * exec.c (exec_close): Free EXEC_FILENAME.
3036 (exec_file_attach): New variable canonical_pathname. Use
3037 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3038 EXEC_FILENAME.
3039 * exec.h (exec_filename): New.
3040 * inferior.c (print_inferior, inferior_command): Use
3041 PSPACE_EXEC_FILENAME.
3042 * mi/mi-main.c (print_one_inferior): Likewise.
3043 * progspace.c (clone_program_space, print_program_space): Likewise.
3044 * progspace.h (struct program_space): New field pspace_exec_filename.
3045 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3046 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3047
59ee9f94
WN
30482013-08-28 Will Newton <will.newton@linaro.org>
3049
3050 * common/linux-ptrace.c: Include stdint.h unconditionally.
3051
c8a2a419
JK
30522013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3053
3054 Code cleanup.
3055 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3056
ffa4ac95
YQ
30572013-08-28 Yao Qi <yao@codesourcery.com>
3058 Pedro Alves <palves@redhat.com>
3059
3060 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3061 instead of stdio_fileopen.
3062 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3063 .Call stderr_fileopen instead of stdio_fileopen.
3064 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3065 [__MINGW32__] (stderr_file_fputs): New function.
3066 (stderr_fileopen): New function.
3067 * ui-file.h (stderr_fileopen): Declare.
3068
69d751e3
DE
30692013-08-27 Doug Evans <dje@google.com>
3070
3071 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3072 (struct dwarf2_per_cu_data): Ditto.
3073 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3074 (process_imported_unit_die): Ditto.
3075 (follow_die_sig_1): Simplify assert.
3076
44f38867
PA
30772013-08-27 Pedro Alves <palves@redhat.com>
3078
3079 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3080 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3081 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3082 windows_xfer_memory directly.
3083 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3084
d28d46b5
PA
30852013-08-27 Pedro Alves <palves@redhat.com>
3086
3087 * darwin-nat.c (darwin_xfer_memory): Delete.
3088 (_initialize_darwin_inferior): Don't install a
3089 deprecated_xfer_memory method.
3090
6211c335
YQ
30912013-08-27 Pedro Alves <pedro@codesourcery.com>
3092 Yao Qi <yao@codesourcery.com>
3093
3094 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3095 (parse_no_frames_option): Remove.
3096 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3097 (mi_cmd_stack_list_args): Adjust.
3098 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3099 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3100 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3101 Caller update.
3102 (list_args_or_locals): New parameter 'skip_unavailable'.
3103 Handle it.
3104 * valprint.c (scalar_type_p): Rename to ...
3105 (val_print_scalar_type_p): ... this. Make extern.
3106 (val_print, value_check_printable): Adjust.
3107 * valprint.h (val_print_scalar_type_p): Declare.
3108 * value.c (value_entirely_unavailable): New function.
3109 * value.h (value_entirely_unavailable): Declare.
3110
3111 * NEWS: Mention the new option "--skip-unavailable" to MI
3112 commands '-stack-list-locals', '-stack-list-arguments' and
3113 '-stack-list-variables'.
3114
242f1fd7
YQ
31152013-08-27 Yao Qi <yao@codesourcery.com>
3116
3117 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3118 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3119 options.
3120 * mi/mi-getopt.c (mi_getopt): Remove.
3121 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3122 'error_on_unknown'.
3123 (mi_getopt): Call mi_getopt_1.
3124 (mi_getopt_silent): New.
3125 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3126
260b681b
DE
31272013-08-26 Doug Evans <dje@google.com>
3128
779bd270
DE
3129 PR symtab/15885
3130 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3131 .gdb_index is in use.
3132 * symfile.c (reread_symbols): Reset objfile->sf.
3133
52e260a3
DE
3134 * NEWS: Document "mt print objfiles" now takes optional regexp.
3135 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3136 regexp of objfiles to print.
3137 (_initialize_symmisc): Update doc string for "mt print objfiles".
3138
260b681b
DE
3139 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3140 missing debug info checks.
3141
a85c52f2
UW
31422013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3143 Ulrich Weigand <uweigand@de.ibm.com>
3144
3145 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3146 line tables generated by XLC compiled binaries.
3147
4f00dda3
DE
31482013-08-23 Doug Evans <dje@google.com>
3149
db68bbae
DE
3150 * symmisc.c (dump_symtab): Delete prototype.
3151 (dump_msymbols, dump_objfile): Ditto.
3152 (maintenance_info_symtabs): Mark as dont_repeat.
3153 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3154
4f00dda3
DE
3155 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3156 debugging printf to better location.
3157
23d577b0
PA
31582013-08-23 Pedro Alves <palves@redhat.com>
3159
3160 * target.c (target_read_live_memory): Change type of 'ret' local
3161 to LONGEST.
3162
00d84524
PA
31632013-08-23 Pedro Alves <palves@redhat.com>
3164
3165 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3166 (remote_read_bytes): Change return type to LONGEST, and adjust to
3167 return a target_xfer_error on error.
3168 (remote_xfer_memory): Delete.
3169 (remote_flash_write): Change type of 'ret' local to LONGEST.
3170 (remote_xfer_partial, remote_xfer_partial): Adjust.
3171 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3172
1ed3ee94
PM
31732013-08-23 Pierre Muller <muller@sourceware.org>
3174
3175 ARI fix: Push # directives to start of line.
3176 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3177
9eaabc75
MW
31782013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3179
3180 PR gdb/15501
3181 * breakpoint.c (enable_command, disable_command): Iterate over
3182 all specified breakpoint locations.
3183
101158d9
LM
31842013-08-22 Luis Machado <lgustavo@codesourcery.com>
3185
3186 * common/linux-ptrace.c (linux_fork_to_function): Push #
3187 directives to the start of the line.
3188 (linux_check_ptrace_features): Fix warning message to use
3189 the "_" markup.
3190
96d7229d
LM
31912013-08-22 Luis Machado <lgustavo@codesourcery.com>
3192
3193 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3194 nat/linux-waitpid.h.
3195 (linux-waitpid.o): New object file rule.
3196 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3197 (current_ptrace_options): Moved from linux-nat.c.
3198 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3199 parameters.
3200 (linux_fork_to_function): New function.
3201 (linux_grandchild_function): Likewise.
3202 (linux_child_function): Likewise.
3203 (linux_check_ptrace_features): New function, heavily
3204 based on linux-nat.c:linux_test_for_tracefork.
3205 (linux_enable_event_reporting): New function.
3206 (ptrace_supports_feature): Likewise.
3207 (linux_supports_tracefork): Likewise.
3208 (linux_supports_traceclone): Likewise.
3209 (linux_supports_tracevforkdone): Likewise.
3210 (linux_supports_tracesysgood): Likewise.
3211 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3212 gdbserver/linux-low.c.
3213 (linux_enable_event_reporting): New declaration.
3214 (linux_supports_tracefork): Likewise.
3215 (linux_supports_traceclone): Likewise.
3216 (linux_supports_tracevforkdone): Likewise.
3217 (linux_supports_tracesysgood): Likewise.
3218 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3219 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3220 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3221 * config/arm/linux.mh (NATDEPFILES): Likewise.
3222 * config/i386/linux.mh (NATDEPFILES): Likewise.
3223 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3224 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3225 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3226 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3227 * config/mips/linux.mh (NATDEPFILES): Likewise.
3228 * config/pa/linux.mh (NATDEPFILES): Likewise..
3229 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3230 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3231 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3232 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3233 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3234 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3235 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3236 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3237 ptrace's 4th argument's types.
3238 Check the type of PTRACE_TYPE_ARG4.
3239 * configure: Regenerate.
3240 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3241 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3242 (linux_supports_tracefork_flag): Remove.
3243 (linux_supports_tracesysgood_flag): Likewise.
3244 (linux_supports_tracevforkdone_flag): Likewise.
3245 (current_ptrace_options): Moved to
3246 common/linux-ptrace.c.
3247 (linux_tracefork_child): Remove.
3248 (my_waitpid): Remove.
3249 (linux_test_for_tracefork): Renamed to
3250 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3251 (linux_test_for_tracesysgood): Remove.
3252 (linux_supports_tracesysgood): Remove.
3253 (linux_supports_tracefork): Remove.
3254 (linux_supports_tracevforkdone): Remove.
3255 (linux_enable_tracesysgood): Remove.
3256 (linux_enable_event_reporting): Remove.
3257 (linux_init_ptrace): New function.
3258 (linux_child_post_attach): Call linux_init_ptrace.
3259 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3260 (linux_child_follow_fork): Call linux_supports_tracefork
3261 and linux_supports_tracevforkdone.
3262 (linux_child_insert_fork_catchpoint): Call
3263 linux_supports_tracefork.
3264 (linux_child_insert_vfork_catchpoint): Likewise.
3265 (linux_child_set_syscall_catchpoint): Call
3266 linux_supports_tracesysgood.
3267 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3268 * nat/linux-nat.h: New file.
3269 * nat/linux-waitpid.c: New file.
3270 * nat/linux-waitpid.h: New file.
3271
9f948660
SDJ
32722013-08-22 Samuel Bronson <naesten@gmail.com>
3273
3274 ARM Linux support for `catch syscall'.
3275 * syscalls/arm-linux.py: New file.
3276 * syscalls/arm-linux.xml: Likewise.
3277 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3278 (arm_linux_init_abi): Register the new function and syscall xml file.
3279 * data-directory/Makefile.in: Install the new syscall xml file.
3280 * NEWS: Brag about this.
3281
6be7b56e
PA
32822013-08-22 Pedro Alves <palves@redhat.com>
3283
3284 PR gdb/15871
3285 * corefile.c (target_xfer_memory_error): New function.
3286 (memory_error): Defer EIO to target_memory_error.
3287 (read_memory): Use target_xfer_partial, and handle finer-grained
3288 target xfer errors.
3289 * target.c (target_xfer_error_to_string): New function.
3290 (memory_xfer_partial_1): If memory is known to be
3291 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3292 (target_xfer_partial): Make extern.
3293 * target.h (enum target_xfer_error): New enum.
3294 (target_xfer_error_to_string): Declare function.
3295 (target_xfer_partial): Declare function.
3296 (struct target_ops) <xfer_partial>: Adjust describing comment.
3297
bcbec14e
AM
32982013-08-22 Alan Modra <amodra@gmail.com>
3299
3300 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3301 * configure.tgt: Likewise as targets.
3302
fc474241
DE
33032013-08-20 Doug Evans <dje@google.com>
3304
3305 * buildsym.c (subfile_stack): Move here from buildsym.h.
3306 (pending_macros): Ditto.
3307 (get_macro_table): New function.
3308 (buildsym_init): Initialize subfile_stack.
3309 * coffread.c (type_vector,type_vector_length): Moved here from
3310 buildsym.h.
3311 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3312 (coff_symtab_read): Use it.
3313 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3314 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3315 with call to get_macro_table.
3316 * stabsread.c (type_vector,type_vector_length): Moved here from
3317 buildsym.h.
3318 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3319 * buildsym.h (get_macro_table): Declare.
3320
bec71544
TT
33212013-08-20 Tom Tromey <tromey@redhat.com>
3322
3323 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3324 Update.
3325 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3326
0002ad5f
DE
33272013-08-20 Doug Evans <dje@google.com>
3328
3329 * blockframe.c: Remove #include "psymtab.h".
3330 * cp-support.c: Ditto.
3331 * source.c: Ditto.
3332 * stack.c: Ditto.
3333
df302446
TT
33342013-08-20 Tom Tromey <tromey@redhat.com>
3335
3336 PR python/15816:
3337 * exceptions.h (return_mask): Now an enum.
3338 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3339 enum constants.
3340
df6d5441
TT
33412013-08-20 Tom Tromey <tromey@redhat.com>
3342
3343 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3344 get_objfile_arch.
3345 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3346 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3347 * jit.c (jit_object_close_impl): Update.
3348 * jv-lang.c (get_dynamics_objfile): Update.
3349 * linespec.c (add_minsym): Use get_dynamics_objfile.
3350 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3351 (allocate_objfile): Don't initialize 'gdbarch' field.
3352 (get_objfile_arch): Update.
3353 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3354 moved from...
3355 (struct objfile) <gdbarch>: ... here. Remove.
3356 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3357 get_objfile_arch.
3358 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3359
f5aee5ee
AM
33602013-08-20 Alan Modra <amodra@gmail.com>
3361
3362 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3363 for IBM long double nan and inf.
3364 (floatformat_is_negative, floatformat_classify,
3365 floatformat_mantissa): Similarly.
3366 (floatformat_ieee_single, floatformat_ieee_double,
3367 floatformat_ieee_quad, floatformat_arm_ext,
3368 floatformat_ia64_spill): Delete unused vars.
3369 (_initialize_doublest): Delete unused function.
3370 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3371 little-endian variants of floatformat_ibm_long_double.
3372
33b60d58 33732013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3374
33b60d58
LM
3375 * Makefile.in (SFILES): Remove common/target-common.c and
3376 add target/waitstatus.c.
3377 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3378 target/resume.h, target/wait.h and target/waitstatus.h.
3379 (COMMON_OBS): Remove target-common.o and add
3380 waitstatus.o.
3381 (target-common.o): Remove.
3382 (waitstatus.o): New target object file.
3383 * common/target-common.c: Move contents to
3384 target/waitstatus.c and remove.
3385 * common/target-common.h: Move contents to other files and
3386 remove.
3387 (enum resume_kind: Move to target/resume.h.
3388 (TARGET_WNOHANG): Move to target/wait.h.
3389 (enum target_waitkind): Move to target/waitstatus.h.
3390 (struct target_waitstatus): Likewise.
3391 * target.h: Do not include target-common.h and
3392 include target/resume.h, target/wait.h and
3393 target/waitstatus.h.
3394 * target/resume.h: New file.
3395 * target/wait.h: New file.
3396 * target/waitstatus.h: New file.
3397 * target/waitstatus.c: New file.
3398
12696c10
PA
33992013-08-19 Pedro Alves <palves@redhat.com>
3400
3401 * linux-nat.c (linux_test_for_tracefork)
3402 (linux_test_for_tracesysgood, linux_child_follow_fork)
3403 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3404 (linux_nat_wait_1): Extend comment.
3405 (linux_async_pipe): Add comment.
3406
ba89f962
KB
34072013-08-15 Kevin Buettner <kevinb@redhat.com>
3408
3409 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3410 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3411 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3412 Update to account for fact that PC is now a pseudo-register.
3413 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3414 cases for RL78_PC_REGNUM.
3415
35ab155d
MB
34162013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3417
3418 PR cli/15841
3419 * top.c (quit_force): Skip writing history file
3420 if input is not from terminal.
3421
0d031856
TT
34222013-08-14 Tom Tromey <tromey@redhat.com>
3423
3424 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3425 resultthreadlist>: New fields.
3426 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3427 (remote_get_threadlist, remote_threadlist_iterator): Use
3428 new fields. Remove static variables.
3429
ee154bee
TT
34302013-08-14 Tom Tromey <tromey@redhat.com>
3431
3432 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3433 remote_watch_data_address>: New fields.
3434 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3435 (process_stop_reply, remote_wait_as)
3436 (remote_check_watch_resources, remote_stopped_data_address): Update.
3437
88b496c3
TT
34382013-08-14 Tom Tromey <tromey@redhat.com>
3439
3440 * remote.c (struct remote_state) <async_client_callback,
3441 async_client_context>: New fields.
3442 (async_client_callback, async_client_context): Remove.
3443 (remote_async_serial_handler, remote_async): Update.
3444
2f65bcb7
TT
34452013-08-14 Tom Tromey <tromey@redhat.com>
3446
3447 * remote.c (sizeof_pkt): Remove.
3448 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3449
b80fafe3
TT
34502013-08-14 Tom Tromey <tromey@redhat.com>
3451
3452 * remote.c (struct remote_state) <use_threadinfo_query,
3453 use_threadextra_query>: New fields.
3454 (remote_threads_info, remote_threads_extra_info)
3455 (remote_open_1): Update.
3456
8e88304f
TT
34572013-08-14 Tom Tromey <tromey@redhat.com>
3458
3459 * remote.c (struct remote_state) <finished_object,
3460 finished_annex, finished_offset>: New fields.
3461 (remote_read_qxfer): Use remote_state fields; remove static
3462 variables.
3463
280ceea3
TT
34642013-08-14 Tom Tromey <tromey@redhat.com>
3465
3466 * remote.c (struct remote_state) <last_sent_step>:
3467 New field.
3468 (last_sent_step): Remove.
3469 (remote_resume, remote_wait_as): Update.
3470
b73be471
TT
34712013-08-14 Tom Tromey <tromey@redhat.com>
3472
3473 * remote.c (struct remote_state) <last_sent_signal>:
3474 New field.
3475 (last_sent_signal): Remove.
3476 (new_remote_state, remote_resume, remote_wait_as): Update.
3477
5e4a05c4
TT
34782013-08-14 Tom Tromey <tromey@redhat.com>
3479
3480 * remote.c (struct remote_state) <last_program_signals_packet>:
3481 New field.
3482 (last_program_signals_packet): Remove.
3483 (remote_program_signals, remote_open_1): Update.
3484
747dc59d
TT
34852013-08-14 Tom Tromey <tromey@redhat.com>
3486
3487 * remote.c (struct remote_state) <last_pass_packet>:
3488 New field.
3489 (last_pass_packet): Remove.
3490 (remote_pass_signals, remote_open_1): Update.
3491
262e1174
TT
34922013-08-14 Tom Tromey <tromey@redhat.com>
3493
3494 * remote.c (struct remote_state) <remote_traceframe_number>:
3495 New field.
3496 (remote_traceframe_number): Remove.
3497 (new_remote_state, remote_open_1, set_remote_traceframe)
3498 (remote_trace_find): Update.
3499
47f8a51d
TT
35002013-08-14 Tom Tromey <tromey@redhat.com>
3501
3502 * remote.c (struct remote_state) <general_thread, continue_thread>:
3503 New fields.
3504 (general_thread, continue_thread): Remove.
3505 (record_currthread, set_thread, set_general_process)
3506 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3507 (extended_remote_mourn_1): Update.
3508
5d93a237
TT
35092013-08-14 Tom Tromey <tromey@redhat.com>
3510
3511 * remote.c (struct remote_state) <remote_desc>: New field.
3512 (remote_desc): Remove.
3513 (remote_threads_info, remote_threads_extra_info, remote_close)
3514 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3515 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3516 (remote_hostio_send_command, remote_file_put, remote_file_get)
3517 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3518 (remote_async, remote_new_objfile, set_range_stepping): Update.
3519
cf792862
TT
35202013-08-14 Tom Tromey <tromey@redhat.com>
3521
3522 * remote.c (remote_state): Now a pointer.
3523 (get_remote_state_raw): Update.
3524 (new_remote_state): New function.
3525 (_initialize_remote): Use new_remote_state.
3526
dc473cfb
TT
35272013-08-14 Tom Tromey <tromey@redhat.com>
3528
3529 * remote.c (remote_protocol_features): Now const.
3530
85ec6ce7
TT
35312013-08-14 Tom Tromey <tromey@redhat.com>
3532
3533 * remote.c (crc32_table, crc32): Remove.
3534 (remote_verify_memory): Use xcrc32.
3535
73033f12
SDJ
35362013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3537
3538 * value.h (create_internalvar_type_lazy): Adjust prototype
3539 declaration.
3540
5c30d39a
AB
35412013-08-13 Andrew Burgess <aburgess@broadcom.com>
3542
3543 * common/format.c (parse_format_string): Don't allow '#' flag for
3544 pointer arguments in format string.
3545
1a66331e
PM
35462013-08-13 Pierre Muller <muller@sourceware.org>
3547
fde605f3 3548 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3549 if rl_get_screen_size did not return useful values.
3550
b4013987
AA
35512013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3552
3553 PR breakpoints/15117
3554 * linespec.c (linespec_parse_basic): Check for convenience
3555 variable or history value while parsing.
3556
959b6a66
SDJ
35572013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3558
3559 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3560 AVR.
3561 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3562 different signals between the generic Linux kernel implementation
3563 and AVR's.
3564 (avr_linux_gdb_signal_from_target): Delete.
3565 (avr_linux_gdb_signal_to_target): Delete.
3566 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3567
24a55014
DE
35682013-08-09 Doug Evans <dje@google.com>
3569
3570 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3571 entries.
3572
eb14d406
SDJ
35732013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3574
3575 * linux-tdep.c: Define enum with generic signal numbers.
3576 (linux_gdb_signal_from_target): New function.
3577 (linux_gdb_signal_to_target): Likewise.
3578 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3579 methods to the functions above.
3580 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3581 (linux_gdb_signal_to_target): Likewise.
3582 * alpha-linux-tdep.c: Define new enum with signals different
3583 from generic Linux kernel.
3584 (alpha_linux_gdb_signal_from_target): New function.
3585 (alpha_linux_gdb_signal_to_target): Likewise.
3586 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3587 with the functions mentioned above.
3588 * avr-tdep.c: Define enum with differences between Linux kernel
3589 and AVR signals.
3590 (avr_linux_gdb_signal_from_target): New function.
3591 (avr_linux_gdb_signal_to_target): Likewise.
3592 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3593 the functions mentioned above.
3594 * sparc-linux-tdep.c: Define enum with differences between SPARC
3595 and generic Linux kernel signal numbers.
3596 (sparc32_linux_gdb_signal_from_target): New function.
3597 (sparc32_linux_gdb_signal_to_target): Likewise.
3598 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3599 to the functions defined above.
3600 * xtensa-linux-tdep.c: Define enum with differences between
3601 Xtensa and Linux kernel generic signals.
3602 (xtensa_linux_gdb_signal_from_target): New function.
3603 (xtensa_linux_gdb_signal_to_target): Likewise.
3604 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3605 to the functions defined above.
3606 * mips-linux-tdep.c: Define enum with differences between
3607 signals in MIPS and Linux kernel generic ones.
3608 (mips_gdb_signal_to_target): New function.
3609 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3610 only different signals from the Linux kernel generic.
3611 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3612 the functions defined above.
3613 * mips-linux-tdep.h (enum mips_signals): Remove.
3614
156d08c8
PA
36152013-08-09 Pedro Alves <palves@redhat.com>
3616
3617 * avr-tdep.c (XMALLOC): Delete macro.
3618 * cli/cli-dump.c (XMALLOC): Delete macro.
3619
db229724
PA
36202013-08-09 Pedro Alves <palves@redhat.com>
3621
3622 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3623 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3624 (fopen_with_cleanup, add_dump_command): Make static.
3625 * cli/cli-dump.h: Delete file.
3626 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3627 cli/cli-dump.h.
3628
3f12a589
PA
36292013-08-09 Pedro Alves <palves@redhat.com>
3630
3631 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3632 error message.
3633
c718be47
PA
36342013-08-09 Pedro Alves <palves@redhat.com>
3635
156d08c8 3636 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3637 error message.
3638
1e351ed1
PA
36392013-08-09 Pedro Alves <palves@redhat.com>
3640
3641 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3642 (gcore_command): Use tilde_expand here, and when showing the
3643 filename to the user, show the expanded version.
3644
1ed8d800
YQ
36452013-08-09 Yao Qi <yao@codesourcery.com>
3646
3647 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3648 'entryval' is set.
3649
47ecca85
PA
36502013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3651
3652 * gcore.c (create_gcore_bfd): Use tilde_expand.
3653
82a0a75f
YQ
36542013-08-08 Yao Qi <yao@codesourcery.com>
3655
3656 * frame.h (read_frame_local): Declare.
3657 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3658 read_frame_local.
3659 * stack.c (read_frame_local): New.
3660
5c4aa40b
YQ
36612013-08-08 Yao Qi <yao@codesourcery.com>
3662
3663 * mi/mi-cmd-stack.c: Update comments to function
3664 list_args_or_locals.
3665
b93601f3
TT
36662013-08-07 Tom Tromey <tromey@redhat.com>
3667
3668 PR symtab/15028:
3669 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3670 (process_psymtab_comp_unit_reader): Use it.
3671 (process_psymtab_comp_unit): Update. Add "pretend_language"
3672 argument.
3673 (dwarf2_build_psymtabs_hard): Update.
3674 (scan_partial_symbols): Pass CU's language to
3675 process_psymtab_comp_unit.
3676
fa760f46
TT
36772013-08-07 Tom Tromey <tromey@redhat.com>
3678
3679 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3680 (dwarf2_gdb_index_functions): Update.
3681 * psymtab.c (find_symbol_file_from_partial): Remove.
3682 (psym_functions): Update.
3683 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3684 Remove.
3685
bf6d8a91
TT
36862013-08-07 Tom Tromey <tromey@redhat.com>
3687
3688 * symfile.c (set_initial_language): Look up "main" symbol
3689 and use its language.
3690 * symtab.c (find_main_filename): Remove.
3691 * symtab.h (find_main_filename): Remove.
3692
f9125b6c
TT
36932013-08-07 Tom Tromey <tromey@redhat.com>
3694
3695 * dwarf2read.c (recursively_compute_inclusions): Add
3696 "immediate_parent" argument. Set symtab's "user" field
3697 if not set.
3698 (compute_symtab_includes): Update.
3699
fdbb204b
TT
37002013-08-07 Tom Tromey <tromey@redhat.com>
3701
3702 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3703 when adding label symbols.
3704
49de1690
UW
37052013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3706 Ulrich Weigand <uweigand@de.ibm.com>
3707
3708 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3709 * configure.host (powerpc64-*-aix*): Likewise.
3710
b08ee99f
UW
37112013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3712 Ulrich Weigand <uweigand@de.ibm.com>
3713
3714 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3715 is defined.
3716 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3717 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3718 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3719 * configure.ac: Check for ptrace64.
3720 * configure, config.in: Regenerate.
3721
fecf803e
UW
37222013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3723 Ulrich Weigand <uweigand@de.ibm.com>
3724
3725 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3726 Call ptrace64 instead of ptrace if defined.
3727 Add macro addr_ptr to take care of ptrace address argument.
3728 (pdc_read_regs): Likewise.
3729 (pdc_write_regs): Likewise.
3730 (aix_thread_resume): Likewise.
3731 (fetch_regs_kernel_thread): Likewise.
3732 (store_regs_kernel_thread): Likewise.
3733
3bb5e4a8
AB
37342013-08-07 Anton Blanchard <anton@samba.org>
3735
3736 * MAINTAINERS: Add myself to Write After Approval.
3737
12070676
TT
37382013-08-05 Tom Tromey <tromey@redhat.com>
3739
3740 * aix-thread.c (_initialize_aix_thread): Use
3741 complete_target_initialization.
3742 * bsd-uthread.c (_initialize_bsd_uthread): Use
3743 complete_target_initialization.
3744 * dec-thread.c (_initialize_dec_thread): Use
3745 complete_target_initialization.
3746 * ravenscar-thread.c (_initialize_ravenscar): Use
3747 complete_target_initialization.
3748 * sol-thread.c (_initialize_sol_thread): Use
3749 complete_target_initialization.
3750 * spu-multiarch.c (_initialize_spu_multiarch): Use
3751 complete_target_initialization.
3752
7c7b6655
TT
37532013-08-05 Tom Tromey <tromey@redhat.com>
3754
3755 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3756 * ada-lang.c (ada_lookup_simple_minsym): Return
3757 bound_minimal_symbol.
3758 * ada-lang.h (ada_lookup_simple_minsym): Update.
3759 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3760 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3761 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3762 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3763 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3764 * minsyms.c (msymbol_objfile): Remove.
3765 (lookup_minimal_symbol_internal): New function, from
3766 lookup_minimal_symbol.
3767 (lookup_minimal_symbol): Rewrite using
3768 lookup_minimal_symbol_internal.
3769 (lookup_bound_minimal_symbol): New function.
3770 * minsyms.h (msymbol_objfile): Remove.
3771 (lookup_bound_minimal_symbol): Declare.
3772 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3773 * parse.c (write_exp_msymbol): Change parameter to a
3774 bound_minimal_symbol.
3775 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3776 * parser-defs.h (write_exp_msymbol): Update.
3777 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3778 * symfile.c (simple_read_overlay_table): Use
3779 lookup_bound_minimal_symbol.
3780 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3781 (search_symbols): Likewise.
3782 (print_msymbol_info): Take a bound_minimal_symbol argument.
3783 (symtab_symbol_info, rbreak_command): Update.
3784 * symtab.h (struct symbol_search) <msymbol>: Change type
3785 to bound_minimal_symbol.
3786 * valops.c (find_function_in_inferior): Use
3787 lookup_bound_minimal_symbol.
3788 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3789
934b9bac
JK
37902013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3791
3792 Code cleanup.
3793 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3794 to ...
3795 (async_cleanup_sigint_signal_handler): ... this.
3796 (initialize_sigint_signal_handler): Remove declaration.
3797 (handle_remote_sigint): Rename the declaration to ...
3798 (async_handle_remote_sigint): ... this.
3799 (handle_remote_sigint_twice): Rename the declaration to ...
3800 (async_handle_remote_sigint_twice): ... this.
3801 (async_remote_interrupt, async_remote_interrupt_twice)
3802 (remote_interrupt): Remove the declarations.
3803 (remote_interrupt_twice): Rename the declaration ...
3804 (sync_remote_interrupt_twice): ... this.
3805 (sigint_remote_twice_token): Rename the variable to ...
3806 (async_sigint_remote_twice_token): ... this.
3807 (sigint_remote_token): Rename the variable to ...
3808 (async_sigint_remote_token): ... this.
3809 (initialize_sigint_signal_handler): Rename the function to ...
3810 (async_initialize_sigint_signal_handler): ... this. Update the name
3811 inside.
3812 (handle_remote_sigint): Rename the function to ...
3813 (async_handle_remote_sigint): ... this. Update the names inside.
3814 (handle_remote_sigint_twice): Rename the function to ...
3815 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3816 (cleanup_sigint_signal_handler): Rename the function to ...
3817 (async_cleanup_sigint_signal_handler): ... this.
3818 (remote_interrupt): Rename the function to ...
3819 (sync_remote_interrupt): this. Update the names inside.
3820 (remote_interrupt_twice): Rename the function to ...
3821 (sync_remote_interrupt_twice): this. Update the names inside.
3822 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3823 (_initialize_remote): Update the names inside.
3824
3a1115a0
TT
38252013-08-02 Tom Tromey <tromey@redhat.com>
3826
3827 PR symtab/15719:
3828 * breakpoint.c (update_watchpoint, watchpoint_check)
3829 (watch_command_1): Update.
3830 * eval.c (fetch_subexp_value): Add "preserve_errors"
3831 parameter.
3832 * ppc-linux-nat.c (check_condition): Update.
3833 * value.h (fetch_subexp_value): Update.
3834
58b19776
AB
38352013-08-02 Andrew Burgess <aburgess@broadcom.com>
3836
3837 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3838 add_file_handler.
3839
ec94af83
DE
38402013-08-01 Doug Evans <dje@google.com>
3841
7ee85ab1
DE
3842 PR symtab/15691
3843 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3844 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3845 Add assert of sig_entry->dwo_unit == NULL.
3846 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3847 had already been read.
3848 (read_signatured_type): Set per_cu.tu_read.
3849
b846d303
DE
3850 PR symtab/15695
3851 * valops.c (value_struct_elt): Add missing call to check_typedef.
3852 (value_find_oload_method_list): Ditto.
3853
b52109bc
DE
3854 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3855 effectively, struct symbol_search **.
3856 (make_cleanup_free_search_symbols): Change arg to struct
3857 symbol_search **. All callers updated.
3858 (compare_search_syms): Compare symtab file name and block as well.
3859 (search_symbols_equal): New function.
3860 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3861 New args new_head, new_tail. Result is now void. Remove dups after
3862 sorting the symbols.
3863 (search_symbols): Sort all found symbols once, after all have been
3864 found, and remove duplicates. Simplify cleanup tracking of result.
3865 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3866
ec94af83
DE
3867 Further workarounds for binutils/15021.
3868 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3869 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3870 Watch for duplicate symtabs coming from type units.
3871 (compute_symtab_includes): Update call to
3872 recursively_compute_inclusions. Build vector of included symtabs
3873 instead of per_cus.
3874 * symtab.h (symtab_ptr): New typedef.
3875 (DEF_VEC_P (symtab_ptr)): New VEC type.
3876 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3877 instead.
3878
b2ae85cf
AB
38792013-08-01 Andrew Burgess <aburgess@broadcom.com>
3880
3881 * cli/cli-script.c (script_from_file): Remove use of
3882 error_pre_print.
3883 * main.c (captured_main): Remove use of error_pre_print and
3884 quit_pre_print.
3885 * utils.c (error_pre_print, quit_pre_print): Remove.
3886 * utils.h (error_pre_print, quit_pre_print): Likewise.
3887
645eab03
YQ
38882013-08-01 Yao Qi <yao@codesourcery.com>
3889
3890 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3891 with mi_getopt.
3892 (mi_cmd_stack_list_variables): Likewise.
3893
16f92dd4
AB
38942013-07-31 Andrew Burgess <aburgess@broadcom.com>
3895
3896 * exceptions.c (deprecated_throw_reason): Remove.
3897 * exceptions.h (deprecated_throw_reason): Remove.
3898
13f78033
AB
38992013-07-31 Andrew Burgess <aburgess@broadcom.com>
3900
3901 * remote-mips.c (mips_error): Replace use of
3902 deprecated_throw_reason with throw_verror. Use the error message
3903 passed to mips_error as the error message for throw_verror.
3904
039e3c22
AB
39052013-07-31 Andrew Burgess <aburgess@broadcom.com>
3906
3907 * monitor.c (monitor_interrupt_query): Replace use of
3908 deprecated_throw_reason with quit.
3909 * nto-procfs.c (interrupt_query): Likewise.
3910 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3911 * remote-mips.c (mips_kill): Likewise.
3912 * remote.c (interrupt_query): Likewise.
3913
8150913b
AB
39142013-07-31 Andrew Burgess <aburgess@broadcom.com>
3915
3916 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3917 with call to fatal.
3918
de74e63a
YQ
39192013-07-31 Pedro Alves <pedro@codesourcery.com>
3920 Yao Qi <yao@codesourcery.com>
3921
3922 * tracepoint.c (trace_dump_command): Select the current frame.
3923
247f5c4f
DE
39242013-07-30 Doug Evans <dje@google.com>
3925
3926 * dwarf2read.c (process_queue): Add type signature to debug output.
3927
11b4b7cc
AB
39282013-07-30 Andrew Burgess <aburgess@broadcom.com>
3929
3930 * value.c (value_fetch_lazy): Mark optimized out values as such
3931 rather than raising an error.
3932
b0c54aa5
AB
39332013-07-30 Andrew Burgess <aburgess@broadcom.com>
3934
3935 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3936 before checking which bits of the parent, not the child, value are
3937 valid.
3938
97c85fc6
MB
39392013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3940
3941 PR gdb/15715
3942 * top.c: Include "filenames.h".
3943 (set_history_filename): New function.
3944 (init_main): Install it as set hook of the "set history filename"
3945 command.
3946
ff39bb5e
SA
39472013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3948
3949 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3950 attribute parameter.
3951 (dwarf2_const_value_data): Constify struct attribute parameter.
3952 (dwarf2_const_value): Constify struct attribute parameter.
3953 (dwarf2_const_value_attr): Constify struct attribute parameter.
3954 (lookup_die_type): Constify struct attribute parameter.
3955 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3956 (follow_die_ref_or_sig): Constify struct attribute parameter.
3957 (follow_die_ref): Constify struct attribute parameter.
3958 (follow_die_sig): Constify struct attribute parameter.
3959 (get_DW_AT_signature_type): Constify struct attribute parameter.
3960 (get_type_unit_group): Constify struct attribute parameter.
3961 (fill_in_loclist_baton): Constify struct attribute parameter.
3962 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3963 (type_unit_group): Constify struct attribute parameter.
3964
6e5a29e1
SA
39652013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3966
3967 * dwarf2read.c (attr_form_is_block): Make argument const.
3968 (attr_form_is_section_offset): Make argument const.
3969 (attr_form_is_constant): Make argument const.
3970 (attr_form_is_ref): Make argument const.
3971
7771576e
SA
39722013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3973
3974 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3975 All uses updated.
3976 (attr_form_is_ref): Moved below attr_form_is_constant.
3977
a94e8645
DE
39782013-07-29 Doug Evans <dje@google.com>
3979
bb5291d0
DE
3980 * main.c (captured_command_loop): Tweak comment.
3981
b5419e49
DE
3982 * target.c (target_async_permitted_1): Fix comment.
3983
b2d23133
DE
3984 * symtab.c (iterate_over_some_symtabs): Add comment.
3985
a94e8645
DE
3986 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3987
7a60ad40
YQ
39882013-07-27 Yao Qi <yao@codesourcery.com>
3989
3990 * NEWS: Mention that GDBserver now supports hardware
3991 watchpoints on the MIPS GNU/Linux target.
3992
aaee2056
YQ
39932013-07-27 Yao Qi <yao@codesourcery.com>
3994
3995 * Makefile.in (HFILES_NO_SRCDIR): Add
3996 common/mips-linux-watch.h.
3997 (mips-linux-watch.o): New rule.
3998 * common/mips-linux-watch.c: New.
3999 * common/mips-linux-watch.h: New.
4000 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4001 * mips-linux-nat.c: Include mips-linux-watch.h.
4002 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4003 to common/mips-linux-watch.h.
4004 (MAX_DEBUG_REGISTER): Likewise.
4005 (enum pt_watch_style): Likewise.
4006 (struct mips32_watch_regs): Likewise.
4007 (struct mips64_watch_regs): Likewise.
4008 (struct pt_watch_regs): Likewise.
4009 (struct mips_watchpoint): Likewise.
4010 (mips_linux_watch_get_irw_mask): Move to
4011 common/mips-linux-watch.c.
4012 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4013 (mips_linux_watch_get_watchlo): Likewise.
4014 (mips_linux_watch_set_watchlo): Likewise.
4015 (mips_linux_watch_get_watchhi): Likewise.
4016 (mips_linux_watch_set_watchhi): Likewise.
4017 (mips_linux_read_watch_registers): Likewise.
4018 (mips_linux_watch_type_to_irw): Likewise.
4019 (mips_linux_stopped_data_address, fill_mask): Likewise.
4020 (mips_linux_watch_try_one_watch): Likewise.
4021 (mips_linux_watch_populate_regs): Likewise.
4022
b3436450
YQ
40232013-07-27 Yao Qi <yao@codesourcery.com>
4024
4025 * mips-linux-nat.c (get_irw_mask): Rename to ...
4026 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4027 'set' to 'n'. Update function comment. All callers changed.
4028 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4029 function comment. All callers changed.
4030 (get_num_valid): Rename to ...
4031 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4032 'set' to 'n'. Update function comment. All callers changed.
4033 (get_watchlo): Rename to ...
4034 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4035 'set' to 'n'. Update function comment. All callers changed.
4036 (set_watchlo): Rename to ...
4037 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4038 'set' to 'n'. Update function comment. All callers changed.
4039 (get_watchhi): Rename to ...
4040 (mips_linux_watch_get_watchhi): ... this. Update function
4041 comment. All callers changed.
4042 (set_watchhi): Rename to ...
4043 (mips_linux_watch_set_watchhi): ... this. Update function
4044 comment. All callers changed.
4045 (mips_linux_read_watch_registers): Update function comment.
4046 Add new parameters 'lwpid', 'watch_readback', and
4047 'watch_readback_valid'. Update.
4048 (type_to_irw): Rename to ...
4049 (mips_linux_watch_type_to_irw): ... this. Update function
4050 comment. All callers changed.
4051 (fill_mask): Update function comment.
4052 (try_one_watch): Rename to ...
4053 (mips_linux_watch_try_one_watch): ... this. Change the type
4054 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4055 (populate_regs_from_watches): Rename to ...
4056 (mips_linux_watch_populate_regs): ... this. Add parameter
4057 'current_watches'. All callers changed.
4058
9be14b81
YQ
40592013-07-27 Yao Qi <yao@codesourcery.com>
4060
4061 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4062 the code.
4063 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4064 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4065 (struct pt_watch_regs): Likewise.
4066 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4067 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4068 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4069 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4070 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4071
de6f69ad
YQ
40722013-07-27 Yao Qi <yao@codesourcery.com>
4073
4074 * breakpoint.h: Include break-common.h.
4075 (enum target_hw_bp_type): Move to ...
4076 * common/break-common.h: ... here. New.
4077
6f64ef53
PA
40782013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4079
4080 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4081 process group regardless of having tty on stdin.
4082
6107e809
DE
40832013-07-25 Doug Evans <dje@google.com>
4084
4085 * linux-fork.h (detach_fork): Delete.
4086
7fdc1521
TT
40872013-07-25 Tom Tromey <tromey@redhat.com>
4088
4089 PR remote/15256, PR remote/15266:
4090 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4091 * monitor.c (monitor_detach): Use unpush_target.
4092 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4093 * remote-mips.c (mips_detach): Use unpush_target. Don't
4094 call mips_close.
4095 * remote-sim.c (gdbsim_detach): Use unpush_target.
4096 * target.c (pop_target): Remove.
4097 (pop_all_targets_above): Don't call target_close.
4098 (target_close): Assert that the target is unpushed.
4099 * target.h (pop_target): Don't declare.
4100 * tracepoint.c (tfile_open): Use unpush_target.
4101
c22a2b88
TT
41022013-07-25 Tom Tromey <tromey@redhat.com>
4103
4104 * linux-thread-db.c (init_thread_db_ops): Call
4105 complete_target_initialization.
4106 (_initialize_thread_db): Don't call add_target.
4107 * target.c (complete_target_initialization): New function.
4108 (add_target_with_completer): Call it.
4109 * target.h (complete_target_initialization): Declare.
4110
cbb6aada
MK
41112013-07-25 Mark Kettenis <kettenis@gnu.org>
4112
4113 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4114 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4115 (HPPANBSD_SIZEOF_GREGS): New define.
4116 (hppaobsd_supply_gregset): Handle additional registers.
4117 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4118 we provide more registers now.
4119 (hppabsd_supply_gregset): Supply additional registers.
4120 (hppabsd_collect_gregset): Collect additional registers.
4121
17767988
MK
41222013-07-25 Mark Kettenis <kettenis@gnu.org>
4123
4124 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4125 (hppabsd_dwarf2_frame_init_reg): New function.
4126 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4127
fdc8aae8
AB
41282013-07-25 Andrew Burgess <aburgess@broadcom.com>
4129
4130 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4131 'z' format code. Remove error for optimized out values, standard
4132 code will handle these fine.
4133
6fbe845e
AB
41342013-07-25 Andrew Burgess <aburgess@broadcom.com>
4135
4136 * NEWS: Mention new 'z' formatter.
4137 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4138 (_initialize_printcmd): Mention 'z' formatter in help text of the
4139 'x' command.
4140
3373342d
MR
41412013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4142
4143 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4144 formatting.
4145
25f9533e
SDJ
41462013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4147
4148 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4149 interface can evaluate arguments. Fallback to the old mode if it
4150 cannot.
4151 (create_exception_master_breakpoint): Likewise.
4152 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4153 (struct sym_probe_fns elf_probe_fns): Export function above to the
4154 probe interface.
4155 * probe.c (can_evaluate_probe_arguments): New function.
4156 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4157 function pointer.
4158 (can_evaluate_probe_arguments): New function prototype.
4159 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4160 probe interface can evaluate arguments. Fallback to the old mode
4161 if it cannot.
4162 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4163 interface can evaluate arguments. Warning the user if it cannot.
4164 (stap_can_evaluate_probe_arguments): New function.
4165 (struct probe_ops stap_probe_ops): Export function above to the
4166 probe interface.
4167 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4168 New function pointer.
4169
3360c0bf
LM
41702013-07-24 Luis Machado <lgustavo@codesourcery.com>
4171
4172 * Makefile.in (SFILES): Add common/target-common.c.
4173 Add common/target-common.h to headers.
4174 (COMMON_OBS): Add target-common.o.
4175 (target-common.o): New target.
4176 * linux-nat.h (resume_kind): Move to common/target-common.h.
4177 * target.c (target_waitstatus_to_string): Move to
4178 common/target-common.c.
4179 * target.h: Include target-common.h.
4180 (target_waitkind): Move to common/target-common.h.
4181 (target_waitstatus): Likewise.
4182 (TARGET_WNOHANG): Likewise.
4183 * common/target-common.c: New file.
4184 * common/target-common.h: New file.
4185
6656a72d
DE
41862013-07-24 Doug Evans <dje@google.com>
4187
4188 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4189 a warning.
4190
6df81a63
YQ
41912013-07-23 Yao Qi <yao@codesourcery.com>
4192
4193 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4194 parameter 'gdbarch'.
4195 (i386_stack_tramp_frame_sniffer): Caller update.
4196 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4197 parameter 'gdbarch' and 'target'.
4198 (i386_linux_core_read_description): Caller update.
4199 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4200 Likewise.
4201 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4202 declaration.
4203
365156ad
TT
42042013-07-23 Tom Tromey <tromey@redhat.com>
4205
4206 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4207 2013-07-22.
4208
046ac79f
JK
42092013-07-22 Doug Evans <dje@google.com>
4210
4211 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4212 * exec.c (exec_close): Update call to remove_target_sections.
4213 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4214 * solib.c (update_solib_list): Ditto.
4215 (reload_shared_libraries_1): Ditto.
4216 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4217 * target.h (struct target_section): Rename key to owner.
4218 All uses updated.
046ac79f 4219
29b2cc46
TT
42202013-07-22 Tom Tromey <tromey@redhat.com>
4221
4222 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4223
d1160018
TT
42242013-07-22 Tom Tromey <tromey@redhat.com>
4225
4226 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4227 Simplify cleanup handling.
4228
2f324bf6
TT
42292013-07-22 Tom Tromey <tromey@redhat.com>
4230
4231 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4232 on all return paths.
4233
e23b9d6e
UW
42342013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4235
4236 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4237 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4238 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4239
1cf55f60
PM
42402013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4241
4242 * top.c (print_gdb_version): Add help, apropos description and
4243 url to online documentation.
4244
fa876972
HZ
42452013-07-19 Hui Zhu <hui@codesourcery.com>
4246
4247 PR gdb/15692
4248 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4249
1527aea8
YQ
42502013-07-19 Yao Qi <yao@codesourcery.com>
4251
4252 * target.c (update_current_target): Change the default action
4253 of 'to_traceframe_info' from tcomplain to return_zero.
4254 * target.h (struct target_ops) <to_traceframe_info>: Add more
4255 comments.
4256 * valops.c (read_value_memory): Call
4257 traceframe_available_memory unconditionally.
4258
886f230e
YQ
42592013-07-18 Yao Qi <yao@codesourcery.com>
4260
4261 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4262 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4263 symbol without prefix. If found, set its type to
4264 'mst_solib_trampoline'.
4265
16419bae
DE
42662013-07-17 Doug Evans <dje@google.com>
4267
e7045703
DE
4268 * NEWS: Mention "set print raw frame-arguments".
4269 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4270 * stack.c (print_raw_frame_arguments): New static global.
4271 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4272 (_initialize_stack): New command "set/show print raw frame-arguments".
4273 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4274 (set_print_raw, show_print_raw): New functions.
4275 (_initialize_valprint): New prefix command "set/show print raw".
4276 * valprint.h (value_print_options): Improve comments.
4277
453e48a5
DE
4278 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4279 of all *list variables.
4280
16419bae
DE
4281 * gdbcmd.h (togglelist): Delete.
4282 * cli/cli-cmds.c (togglelist): Delete.
4283 (init_cmd_lists): Update.
4284 * cli/cli-cmds.h (togglelist): Delete.
4285
626f2d1c
TT
42862013-07-17 Tom Tromey <tromey@redhat.com>
4287
4288 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4289 dwarf2_per_objfile.
4290
57e6060e
DE
42912013-07-16 Doug Evans <dje@google.com>
4292
4293 * nto-tdep.c (nto_relocate_section_addresses): Update,
4294 target_section.bfd deleted.
4295 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4296 * s390-tdep.c (s390_load): Ditto.
4297 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4298
5ea5559b
AB
42992013-07-16 Andrew Burgess <aburgess@broadcom.com>
4300
4301 * common/format.c (parse_format_string): Add checks for NULL
4302 character before calling strchr.
4303
2b2848e2
DE
43042013-07-16 Doug Evans <dje@google.com>
4305
2c571006
DE
4306 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4307 temp_pathname argument.
4308 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4309 when opening the file fails.
4310
2b2848e2
DE
4311 * target.h (struct target_section): Delete member bfd.
4312 All users updated to use the_bfd_section->owner instead.
4313 * exec.c (add_to_section_table): Assert bfd is expected value.
4314 Remove initialization of target_section.bfd.
4315 (remove_target_sections): Update.
4316 (section_table_available_memory): Update.
4317 (section_table_xfer_memory_partial): Update.
4318 (print_section_info): Update.
4319 (exec_set_section_address): Update.
4320 * record-full.c (record_full_core_xfer_partial): Update.
4321 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4322 * solib-target.c (solib_target_relocate_section_addresses): Update.
4323 * symfile.c (build_section_addr_info_from_section_table): Update.
4324 * target.c (memory_xfer_live_readonly_partial): Update.
4325 (memory_xfer_partial_1): Update.
4326
926bf92d
UW
43272013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4328
4329 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4330 now available for embedded (BookE) and server (BookS) processors,
4331 correct mentions of 'booke' and adjust comments accordingly in order to
4332 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4333 (have_ptrace_booke_interface): Rename function and variable
4334 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4335 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4336 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4337 'hwdebug_point_cmp'. Update all uses.
4338 (booke_find_thread_points_by_tid): Rename function
4339 'booke_find_thread_points_by_tid' to
4340 'hwdebug_find_thread_points_by_tid'. Update all uses.
4341 (booke_insert_point): Rename function 'booke_insert_point' to
4342 'hwdebug_insert_point'. Update all uses.
4343 (booke_remove_point): Rename function 'booke_remove_point' to
4344 'hwdebug_remove_point'. Update all uses.
4345
d929bc19
MR
43462013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4347
4348 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4349 numbers with enum values.
4350
054e8d9e
AA
43512013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4352
4353 PR threads/13217
4354 * thread.c (thread_apply_all_command): Check for valid threads
4355 and thread count.
4356 (thread_array_cleanup): New struct.
4357 (set_thread_refcount): New function.
4358
cf006359
AB
43592013-07-11 Andrew Burgess <aburgess@broadcom.com>
4360
4361 * infcmd.c (default_print_one_register_info): Reuse function
4362 print_hex_chars.
4363
94e36acc
TT
43642013-07-10 Tom Tromey <tromey@redhat.com>
4365
4366 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4367 (ada-exp.o): New target.
4368
915dd369
SDJ
43692013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4370
4371 * mt-tdep.c (mt_registers_info): Call
4372 get_no_prettyformat_print_options instead of
4373 get_raw_print_options (regression by last patch from Doug
4374 Evans).
4375
eca07816
JB
43762013-07-09 Pedro Alves <palves@redhat.com>
4377
4378 Checked in by Joel Brobecker <brobecker@adacore.com>.
4379 * ada-lang.c (coerce_unspec_val_to_type): Use
4380 value_optimized_out_const.
4381 * value.c (value_optimized_out_const): New function.
4382 * value.h (value_optimized_out_const): New declaration.
4383
2a998fc0
DE
43842013-07-09 Doug Evans <dje@google.com>
4385
4386 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4387 Enum values rename as well. All uses updated.
4388 * valprint.h (value_print_options): Rename member pretty to
4389 pretty format. Rename member prettyprint_arrays to
4390 prettyformat_arrays. Rename member prettyprint_structs to
4391 prettyformat_structs. All uses updated.
4392 (get_no_prettyformat_print_options): Renamed from
4393 get_raw_print_options.
4394 * valprint.c (get_no_prettyformat_print_options): Renamed from
4395 get_raw_print_options. All callers updated.
4396 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4397 All callers updated.
4398 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4399 All callers updated.
4400 (_initialize_valprint): Improve help text for "set print pretty" and
4401 "set print arrays".
4402
466c1fca
AB
44032013-07-09 Andrew Burgess <aburgess@broadcom.com>
4404
4405 * value.c (value_bits_valid): Revert previous change, and change
4406 by Pedro on 2013-07-04, due to regressions in
4407 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4408
ad0f0303
AB
44092013-07-08 Andrew Burgess <aburgess@broadcom.com>
4410 Pedro Alves <palves@redhat.com>
4411
4412 * value.c (value_bits_valid): If the value is not lval_computed
4413 or has no check validity handler then the answer is the
4414 optimized_out flag, otherwise defer to the handler.
4415
b187bec1
EZ
44162013-07-06 Eli Zaretskii <eliz@gnu.org>
4417
48d1d6f5
EZ
4418 * top.c (print_gdb_configuration): Explain in output of
4419 --configuration what does "relocatable" mean.
4420
b187bec1
EZ
4421 * main.c (print_gdb_help): Regroup options in the --help text.
4422 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4423 the relevant discussions.
4424
52d361e1
YQ
44252013-07-06 Yao Qi <yao@codesourcery.com>
4426
4427 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4428 Remove parameter 'lsal'.
4429 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4430 to inner block. Caller update.
4431 (base_breakpoint_create_breakpoints_sal): Update.
4432 (bkpt_create_breakpoints_sal): Likewise.
4433 (tracepoint_create_breakpoints_sal): Likewise.
4434 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4435 element 0 of vector 'canonical->sals'.
4436
e1ec1b42
LM
44372013-07-05 Luis Machado <lgustavo@codesourcery.com>
4438
4439 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4440 register number instead of the pseudo register one.
4441 (rs6000_dwarf2_reg_to_regnum): Likewise.
4442
7195e6f0
PA
44432013-07-04 Pedro Alves <palves@redhat.com>
4444
4445 * findvar.c (value_of_register): Use allocate_optimized_out_value
4446 if the register has been optimized out, instead of
4447 set_value_optimized_out.
4448 * frame-unwind.c (frame_unwind_got_optimized): Use
4449 allocate_optimized_out_value.
4450
58722cac
PA
44512013-07-04 Pedro Alves <palves@redhat.com>
4452
4453 * value.c (value_bits_valid): If the value is not lval_computed,
4454 or doesn't have a check_validity hook, assume the value is entirely
4455 valid.
4456
691a26f5
AB
44572013-07-04 Andrew Burgess <aburgess@broadcom.com>
4458
4459 * stack.c (read_frame_arg): No longer fetch lazy values.
4460 * value.c (value_optimized_out): If the value is not already
4461 marked optimized out, and is lazy then fetch it.
4462 (value_primitive_field): Move optimized out check to later in the
4463 function, after we have loaded any lazy values.
4464 (value_fetch_lazy): Use optimized out flag directly rather than
4465 calling optimized_out method.
4466
a58e2656
AB
44672013-07-04 Andrew Burgess <aburgess@broadcom.com>
4468
4469 * valops.c: Don't include "user-regs.h".
4470 (value_fetch_lazy): Moved to value.c.
4471 * value.c: Include "user-regs.h".
4472 (value_fetch_lazy): Moved from valops.c.
4473
bd885420
YQ
44742013-07-04 Yao Qi <yao@codesourcery.com>
4475
4476 Revert:
4477 2013-06-27 Yao Qi <yao@codesourcery.com>
4478
4479 * common/create-version.sh: Update comments. Handle the case
4480 that TARGET_ALIAS is empty.
4481
17ef446e
PA
44822013-07-03 Pedro Alves <palves@redhat.com>
4483
4484 * Makefile.in (config.status): Depend on development.sh.
4485 (aclocal_m4_deps): Add libmcheck.m4.
4486 * acinclude.m4: Include libmcheck.m4.
4487 * configure.ac: Source development.sh instead of setting
4488 'development' here. --enable-libmcheck/--disable-libmcheck code
4489 factored out to GDB_AC_LIBMCHECK. Run it.
4490 * development.sh: New file.
4491 * libmcheck.m4: New file.
4492 * configure: Regenerate.
4493
ac6dd50f
TT
44942013-07-02 Tom Tromey <tromey@redhat.com>
4495
4496 * contrib/ari/update-web-ari.sh: Update for version.in change.
4497
bd1df410
TT
44982013-07-02 Tom Tromey <tromey@redhat.com>
4499
4500 * common/ptid.h: Comment fixes.
4501
4db1a1dc
TT
45022013-07-01 Tom Tromey <tromey@redhat.com>
4503
4504 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4505 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4506 (dwarf2_read_index, create_all_comp_units): Update.
4507
dd9aa048
TT
45082013-07-01 Tom Tromey <tromey@redhat.com>
4509
4510 * configure.ac (build_warnings): Add -Wold-style-definition.
4511 * configure: Rebuild.
4512 * machoread.c (_initialize_machoread): Use "(void)".
4513 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4514 use "(void)".
4515
44d100c3
TT
45162013-07-01 Tom Tromey <tromey@redhat.com>
4517
4518 * configure.ac (build_warnings): Add -Wold-style-declaration.
4519 * configure: Rebuild.
4520 * dsrec.c (make_srec): Use "static const", not "const static".
4521 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4522 not "const static".
4523 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4524 Use "static const", not "const static".
4525 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4526 not "const static".
4527 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4528 not "const static".
4529 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4530 not "const static".
4531 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4532 not "const static".
4533 (v850_dbtrap_breakpoint_from_pc): Likewise.
4534 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4535 not "const static".
4536
2945b807
TT
45372013-07-01 Tom Tromey <tromey@redhat.com>
4538
4539 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4540 * configure: Rebuild.
4541
d8d2a3ee
PA
45422013-07-01 Pedro Alves <palves@redhat.com>
4543
4544 * defs.h: Include "pathmax.h".
4545 * utils.c: Don't include sys/param.h.
4546 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4547 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4548 instead of MAXPATHLEN.
4549 * solib-sunos.c: Don't include sys/param.h.
4550 * xcoffread.c: Don't include sys/param.h.
4551 * bsd-kvm.c: Don't include sys/param.h.
4552 * darwin-nat.c: Don't include sys/param.h.
4553 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4554 * darwin-nat-info.c: Don't include sys/param.h.
4555 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4556 MAXPATHLEN.
4557 * i386obsd-nat.c: Don't include sys/param.h.
4558 * inf-child.c: Don't include sys/param.h.
4559 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4560 * linux-fork.c: Don't include sys/param.h.
4561 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4562 * linux-nat.c: Don't include sys/param.h.
4563 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4564 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4565 * m68klinux-nat.c: Don't include sys/param.h.
4566 * nbsd-nat.c: Don't include sys/param.h.
4567 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4568 * ppc-linux-nat.c: Don't include sys/param.h.
4569 * rs6000-nat.c: Don't include sys/param.h.
4570 * spu-linux-nat.c. Don't include sys/param.h.
4571 * windows-nat.c: Don't include sys/param.h.
4572 * xtensa-linux-nat.c: Don't include sys/param.h.
4573 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4574
38ec2207
PA
45752013-07-01 Pedro Alves <palves@redhat.com>
4576
4577 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4578 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4579 * gnulib/aclocal.m4: Regenerate.
4580 * gnulib/config.in: Regenerate.
4581 * gnulib/configure: Regenerate.
4582 * gnulib/import/pathmax.h: New file.
4583 * gnulib/import/Makefile.am: Regenerate.
4584 * gnulib/import/Makefile.in: Regenerate.
4585 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4586 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4587 * gnulib/import/m4/pathmax.m4: New file.
4588
e655c1a2
PA
45892013-07-01 Pedro Alves <palves@redhat.com>
4590
4591 * configure.ac (GDBINIT): Define, depending on host.
4592 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4593 * top.c (PATH_MAX): Delete fallback definition.
4594 (GDBINIT_FILENAME): Delete.
4595 (gdbinit): Reimplement as const char array set to the GDBINIT
4596 string constant.
4597 * top.h (gdbinit): Make const.
4598 * configure, config.in: Regenerate.
4599
50dd9793
PA
46002013-07-01 Pedro Alves <palves@redhat.com>
4601
4602 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4603 * cli/cli-cmds.h (source_script): Likewise.
4604 * exceptions.c (catch_command_errors_const): New function.
4605 * exceptions.h (catch_command_errors_const): Declare.
4606 * main.c (get_init_files): Make parameters const, and adjust.
4607 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4608 'local_gdbinit' locals const. Adjust to use
4609 catch_command_errors_const.
4610 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4611 'local_gdbinit' locals const.
4612
bc7dea8d
PA
46132013-07-01 Pedro Alves <palves@redhat.com>
4614
4615 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4616 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4617 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4618 <unistd.h>.
4619
8839a007
PA
46202013-07-01 Pedro Alves <palves@redhat.com>
4621
4622 Import the "unistd" gnulib module.
4623 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4624 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4625 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4626 import/m4/unistd_h.m4.
4627 * gnulib/aclocal.m4: Renenerate.
4628 * gnulib/config.in: Renenerate.
4629 * gnulib/configure: Renenerate.
4630 * gnulib/import/Makefile.am: Renenerate.
4631 * gnulib/import/Makefile.in: Renenerate.
4632 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4633 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4634 * gnulib/import/m4/off_t.m4: New file.
4635 * gnulib/import/m4/ssize_t.m4: New file.
4636 * gnulib/import/m4/sys_types_h.m4: New file.
4637 * gnulib/import/m4/unistd_h.m4: New file.
4638 * gnulib/import/sys_types.in.h: New file.
4639 * gnulib/import/unistd.c: New file.
4640 * gnulib/import/unistd.in.h: New file.
4641
8c0da261
PA
46422013-07-01 Pedro Alves <palves@redhat.com>
4643
4644 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4645 defined instead of checking HAVE_UNISTD_H.
4646
3574124b
PA
46472013-07-01 Pedro Alves <palves@redhat.com>
4648
4649 Reimport gnulib from scratch.
4650 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4651 import/m4/onceonly.m4.
4652 * gnulib/aclocal.m4: Renegerate.
4653 * gnulib/config.in: Renegerate.
4654 * gnulib/configure: Renegerate.
4655 * gnulib/import/Makefile.in: Renegerate.
4656 * gnulib/import/extra/update-copyright: Renegerate.
4657 * gnulib/import/m4/onceonly.m4: Delete.
4658
702dc4fd
PA
46592013-07-01 Pedro Alves <palves@redhat.com>
4660
4661 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4662
47e1ce27
JK
46632013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4664
4665 Code cleanup.
4666 * remote.c (async_remote_interrupt_twice): Make it static.
4667 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4668
e82839d4
SDJ
46692013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4670
4671 * ia64-linux-tdep.c: Include <ctype.h>.
4672 (ia64_linux_stap_is_single_operand): New function.
4673 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4674
d6c2da54
TT
46752013-06-28 Tom Tromey <tromey@redhat.com>
4676
4677 * Makefile.in (version.c): Use version.in, not
4678 common/version.in.
4679 * common/create-version.sh: Likewise.
4680 * common/version.in: Move...
4681 * version.in: ...here.
4682
74da6f00
PA
46832013-06-28 Pedro Alves <palves@redhat.com>
4684
4685 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4686 here.
4687 * utils.h (pagination_enabled): Declare.
4688
d32dc48e
PA
46892013-06-28 Pedro Alves <palves@redhat.com>
4690
4691 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4692 Move higher up in file.
4693
0edd9e3b
TT
46942013-06-28 Tom Tromey <tromey@redhat.com>
4695
4696 * tracepoint.c (deprecated_readline_begin_hook)
4697 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4698 declare.
4699
4eb59108
PA
47002013-06-28 Pedro Alves <palves@redhat.com>
4701
4702 PR tui/14880
4703 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4704 checking if they're available.
4705 * value.c (value_available_contents_eq): Change comment.
4706 * value.h (value_available_contents_eq): Expand comment.
4707
97b17156
TT
47082013-06-27 Tom Tromey <tromey@redhat.com>
4709
4710 * target.c (find_run_target): Remove.
4711 * target.h (find_run_target): Remove.
4712
6a3bfc5c
TT
47132013-06-27 Tom Tromey <tromey@redhat.com>
4714
4715 * corelow.c (core_gdbarch): Now static.
4716
c9ef825d
TT
47172013-06-27 Tom Tromey <tromey@redhat.com>
4718
4719 * target.c (target_struct_index): Remove.
4720
e5823f1c
PA
47212013-06-27 Pedro Alves <palves@redhat.com>
4722
4723 * infrun.c: Remove comment describing the 'stepping over runtime
4724 loader dynamic symbol resolution code' mechanism; moved to
4725 gdbint.texinfo.
4726
97f8dd09
PA
47272013-06-27 Pedro Alves <palves@redhat.com>
4728
4729 * exceptions.c (catch_command_errors): Remove spurious space.
4730 * exceptions.h (catch_command_errors): Second parameter is "arg",
4731 not "command".
4732
02b1871e
YQ
47332013-06-27 Yao Qi <yao@codesourcery.com>
4734
4735 * common/create-version.sh: Update comments. Handle the case
4736 that TARGET_ALIAS is empty.
4737
bb1b1cf1
PA
47382013-06-26 Pedro Alves <palves@redhat.com>
4739
4740 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4741 comment.
4742
7b624e71
PA
47432013-06-26 Pedro Alves <palves@redhat.com>
4744
4745 * infrun.c: Update comments on stepping over runtime loader
4746 dynamic symbol resolution code.
4747
74e5a346
SDJ
47482013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4749
4750 * ax-gdb.h (union exp_element): Forward declare.
4751 * parser-defs.h: Include expression.h.
4752
a2fb2cee
MR
47532013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4754
4755 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4756
cdba14e0
DK
47572013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4758
4759 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4760
f30aa5af
DK
47612013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4762
4763 Fix trace-status to output proper start-time and stop-time.
4764 * tracepoint.c (trace_status_command): Fix type of printf arg to
4765 prevent improper type conversion.
4766 (trace_status_mi): Likewise.
4767
1aee363c
MR
47682013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4769
4770 * mips-tdep.c (mips_next_pc): Fix a typo.
4771
3356937a
MR
47722013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4773
4774 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4775
dc673c81
YQ
47762013-06-26 Pedro Alves <pedro@codesourcery.com>
4777 Yao Qi <yao@codesourcery.com>
4778
4779 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4780 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4781 * mi/mi-main.c (print_variable_or_computed): New function.
4782 (mi_cmd_trace_frame_collected): New function.
4783 * tracepoint.c (find_trace_state_variable_by_number): New.
4784 (struct traceframe_info): Move to tracepoint.h
4785 (struct collection_list): Likewise.
4786 (do_collect_symbol): Include locals and arguments in the
4787 collected variables list.
4788 (clear_collection_list): Clear wholly collected variables list
4789 and computed variables list.
4790 (append_exp): New function.
4791 (encode_actions_1): Include variables in the wholly
4792 collected variables list. Include memory ranges and
4793 full-fledged expressions in the computed expressions list.
4794 (encode_actions): Move some code to ...
4795 Return the cleanup chain.
4796 (encode_actions_rsp): ... here. New function.
4797 (get_traceframe_location, get_traceframe_info): Remove static.
4798 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4799 (struct collection_list): Moved from tracepoint.c. Add two
4800 new fields 'wholly_collected' and 'computed'.
4801 (find_trace_state_variable_by_number): Declare.
4802 (encode_actions): Adjust declaration.
4803 (encode_actions_rsp): Declare.
4804 (get_traceframe_info, get_traceframe_location): Declare.
4805
4806 * NEWS: Mention new MI command -trace-frame-collected.
4807
28a93511
YQ
48082013-06-26 Pedro Alves <pedro@codesourcery.com>
4809 Yao Qi <yao@codesourcery.com>
4810
4811 * ctf.c (ctf_traceframe_info): Push trace state variables
4812 present in the trace data into the traceframe info object.
4813 * breakpoint.c (DEF_VEC_I): Remove.
4814 * common/filestuff.c (DEF_VEC_I): Likewise.
4815 * dwarf2loc.c (DEF_VEC_I): Likewise.
4816 * mi/mi-main.c (DEF_VEC_I): Likewise.
4817 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4818 * features/traceframe-info.dtd: Add tvar element and its
4819 attributes.
4820 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4821 (build_traceframe_info): Push trace state variables present in
4822 the trace data into the traceframe info object.
4823 (traceframe_info_start_tvar): New function.
4824 (tvar_attributes): New.
4825 (traceframe_info_children): Add "tvar" element.
4826 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4827
4828 * NEWS: Mention the change in GDB and GDBserver.
4829
ddacd3c8
YQ
48302013-06-26 Pedro Alves <pedro@codesourcery.com>
4831 Yao Qi <yao@codesourcery.com>
4832
4833 * tracepoint.c (trace_dump_command): Move code to ...
4834 (get_traceframe_location): ... here. New.
4835
05796b35
YQ
48362013-06-26 Pedro Alves <pedro@codesourcery.com>
4837 Yao Qi <yao@codesourcery.com>
4838
4839 * tracepoint.c (trace_dump_command): GDB emits an error
4840 instead of a warning when a traceframe is not selected.
4841
cbfa3b61
YQ
48422013-06-26 Pedro Alves <pedro@codesourcery.com>
4843 Yao Qi <yao@codesourcery.com>
4844
4845 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4846 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4847 in collection_list.
4848 (do_clear_collection_list, init_collection_list): New.
4849 (encode_actions): Add local variables 'tracepoint_list' and
4850 'stepping_list'. Call init_collection_list and make cleanup
4851 which calls do_clear_collection_list. Don't call
4852 clear_collection_list.
4853 (_initialize_tracepoint): Delete references to
4854 'tracepoint_list' and 'stepping_list'.
4855
6e2048d3
TT
48562013-06-25 Tom Tromey <tromey@redhat.com>
4857
4858 * common/create-version.sh (date): Use "$", not "$$" in sed
4859 expression.
4860
42059f0e
KB
48612013-06-25 Kevin Buettner <kevinb@redhat.com>
4862
4863 * NEWS (New targets): Add entry for TI MSP430.
4864
a0743c90
YQ
48652013-06-25 Yao Qi <yao@codesourcery.com>
4866
4867 * remote.c (remote_start_remote): Move code to upload tsv
4868 earlier.
4869
9d6e6e84
HZ
48702013-06-25 Yao Qi <yao@codesourcery.com>
4871 Hui Zhu <hui@codesourcery.com>
4872 Pedro Alves <palves@redhat.com>
4873
4874 PR breakpoints/15075
4875 PR breakpoints/15434
4876 * breakpoint.c (bpstat_stop_status): Call
4877 b->ops->after_condition_true.
4878 (update_dprintf_command_list): Don't append "continue" command
4879 to the command list of dprintf breakpoint.
4880 (base_breakpoint_after_condition_true): New function.
4881 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4882 (dprintf_after_condition_true): New function.
4883 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4884 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4885
586cf749
KB
48862013-06-24 Kevin Buettner <kevinb@redhat.com>
4887
4888 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4889 (ALLDEPFILES): Add msp430-tdep.c.
4890 * configure.tgt (msp430*-*-elf): New target.
4891 * msp430-tdep.c: New file.
4892
1bbce132
MR
48932013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4894
4895 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4896 microMIPS synthetic symbols.
4897
3e5d3a5a
MR
48982013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4899
4900 * objfiles.h (pc_in_section): New prototype.
4901 (in_plt_section): Remove name argument, replace prototype with
4902 static inline function.
4903 * mips-tdep.h: Include "objfiles.h".
4904 (in_mips_stubs_section): New function.
4905 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4906 in_solib_call_trampoline member.
4907 (hppa_in_solib_call_trampoline): Remove name argument.
4908 * objfiles.c (pc_in_section): New function.
4909 (in_plt_section): Remove function.
4910 * mips-linux-tdep.c: Include "objfiles.h".
4911 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4912 name argument. Return 1 rather than the low 16-bit halfword of
4913 any instruction examined.
4914 (mips_linux_in_dynsym_resolve_code): Update
4915 mips_linux_in_dynsym_stub call accordingly.
4916 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4917 rather than an equivalent hand-coded sequence.
4918 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4919 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4920 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4921 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4922 in_opd_section.
4923 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4924 on call to tdep->in_solib_call_trampoline.
4925 (hppa_in_solib_call_trampoline): Remove name argument, update
4926 according to in_plt_section change.
4927 (hppa_skip_trampoline_code): Update according to in_plt_section
4928 change.
4929 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4930 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4931 Likewise.
4932 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4933 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4934 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4935 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4936 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4937 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4938 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4939 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4940 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4941 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4942 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4943 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4944 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4945
b9b26a16
JB
49462013-06-24 Joel Brobecker <brobecker@adacore.com>
4947
4948 * common/create-version.sh: Fix expansion of $host_alias
4949 and $target_alias in generation of HOST_NAME and TARGET_NAME
4950 (resp.).
4951
01208463
TT
49522013-06-24 Tom Tromey <tromey@redhat.com>
4953
4954 * common/create-version.sh: New file.
4955 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4956 create-version.sh.
4957 (HFILES_NO_SRCDIR): Use common/version.h.
4958 * version.in: Move to ...
4959 * common/version.in: ... here. Replace date with "DATE".
4960 * version.h: Move to ...
4961 * common/version.h: ... here.
4962
bb6b9a5e
JB
49632013-06-21 Joel Brobecker <brobecker@adacore.com>
4964
4965 * gdb/gnulib/Makefile.in: Update date in copyright header.
4966 * gdb/gnulib/configure.ac: Ditto.
4967 * gdb/gnulib/update-gnulib.sh: Ditto.
4968
c3b18ee7
JB
49692013-06-21 Joel Brobecker <brobecker@adacore.com>
4970
4971 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4972 "gdb/gnulib/import".
4973
85d3b769
WN
49742013-06-21 Will Newton <will.newton@linaro.org>
4975
4976 * doublest.c (ldfrexp): Remove function.
4977 (convert_doublest_to_floatformat): Call frexpl instead of
4978 ldfrexp.
4979
88b48903
WN
49802013-06-21 Will Newton <will.newton@linaro.org>
4981
4982 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4983 * gnulib/aclocal.m4: Regenerate.
4984 * gnulib/config.in: Regenerate.
4985 * gnulib/configure: Regenerate.
4986 * gnulib/import/Makefile.am: Update.
4987 * gnulib/import/Makefile.in: Update.
4988 * gnulib/import/m4/gnulib-cache.m4: Update.
4989 * gnulib/import/m4/gnulib-comp.m4: Update.
4990 * gnulib/import/float+.h: Import.
4991 * gnulib/import/float.c: Import.
4992 * gnulib/import/float.in.h: Import.
4993 * gnulib/import/fpucw.h: Import.
4994 * gnulib/import/frexp.c: Import.
4995 * gnulib/import/frexpl.c: Import.
4996 * gnulib/import/isnan.c: Import.
4997 * gnulib/import/isnand-nolibm.h: Import.
4998 * gnulib/import/isnand.c: Import.
4999 * gnulib/import/isnanl-nolibm.h: Import.
5000 * gnulib/import/isnanl.c: Import.
5001 * gnulib/import/itold.c: Import.
5002 * gnulib/import/m4/exponentd.m4: Import.
5003 * gnulib/import/m4/exponentl.m4: Import.
5004 * gnulib/import/m4/float_h.m4: Import.
5005 * gnulib/import/m4/fpieee.m4: Import.
5006 * gnulib/import/m4/frexp.m4: Import.
5007 * gnulib/import/m4/frexpl.m4: Import.
5008 * gnulib/import/m4/isnand.m4: Import.
5009 * gnulib/import/m4/isnanl.m4: Import.
5010 * gnulib/import/m4/math_h.m4: Import.
5011 * gnulib/import/math.c: Import.
5012 * gnulib/import/math.in.h: Import.
5013
4353c9e6
JK
50142013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5015
5016 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5017 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5018 signature_INTEL_edx comparisons.
5019
e3e06db3
DE
50202013-06-20 Doug Evans <dje@google.com>
5021
6ac97d4c
DE
5022 symtab/15652
5023 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5024 All callers updated.
5025 (open_dwp_file): If we can't find the dwp file, search the basename
5026 in debug-file-directory.
5027
93417882
DE
5028 * dwarf2read.c (struct dwp_file): Fix comment.
5029 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5030
e3e06db3
DE
5031 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5032 better.
5033
0878d0fa
YQ
50342013-06-20 Yao Qi <yao@codesourcery.com>
5035
5036 * breakpoint.c (create_breakpoint): Fix code indentation.
5037
023fa29b
YQ
50382013-06-20 Yao Qi <yao@codesourcery.com>
5039
5040 * breakpoint.c (create_breakpoints_sal_default): Remove
5041 parameter 'lsal'. Update declaration.
5042 (bkpt_create_breakpoints_sal): Caller update.
5043 (tracepoint_create_breakpoints_sal): Likewise.
5044
c898adb7
YQ
50452013-06-20 Pedro Alves <pedro@codesourcery.com>
5046 Yao Qi <yao@codesourcery.com>
5047
5048 * NEWS: Mention the new option '--skip-unavailable' of command
5049 -data-list-register-values.
5050 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5051 --skip-unavailable option. Adjust to use output_register.
5052 (output_register): Add new 'skip_unavailable' parameter.
5053 Handle it.
5054
4d157a3d
MF
50552013-06-19 Mike Frysinger <vapier@gentoo.org>
5056
5057 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5058 common/i386-gcc-cpuid.h.
5059 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5060 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5061 Copy the latest version from upstream gcc.
5062 * common/linux-btrace.c: Include i386-cpuid.h.
5063 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5064 call to i386_cpuid.
5065 (cpu_supports_btrace): Likewise.
5066 * go32-nat.c: Include i386-cpuid.h.
5067 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5068
1ce4db08
DE
50692013-06-19 Doug Evans <dje@google.com>
5070
5071 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5072 (get_section_index): Ditto.
5073
0e4777df
TT
50742013-06-19 Tom Tromey <tromey@redhat.com>
5075
5076 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5077 "dprintf" help.
5078
3190f0c6
DE
50792013-06-18 Doug Evans <dje@google.com>
5080
5081 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5082 before using it.
5083 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5084 Move test of cu_index closer to use. Print complaint if cu_index
5085 is bad.
5086
8b89a20a
JB
50872013-06-18 Joel Brobecker <brobecker@adacore.com>
5088
5089 * machoread.c (oso_vector): Delete this global.
5090 (macho_register_oso): Add new parameter "oso_vector_ptr".
5091 Use it instead of the "oso_vector" global.
5092 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5093 (macho_symfile_read): Use a local oso_vector, to be free'ed
5094 at the end of this function, in place of the old "oso_vector"
5095 global. Update various function calls accordingly. Use one
5096 single cleanup chain for the entire function.
5097
59b0c7c1
JB
50982013-06-18 Joel Brobecker <brobecker@adacore.com>
5099
937c708c 5100 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5101 DWARF2_PER_OBJFILE by uses of DATA instead.
5102
427cd150
TT
51032013-06-18 Tom Tromey <tromey@redhat.com>
5104
5105 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5106 argument.
5107 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5108 Special case signals other than GDB_SIGNAL_TRAP.
5109 (explains_signal_watchpoint): New function.
5110 (base_breakpoint_explains_signal): Add 'sig' argument.
5111 (initialize_breakpoint_ops): Set 'explains_signal' method for
5112 watchpoints.
5113 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5114 signal argument.
5115 (bpstat_explains_signal): Likewise.
5116 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5117
2d57700b
TT
51182013-06-18 Tom Tromey <tromey@redhat.com>
5119
5120 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5121
ac475191
TT
51222013-06-18 Tom Tromey <tromey@redhat.com>
5123
5124 * python/python.c (finish_python_initialization): Decref
5125 'pythondir' on failure path as well.
5126
5bd1ef56
TT
51272013-06-18 Tom Tromey <tromey@redhat.com>
5128
5129 PR symtab/15391:
5130 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5131 after taking bits_to_skip into account. Sign extend byte_offset.
5132 * utils.h (gdb_sign_extend): Declare.
5133 * utils.c (gdb_sign_extend): New function.
5134
92fac807
JK
51352013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5136
5137 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5138
2d503272
PM
51392013-06-17 Pierre Muller <muller@sourceware.org>
5140
5141 * corelow.c (core_open): Print GDB signal name instead of target
5142 signal number.
5143
6916fd98
MF
51442013-06-17 Mike Frysinger <vapier@gentoo.org>
5145
5146 * .gitignore: Add /gcore.
5147
9c02c129
DE
51482013-06-13 Doug Evans <dje@google.com>
5149
5150 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5151 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5152
d0548fa2
PM
51532013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5154
5155 * stack.c (backtrace_command_1): Fix indentation.
5156
22128028
JB
51572013-06-11 Joel Brobecker <brobecker@adacore.com>
5158
5159 * window-nat.c (thread_rec): Add missing empty line after
5160 local variable declaration.
5161
2ed3e009
JB
51622013-06-11 Joel Brobecker <brobecker@adacore.com>
5163
5164 * windows-nat.c (thread_rec): Revert format used to print
5165 error code returned by SuspendThread from %d back to %u.
5166
0c3d84be
JB
51672013-06-11 Joel Brobecker <brobecker@adacore.com>
5168
5169 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5170 ID in debug trace.
5171 (get_windows_debug_event): Likewise, for all debug traces.
5172
80e88e1a
JB
51732013-06-11 Joel Brobecker <brobecker@adacore.com>
5174
5175 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5176 warning message.
5177
1edebdbf
YQ
51782013-06-08 Pedro Alves <pedro@codesourcery.com>
5179 Yao Qi <yao@codesourcery.com>
5180
5181 * mi/mi-main.c (get_register): Remove declaration.
5182 (output_register): Declare.
5183 (mi_cmd_data_list_register_values): Remove local variable
5184 'tuple_cleanup'. Move some code into output_register.
5185 (get_register): Renamed to ...
5186 (output_register): ... this. Output the register's
5187 "number" ui_out tuple here.
5188
47d48711
PA
51892013-06-07 Pedro Alves <palves@redhat.com>
5190
5191 * darwin-nat.c: Fix formating in copyright header.
5192 * darwin-nat.h: Likewise.
5193 * gnu-nat.c: Likewise.
5194 * machoread.c: Likewise.
5195
3aee8918
PA
51962013-06-07 Pedro Alves <palves@redhat.com>
5197
5f2b57b5 5198 PR server/14823
3aee8918
PA
5199 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5200 static. Output a global target description pointer.
5201 (init_registers_${name}): Adjust to initialize a
5202 target description structure.
5203
fe8400b4
WN
52042013-06-07 Will Newton <will.newton@linaro.org>
5205
5206 * printcmd.c (build_address_symbolic): Call
5207 gdbarch_addr_bits_remove for text minimal symbols.
5208
20df6206
WN
52092013-06-07 Will Newton <will.newton@linaro.org>
5210
5211 * MAINTAINERS: Add myself to Write After Approval.
5212
aef525cb
YQ
52132013-06-07 Yao Qi <yao@codesourcery.com>
5214
5215 * tracepoint.c (start_tracing): Move code to ...
5216 (trace_reset_local_state): ... here. New.
5217 (disconnect_tracing): Don't call set_current_traceframe,
5218 set_tracepoint_num, and set_traceframe_context. Call
5219 trace_reset_local_state instead.
5220 (tfile_close): Call trace_reset_local_state.
5221 * ctf.c (ctf_close): Likewise.
5222 * remote.c (remote_close): Likewise.
5223 * tracepoint.h (trace_reset_local_state): Declare.
5224
d2415c6c
DE
52252013-06-06 Doug Evans <dje@google.com>
5226
5227 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5228 and fix header docs.
5229
69fc87c2
DE
52302013-06-05 Doug Evans <dje@google.com>
5231 Keith Seitz <keiths@redhat.com>
5232
5233 PR 15519
5234 * cp-namespace.c (find_symbol_in_baseclass): Call
5235 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5236 Check result of call to lookup_symbol_static.
5237 Call lookup_static_symbol_aux unconditionally.
5238 Call check_typedef on base types before accessing them.
5239 (cp_lookup_nested_symbol): Fix comment.
5240
a513d1e8
LM
52412013-06-05 Luis Machado <lgustavo@codesourcery.com>
5242
5243 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5244 minimal symbols pointing to function descriptors.
5245
351a6f02
TT
52462013-06-05 Tom Tromey <tromey@redhat.com>
5247
5248 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5249
5e1b953b 52502013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5251 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5252
5253 * remote.c (remote_wait_as): Restore signal handler before returning
5254 when GDB gets a notification.
5255
f9e14852
GB
52562013-06-04 Gary Benson <gbenson@redhat.com>
5257
8445cbf1 5258 PR 2328
f9e14852
GB
5259 * breakpoint.h (handle_solib_event): Moved function declaration
5260 to solib.h.
5261 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5262 (bpstat_stop_status): Pass new argument to handle_solib_event.
5263 * solib.h (update_solib_breakpoints): New function declaration.
5264 (handle_solib_event): Moved function declaration from
5265 breakpoint.h.
5266 * solib.c (update_solib_breakpoints): New function.
5267 (handle_solib_event): Moved function from breakpoint.c.
5268 Updated to call solib_ops->handle_event if not NULL.
5269 * solist.h (target_so_ops): New fields "update_breakpoints" and
5270 "handle_event".
5271 * infrun.c (set_stop_on_solib_events): New function.
5272 (_initialize_infrun): Use the above for "set
5273 stop-on-solib-events".
5274 (handle_inferior_event): Pass new argument to handle_solib_event.
5275 * solib-svr4.c (probe.h): New include.
5276 (svr4_free_library_list): New forward declaration.
5277 (probe_action): New enum.
5278 (probe_info): New struct.
5279 (probe_info): New static variable.
5280 (NUM_PROBES): New definition.
5281 (svr4_info): New fields "using_xfer", "probes_table" and
5282 "solib_list".
5283 (free_probes_table): New function.
5284 (free_solib_list): New function.
5285 (svr4_pspace_data_cleanup): Free probes table and solib list.
5286 (svr4_copy_library_list): New function.
5287 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5288 (svr4_read_so_list): New parameter "prev_lm".
5289 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5290 (svr4_current_sos): New function.
5291 (probe_and_action): New struct.
5292 (hash_probe_and_action): New function.
5293 (equal_probe_and_action): Likewise.
5294 (register_solib_event_probe): Likewise.
5295 (solib_event_probe_at): Likewise.
5296 (solib_event_probe_action): Likewise.
5297 (solist_update_full): Likewise.
5298 (solist_update_incremental): Likewise.
5299 (disable_probes_interface_cleanup): Likewise.
5300 (svr4_handle_solib_event): Likewise.
5301 (svr4_update_solib_event_breakpoint): Likewise.
5302 (svr4_update_solib_event_breakpoints): Likewise.
5303 (svr4_create_solib_event_breakpoints): Likewise.
5304 (enable_break): Free probes table before creating breakpoints.
5305 Use svr4_create_solib_event_breakpoints to create breakpoints.
5306 (svr4_solib_create_inferior_hook): Free the solib list.
5307 (_initialize_svr4_solib): Initialise
5308 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5309
ced63ec0
GB
53102013-06-04 Gary Benson <gbenson@redhat.com>
5311
5312 * target.h (target_ops): New field
5313 "to_augmented_libraries_svr4_read".
5314 (target_augmented_libraries_svr4_read): New macro.
5315 * target.c (update_current_target): Handle
5316 to_augmented_libraries_svr4_read.
5317 * remote.c (remote_state): New field
5318 "augmented_libraries_svr4_read".
5319 (remote_augmented_libraries_svr4_read_feature): New function.
5320 (remote_protocol_features): Add entry for
5321 "augmented-libraries-svr4-read".
5322 (remote_augmented_libraries_svr4_read): New function.
5323 (init_remote_ops): Initialize
5324 remote_ops.to_augmented_libraries_svr4_read.
5325
7f91dbec
GB
53262013-06-04 Gary Benson <gbenson@redhat.com>
5327
5328 * NEWS: Update.
5329
607ece04
GB
53302013-06-04 Gary Benson <gbenson@redhat.com>
5331
5332 * objfiles.h (inhibit_section_map_updates): New function
5333 declaration.
5334 (resume_section_map_updates): Likewise.
5335 (resume_section_map_updates_cleanup): Likewise.
5336 * objfiles.c (objfile_pspace_info): Removed field
5337 "objfiles_changed_p". New fields "new_objfiles_available",
5338 "section_map_dirty" and "inhibit_updates".
5339 (allocate_objfile): Set new_objfiles_available.
5340 (free_objfile): Set section_map_dirty.
5341 (objfile_relocate1): Likewise.
5342 (in_plt_section): Likewise.
5343 (find_pc_section): Update the conditions under which the
5344 section map will be updated.
5345 (inhibit_section_map_updates): New function.
5346 (resume_section_map_updates): Likewise.
5347 (resume_section_map_updates_cleanup): Likewise.
5348
9ee6a5ac
GB
53492013-06-04 Gary Benson <gbenson@redhat.com>
5350
5351 * probe.h (get_probe_argument_count): New declaration.
5352 (evaluate_probe_argument): Likewise.
5353 * probe.c (get_probe_argument_count): New function.
5354 (evaluate_probe_argument): Likewise.
5355 (probe_safe_evaluate_at_pc): Use the above new functions.
5356
845d4708
AM
53572013-06-04 Alan Modra <amodra@gmail.com>
5358
5359 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5360 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5361 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5362 target mem reads on optional insns.
5363 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5364 ppc_insns_match_pattern calls.
5365 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5366 Add match for power7 thread safety insns, and new order of
5367 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5368 invocation in comment, and update rest of comment.
5369 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5370 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5371 (ppc64_standard_linkage2_target): Update insn offsets.
5372 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5373 stubs first. Update calls.
5374
404e278f
YQ
53752013-06-04 Yao Qi <yao@codesourcery.com>
5376
5377 * solib.c (solib_find): Don't need dir separator if path has
5378 drive spec.
5379
f6aea118
JB
53802013-06-03 Joel Brobecker <brobecker@adacore.com>
5381
5382 Revert (indirectly causes a SIGSEGV):
5383 * machoread.c (macho_symfile_read): Assign first cleanup to
5384 'back_to'.
5385
87967e27
YQ
53862013-06-03 Yao Qi <yao@codesourcery.com>
5387
5388 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5389 mi-parse.c. Make them static.
5390 (mi_all_values): Likewise.
5391 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5392 mi_parse_print_values. Make it external.
5393 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5394 Remove the declarations.
5395 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5396 * mi/mi-parse.h (mi_parse_print_values): Declare.
5397 * mi/mi-cmd-stack.c: Include mi-parse.h.
5398 (parse_print_values): Remove
5399 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5400 of parse_print_values.
5401 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5402
3ca73e0c
YQ
54032013-05-31 Pedro Alves <pedro@codesourcery.com>
5404 Yao Qi <yao@codesourcery.com>
5405
5406 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5407 (encode_actions): Move code to ...
5408 (all_tracepoint_actions_and_cleanup): ... here. New.
5409 (trace_dump_command): Likewise.
5410
4e993a19
TT
54112013-05-30 Tom Tromey <tromey@redhat.com>
5412
5413 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5414
e3b76b4f
TT
54152013-05-30 Tom Tromey <tromey@redhat.com>
5416
5417 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5418 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5419 'old_chain' argument. Add 'parser_result' argument.
5420 (gdb_xml_create_parser_and_cleanup): Remove old version.
5421 (gdb_xml_parse_quick): Update.
5422 (xml_process_xincludes): Update.
5423 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5424 declare.
5425
db26349c
TT
54262013-05-30 Tom Tromey <tromey@redhat.com>
5427
5428 * probe.c (collect_probes): Check arguments for NULL before
5429 calling compile_rx_or_error.
5430 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5431 Remove NULL return.
5432
77f9e713
TT
54332013-05-30 Tom Tromey <tromey@redhat.com>
5434
5435 * infrun.c (adjust_pc_after_break): Introduce an outer null
5436 cleanup.
5437
45475de7
TT
54382013-05-30 Tom Tromey <tromey@redhat.com>
5439
5440 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5441
ac5007fd
TT
54422013-05-30 Tom Tromey <tromey@redhat.com>
5443
5444 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5445 for 'old_chain'. Do not check 'head' before processing
5446 cleanups.
5447
cd82eddc
TT
54482013-05-30 Tom Tromey <tromey@redhat.com>
5449
5450 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5451 "cleanup_tuple".
5452
57cee33a
TT
54532013-05-30 Tom Tromey <tromey@redhat.com>
5454
5455 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5456 inner scope. Unconditionally call do_cleanups.
5457
795d915c
TT
54582013-05-30 Tom Tromey <tromey@redhat.com>
5459
5460 * source.c (find_and_open_source): Call do_cleanups.
5461
1fc3cf4a
TT
54622013-05-30 Tom Tromey <tromey@redhat.com>
5463
5464 * linux-thread-db.c (thread_db_load_search): Unconditionally
5465 call do_cleanups.
5466
e35ac9bf
TT
54672013-05-30 Tom Tromey <tromey@redhat.com>
5468
5469 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5470 for 'cleanup'; instead use a later one.
5471
f3300387
TT
54722013-05-30 Tom Tromey <tromey@redhat.com>
5473
5474 * python/py-breakpoint.c (bppy_get_commands): Use
5475 explicit, unconditional return.
5476 * python/py-frame.c (frapy_read_var): Likewise.
5477 * python/python.c (gdbpy_decode_line): Likewise.
5478
c27e16e3
TT
54792013-05-30 Tom Tromey <tromey@redhat.com>
5480
5481 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5482 do_cleanups on all return paths.
5483
5ae85e44
TT
54842013-05-30 Tom Tromey <tromey@redhat.com>
5485
5486 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5487
73b8d9da
TT
54882013-05-30 Tom Tromey <tromey@redhat.com>
5489
5490 * stabsread.c (read_struct_type): Call do_cleanups along
5491 all return paths.
5492
7d266584
MR
54932013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5494
5495 * mips-linux-tdep.c: Adjust formatting throughout.
5496
0f900f54
TT
54972013-05-30 Tom Tromey <tromey@redhat.com>
5498
5499 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5500 along all return paths.
5501
a991ac28
TT
55022013-05-30 Tom Tromey <tromey@redhat.com>
5503
5504 * symfile.c (find_separate_debug_file): Call do_cleanups
5505 along all return paths.
5506
1abaf042
TT
55072013-05-30 Tom Tromey <tromey@redhat.com>
5508
5509 * symtab.c (search_symbols): Introduce a null cleanup for
5510 'retval_chain'.
5511
edefe1da
TT
55122013-05-30 Tom Tromey <tromey@redhat.com>
5513
5514 * python/py-value.c (valpy_binop): Call do_cleanups before
5515 exiting loop.
5516
54f72dcc
TT
55172013-05-30 Tom Tromey <tromey@redhat.com>
5518
5519 * python/py-prettyprint.c (print_children): Remove extra
5520 do_cleanups call.
5521
af1c6971
TT
55222013-05-30 Tom Tromey <tromey@redhat.com>
5523
5524 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5525 all return paths.
5526
b862ce75
TT
55272013-05-30 Tom Tromey <tromey@redhat.com>
5528
5529 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5530 along all return paths.
5531
e12fefc8
TT
55322013-05-30 Tom Tromey <tromey@redhat.com>
5533
5534 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5535 call do_cleanups.
5536
4867f990
TT
55372013-05-30 Tom Tromey <tromey@redhat.com>
5538
5539 * varobj.c (c_value_of_root): Call do_cleanups along all
5540 return paths.
5541
4fd2d6af
TT
55422013-05-30 Tom Tromey <tromey@redhat.com>
5543
5544 * tracepoint.c (trace_dump_command): Unconditionally call
5545 do_cleanups.
5546
752eb8b4
TT
55472013-05-30 Tom Tromey <tromey@redhat.com>
5548
5549 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5550 do_cleanups earlier.
5551
e42d0aa5
TT
55522013-05-30 Tom Tromey <tromey@redhat.com>
5553
5554 * machoread.c (macho_symfile_read): Assign first cleanup to
5555 'back_to'.
5556
4bbc010a
TT
55572013-05-30 Tom Tromey <tromey@redhat.com>
5558
5559 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5560
b9635925
TT
55612013-05-30 Tom Tromey <tromey@redhat.com>
5562
5563 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5564
25f43500
TT
55652013-05-30 Tom Tromey <tromey@redhat.com>
5566
5567 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5568 call discard_cleanups.
5569 (inf_ptrace_attach): Likewise.
5570
d6a2e54a
TT
55712013-05-30 Tom Tromey <tromey@redhat.com>
5572
5573 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5574 return paths.
5575 (mips_initialize): Likewise.
5576 (common_open): Call do_cleanups.
5577
48be7c1b
TT
55782013-05-30 Tom Tromey <tromey@redhat.com>
5579
5580 * utils.c (internal_vproblem): Call do_cleanups.
5581
e61727ab
TT
55822013-05-30 Tom Tromey <tromey@redhat.com>
5583
5584 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5585
b81b921f
TT
55862013-05-30 Tom Tromey <tromey@redhat.com>
5587
5588 * cli/cli-script.c (setup_user_args): Don't return after error.
5589
fe48dfb1
TT
55902013-05-30 Tom Tromey <tromey@redhat.com>
5591
5592 * somread.c (som_symtab_read): Call do_cleanups.
5593
27833de7
TT
55942013-05-30 Tom Tromey <tromey@redhat.com>
5595
5596 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5597
5b3fca71
TT
55982013-05-30 Tom Tromey <tromey@redhat.com>
5599
5600 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5601 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5602 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5603 * source.c (show_substitute_path_command): Call do_cleanups.
5604 (unset_substitute_path_command, set_substitute_path_command):
5605 Likewise.
5606 * symfile.c (load_command): Call do_cleanups.
5607
af83e3f8
TT
56082013-05-30 Tom Tromey <tromey@redhat.com>
5609
5610 * contrib/cleanup_check.py: New file.
5611 * contrib/gcc-with-excheck: Add option parsing.
5612
564eac42
JB
56132013-05-30 Joel Brobecker <brobecker@adacore.com>
5614
5615 * windows-nat.c (windows_delete_thread): Add missing space
5616 in cast expression.
5617
47902076
HAQ
56182013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5619
5620 * inferior.c (top level): Include tilde.h.
5621 (add_inferior_command): Call tilde_expand on the value of 'exec'
5622 argument.
5623
23da373a
YQ
56242013-05-30 Pedro Alves <pedro@codesourcery.com>
5625 Yao Qi <yao@codesourcery.com>
5626
5627 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5628 Caller update.
5629 (encode_actions): Likewise.
5630 * remote.c (remote_download_tracepoint): Caller update.
5631 * tracepoint.h (encode_actions): Update declaration.
5632
a6e6f791
PA
56332013-05-30 Pedro Alves <palves@redhat.com>
5634
5635 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5636 pointer.
5637
36d25514
YQ
56382013-05-30 Yao Qi <yao@codesourcery.com>
5639
5640 * remote.c (remote_check_symbols): Remove unused parameter
5641 'objfile'.
5642 Declaration update.
5643 (remote_start_remote, remote_new_objfile): Caller update.
5644
62a813cc
YQ
56452013-05-30 Yao Qi <yao@codesourcery.com>
5646
5647 * mi/mi-cmds.c (mi_cmds): Define MI command
5648 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5649 DEF_MI_CMD_CLI.
5650
28439a30
PA
56512013-05-29 Pedro Alves <palves@redhat.com>
5652
5653 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5654 (remote_insert_watchpoint, remote_remove_watchpoint)
5655 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5656 (remote_verify_memory, compare_sections_command)
5657 (remote_search_memory): Set the general process/thread on the
5658 remote side.
5659
6ac1c082
PA
56602013-05-29 Pedro Alves <palves@redhat.com>
5661
5662 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5663 (_initialize_aarch64_tdep): Don't call
5664 initialize_tdesc_aarch64_without_fpu.
5665 * features/Makefile (WHICH): Remove reference to
5666 aarch64-without-fpu.
5667 * features/aarch64-without-fpu.c: Delete file.
5668 * regformats/aarch64-without-fpu.dat: Delete file.
5669
a73e3634
YQ
56702013-05-28 Yao Qi <yao@codesourcery.com>
5671
5672 * tracepoint.c (stringify_collection_list): Remove parameter
5673 'string'.
5674 (encode_actions): Caller update. Remove local variables.
5675
c0ea94eb
YQ
56762013-05-24 Yao Qi <yao@codesourcery.com>
5677
5678 * tracepoint.c (TFILE_PID): Remove.
5679 (tfile_open): Don't add thread and inferior.
5680 (tfile_close): Don't set 'inferior_ptid'. Don't call
5681 exit_inferior_silent.
5682 (tfile_thread_alive): Remove.
5683 (init_tfile_ops): Don't set field 'to_thread_alive' of
5684 tfile_ops.
5685
20d7f211
DE
56862013-05-23 Doug Evans <dje@google.com>
5687
5688 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5689
8658d16d
PA
56902013-05-23 Pedro Alves <palves@redhat.com>
5691
5692 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5693 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5694 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5695 Only define if HAVE_SOCKETS is defined.
5696 * configure.ac: Check for sys/socket.h.
5697 * config.in, configure: Regenerate.
5698
21aa081e
PA
56992013-05-23 Pedro Alves <palves@redhat.com>
5700
5701 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5702 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5703 printing uint32_t variables.
5704
c2d6af84
PA
57052013-05-23 Pedro Alves <palves@redhat.com>
5706
5707 * NEWS: Mention GDBserver range stepping support.
5708
c1e36e3e
PA
57092013-05-23 Yao Qi <yao@codesourcery.com>
5710 Pedro Alves <palves@redhat.com>
5711
5712 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5713 field.
5714 * infcmd.c (step_once, until_next_command): Enable range stepping.
5715 * infrun.c (displaced_step_prepare): Disable range stepping.
5716 (resume): Disable range stepping if stepping over a breakpoint or
5717 we have software watchpoints. If range stepping is enabled,
5718 assert the thread is in the stepping range.
5719 (clear_proceed_status_thread): Clear may_range_step.
5720 (handle_inferior_event): Disable range stepping as soon as we know
5721 the thread that hit the event. Re-enable it whenever we're going
5722 to step with a step range.
5723 * remote.c (struct vCont_action_support) <r>: New field.
5724 (use_range_stepping): New global.
5725 (remote_vcont_probe): Handle 'r' action.
5726 (append_resumption): Append an 'r' action if the thread may range
5727 step.
5728 (show_range_stepping): New function.
5729 (set_range_stepping): New function.
5730 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5731 'set range-stepping' and 'show range-stepping' commands.
5732 * NEWS: Mention range stepping, the new vCont;r action, and the
5733 new "set/show range-stepping" commands.
5734
d458bd84
PA
57352013-05-23 Yao Qi <yao@codesourcery.com>
5736 Pedro Alves <palves@redhat.com>
5737
5738 * remote.c (struct vCont_action_support): New struct.
5739 (struct remote_state) <support_vCont_t>: Remove field.
5740 <vCont_actions_support>: New field.
5741 (remote_vcont_probe, remote_stop_ns): Update.
5742
ce4c476a
PA
57432013-05-23 Yao Qi <yao@codesourcery.com>
5744 Pedro Alves <palves@redhat.com>
5745
5746 * gdbthread.h (pc_in_thread_step_range): New declaration.
5747 * thread.c (pc_in_thread_step_range): New function.
5748 * infrun.c (handle_inferior_event): Use it.
5749
ce70887a
JB
57502013-05-23 Joel Brobecker <brobecker@adacore.com>
5751
5752 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5753 of sprintf.
5754
55b87a52
KS
57552013-05-22 Keith Seitz <keiths@redhat.com>
5756
5757 * ada-lang.c (is_known_support_routine): Add explicit free of
5758 'func_name' from find_frame_funname.
5759 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5760 for func_name from find_frame_funname.
5761 * python/py-frame.c (frapy_name): Add explicit free of
5762 'name' from find_frame_funname.
5763 * stack.c (find_frame_funname): Add comment explaining that
5764 funcp must be freed by the caller.
5765 Return copy of symbol names instead of pointers.
5766 (print_frame): Add a cleanup for 'funname' from
5767 find_frame_funname.
5768 * stack.h (find_frame_funname): Remove "const" from
5769 'funname' parameter.
5770
5f2e6b00
TT
57712013-05-22 Tom Tromey <tromey@redhat.com>
5772
5773 PR c++/15401:
5774 * c-valprint.c (c_value_print): Use value_addr for
5775 references. Convert back to reference type with value_ref.
5776
d85c4847
EZ
57772013-05-22 Eli Zaretskii <eliz@gnu.org>
5778
5779 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5780 unloaded DLL, it will be done by handle_solib_event. See
5781 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5782 details.
5783
54eb231c
PM
57842013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5785
5786 * ui-out.c: Create typedef ui_out_level_p and define vector
5787 operations for that type.
5788 (struct ui_out): Use a vector instead of an array.
5789 (current_level): Return level from a vector.
5790 (push_level): Create a level in a vector.
5791 (pop_level): Delete a level in a vector.
5792 (ui_out_new): Create initial level zero level, and store in a
5793 vector.
5794 (ui_out_destroy): Add vector cleanup.
5795
ac90359c
PA
57962013-05-22 Pedro Alves <palves@redhat.com>
5797
5798 * python/python-internal.h (gdb_Py_DECREF): Tag with
5799 "ARI: editCase function".
5800
6dcc1893
PP
58012013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5802
5803 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5804
c8c735b9
PA
58052013-05-21 Pedro Alves <palves@redhat.com>
5806
5807 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5808 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5809 * python/py-utils.c (py_decref): Don't check for NULL before
5810 calling Py_DECREF.
5811
1915daeb
PA
58122013-05-21 Pedro Alves <palves@redhat.com>
5813
5814 * python/py-utils.c (py_decref): Remove extra braces.
5815 (gdb_pymodule_addobject): Remove extra braces.
5816 * python-internal.h (gdb_Py_DECREF): New static inline function.
5817 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5818
bd9673a4
PW
58192013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5820
5821 * breakpoints.c (detach_breakpoints): Do not
5822 detach breakpoints locations with loc_type bp_loc_other.
5823
ff6009d0
JK
58242013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5825
5826 Workaround Python 2.6.
5827 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5828 a block.
5829
3641da11
JK
58302013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 Code cleanup: constification.
5833 * solib.c (solib_ops): Make return type and ops variable type const.
5834 (set_solib_ops): Make the new_ops parameter and ops variable const.
5835 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5836 (solib_add, solib_keep_data_in_core, clear_solib)
5837 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5838 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5839 const.
5840 * solib.h (set_solib_ops): Make the new_ops parameter const.
5841
776af39e
JB
58422013-05-21 Joel Brobecker <brobecker@adacore.com>
5843
5844 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5845 variable.
5846 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5847 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5848 (SYSTEM_GDBINIT_FILES): New variables.
5849 (all): Add stamp-system-gdbinit.
5850 (stamp-system-gdbinit): New rule.
5851 (clean-system-gdbinit, install-system-gdbinit)
5852 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5853 (install-only): Add dependency on install-system-gdbinit.
5854 (uninstall): Add dependency on uninstall-system-gdbinit.
5855 (clean): Add dependency on clean-system-gdbinit.
5856 * system-gdbinit/elinos.py: New file.
5857 * system-gdbinit/wrs-linux.py: New file.
5858
1509e573
JB
58592013-05-21 Joel Brobecker <brobecker@adacore.com>
5860
5861 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5862
c5867ab6
HZ
58632013-05-21 Hui Zhu <hui@codesourcery.com>
5864
5865 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5866 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5867 * mi/mi-cmd-break.c (ctype.h): New include.
5868 (gdb_obstack.h): New include.
5869 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5870 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5871 (mi_cmd_dprintf_insert): New.
5872 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5873 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5874
7d38e38f
TT
58752013-05-20 Tom Tromey <tromey@redhat.com>
5876
5877 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5878
97b77b39
TT
58792013-05-20 Tom Tromey <tromey@redhat.com>
5880
5881 * python/py-value.c (valpy_get_dynamic_type): Simplify
5882 dynamic_type assignment. Use Py_XINCREF.
5883
53e66479
TT
58842013-05-20 Tom Tromey <tromey@redhat.com>
5885
5886 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5887
dcf87832
TT
58882013-05-20 Tom Tromey <tromey@redhat.com>
5889
5890 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5891 (gdbpy_selected_frame): Move object-construction code
5892 out of TRY_CATCH.
5893
aa36459a
TT
58942013-05-20 Tom Tromey <tromey@redhat.com>
5895
5896 * python/py-arch.c (gdbpy_initialize_arch): Use
5897 gdb_pymodule_addobject.
5898 * python/py-block.c (gdbpy_initialize_blocks): Use
5899 gdb_pymodule_addobject.
5900 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5901 gdb_pymodule_addobject.
5902 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5903 gdb_pymodule_addobject.
5904 * python/py-event.c (gdbpy_initialize_event_generic): Use
5905 gdb_pymodule_addobject.
5906 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5907 gdb_pymodule_addobject.
5908 * python/py-evts.c (add_new_registry): Use
5909 gdb_pymodule_addobject.
5910 (gdbpy_initialize_py_events): Likewise.
5911 * python/py-finishbreakpoint.c
5912 (gdbpy_initialize_finishbreakpoints): Use
5913 gdb_pymodule_addobject.
5914 * python/py-frame.c (gdbpy_initialize_frames): Use
5915 gdb_pymodule_addobject.
5916 * python/py-function.c (gdbpy_initialize_functions): Use
5917 gdb_pymodule_addobject.
5918 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5919 gdb_pymodule_addobject.
5920 * python/py-infthread.c (gdbpy_initialize_thread): Use
5921 gdb_pymodule_addobject.
5922 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5923 gdb_pymodule_addobject.
5924 * python/py-param.c (gdbpy_initialize_parameters): Use
5925 gdb_pymodule_addobject.
5926 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5927 gdb_pymodule_addobject.
5928 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5929 gdb_pymodule_addobject.
5930 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5931 gdb_pymodule_addobject.
5932 * python/py-type.c (gdbpy_initialize_types): Use
5933 gdb_pymodule_addobject.
5934 * python/py-utils.c (gdb_pymodule_addobject): New function.
5935 * python/py-value.c (gdbpy_initialize_values): Use
5936 gdb_pymodule_addobject.
5937 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5938 * python/python.c (_initialize_python): Use
5939 gdb_pymodule_addobject.
5940
3d4a3c3e
TT
59412013-05-20 Tom Tromey <tromey@redhat.com>
5942
5943 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5944 * python/py-param.c (get_set_value, get_show_value): Use
5945 explicit decrefs.
5946 * python/python.c (start_type_printers, apply_type_printers):
5947 Use explicit decrefs.
5948
72ff8829
TT
59492013-05-20 Tom Tromey <tromey@redhat.com>
5950
5951 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5952 incref the module.
5953
02146ba5
TT
59542013-05-20 Tom Tromey <tromey@redhat.com>
5955
5956 * python/python.c (gdbpy_run_events): Decref the result
5957 of PyObject_CallObject.
5958
33ee792f
TT
59592013-05-20 Tom Tromey <tromey@redhat.com>
5960
5961 * python/py-symtab.c (set_sal): Use
5962 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5963 (symtab_and_line_to_sal_object): Update.
5964
fcb49fc8
TT
59652013-05-20 Tom Tromey <tromey@redhat.com>
5966
5967 * python/py-param.c (compute_enum_values): Decref 'item'.
5968
0646da15
TT
59692013-05-20 Tom Tromey <tromey@redhat.com>
5970
5971 * mi/mi-main.c: Include python-internal.h.
5972 (mi_cmd_list_features): Check gdb_python_initialized.
5973 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5974 (python_inferior_exit, python_new_objfile, add_thread_object)
5975 (delete_thread_object, py_free_inferior): Check
5976 gdb_python_initialized.
5977 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5978 gdb_python_initialized.
5979 * python/py-type.c (save_objfile_types): Check
5980 gdb_python_initialized.
5981 * python/python-internal.h (gdb_python_initialized): Declare.
5982 * python/python.c (ensure_python_env): Throw exception if
5983 Python not initialized.
5984 (before_prompt_hook, source_python_script_for_objfile)
5985 (start_type_printers, apply_type_printers,
5986 free_type_printers): Check gdb_python_initialized.
5987 * varobj.c (varobj_get_display_hint)
5988 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5989 (install_new_value_visualizer, varobj_set_visualizer)
5990 (value_get_print_value): Check gdb_python_initialized.
5991
999633ed
TT
59922013-05-20 Tom Tromey <tromey@redhat.com>
5993
5994 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5995 Check errors.
5996 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5997 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5998 Check errors.
5999 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6000 Check errors.
6001 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6002 Check errors.
6003 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6004 Check errors.
6005 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6006 init function to return 'int'.
6007 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6008 Return 'int'. Check errors.
6009 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6010 Check errors.
6011 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6012 Return 'int'. Check errors.
6013 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6014 Check errors.
6015 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6016 Check errors.
6017 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6018 Check errors.
6019 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6020 Check errors.
6021 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6022 Check errors.
6023 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6024 Check errors.
6025 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6026 Check errors.
6027 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6028 Check errors.
6029 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6030 Check errors.
6031 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6032 Check errors.
6033 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6034 Check errors.
6035 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6036 Check errors.
6037 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6038 Check errors.
6039 * python/python-internal.h (gdbpy_initialize_auto_load,
6040 gdbpy_initialize_values, gdbpy_initialize_frames,
6041 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6042 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6043 gdbpy_initialize_blocks, gdbpy_initialize_types,
6044 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6045 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6046 gdbpy_initialize_finishbreakpoints,
6047 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6048 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6049 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6050 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6051 gdbpy_initialize_signal_event,
6052 gdbpy_initialize_breakpoint_event,
6053 gdbpy_initialize_continue_event,
6054 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6055 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6056 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6057 * python/python.c (gdb_python_initialized): New global.
6058 (gdbpy_initialize_events): Return 'int'. Check errors.
6059 (_initialize_python): Check errors. Set
6060 gdb_python_initialized.
6061
18868860
TT
60622013-05-20 Tom Tromey <tromey@redhat.com>
6063
6064 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6065 Decref the reslut of PyObject_CallMethod.
6066
9f4ff0c2
TT
60672013-05-20 Tom Tromey <tromey@redhat.com>
6068
6069 * python/py-event.c (gdbpy_initialize_event_generic): Return
6070 early if PyType_Ready fails.
6071
0d3a2e8a
TT
60722013-05-20 Tom Tromey <tromey@redhat.com>
6073
6074 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6075 as 'default' in the switch.
6076
b86af38a
TT
60772013-05-20 Tom Tromey <tromey@redhat.com>
6078
6079 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6080 get_addr_from_python calls out of TRY_CATCH.
6081 (infpy_write_memory, infpy_search_memory): Likewise.
6082 * python/py-utils.c (get_addr_from_python): Return negative
6083 value on error. Use TRY_CATCH.
6084 * python/python-internal.h (get_addr_from_python): Use
6085 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6086
c127ec58
TT
60872013-05-20 Tom Tromey <tromey@redhat.com>
6088
6089 * python/py-event.c (evpy_emit_event): Decref the
6090 result of PyObject_CallFunctionObjArgs.
6091
ba327838
TT
60922013-05-20 Tom Tromey <tromey@redhat.com>
6093
6094 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6095 Correctly decref.
6096
d8191432
TT
60972013-05-20 Tom Tromey <tromey@redhat.com>
6098
6099 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6100
5d153bd1
TT
61012013-05-20 Tom Tromey <tromey@redhat.com>
6102
6103 * python/py-event.h (gdbpy_initialize_event_generic): Use
6104 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6105 * python/py-evts.c (add_new_registry): Use
6106 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6107 * python/python-internal.h
6108 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6109
56cc411c
TT
61102013-05-20 Tom Tromey <tromey@redhat.com>
6111
6112 * python/py-arch.c (archpy_disassemble): Update.
6113 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6114 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6115 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6116 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6117 macro.
6118 (GDB_PY_HANDLE_EXCEPTION): Update.
6119 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6120
8919e174
TT
61212013-05-20 Tom Tromey <tromey@redhat.com>
6122
6123 * python/python-internal.h (events_object_type): Remove.
6124
9b08f225
TT
61252013-05-20 Tom Tromey <tromey@redhat.com>
6126
f5aee5ee
AM
6127 * python/py-event.h (evpy_emit_event): Use
6128 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6129 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6130 New macro.
9b08f225 6131
f04010ff
TT
61322013-05-20 Tom Tromey <tromey@redhat.com>
6133
6134 * py-evtregistry.c (create_event_object): Decref
6135 eventregistry_object if PyList_New fails.
6136
3919fd96
TT
61372013-05-20 Tom Tromey <tromey@redhat.com>
6138
6139 * py-cmd.c (gdbpy_string_to_argv): Check result of
6140 PyList_New.
6141
0430e8cb
TT
61422013-05-20 Tom Tromey <tromey@redhat.com>
6143
6144 * python/python.c (before_prompt_hook): Add cleanup to
6145 decref 'hook'.
6146
764123e4
TT
61472013-05-20 Tom Tromey <tromey@redhat.com>
6148
6149 * python/py-function.c (fnpy_init): Decref result of
6150 PyObject_GetAttrString.
6151
634c58be
TT
61522013-05-20 Tom Tromey <tromey@redhat.com>
6153
6154 * python/py-threadevent.c (get_event_thread): Use
6155 CPYCHECKER_RETURNS_BORROWED_REF.
6156 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6157 New define.
6158 (pspace_to_pspace_object, objfile_to_objfile_object)
6159 (find_thread_object): Use it.
6160
62eec1a5
TT
61612013-05-20 Tom Tromey <tromey@redhat.com>
6162
6163 * python/py-arch.c (arch_object_type): Use
6164 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6165 * python/py-block.c (block_syms_iterator_object_type):
6166 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6167 * python/py-bpevent.c (breakpoint_event_object_type):
6168 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6169 * python/py-cmd.c (cmdpy_object_type): Use
6170 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6171 * python/py-continueevent.c (continue_event_object_type):
6172 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6173 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6174 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6175 * python/py-events.h (thread_event_object_type):
6176 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6177 * python/py-evtregistry.c (eventregistry_object_type): Use
6178 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6179 * python/py-exitedevent.c (exited_event_object_type):
6180 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6181 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6182 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6183 * python/py-function.c (fnpy_object_type): Use
6184 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6185 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6186 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6187 * python/py-infthread.c (thread_object_type): Use
6188 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6189 * python/py-lazy-string.c (lazy_string_object_type):
6190 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6191 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6192 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6193 * python/py-objfile.c (objfile_object_type): Use
6194 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6195 * python/py-param.c (parmpy_object_type):
6196 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6197 * python/py-progspace.c (pspace_object_type):
6198 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6199 * python/py-signalevent.c (signal_event_object_type):
6200 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6201 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6202 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6203 * python/py-type.c (type_object_type, field_object_type)
6204 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6205 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6206 define.
6207 (value_object_type, block_object_type, symbol_object_type)
6208 (event_object_type, stop_event_object_type, breakpoint_object_type)
6209 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6210
81ea8796
AT
62112013-05-20 Andreas Tobler <andreas@fgznet.ch>
6212
6213 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6214 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6215
a2ce51a0
DE
62162013-05-20 Doug Evans <dje@google.com>
6217
6218 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6219 For Fission.
6220 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6221 reading_dwo_directly.
6222 (struct signatured_type): New member dwo_unit.
6223 (struct die_reader_specs): New member comp_dir.
6224 (create_signatured_type_table_from_index): Use malloc for
6225 all_type_units instead of objfile's obstack.
6226 (create_all_type_units): Ditto.
6227 (fill_in_sig_entry_from_dwo_entry): New function.
6228 (add_type_unit): New function.
6229 (lookup_dwo_signatured_type): New function.
6230 (lookup_dwp_signatured_type): New function.
6231 (lookup_signatured_type): New arg cu. All callers updated.
6232 (init_cu_die_reader): Initialize comp_dir.
6233 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6234 Change assert of matching type signatures to call error on mismatch.
6235 (lookup_dwo_unit): Add assert.
6236 (init_tu_and_read_dwo_dies): New function.
6237 (init_cutu_and_read_dies): Call it.
6238 (build_type_unit_groups): Handle case of no type unit groups created.
6239 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6240 (lookup_dwo_cutu): Tweak complaint.
6241 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6242 (dwarf2_per_objfile_free): Free all_type_units.
6243
a25cd31f
JB
62442013-05-20 Joel Brobecker <brobecker@adacore.com>
6245
6246 * windows-nat.c (handle_unload_dll): Add missing empty line.
6247
4d804846
JB
62482013-05-20 Joel Brobecker <brobecker@adacore.com>
6249
6250 * dwarf2read.c (prototyped_function_p): New function.
6251 (read_subroutine_type): Use it.
6252
1c432e72
JB
62532013-05-20 Joel Brobecker <brobecker@adacore.com>
6254
6255 * rs6000-aix-tdep.c: De-indent some example code provided
6256 as a comment.
6257
4feebbdd
EBM
62582013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6259
6260 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6261 region is ok for a hardware watchpoint using the new ptrace interface
6262 on Power servers.
6263
7d0c9981
DE
62642013-05-17 Doug Evans <dje@google.com>
6265
6266 * NEWS: Mention new maintenance commands check-symtabs, and
6267 expand-symtabs, and renamed check-psymtabs.
6268 * psymtab.c (maintenance_check_psymtabs): Renamed from
6269 maintenance_check_symtabs. Only process already-expanded symbol
6270 tables.
6271 (_initialize_psymtab): Update.
6272 * symmisc.c (maintenance_check_symtabs): New function.
6273 (maintenance_expand_name_matcher): New function
6274 (maintenance_expand_file_matcher): New function
6275 (maintenance_expand_symtabs): New function.
6276 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6277 commands.
6278
6cbc7c3d
TT
62792013-05-17 Tom Tromey <tromey@redhat.com>
6280
6281 * python/py-inferior.c (infpy_read_memory): Don't call
6282 PyErr_SetString if PyObject_New fails.
6283 * python/py-frame.c (frame_info_to_frame_object): Don't call
6284 PyErr_SetString if PyObject_New fails.
6285
a48b32c0
L
62862013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6287
6288 * acinclude.m4: Add check for dlopen in libdl.
6289 * configure.ac: Ditto.
6290 * configure: Regenerate.
6291
3de661e6
PM
62922013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6293
6294 * frame.c (frame_stash): Convert to htab.
6295 (frame_addr_hash): New function.
6296 (frame_addr_hash_eq): New function.
6297 (frame_stash_create): Convert function to create
6298 a hash table.
6299 (frame_stash_add): Convert function to add an entry to a hash
6300 table.
6301 (frame_stash_find): Convert function to search the hash table.
6302 (frame_stash_invalidate): Convert function to empty the hash
6303 table.
6304 (get_frame_id): Only add to stash if a frame_id is created.
6305 (_initialize_frame): Call frame_stash_create.
6306
bb4168a9 63072013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6308
6309 * configure.ac: Ensure MIG is available when building for GNU Hurd
6310 hosts.
6311 * configure: Regenerate.
6312
d1be3247
JB
63132013-05-16 Joel Brobecker <brobecker@adacore.com>
6314
6315 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6316
b8fea896
JB
63172013-05-16 Joel Brobecker <brobecker@adacore.com>
6318
6319 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6320 all cleanups are done before returning from this function.
6321
af880d85
JB
63222013-05-15 Joel Brobecker <brobecker@adacore.com>
6323
6324 * utils.h: #include "exceptions.h".
6325 (enum errors): Remove partial declaration.
6326
356a5233
JB
63272013-05-15 Joel Brobecker <brobecker@adacore.com>
6328
6329 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6330 * gdbarch.h, gdbarch.c: Regenerate.
6331 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6332 handling.
6333
6334 * rs6000-aix-tdep.h: New file.
6335 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6336 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6337 "xml-utils.h".
6338 (struct field_info, struct ld_info_desc): New types.
6339 (ld_info32_desc, ld_info64_desc): New static constants.
6340 (struct ld_info): New type.
6341 (rs6000_aix_extract_ld_info): New function.
6342 (rs6000_aix_shared_library_to_xml): Likewise.
6343 (rs6000_aix_ld_info_to_xml): Likewise.
6344 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6345 (rs6000_aix_init_osabi): Add call to
6346 set_gdbarch_core_xfer_shared_libraries_aix.
6347 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6348 Remove "xml-utils.h" include.
6349 (LdInfo): Delete typedef.
6350 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6351 Delete macros.
6352 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6353 Adjust code accordingly.
6354 (rs6000_core_ldinfo): Delete, folded into
6355 rs6000_aix_core_xfer_shared_libraries_aix.
6356 (rs6000_xfer_shared_library): Delete.
6357 (rs6000_xfer_shared_libraries): Reimplement.
6358
742ce053
MM
63592013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6360
6361 * record.c (record_goto_cmdlist): New.
6362 (cmd_record_goto): Split into this ...
6363 (cmd_record_goto_begin): ... this
6364 (cmd_record_goto_end): ... and this.
6365 (_initialize_record): Change "record goto" to prefix command.
6366 Add commands for "record goto begin" and "record goto end".
6367 Add an alias for "record goto start" to "record goto begin".
6368
e93ba630
JK
63692013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6370
6371 * linespec.c (convert_linespec_to_sals): New comment for
6372 SOURCE_FILENAME assignment.
6373
5821aace
JK
63742013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6375
6376 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6377 internal_warning.
6378
a1b8c4cc
TT
63792013-05-14 Tom Tromey <tromey@redhat.com>
6380
6381 * eval.c (parse_and_eval_long): Make 'exp' const.
6382 * value.h (parse_and_eval_long): Update.
6383
23b3a2c3
TT
63842013-05-14 Tom Tromey <tromey@redhat.com>
6385
6386 * ui-file.c (gdb_fopen): Make arguments const.
6387 * ui-file.h (gdb_fopen): Make arguments const.
6388
ca623f82
TT
63892013-05-14 Tom Tromey <tromey@redhat.com>
6390
6391 * remote.c (remote_set_trace_notes): Make arguments const.
6392 * target.c (update_current_target): Update cast.
6393 * target.h (to_set_trace_notes): Make arguments const.
6394
503ebb2c
TT
63952013-05-14 Tom Tromey <tromey@redhat.com>
6396
6397 * go32-nat.c (go32_terminal_info): Make 'args' const.
6398 * inferior.h (child_terminal_info): Update.
6399 * inflow.c (child_terminal_info): Make 'args' const.
6400 * target.c (default_terminal_info): Make 'args' const.
6401 (debug_to_terminal_save_ours): Likewise.
6402 * target.h (struct target_ops) <to_terminal_info>: Make argument
6403 const.
6404
85e1311a
TT
64052013-05-13 Tom Tromey <tromey@redhat.com>
6406
6407 * gcore.c (create_gcore_bfd): Make 'filename' const.
6408 * gcore.h (create_gcore_bfd): Make 'filename' const.
6409 * record-full.c (record_full_save): Make 'recfilename' const.
6410 * target.c (target_save_record): Make 'filename' const.
6411 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6412 const.
6413 (target_save_record): Likewise.
6414
d62bfeaf
TT
64152013-05-13 Tom Tromey <tromey@redhat.com>
6416
f5aee5ee 6417 PR gdb/15338:
d62bfeaf
TT
6418 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6419 ranges section has been read.
6420
ac1ca910
TT
64212013-05-13 Tom Tromey <tromey@redhat.com>
6422
6423 PR exp/15364:
6424 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6425 STRUCTOP_PTR>: Return a not_lval value for
6426 EVAL_AVOID_SIDE_EFFECTS.
6427 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6428 for EVAL_AVOID_SIDE_EFFECTS.
6429
36d1c68c
JB
64302013-05-13 Joel Brobecker <brobecker@adacore.com>
6431
6432 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6433 floating point registers to register type before storing
6434 value.
6435 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6436 Likewise.
6437
21ff4686
TT
64382013-05-10 Joel Brobecker <brobecker@adacore.com>
6439 Tom Tromey <tromey@redhat.com>
6440
6441 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6442 New functions.
6443 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6444 Declare.
6445 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6446 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6447 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6448 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6449
d3685d60
TT
64502013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6451 Tom Tromey <tromey@redhat.com>
6452
6453 PR build/15414:
6454 * configure: Rebuild.
6455 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6456 with -Wno-format.
6457
eb9fe518
PA
64582013-05-10 Pedro Alves <palves@redhat.com>
6459
6460 * remote.c (_initialize_remote): Fix spelling of
6461 qXfer:traceframe-info:read packet in packet config command.
6462
9779ab84
PA
64632013-05-10 David Taylor <dtaylor@emc.com>
6464
6465 PR remote/15455
6466
6467 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6468 "QTro" at start of packet.
6469
060cfbef
JB
64702013-05-10 Joel Brobecker <brobecker@adacore.com>
6471
6472 * solib-aix.c (solib_aix_relocate_section_addresses):
6473 For the .bss section action, apply the same offset as
6474 the .data section.
6475
ab1c4e88
JB
64762013-05-10 Joel Brobecker <brobecker@adacore.com>
6477
6478 * solib-aix.c (solib_aix_relocate_section_addresses):
6479 Remove FIXME comment.
6480
c1357578
JB
64812013-05-10 Joel Brobecker <brobecker@adacore.com>
6482
6483 PR tdep/15420:
6484 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6485 New functions, directly copied from sparc-sol-thread.c.
6486 * sparc-sol-thread.c: Delete.
6487 * configure.ac: Remove code handling sparc-solaris-thread.c.
6488 * configure: Regenerate.
6489
1e611234
PM
64902013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6491
6492 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6493 filter logic.
6494 (backtrace_command): Add "no-filters" option parsing.
6495 (_initialize_stack): Alter help to reflect "no-filters" option.
6496 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6497 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6498 (py-frame.o): Add target
6499 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6500 filter files.
6501 * python/python.h: Add new frame filter constants, and flag enum.
6502 (apply_frame_filter): Add definition.
6503 * python/python.c (apply_frame_filter): New non-Python
6504 enabled function.
6505 * python/py-utils.c (py_xdecref): New function.
6506 (make_cleanup_py_xdecref): Ditto.
6507 * python/py-objfile.c: Declare frame_filters dictionary.
6508 (objfpy_dealloc): Add frame_filters dealloc.
6509 (objfpy_new): Initialize frame_filters attribute.
6510 (objfile_to_objfile_object): Ditto.
6511 (objfpy_get_frame_filters): New function.
6512 (objfpy_set_frame_filters): New function.
6513 * python/py-progspace.c: Declare frame_filters dictionary.
6514 (pspy_dealloc): Add frame_filters dealloc.
6515 (pspy_new): Initialize frame_filters attribute.
6516 (pspacee_to_pspace_object): Ditto.
6517 (pspy_get_frame_filters): New function.
6518 (pspy_set_frame_filters): New function.
6519 * python/py-framefilter.c: New file.
6520 * python/lib/gdb/command/frame_filters.py: New file.
6521 * python/lib/gdb/frames.py: New file.
6522 * python/lib/gdb/__init__.py: Initialize global frame_filters
6523 dictionary
6524 * python/lib/gdb/FrameDecorator.py: New file.
6525 * python/lib/gdb/FrameIterator.py: New file.
6526 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6527 * mi/mi-cmds.h: Declare.
6528 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6529 --no-frame-filter logic, and Python frame filter logic.
6530 (stack_enable_frame_filters): New function.
6531 (parse_no_frame_option): Ditto.
6532 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6533 filter logic.
6534 (mi_cmd_stack_list_locals): Ditto.
6535 (mi_cmd_stack_list_args): Ditto.
6536 (mi_cmd_stack_list_variables): Ditto.
6537 * NEWS: Add frame filter note.
6538
2cb9c859
DE
65392013-05-09 Doug Evans <dje@google.com>
6540
6bf667bb
DE
6541 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6542 All callers updated.
6543 (syms_from_objfile): Ditto. Make static.
6544 (symbol_file_add_with_addrs): Renamed from
6545 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6546 num_offsets. All callers updated.
6547 * symfile.h (syms_from_objfile): Delete.
6548
2cb9c859
DE
6549 * symfile.c (decrement_reading_symtab): Add assert.
6550 (increment_reading_symtab): Ditto.
6551
40aea477
JB
65522013-05-09 Joel Brobecker <brobecker@adacore.com>
6553
6554 * source.c (forward_search_command): Replace call to getc
6555 by call to fgetc.
6556 (reverse_search_command): Likewise.
6557
680d1742
DE
65582013-05-08 Doug Evans <dje@google.com>
6559
6560 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6561 matching test.
6562
17e760ae
JB
65632013-05-08 Joel Brobecker <brobecker@adacore.com>
6564
6565 * sol-thread.c (info_cb): Factorize the code a little.
6566
c0f5f490
JB
65672013-05-08 Joel Brobecker <brobecker@adacore.com>
6568
6569 * sol-thread.c (info_cb): Rework the output of the "maintenance
6570 info sol-threads" command a bit.
6571
5d74e061
JB
65722013-05-08 Joel Brobecker <brobecker@adacore.com>
6573
6574 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6575 Replace ti.ti_startfunc by ti.ti_pc.
6576
814a3ff7
JB
65772013-05-08 Joel Brobecker <brobecker@adacore.com>
6578
6579 * solib-aix.c (solib_aix_free_library_list): New function
6580 for the case where HAVE_LIBEXPAT is not defined.
6581
58ce7251
SDJ
65822013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6583
6584 PR breakpoints/15413:
6585 * breakpoint.c (condition_completer): Simplify the code to
6586 disconsider multiple locations of breakpoints when completing the
6587 "condition" command.
6588
be8b1ea6
PM
65892013-05-07 Pierre Muller <muller@sourceware.org>
6590
6591 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6592 instead of <sys/wait.h>.
6593
1e52bda6
PM
65942013-05-07 Pierre Muller <muller@sourceware.org>
6595
6596 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6597 trailing new line from warning message.
6598
27fd0c6b
PM
65992013-05-07 Pierre Muller <muller@sourceware.org>
6600
6601 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6602 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6603
e228ac87
JB
66042013-05-07 Joel Brobecker <brobecker@adacore.com>
6605
6606 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6607 error message (ARI fix).
6608
66092013-05-07 Joel Brobecker <brobecker@adacore.com>
6610
6611 * features/library-list-aix.dtd: Replace library-list by
6612 library-list-aix.
6613 * rs6000-nat.c: Replace library-list by library-list-aix
6614 throughout.
6615 * solib-aix.c: Likewise.
6616
66172013-05-07 Joel Brobecker <brobecker@adacore.com>
6618
6619 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6620 Renames TARGET_OBJECT_AIX_LIBRARIES.
6621 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6622 TARGET_OBJECT_LIBRARIES_AIX throughout.
6623 * solib-aix.c: Likwise.
6624
26a4dda9
YQ
66252013-05-07 Yao Qi <yao@codesourcery.com>
6626
6627 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6628 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6629
3582629f
YQ
66302013-05-07 Yao Qi <yao@codesourcery.com>
6631
6632 * solib-dsbt.c (enable_break): Declare.
6633 (dsbt_current_sos): Remove call to enable_break2.
6634 (enable_break2): Rename to enable_break. Set solib breakpoint
6635 on '_dl_debug_state'.
6636 (enable_break): Remove.
6637
aacbb8a5
LM
66382013-05-07 Luis Machado <lgustavo@codesourcery.com>
6639
6640 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6641 debug state prior to replicating existing hardware watchpoints or
6642 breakpoints.
6643
0c013353
JK
66442013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6645
6646 * gcore.c (gcore_create_callback): Ignore sections with
6647 separate_debug_objfile_backlink != NULL.
6648
a1217d97
SL
66492013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6650 Andrew Jenner <andrew@codesourcery.com>
6651 Chung-Lin Tang <cltang@codesourcery.com>
6652 Julian Brown <julian@codesourcery.com>
6653
6654 Based on the nios2-elf port from Altera Corporation.
6655
6656 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6657 nios2-linux-tdep.o.
6658 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6659 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6660 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6661 * nios2-tdep.h: New.
6662 * nios2-tdep.c: New.
6663 * nios2-linux-tdep.c: New.
6664 * features/Makefile (WHICH): Add nios2-linux.
6665 (nios2-linux-expedite): Set.
6666 * features/nios2-cpu.xml: New.
6667 * features/nios2.xml: New.
6668 * features/nios2-linux.xml: New.
6669 * features/nios2.c: New (autogenerated).
6670 * features/nios2-linux.c: New (autogenerated).
6671 * regformats/nios2-linux.dat: New (autogenerated).
6672 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6673 and commands.
6674
0892cb63
DE
66752013-05-06 Doug Evans <dje@google.com>
6676
3b7bacac
DE
6677 * symfile.c: Whitespace cleanup.
6678
0892cb63
DE
6679 * solist.h (struct target_so_ops): New member clear_so.
6680 * solib-svr4.c (svr4_clear_so): New function.
6681 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6682 * solib.c (clear_so): Renamed from free_so_symbols.
6683 All callers updated. Call target clear_so if it exists.
6684
40501e00
TT
66852013-05-06 Tom Tromey <tromey@redhat.com>
6686
6687 * ada-lang.c (ada_value_primitive_packed_val): Don't
6688 call value_incref.
6689 * value.c (set_value_parent): Incref the new parent and decref
6690 the old parent.
6691 (value_copy, value_primitive_field): Use set_value_parent.
6692
b6807d98
TT
66932013-05-06 Tom Tromey <tromey@redhat.com>
6694
6695 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6696 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6697 if needed.
6698 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6699 * dwarf2read.c (write_constant_as_bytes)
6700 (dwarf2_fetch_constant_bytes): New functions.
6701
3aef2284
TT
67022013-05-06 Tom Tromey <tromey@redhat.com>
6703
6704 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6705 parameters.
6706 (dwarf2_const_value_attr): Update.
6707
66f65e2b
TT
67082013-05-06 Tom Tromey <tromey@redhat.com>
6709
6710 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6711 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6712 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6713 Remove declaration.
6714
7919a973
TT
67152013-05-06 Tom Tromey <tromey@redhat.com>
6716
6717 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6718 objfile's obstack.
6719
a7bfba49
DE
67202013-05-06 Doug Evans <dje@google.com>
6721
3189cb12
DE
6722 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6723 * stabsread.h (process_one_symbol): Update declaration.
6724 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6725 * elfread.c (elf_symfile_relocate_probe): Ditto.
6726 * psymtab.c (relocate_psymtabs): Ditto.
6727 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6728 (objfile_relocate): Ditto.
6729 * objfiles.h (objfile_relocate): Update declaration.
6730 * symfile.c (relative_addr_info_to_section_offsets): Constify
6731 addrs parameter.
6732 (default_symfile_offsets): Ditto.
6733 (syms_from_objfile_1): Constify offsets parameter.
6734 (syms_from_objfile): Ditto.
6735 (symbol_file_add_with_addrs_or_offsets): Ditto.
6736 (symfile_map_offsets_to_segments): Constify data parameter.
6737 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6738 delta parameters of member relocate.
6739 (struct sym_probe_fns): Constify new_offsets,
6740 delta parameters of member sym_relocate_probe.
6741 (struct sym_fns): Constify section_addr_info parameter of member
6742 sym_offsets.
6743 (relative_addr_info_to_section_offsets): Update declaration.
6744 (default_symfile_offsets): Ditto.
6745 (syms_from_objfile): Ditto.
6746 (symfile_map_offsets_to_segments): Ditto.
6747
a7bfba49
DE
6748 * symfile.c (syms_from_objfile_1): Use correct section count when
6749 objfile->sf == NULL.
6750
5f8e0b8f
MF
67512013-05-06 Mike Frysinger <vapier@gentoo.org>
6752
6753 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6754
ea52d893
DE
67552013-05-06 Doug Evans <dje@google.com>
6756
6757 * psympriv.h (struct partial_symtab): Augment comment for member
6758 section_offsets.
6759
4d1eb6b4
JB
67602013-05-06 Joel Brobecker <brobecker@adacore.com>
6761
6762 Reimplement shared library support on ppc-aix...
6763 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6764 * features/library-list-aix.dtd: New file.
6765 * solib-aix.h, solib-aix.c: New file.
6766 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6767 (rs6000_find_toc_address_hook): Delete.
6768 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6769 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6770 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6771 "xml-utils.h".
6772 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6773 (vmap_symtab, fixup_breakpoints): Delete.
6774 (rs6000_xfer_shared_libraries): New function.
6775 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6776 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6777 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6778 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6779 (rs6000_xfer_shared_library): New function.
6780 (find_toc_address): Delete.
6781 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6782 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6783 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6784 before creating minimal symbol. Adjust function description
6785 accordingly.
6786 (scan_xcoff_symtab): Replace call to
6787 prim_record_minimal_symbol_and_info by call to
6788 record_minimal_symbol.
6789 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6790 around default_symfile_offsets.
6791 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6792 powerpc-aix targets.
6793 * config/rs6000/nm-rs6000.h: Delete.
6794 * config/powerpc/aix.mh (NAT_FILE): Delete.
6795 (NATDEPFILES): Remove xcoffsolib.o.
6796 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6797 (ALL_TARGET_OBS): Add solib-aix.o.
6798 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6799 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6800 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6801 * xcoffsolib.h, xcoffsolib.c: Delete.
6802
6803 * solib.c (reload_shared_libraries): Remove reference to
6804 SOLIB_CREATE_INFERIOR_HOOK.
6805 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6806 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6807 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6808 comment.
6809 * corelow.c (deprecated_core_resize_section_table): Delete.
6810 * exec.c: Remove include of xcoffsolib.h".
6811 (map_vmap, vmap): Delete.
6812 (exec_close_1): Remove references to vmap.
6813 (exec_file_attach): Remove vmap handling code, and reference
6814 to DEPRECATED_IBM6000_TARGET.
6815 (bfdsec_to_vmap): Delete.
6816 (exec_files_info): Remove block of code handling VMAP.
6817 * infcmd.c (post_create_inferior): Remove reference to
6818 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6819 * infrun.c (follow_exec): Remove reference to
6820 SOLIB_CREATE_INFERIOR_HOOK.
6821 * stack.c (print_frame): Remove reference to PC_SOLIB.
6822 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6823 (dsbt_relocate_main_executable): Likewise.
6824 * solib-frv.c (frv_current_sos): Likewise.
6825
0c4f667c
JB
68262013-05-06 Joel Brobecker <brobecker@adacore.com>
6827
6828 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6829 to target_write_memory and target_read_memory.
6830
726ce67c
JB
68312013-05-06 Joel Brobecker <brobecker@adacore.com>
6832
6833 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6834 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6835
c8c9911f
JB
68362013-05-06 Joel Brobecker <brobecker@adacore.com>
6837
6838 * darwin-nat.c: Replace all "%x" instances in format strings
6839 into "0x%x" throughout.
6840
fda184b6
JB
68412013-05-06 Joel Brobecker <brobecker@adacore.com>
6842
6843 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6844 gdb_assert by call to MACH_CHECK_ERROR.
6845 (darwin_attach_pid): Raise an error rather than a failed
6846 assertion when various system calls failed. Report a warning
6847 instead of raising a failed assertion when PREV_NOT is not NULL
6848 after call to mach_port_request_notification.
6849 (darwin_ptrace_me): Raise an error rather than a failed
6850 assertion when read returns nonzero.
6851
d1d69afb
JB
68522013-05-06 Joel Brobecker <brobecker@adacore.com>
6853
6854 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6855
dc90b24d
JK
68562013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6857
6858 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6859
faab9922
JK
68602013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6861
6862 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6863 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6864 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6865 a stale cleanup. Fix double free of NAME.
6866
e0ea48a0
EZ
68672013-05-04 Eli Zaretskii <eliz@gnu.org>
6868
6869 * windows-nat.c (windows_delete_thread): Accept an additional
6870 argument, the thread's exit code, and announce thread death when
6871 print_thread_events is non-zero and we are deleting a thread that
6872 is not the main thread.
6873 (get_windows_debug_event): Pass thread exit code to
6874 windows_delete_thread.
6875
83b2706a
KB
68762013-05-03 Kevin Buettner <kevinb@redhat.com>
6877
6878 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6879 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6880 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6881 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6882 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6883 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6884 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6885 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6886 (gdbarch_tdep): New struct.
6887 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6888 E_NUM_REGS.
6889 (v850e3v5_register_name): New function.
6890 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6891 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6892 code handling the struct return conventions for the RH850 ABI.
6893 Update all callers.
6894 (v850_eight_byte_align_p): New function.
6895 (v850_push_call_dummy): Push structs by value, not by reference
6896 for the RH850 ABI. Add support for eight byte alignment.
6897 (v850_dbtrap_breakpoint_from_pc): New function.
6898 (v850_gdbarch_init): Add ABI detection code. Register
6899 v850e3v5_register_name for the v850e3v5 architecture. Set the
6900 number of registers for v850e3v5. Register
6901 v850_dbtrap_breakpoint_from_pc as appropriate.
6902 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6903
d445b2f6
DE
69042013-05-03 Doug Evans <dje@google.com>
6905
6906 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6907 of bfd_count_sections.
6908 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6909 * symfile.c (default_symfile_offsets): Ditto.
6910 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6911 one entry, not bfd_count_sections entries.
6912
b3ce41ea
KB
69132013-05-03 Kevin Buettner <kevinb@redhat.com>
6914
6915 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6916 `save' and `restore' register groups. Don't include SPL
6917 or SPH in these groups.
6918 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6919 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6920 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6921 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6922 dwarf2_append_unwinders().
6923
96f7d3f1
PW
69242013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6925
6926 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6927 ignore SIGINT and SIGTRAP in case these internal signals are
6928 caught explicitely.
6929
b9dd1947
JB
69302013-05-01 Joel Brobecker <brobecker@adacore.com>
6931
6932 * darwin-nat.c (darwin_read_write_inferior): Change types
6933 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6934 of copy_count to "mach_msg_type_number_t".
6935 (darwin_read_dyld_info): Change type of parameter
6936 rdaddr to "gdb_byte *".
6937
4ca18a63
JB
69382013-05-01 Joel Brobecker <brobecker@adacore.com>
6939
6940 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6941 of &info->load_map from "char *" to "gdb_byte *".
6942
2b692d32
JB
69432013-05-01 Joel Brobecker <brobecker@adacore.com>
6944
6945 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6946 from "char *" to "gdb_byte *".
6947 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6948
a98c29a0
DE
69492013-04-30 Doug Evans <dje@google.com>
6950
6a506a2d
DE
6951 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6952 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6953 DWO stub. If DWO isn't found, just use stub.
6954 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6955
a98c29a0
DE
6956 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6957 calling init_cutu_and_read_dies.
6958
f92b06da
WT
69592013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6960
6961 * target-descriptions.c (maint_print_c_tdesc_cmd):
6962 Add case to parse structures as register types and
6963 bitfields.
6964
95eebdcc
WT
69652013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6966
6967 * MAINTAINERS (Write After Approval): Add myself to the list.
6968
019c1128
JB
69692013-04-30 Joel Brobecker <brobecker@adacore.com>
6970
6971 * sol-thread.c (rw_common): Change type of parameter "buf"
6972 to "gdb_byte *".
6973 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6974 rw_common to "gdb_byte *" instead of "char *".
6975
5812197c
JB
69762013-04-30 Joel Brobecker <brobecker@adacore.com>
6977
6978 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6979 of local variable msym to const struct bound_minimal_symbol.
6980 Adjust use accordingly.
6981 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6982
ecccb813
TS
69832013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6984
6985 * i386gnu-nat.c (CREG_OFFSET): New macro.
6986 (creg_offset): New array.
6987 (CREG_ADDR): Use creg_offset instead of reg_offset.
6988
f1d02dd4 69892013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6990
6991 * mep-tdep.c (mep_write_pc): Delete.
6992 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6993 Add call to set_gdbarch_pc_regnum.
6994
f1d02dd4 69952013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6996
6997 * common/filestuff.c: Replace #include <dirent.h> by
6998 #include "gdb_dirent.h".
6999
f1d02dd4 70002013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7001
7002 * common/filestuff.c: Replace #include <sys/stat.h> by
7003 #include "gdb_stat.h".
7004
b385a60d
PM
70052013-04-29 Pierre Muller <muller@sourceware.org>
7006
7007 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7008 editCase function rule.
7009 (get_DW_AT_signature_type): Likewise.
7010
d27b54ad
JB
70112013-04-29 Joel Brobecker <brobecker@adacore.com>
7012
7013 * m32r-tdep.c (m32r_write_pc): Delete.
7014 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7015 Add call to set_gdbarch_pc_regnum.
7016
47d21dc5
PM
70172013-04-29 Pierre Muller <muller@sourceware.org>
7018
7019 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7020
9056882e
JB
70212013-04-29 Joel Brobecker <brobecker@adacore.com>
7022
7023 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7024
7ee4732a
YQ
70252013-04-28 Yao Qi <yao@codesourcery.com>
7026
7027 * solib-dsbt.c (fetch_loadmap): Re-indent.
7028 (displacement_from_map, enable_break2): Likewise.
7029 (dsbt_relocate_section_addresses): Likewise.
7030
2260af53 70312013-04-26 Joel Brobecker <brobecker@adacore.com>
7032
7033 GDB 7.6 released.
7034
ff546935
TT
70352013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7036
7037 PR corefiles/14983:
7038 * dwarf2read.c (process_full_comp_unit): Always create a static
7039 block.
7040
40fb6c5e
HZ
70412013-04-25 Hui Zhu <hui@codesourcery.com>
7042
7043 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7044 to loc->cmd_bytecode.
7045
74e04d1c
DE
70462013-04-24 Doug Evans <dje@google.com>
7047
7048 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7049
3cf62c1d
KS
70502013-04-22 Keith Seitz <keiths@redhat.com>
7051
7052 * tracepoint.c (trace_save): Call the writer's start method.
7053
bf9e4d0c
MB
70542013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7055
7056 PR gdb/10462
7057 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7058 before argument.
7059
5d71132c
TT
70602013-04-23 Tom Tromey <tromey@redhat.com>
7061
7062 * common/filestuff.c: Check USE_WIN32API before including
7063 sys/socket.h.
7064 (HAVE_F_GETFD): New define.
7065 (mark_cloexec): Check HAVE_F_GETFD.
7066 (gdb_open_cloexec): Change 'mode' to unsigned long.
7067 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7068 (gdb_pipe_cloexec): Check HAVE_PIPE.
7069 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7070 long.
7071
a11cfd87
HZ
70722013-04-23 Hui Zhu <hui@codesourcery.com>
7073
7074 PR gdb/15293
a11cfd87
HZ
7075 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7076
2d9442cc
HZ
70772013-04-23 Hui Zhu <hui@codesourcery.com>
7078
7079 PR gdb/15165
2d9442cc
HZ
7080 * breakpoint.c (dprintf_print_recreate): New.
7081 (save_breakpoints): Let it not save dprintf commands.
7082 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7083
614c279d
TT
70842013-04-22 Tom Tromey <tromey@redhat.com>
7085
7086 PR gdb/7912:
7087 * Makefile.in (SFILES): Add filestuff.c
7088 (COMMON_OBS): Add filestuff.o.
7089 (filestuff.o): New target.
7090 * auto-load.c (auto_load_objfile_script_1): Use
7091 gdb_fopen_cloexec.
7092 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7093 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7094 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7095 * common/agent.c (gdb_connect_sync_socket): Use
7096 gdb_socket_cloexec.
7097 * common/filestuff.c: New file.
7098 * common/filestuff.h: New file.
7099 * common/linux-osdata.c (linux_common_core_of_thread)
7100 (command_from_pid, commandline_from_pid, print_source_lines)
7101 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7102 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7103 gdb_fopen_cloexec.
7104 * common/linux-procfs.c (linux_proc_get_int)
7105 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7106 * config.in, configure: Rebuild.
7107 * configure.ac: Don't check for sys/socket.h. Check for
7108 fdwalk, pipe2.
7109 * corelow.c (core_open): Use gdb_open_cloexec.
7110 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7111 * fork-child.c (fork_inferior): Call close_most_fds.
7112 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7113 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7114 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7115 Use gdb_fopen_cloexec.
7116 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7117 gdb_open_cloexec.
7118 (linux_async_pipe): Use gdb_pipe_cloexec.
7119 * remote-fileio.c (remote_fileio_func_open): Use
7120 gdb_open_cloexec.
7121 * remote.c (remote_file_put, remote_file_get): Use
7122 gdb_fopen_cloexec.
7123 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7124 close_most_fds.
7125 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7126 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7127 * solib.c (solib_find): Use gdb_open_cloexec.
7128 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7129 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7130 (tfile_open): Use gdb_open_cloexec.
7131 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7132 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7133 * xml-support.c (xml_fetch_content_from_file): Use
7134 gdb_fopen_cloexec.
7135 * main.c (captured_main): Call notice_open_fds.
7136
5fda2332
EBM
71372013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7138
7139 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7140 'char *' to 'gdb_byte *'.
7141 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7142 'gdb_byte'.
7143
eb6c553b
YQ
71442013-04-22 Yao Qi <yao@codesourcery.com>
7145
7146 * infrun.c: Fix typo in comment.
7147
9991b207
SDJ
71482013-04-22 Andrew Haley <aph@redhat.com>
7149
7150 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7151 instead of "long".
7152
8b4833e3
YQ
71532013-04-20 Yao Qi <yao@codesourcery.com>
7154
7155 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7156 'char *' to 'gdb_byte *'. Cast the return value of
7157 'bt_ctf_get_char_array' to 'gdb_byte *'.
7158
bd3f3b55
PA
71592013-04-19 Pedro Alves <palves@redhat.com>
7160
7161 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7162 -Wpointer-sign.
7163 * configure: Regenerate.
7164
c49e7f76
PA
71652013-04-19 Pedro Alves <palves@redhat.com>
7166
7167 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7168 'void *'.
7169
12ff8552
PA
71702013-04-19 Pedro Alves <palves@redhat.com>
7171
7172 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7173 Change type of 'myaddr' parameter to gdb_byte pointer.
7174 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7175 to 'long long' pointer instead of to 'unsigned long long'.
7176 (monitor_write_memory_block, monitor_read_memory_single)
7177 (monitor_read_memory): Change type of 'myaddr' parameter to
7178 gdb_byte pointer.
7179
9c37696b
PA
71802013-04-19 Pedro Alves <palves@redhat.com>
7181
7182 * record.c (validate_history_size): Make parameter 'setting'
7183 unsigned.
7184
a398505b
PA
71852013-04-19 Pedro Alves <palves@redhat.com>
7186
7187 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7188 to 'gdb_byte *'.
7189
9f8afa72
PA
71902013-04-19 Pedro Alves <palves@redhat.com>
7191
7192 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7193 local to int.
7194
c714b426
PA
71952013-04-19 Pedro Alves <palves@redhat.com>
7196
7197 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7198 * ada-tasks.c (read_fat_string_value): Likewise.
7199
507a579c
PA
72002013-04-19 Pedro Alves <palves@redhat.com>
7201
7202 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7203 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7204 'offset', and adjust.
7205
f9d83a0b
PA
72062013-04-19 Pedro Alves <palves@redhat.com>
7207
7208 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7209 (read_index_from_section): Add cast to 'char *'.
7210
745eb4fd
PA
72112013-04-19 Pedro Alves <palves@redhat.com>
7212
7213 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7214
db5be46f
PA
72152013-04-19 Pedro Alves <palves@redhat.com>
7216
7217 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7218
0f928d68
PA
72192013-04-19 Pedro Alves <palves@redhat.com>
7220
7221 * record-full.c (record_full_get_bookmark): Change local 'ret'
7222 type to char * and add cast to gdb_byte *.
7223 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7224 string.
7225 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7226
89f6d837
PA
72272013-04-19 Pedro Alves <palves@redhat.com>
7228
7229 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7230 * python/py-prettyprint.c (print_string_repr): Change type of
7231 'output' local to char *. Add cast to gdb_byte * in
7232 LA_PRINT_STRING call.
7233 (print_children): Change type of 'output' local to char *.
7234 * python/py-value.c (valpy_string): Add cast to const char * in
7235 PyUnicode_Decode call.
7236
ce6ec7d8
PA
72372013-04-19 Pedro Alves <palves@redhat.com>
7238
7239 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7240 and change its type to 'const char *'. Adjust.
7241 (mips_send_packet): Add cast to 'char *', and remove cast to
7242 'unsigned char *'.
7243 (mips_receive_packet): Remove cast to 'unsigned char *'.
7244 (mips_load_srec): Use bfd_byte.
7245 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7246 (pmon_checkset): Make 'value' parameter unsigned.
7247
fda0389f
PA
72482013-04-19 Pedro Alves <palves@redhat.com>
7249
7250 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7251
bc20a4af
PA
72522013-04-19 Pedro Alves <palves@redhat.com>
7253
7254 * remote.c (remote_write_bytes_aux, compare_sections_command)
7255 (remote_read_qxfer)
7256 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7257 (remote_hostio_readlink, remote_bfd_iovec_pread)
7258 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7259 binary buffer, and char when buffer is used as string.
7260 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7261 (trace_save, tfile_open, traceframe_walk_blocks)
7262 (tfile_fetch_registers): Likewise.
7263
c628b528
PA
72642013-04-19 Pedro Alves <palves@redhat.com>
7265
7266 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7267 buffer and size_t size. Adjust.
7268 * ser-base.h (ser_base_write): Adjust.
7269 * ser-go32.c (cnts): Change type to size_t.
7270 (dos_write): Change prototype -- take 'void *'
7271 buffer and size_t size. Adjust.
7272 (dos_info): Print elements of 'cnts' as unsigned long.
7273 * serial.c (serial_write): Likewise.
7274 * serial.h (serial_write): Adjust.
7275 (struct serial_ops) <write>: Change prototype -- take 'void *'
7276 buffer and size_t size. Adjust.
7277
51a5cd90
PA
72782013-04-19 Pedro Alves <palves@redhat.com>
7279
7280 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7281 gdb_byte *.
7282 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7283
a9933661
PA
72842013-04-19 Pedro Alves <palves@redhat.com>
7285
7286 * alpha-tdep.c (alpha_extract_return_value): Use
7287 regcache_cooked_read_unsigned to read 'v0'.
7288
19afdd07
PA
72892013-04-19 Pedro Alves <palves@redhat.com>
7290
7291 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7292 parameters 'at', 'as' and 'offset' to uint32_t.
7293
96b32e50
PA
72942013-04-19 Pedro Alves <palves@redhat.com>
7295
7296 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7297 'is64' to signed 'int'.
7298
eb1bd1fb
PA
72992013-04-19 Pedro Alves <palves@redhat.com>
7300
7301 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7302 parameter to int *.
7303
463920bf
PA
73042013-04-19 Pedro Alves <palves@redhat.com>
7305
7306 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7307 'insnbuf' buffer type to unsigned int[].
7308
70242eb1
PA
73092013-04-19 Pedro Alves <palves@redhat.com>
7310
7311 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7312
9d1dd0e2
PA
73132013-04-19 Pedro Alves <palves@redhat.com>
7314
7315 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7316 unsigned long *.
7317
44096aee
PA
73182013-04-19 Pedro Alves <palves@redhat.com>
7319
7320 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7321 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7322 UINT_MAX.
7323 * mips-tdep.c (heuristic_fence_post): Change type to int.
7324 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7325
e4286e57
PA
73262013-04-19 Pedro Alves <palves@redhat.com>
7327
7328 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7329 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7330 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7331
001f13d8
PA
73322013-04-19 Pedro Alves <palves@redhat.com>
7333
7334 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7335 it to get a string view of the byte buffer.
7336 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7337 type to gdb_byte *. Adjust.
7338 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7339 Change local to char *.
7340 * solib-darwin.c (find_program_interpreter): Change return type to
7341 char *. Adjust.
7342 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7343 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7344 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7345 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7346 * solib-svr4.c (find_program_interpreter): Change return type to
7347 char *. Adjust.
7348 (enable_break): Change local 'interp_name' to char *.
7349 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7350 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7351 (spu_pseudo_register_write_spu): Use char for string buffer.
7352 Adjust.
7353 (info_spu_event_command, info_spu_signal_command): Add casts to
7354 'char *'.
7355
948f8e3d
PA
73562013-04-19 Pedro Alves <palves@redhat.com>
7357
7358 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7359 gdb_byte[].
7360 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7361 * ada-lang.c (ada_value_assign): Use gdb_byte.
7362 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7363 (alphanbsd_sigtramp_offset): Use gdb_byte.
7364 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7365 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7366 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7367 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7368 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7369 * arm-tdep.c (arm_stub_unwind_sniffer)
7370 (arm_displaced_init_closure): Use gdb_byte.
7371 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7372 (arm_default_thumb_le_breakpoint)
7373 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7374 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7375 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7376 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7377 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7378 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7379 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7380 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7381 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7382 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7383 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7384 (cris_store_return_value, cris_extract_return_value): Use
7385 gdb_byte.
7386 (constraint): Change type of parameter to char * from signed
7387 char*. Use gdb_byte.
7388 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7389 of local buffer to gdb_byte *.
7390 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7391 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7392 (add_address_entry): Change type of local buffer to gdb_byte[].
7393 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7394 (frv_push_dummy_call): Use gdb_byte.
7395 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7396 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7397 (hppa_hpux_supply_save_state): Use gdb_byte.
7398 * hppa-tdep.c (hppa32_push_dummy_call)
7399 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7400 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7401 (slotN_contents, replace_slotN_contents): Change type of parameter
7402 to gdb_byte *.
7403 (fetch_instruction, ia64_pseudo_register_write)
7404 (ia64_register_to_value, ia64_value_to_register)
7405 (ia64_extract_return_value, ia64_store_return_value)
7406 (ia64_push_dummy_call): Use gdb_byte.
7407 * m32c-tdep.c (m32c_return_value): Remove cast.
7408 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7409 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7410 gdb_byte.
7411 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7412 * mn10300-tdep.c (mn10300_store_return_value)
7413 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7414 gdb_byte.
7415 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7416 (moxie_process_record): Remove casts.
7417 * ppc-ravenscar-thread.c (supply_register_at_address)
7418 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7419 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7420 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7421 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7422 * remote.c (compare_sections_command): Use gdb_byte.
7423 * score-tdep.c (score7_free_memblock): Change type of parameter to
7424 gdb_byte *.
7425 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7426 gdb_byte *. Use gdb_byte.
7427 (sh_push_dummy_call_fpu): Use gdb_byte.
7428 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7429 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7430 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7431 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7432 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7433 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7434 (sh64_store_return_value, sh64_register_convert_to_virtual):
7435 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7436 (sh64_pseudo_register_write): Use gdb_byte.
7437 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7438 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7439 buffer.
7440 (irix_current_sos): Use gdb_byte.
7441 * solib-som.c (som_current_sos): Use gdb_byte.
7442 * sparc-ravenscar-thread.c (supply_register_at_address)
7443 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7444 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7445 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7446 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7447 'gdb_byte *'.
7448 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7449 'gdb_byte *'.
7450 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7451 * xstormy16-tdep.c (xstormy16_extract_return_value)
7452 (xstormy16_store_return_value): Change parameter type to
7453 'gdb_byte *'. Adjust.
7454 (xstormy16_push_dummy_call): Use gdb_byte.
7455 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7456 (call0_analyze_prologue, execute_code): Use gdb_byte.
7457
433730c9
PA
74582013-04-19 Vladimir Kargov <kargov@gmail.com>
7459 Pedro Alves <palves@redhat.com>
7460
7461 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7462 value contents.
7463
ac9ec31b
DE
74642013-04-17 Doug Evans <dje@google.com>
7465
7466 * dwarf2read.c (struct signatured_type): New member type.
7467 (struct attribute): Replace member signatured_type with signature.
7468 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7469 (read_call_site_scope): Call follow_die_ref instead of
7470 follow_die_ref_or_sig.
7471 (read_structure_type): Rewrite handling of signatured types.
7472 (read_enumeration_type): Ditto.
7473 (read_attribute_value): Update.
7474 (build_error_marker_type): New function.
7475 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7476 Don't call error for bad types, just build an error marker type.
7477 (dump_die_shallow): Update.
7478 (follow_die_sig_1): Renamed from follow_die_sig.
7479 Don't call error for bad types, instead return NULL.
7480 (follow_die_sig): New function.
7481 (get_signatured_type, get_DW_AT_signature_type): New functions.
7482
e546e8bb
YZ
74832013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7484
7485 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7486 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7487 function.
e546e8bb 7488
ab116149
YQ
74892013-04-17 Yao Qi <yao@codesourcery.com>
7490
7491 * top.c (print_gdb_configuration): Print configure-time
7492 parameter on using libbabeltrace or not.
7493
488a42b8
PA
74942013-04-16 Pedro Alves <palves@redhat.com>
7495
7496 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7497
f5fb825b
PA
74982013-04-16 Pedro Alves <palves@redhat.com>
7499
85d494ea 7500 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7501 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7502
e1154999
PA
75032013-04-16 Pedro Alves <palves@redhat.com>
7504
7505 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7506 * common/glibc_thread_db.h: ... this new file ...
7507 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7508
e3b50a7f
PA
75092013-04-16 Will Newton <will.newton@gmail.com>
7510 Pedro Alves <palves@redhat.com>
7511
7512 PR build/11881
7513
7514 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7515 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7516 HAVE_THREAD_DB_H.
7517
1c2e4450
PA
75182013-04-16 Pedro Alves <palves@redhat.com>
7519 Eli Zaretskii <eliz@gnu.org>
7520
7521 * NEWS: Mention "set foo unlimited".
7522
4031ecc5
DE
75232013-04-15 Doug Evans <dje@google.com>
7524
19c3d4c9
DE
7525 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7526 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7527 (create_dwo_cu_reader): Renamed from
7528 create_dwo_debug_info_hash_table_reader.
7529 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7530 Remove support for multiple CUs in a DWO file.
7531 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7532
4031ecc5
DE
7533 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7534 instead of phex.
7535 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7536 (create_dwo_in_dwp): Ditto.
7537
b340913d
TT
75382013-04-15 Tom Tromey <tromey@redhat.com>
7539
7540 * NEWS: Move recent entries into "since 7.6" section.
7541
cc16e6c9
TT
75422013-04-15 Tom Tromey <tromey@redhat.com>
7543
7544 PR c++/13588:
7545 * NEWS: Update.
7546 * break-catch-throw.c (struct exception_catchpoint)
7547 <exception_rx, pattern>: New fields.
7548 (fetch_probe_arguments, dtor_exception_catchpoint)
7549 (check_status_exception_catchpoint)
7550 (print_one_detail_exception_catchpoint): New functions.
7551 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7552 Compile regular expression if needed.
7553 (extract_exception_regexp): New function.
7554 (catch_exception_command_1): Use extract_exception_regexp.
7555 (compute_exception): Use fetch_probe_arguments.
7556 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7557 and check_status fields.
7558 * cp-abi.c (cplus_typename_from_type_info): New function.
7559 * cp-abi.h (cplus_typename_from_type_info): Declare.
7560 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7561 * gdb_regex.h (compile_rx_or_error): Declare.
7562 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7563 comment.
7564 (init_gnuv3_ops): Set get_type_from_type_info field.
7565 * probe.c (compile_rx_or_error): Move...
7566 * utils.c (compile_rx_or_error): ... here.
7567
72f1fe8a
TT
75682013-04-15 Tom Tromey <tromey@redhat.com>
7569
7570 PR c++/15176:
7571 * NEWS: Update.
7572 * break-catch-throw.c (compute_exception): New function.
7573 (exception_funcs): New global.
7574 (_initialize_break_catch_throw): Create $_exception.
7575 * cp-abi.c (cplus_type_from_type_info): New function.
7576 * cp-abi.h (cplus_type_from_type_info): Declare.
7577 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7578 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7579 (gnuv3_get_type_from_type_info): New functions.
7580 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7581
fc4746a2
TT
75822013-04-15 Tom Tromey <tromey@redhat.com>
7583
7584 * break-catch-throw.c (struct exception_names): New.
7585 (exception_functions): Change type.
7586 (re_set_exception_catchpoint): Look for SDT probes.
7587
15a73f56
TT
75882013-04-15 Tom Tromey <tromey@redhat.com>
7589
7590 PR c++/10119:
7591 * break-catch-throw.c (exception_functions): New global.
7592 (gnu_v3_exception_catchpoint_ops): Move earlier.
7593 (struct exception_catchpoint): New.
7594 (classify_exception_breakpoint): Rewrite.
7595 (re_set_exception_catchpoint): New function.
7596 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7597 Allocate a struct exception_catchpoint.
7598 (catch_exception_command_1): Update.
7599 (initialize_throw_catchpoint_ops): Set 're_set' method.
7600
916703c0
TT
76012013-04-15 Tom Tromey <tromey@redhat.com>
7602
7603 * Makefile.in (SFILES): Add break-catch-throw.c
7604 (COMMON_OBS): Add break-catch-throw.o.
7605 * break-catch-throw.c: New file.
7606 * breakpoint.c: Move exception-catching code to new file.
7607 (ep_parse_optional_if_clause): No longer static.
7608 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7609
6e72ca20
TT
76102013-04-15 Tom Tromey <tromey@redhat.com>
7611
7612 PR c++/9065:
7613 * NEWS: Update.
7614 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7615 * c-exp.y (TYPEID): New token.
7616 (exp): Add new TYPEID productions.
7617 (ident_tokens): Add "typeid".
7618 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7619 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7620 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7621 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7622 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7623 case.
7624 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7625 (build_std_type_info_type, gnuv3_get_typeid_type)
7626 (gnuv3_get_typeid): New functions.
7627 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7628 new fields on ABI object.
7629 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7630 * std-operator.def (OP_TYPEID): New.
7631
715c6909
TT
76322013-04-15 Tom Tromey <tromey@redhat.com>
7633
7634 * elfread.c (elf_symtab_read): Install versioned symbol under
7635 unversioned name as well.
7636
8de20a37
TT
76372013-04-15 Tom Tromey <tromey@redhat.com>
7638
7639 PR c++/11990:
7640 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7641 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7642 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7643 (gdb_demangle): New function.
7644 * cp-support.h (gdb_demangle): Declare.
7645 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7646 (dwarf2_name): Use gdb_demangle.
7647 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7648 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7649 suffixes from name.
7650 (gnuv3_print_method_ptr): Use gdb_demangle.
7651 * jv-lang.c (java_demangle): Use gdb_demangle.
7652 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7653 * language.c (unk_lang_demangle): Use gdb_demangle.
7654 * symtab.c (symbol_find_demangled_name)
7655 (demangle_for_lookup): Use gdb_demangle.
7656
591f19e8
TT
76572013-04-15 Tom Tromey <tromey@redhat.com>
7658
7659 PR c++/12824:
7660 * NEWS: Update.
7661 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7662 New constant.
7663 (classify_exception_breakpoint): New function.
7664 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7665 (print_mention_exception_catchpoint)
7666 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7667 (catch_exception_command_1): Handle "rethrow" catchpoint.
7668 (catch_rethrow_command): New function.
7669 (_initialize_breakpoint): Add "catch rethrow" command.
7670
4d40cad2
PM
76712013-04-15 Pierre Muller <muller@sourceware.org>
7672
7673 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7674 set_gdbarch_write_pc as deprecated anymore.
7675
30bcb456
JB
76762013-04-15 Joel Brobecker <brobecker@adacore.com>
7677
7678 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7679 declarations.
7680
da9160e4
YQ
76812013-04-13 Yao Qi <yao@codesourcery.com>
7682
7683 * ctf.c (_initialize_ctf): Include "completer.h".
7684 Call add_target_with_completer instead of add_target.
7685
39ed5604
JK
76862013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7687
7688 Fix GDB regression related to PR binutils/14813.
7689 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7690 * minidebug.c (lzma_close): Add return value comment.
7691 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7692 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7693 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7694
76952013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7696
7697 * config.in: Regenerate.
7698
d521ce57
TT
76992013-04-12 Tom Tromey <tromey@redhat.com>
7700
7701 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7702 const.
7703 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7704 (struct die_reader_specs) <buffer>: Likewise.
7705 (die_reader_func_ftype): Make 'info_ptr' const.
7706 (struct line_header) <include_dirs, statement_program_start,
7707 statement_program_end>: Now const.
7708 (struct file_entry) <name>: Likewise.
7709 (struct partial_die_info) <sibling>: Likewise.
7710 (struct dwarf_block) <data>: Likewise.
7711 (dwarf2_read_section): Remove cast.
7712 (dwarf2_get_section_info): Make 'bufp' const.
7713 (read_index_from_section): Constify.
7714 (dw2_get_file_names_reader): Make 'info_ptr' const.
7715 (dw2_get_primary_filename_reader): Likewise.
7716 (read_comp_unit_head): Make 'info_ptr' and return type const.
7717 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7718 Likewise.
7719 (read_abbrev_offset): Constify.
7720 (dwarf2_create_include_psymtab): Make 'name' const.
7721 (create_debug_types_hash_table): Update.
7722 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7723 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7724 Constify.
7725 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7726 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7727 (read_comp_units_from_section): Constify.
7728 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7729 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7730 const.
7731 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7732 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7733 (create_dwp_hash_table, dwarf2_ranges_read)
7734 (dwarf2_record_block_ranges): Constify.
7735 (read_die_and_children, read_die_and_siblings_1)
7736 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7737 const.
7738 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7739 (abbrev_table_read_table): Constify.
7740 (load_partial_dies): Make 'info_ptr' const.
7741 (read_partial_die, read_attribute_value, read_attribute): Make
7742 'info_ptr' and return type const.
7743 (read_address, read_initial_length)
7744 (read_checked_initial_length_and_offset, read_offset)
7745 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7746 const.
7747 (read_direct_string): Make 'buf' and return type const.
7748 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7749 (read_indirect_string): Make return type const.
7750 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7751 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7752 'info_ptr' const.
7753 (read_str_index): Make return type const.
7754 (add_include_dir): Make 'include_dir' const.
7755 (add_file_name): Make 'name' const.
7756 (dwarf_decode_line_header): Constify.
7757 (psymtab_include_file_name): Make return type const.
7758 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7759 (dwarf2_start_subfile): Make 'filename' const.
7760 (dwarf2_const_value_attr): Make 'bytes' const.
7761 (read_signatured_type_reader): Make 'info_ptr' const.
7762 (decode_locdesc): Constify.
7763 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7764 const.
7765 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7766 'mac_end', and return type const.
7767 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7768 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7769 type const.
7770 (per_cu_header_read_in): Constify.
7771 * symfile.h (dwarf2_get_section_info): Update.
7772
d47a1bc1
TT
77732013-04-12 Tom Tromey <tromey@redhat.com>
7774
7775 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7776
6eaaf48b
EZ
77772013-04-12 Eli Zaretskii <eliz@gnu.org>
7778
fc4c25bf 7779 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7780 * top.c (print_gdb_configuration): New function, displays the
7781 details about GDB configure-time parameters.
7782 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7783 * cli/cli-cmds.c (show_configuration): New function.
7784 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7785 * main.c (captured_main) <print_configuration>: New static var.
7786 <long_options>: Use it.
7787 If --configuration was given, call print_gdb_configuration.
7788
b292c783
JK
77892013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7790 Pedro Alves <palves@redhat.com>
7791
7792 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7793 (generated_files): Add gcore.
7794 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7795 HAVE_NATIVE_GCORE_HOST.
7796 (gcore): New.
7797 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7798 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7799 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7800 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7801 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7802 Add HAVE_NATIVE_GCORE_HOST.
7803 * configure: Regenerate.
7804 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7805 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7806 AC_CONFIG_FILES for gcore.
7807 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7808 gdb_have_gcore.
7809 * gdb_gcore.sh: Rename to ...
7810 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7811 and GCORE_TRANSFORM_NAME substitutions.
7812
c96b3c4f
JK
7813 Fix parsing tabs in ${gdb_target_obs}.
7814 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7815
d6cb50a2
JK
78162013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7817
7818 * remote.c (unpush_and_perror): Add output message final dot.
7819
cf2cb5ec
YQ
78202013-04-11 Yao Qi <yao@codesourcery.com>
7821
7822 * tracepoint.c (tfile_interp_line): Fit parameters line and
7823 utpp in one line.
7824
07293be4
JB
78252013-04-10 Joel Brobecker <brobecker@adacore.com>
7826
7827 * solib.c (solib_map_sections): Remove code overwriting
7828 SO->SO_NAME with the bfd's filename.
7829
f81d1120
PA
78302013-04-10 Pedro Alves <palves@redhat.com>
7831
7832 * cli/cli-decode.c (integer_unlimited_completer): New function.
7833 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7834 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7835 completer.
7836 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7837 (is_unlimited_literal): New function.
7838 (do_set_command): Handle literal "unlimited" arguments.
7839 * frame.c (_initialize_frame) <set backtrace limit>: Document
7840 "unlimited".
7841 * printcmd.c (_initialize_printcmd) <set print
7842 max-symbolic-offset>: Add help text.
7843 * record-full.c (_initialize_record_full) <set record full
7844 insn-number-max>: Likewise.
7845 * record.c (_initialize_record) <set record
7846 instruction-history-size, set record function-call-history-size>:
7847 Add help text.
7848 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7849 help text.
7850 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7851 Likewise.
7852 * source.c (_initialize_source) <set listsize>: Add help text.
7853 * utils.c (initialize_utils) <set height, set width>: Likewise.
7854 <set pagination>: Mention "set height unlimited".
7855 * valprint.c (_initialize_valprint) <set print elements, set print
7856 repeats>: Document "unlimited".
7857
2f9d54cf
PA
78582013-04-10 Pedro Alves <palves@redhat.com>
7859
7860 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7861 instead of disconnect_tracing.
7862 * infcmd.c (detach_command, disconnect_command): Call
7863 query_if_trace_running. Adjust.
7864 * top.c: Include "tracepoint.h".
7865 (quit_target): Delete. Contents moved ...
7866 (quit_force): ... here. Wrap each stage of teardown in
7867 TRY_CATCH. Call disconnect_tracing before detaching.
7868
393fd4c3
YQ
78692013-04-10 Hui Zhu <hui@codesourcery.com>
7870 Yao Qi <yao@codesourcery.com>
7871
7872 * configure.ac: Check libbabeltrace is installed.
7873 * config.in: Regenerate.
7874 * configure: Regenerate.
7875 * Makefile.in (LIBBABELTRACE): New.
7876 (CLIBS): Add LIBBABELTRACE.
7877 * ctf.c: Include "exec.h".
7878 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7879 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7880 (ctf_save_metadata_header): Define new type aliases in
7881 metadata.
7882 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7883 in metadata. Start a new faked packet for trace status.
7884 (ctf_write_status): Write trace status to CTF.
7885 (ctf_write_uploaded_tsv): Write TSV to CTF.
7886 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7887 (ctf_write_definition_end): End the faked packet.
7888
7889 (ctx, ctf_iter, trace_dirname): New.
7890 (start_pos): New variable.
7891 (ctf_destroy, ctf_open_dir, ctf_open): New.
7892 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7893 macros.
7894 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7895 (ctf_fetch_registers, ctf_xfer_partial): New.
7896 (ctf_get_trace_state_variable_value): New.
7897 (ctf_get_tpnum_from_frame_event): New.
7898 (ctf_get_traceframe_address): New.
7899 (ctf_trace_find, ctf_has_stack): New.
7900 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7901 (ctf_get_trace_status, ctf_read_status): New.
7902 (_initialize_ctf): New.
7903 * tracepoint.c (get_tracepoint_number): New
7904 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7905 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7906 * tracepoint.h: ... here.
7907 (get_tracepoint_number): Declare it.
7908 (get_uploaded_tsv): Declare it.
7909
7910 * NEWS: Mention new configure option.
7911
5c2b4418
HZ
79122013-04-10 Pedro Alves <palves@redhat.com>
7913 Hui Zhu <hui@codesourcery.com>
7914
7915 * breakpoint.c (dprintf_re_set): New.
7916 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7917 to dprintf_re_set.
7918
a5c66735
JB
79192013-04-09 Joel Brobecker <brobecker@adacore.com>
7920
7921 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7922 Remove solib-svr4.o from the list.
7923
9e77999c
JB
79242013-04-09 Joel Brobecker <brobecker@adacore.com>
7925
7926 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7927 Use gdb_assert_not_reached instead of invalid boolean expression.
7928
1927e618
PA
79292013-04-09 Pedro Alves <palves@redhat.com>
7930
7931 * remote.c (unpush_and_perror): New function.
7932 (readchar, remote_serial_write): Use it.
7933
10782d74
MM
79342013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7935
7936 * NEWS: Mention new btrace RSP packets.
7937
4c8429ef
TT
79382013-04-08 Tom Tromey <tromey@redhat.com>
7939
7940 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7941 long.
7942
8625fc1b
TT
79432013-04-08 Tom Tromey <tromey@redhat.com>
7944
7945 * maint.c (print_bfd_section_info): Print the section index.
7946 * symmisc.c (dump_msymbols): Print the section index.
7947
e27d198c
TT
79482013-04-08 Tom Tromey <tromey@redhat.com>
7949
7950 PR symtab/8424:
7951 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7952 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7953 * breakpoint.c (resolve_sal_pc): Update.
7954 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7955 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7956 (minsym_lookup_iterator_cb): Use it.
7957 (default_read_var_value): Update.
7958 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7959 Update.
7960 * infcmd.c (jump_command): Update.
7961 * linespec.c (minsym_found): Update.
7962 * maint.c (maintenance_translate_address): Update.
7963 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7964 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7965 * parse.c (write_exp_msymbol): Update.
7966 * printcmd.c (address_info): Update.
7967 * psymtab.c (find_pc_sect_psymbol): Update.
7968 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7969 SYMBOL_OBJ_SECTION.
7970 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7971 Don't initialize SYMBOL_OBJ_SECTION.
7972 * spu-tdep.c (spu_catch_start): Update.
7973 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7974 * symmisc.c (dump_msymbols, print_symbol): Update.
7975 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7976 how fallback section is computed.
7977 (fixup_symbol_section): Update.
7978 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7979 Update.
7980 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7981 Initialize SYMBOL_SECTION.
7982 * symtab.h (struct general_symbol_info) <section>: Update comment.
7983 <obj_section>: Remove.
7984 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7985 (SYMBOL_OBJFILE): New macro.
7986
e6dc44a8
TT
79872013-04-08 Tom Tromey <tromey@redhat.com>
7988
7989 * coffread.c (record_minimal_symbol): Update.
7990 * dbxread.c (record_minimal_symbol): Update.
7991 * elfread.c (record_minimal_symbol): Update.
7992 * machoread.c (macho_symtab_add_minsym): Update.
7993 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7994 Update.
7995 * minsyms.c (prim_record_minimal_symbol): Update.
7996 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7997 argument.
7998 (prim_record_minimal_symbol_and_info): Likewise.
7999 * minsyms.h (prim_record_minimal_symbol_full)
8000 (prim_record_minimal_symbol_and_info): Update.
8001 * symtab.c (allocate_symbol, initialize_symbol)
8002 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8003 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8004 Update.
8005
36192a8d
TT
80062013-04-08 Tom Tromey <tromey@redhat.com>
8007
8008 PR symtab/8423:
8009 * solib-som.c (som_solib_section_offsets): Use BFD section
8010 indices. Set offsets for all sections.
8011 * somread.c (som_symtab_read): Compute BFD section for
8012 symbol. Use prim_record_minimal_symbol_and_info.
8013 (som_symfile_read): Fix comment.
8014 (struct find_section_offset_arg): New.
8015 (find_section_offset, set_section_index): New functions.
8016 (som_symfile_offsets): Use set_section_index to compute
8017 section indices.
8018
65cf3563
TT
80192013-04-08 Tom Tromey <tromey@redhat.com>
8020
8021 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8022 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8023 gdb_bfd_section_index.
8024 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8025 New functions.
8026 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8027 Declare.
8028 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8029 Update.
8030 * objfiles.c (add_to_objfile_sections_full): New function.
8031 (add_to_objfile_sections): Use it.
8032 (build_section_table): Rewrite.
8033 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8034 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8035 (struct objfile) <sections>: Update comment.
8036 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8037 is NULL.
8038 (ALL_OBJSECTIONS): Use it.
8039 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8040 * solib-frv.c (frv_relocate_main_executable): Update.
8041 * solib-target.c (solib_target_relocate_section_addresses):
8042 Use gdb_bfd_section_index.
8043 * symfile.c (build_section_addr_info_from_section_table):
8044 Use gdb_bfd_section_index.
8045 (build_section_addr_info_from_bfd, place_section): Likewise.
8046 * symtab.c (fixup_section): Update.
8047 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8048
7cbd4a93
TT
80492013-04-08 Tom Tromey <tromey@redhat.com>
8050
8051 * minsyms.h (struct bound_minimal_symbol): New.
8052 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8053 Remove objfile argument.
8054 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8055 Return bound_minimal_symbol.
8056 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8057 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8058 Return bound_minimal_symbol.
8059 (in_gnu_ifunc_stub): Update.
8060 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8061 Remove 'objfile_p' argument.
8062 (lookup_solib_trampoline_symbol_by_pc): Update.
8063 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8064 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8065 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8066 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8067 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8068 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8069 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8070 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8071 stack.c, symtab.c, tui/tui-disasm.c: Update.
8072
f85f34ed
TT
80732013-04-08 Tom Tromey <tromey@redhat.com>
8074
8075 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8076 Use symbol's obstack, not an objfile.
8077 * coffread.c (process_coff_symbol): Update.
8078 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8079 * jv-lang.c (add_class_symbol): Update.
8080 * mdebugread.c (new_symbol): Update.
8081 * minsyms.c (prim_record_minimal_symbol_full)
8082 (terminate_minimal_symbol_table): Update.
8083 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8084 * stabsread.c (define_symbol, read_enum_type): Update.
8085 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8086 Handle Ada specially.
8087 (symbol_set_language): Add 'obstack' argument.
8088 (symbol_set_names): Update.
8089 (symbol_natural_name, symbol_demangled_name): Always use
8090 ada_decode_symbol.
8091 * symtab.h (struct general_symbol_info)
8092 <language_specific::obstack>: New field.
8093 <ada_mangled>: New field.
8094 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8095 (symbol_set_language): Update.
8096
ccde22c0
TT
80972013-04-08 Tom Tromey <tromey@redhat.com>
8098
8099 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8100 Take an obstack, not an objfile.
8101 (symbol_set_names): Update.
8102 * symtab.h (symbol_set_demangled_name): Update.
8103
e623cf5d
TT
81042013-04-08 Tom Tromey <tromey@redhat.com>
8105
8106 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8107 allocate_symbol.
8108 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8109 (read_func_scope): Call allocate_template_symbol.
8110 (new_symbol_full): Call allocate_symbol.
8111 * jit.c (finalize_symtab): Call allocate_symbol.
8112 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8113 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8114 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8115 (common_block_end): Call allocate_symbol.
8116 * symtab.c (allocate_symbol, initialize_symbol)
8117 (allocate_template_symbol): New functions.
8118 * symtab.c (allocate_symbol, initialize_symbol)
8119 (allocate_template_symbol): Declare.
8120 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8121
f6de8ec2
PA
81222013-04-08 Pedro Alves <palves@redhat.com>
8123 Keith Seitz <keiths@redhat.com>
8124
8125 * breakpoint.c (create_breakpoint): Rename
8126 "parse_condition_and_thread" parameter to "parse_arg". Update
8127 describing comment. If !PARSE_ARG, then error out if ARG is not
8128 the empty string after extracting the location.
8129 * breakpoint.h (create_breakpoint): Rename
8130 "parse_condition_and_thread" parameter to "parse_arg".
8131
f65ce5fb
AR
81322013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8133
8134 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8135
cc5925ad
YQ
81362013-04-07 Yao Qi <yao@codesourcery.com>
8137
8138 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8139 and 'addr2' to CORE_ADDR.
8140 * target.c (update_current_target): Update.
8141 * target.h (struct target_ops) <to_trace_find>: Change parameter
8142 type to CORE_ADDR.
8143 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8144 'addr2' to CORE_ADDR.
8145 (tfile_trace_find): Likewise.
8146 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8147 Change local variable 'addr' to type CORE_ADDR.
8148 * tracepoint.h (tfind_1): Update declaration.
8149
d9ac0664
EZ
81502013-04-06 Eli Zaretskii <eliz@gnu.org>
8151
8152 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8153 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8154 Include main.h.
8155
8156 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8157 here...
8158 * main.h (windows_get_absolute_argv0): ...to here.
8159
02142a6c
DE
81602013-04-05 Doug Evans <dje@google.com>
8161
8162 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8163 (read_cutu_die_from_dwo): Add comments.
8164 (read_structure_type): Update comment.
8165 (read_enumeration_type, read_namespace_type): Update comment.
8166 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8167
43662968
JK
81682013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8169
8170 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8171 * Makefile.in (gdb.z): Remove.
8172 (install-only): Remove $(man1dir) and gdb.1 installation.
8173 * gdb.1: Remove.
8174
9ead1b84
JK
81752013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8176
8177 Fix compatibility with Linux kernel 3.8.3.
8178 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8179 to more inner block. Remove parsing of NUMBER from outer block.
8180 Parse NUMBER only if KEYWORD has been identified.
8181
d1794952
JK
81822013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8183
8184 Fix variable name shadowing.
8185 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8186 filename to mapsfilename and update its uses.
8187
9025569e
EZ
81882013-04-05 Eli Zaretskii <eliz@gnu.org>
8189
8190 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8191 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8192 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8193 details of the problem.
8194
c9a6ce02
PA
81952013-04-04 Pedro Alves <palves@redhat.com>
8196 Hui Zhu <hui@codesourcery.com>
8197
8198 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8199 tracepoint, reset its STEP_COUNT and call validate_actionline.
8200
5ff888ce
DE
82012013-04-03 Doug Evans <dje@google.com>
8202
bf6af496
DE
8203 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8204 read_die_and_siblings.
8205 (read_die_and_siblings): New function.
8206 (read_cutu_die_from_dwo): Dump die if requested.
8207 (read_die_and_children): Call read_full_die_1 and
8208 read_die_and_siblings_1.
8209 (read_full_die): Dump die if requested.
8210
8211 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8212
0ac5b59e
DE
8213 * dwarf2read.c (struct dwo_file): New member comp_dir.
8214 Rename member name to dwo_name. All uses updated.
8215 (hash_dwo_file): Include comp_dir in computation.
8216 (eq_dwo_file): Ditto.
8217 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8218 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8219
5ff888ce
DE
8220 * psymtab.c (read_psymtabs_with_fullname): Don't call
8221 psymtab_to_fullname if the basenames are different.
8222
ec83d211
JK
82232013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8224
8225 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8226 New entry about "fullname" presence.
8227
4f4352f7
PA
82282013-04-03 Pedro Alves <palves@redhat.com>
8229
8230 * NEWS: Mention x86_64/Cygwin as new native configuration.
8231
3d1d5ea3
DE
82322013-04-02 Doug Evans <dje@google.com>
8233
8234 * dwarf2read.c (read_structure_type): Fix typo in comment.
8235
be9a8770
PA
82362013-04-02 Pedro Alves <palves@redhat.com>
8237
8238 * NEWS: Mention "set/show debug aarch64", "set/show debug
8239 coff-pe-read" and "set/show debug mach-o".
8240
a46c1e42
PA
82412013-04-02 Pedro Alves <palves@redhat.com>
8242
8243 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8244
3ad18b19
EZ
82452013-04-02 Eli Zaretskii <eliz@gnu.org>
8246
8247 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8248 gdb_string.h is now in common/.
8249
e9f1758d
PA
82502013-04-02 Pedro Alves <palves@redhat.com>
8251
8252 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8253 under "New options".
8254
049dc89b
JK
82552013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8256
8257 Revert this patch:
8258 PR gdb/15275
8259 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8260
c33e31fd
PA
82612013-04-02 Pedro Alves <palves@redhat.com>
8262
8263 PR gdb/15275
8264
8265 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8266 (remote_serial_write): New function.
8267 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8268
ea5f3910
JW
82692013-04-01 Jiong Wang <jiwang@tilera.com>
8270
8271 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8272 "New targets" sections.
ea5f3910 8273
5c6fa7ab
DE
82742013-04-01 Doug Evans <dje@google.com>
8275
c0f78cd4
DE
8276 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8277 (process_enumeration_scope): Simplify.
8278
0186c6a7
DE
8279 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8280 type_unit_group ...
8281 (struct signatured_type): ... to here.
8282 (sig_type_ptr): New typedef.
8283 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8284 out of union 't'. All uses updated.
8285 (dw2_get_file_names_reader): Assert not called for a type unit.
8286 (dw2_get_file_names): Assert not called for a type unit or type
8287 unit group.
8288 (build_type_psymtabs_reader): Assert called for a type unit.
8289 (build_type_psymtab_dependencies): Assert called for a type unit group.
8290
5c6fa7ab
DE
8291 * dwarf2read.c (free_dwo_file): Add comment.
8292 (dwarf2_per_objfile_free): Unref dwp bfd.
8293
b3c0ad67 82942013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8295
8296 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8297 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8298 (read_pe_exported_syms): Remove unused 'exportix'.
8299 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8300 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8301 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8302
e2df1547
AR
83032013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8304
8305 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8306 (print_it_watchpoint): Remove unused 'bl'.
8307 (say_where): Remove unused 'uiout'.
8308 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8309 (bkpt_breakpoint_hit): Remove unused 'b'.
8310 (internal_bkpt_print_it): Remove unused 'uiout'.
8311 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8312
d81e75c0
TD
83132013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8314
8315 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8316 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8317
5a8b3f62
DE
83182013-03-29 Doug Evans <dje@google.com>
8319
ab5088bf
DE
8320 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8321 Delete arg is_dwp. All callers updated.
8322 (open_dwp_file): New function.
8323 (open_and_init_dwp_file): Call it.
8324 (get_dwp_file): New function.
8325 (lookup_dwo_cutu): Call it.
8326
a8ad1e57
DE
8327 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8328 unnecessary, cleanup.
8329
6296d8c1
DE
8330 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8331
b0c7bfa9
DE
8332 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8333 (lookup_dwo_unit): New function.
8334 (init_cutu_and_read_dies): Move DWO handling to new functions.
8335
c88ee1f0
DE
8336 * dwarf2read.c (struct signatured_type): Tweak comment.
8337 (struct dwo_unit): Tweak comment.
8338 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8339 (create_dwo_debug_info_hash_table): Tweak comment.
8340 (dwarf2_per_cu_offset_and_type): Tweak comment.
8341
5a8b3f62
DE
8342 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8343 missing .debug_types section.
8344
9852c492
YQ
83452013-03-29 Yao Qi <yao@codesourcery.com>
8346
8347 * corelow.c: Include "completer.h".
8348 (_initialize_corelow): Call add_target_with_completer with
8349 argument 'filename_completer'.
8350 * tracepoint.c: Likewise.
8351 * exec.c (_initialize_exec): Likewise.
8352 * target.c (add_target): Rename to ...
8353 (add_target_with_completer): ... this. Call set_cmd_completer
8354 if parameter completer is not NULL.
8355 (add_target): New.
8356 * target.h: Include "command.h".
8357 (add_target_with_completer): Declare it.
8358
af312be7
JB
83592013-03-28 Joel Brobecker <brobecker@adacore.com>
8360
8361 * coffread.c (is_import_fixup_symbol): New function.
8362 (record_minimal_symbol): Use is_import_fixup_symbol to
8363 detect import fixup symbols, and discard them.
8364
8a0459fd
DE
83652013-03-28 Doug Evans <dje@google.com>
8366
0349ea22
DE
8367 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8368 types hash table until we know we need it.
8369
f652bce2
DE
8370 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8371 index numbers.
8372
e4a48d9d
DE
8373 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8374 All callers updated.
8375 (dw2_print_stats): Print #read CUs too.
8376 (dump_die_shallow): Print signatured types better.
8377
8a0459fd
DE
8378 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8379 info_or_types_section to section. All uses updated.
8380 (struct dwo_unit): Ditto.
8381
bd3eecc3
PA
83822013-03-28 Pedro Alves <palves@redhat.com>
8383
8384 * NEWS (New options): New section.
8385 (New options): Mention set/show remote trace-status-packet.
8386 * remote.c (PACKET_qTStatus): New enumeration value.
8387 (remote_get_trace_status): Skip sending qTStatus if the packet is
8388 disabled. Use packet_ok.
8389 (_initialize_remote): Register a configuration command for
8390 qTStatus packet.
8391
41245087
DE
83922013-03-28 Doug Evans <dje@google.com>
8393
7edbb660
DE
8394 * symfile.c (find_separate_debug_file): Add comment.
8395 (terminate_after_last_dir_separator): Tweak comment.
8396
0018ea6f
DE
8397 * dwarf2read.c (create_partial_symtab): Add forward decl.
8398 (create_partial_symtab): Move to be closer to other psymtab functions.
8399 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8400
ca69b9e6
DE
8401 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8402 (compute_symtab_includes): Remove unnecessary forward declaration.
8403 (die_needs_namespace): Add comment marking group of functions for
8404 dwarf2 name computation.
8405
a9375afe
DE
8406 * typeprint.c (_initialize_typeprint): Improve type help text.
8407
41245087
DE
8408 * python/python.c (finish_python_initialization): Provide suggestion
8409 for how to tell gdb to find its python files.
8410
7f7cc265
PA
84112013-03-28 Pedro Alves <palves@redhat.com>
8412
8413 PR gdb/15294
8414
8415 * source.c (_initialize_source): Change back "set listsize" to an
8416 integer command.
8417
ec21308c
JK
84182013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8419
8420 PR gdb/15275
8421 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8422
840a9a1f
PA
84232013-03-27 Pedro Alves <palves@redhat.com>
8424
8425 * top.c (history_size): Rename to ...
8426 (history_size_setshow_var): ... this. Add comment.
8427 (show_commands): Use readline's 'history_length' instead of
8428 computing the history length by calling history_get in a loop.
8429 (set_history_size_command): Error out for sizes over INT_MAX.
8430 Restore previous history size on invalid size.
8431 (init_history): If HISTSIZE is negative, leave the history size as
8432 zero. Add comments.
8433 (init_main): Adjust.
8434
826ecc4d
PA
84352013-03-27 Pedro Alves <palves@redhat.com>
8436
8437 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8438 coff_pe_read" command to "set debug coff-pe-read".
8439
0ccfeeae
MM
84402013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8441
8442 * record.c (command_size_to_target_size): Fix size comparison.
8443 Change parameter type from pointer to integer to integer.
8444 Update all users.
8445
40653b35
PM
84462013-03-27 Pierre Muller <muller@sourceware.org>
8447
8448 * windows-nat.c (handle_output_debug_string): Avoid typecast
8449 from integer of different size warning.
8450
c62fa0e2
JB
84512013-03-26 Joel Brobecker <brobecker@adacore.com>
8452
8453 * windows-nat.c (handle_output_debug_string): Add empty line
8454 after local block variable definition.
8455
2c619be2
PA
84562013-03-26 Pedro Alves <palves@redhat.com>
8457
8458 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8459 (net_open): Make 'polls' local unsigned.
8460
1b493192
PA
84612013-03-26 Pedro Alves <palves@redhat.com>
8462
8463 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8464 a zuinteger command instead of uinteger.
8465
7ee70bf5
PA
84662013-03-26 Pedro Alves <palves@redhat.com>
8467
8468 * record-full.c (record_full_insn_num): Make it unsigned.
8469 (record_full_check_insn_num, record_full_message)
8470 (record_full_registers_change, record_full_xfer_partial): Remove
8471 record_full_insn_max_num check (it's always != 0).
8472 (record_full_info, record_full_restore): Use %u as format string.
8473 (): Use %u as format string.
8474 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8475 check (it's always != 0).
8476
dfd1f9bb
PA
84772013-03-26 Pedro Alves <palves@redhat.com>
8478
8479 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8480 and "set dcache size" commands zuinteger instead of uinteger.
8481
addb4faf
PA
84822013-03-26 Pedro Alves <palves@redhat.com>
8483
8484 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8485 command zuinteger instead of uinteger.
8486
b75bf488
PA
84872013-03-26 Pedro Alves <palves@redhat.com>
8488
8489 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8490 zuinteger instead of uinteger.
8491
42c634cb
PA
84922013-03-26 Pedro Alves <palves@redhat.com>
8493
8494 * record.c (record_insn_history_size_setshow_var)
8495 (record_call_history_size_setshow_var): New globals.
8496 (command_size_to_target_size): New function.
8497 (cmd_record_insn_history, cmd_record_call_history): Use
8498 command_size_to_target_size instead of cast.
8499 (validate_history_size, set_record_insn_history_size)
8500 (set_record_call_history_size): New functions.
8501 (_initialize_record): Install set_record_insn_history_size and
8502 set_record_call_history_size as "set" hooks of "set record
8503 instruction-history-size" and "set record
8504 function-call-history-size".
8505
1fb2e2b5
PA
85062013-03-26 Pedro Alves <palves@redhat.com>
8507
8508 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8509 use with history_max_entries use. Remove FIXME note.
8510
99c819ee
MM
85112013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8512
8513 * record-btrace.c (record_btrace_close): Call
8514 record_btrace_auto_disable.
8515
9f9e404c
JB
85162013-03-25 Joel Brobecker <brobecker@adacore.com>
8517
8518 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8519
ebcdfe33
DE
85202013-03-25 Doug Evans <dje@google.com>
8521
8522 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8523
24955f63
TT
85242013-03-25 Tom Tromey <tromey@redhat.com>
8525
8526 PR symtab/11462:
8527 * c-exp.y (exp): Add new productions for destructors after '.' and
8528 '->'.
8529 (write_destructor_name): New function.
8530
fce632b6
TT
85312013-03-25 Tom Tromey <tromey@redhat.com>
8532
8533 PR c++/9197:
8534 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8535 value_struct_elt, not lookup_struct_elt_type.
8536 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8537 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8538 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8539
a4341769
YQ
85402013-03-25 Yao Qi <yao@codesourcery.com>
8541
8542 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8543 instead of '_mkdir'.
8544
b5981e5a
EZ
85452013-03-23 Eli Zaretskii <eliz@gnu.org>
8546
8547 * windows-nat.c (windows_get_absolute_argv0): New function.
8548 * windows-nat.h: Add its prototype.
8549
8550 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8551 Use IS_DIR_SEPARATOR instead of looking for a character inside
8552 SLASH_STRING. Include filenames.h.
8553 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8554 relocate_gdb_directory works when passed gdb_program_name.
8555 Include windows-nat.h.
8556
598d3636
JK
85572013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8558
8559 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8560 * remote.c (trace_error): Remove the special handling of '2'.
8561 (readchar) <SERIAL_EOF>
8562 (readchar) <SERIAL_ERROR>
8563 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8564 (remote_get_trace_status): Call throw_exception if EX is
8565 TARGET_CLOSE_ERROR.
8566 * utils.c (perror_with_name): Rename to ...
8567 (throw_perror_with_name): ... here. New parameter errcode, describe it
8568 in the function comment.
8569 (perror_with_name): New function wrapper.
8570 * utils.h (enum errors): New stub declaration.
8571 (throw_perror_with_name): New declaration.
8572
82b821e9
PA
85732013-03-22 Pedro Alves <palves@redhat.com>
8574 Yao Qi <yao@codesourcery.com>
8575 Mark Kettenis <kettenis@gnu.org>
8576
8577 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8578 Don't let the user set the value to UINT_MAX directly.
8579 <var_integer>: Don't let the user set the value to INT_MAX
8580 directly.
8581
78a095c3
JK
85822013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8583
8584 * remote.c (remote_unpush_target): New function.
8585 (remote_open_1): Remove two pop_target calls, update one comment, add
8586 comment to target_preopen call. Replace pop_target call by
8587 remote_unpush_target call.
8588 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8589 pop_target calls by remote_unpush_target calls.
8590
3e74e146
PA
85912013-03-22 Pedro Alves <palves@redhat.com>
8592
8593 * linux-nat.c (linux_child_follow_fork): Don't call
8594 linux_enable_event_reporting.
8595 (linux_handle_extended_wait): Don't call
8596 linux_enable_event_reporting.
8597
a2213dca
PA
85982013-03-22 Pedro Alves <palves@redhat.com>
8599
8600 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8601 use it to rewrite the trampoline buffers with type gdb_byte[], and
8602 undefine the macro. Remove char* cast.
8603
bd712aed
DE
86042013-03-21 Doug Evans <dje@google.com>
8605
8606 New commands "mt set per-command {space,time,symtab} {on,off}".
8607 * NEWS: Add entry.
8608 * event-top.c: #include "maint.h".
8609 * main.c: #include "maint.h".
8610 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8611 timeval-utils.h, maint.h, cli/cli-setshow.h.
8612 (per_command_time, per_command_space): New static globals.
8613 (per_command_symtab): New static global.
8614 (per_command_setlist, per_command_showlist): New static globals.
8615 (struct cmd_stats): Move here from utils.c.
8616 (set_per_command_time): Renamed from set_display_time in utils.c
8617 and moved here. All callers updated.
8618 (set_per_command_space): Renamed from set_display_space in utils.c
8619 and moved here. All callers updated.
8620 (count_symtabs_and_blocks): New function.
8621 (report_command_stats): Moved here from utils.c. Add support for
8622 printing symtab stats. Only print data if enabled before command
8623 executed.
8624 (make_command_stats_cleanup): Ditto.
8625 (sert_per_command_cmd, show_per_command_cmd): New functions.
8626 (_initialize_maint_cmds): Add new commands
8627 mt set per-command {space,time,symtab} {on,off}.
8628 * maint.h: New file.
8629 * top.c: #include "maint.h".
8630 * utils.c (reset_prompt_for_continue_wait_time): New function.
8631 (get_prompt_for_continue_wait_time): New function.
8632 * utils.h (reset_prompt_for_continue_wait_time): Declare
8633 (get_prompt_for_continue_wait_time): Declare.
8634 (make_command_stats_cleanup): Moved to maint.h.
8635 (set_display_time, set_display_space): Moved to maint.h and renamed
8636 to set_per_command_time, set_per_command_space.
8637 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8638 parse_binary_operation and made non-static. Don't call error,
8639 just return an error marker. All callers updated.
8640 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8641
d76488d8
TT
86422013-03-21 Tom Tromey <tromey@redhat.com>
8643
8644 * symfile.c (alloc_section_addr_info): Update header. Don't set
8645 'num_sections' field.
8646 (build_section_addr_info_from_section_table): Set 'num_sections'.
8647 (build_section_addr_info_from_bfd): Likewise.
8648 (build_section_addr_info_from_objfile): Remove dead loop
8649 condition.
8650 (free_section_addr_info): Unconditionally call xfree.
8651 (relative_addr_info_to_section_offsets, addrs_section_sort)
8652 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8653 condition.
8654 (syms_from_objfile_1): Remove dead 'if' condition. Check
8655 'num_sections'.
8656 (add_symbol_file_command): Set 'num_sections'.
8657 * symfile-mem.c (symbol_file_add_from_memory): Set
8658 'num_sections'.
8659 * somread.c (som_symfile_offsets): Remove dead loop condition.
8660 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8661 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8662
a72e5169 86632013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8664
8665 * tracepoint.h (decode_agent_options): Add 'trace_string'
8666 argument.
8667 * tracepoint.c (decode_agent_options): Add 'trace_string'
8668 argument.
8669 (validate_actionline): Update.
8670 (collect_symbol): Add 'trace_string' argument.
8671 (struct add_local_symbols_data) <trace_string>: New field.
8672 (do_collect_symbol): Update.
8673 (add_local_symbols): Add 'trace_string' argument.
8674 (encode_actions_1): Update.
8675 (trace_dump_actions): Update.
8676 * dwarf2loc.c (access_memory): Update.
8677 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8678 * ax-general.c (new_agent_expr): Update.
8679 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8680 (gen_trace_for_return_address): Add argument.
8681 (trace_kludge, trace_string_kludge): Remove.
8682 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8683 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8684 (gen_trace_for_var): Add 'trace_string' argument.
8685 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8686 (gen_printf, agent_eval_command_one): Update.
8687
b2f83c08
TT
86882013-03-21 Tom Tromey <tromey@redhat.com>
8689
8690 PR exp/15109:
8691 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8692 Handle FILENAME token.
8693
9507860e
TT
86942013-03-21 Tom Tromey <tromey@redhat.com>
8695
8696 * c-exp.y (YYPRINT): Define.
8697 (c_print_token): New function.
8698
e403aa4b
TT
86992013-03-21 Tom Tromey <tromey@redhat.com>
8700
8701 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8702
af307d6a
YQ
87032013-03-21 Yao Qi <yao@codesourcery.com>
8704
8705 * ctf.c: Include "gdb_stat.h".
8706 [USE_WIN32API]: New macro 'mkdir'.
8707 (ctf_start): Use permission bits macros if they are defined.
8708
fb81d016
KS
87092013-03-20 Keith Seitz <keiths@redhat.com>
8710
8711 * breakpoint.h (struct breakpoint): Add comment to
8712 extra_string indicating that this member is mallod'd.
8713 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8714
ef0026f0
PA
87152013-03-20 Pedro Alves <palves@redhat.com>
8716
8717 PR gdb/15289
8718
8719 * cli/cli-setshow.c (do_set_command)
8720 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8721 the result of parsing the command argument. Throw error if the
8722 value is greater than UINT_MAX. Print the invalid value with
8723 plongest.
8724 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8725 result of parsing the command argument. Throw error if the value
8726 is greater than INT_MAX, not greater or equal. Also throw error
8727 if the value is less than INT_MIN. Print the invalid value with
8728 plongest.
8729 <var_zuinteger_unlimited>: Throw error if the value is greater
8730 than INT_MAX, not greater or equal.
8731 (do_show_command) <var_integer, var_zinteger,
8732 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8733
24d6c2a0
TT
87342013-03-20 Tom Tromey <tromey@redhat.com>
8735
8736 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8737 if possible.
8738 * dwarf2read.c (read_func_scope): Remove old FIXME.
8739 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8740 not LOC_COMPUTED.
8741 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8742 Unconditionally call via computed ops, if possible.
8743 * printcmd.c (address_info): Unconditionally call via computed ops,
8744 if possible.
8745 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8746 if possible.
8747 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8748 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8749 if possible.
8750
f1e6e072
TT
87512013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8752 Tom Tromey <tromey@redhat.com>
8753
8754 PR symtab/8421:
8755 * coffread.c (coff_register_index): New global.
8756 (process_coff_symbol, coff_read_enum_type): Set
8757 SYMBOL_ACLASS_INDEX.
8758 (_initialize_coffread): Initialize new global.
8759 * dwarf2loc.c (locexpr_find_frame_base_location)
8760 (dwarf2_block_frame_base_locexpr_funcs)
8761 (loclist_find_frame_base_location)
8762 (dwarf2_block_frame_base_loclist_funcs): New.
8763 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8764 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8765 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8766 (dwarf2_block_frame_base_loclist_funcs): New.
8767 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8768 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8769 globals.
8770 (read_func_scope): Update.
8771 (fixup_go_packaging, mark_common_block_symbol_computed)
8772 (var_decode_location, new_symbol_full, dwarf2_const_value):
8773 Set SYMBOL_ACLASS_INDEX.
8774 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8775 (_initialize_dwarf2_read): Initialize new globals.
8776 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8777 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8778 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8779 globals.
8780 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8781 (_initialize_mdebugread): Initialize new globals.
8782 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8783 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8784 (stab_register_index, stab_regparm_index): New globals.
8785 (define_symbol, read_enum_type, common_block_end): Set
8786 SYMBOL_ACLASS_INDEX.
8787 (_initialize_stabsread): Initialize new globals.
8788 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8789 globals.
8790 (MAX_SYMBOL_IMPLS): New define.
8791 (register_symbol_computed_impl, register_symbol_block_impl)
8792 (register_symbol_register_impl)
8793 (initialize_ordinary_address_classes): New functions.
8794 (_initialize_symtab): Call initialize_ordinary_address_classes.
8795 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8796 (struct symbol_impl): New.
8797 (SYMBOL_ACLASS_BITS): New define.
8798 (struct symbol) <aclass, ops>: Remove fields.
8799 <aclass_index>: New field.
8800 (symbol_impls): Declare.
8801 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8802 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8803 (register_symbol_computed_impl, register_symbol_block_impl)
8804 (register_symbol_register_impl): Declare.
8805 (struct symbol_computed_ops): Add location_has_loclist.
8806 (struct symbol_block_ops): New.
8807 (SYMBOL_BLOCK_OPS): New.
8808 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8809
dbccfd4c
TT
88102013-03-20 Tom Tromey <tromey@redhat.com>
8811
8812 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8813 (print_partial_symbols, recursively_search_psymtabs): Use
8814 PSYMBOL_CLASS.
8815
e3f1ad4f
PM
88162013-03-20 Pierre Muller <muller@sourceware.org>
8817
8818 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8819 addtion, subtraction, multiplication and division binary operator.
8820
460014f5
JK
88212013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8822
8823 Code cleanup.
8824 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8825 * bsd-kvm.c (bsd_kvm_close): Likewise.
8826 * bsd-uthread.c (bsd_uthread_close): Likewise.
8827 * corelow.c (core_close): Likewise.
8828 (core_close_cleanup): Remove parameter quitting from a caller.
8829 * event-top.c (async_disconnect): Likewise.
8830 * exec.c (exec_close_1): Remove parameter quitting.
8831 * go32-nat.c (go32_close): Likewise.
8832 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8833 parameter quitting from a caller.
8834 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8835 variable.
8836 (mips_linux_close): Remove parameter quitting. Remove parameter
8837 quitting from a caller.
8838 * monitor.c (monitor_close): Remove parameter quitting.
8839 * monitor.h (monitor_close): Likewise.
8840 * record-btrace.c (record_btrace_close): Likewise.
8841 * record-full.c (record_full_close): Likewise.
8842 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8843 it also from fprintf_unfiltered.
8844 * remote-mips.c (mips_close): Remove parameter quitting.
8845 (mips_detach): Remove parameter quitting from a caller.
8846 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8847 (gdbsim_close): Remove duplicate function comment. Remove parameter
8848 quitting and remove it also from printf_filtered.
8849 * remote.c (remote_close): Remove parameter quitting.
8850 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8851 * target.c (update_current_target): Remove parameter int from to_close
8852 de_fault.
8853 (push_target, unpush_target, pop_target): Remove parameter quitting from
8854 a caller.
8855 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8856 Remove parameter quitting from a caller.
8857 (target_preopen): Remove parameter quitting from a caller.
8858 (target_close): Remove parameter quitting. Remove parameter quitting
8859 from a caller two times. Remove parameter quitting also from
8860 fprintf_unfiltered.
8861 * target.h (struct target_ops): Remove parameter quitting and as int
8862 from fields to_xclose and to_close.
8863 (extern struct target_ops current_target):
8864 (target_close, pop_all_targets): Remove parameter quitting. Update the
8865 comment.
8866 (pop_all_targets_above): Remove parameter quitting.
8867 * top.c (quit_target): Remove parameter quitting from a caller.
8868 * tracepoint.c (tfile_close): Remove parameter quitting.
8869 * windows-nat.c (windows_close): Remove parameter quitting.
8870
35a7120b
CV
88712013-03-20 Corinna Vinschen <vinschen@redhat.com>
8872
8873 * windows-nat.c (handle_output_debug_string): Replace call
8874 to string_to_core_addr with call to strtoull.
8875
8249a5a9
YQ
88762013-03-20 Yao Qi <yao@codesourcery.com>
8877
8878 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8879 and write it to CTF metadata.
8880
2c15ef43
CV
88812013-03-19 Corinna Vinschen <vinschen@redhat.com>
8882
8883 * windows-nat.c (handle_output_debug_string): Change type of n to
8884 SIZE_T to avoid crash on 64 bit systems.
8885
1cdd3232
EZ
88862013-03-17 Eli Zaretskii <eliz@gnu.org>
8887
8888 * python/python-internal.h (HAVE_SNPRINTF)
8889 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8890 about redefinition of snprintf by pyerrors.h.
8891
3cb2ab1a
SE
88922013-03-15 Steve Ellcey <sellcey@mips.com>
8893
8894 * remote-sim.c (sim_command_completer): Make char arguments const.
8895
9ce98649
TT
88962013-03-15 Tom Tromey <tromey@redhat.com>
8897
8898 PR c++/15116:
8899 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8900
dccee2de
TT
89012013-03-14 Tom Tromey <tromey@redhat.com>
8902
8903 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8904 New fields.
8905 (get_file_crc): Move from symfile.c.
8906 (gdb_bfd_crc): New function.
8907 * gdb_bfd.h (gdb_bfd_crc): Declare.
8908 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8909 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8910 (separate_debug_file_exists): Use gdb_bfd_crc.
8911
cc0ea93c
TT
89122013-03-14 Tom Tromey <tromey@redhat.com>
8913
8914 * symfile.c (get_debug_link_info): Remove.
8915 (find_separate_debug_file_by_debuglink): Use
8916 bfd_get_debug_link_info.
8917
08c23b0d
TT
89182013-03-14 Tom Tromey <tromey@redhat.com>
8919
8920 * symtab.c (error_in_psymtab_expansion): New function.
8921 (lookup_symbol_aux_quick)
8922 (basic_lookup_transparent_type_quick): Remove "last resort"
8923 code. Use error_in_psymtab_expansion.
8924
288e77a7
JK
89252013-03-14 Doug Evans <dje@google.com>
8926 Jan Kratochvil <jan.kratochvil@redhat.com>
8927
8928 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8929 any successful compare_filenames_for_search or FILENAME_CMP.
8930 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8931 * symtab.c (iterate_over_some_symtabs): Likewise.
8932
8f1b8b82
JK
89332013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8934
8935 * source.c (print_source_lines_base): Make a local copy of
8936 symtab_to_fullname.
8937
23eb71e4
JK
89382013-03-14 Hui Zhu <hui_zhu@mentor.com>
8939 Jan Kratochvil <jan.kratochvil@redhat.com>
8940
8941 * source.c (print_source_lines_base): Suppress "file" for TUI.
8942
bb869963
SDJ
89432013-03-14 Keith Seitz <keiths@redhat.com>
8944 Alan Matsuoka <alanm@redhat.com>
8945
8946 PR c++/15203
8947 PR c++/15210
8948 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8949 TYPE_CODE_METHOD.
8950 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8951 symbols.
8952
d6682f9e
YQ
89532013-03-14 Yao Qi <yao@codesourcery.com>
8954
8955 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8956 status to tfile if trace is stopped by command 'tstop'.
8957
a22fa6e4
YQ
89582013-03-14 Yao Qi <yao@codesourcery.com>
8959
8960 * tracepoint.c (tfile_write_status): Write trace notes and user
8961 name into tfile if they are not NULL.
8962
d0353e76
YQ
89632013-03-14 Hui Zhu <hui@codesourcery.com>
8964 Yao Qi <yao@codesourcery.com>
8965
8966 * Makefile.in (REMOTE_OBS): Add ctf.o.
8967 (SFILES): Add ctf.c.
8968 (HFILES_NO_SRCDIR): Add ctf.h.
8969 * ctf.c, ctf.h: New files.
8970 * tracepoint.c: Include 'ctf.h'.
8971 (collect_pseudocommand): Remove static.
8972 (trace_save_command): Parse option "-ctf".
8973 Produce different trace file writers per option.
8974 Adjust output message.
8975 (trace_save_tfile, trace_save_ctf): New.
8976 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8977 * mi/mi-main.c: Include 'ctf.h'.
8978 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8979 trace_save_tfile or trace_save_ctf.
8980 * NEWS: Mention these changes.
8981
3f43bc09
YQ
89822013-03-14 Yao Qi <yao@codesourcery.com>
8983
8984 * tracepoint.c (trace_file_writer_xfree): New.
8985 (struct tfile_writer_data): New.
8986 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8987 (tfile_write_header, tfile_write_regblock_type): New.
8988 (tfile_write_status, tfile_write_uploaded_tsv): New.
8989 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8990 (tfile_write_raw_data, (tfile_end): New.
8991 (tfile_write_ops): New global variable.
8992 (TRACE_WRITE_R_BLOCK): New macro.
8993 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8994 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8995 (TRACE_WRITE_V_BLOCK): New macro.
8996 (trace_save): Add extra one parameter WRITER. Make it static.
8997 Use WRITER to writer trace.
8998 (tfile_trace_file_writer_new): New.
8999 (trace_save_command): Caller update.
9000 (trace_save_tfile): Write trace data in TFILE format.
9001 * tracepoint.h (struct trace_frame_write_ops): New.
9002 (struct trace_file_write_ops): New.
9003 (struct trace_file_writer): New.
9004 (trace_save): Remove its declaration.
9005 (trace_save_tfile): Declare it.
9006 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9007 instead of trace_save.
9008
58665b40
PA
90092013-03-13 Pedro Alves <palves@redhat.com>
9010
9011 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9012
10217050
PA
90132013-03-13 Pedro Alves <palves@redhat.com>
9014
9015 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9016 commented out code.
9017 * demangle.c (current_demangling_style_string): Make it const.
9018 (set_demangling_command): Assert the demangling style is known.
9019 Remove all handling of unknown styles. Set
9020 'current_demangling_style_string' to an element of the
9021 demangling_style_names array.
9022 (set_demangling_style): Delete.
9023 (_initialize_demangler): Set current_demangling_style_string to the
9024 element of the demangling_style_names array that corresponds to
9025 the default demangling style. Remove FIXME note. Don't call
9026 set_demangling_style.
9027 * gdb-demangle.h (set_demangling_style): Remove declaration.
9028
6f937416
PA
90292013-03-13 Pedro Alves <palves@redhat.com>
9030
9031 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9032 fields const.
9033 (ada_make_symbol_completion_list): Make "text0" parameter const.
9034 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9035 * breakpoint.c (condition_completer): Make "text" and "word"
9036 parameters const. Adjust.
9037 (check_tracepoint_command): Adjust to validate_actionline
9038 prototype change.
9039 (catch_syscall_completer): Make "text" and "word" parameters
9040 const.
9041 * cli/cli-cmds.c (show_user): Make "comname" local const.
9042 (valid_command_p): Make "command" parameter const.
9043 (alias_command): Make "alias_prefix" and "command_prefix" locals
9044 const.
9045 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9046 (add_alias_cmd): Make "name" and "oldname" parameters const.
9047 Adjust. No longer make copy of OLDNAME.
9048 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9049 (add_setshow_cmd_full, add_setshow_enum_cmd)
9050 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9051 (add_setshow_filename_cmd, add_setshow_string_cmd)
9052 (add_setshow_string_noescape_cmd)
9053 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9054 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9055 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9056 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9057 Make "name" parameter const.
9058 (help_cmd): Rename "command" parameter to "arg". New const local
9059 "command".
9060 (find_cmd): Make "command" parameter const.
9061 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9062 deprecated_cmd_warning prototype change.
9063 (undef_cmd_error): Make "cmdtype" parameter const.
9064 (lookup_cmd): Make "line" parameter const.
9065 (deprecated_cmd_warning): Change type of "text" parameter to
9066 pointer to const char, from pointer to pointer to char. Adjust.
9067 (lookup_cmd_composition): Make "text" parameter const.
9068 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9069 parameters const.
9070 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9071 const.
9072 * cli/cli-script.c (validate_comname): Make "tem" local const.
9073 (define_command): New const local "tem_c". Use it in calls to
9074 lookup_cmd.
9075 (document_command): Make "tem" and "comfull" locals const.
9076 (show_user_1): Make "prefix" and "name" parameters const.
9077 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9078 const.
9079 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9080 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9081 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9082 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9083 (complete_on_enum, add_setshow_enum_cmd)
9084 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9085 (add_setshow_filename_cmd, add_setshow_string_cmd)
9086 (add_setshow_string_noescape_cmd)
9087 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9088 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9089 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9090 Change prototypes, constifying strings.
9091 * completer.c (noop_completer, filename_completer): Make "text"
9092 and "prefix" parameters const.
9093 (location_completer, expression_completer)
9094 (complete_line_internal): Make "text" and "prefix" parameters
9095 const and adjust.
9096 (command_completer, signal_completer): Make "text" and "prefix"
9097 parameters const.
9098 * completer.h (noop_completer, filename_completer)
9099 (expression_completer, location_completer, command_completer)
9100 (signal_completer): Change prototypes.
9101 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9102 parameters const.
9103 * cp-abi.c (cp_abi_completer): Likewise.
9104 * expression.h (parse_expression_for_completion): Change
9105 prototype.
9106 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9107 parameters const.
9108 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9109 * infrun.c (handle_completer): Make "text" and "word" parameters
9110 const.
9111 * interps.c (interpreter_completer): Make "text" and "word"
9112 parameters const.
9113 * language.h (struct language_defn)
9114 <la_make_symbol_completion_list>: Make "text" and "word"
9115 parameters const.
9116 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9117 (parse_exp_in_context): Rename to ...
9118 (parse_exp_in_context_1): ... this.
9119 (parse_exp_in_context): Reimplement, with const hack from
9120 parse_exp_1.
9121 (parse_expression_for_completion): Make "string" parameter const.
9122 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9123 to pointer to const char. Adjust.
9124 (print_command_1): Make "exp" parameter const.
9125 (output_command): Rename to ...
9126 (output_command_const): ... this. Make "exp" parameter const.
9127 (output_command): Reimplement.
9128 (x_command): Adjust.
9129 (display_command): Rename "exp" parameter to "arg". New "exp"
9130 local, const version of "arg".
9131 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9132 "cmd_name" local const.
9133 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9134 call.
9135 (cmdpy_completer): Make "text" and "word" parameters const.
9136 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9137 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9138 const.
9139 * remote.c (_initialize_remote): Make "cmd_name" local const.
9140 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9141 parameters const. Adjust.
9142 (completion_list_add_fields): Make "sym_text", "text" and "word"
9143 parameters const.
9144 (struct add_name_data) <sym_text, text, word>: Make fields const.
9145 (default_make_symbol_completion_list_break_on): Make "text" and
9146 "word" parameters const. Adjust locals.
9147 (default_make_symbol_completion_list)
9148 (make_symbol_completion_list, make_symbol_completion_type)
9149 (make_symbol_completion_list_fn): Make "text" and "word"
9150 parameters const.
9151 (make_file_symbol_completion_list): Make "text", "word" and
9152 "srcfile" parameters const. Adjust locals.
9153 (add_filename_to_list): Make "text" and "word" parameters const.
9154 (struct add_partial_filename_data) <text, word>: Make fields
9155 const.
9156 (make_source_files_completion_list): Make "text" and "word"
9157 parameters const.
9158 * symtab.h (default_make_symbol_completion_list_break_on)
9159 (default_make_symbol_completion_list, make_symbol_completion_list)
9160 (make_symbol_completion_type enum type_code)
9161 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9162 (make_source_files_completion_list): Change prototype.
9163 * top.c (execute_command): Adjust to pass pointer to pointer to
9164 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9165 change.
9166 (set_verbose): Make "cmdname" local const.
9167 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9168 and adjust.
9169 (validate_actionline): Make "line" parameter a pointer to const
9170 char, and adjust.
9171 (encode_actions_1): Make "action_exp" local const, and adjust.
9172 (encode_actions): Adjust.
9173 (replace_comma): Delete.
9174 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9175 const, and adjust. Don't frob the action string while splitting
9176 it at commas. Instead, make a copy of each split substring in
9177 turn.
9178 (trace_dump_command): Adjust to validate_actionline prototype
9179 change.
9180 * tracepoint.h (decode_agent_options, decode_agent_options)
9181 (encode_actions, validate_actionline): Change prototypes.
9182 * valprint.h (output_command): Delete declaration.
9183 (output_command_const): Declare.
9184 * value.c (function_destroyer): Cast const away in xfree call.
9185
a0bcdaa7
PA
91862013-03-13 Pedro Alves <palves@redhat.com>
9187
9188 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9189 rather than casting 'const char * const *' to 'const char **'.
9190 * ada-lex.l (processInt): Make "trailer" local const. Remove
9191 'const char **' cast.
9192 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9193 locals, and use those as strtol output pointer, instead than doing
9194 invalid casts to from 'const char **' to 'char **'.
9195 (_initialize_demangle): Remove cast.
9196 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9197 locals, and use those as strtol output pointer, instead than doing
9198 invalid casts to from 'const char **' to 'char **'.
9199 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9200 casts.
9201 * stap-probe.c (stap_parse_register_operand)
9202 (stap_parse_single_operand): Likewise.
9203
8ddb1965
YQ
92042013-03-13 Yao Qi <yao@codesourcery.com>
9205
9206 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9207 the last matched 'V' blcok in trace frame.
9208
2d450646
JB
92092013-03-12 Joel Brobecker <brobecker@adacore.com>
9210
9211 * NEWS: Create a new section for the next release branch.
9212 Rename the section of the current branch, now that it has
9213 been cut.
9214
b4b79973 92152013-03-12 Joel Brobecker <brobecker@adacore.com>
9216
9217 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9218 * version.in: Bump version to 7.6.50.20130312-cvs.
9219
ee047554
KS
92202013-03-12 Keith Seitz <keiths@redhat.com>
9221
9222 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9223 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9224 Remove temporary copy of input string.
9225 (mi_execute_command_wrapper): Make "cmd" const.
9226 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9227 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9228 Use const strings.
9229 (mi_parse): Make "cmd" const.
9230 Use const strings.
9231 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9232
bbc13ae3
KS
92332013-03-12 Keith Seitz <keiths@redhat.com>
9234
9235 * ada-lang.c (ada_read_renaming_var_value): Pass const
9236 pointer to expression string to parse_exp_1.
9237 (create_excep_cond_exprs): Likewise.
9238 * ax-gdb.c (agent_eval_command_one): Likewise.
9239 (maint_agent_printf_command): Likewise.
9240 Constify much of the string handling/parsing.
9241 * breakpoint.c (set_breakpoint_condition): Pass const
9242 pointer to expression string to parse_exp_1.
9243 (update_watchpoint): Likewise.
9244 (parse_cmd_to_aexpr): Constify string handling.
9245 Pass const pointer to parse_exp_1.
9246 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9247 (find_condition_and_thread): Likewise.
9248 Make TOK const.
9249 (watch_command_1): Make "arg" const.
9250 Constify string handling.
9251 Copy the expression string instead of changing the input
9252 string.
9253 (update_breakpoint_location): Pass const pointer to
9254 parse_exp_1.
9255 * eval.c (parse_and_eval_address): Make "exp" const.
9256 (parse_to_comma_and_eval): Make "expp" const.
9257 (parse_and_eval): Make "exp" const.
9258 * expression.h (parse_expression): Make argument const.
9259 (parse_exp_1): Make first argument const.
9260 * findcmd.c (parse_find_args): Treat "args" as const.
9261 * linespec.c (parse_linespec): Pass const pointer to
9262 linespec_expression_to_pc.
9263 (linespec_expression_to_pc): Make "exp_ptr" const.
9264 * parse.c (parse_exp_1): Make "stringptr" const.
9265 Make a copy of the expression to pass to parse_exp_in_context until
9266 this whole interface can be constified.
9267 (parse_expression): Make "string" const.
9268 * printcmd.c (ui_printf): Treat "arg" as const.
9269 Handle const strings.
9270 * tracepoint.c (validate_actionline): Pass const pointer to
9271 all calls to parse_exp_1.
9272 (encode_actions_1): Likewise.
9273 * value.h (parse_to_comma_and_eval): Make argument const.
9274 (parse_and_eval_address): Likewise.
9275 (parse_and_eval): Likewise.
9276 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9277 (varobj_set_value): Likewise.
9278 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9279 constify string handling.
9280 Pass const pointers to parse_and_eval_address and
9281 parse_to_comman_and_eval.
9282 * cli/cli-utils.c (skip_to_space): Rename to ...
9283 (skip_to_space_const): ... this. Handle const strings.
9284 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9285 skip_to_space_const.
9286 (skip_to_space_const): Declare.
9287 * common/format.c (parse_format_string): Make "arg" const.
9288 Handle const strings.
9289 * common/format.h (parse_format_string): Make "arg" const.
9290 * gdbserver/ax.c (ax_printf): Make "format" const.
9291 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9292 of the expression string.
9293
f3cec7e6
HZ
92942013-03-12 Hui Zhu <hui@codesourcery.com>
9295
9296 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9297
9df7235c
HZ
92982013-03-12 Yao Qi <yao@codesourcery.com>
9299 Hui Zhu <hui@codesourcery.com>
9300
9301 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9302 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9303 DW_OP_deref_size.
9304
82d049ab
PH
93052013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9306
5f8e0b8f
MF
9307 * ada-lex.l (rules): Only recognize 'thread' as a
9308 delimiter when followed by numerals, as for c-exp.y.
9309 Use new rewind_to_char function to rewind the input for
9310 expression-delimiting tokens.
9311 (rewind_to_char): New function.
82d049ab 9312
8c1fb155
JK
93132013-03-11 Pedro Alves <palves@redhat.com>
9314 Jan Kratochvil <jan.kratochvil@redhat.com>
9315
9316 * configure: Regenerate.
9317 * configure.ac (check dynamic export flag): Link python test with
9318 $PYTHON_LIBS.
9319
cc81e1c6
DE
93202013-03-11 Doug Evans <dje@google.com>
9321 Keith Seitz <keiths@redhat.com>
9322
9323 * linespec.c (find_linespec_symbols): Call find_function_symbols
9324 first, and then call lookup_prefix_sym/find_method.
9325
39086a0e
PA
93262013-03-11 Pedro Alves <palves@redhat.com>
9327
9328 * charset.c (convert_between_encodings): Don't cast between
9329 different pointer to pointer types. Instead, make the 'inp' local
9330 be of the type iconv expects.
9331 (wchar_iterate): Don't cast between different pointer to pointer
9332 types. Instead, use new pointer local of the type iconv expects.
9333 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9334 Add new local of type char pointer, and use it to get a
9335 char/string view of the byte buffer, instead of casting between
9336 pointer to pointer types.
9337
90585175
HAQ
93382013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9339
9340 * remote.c (remote_set_trace_buffer_size): Move != operator
9341 to the start of next line to fix an ARI warning.
9342
59ea5688
MM
93432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9344
9345 * NEWS: Add record changes.
9346
946287b7
MM
93472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9348
9349 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9350 the instruction history disassembly.
9351 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9352 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9353
afedecd3
MM
93542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9355
9356 * Makefile.in (SFILES): Add record-btrace.c
9357 (COMMON_OBS): Add record-btrace.o
9358 * record-btrace.c: New.
9359 * objfiles.c: Include btrace.h.
9360 (free_objfile): call btrace_free_objfile.
9361
15984c13
MM
93622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9363
9364 * target.c (target_call_history, target_call_history_from,
9365 target_call_history_range): New.
9366 * target.h (target_ops) <to_call_history, to_call_history_from,
9367 to_call_history_range>: New fields.
9368 (target_call_history, target_call_history_from,
9369 target_call_history_range): New declaration.
9370 * record.c (get_call_history_modifiers, cmd_record_call_history,
9371 record_call_history_size): New.
9372 (_initialize_record): Add the "record function-call-history" command.
9373 Add "set/show record function-call-history-size" commands.
9374 * record.h (record_print_flag): New.
9375
67c86d06
MM
93762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9377
9378 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9379 to_insn_history_range>: New fields.
9380 (target_insn_history): New.
9381 (target_insn_history_from): New.
9382 (target_insn_history_range): New.
9383 * target.c (target_insn_history): New.
9384 (target_insn_history_from): New.
9385 (target_insn_history_range): New.
9386 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9387 (record_insn_history_size): New.
9388 (get_insn_number): New.
9389 (get_context_size): New.
9390 (no_chunk): New.
9391 (get_insn_history_modifiers): New.
9392 (cmd_record_insn_history): New.
9393 (_initialize_record): Add "set/show record instruction-history-size"
9394 command. Add "record instruction-history" command.
9395
7c1687a9
MM
93962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9397
9398 * record.h (record_disconnect): New.
9399 (record_detach): New.
9400 (record_mourn_inferior): New.
9401 (record_kill): New.
9402 * record-full.c (record_disconnect, record_detach,
9403 record_mourn_inferior, record_kill): Move to...
9404 * record.c: ...here.
9405 (DEBUG): New.
9406 (record_stop): New.
9407 (record_unpush): New.
9408 (cmd_record_stop): Call record_stop. Replace unpush_target
9409 call with record_unpush call.
9410 (record_disconnect, record_detach): Assert that the target
9411 is of record stratum. Call record_unpush, record_stop, and
9412 DEBUG.
9413 (record_mourn_inferior, record_kill): Assert that the target
9414 is of record stratum. Call record_unpush and DEBUG.
9415
25ea693b
MM
94162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9417
9418 * record-full.h, record-full.c (record_memory_query): Rename
9419 to ...
9420 (record_full_memory_query): ...this. Update all users.
9421 (record_arch_list_add_reg): Rename to ...
9422 (record_full_arch_list_add_reg): ...this. Update all users.
9423 (record_arch_list_add_mem): Rename to ...
9424 (record_full_arch_list_add_mem): ...this. Update all users.
9425 (record_arch_list_add_end): Rename to ...
9426 (record_full_arch_list_add_end): ...this. Update all users.
9427 (record_gdb_operation_disable_set): Rename to ...
9428 (record_full_gdb_operation_disable_set): ...this.
9429 Update all users.
9430
88d1aa9d
MM
94312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9432
9433 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9434 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9435 (RECORD_IS_REPLAY): Renamed to ...
9436 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9437 (RECORD_FILE_MAGIC): Renamed to ...
9438 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9439 (record_mem_entry): Renamed to ...
9440 (record_full_mem_entry): ... this. Updated all users.
9441 (record_reg_entry): Renamed to ...
9442 (record_full_reg_entry): ... this. Updated all users.
9443 (record_end_entry): Renamed to ...
9444 (record_full_end_entry): ... this. Updated all users.
9445 (record_type) <record_end, record_reg, record_mem>: Renamed
9446 to ...
9447 (record_full_type) <record_full_end, record_full_reg,
9448 record_full_mem>: ... this. Updated all users.
9449 (record_entry): Renamed to ...
9450 (record_full_entry): ... this. Updated all users.
9451 (record_core_buf_entry): Renamed to ...
9452 (record_full_core_buf_entry): ... this. Updated all users.
9453 (record_core_regbuf): Renamed to ...
9454 (record_full_core_regbuf): ... this. Updated all users.
9455 (record_core_start): Renamed to ...
9456 (record_full_core_start): ... this. Updated all users.
9457 (record_core_end): Renamed to ...
9458 (record_full_core_end): ... this. Updated all users.
9459 (record_core_buf_list): Renamed to ...
9460 (record_full_core_buf_list): ... this. Updated all users.
9461 (record_first): Renamed to ...
9462 (record_full_first): ... this. Updated all users.
9463 (record_list): Renamed to ...
9464 (record_full_list): ... this. Updated all users.
9465 (record_arch_list_head): Renamed to ...
9466 (record_full_arch_list_head): ... this. Updated all users.
9467 (record_arch_list_tail): Renamed to ...
9468 (record_full_arch_list_tail): ... this. Updated all users.
9469 (record_stop_at_limit): Renamed to ...
9470 (record_full_stop_at_limit): ... this. Updated all users.
9471 (record_insn_max_num): Renamed to ...
9472 (record_full_insn_max_num): ... this. Updated all users.
9473 (record_insn_num): Renamed to ...
9474 (record_full_insn_num): ... this. Updated all users.
9475 (record_insn_count): Renamed to ...
9476 (record_full_insn_count): ... this. Updated all users.
9477 (record_ops): Renamed to ...
9478 (record_full_ops): ... this. Updated all users.
9479 (record_core_ops): Renamed to ...
9480 (record_full_core_ops): ... this. Updated all users.
9481 (set_record_cmdlist): Renamed to ...
9482 (set_record_full_cmdlist): ... this. Updated all users.
9483 (show_record_cmdlist): Renamed to ...
9484 (show_record_full_cmdlist): ... this. Updated all users.
9485 (record_cmdlist): Renamed to ...
9486 (record_full_cmdlist): ... this. Updated all users.
9487 (record_beneath_to_resume_ops): Renamed to ...
9488 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9489 (record_beneath_to_resume): Renamed to ...
9490 (record_full_beneath_to_resume): ... this. Updated all users.
9491 (record_beneath_to_wait_ops): Renamed to ...
9492 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9493 (record_beneath_to_wait): Renamed to ...
9494 (record_full_beneath_to_wait): ... this. Updated all users.
9495 (record_beneath_to_store_registers_ops): Renamed to ...
9496 (record_full_beneath_to_store_registers_ops): ... this.
9497 Updated all users.
9498 (record_beneath_to_store_registers): Renamed to ...
9499 (record_full_beneath_to_store_registers): ... this.
9500 Updated all users.
9501 (record_beneath_to_xfer_partial_ops): Renamed to ...
9502 (record_full_beneath_to_xfer_partial_ops): ... this.
9503 Updated all users.
9504 (record_beneath_to_xfer_partial): Renamed to ...
9505 (record_full_beneath_to_xfer_partial): ... this.
9506 Updated all users.
9507 (record_beneath_to_insert_breakpoint): Renamed to ...
9508 (record_full_beneath_to_insert_breakpoint): ... this.
9509 Updated all users.
9510 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9511 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9512 Updated all users.
9513 (record_beneath_to_stopped_data_address): Renamed to ...
9514 (record_full_beneath_to_stopped_data_address): ... this.
9515 Updated all users.
9516 (record_beneath_to_async): Renamed to ...
9517 (record_full_beneath_to_async): ... this. Updated all users.
9518 (record_goto_insn): Renamed to ...
9519 (record_full_goto_insn): ... this. Updated all users.
9520 (record_save): Renamed to ...
9521 (record_full_save): ... this. Updated all users.
9522 (record_reg_alloc): Renamed to ...
9523 (record_full_reg_alloc): ... this. Updated all users.
9524 (record_reg_release): Renamed to ...
9525 (record_full_reg_release): ... this. Updated all users.
9526 (record_mem_alloc): Renamed to ...
9527 (record_full_mem_alloc): ... this. Updated all users.
9528 (record_mem_release): Renamed to ...
9529 (record_full_mem_release): ... this. Updated all users.
9530 (record_end_alloc): Renamed to ...
9531 (record_full_end_alloc): ... this. Updated all users.
9532 (record_end_release): Renamed to ...
9533 (record_full_end_release): ... this. Updated all users.
9534 (record_entry_release): Renamed to ...
9535 (record_full_entry_release): ... this. Updated all users.
9536 (record_list_release): Renamed to ...
9537 (record_full_list_release): ... this. Updated all users.
9538 (record_list_release_following): Renamed to ...
9539 (record_full_list_release_following): ... this.
9540 Updated all users.
9541 (record_list_release_first): Renamed to ...
9542 (record_full_list_release_first): ... this. Updated all users.
9543 (record_arch_list_add): Renamed to ...
9544 (record_full_arch_list_add): ... this. Updated all users.
9545 (record_get_loc): Renamed to ...
9546 (record_full_get_loc): ... this. Updated all users.
9547 (record_check_insn_num): Renamed to ...
9548 (record_full_check_insn_num): ... this. Updated all users.
9549 (record_arch_list_cleanups): Renamed to ...
9550 (record_full_arch_list_cleanups): ... this. Updated all users.
9551 (record_message): Renamed to ...
9552 (record_full_message): ... this. Updated all users.
9553 (record_message_wrapper): Renamed to ...
9554 (record_full_message_wrapper): ... this. Updated all users.
9555 (record_message_wrapper_safe): Renamed to ...
9556 (record_full_message_wrapper_safe): ... this. Updated all users.
9557 (record_gdb_operation_disable): Renamed to ...
9558 (record_full_gdb_operation_disable): ... this. Updated all users.
9559 (record_hw_watchpoint): Renamed to ...
9560 (record_full_hw_watchpoint): ... this. Updated all users.
9561 (record_exec_insn): Renamed to ...
9562 (record_full_exec_insn): ... this. Updated all users.
9563 (record_restore): Renamed to ...
9564 (record_full_restore): ... this. Updated all users.
9565 (record_async_inferior_event_token): Renamed to ...
9566 (record_full_async_inferior_event_token): ... this.
9567 Updated all users.
9568 (record_async_inferior_event_handler): Renamed to ...
9569 (record_full_async_inferior_event_handler): ... this.
9570 Updated all users.
9571 (record_core_open_1): Renamed to ...
9572 (record_full_core_open_1): ... this. Updated all users.
9573 (record_open_1): Renamed to ...
9574 (record_full_open_1): ... this. Updated all users.
9575 (record_open): Renamed to ...
9576 (record_full_open): ... this. Updated all users.
9577 (record_close): Renamed to ...
9578 (record_full_close): ... this. Updated all users.
9579 (record_resume_step): Renamed to ...
9580 (record_full_resume_step): ... this. Updated all users.
9581 (record_resumed): Renamed to ...
9582 (record_full_resumed): ... this. Updated all users.
9583 (record_execution_dir): Renamed to ...
9584 (record_full_execution_dir): ... this. Updated all users.
9585 (record_resume): Renamed to ...
9586 (record_full_resume): ... this. Updated all users.
9587 (record_get_sig): Renamed to ...
9588 (record_full_get_sig): ... this. Updated all users.
9589 (record_sig_handler): Renamed to ...
9590 (record_full_sig_handler): ... this. Updated all users.
9591 (record_wait_cleanups): Renamed to ...
9592 (record_full_wait_cleanups): ... this. Updated all users.
9593 (record_wait_1): Renamed to ...
9594 (record_full_wait_1): ... this. Updated all users.
9595 (record_wait): Renamed to ...
9596 (record_full_wait): ... this. Updated all users.
9597 (record_stopped_by_watchpoint): Renamed to ...
9598 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9599 (record_disconnect): Renamed to ...
9600 (record_full_disconnect): ... this. Updated all users.
9601 (record_detach): Renamed to ...
9602 (record_full_detach): ... this. Updated all users.
9603 (record_mourn_inferior): Renamed to ...
9604 (record_full_mourn_inferior): ... this. Updated all users.
9605 (record_kill): Renamed to ...
9606 (record_full_kill): ... this. Updated all users.
9607 (record_stopped_data_address): Renamed to ...
9608 (record_full_stopped_data_address): ... this. Updated all users.
9609 (record_registers_change): Renamed to ...
9610 (record_full_registers_change): ... this. Updated all users.
9611 (record_store_registers): Renamed to ...
9612 (record_full_store_registers): ... this. Updated all users.
9613 (record_xfer_partial): Renamed to ...
9614 (record_full_xfer_partial): ... this. Updated all users.
9615 (record_breakpoint): Renamed to ...
9616 (record_full_breakpoint): ... this. Updated all users.
9617 (record_breakpoint_p): Renamed to ...
9618 (record_full_breakpoint_p): ... this. Updated all users.
9619 (record_breakpoints): Renamed to ...
9620 (record_full_breakpoints): ... this. Updated all users.
9621 (record_sync_record_breakpoints): Renamed to ...
9622 (record_full_sync_record_breakpoints): ... this.
9623 Updated all users.
9624 (record_init_record_breakpoints): Renamed to ...
9625 (record_full_init_record_breakpoints): ... this.
9626 Updated all users.
9627 (record_insert_breakpoint): Renamed to ...
9628 (record_full_insert_breakpoint): ... this. Updated all users.
9629 (record_remove_breakpoint): Renamed to ...
9630 (record_full_remove_breakpoint): ... this. Updated all users.
9631 (record_can_execute_reverse): Renamed to ...
9632 (record_full_can_execute_reverse): ... this. Updated all users.
9633 (record_get_bookmark): Renamed to ...
9634 (record_full_get_bookmark): ... this. Updated all users.
9635 (record_goto_bookmark): Renamed to ...
9636 (record_full_goto_bookmark): ... this. Updated all users.
9637 (record_async): Renamed to ...
9638 (record_full_async): ... this. Updated all users.
9639 (record_can_async_p): Renamed to ...
9640 (record_full_can_async_p): ... this. Updated all users.
9641 (record_is_async_p): Renamed to ...
9642 (record_full_is_async_p): ... this. Updated all users.
9643 (record_execution_direction): Renamed to ...
9644 (record_full_execution_direction): ... this. Updated all users.
9645 (record_info): Renamed to ...
9646 (record_full_info): ... this. Updated all users.
9647 (record_delete): Renamed to ...
9648 (record_full_delete): ... this. Updated all users.
9649 (record_is_replaying): Renamed to ...
9650 (record_full_is_replaying): ... this. Updated all users.
9651 (record_goto_entry): Renamed to ...
9652 (record_full_goto_entry): ... this. Updated all users.
9653 (record_goto_begin): Renamed to ...
9654 (record_full_goto_begin): ... this. Updated all users.
9655 (record_goto_end): Renamed to ...
9656 (record_full_goto_end): ... this. Updated all users.
9657 (record_goto): Renamed to ...
9658 (record_full_goto): ... this. Updated all users.
9659 (init_record_ops): Renamed to ...
9660 (init_record_full_ops): ... this. Updated all users.
9661 (record_core_resume): Renamed to ...
9662 (record_full_core_resume): ... this. Updated all users.
9663 (record_core_kill): Renamed to ...
9664 (record_full_core_kill): ... this. Updated all users.
9665 (record_core_fetch_registers): Renamed to ...
9666 (record_full_core_fetch_registers): ... this. Updated all users.
9667 (record_core_prepare_to_store): Renamed to ...
9668 (record_full_core_prepare_to_store): ... this. Updated all users.
9669 (record_core_store_registers): Renamed to ...
9670 (record_full_core_store_registers): ... this. Updated all users.
9671 (record_core_xfer_partial): Renamed to ...
9672 (record_full_core_xfer_partial): ... this. Updated all users.
9673 (record_core_insert_breakpoint): Renamed to ...
9674 (record_full_core_insert_breakpoint): ... this. Updated all users.
9675 (record_core_remove_breakpoint): Renamed to ...
9676 (record_full_core_remove_breakpoint): ... this. Updated all users.
9677 (record_core_has_execution): Renamed to ...
9678 (record_full_core_has_execution): ... this. Updated all users.
9679 (init_record_core_ops): Renamed to ...
9680 (init_record_full_core_ops): ... this. Updated all users.
9681 (cmd_record_restore): Renamed to ...
9682 (cmd_record_full_restore): ... this. Updated all users.
9683 (record_save_cleanups): Renamed to ...
9684 (record_full_save_cleanups): ... this. Updated all users.
9685 (cmd_record_start): Renamed to ...
9686 (cmd_record_full_start): ... this. Updated all users.
9687 (set_record_insn_max_num): Renamed to ...
9688 (set_record_full_insn_max_num): ... this. Updated all users.
9689 (set_record_command): Renamed to ...
9690 (set_record_full_command): ... this. Updated all users.
9691 (show_record_command): Renamed to ...
9692 (show_record_full_command): ... this. Updated all users.
9693 (_initialize_record): Renamed to ...
9694 (_initialize_record_full): ... this. Updated all users.
9695
d02ed0bb
MM
96962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9697
9698 * record.h: Split into this and ...
9699 * record-full.h: ... this.
9700 * record.c: Split into this and ...
9701 * record-full.c: ... this.
9702 * target.h (target_ops): Add new fields to_info_record,
9703 to_save_record, to_delete_record, to_record_is_replaying,
9704 to_goto_record_begin, to_goto_record_end, to_goto_record.
9705 (target_info_record): New.
9706 (target_save_record): New.
9707 (target_supports_delete_record): New.
9708 (target_delete_record): New.
9709 (target_record_is_replaying): New.
9710 (target_goto_record_begin): New.
9711 (target_goto_record_end): New.
9712 (target_goto_record): New.
9713 * target.c (target_info_record): New.
9714 (target_save_record): New.
9715 (target_supports_delete_record): New.
9716 (target_delete_record): New.
9717 (target_record_is_replaying): New.
9718 (target_goto_record_begin): New.
9719 (target_goto_record_end): New.
9720 (target_goto_record): New.
9721 * record.h: Declare struct cmd_list_element.
9722 (record_cmdlist): New declaration.
9723 (set_record_cmdlist): New declaration.
9724 (show_record_cmdlist): New declaration.
9725 (info_record_cmdlist): New declaration.
9726 (cmd_record_goto): New declaration.
9727 * record.c: Remove unnecessary includes.
9728 Include inferior.h.
9729 (cmd_record_goto): Remove declaration.
9730 (record_cmdlist): Now extern. Initialize.
9731 (set_record_cmdlist): Now extern. Initialize.
9732 (show_record_cmdlist): Now extern. Initialize.
9733 (info_record_cmdlist): Now extern. Initialize.
9734 (find_record_target): New.
9735 (require_record_target): New.
9736 (cmd_record_start): Update.
9737 (cmd_record_delete): Remove target-specific code.
9738 Call target_delete_record.
9739 (cmd_record_stop): Unpush any record target.
9740 (set_record_insn_max_num): Move to record-full.c
9741 (set_record_command): Add comment.
9742 (show_record_command): Add comment.
9743 (info_record_command): Update comment.
9744 Remove target-specific code.
9745 Call the record target's to_info_record.
9746 (cmd_record_start): New.
9747 (cmd_record_goto): Now extern.
9748 Remove target-specific code.
9749 Call target_goto_begin, target_goto_end, or target_goto.
9750 (_initialize_record): Move record target ops initialization to
9751 record-full.c.
9752 Change "record" command help text.
9753 Move "record restore", "record set", and "record show" commands to
9754 record-full.c.
9755 * Makefile.in (SFILES): Add record-full.c.
9756 (HFILES_NO_SRCDIR): Add record-full.h.
9757 (COMMON_OBS): Add record-full.o.
9758 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9759 * arm-tdep.c: Include record-full.h.
9760 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9761 * i386-tdep.c: Include record-full.h.
9762 * infrun.c: Include record-full.h.
9763 * linux-record.c: Include record-full.h.
9764 * moxie-tdep.c: Include record-full.h.
9765 * record-full.c: Include record-full.h.
9766 Change module comment.
9767 (set_record_full_cmdlist): New.
9768 (show_record_full_cmdlist): New.
9769 (record_full_cmdlist): New.
9770 (record_goto_insn): New declaration.
9771 (record_save): New declaration.
9772 (record_check_insn_num): Change query string.
9773 (record_info): New.
9774 (record_delete): New.
9775 (record_is_replaying): New.
9776 (record_goto_entry): New.
9777 (record_goto_begin): New.
9778 (record_goto_end): New.
9779 (record_goto): New.
9780 (init_record_ops): Update.
9781 (init_record_core_ops): Update.
9782 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9783 (cmd_record_start): New.
9784 (set_record_insn_max_num): Moved from record.c
9785 (set_record_full_command): New.
9786 (show_record_full_command): New.
9787 (_initialize_record_full): New.
9788
b48d48eb
MM
97892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9790
9791 * target.h (add_deprecated_target_alias): New.
9792 * target.c (add_deprecated_target_alias): New.
9793
a950d57c
MM
97942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9795
9796 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9797 and signal.h.
9798 (linux_supports_btrace): Add kernel and
9799 cpuid check.
9800 (kernel_supports_btrace): New function.
9801 (cpu_supports_btrace): New function.
9802 (intel_supports_btrace): New function.
9803
9accd112
MM
98042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9805
9806 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9807 * remote.c: Include btrace.h.
9808 (struct btrace_target_info): New struct.
9809 (remote_supports_btrace): New function.
9810 (send_Qbtrace): New function.
9811 (remote_enable_btrace): New function.
9812 (remote_disable_btrace): New function.
9813 (remote_teardown_btrace): New function.
9814 (remote_read_btrace): New function.
9815 (init_remote_ops): Add btrace ops.
9816 (enum <unnamed>): Add btrace packets.
9817 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9818 (_initialize_remote): Add packet configuration for branch tracing.
9819
c12a2917
MM
98202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9821
9822 * features/btrace.dtd: New file.
9823 * Makefile.in (XMLFILES): Add btrace.dtd.
9824 * btrace.h (parse_xml_btrace): New declaration.
9825 * btrace.c: Include xml-support.h.
9826 (parse_xml_btrace): New function.
9827 (parse_xml_btrace_block): New function.
9828 (block_attributes): New struct.
9829 (btrace_attributes): New struct.
9830 (btrace_children): New struct.
9831 (btrace_elements): New struct.
9832
3e3aea48
MM
98332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9834
9835 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9836 (amd64_linux_enable_btrace): New.
9837 (amd64_linux_disable_btrace): New.
9838 (amd64_linux_teardown_btrace): New.
9839 (_initialize_amd64_linux_nat): Initialize btrace ops.
9840 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9841 (i386_linux_enable_btrace): New.
9842 (i386_linux_disable_btrace): New.
9843 (i386_linux_teardown_btrace): New.
9844 (_initialize_i386_linux_nat): Initialize btrace ops.
9845 * config/i386/linux.mh: Add linux-btrace.o.
9846 * config/i386/linux64.mh: Add linux-btrace.o.
9847
7c97f91e
MM
98482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9849
9850 * common/linux_btrace.h: New file.
9851 * common/linux_btrace.c: New file.
9852 * Makefile.in (SFILES): Add btrace.c.
9853 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9854 (COMMON_OBS): Add btrace.o.
9855 (linux-btrace.o): New rule.
9856
1999790b 98572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9858
9859 * target.h: Include btrace.h.
9860 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9861 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9862 * target.c (target_supports_btrace): New function.
9863 (target_enable_btrace): New function.
9864 (target_disable_btrace): New function.
9865 (target_teardown_btrace): New function.
9866 (target_read_btrace): New function.
9867 * btrace.h: New file.
9868 * btrace.c: New file.
9869 * Makefile.in: Add btrace.c.
9870 * gdbthread.h: Include btrace.h.
9871 (struct thread_info): Add btrace field.
9872 * thread.c: Include btrace.h.
9873 (clear_thread_inferior_resources): Call target_teardown_btrace.
9874 * common/btrace-common.h: New file.
9875
61a31a67
JK
98762013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9877
9878 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9879 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9880 kill_status to outer block.
9881
05c56a9d
JK
98822013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9883
9884 Fix entry-values if the callee called a noreturn function.
9885 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9886 get_frame_address_in_block. Add new comment.
9887
9112db09
JK
98882013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9889
9890 Fix entry-values in C++ across CUs.
9891 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9892 lookup_minimal_symbol. Add a comment.
9893 * dwarf2read.c
9894 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9895 DW_AT_linkage_name.
9896
9b67fcec
YQ
98972013-03-08 Yao Qi <yao@codesourcery.com>
9898
9899 * tracepoint.c (_initialize_tracepoint): Indent the code.
9900
6221be90
PA
99012013-03-08 Pedro Alves <palves@redhat.com>
9902
9903 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9904 (parse_find_args, find_command): Change type of pattern buffer
9905 locals to 'gdb_byte *'.
9906
be9a119c 99072013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9908 Hafiz Abid Qadeer <abidh@codesourcery.com>
9909
9910 * NEWS: Mention set and show trace-buffer-size commands.
9911 Mention new packet.
9912 * target.h (struct target_ops): New method
9913 to_set_trace_buffer_size.
9914 (target_set_trace_buffer_size): New macro.
9915 * target.c (update_current_target): Set up new method.
9916 * tracepoint.c (trace_buffer_size): New global.
9917 (start_tracing): Send it to the target.
9918 (set_trace_buffer_size): New function.
9919 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9920 * remote.c (remote_set_trace_buffer_size): New function.
9921 (_initialize_remote): Use it.
9922 (QTBuffer:size) New remote command.
9923 (PACKET_QTBuffer_size): New enum.
9924 (remote_protocol_features): Add an entry for
9925 PACKET_QTBuffer_size.
9926
7da3ab79
TT
99272013-03-08 Tom Tromey <tromey@redhat.com>
9928
9929 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9930 variable.
9931
0c1f71e7
PA
99322013-03-07 Pedro Alves <palves@redhat.com>
9933
9934 * target.c (target_read_stralloc, target_fileio_read_alloc):
9935 *Cast pointer to 'gdb_byte *' in target call.
9936
c8af03a2
PA
99372013-03-07 Pedro Alves <palves@redhat.com>
9938
9939 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9940 call.
9941
529480d0
KS
99422013-03-07 Keith Seitz <keiths@redhat.com>
9943
9944 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9945 (trace_pass_command): Likewise.
9946 * cli/cli-cmds.c: Include cli/cli-utils.h.
9947 (source_command): Use skip-spaces.
9948 (disassemble_command): Likewise.
9949 * findcmd.c: Include cli/cli-utils.h.
9950 (parse_find_args): Use skip_spaces.
9951 * go32-nat.c: Include cli/cli-utils.h.
9952 (go32_sldt): Use skip_spaces.
9953 (go32_sgdt): Likewise.
9954 (go32_sidt): Likewise.
9955 (go32_pde): Likewise.
9956 (go32_pte): Likewise.
9957 (go32_pte_for_address): Likewise.
9958 * infcmd.c: Include cli/cli-utils.h.
9959 (registers_info): Use skip_spaces.
9960 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9961 (linux_info_proc): Likewise.
9962 * linux-thread-db.c: Include cli/cli-utils.h.
9963 (info_auto_load_libthread_db): Use skip_spaces_const.
9964 * m32r-rom.c: Include cli/cli-utils.h.
9965 (m32r_upload_command): Use skip_spaces.
9966 * maint.c: Include cli/cli-utils.h.
9967 (maintenance_translate_address): Use skip_spaces.
9968 * mi/mi-parse.c: Include cli/cli-utils.h.
9969 (mi_parse_argv): Use skip_spaces.
9970 (mi_parse): Likewise.
9971 * minsyms.c: Include cli/cli-utils.h.
9972 (msymbol_hash_iw): Use skip_spaces_const.
9973 * objc-lang.c: Include cli/cli-utils.h.
9974 (parse_selector): Use skip_spaces.
9975 (parse_method): Likewise.
9976 * python/python.c: Include cli/cli-utils.h.
9977 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9978 (python_command)[HAVE_PYTHON]: Likewise.
9979 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9980 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9981 (m32r_load): Use skip_spaces.
9982 * serial.c: Include cli/cli-utils.h.
9983 (serial_open): Use skip_spaces_const.
9984 * stack.c: Include cli/cli-utils.h.
9985 (parse_frame_specification_1): Use skip_spaces_const.
9986 * symfile.c: Include cli/cli-utils.h.
9987 (set_ext_lang_command): Use skip_spaces.
9988 * symtab.c: Include cli/cli-utils.h.
9989 (rbreak_command): Use skip_spaces.
9990 * thread.c (thread_name_command): Use skip_spaces.
9991 * tracepoint.c (validate_actionline): Use skip_spaces.
9992 (encode_actions_1): Likewise.
9993 (trace_find_range_command): Likewise.
9994 (trace_find_outside_command): Likewise.
9995 (trace_dump_actions): Likewise.
9996
ac91cd70
PA
99972013-03-07 Pedro Alves <palves@redhat.com>
9998
9999 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10000 * expprint.c (print_subexp_standard): Likewise.
10001 * utils.c (host_char_to_target): Likewise.
10002 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10003 * varobj.c (value_get_print_value): Change type of local to char*.
10004 Cast it gdb_byte * in call to language printer.
10005
2898e560
PA
100062013-03-07 Pedro Alves <palves@redhat.com>
10007
10008 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10009 gdb_byte *'.
10010 (make_wchar_iterator): Remove cast to char*.
10011 (wchar_iterate): Change type of local.
10012
a09b4448
PA
100132013-03-07 Pedro Alves <palves@redhat.com>
10014
10015 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10016 for 'regcache->register_status'.
10017
20ced3e4
PA
100182013-03-07 Pedro Alves <palves@redhat.com>
10019
c2d6a675 10020 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10021 int.
10022
fe106009
PA
100232013-03-07 Pedro Alves <palves@redhat.com>
10024
10025 * stap-probe.c (handle_stap_probe): Add cast to char*.
10026
8ac2c12b
PA
100272013-03-07 Pedro Alves <palves@redhat.com>
10028
10029 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10030 RECORD_MSGRCV>: Pass a signed variable to
10031 regcache_raw_read_signed, instead of an unsigned one.
10032
99f0a309
PA
100332013-03-07 Pedro Alves <palves@redhat.com>
10034
10035 * remote-notif.c (notif_debug): Change type to int.
10036 * remote-notif.h (notif_debug): Likewise.
10037
964b8317
PA
100382013-03-07 Pedro Alves <palves@redhat.com>
10039
10040 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10041
f0cc8ad4
PA
100422013-03-07 Pedro Alves <palves@redhat.com>
10043
10044 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10045 * remote.h (hex2bin, bin2hex): ... here.
10046 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10047
77dec115
EZ
100482013-03-07 Eli Zaretskii <eliz@gnu.org>
10049
10050 * utils.c (initialize_utils): Improve doc strings of "set/show
10051 width", "set/show height", and "set/show pagination".
10052
741d92cf
KS
100532013-03-06 Keith Seitz <keiths@redhat.com>
10054
10055 * ax-gdb.c (gen_printf): Make FORMAT const.
10056 * ax-gdb.h (gen_printf): Likewise.
10057 * ax-general.c (ax_string): Make STR const.
10058 * ax.h (ax_string): Likewise.
10059
7b6c814e
DE
100602013-03-06 Doug Evans <dje@google.com>
10061
10062 * elfread.c (elf_symfile_read): Move debugging printf to more
10063 logical location.
10064
634334ab
PA
100652013-03-06 Pedro Alves <palves@redhat.com>
10066
10067 * python/py-utils.c (target_string_to_unicode): Delete function.
10068 * python/python-internal.h (target_string_to_unicode): Delete
10069 declaration.
10070
e482a1a7
PM
100712013-03-06 Pierre Muller <muller@sourceware.org>
10072
10073 * linespec.c (get_current_search_block): ARI fix, use (void)
10074 for empty parameter list.
10075
4eeaa230
DE
100762013-03-05 Doug Evans <dje@google.com>
10077
10078 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10079 of old ada_lookup_symbol_list. In !full_search case, don't
10080 search superblocks.
10081 (ada_lookup_symbol_list): Delete arg full_search, all callers
10082 updated. Call ada_lookup_symbol_list_worker.
10083 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10084 * ada-lang.h (ada_lookup_symbol_list): Update.
10085 * language.h (language_defn): Update comment for
10086 la_iterate_over_symbols.
10087 * linespec.c (iterate_over_file_blocks): New function.
10088 (iterate_over_all_matching_symtabs): Call it.
10089 (lookup_prefix_sym): Ditto.
10090 (get_current_search_block): New function.
10091 (get_search_block): Delete.
10092 (find_label_symbols): Call get_current_search_block.
10093 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10094 * symtab.c (iterate_over_symbols): Don't search superblocks.
10095
b69b1fb1
YQ
100962013-03-05 Yao Qi <yao@codesourcery.com>
10097
10098 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10099 parameter VAR's type from "unsigned int" to "int".
10100 * command.h (var_zuinteger_unlimited): Update its comments.
10101 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10102
3c095f49
CV
101032013-03-05 Corinna Vinschen <vinschen@redhat.de>
10104
10105 * NEWS: Mention new target x86_64-*-cygwin*.
10106
b5b0b0af
CV
101072013-03-05 Corinna Vinschen <vinschen@redhat.de>
10108
10109 * configure.host: Add x86_64-*-cygwin* as host.
10110 * configure.tgt: Add x86_64-*-cygwin* as target.
10111 * config/i386/cygwin64.mh: New file.
10112
f6f99966
JK
101132013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10114
10115 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10116
33f448b1
JK
101172013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10118
10119 * linespec.c (struct linespec_canonical_name): New.
10120 (struct linespec_state): Change canonical_names type to it.
10121 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10122 xrealloc element size. Initialize the different CANONICAL fields.
10123 (canonical_to_fullform): New.
10124 (filter_results): Use it. Add variables canonical, fullform and
10125 cleanup.
10126 (struct decode_line_2_item, decode_line_2_compare_items): New.
10127 (decode_line_2): Remove variables iter and item_names, add variables
10128 items and items_count. Modify the code for these new variables.
10129
feb14725
CV
101302013-03-04 Corinna Vinschen <vinschen@redhat.com>
10131
10132 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10133 calling do_cleanup.
10134
e83b17ba
HZ
101352013-03-04 Luis Machado <lgustavo@codesourcery.com>
10136
10137 * tracepoint.c (build_traceframe_info): Add code for byte order.
10138
a2d13a0d
KB
101392013-03-02 Kevin Buettner <kevinb@redhat.com>
10140
8dddcae8
KB
10141 * v850-tdep.c: (v850e2_register_name): Revise system register
10142 names to match current V850E2M architecture specifications.
10143 Update register number enum comments too.
f5aee5ee 10144
d79e58d8
JW
101452013-03-01 Jiong Wang <jiwang@tilera.com>
10146 Pedro Alves <palves@redhat.com>
10147
10148 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10149 to END_ADDR.
10150 (tilegx_skip_prologue): Limit prologue analysis to section end.
10151
c4be5165
JK
101522013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10153
10154 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10155 use it.
10156
e362b510
PA
101572013-03-01 Pedro Alves <palves@redhat.com>
10158
10159 Use gdb_byte for bytes from the program being debugged.
10160
10161 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10162 Change type of local 'buf' to gdb_byte.
10163 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10164 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10165 * cris-tdep.c (cris_sigcontext_addr)
10166 (cris_sigtramp_frame_unwind_cache): Likewise.
10167 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10168 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10169 Likewise.
10170 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10171 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10172 (hppa32_hpux_search_dummy_call_sequence)
10173 (hppa_hpux_supply_save_state): Likewise.
10174 * hppa-linux-tdep.c (insns_match_pattern)
10175 (hppa_linux_find_global_pointer): Likewise.
10176 * hppa-tdep.c (hppa_in_function_epilogue_p)
10177 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10178 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10179 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10180 (i386fbsd_collect_uthread): Likewise.
10181 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10182 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10183 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10184 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10185 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10186 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10187 (ia64_libunwind_frame_prev_register)
10188 (ia64_libunwind_sigtramp_frame_this_id)
10189 (ia64_find_global_pointer_from_dynamic_section)
10190 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10191 (ia64_unwind_pc): Likewise.
10192 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10193 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10194 (m68hc11_extract_return_value): Likewise.
10195 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10196 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10197 (mep_get_insn, mep_push_dummy_call): Likewise.
10198 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10199 (mips_linux_in_dynsym_stub): Likewise.
10200 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10201 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10202 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10203 to gdb_byte.
10204 * remote-mips.c (mips_set_register): Likewise.
10205 * remote-sim.c (gdbsim_fetch_register): Likewise.
10206 * score-tdep.c (score7_fetch_inst): Change type of parameter
10207 'memblock' and local 'buf' to gdb_byte.
10208 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10209 Change type of local 'buf' to gdb_byte. Adjust.
10210 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10211 to gdb_byte**.
10212 (score7_analyze_prologue): Change type of 'memblock' and
10213 'memblock_ptr' locals to gdb_byte*.
10214 * sh64-tdep.c (sh64_extract_return_value)
10215 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10216 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10217 * solib-pa64.c (pa64_solib_create_inferior_hook)
10218 (pa64_open_symbol_file_object): Remove local 'buf'.
10219 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10220 (som_open_symbol_file_object): Likewise.
10221 * solib-spu.c (spu_current_sos): Likewise.
10222 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10223 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10224 (spu_store_registers): Likewise.
10225 * target.c (debug_print_register): Likewise.
10226 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10227 * xstormy16-tdep.c (xstormy16_store_return_value)
10228 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10229 (xstormy16_find_jmp_table_entry): Likewise.
10230
75cc61ca 102312013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10232
10233 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10234 (tilegx_gdbarch_init): Install it.
10235
ddb08e9c
TT
102362013-02-28 Tom Tromey <tromey@redhat.com>
10237
10238 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10239 PyLong_Check.
10240
62d7fb51
DE
102412013-02-28 Doug Evans <dje@google.com>
10242
10243 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10244 * python/python.c (gdbpy_find_pc_line): Ditto.
10245
c4a9e8b4
TT
102462013-02-28 Tom Tromey <tromey@redhat.com>
10247
10248 * contrib/excheck.py: New file.
10249 * contrib/exsummary.py: New file.
10250 * contrib/gcc-with-excheck: New file.
10251
7f6a5dde
TT
102522013-02-28 Tom Tromey <tromey@redhat.com>
10253
10254 * python/python.c (gdbpy_print_stack): Call begin_line and
10255 fprintf_filtered inside TRY_CATCH.
10256
9e974e55
TT
102572013-02-28 Tom Tromey <tromey@redhat.com>
10258
10259 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10260 inside TRY_CATCH.
10261
dd5fa3e7
TT
102622013-02-28 Tom Tromey <tromey@redhat.com>
10263
10264 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10265 frame_object_to_frame_info inside TRY_CATCH.
10266
86a3263f
TT
102672013-02-28 Tom Tromey <tromey@redhat.com>
10268
10269 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10270 TRY_CATCH.
10271
81b52a3a
TT
102722013-02-28 Tom Tromey <tromey@redhat.com>
10273
10274 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10275
d50a0ce2
CV
102762013-02-27 Corinna Vinschen <vinschen@redhat.com>
10277
10278 * windows-nat.c: Throughout, fix format strings and casts of
10279 printf-like functions to avoid type related warnings on all
10280 platforms.
10281 (handle_output_debug_string): Fetch context information address
10282 from debug string using string_to_core_addr.
10283
e1f58301
JW
102842013-02-27 Jiong Wang <jiwang@tilera.com>
10285
10286 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10287 * regformats/reg-tilegx32.dat: New.
10288
4fcd89fc
JW
102892013-02-27 Jiong Wang <jiwang@tilera.com>
10290
10291 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10292
748d24e6
JW
102932013-02-27 Jiong Wang <jiwang@tilera.com>
10294
10295 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10296
6c8e944d
YQ
102972013-02-27 Yao Qi <yao@codesourcery.com>
10298 Pedro Alves <palves@redhat.com>
10299
10300 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10301 pc/tp/range/outside, look for the next trace frame instead of
10302 always starting from frame 0.
6c8e944d 10303
acd7db30
AG
103042013-02-26 Anthony Green <green@moxielogic.com>
10305
10306 * configure.tgt: Add support for moxie-*-rtems* target.
10307
025e6dce
PA
103082013-02-25 Pedro Alves <palves@redhat.com>
10309
10310 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10311 warning text.
10312
ca9c94ef
MR
103132013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10314
10315 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10316 if $fp is used as the virtual frame pointer.
10317
24c274a1
AM
103182013-02-23 Alan Modra <amodra@gmail.com>
10319
10320 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10321 symbol size.
10322 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10323 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10324 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10325 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10326
bfada189
JK
103272013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10328
10329 Code cleanup.
10330 * elfread.c (build_id_bfd_get): Make the return type const.
10331 (build_id_verify): Make the check parameter const.
10332 (build_id_to_debug_filename): Make the build_id parameter and variable
10333 data const.
10334 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10335
c0355132
AM
103362013-02-21 Alan Modra <amodra@gmail.com>
10337
10338 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10339
9f44fbc0
SCR
103402013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10341
10342 Add a new method 'disassemble' to gdb.Architecture class.
10343 * python/py-arch.c (archpy_disassmble): Implementation of the
10344 new method gdb.Architecture.disassemble.
10345 (arch_object_methods): Add entry for the new method.
10346
b74ea3eb
JW
103472013-02-20 Jiong Wang <jiwang@tilera.com>
10348
10349 * MAINTAINERS (Write After Approval): Add myself to the list.
10350
61a672f1
PA
103512013-02-19 Pedro Alves <palves@redhat.com>
10352
10353 Garbage collect 'struct monitor_ops'::load_routine.
10354
10355 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10356 * monitor.c (monitor_load): No longer call
10357 current_monitor->load_routine.
10358 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10359 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10360 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10361
40e397df
PA
103622013-02-19 Pedro Alves <palves@redhat.com>
10363
10364 PR gdb/15161
10365
10366 Harmonize with generic_load.
10367
10368 * monitor.c: Include "readline/readline.h".
10369 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10370 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10371 long/strtol for the 'load_offset' local. Error out if no argument
10372 is given or if too many arguments are given. Tilde expand the
10373 passed in file name.
10374
f698ca8e
KT
103752013-02-19 Kai Tietz <ktietz@redhat.com>
10376
10377 PR gdb/15161
10378 * symfile.c (load_section_data): Change type of load_offset
10379 to CORE_ADDR.
10380 (generic_load): User strtoulst instead of strtoul for conversion
10381 of load_offset.
10382
3361b059
WL
103832013-02-19 Jiong Wang <jiwang@tilera.com>
10384
10385 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10386 for return address, "lr" register, saved on stack.
10387 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10388 after we invoke tilegx_analyze_prologue.
10389
3e9d5130
WL
103902013-02-19 Jiong Wang <jiwang@tilera.com>
10391
bb1bcd86
WL
10392 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10393
3361b059 103942013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10395
b74ea3eb 10396 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10397
4aaf2503
WL
103982013-02-19 Jiong Wang <jiwang@tilera.com>
10399
b74ea3eb 10400 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10401 (tilegx_write_pc): New function.
10402 (tilegx_cannot_reference_register): Return zero if REGNO
10403 is TILEGX_FAULTNUM_REGNUM.
10404 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10405 (tilegx_register_name): Add handling of "faultnum" register.
10406 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10407 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10408 handling of TILEGX_FAULTNUM_REGNUM.
10409 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10410
bc23a956
WL
104112013-02-19 Jiong Wang <jiwang@tilera.com>
10412
10413 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10414 should be aligned to 64bit.
bc23a956 10415
42f45f1a
KT
104162013-02-19 Kai Tietz <ktietz@redhat.com>
10417
10418 * windows-nat.c (windows_xfer_memory): Fix debug-output
10419 for LLP64.
10420
6ce4c112
LL
104212013-02-19 Lei Liu <lei.liu2@windriver.com>
10422
10423 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10424 Don't check DSP register number if HAVE_DSP is not set.
10425
30e8ee25
AM
104262013-02-19 Alan Modra <amodra@gmail.com>
10427
10428 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10429 throughout file instead.
10430 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10431 Don't xmalloc return value.
10432 (build_id_verify): Similarly. Don't xfree.
10433 (build_id_to_debug_filename): Update.
10434 (find_separate_debug_file_by_buildid): Update, don't xfree.
10435
4c9ad8c2
TT
104362013-02-18 Tom Tromey <tromey@redhat.com>
10437
10438 PR gdb/15102:
10439 * dwarf2read.c (read_subrange_type): Use result of
10440 'check_typedef'.
10441
983dc440
YQ
104422013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10443
10444 * frame.c: Remove one extra white space after #include
10445 directive.
10446
7fb2b84a
JK
104472013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10448
10449 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10450
edceb2a9
JK
104512013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10452
10453 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10454 and dir commands into an if block.
10455
e81b7af8
TT
104562013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10457
10458 * python/py-breakpoint (struct pybp_code): Use int instead of
10459 enum type_code.
10460
f5911ea1
HAQ
104612013-02-15 Pedro Alves <pedro@codesourcery.com>
10462 Hafiz Abid Qadeer <abidh@codesourcery.com>
10463
10464 * NEWS: Mention new field "trace-file".
10465 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10466 (tfile_open): Record the trace file's filename in the trace
10467 status.
10468 (tfile_files_info): Mention the name of the trace file.
10469 Check the "filename" field explicitely.
10470 (trace_status_command): Explicitely check "filename" field.
10471 (trace_find_command): Ditto.
10472 (trace_find_pc_command): Ditto.
10473 (trace_find_tracepoint_command): Ditto.
10474 (trace_find_line_command): Ditto.
10475 (trace_find_range_command): Ditto.
10476 (trace_find_outside_command): Ditto.
10477 * tracepoint.h (struct trace_status) <from_file>: Rename it
10478 to "filename" and make it hold the trace file's filename
10479 instead of a boolean.
10480 * remote.c (remote_get_trace_status): Initialize "filename"
10481 field with NULL instead of 0.
10482
796cb314
YQ
104832013-02-15 Yao Qi <yao@codesourcery.com>
10484
10485 * remote.c: Fix a typo.
10486
42e79b1d
PM
104872013-02-14 Pierre Muller <muller@sourceware.org>
10488
10489 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10490
baea0dae
PA
104912013-02-14 Pedro Alves <palves@redhat.com>
10492
10493 * utils.c (savestring): Don't #undef it. Move function to
10494 common/common-utils.c.
10495 * common/common-utils.c: Include gdb_string.h.
10496 (savestring): Move here from utils.c.
10497 * common/common-utils.h (savestring): Declare.
10498
57c3b6ed
PA
104992013-02-14 Pedro Alves <palves@redhat.com>
10500
10501 * utils.c (savestring): Rename parameter 'size' to 'len'.
10502
d6c44983
YZ
105032013-02-14 Pedro Alves <palves@redhat.com>
10504 Yufeng Zhang <yufeng.zhang@arm.com>
10505
10506 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10507 (aarch64_inferior_data, struct aarch64_inferior_data):
10508 Delete.
10509 (struct aarch64_process_info): New.
10510 (aarch64_process_list): New global.
10511 (aarch64_find_process_pid, aarch64_add_process)
10512 (aarch64_process_info_get): New functions.
10513 (aarch64_inferior_data_get): Delete.
10514 (aarch64_process_info_get): New function.
10515 (aarch64_forget_process): New function.
10516 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10517 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10518 aarch64_get_debug_reg_state.
10519 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10520 instead of linux_nat_iterate_watchpoint_lwps.
10521 (aarch64_linux_new_fork): New function.
10522 (aarch64_linux_child_post_startup_inferior): Use
10523 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10524 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10525 (aarch64_linux_remove_hw_breakpoint)
10526 (aarch64_handle_aligned_watchpoint)
10527 (aarch64_handle_unaligned_watchpoint)
10528 (aarch64_linux_insert_watchpoint)
10529 (aarch64_linux_remove_watchpoint)
10530 (aarch64_linux_stopped_data_address): Adjust to pass the current
10531 process id to aarch64_debug_reg_state.
10532 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10533 linux_nat_new_fork hook, and aarch64_forget_process as
10534 linux_nat_forget_process hook; remove the call to
10535 register_inferior_data_with_cleanup.
10536
4819b3f8
PA
105372013-02-14 Pedro Alves <palves@redhat.com>
10538
10539 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10540 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10541 lval_memory.
10542
1773c82c
HAQ
105432013-02-14 Pedro Alves <pedro@codesourcery.com>
10544 Hafiz Abid Qadeer <abidh@codesourcery.com>
10545
10546 * tracepoint.h (validate_trace_state_variable_name): Declare.
10547 * tracepoint.c (validate_trace_state_variable_name): New.
10548 (trace_variable_command): Parse the trace state variable's name
10549 without using parse_expression. Do several validations.
10550 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10551 trace state variable's name with parse_expression. Validate it.
10552
53778a97
YQ
105532013-02-14 Yao Qi <yao@codesourcery.com>
10554
10555 * infcmd.c (breakpoint_proceeded): Remove it.
10556
7b3ae3a6
YQ
105572013-02-14 Yao Qi <yao@codesourcery.com>
10558
10559 * tracepoint.c (end_actions_pseudocommand): Make it static.
10560 (while_stepping_pseudocommand): Likewise.
10561 * tracepoint.h (end_actions_pseudocommand): Remove the
10562 declaration.
10563 (while_stepping_pseudocommand): Likewise.
10564
64580925
YQ
105652013-02-14 Yao Qi <yao@codesourcery.com>
10566
10567 * cli/cli-decode.c (help_cmd): Remove the declaration of
10568 "cmdlist".
10569 (help_all): Likewise.
10570
26cb8b7c
PA
105712013-02-13 Pedro Alves <palves@redhat.com>
10572
10573 * amd64-linux-nat.c (update_debug_registers_callback):
10574 Update comment.
10575 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10576 iterate_over_lwps.
10577 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10578 i386_debug_reg_state.
10579 (amd64_linux_new_fork): New function.
10580 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10581 linux_nat_new_fork hook, and i386_forget_process as
10582 linux_nat_forget_process hook.
10583 * i386-linux-nat.c (update_debug_registers_callback):
10584 Update comment.
a8256ea1 10585 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10586 iterate_over_lwps.
10587 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10588 i386_debug_reg_state.
10589 (i386_linux_new_fork): New function.
10590 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10591 linux_nat_new_fork hook, and i386_forget_process as
10592 linux_nat_forget_process hook.
10593 * i386-nat.c (i386_init_dregs): Delete.
10594 (i386_inferior_data, struct i386_inferior_data):
10595 Delete.
10596 (struct i386_process_info): New.
10597 (i386_process_list): New global.
10598 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10599 New functions.
10600 (i386_inferior_data_get): Delete.
10601 (i386_process_info_get): New function.
10602 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10603 (i386_forget_process): New function.
10604 (i386_cleanup_dregs): Rewrite.
10605 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10606 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10607 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10608 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10609 to i386_debug_reg_state.
10610 (i386_use_watchpoints): Don't register inferior data.
10611 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10612 adjust comment.
10613 (i386_forget_process): Declare.
10614 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10615 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10616 New static globals.
10617 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10618 (add_initial_lwp): New, factored out from ...
10619 (add_lwp): ... this. Don't check the number of lwps before
10620 calling linux_nat_new_thread.
10621 (linux_nat_iterate_watchpoint_lwps): Delete.
10622 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10623 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10624 forks and vforks.
10625 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10626 initial lwp.
10627 (linux_nat_kill, linux_nat_mourn_inferior): Call
10628 linux_nat_forget_process.
10629 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10630 (linux_nat_forget_process): New functions.
10631 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10632 type.
10633 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10634 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10635 types.
10636 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10637 (linux_nat_forget_process): New declarations.
10638
10639 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10640 (amd64fbsd_mourn_inferior): New function.
10641 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10642 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10643
5befea72
MS
106442013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10645
55015247
YQ
10646 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10647 Adding _().
5befea72 10648
1d3ffd6b
MS
106492013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10650
10651 * aarch64-linux-nat.c (debug_reg_change_callback)
10652 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10653 %s and phex().
10654
6eb04473
MS
106552013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10656
10657 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10658 with LONGEST.
10659
a016fc87
HAQ
106602013-02-13 Pedro Alves <palves@redhat.com>
10661 Hafiz Abid Qadeer <abidh@codesourcery.com>
10662
10663 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10664
e234dfaf
TT
106652013-02-12 Tom Tromey <tromey@redhat.com>
10666
10667 PR symtab/11464:
10668 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10669 NAME return.
10670 (classify_inner_name): Remove 'first_name' argument, add
10671 'context'. Remove unused variable.
10672 (yylex): Explicitly maintain the context type. Exit loop earlier
10673 if NAME result is seen.
10674
0b1afbb3
PA
106752013-02-12 Pedro Alves <palves@redhat.com>
10676
10677 * amd64-darwin-tdep.c: Add (C) after Copyright.
10678 * cli/cli-cmds.h: Ditto.
10679 * cli/cli-decode.c: Ditto.
10680 * cli/cli-decode.h: Ditto.
10681 * cli/cli-dump.c: Ditto.
10682 * cli/cli-dump.h: Ditto.
10683 * cli/cli-interp.c: Ditto.
10684 * cli/cli-logging.c: Ditto.
10685 * cli/cli-script.c: Ditto.
10686 * cli/cli-script.h: Ditto.
10687 * cli/cli-setshow.c: Ditto.
10688 * cli/cli-setshow.h: Ditto.
10689 * cli/cli-utils.c: Ditto.
10690 * cli/cli-utils.h: Ditto.
10691 * config/alpha/nm-osf3.h: Ditto.
10692 * config/djgpp/djconfig.sh: Ditto.
10693 * config/i386/nm-fbsd.h: Ditto.
10694 * config/i386/nm-i386gnu.h: Ditto.
10695 * config/nm-linux.h: Ditto.
10696 * config/nm-nto.h: Ditto.
10697 * config/rs6000/nm-rs6000.h: Ditto.
10698 * config/sparc/nm-sol2.h: Ditto.
10699 * darwin-nat-info.c: Ditto.
10700 * dfp.c: Ditto.
10701 * dfp.h: Ditto.
10702 * gdb-demangle.h: Ditto.
10703 * i386-darwin-nat.c: Ditto.
10704 * i386-darwin-tdep.c: Ditto.
10705 * linux-fork.h: Ditto.
10706 * m32c-tdep.c: Ditto.
10707 * microblaze-linux-tdep.c: Ditto.
10708 * microblaze-rom.c: Ditto.
10709 * microblaze-tdep.c: Ditto.
10710 * microblaze-tdep.h: Ditto.
10711 * mips-linux-tdep.h: Ditto.
10712 * ppc-ravenscar-thread.c: Ditto.
10713 * ppc-ravenscar-thread.h: Ditto.
10714 * prologue-value.c: Ditto.
10715 * prologue-value.h: Ditto.
10716 * ravenscar-thread.c: Ditto.
10717 * ravenscar-thread.h: Ditto.
10718 * sparc-ravenscar-thread.c: Ditto.
10719 * sparc-ravenscar-thread.h: Ditto.
10720 * tilegx-linux-tdep.c: Ditto.
10721 * unwind_stop_reasons.def: Ditto.
10722 * windows-nat.h: Ditto.
10723 * xtensa-linux-tdep.c: Ditto.
10724 * xtensa-xtregs.c: Ditto.
10725 * regformats/regdat.sh: Ditto.
10726 * regformats/regdef.h: Ditto.
10727
6c01dd94
PA
107282013-02-12 Pedro Alves <palves@redhat.com>
10729
10730 * break-catch-sig.c: Update copyright years.
10731
b65a2bd9
SCR
107322013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10733
10734 Add support for a destructor for ui_out data and use it to
10735 provide a ui_out destructor.
10736 * ui-out.h: Declare the new ui_out destructor.
10737 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10738 * ui-out.c (default_data_destroy): Add a default data destructor
10739 which does nothing.
10740 (default_ui_out_impl): Set the new data_destroy field to
10741 default_data_destroy
10742 (uo_data_destroy): Local function which invokes the data
10743 destructor if present.
10744 (clear_table): Local function which clears the table data of a
10745 ui_out object.
10746 (ui_out_destroy): Public function which frees a ui_out object.
10747 (ui_out_table_end): Use the new clear_table function.
10748 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10749 NULL.
10750 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10751 to NULL.
10752
c2792f5a
DE
107532013-02-11 Doug Evans <dje@google.com>
10754
10755 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10756 (printf_decfloat): New function. Broken out from ui_printf.
10757 Remove unnecessary code to shift the entire format string down.
10758 (printf_pointer): New function.
10759 (ui_printf): Code to print C strings, wide C strings, decfloats,
10760 and pointers moved to separate functions.
10761
d9e98382
SDJ
107622013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10763
10764 * valops.c (value_assign): Handling bitfield offset in
10765 `lval_internalvar_component' case.
10766
4ff3ce77
DE
107672013-02-08 Doug Evans <dje@google.com>
10768
10769 * common/format.c (parse_format_string): Fix whitespace.
10770
901900c4
MGD
107712013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10772
10773 * stack.c (return_command): Work around uninitialized variable
10774 warning.
10775
b5dbc8d4
YZ
107762013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10777
10778 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10779 number of the registers from 36 to 34.
10780
51d66578
MS
107812013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10782
10783 * NEWS: Mention new AArch64 native and target support.
10784
176b1c95
MS
107852013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10786
10787 * MAINTAINERS (Write After Approval): Add myself.
10788
9d19df75
MS
107892013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10790 Marcus Shawcroft <marcus.shawcroft@arm.com>
10791 Nigel Stephens <nigel.stephens@arm.com>
10792 Yufeng Zhang <yufeng.zhang@arm.com>
10793
10794 * aarch64-linux-nat.c: New file.
10795 * config/aarch64/linux.mh: New file.
10796 * configure.host: Add AArch64.
10797 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10798
7e1e0340
DE
107992013-02-07 Doug Evans <dje@google.com>
10800
10801 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10802 disassemble command.
10803
45e25a36
MS
108042013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10805
10806 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10807 set_gdbarch_fetch_tls_load_module_address.
10808
bbfdfe1c
DM
108092013-02-06 David S. Miller <davem@davemloft.net>
10810
10811 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10812 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10813 * value.c (struct_return_convention): New function.
10814 (using_struct_return): Implement in terms of struct_return_convention.
10815 * value.h (struct_return_convention): Declare.
10816 * stack.c (return_command): Allow successful overriding of the return
10817 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10818
bc9abe4a
TT
108192013-02-06 Tom Tromey <tromey@redhat.com>
10820
10821 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10822 outside of TRY_CATCH.
10823
134a2066
YQ
108242013-02-06 Yao Qi <yao@codesourcery.com>
10825
10826 * mi/mi-interp.c: Include "tracepoint.h".
10827 (mi_tsv_modified): Declare.
10828 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10829 (mi_interpreter_init): Call observer_attach_tsv_modified.
10830 (mi_tsv_modified): New.
10831 (mi_tsv_created, mi_tsv_deleted): Update.
10832 * tracepoint.c (trace_variable_command): Call
10833 observer_notify_tsv_modified if the initial value of tsv is
10834 changed.
10835 (delete_trace_state_variable): Call
10836 observer_notify_tsv_deleted earlier.
10837 (trace_variable_command): Caller update.
10838 (create_tsv_from_upload): Likewise.
10839 * observer.sh: Declare "struct trace_state_variable".
10840
10841 * NEWS: Mention the new MI notification "=tsv-modified".
10842
59be2b6a
DE
108432013-02-05 Doug Evans <dje@google.com>
10844
10845 * completer.c (location_completer): Fix typo in comment.
10846
d30113d4
JK
108472013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10848
10849 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10850 ADDRESS sorted.
10851
14ac654f
MS
108522013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10853
10854 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10855 Refactor if statement to avoid trailing || operator.
10856
543bf33d
AT
108572013-02-05 Andreas Tobler <andreast@fgznet.ch>
10858
10859 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10860
dc18f110
AT
108612013-02-04 Andreas Tobler <andreast@fgznet.ch>
10862
10863 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10864 * configure.host: Add powerpc*-*-freebsd* target.
10865 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10866 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10867 * config/powerpc/fbsd.mh: New file.
10868
b3ac9c77
SDJ
108692013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10870 Denys Vlasenko <dvlasenk@redhat.com>
10871 Pedro Alves <palves@redhat.com>
10872
10873 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10874 (struct elf_internal_linux_prpsinfo): Forward declare.
10875 * gdbarch.h, gdbarch.c: Regenerate.
10876 * linux-tdep.c: Include `cli/cli-utils.h'.
10877 (linux_fill_prpsinfo): New function.
10878 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10879 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10880 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10881 depending on gdbarch pointer bitness.
10882 * ppc-linux-tdep.c: Include elf-bfd.h.
10883 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10884 on 32-bit.
10885
176eb98c
MS
108862013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10887 Marcus Shawcroft <marcus.shawcroft@arm.com>
10888 Nigel Stephens <nigel.stephens@arm.com>
10889 Yufeng Zhang <yufeng.zhang@arm.com>
10890
10891 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10892
cf0dbd6f
MS
108932013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10894 Marcus Shawcroft <marcus.shawcroft@arm.com>
10895 Nigel Stephens <nigel.stephens@arm.com>
10896 Yufeng Zhang <yufeng.zhang@arm.com>
10897
10898 * aarch64-newlib-tdep.c: New file.
10899 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10900 aarch64*-*-elf.
10901 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10902 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10903 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10904 * osabi.c (gdb_osabi_names): Add "Newlib".
10905
1ae3db19
MS
109062013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10907 Marcus Shawcroft <marcus.shawcroft@arm.com>
10908 Nigel Stephens <nigel.stephens@arm.com>
10909 Yufeng Zhang <yufeng.zhang@arm.com>
10910
10911 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10912 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10913 * aarch64-linux-tdep.c: New file.
10914 * aarch64-linux-tdep.h: New file.
10915 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10916 * configure.tgt: Add aarch64-none-linux-gnu.
10917
07b287a0
MS
109182013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10919 Marcus Shawcroft <marcus.shawcroft@arm.com>
10920 Nigel Stephens <nigel.stephens@arm.com>
10921 Yufeng Zhang <yufeng.zhang@arm.com>
10922
10923 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10924 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10925 (ALLDEPFILES): Add aarch64-tdep.c.
10926 * aarch64-tdep.c: New file.
10927 * aarch64-tdep.h: New file.
10928 * configure.tgt: Add AArch64.
10929 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10930 (aarch64-expedite): New definition.
10931 * features/aarch64-core.xml: New file.
10932 * features/aarch64-fpu.xml: New file.
10933 * features/aarch64-without-fpu.c: New file (generated).
10934 * features/aarch64-without-fpu.xml: New file.
10935 * features/aarch64.c: New file (generated).
10936 * features/aarch64.xml: New file.
10937 * regformats/aarch64-without-fpu.dat: New file (generated).
10938 * regformats/aarch64.dat: New file (generated).
10939
0f1b18ab
JK
109402013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10941
10942 * contrib/expect-read1.c: New file.
10943 * contrib/expect-read1.sh: New file.
10944
233d95b5
JK
109452013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10946
10947 * dwarf2read.c (file_file_name): New function with code from
10948 file_full_name.
10949 (file_full_name): Move most of the code to file_file_name.
10950 (macro_start_file): Rename variable full_name to file_name and use
10951 file_file_name for it. Add comp_dir parameter to new_macro_table.
10952 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10953 macro_source_file->filename access by macro_source_fullname call.
10954 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10955 caller.
10956 * macrotab.c (struct macro_table): New field comp_dir.
10957 (macro_include): New variables link_fullname and source_fullname.
10958 Replace any macro_source_file->filename access by macro_source_fullname
10959 call.
10960 (macro_lookup_inclusion): Remove the partial filenames checking code.
10961 (check_for_redefinition): New variables source_fullname and
10962 found_key_fullname. Replace any macro_source_file->filename access by
10963 macro_source_fullname call.
10964 (macro_undef): New variables source_fullname and key_fullname. Replace
10965 any macro_source_file->filename access by macro_source_fullname call.
10966 (macro_lookup_definition): New variables retval and source_fullname.
10967 Replace any macro_source_file->filename access by macro_source_fullname
10968 call.
10969 (foreach_macro): New variable key_fullname. Replace any
10970 macro_source_file->filename access by macro_source_fullname call.
10971 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10972 macro_source_file->filename access by macro_source_fullname call.
10973 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10974 (macro_source_fullname): New function.
10975 * macrotab.h (struct macro_source_file): Extent the filename field
10976 comment.
10977 (new_macro_table): New parameter comp_dir, add a comment for it.
10978 (macro_source_fullname): new declaration.
10979
da235a7c
JK
109802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10981
10982 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10983 this_real_name to outer block. Use it also for
10984 compare_filenames_for_search.
10985 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10986 with dw2_get_real_path for file_matcher, considering also
10987 BASENAMES_MAY_DIFFER.
10988 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10989
fbd9ab74
JK
109902013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10991
10992 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10993 to the file_matcher parameter. Pass 0 to it.
10994 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10995 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10996 NULL psymtab_to_fullname result.
10997 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10998 an expected filename instead.
10999 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11000 file_matcher parameter. Call also psymtab_to_fullname, after newly
11001 considering BASENAMES_MAY_DIFFER.
11002 * source.c (rewrite_source_path): Remove static.
11003 * source.h (rewrite_source_path): New declaration.
11004 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11005 the expand_symtabs_matching field. Comment it.
11006 * symtab.c (file_matches): New function comment. Add parameter
11007 basenames, implement it.
11008 (search_symbols_file_matches): Add basenames parameter. Update the
11009 file_matches caller.
11010 (search_symbols): Match FILES also against symtab_to_fullname.
11011 Optimize it for BASENAMES_MAY_DIFFER.
11012
56d397a3
JK
110132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11014
11015 * source.c (print_source_lines_base): Print for TUI also "fullname".
11016 * tui/tui-data.c (init_content_element): Change tui_locator_element
11017 field to full_name.
11018 * tui/tui-data.h (struct tui_locator_element): Likewise.
11019 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11020 tui_update_locator_filename calls to tui_update_locator_fullname.
11021 Replace symtab->filename refererence by symtab_to_fullname call.
11022 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11023 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11024 field to full_name. Replace symtab->filename refererence by
11025 symtab_to_fullname call.
11026 (tui_show_symtab_source): Rename parameter to fullname. Change
11027 tui_locator_element field to full_name.
11028 * tui/tui-stack.c: Include source.h.
11029 (tui_set_locator_filename): Rename the declaration to ...
11030 (tui_set_locator_fullname): ... here. Rename its parameter to
11031 fullname, updates its comment.
11032 (tui_set_locator_info): Rename its parameter to fullname.
11033 (tui_set_locator_filename): Rename the definition to ...
11034 (tui_set_locator_fullname): ... here. Rename its parameter to
11035 fullname, updates its comment. Change tui_locator_element field to
11036 full_name.
11037 (tui_set_locator_info): Rename its parameter to fullname.
11038 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11039 (tui_update_locator_filename): Rename to ...
11040 (tui_update_locator_fullname): ... here. Rename callee to
11041 tui_set_locator_fullname.
11042 (tui_show_frame_info): Replace symtab->filename refererence by
11043 symtab_to_fullname call.
11044 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11045 (tui_update_locator_fullname): ... here.
11046 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11047 tui_update_locator_fullname. Replace symtab->filename refererence by
11048 symtab_to_fullname call.
11049 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11050 Rename the callee to tui_update_locator_fullname.
11051 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11052
05cba821
JK
110532013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11054
11055 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11056 by symtab_to_filename_for_display calls.
11057 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11058 (clear_command): New variable sal_fullname, initialize it. Replace
11059 compare_filenames_for_search by filename_cmp with sal_fullname.
11060 (say_where, update_static_tracepoint): Replace symtab->filename
11061 refererences by symtab_to_filename_for_display calls.
11062 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11063 Likewise.
11064 * dwarf2read.c: Include source.h.
11065 (fixup_go_packaging): Replace symtab->filename refererences by
11066 symtab_to_filename_for_display calls.
11067 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11068 Replace symtab->filename refererences by symtab_to_filename_for_display
11069 calls.
11070 (create_sals_line_offset, convert_linespec_to_sals): New variable
11071 fullname, initialize it, replace symtab->filename reference by the
11072 variable.
11073 * linux-fork.c: Include source.h.
11074 (info_checkpoints_command): Replace symtab->filename refererences by
11075 symtab_to_filename_for_display calls.
11076 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11077 by symtab_to_filename_for_display calls.
11078 * mdebugread.c: Include source.h.
11079 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11080 symtab_to_filename_for_display calls.
11081 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11082 (mi_cmd_file_list_exec_source_files): Likewise.
11083 * printcmd.c: Include source.h.
11084 (build_address_symbolic): Replace symtab->filename refererences by
11085 symtab_to_filename_for_display calls.
11086 * psymtab.c (partial_map_symtabs_matching_filename)
11087 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11088 with psymtab_to_fullname.
11089 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11090 by symtab_to_filename_for_display calls.
11091 (stpy_get_filename): New variable filename, initialize it, use instead
11092 of symtab->filename refererences.
11093 (salpy_str): Make variable filename const char *. Replace
11094 symtab->filename refererences by symtab_to_filename_for_display calls.
11095 * skip.c: Include source.h and filenames.h.
11096 (skip_file_command): Remove const from the symtab variable. Replace
11097 symtab->filename refererences by symtab_to_fullname call.
11098 (function_name_is_marked_for_skip): New variables searched_for_fullname
11099 and fullname. Use them to search also with symtab's fullname.
11100 * source.c (find_source_lines): Replace symtab->filename refererences
11101 by symtab_to_filename_for_display calls.
11102 (print_source_lines_base): New variable filename, use it instead of
11103 symtab->filename. Replace symtab->filename refererences by
11104 symtab_to_filename_for_display calls.
11105 (line_info, forward_search_command): Replace symtab->filename
11106 refererences by symtab_to_filename_for_display calls.
11107 (reverse_search_command): Replace symtab->filename refererences by
11108 symtab_to_filename_for_display calls. New variable filename for it.
11109 * stack.c (frame_info): Likewise.
11110 * symmisc.c: Include source.h.
11111 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11112 (maintenance_info_symtabs): Replace symtab->filename refererences by
11113 symtab_to_filename_for_display calls.
11114 * symtab.c (iterate_over_some_symtabs): Call
11115 compare_filenames_for_search also with symtab_to_fullname.
11116 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11117 symtab->filename refererences by symtab_to_filename_for_display calls.
11118 (find_line_symtab): Replace symtab->filename refererences by
11119 symtab_to_filename_for_display calls.
11120 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11121 (print_symbol_info): Make the last parameter const char *. New
11122 variable s_filename. Use it in the function.
11123 (symtab_symbol_info): Make the last_filename variable const char *.
11124 Replace symtab->filename refererences by symtab_to_filename_for_display
11125 calls.
11126 (rbreak_command): New variable fullname. Use it. Replace
11127 symtab->filename refererence by symtab_to_filename_for_display call.
11128 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11129 (print_one_static_tracepoint_marker): Replace symtab->filename
11130 refererences by symtab_to_filename_for_display calls.
11131 * tui/tui-source.c (tui_set_source_content): New variables filename and
11132 s_filename. Replace symtab->filename refererences by this variable.
11133 Replace other symtab->filename refererences by
11134 symtab_to_filename_for_display calls.
11135
1b56eb55
JK
111362013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11137 Jan Kratochvil <jan.kratochvil@redhat.com>
11138
11139 Add a new variable that controls a way in which filenames are
11140 displayed.
11141 * NEWS (set filename-display): New entry.
11142 * source.c (filename_display_basename, filename_display_relative)
11143 (filename_display_absolute, filename_display_kind_names)
11144 (filename_display_string, show_filename_display_string)
11145 (symtab_to_filename_for_display): New.
11146 (_initialize_source): Added initialization of 'filename-display'
11147 variable.
11148 * source.h (symtab_to_filename_for_display): Added declaration.
11149 * stack.c (print_frame): Added new variable and calling of a new
11150 function and condition with this variable. Changed third argument of
11151 calling of a function.
11152
aa079c93
JK
111532013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11154
11155 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11156 Rename field reference filename to fullname.
11157 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11158 fullname. New comment for it.
11159 * tui/tui-source.c (tui_set_source_content): Rename field reference
11160 filename to fullname. Initialize field by symtab_to_fullname now.
11161 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11162 reference filename to fullname. Use symtab_to_fullname during
11163 comparison.
11164
652a8996
JK
111652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11166
11167 Code cleanup.
11168 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11169 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11170 filename to fullname. Rename variable this_name to this_fullname.
11171 Lowercase FILENAME_CMP call.
11172 (dw2_find_symbol_file): New comment for the returned string.
11173 (dwarf2_gdb_index_functions): Rename the function to
11174 dw2_expand_symtabs_with_fullname.
11175 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11176 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11177 fullname.
11178 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11179 * symfile.h (struct quick_symbol_functions): Rename field
11180 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11181 parameter filename to fullname. Document returned string meaning for
11182 find_symbol_file.
11183 * symtab.c (find_line_symtab): Rename the called function to
11184 expand_symtabs_with_fullname.
11185
af529f8f
JK
111862013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11187
11188 Code cleanup.
11189 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11190 call of filename_cmp with compare_filenames_for_search.
11191 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11192 is_abs, unify the call of FILENAME_CMP with
11193 compare_filenames_for_search. New gdb_asserts for real_path and name.
11194 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11195 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11196 * symfile.h (struct quick_symbol_functions): Extend the comment for
11197 map_symtabs_matching_filename.
11198 * symtab.c (compare_filenames_for_search): Remove the function comment
11199 relative path requirement. Handle absolute filenames, with a comment.
11200 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11201 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11202 real_path and name. Unify the call of compare_filenames_for_search
11203 with FILENAME_CMP.
11204 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11205
2f202fde
JK
112062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11207
11208 Code cleanup.
11209 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11210 source_file references by symtab field references. Remove variables
11211 sal and fullname.
11212 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11213 (clear_command, say_where): Replace bp_location field source_file
11214 references by symtab field references.
11215 (bp_location_dtor): Remove the source_file reference.
11216 (update_static_tracepoint): Replace bp_location field source_file
11217 references by symtab field references.
11218 (breakpoint_free_objfile): New function.
11219 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11220 Replace the field source_file by field symtab, extend its comment.
11221 (breakpoint_free_objfile): New declaration.
11222 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11223 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11224 field source_file references by symtab field references.
11225
f5b95b50
JK
112262013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11227
11228 Replace xfullpath calls by gdb_realpath calls.
11229 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11230 function comment.
11231 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11232 Remove it from the iterate_over_some_symtabs call.
11233 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11234 Remove it from the dw2_map_expand_apply calls, remove a block handling
11235 it.
11236 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11237 Remove it from the iterate_over_some_symtabs call.
11238 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11239 Remove it from the partial_map_expand_apply calls, remove a block
11240 handling it. Drop gdb_realpath call and cleanups from the real_path
11241 handling.
11242 * source.c (openp): Drop the comment part about xfullpath. Replace
11243 xfullpath calls by gdb_realpath calls.
11244 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11245 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11246 from method map_symtabs_matching_filename and its comment.
11247 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11248 gdb_realpath call.
11249 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11250 remove it also from the function comment, remove a block handling it.
11251 Drop gdb_realpath call and cleanups from the real_path handling.
11252 (iterate_over_symtabs): Drop variable full_path and its use.
11253 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11254 * utils.c (xfullpath): Remove.
11255 * utils.h (xfullpath): Remove.
11256
d78489bf
AT
112572013-02-01 Andreas Tobler <andreast@fgznet.ch>
11258
11259 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11260 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11261 (ALLDEPFILES): Add ppc64-tdep.c.
11262 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11263 ppc64-tdep.o to gdb_target_obs.
11264 * ppc64-tdep.h: New file.
11265 * ppc64-tdep.c: New file.
11266 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11267 ppc-linux-tdep.c to here.
11268 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11269 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11270 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11271 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11272 from ppc-linux-tdep.c to here.
11273 (ppc64_convert_from_func_ptr_addr): Rename from
11274 ppc64_linux_convert_from_func_ptr_addr to
11275 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11276 here.
11277 * rs6000-tdep.c:
11278 (read_insn): Move from ppc-linux-tdep.c to here.
11279 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11280 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11281 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11282 Removed above functions.
11283 (ppc_linux_init_abi): Adjust.
11284
8db60374
AR
112852013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11286
11287 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11288
f2e5f4ce
AR
112892013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11290
11291 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11292
c1f7d745
PA
112932013-02-01 Pedro Alves <palves@redhat.com>
11294
11295 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11296 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11297
8a92335b
JK
112982013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11299
11300 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11301 files with no separate debug info.
11302 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11303 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11304 only for files with no separate debug info.
11305
8eacb197
TT
113062013-01-31 Tom Tromey <tromey@redhat.com>
11307
11308 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11309 change type.
11310 (struct jit_program_space_data): Rename from jit_inferior_data.
11311 Update comments.
11312 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11313 Change return type. Attach data to program space.
11314 (jit_program_space_data_cleanup): Rename from
11315 jit_inferior_data_cleanup; change argument type.
11316 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11317 change type.
11318 (jit_register_code): Update.
11319 (jit_update_inferior_cache): Remove.
11320 (jit_breakpoint_deleted): Get jit data from the location's program
11321 space.
11322 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11323 'ps_data', change type.
11324 (jit_inferior_init, jit_breakpoint_re_set_internal)
11325 (jit_event_handler): Update.
11326 (free_objfile_data): Get data from objfile's program space.
11327 (_initialize_jit): Update.
11328
f25c0135
TT
113292013-01-31 Tom Tromey <tromey@redhat.com>
11330
11331 PR gdb/13987:
11332 * jit.c (struct jit_inferior_data) <cached_code_address,
11333 jit_breakpoint>: New fields.
11334 (jit_breakpoint_re_set_internal): Fix logging. Only create
11335 breakpoint if cached address has changed.
11336 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11337 functions.
11338 (_initialize_jit): Register breakpoint deleted observer.
11339
974a734b
AR
113402013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11341
11342 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11343 (save_infcall_suspend_state): Ifdef out unused inf.
11344 (restore_infcall_suspend_state): Ifdef out unused inf.
11345 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11346 (jit_frame_sniffer): Remove unused inf_data.
11347
df54f8eb
AR
113482013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11349
11350 * c-exp.y (classify_inner_name): Remove unused type.
11351 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11352 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11353 need_escape.
11354 (c_get_string): Remove unused kind.
11355 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11356
5799c0b9
AR
113572013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11358
11359 * charset.c (intermediate_encoding): Remove unused i.
11360 * completer.c (signal_completer): Remove unused i.
11361 * continuations.c (discard_my_continuations_1): Remove unused
11362 continuation_ptr.
11363 * corelow.c (core_close): Remove unuseD name.
11364 (get_core_siginfo): Remove unused pid.
11365 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11366 i, cps.
11367 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11368 (loclist_describe_location): Remove unused first.
11369 * event-top.c (command_line_handler): Remove unused got_eof.
11370 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11371 (resize_section_table): Remove unused old_value.
11372 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11373 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11374 * i386-tdep.c (i386_process_record): Remove unused rex.
11375 * infcmd.c (get_return_value): Remove unused uiout.
11376 * jv-lang.c (type_from_class): Remove unused is_array.
11377 * jv-valprint.c (java_val_print): Remove unused i.
11378 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11379 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11380 * m2-typeprint.c (m2_print_type): Remove unused code.
11381 * macroexp.c (get_character_constant): Remove unused body_start.
11382 (macro_stringify): Remove unused result.
11383 * objc-lang.c (find_methods): Remove unused gdbarch.
11384 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11385 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11386 * stack.c (print_frame_args): Remove unused summary.
11387 * thread.c (thread_apply_command): Remove unused p.
11388 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11389 * valops.c (search_struct_method): Remove unused skip.
11390 * valprint.c (generic_val_print): Remove unused byte_order.
11391 * varobj.c (varobj_update): Remove unused changed.
11392 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11393 (alias_command): Remove unused c.
11394 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11395 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11396 format.
11397 (mi_cmd_data_write_memory): Remove unused word_format.
11398 (mi_cmd_data_write_memory_bytes): Remove unused r.
11399 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11400 p_start, p_end.
11401 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11402 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11403 line_width.
11404
c656bca5
AR
114052013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11406
11407 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11408 * symtab.c (iterate_over_symtabs): Remove unused s.
11409 (find_pc_sect_symtab): Remove unused pspAce.
11410 (find_pc_sect_line): Remove unused alt_symtab.
11411 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11412 (completion_list_add_name): Remove unused newsize.
11413
7078baeb
TT
114142013-01-31 Tom Tromey <tromey@redhat.com>
11415
11416 PR c++/14998:
11417 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11418 TYPE_CODE_FUNC.
11419
c2e8b827
AR
114202013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11421
11422 * target.c (target_read_string): Remove unused origlen.
11423
0e43993a
AR
114242013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11425
11426 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11427 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11428 * ax-general.c (ax_print): Remove unused is_float.
11429 * blockframe.c (block_innermost_frame): Remove unused start, end.
11430 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11431
765a97ab
AR
114322013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11433
11434 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11435 (svr4_read_so_list): Remove unused lmo.
11436 * solib-target.c (solib_target_relocate_section_addresses): Remove
11437 unused flags.
11438
a99dad3d
TT
114392013-01-30 Tom Tromey <tromey@redhat.com>
11440
11441 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11442
3bff1ecd
TT
114432013-01-30 Tom Tromey <tromey@redhat.com>
11444
11445 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11446 * utils.c (gnu_debuglink_crc32): Remove.
11447 * utils.h (gnu_debuglink_crc32): Don't declare.
11448
7d455152
TT
114492013-01-30 Tom Tromey <tromey@redhat.com>
11450
11451 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11452 (read_structure_type, read_enumeration_type): Remove cast.
11453
abee88f2
TT
114542013-01-30 Tom Tromey <tromey@redhat.com>
11455
11456 * dwarf2read.c (read_namespace_type): Remove cast.
11457 (read_typedef): Likewise.
11458
8d9878a4
TT
114592013-01-29 Tom Tromey <tromey@redhat.com>
11460
11461 * dwarf2read.c (free_dwo_file): Remove assert.
11462
a543d2a9
TT
114632013-01-29 Tom Tromey <tromey@redhat.com>
11464
11465 * value.c (deprecated_set_value_modifiable): Remove.
11466 * value.h (deprecated_set_value_modifiable): Remove.
11467
bed911e5
DE
114682013-01-28 Doug Evans <dje@google.com>
11469
11470 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11471 to addresses from dwo files.
11472
28c64fc2
SCR
114732013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11474
11475 * valops.c (find_overload_match): Remove unused argument 'lax'.
11476 * value.h: Remove unused argument 'lax' from the declaration of
11477 find_overload_match.
11478 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11479 to find_overload_match.
11480 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11481 argument to find_overload_match.
11482
4d4ec4e5
TT
114832013-01-25 Tom Tromey <tromey@redhat.com>
11484
11485 * dwarf2read.c (processing_has_namespace_info): Remove.
11486 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11487 (process_die, read_func_scope, dwarf2_start_symtab)
11488 (new_symbol_full): Update.
11489
195a3f6c
TT
114902013-01-25 Tom Tromey <tromey@redhat.com>
11491
11492 * cp-namespace.c (cp_set_block_scope): Remove.
11493 * cp-support.h (cp_set_block_scope): Remove.
11494 * dbxread.c: Include block.h.
11495 (cp_set_block_scope): New function.
11496 (process_one_symbol): Update.
11497 * dwarf2read.c (read_func_scope): Use block_set_scope.
11498
8ba0730a
PA
114992013-01-25 Pedro Alves <palves@redhat.com>
11500
11501 * remote.c (add_current_inferior_and_thread): Tweak comment.
11502
12aaed36
TT
115032013-01-25 Tom Tromey <tromey@redhat.com>
11504
11505 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11506 (cp_add_using_directive): Add 'copy_names' argument.
11507 * cp-support.h (cp_add_using_directive): Update.
11508 (struct using_direct) <import_src, import_dest, alias,
11509 declaration>: Now const.
11510 * dwarf2read.c (read_import_statement): Use obconcat.
11511 Don't copy names passed to cp_add_using_directive.
11512
7fc75ca7
TT
115132013-01-25 Tom Tromey <tromey@redhat.com>
11514
11515 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11516
3405876a
PA
115172013-01-25 Pedro Alves <palves@redhat.com>
11518
11519 * remote.c (stop_reply_extract_thread): New.
11520 (add_current_inferior_and_thread): New parameter 'wait_status'.
11521 Handle it.
11522 (remote_start_remote): Pass wait status to
11523 add_current_inferior_and_thread.
11524 (extended_remote_run): Update comment.
11525 (extended_remote_create_inferior_1): Pass wait status to
11526 add_current_inferior_and_thread.
11527
8954db33
AB
115282013-01-25 Andrew Burgess <aburgess@broadcom.com>
11529 Ulrich Weigand <uweigand@de.ibm.com>
11530
11531 * valarith.c (value_vector_widen): New function for replicating a
11532 scalar into a vector.
11533 (value_binop): Use value_vector_widen to widen scalar to vector
11534 rather than casting, this better matches gcc C behaviour.
11535 * valops.c (value_casst): Update logic for casting between vector
11536 types, and for casting from scalar to vector, try to match gcc C
11537 behaviour.
11538 * value.h (value_vector_widen): Declare.
11539 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11540 function, handle special case for casting scalar to vector.
11541 (opencl_relop): Use opencl_value_cast.
11542 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11543 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11544 in order to use opencl_value_cast.
11545
843b20dc
YQ
115462013-01-25 Yao Qi <yao@codesourcery.com>
11547
11548 * event-loop.c: Include "queue.h".
11549 (gdb_event_p): New typedef.
11550 (DECLARE_QUEUE_P): Use.
11551 (DEFINE_QUEUE_P): Use.
11552 (async_queue_event): Remove.
11553 (gdb_event_xfree): New.
11554 (initialize_event_loop): New.
11555 (process_event): Use QUEUE macros.
11556 (event_queue): Remove.
11557 (gdb_wait_for_event): Caller update.
11558 (check_async_event_handlers): Likewise.
11559 (poll_timers): Likewise.
11560 * event-loop.h (initialize_event_loop): Declare.
11561 * event-loop.c (gdb_event_xfree): New.
11562 * top.c (gdb_init): Call initialize_event_loop.
11563
20ad8856
YQ
115642013-01-25 Yao Qi <yao@codesourcery.com>
11565
11566 * event-loop.c (async_queue_event): Remove one parameter
11567 'position'. Remove code handling 'position' == TAIL.
11568 (gdb_wait_for_event): Caller update.
11569 (check_async_event_handlers): Caller update.
11570 (poll_timers): Caller update.
11571 * event-loop.h (enum queue_position): Remove.
11572
3bbbe775
MK
115732013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11574
11575 * MAINTAINERS: Update my email.
11576
a87d9ac4
YQ
115772013-01-25 Yao Qi <yao@codesourcery.com>
11578
11579 * main.c (print_gdb_help): Remove "--epoch" from the help
11580 message.
11581
2077afdd
TD
115822013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11583
11584 * symtab.c (skip_prologue_using_sal): Consider a file
11585 change the same as an increased line number
11586
63da4037
TD
115872013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11588
30e8ee25 11589 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11590
45e6c716
TT
115912013-01-24 Tom Tromey <tromey@redhat.com>
11592
11593 * ada-lang.h (ada_decode_symbol): Make return type const.
11594 * ada-lang.c (ada_decode_symbol): Likewise.
11595
b1ae631a
DE
115962013-01-23 Doug Evans <dje@google.com>
11597
11598 * linespec.c (find_linespec_symbols): Make static.
11599
55a78401
SDJ
116002013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11601
11602 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11603 type on float conversion for complex type.
11604
bea883fd
SCR
116052013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11606
11607 Add a new class gdb.Architecture which exposes GDB's
11608 internal representation of architecture via GDB Python API.
11609 * Makefile.in: Add entries corresponding to the new file
11610 python/py-arch.c.
11611 * NEWS (Python Scripting): Add entries for the new class
11612 gdb.Architecture and the new method gdb.Frame.architecture.
11613 * python/py-arch.c: Implement gdb.Architecture class.
11614 * python/py-frame.c (frapy_arch): Implement the method
11615 gdb.Frame.architecture().
11616 (frame_object_methods): Add 'architecture' to the method table.
11617 * python/python-internal.h: Add declarations of new utility
11618 functions.
11619 * python/python.c (_initialize_python): Initialize
11620 gdb.Architecture class.
11621
796a7ff8
DE
116222013-01-23 Doug Evans <dje@google.com>
11623
11624 Work around binutils/15021.
11625 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11626 type_unit_group out of union s. All uses updated.
11627 (read_index_from_section): Watch for index version 8.
11628 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11629 an imported symtab.
11630 (write_psymtabs_to_index): Increment version number to 8.
11631
0928e93d
PA
116322013-01-22 Pedro Alves <palves@redhat.com>
11633
11634 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11635 user-visible.
11636
9c97429f
PA
116372013-01-22 Pedro Alves <palves@redhat.com>
11638
11639 * annotate.c (annotate_breakpoints_changed): Rename to ...
11640 (annotate_breakpoints_invalid): ... this. Make static.
11641 (breakpoint_changed): Adjust.
11642 (_initialize_annotate): Always install the observers. Install a
11643 "breakpoint_created" observer.
11644 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11645 * breakpoint.c (set_breakpoint_condition)
11646 (breakpoint_set_commands, do_map_commands_command)
11647 (init_raw_breakpoint, clear_command, set_ignore_count)
11648 (enable_breakpoint_disp): No longer call
11649 annotate_breakpoints_changed.
11650
bd00c694
PA
116512013-01-22 Pedro Alves <palves@redhat.com>
11652
11653 * annotate.c: Include "inferior.h".
11654 (frames_invalid_emitted)
11655 (breakpoints_invalid_emitted): New globals.
11656 (async_background_execution_p): New function.
11657 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11658 emitting the annotation if it has already been emitted.
11659 (annotate_display_prompt): New function.
11660 * annotate.h (annotate_display_prompt): New declaration.
11661 * event-top.c: Include annotate.h.
11662 (display_gdb_prompt): Call annotate_display_prompt.
11663
187d10dd
PA
116642013-01-22 Pedro Alves <palves@redhat.com>
11665
11666 * annotate.c (ignore_count_changed): Delete.
11667 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11668 (annotate_ignore_count_change): Delete.
11669 (annotate_stopped): Don't emit a delayed breakpoints-changed
11670 annotation.
11671 * annotate.h (annotate_ignore_count_change): Delete.
11672 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11673 annotate_ignore_count_change.
11674
d84cf7eb
TT
116752013-01-22 Tom Tromey <tromey@redhat.com>
11676
11677 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11678 require_rvalue for a register location.
11679
8f1d5693
MK
116802013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11681
11682 * breakpoint.c (print_one_breakpoint_location): Add MI
11683 field 'thread-groups' when printing a breakpoint.
11684 (output_thread_groups): New function.
11685
aa6199c6
SCR
116862013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11687
11688 * python/lib/gdb/commands/explore.py
11689 (CompoundExplorer.explore_expr): Correct the name of a method
11690 being invoked.
11691 (ExploreTypeCommand.invoke): Add a missing 'return'.
11692
d2afef13
TT
116932013-01-21 Tom Tromey <tromey@redhat.com>
11694
11695 * gdb_obstack.h (obconcat): Move declaration here, from...
11696 * symfile.h (obconcat): ... here.
11697 * gdb_obstack.c: New file.
11698 (obconcat): Move from...
11699 * symfile.c (obconcat): ... here.
11700 * Makefile.in (SFILES): Add gdb_obstack.c.
11701 (COMMON_OBS): Add gdb_obstack.o.
11702
10f0c4bb
TT
117032013-01-21 Tom Tromey <tromey@redhat.com>
11704
11705 * symfile.h (obsavestring): Don't declare.
11706 * symfile.c (obsavestring): Remove.
11707 * ada-exp.y: Use obstack_copy0, not obsavestring.
11708 * ada-lang.c: Use obstack_copy0, not obsavestring.
11709 * coffread.c: Use obstack_copy0, not obsavestring.
11710 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11711 * dbxread.c: Use obstack_copy0, not obsavestring.
11712 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11713 * jit.c: Use obstack_copy0, not obsavestring.
11714 * mdebugread.c: Use obstack_copy0, not obsavestring.
11715 * psymtab.c: Use obstack_copy0, not obsavestring.
11716 * stabsread.c: Use obstack_copy0, not obsavestring.
11717 * xcoffread.c: Use obstack_copy0, not obsavestring.
11718
86f62fd7
TT
117192013-01-21 Tom Tromey <tromey@redhat.com>
11720
11721 * dwarf2read.c (fixup_go_packaging): Save package name
11722 on objfile obstack.
11723 * gdbtypes.c (init_type): Don't copy name.
11724
15d034d0
TT
117252013-01-21 Tom Tromey <tromey@redhat.com>
11726
11727 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11728 const.
11729 (struct attribute) <u.str>: Now const.
11730 (struct fnfieldlist) <name>: Now const.
11731 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11732 (partial_die_parent_scope): Make return type const.
11733 (partial_die_full_name, add_partial_symbol): Update.
11734 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11735 'name' const.
11736 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11737 (read_file_scope, read_func_scope, dwarf2_add_field)
11738 (dwarf2_add_member_fn, read_structure_type)
11739 (process_enumeration_scope, read_array_type, read_module_type)
11740 (read_base_type, read_subrange_type): Update.
11741 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11742 (new_symbol_full, guess_full_die_structure_name): Update.
11743 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11744 (dwarf2_name): Return const type.
11745 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11746 const.
11747
748e18ae
TT
117482013-01-21 Tom Tromey <tromey@redhat.com>
11749
11750 * gdbtypes.c (init_type): Make 'name' const.
11751 * gdbtypes.h (init_type): Update.
11752
46212e0b
TT
117532013-01-21 Tom Tromey <tromey@redhat.com>
11754
11755 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11756 (start_symtab): Make 'name' and 'dirname' const. Use
11757 set_last_source_file.
11758 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11759 (last_source_file): Define. Now static.
11760 (set_last_source_file, get_last_source_file): New functions.
11761 * buildsym.h (last_source_file): Don't declare.
11762 (start_symtab): Update.
11763 (set_last_source_file, get_last_source_file): Declare.
11764 * coffread.c (complete_symtab): Use set_last_source_file.
11765 (coff_end_symtab): Likewise.
11766 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11767 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11768 set_last_source_file.
11769 (process_one_symbol): Use get_last_source_file.
11770 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11771 (psymtab_to_symtab_1): Use get_last_source_file.
11772 * xcoffread.c (process_linenos): Use get_last_source_file.
11773 (complete_symtab): Use set_last_source_file.
11774 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11775 (scan_xcoff_symtab): Use set_last_source_file.
11776
9d2ceabe
TT
117772013-01-21 Tom Tromey <tromey@redhat.com>
11778
11779 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11780 (symbol_set_names): Remove casts. Handle field const-ness.
11781
cfc594ee
TT
117822013-01-21 Tom Tromey <tromey@redhat.com>
11783
11784 * dwarf2read.c (new_symbol_full): Remove cast.
11785 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11786 * symtab.h (symbol_set_demangled_name): Update.
11787
5484b13a
TT
117882013-01-21 Tom Tromey <tromey@redhat.com>
11789
11790 * main.c (captured_main): Call bfd_init.
11791
1605ef26
TT
117922013-01-21 Tom Tromey <tromey@redhat.com>
11793
11794 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11795 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11796 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11797 * NEWS: Update.
11798
3b74cdc3
JK
117992013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11800
11801 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11802
5a352474
JK
118032013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11804
11805 Fix gdb.fortran/common-block.exp crash in PIE mode.
11806 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11807 LOC_COMMON_BLOCK.
11808 * f-valprint.c (info_common_command_for_block): Expect
11809 LOC_COMMON_BLOCK in gdb_assert.
11810 * symtab.h (struct general_symbol_info): Update comment for the
11811 common_block member.
11812 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11813 (enum address_class): New member LOC_COMMON_BLOCK.
11814
c60797fd
DB
118152013-01-18 David Blaikie <dblaikie@gmail.com>
11816
11817 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11818
46f35228
TT
118192013-01-18 Tom Tromey <tromey@redhat.com>
11820
11821 PR c++/14999:
11822 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11823 Call require_rvalue.
11824
257e7a09
YQ
118252013-01-18 Yao Qi <yao@codesourcery.com>
11826
11827 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11828 (dbx_read_symtab): New declaration.
11829 (dbx_psymtab_to_symtab): Delete.
11830 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11831 Rename parameter PST to SELF. Exchanged two parameters.
11832 (start_psymtab): Caller update.
11833 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11834 (dwarf2_read_symtab): New declaration.
11835 (dwarf2_psymtab_to_symtab): Delete.
11836 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11837 Rename parameter PST to SELF. Exchanged two parameters.
11838 (create_partial_symtab): Caller update.
11839 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11840 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11841 Rename parameter PST to SELF. Exchanged two parameters.
11842 (parse_partial_symbols, new_psymtab): Caller update.
11843 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11844 two parameters.
11845 * psymtab.c (psymtab_to_symtab): Caller update.
11846 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11847 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11848 Rename parameter PST to SELF. Exchanged two parameters.
11849 (xcoff_start_psymtab): Caller update.
11850
0de5618e
YQ
118512013-01-18 Yao Qi <yao@codesourcery.com>
11852
11853 * infrun.c (proceed): Rename local variable 'oneproc' to
11854 'force_step'.
11855
5c04624b
DE
118562013-01-17 Doug Evans <dje@google.com>
11857
848e3e78
DE
11858 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11859 (dw2_build_type_unit_groups): Delete. All uses updated.
11860
5c04624b
DE
11861 * symtab.h (struct symbol_search): Add comment.
11862
d84fca2c
JK
118632013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11864
11865 * symtab.c (compare_filenames_for_search): New comment for
11866 HAS_DRIVE_SPEC.
11867
6108433d
TT
118682013-01-17 Tom Tromey <tromey@redhat.com>
11869
11870 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11871
c89ffd86
JK
118722013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11873
11874 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11875 initialize it by existing make_cleanup. Call new do_cleanups.
11876
db2b2972
TT
118772013-01-17 Tom Tromey <tromey@redhat.com>
11878
11879 * cp-abi.c (cp_abi_completer): New function.
11880 (_initialize_cp_abi): Set completer for "set cp-abi".
11881
be7d37a2
TT
118822013-01-17 Tom Tromey <tromey@redhat.com>
11883
11884 * mem-break.c: Remove obsolete comment.
11885 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11886
c9fb1240
SD
118872012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11888
11889 * jit.c (jit_reader_load_command): Interpret the jit reader name
11890 as an absolute path if it begins with a forward slash.
11891
db334a01
SD
118922012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11893
11894 PR gdb/14550
11895
11896 * jit.c (finalize_symtab): Ensure that only the global block has a
11897 NULL superblock.
11898
7d928dac
PA
118992013-01-17 Pedro Alves <palves@redhat.com>
11900
11901 * acinclude.m4: Include ../config/plugins.m4,
11902 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11903 * Makefile.in (aclocal_m4_deps): Update.
11904 * aclocal.m4: Renegerate.
11905
fb8cf7c5
DE
119062013-01-16 Doug Evans <dje@google.com>
11907
11908 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11909
ab04a2af
TT
119102013-01-16 Pedro Alves <palves@redhat.com>
11911 Tom Tromey <tromey@redhat.com>
11912
11913 PR cli/7221:
11914 * NEWS: Add "catch signal".
11915 * breakpoint.c (base_breakpoint_ops): No longer static.
11916 (bpstat_explains_signal): New function.
11917 (init_catchpoint): No longer static.
11918 (base_breakpoint_explains_signal): New function.
11919 (base_breakpoint_ops): Initialize new field.
11920 * breakpoint.h (enum bpstat_signal_value): New.
11921 (struct breakpoint_ops) <explains_signal>: New field.
11922 (bpstat_explains_signal): Remove macro, declare as function.
11923 (base_breakpoint_ops, init_catchpoint): Declare.
11924 * break-catch-sig.c: New file.
11925 * inferior.h (signal_catch_update): Declare.
11926 * infrun.c (signal_catch): New global.
11927 (handle_syscall_event): Update for change to
11928 bpstat_explains_signal.
11929 (handle_inferior_event): Likewise. Always handle random signals
11930 via bpstats.
11931 (signal_cache_update): Check signal_catch.
11932 (signal_catch_update): New function.
11933 (_initialize_infrun): Initialize signal_catch.
11934 * Makefile.in (SFILES): Add break-catch-sig.c.
11935 (COMMON_OBS): Add break-catch-sig.o.
11936
8ac3646f
TT
119372013-01-16 Tom Tromey <tromey@redhat.com>
11938
11939 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11940 (print_one_catch_solib, print_one_catch_syscall)
11941 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11942 "catch-type".
11943
5a18e302
YQ
119442013-01-16 Yao Qi <yao@codesourcery.com>
11945
11946 * printcmd.c (current_display_number): Make it static.
11947
3f01d0d0
YQ
119482013-01-16 Yao Qi <yao@codesourcery.com>
11949
11950 * infcmd.c (step_once): Don't check '!single_inst' as it was
11951 checked before.
11952
1ed59174
JK
119532013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11954
11955 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11956
44478ab3
TT
119572013-01-14 Tom Tromey <tromey@redhat.com>
11958
11959 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11960 set command.
11961 * command.h (add_setshow_string_noescape_cmd): Update.
11962 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11963 (complete_set_gnutarget): New function.
11964 (_initialize_core): Set the "set gnutarget" completer.
11965
06d66ee9
TT
119662013-01-14 Tom Tromey <tromey@redhat.com>
11967
11968 PR symtab/14442:
11969 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11970 (c_type_print_modifier): Likewise.
11971 * dwarf2read.c (read_tag_restrict_type): New function.
11972 (read_type_die_1): Handle DW_TAG_restrict_type.
11973 * gdbtypes.c (make_restrict_type): New function.
11974 (recursive_dump_type): Handle TYPE_RESTRICT.
11975 * gdbtypes.h (enum type_flag_values): Renumber.
11976 (enum type_instance_flag_value): Add
11977 TYPE_INSTANCE_FLAG_RESTRICT.
11978 (TYPE_RESTRICT): New macro.
11979 (make_restrict_type): Declare.
11980
c9bf0622
TT
119812013-01-14 Tom Tromey <tromey@redhat.com>
11982
11983 PR symtab/14931:
11984 * psymtab.c (struct psymtab_state): New.
11985 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11986 functions.
11987 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11988 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11989
44d594fd
PA
119902013-01-14 Richard Sharman <richard_sharman@mitel.com>
11991 Pedro Alves <palves@redhat.com>
11992
11993 PR remote/14786
11994
11995 * remote.c (remote_threads_info): Make a copy of the reply from
11996 qfThreadInfo and use that instead of rs->buf.
11997
442e4d9c
YQ
119982013-01-14 Yao Qi <yao@codesourcery.com>
11999
12000 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12001 (dbx_psymtab_to_symtab): Likewise.
12002 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12003 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12004 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12005
5b12a61c
JK
120062013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12007
12008 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12009 make_cleanup_restore_current_language. Call set_language. Move
12010 OLD_CHAIN and INNER_CHAIN cleanups.
12011 * utils.c (do_restore_current_language)
12012 (make_cleanup_restore_current_language): New functions.
12013 * utils.h (make_cleanup_restore_current_language): New declaration.
12014
f0a4b570
JK
120152013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12016
12017 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12018 non-existing files.
12019
57b3c00c
JK
12020 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12021 non-existing files if FILENAME is already absolute.
12022
daefa854
JK
120232013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12024
12025 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12026 fputs_filtered. Append trailing newline.
12027
ca9c6ee2
YQ
120282013-01-11 Yao Qi <yao@codesourcery.com>
12029 Stan Shebs <stan@codesourcery.com>
12030
12031 * psymtab.c (init_psymbol_list): Clarify the comment.
12032
f28045c2
YQ
120332013-01-11 Yao Qi <yao@codesourcery.com>
12034
12035 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12036 (update_dprintf_command_list): Assert that 'printf_line' is
12037 non-null. Remove condition check.
12038
da5132d3
JK
120392013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12040
12041 Code cleanup.
12042 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12043 type const char *.
12044 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12045 const char *.
12046 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12047
843e694d
AG
120482013-01-09 Anthony Green <green@moxielogic.com>
12049
12050 * cp-abi.c (cplus_print_vtable): Don't return value from void
12051 function.
12052 * ada-lang.c (re_set_catch_assert): Ditto.
12053
da51c347
DE
120542013-01-09 Doug Evans <dje@google.com>
12055
12056 * symfile.h (quick_symbol_functions): Delete member
12057 pre_expand_symtabs_matching. All uses removed.
12058 * dwarf2read.c (dw2_lookup_symbol): Implement.
12059 (dw2_do_expand_symtabs_matching): Delete.
12060 (dw2_pre_expand_symtabs_matching): Delete.
12061 (struct dw2_symtab_iterator): New type.
12062 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12063 (dw2_expand_symtabs_for_function): Rewrite.
12064 (dwarf2_gdb_index_functions): Update.
12065 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12066 (psym_functions): Update.
12067
b2259038
TT
120682013-01-09 Tom Tromey <tromey@redhat.com>
12069
12070 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12071 * configure: Rebuild.
12072 * configure.ac: Add somread.o to the build if BFD has SOM
12073 support.
12074 * somread.c: Include som/aout.h, not syms.h.
12075 (som_symtab_read): Use som_external_symbol_dictionary_record.
12076 Unpack records manually.
12077 (_initialize_somread): Declare.
12078
bdad4180
MF
120792012-01-08 Mike Frysinger <vapier@gentoo.org>
12080
12081 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12082 Cast return_address to 64bits.
12083
03cdf680
HZ
120842013-01-08 Hui Zhu <hui_zhu@mentor.com>
12085
12086 * printcmd.c: Remove define of function output_command.
12087 * tracepoint.c: Remove extern of function output_command.
12088 * valprint.h: (output_command): New extern.
12089
8a808554
TT
120902013-01-07 Tom Tromey <tromey@redhat.com>
12091
12092 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12093 Remove.
12094 (objc_language_defn): Use c_printchar, c_printstr,
12095 c_emit_char.
12096
e93a8774
TT
120972013-01-07 Tom Tromey <tromey@redhat.com>
12098
12099 PR cli/7719:
12100 * NEWS: Update.
12101 * ada-valprint.c (printstr, print_field_values): Remove
12102 "inspect_it" code.
12103 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12104 code.
12105 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12106 code.
12107 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12108 * main.c (captured_main): Remove "epoch" argument.
12109 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12110 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12111 * p-valprint.c (pascal_object_print_value_fields): Remove
12112 "inspect_it" code.
12113 * printcmd.c (print_command_1): Remove 'inspect' argument.
12114 (print_command, call_command): Update.
12115 (inspect_command): Remove.
12116 (_initialize_printcmd): Make "inspect" an alias for "print".
12117 * top.c (epoch_interface): Remove.
12118 * top.h (epoch_interface): Remove.
12119 * valprint.c (user_print_options): Update.
12120 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12121 * valprint.h (struct value_print_options) <inspect_it>: Remove
12122 field.
12123
121242013-01-04 Tom Tromey <tromey@redhat.com>
12125
12126 * valprint.h (read_string): Add 'extern'.
12127
b967eb24
JB
121282013-01-07 Joel Brobecker <brobecker@adacore.com>
12129
12130 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12131 used to decide whether to define darwin_read_dyld_info or not.
12132
78a8b30e
PM
121332013-01-03 Pierre Muller <muller@sourceware.org>
12134
12135 * main.c (relocate_gdb_directory): Avoid calling stat function
12136 if DIR is empty.
12137
50da2f25
YQ
121382013-01-03 Yao Qi <yao@codesourcery.com>
12139
12140 * psymtab.c (fixup_psymbol_section): Update declaration.
12141 (fixup_psymbol_section): Remove code returning value.
12142
e7e8980f
YQ
121432013-01-03 Yao Qi <yao@codesourcery.com>
12144
12145 * symtab.h: Remove some out of date comments.
12146 (enum exception_event_kind): Move it ...
12147 * breakpoint.c: ... here.
12148
569283d4
MF
121492013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12150
9f9d9a96 12151 PR gdb/14405
569283d4
MF
12152 * darwin-nat.c (darwin_read_dyld_info): Only build if
12153 TASK_DYLD_INFO_COUNT is defined.
12154 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12155 TASK_DYLD_INFO_COUNT is defined.
12156
2e36fbea
TT
121572013-01-02 Tom Tromey <tromey@redhat.com>
12158
12159 * symfile.h (struct ecoff_debug_hack): Remove.
12160 * objfiles.c: Don't include mdebugread.h.
12161
4f05add4
TT
121622013-01-02 Tom Tromey <tromey@redhat.com>
12163
12164 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12165 * configure.ac: Check for Mach-O support in BFD. Update
12166 CONFIG_OBS.
12167 * configure: Rebuild.
12168
def63ff0
TT
121692013-01-02 Tom Tromey <tromey@redhat.com>
12170
12171 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12172 * configure.ac: Use GDB_AC_CHECK_BFD.
12173 * configure: Rebuild.
12174
60c5dd93
MK
121752013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12176
12177 * MAINTAINERS: Update my email.
12178
6e58437e
JB
121792013-01-01 Joel Brobecker <brobecker@adacore.com>
12180
12181 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12182
627fe805
JB
121832013-01-01 Joel Brobecker <brobecker@adacore.com>
12184
12185 * rs6000-nat.c (bss_data_overlap): New function.
12186 (vmap_symtab): Use it to adjust the .bss section's offset.
12187
28e7fd62
JB
121882013-01-01 Joel Brobecker <brobecker@adacore.com>
12189
12190 Update year range in copyright notice of all files.
12191
e93a8774 121922013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12193
12194 * top.c (print_gdb_version): Update copyright year.
12195
72b20e9c 12196For older changes see ChangeLog-2012.
c906108c
SS
12197\f
12198Local Variables:
12199mode: change-log
12200left-margin: 8
12201fill-column: 74
12202version-control: never
57da7796 12203coding: utf-8
c906108c 12204End:
This page took 2.223207 seconds and 4 git commands to generate.