1 2013-11-18 Tom Tromey <tromey@redhat.com>
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.
14 2013-11-18 Tom Tromey <tromey@redhat.com>
17 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
20 2013-11-18 Tom Tromey <tromey@redhat.com>
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.
319 2013-11-18 Tom Tromey <tromey@redhat.com>
321 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
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.
341 2013-11-18 Tom Tromey <tromey@redhat.com>
343 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
346 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
348 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
349 * sparc-tdep.h: And its prototype.
351 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
353 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
355 2013-11-18 Pedro Alves <palves@redhat.com>
357 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
360 2013-11-18 Joel Brobecker <brobecker@adacore.com>
362 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
363 to -list-features output.
365 2013-11-17 Joel Brobecker <brobecker@adacore.com>
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".
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
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.
383 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
385 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
387 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
389 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
392 2013-11-15 Tom Tromey <tromey@redhat.com>
395 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
396 (classify_name): Likewise. Prefer a field of "this" over a
398 (classify_inner_name, yylex): Update.
400 2013-11-15 Joel Brobecker <brobecker@adacore.com>
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"
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.
414 2013-11-15 Alan Modra <amodra@gmail.com>
416 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
417 (ppc64_desc_entry_point): ..this. Update comments here and at
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
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.
429 2013-11-14 Pedro Alves <palves@redhat.com>
431 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
432 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
434 2013-11-14 Pedro Alves <palves@redhat.com>
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
443 (handle_signal_stop): New function, factored out from
444 handle_inferior_event.
446 2013-11-14 Pedro Alves <palves@redhat.com>
448 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
450 * breakpoint.c (bpstat_explains_signal): Adjust to return a
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.
461 2013-11-14 Pedro Alves <palves@redhat.com>
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
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.
471 2013-11-14 Pedro Alves <palves@redhat.com>
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
484 2013-11-14 Pedro Alves <palves@redhat.com>
486 * infrun.c (handle_inferior_event): Move comment from the
487 function's body to the function's description, adjusted.
489 2013-11-14 Pedro Alves <palves@redhat.com>
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
496 2013-11-14 Tom Tromey <tromey@redhat.com>
498 * python/py-linetable.c (ltpy_has_line)
499 (ltpy_get_all_source_lines): Fix loop termination condition.
501 2013-11-14 Joel Brobecker <brobecker@adacore.com>
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.
509 * NEWS: Add entry mentioning the new "--language" command option.
511 2013-11-14 Pedro Alves <palves@redhat.com>
512 Joel Brobecker <brobecker@adacore.com>
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.
518 2013-11-14 Joel Brobecker <brobecker@adacore.com>
520 * language.h: Add "symtab.h" #include.
522 2013-11-13 Doug Evans <xdje42@gmail.com>
524 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
525 specific breakpoints, don't evaluate breakpoint condition if
528 2013-11-13 Keith Seitz <keiths@redhat.com>
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.
544 2013-11-13 Keith Seitz <keiths@redhat.com>
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.
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
558 2013-11-13 Doug Evans <xdje42@gmail.com>
560 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
562 2013-11-13 Joel Brobecker <brobecker@adacore.com>
564 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
565 entry with "ada-exceptions".
567 2013-11-13 Joel Brobecker <brobecker@adacore.com>
569 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
570 after re-initialization of OBJFILE's obstack.
572 2013-11-12 Doug Evans <xdje42@gmail.com>
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.
578 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
580 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
583 2013-11-12 Doug Evans <dje@google.com>
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.
592 2013-11-12 Joel Brobecker <brobecker@adacore.com>
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
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".
601 2013-11-12 Joel Brobecker <brobecker@adacore.com>
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.
617 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
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.
629 2013-11-11 Joel Brobecker <brobecker@adacore.com>
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
639 2013-11-11 Tom Tromey <tromey@redhat.com>
641 * config.in, configure: Rebuild.
642 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
644 2013-11-11 Joel Brobecker <brobecker@adacore.com>
646 * remote-sim.c (gdbsim_detach): Break declaration into
647 shorter lines. No code change.
649 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
651 * remote-sim.c (gdbsim_detach): Fix prototype.
653 2013-11-08 Doug Evans <dje@google.com>
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.
662 2013-11-08 Tom Tromey <tromey@redhat.com>
664 * configure: Rebuild.
665 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
667 2013-11-08 Tom Tromey <tromey@redhat.com>
669 * configure, config.in: Rebuild.
670 * configure.ac: Remove unused configury.
672 2013-11-08 Tom Tromey <tromey@redhat.com>
674 * m32c-tdep.c: Use gdb_string.h.
676 2013-11-08 Tom Tromey <tromey@redhat.com>
678 * configure, config.in: Rebuild.
679 * configure.ac: Remove all link.h-related checks.
681 2013-11-08 Tom Tromey <tromey@redhat.com>
683 * acinclude.m4: Include common.m4.
684 * common/common.m4: New file.
685 * configure, config.in: Rebuild.
686 * configure.ac: Use GDB_AC_COMMON.
688 2013-11-08 Doug Evans <dje@google.com>
690 * NEWS: Mention that "set debug symtab-create" now accepts a
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
702 * symtab.h (set_symtab_primary): Declare.
703 (symtab_create_debug): Update decl.
705 2013-11-08 Tom Tromey <tromey@redhat.com>
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.
737 2013-11-07 Doug Evans <dje@google.com>
740 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
741 and align fields for PT_GNU_RELRO segments.
743 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
746 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
748 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
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.
755 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
757 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
758 removed to allow analyzing unconditional branch instructions
759 with PC-relative offsets of zero.
761 2013-11-07 Yao Qi <yao@codesourcery.com>
763 * mi/mi-cmd-var.c: Include "language.h".
764 (mi_cmd_var_info_expression): Get language name from
766 * varobj.c (varobj_language_string): Remove.
767 (variable_language): Remove declaration.
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.
775 2013-11-07 Yao Qi <yao@codesourcery.com>
777 * language.h (struct language_defn) <la_natural_name>: New
779 * ada-lang.c (ada_language_defn): Initialize field
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.
794 2013-11-07 Yao Qi <yao@codesourcery.com>
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.
801 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
803 * s390-linux-nat.c (s390_read_description): Consider the TE field
804 in the HWCAP for determining 'have_regset_tdb'.
806 2013-11-06 Will Newton <will.newton@linaro.org>
809 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
810 values. (read_partial_die): Likewise.
812 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
815 * top.c (command_line_input): Unify interactivity tests to use
816 input_from_terminal_p.
817 * event-top.c (command_line_handler): Likewise.
819 2013-11-06 Yao Qi <yao@codesourcery.com>
821 * Makefile.in (check-perf): New target.
823 2013-11-05 Will Newton <will.newton@linaro.org>
826 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
827 (arm_print_float_info): Likewise.
829 2013-11-04 Anton Blanchard <anton@samba.org>
831 * target.c (memory_xfer_partial): Cap write to 4KB.
833 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
835 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
836 probe scan even when the arch provides no get_longjmp_target.
838 2013-10-31 Pedro Alves <palves@redhat.com>
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
849 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
851 * breakpoint.c (update_watchpoint): Update error message and add
852 an additional error message.
854 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
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 ->
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 ->
870 (ALLDEPFILES): Reflect rename of .c files.
872 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
874 * s390-nat.c: Whitespace cleanup.
875 * s390-tdep.c: Likewise.
876 * s390-tdep.h: Remove empty line at end of file.
878 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
880 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
883 2013-10-29 Tom Tromey <tromey@redhat.com>
885 * utils.c (reg): Move undefinition...
886 * gdb_curses.h: ... here. Update comment to mention AIX.
888 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
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.
908 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
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.
914 2013-10-29 Yao Qi <yao@codesourcery.com>
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.
926 2013-10-28 Pedro Alves <palves@redhat.com>
928 * breakpoint.c (watchpoints_triggered)
929 <!target_stopped_data_address>: Hardcode return 1.
931 2013-10-28 Pedro Alves <palves@redhat.com>
933 * infrun.c (process_event_stop_test): Remove unnecessary scoping
936 2013-10-28 Pedro Alves <palves@redhat.com>
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.
943 2013-10-28 Pedro Alves <palves@redhat.com>
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.
949 2013-10-28 Pedro Alves <palves@redhat.com>
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.
958 2013-10-28 Pedro Alves <palves@redhat.com>
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'.
964 2013-10-27 Yao Qi <yao@codesourcery.com>
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.
974 2013-10-25 Yao Qi <yao@codesourcery.com>
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
981 * c-lang.c: Include "varobj.h"
982 (c_language_defn): Initialize field 'la_varobj_ops' with
984 (cplus_language_defn): Initialize field 'la_varobj_ops' with
986 (asm_language_defn): Initialize field 'la_varobj_ops' with
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.
1004 2013-10-25 Pedro Alves <palves@redhat.com>
1006 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
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
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
1017 * value.c (value_static_field): Return an optimized out value
1020 2013-10-25 Yao Qi <yao@codesourcery.com>
1022 * remote.c (remote_traceframe_info): Return early if
1023 traceframe is not selected.
1025 2013-10-25 Yao Qi <yao@codesourcery.com>
1027 * tracepoint.c (traceframe_fun): Remove.
1028 (traceframe_sal): Remove.
1029 (set_traceframe_context): Add local variables.
1031 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1033 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1036 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1038 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1039 failure from register information collection.
1041 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1043 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1045 (linux_corefile_thread_callback): Update accordingly.
1046 (linux_make_corefile_notes): Likewise.
1048 2013-10-24 Pedro Alves <palves@redhat.com>
1050 * NEWS (New options): Mention set/show startup-with-shell.
1051 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
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
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.
1066 2013-10-23 Pedro Alves <palves@redhat.com>
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
1076 * target/waitstatus.c (target_waitstatus_to_string): Print the
1077 signal's enum value as string instead of the (POSIX) signal name.
1079 2013-10-23 Gary Benson <gbenson@redhat.com>
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
1092 2013-10-22 Pedro Alves <palves@redhat.com>
1094 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1095 set ecs->random signal.
1097 2013-10-22 Pedro Alves <palves@redhat.com>
1099 * infrun.c (keep_going): Update comments.
1101 2013-10-22 Pedro Alves <palves@redhat.com>
1103 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1104 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1106 2013-10-22 Pedro Alves <palves@redhat.com>
1108 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
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.
1120 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1122 * MAINTAINERS (Write After Approval): Add myself to the list.
1124 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
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.
1132 2013-10-18 Pedro Alves <palves@redhat.com>
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
1139 2013-10-18 Yao Qi <yao@codesourcery.com>
1141 * c-varobj.c (cplus_number_of_children): Fix indentation.
1143 2013-10-17 Tom Tromey <tromey@redhat.com>
1146 * printcmd.c (printcmd): Call gdb_flush.
1148 2013-10-17 Tom Tromey <tromey@redhat.com>
1150 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1151 (elf_locate_sections): Update.
1153 2013-10-17 Yao Qi <yao@codesourcery.com>
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.
1165 2013-10-17 Yao Qi <yao@codesourcery.com>
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
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.
1205 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
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
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.
1249 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1251 * target/waitstatus.h (target_waitkind): Remove spurious
1252 character from the comments.
1254 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1256 * gdbarch.sh (get_longjmp_target): Add method documentation.
1257 * gdbarch.h: Regenerate.
1259 2013-10-16 Tom Tromey <tromey@redhat.com>
1261 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1264 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1266 * gcore.in: Call GDB using the full path to the gcore script.
1267 Error out if the GDB binary is not found.
1269 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1272 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1275 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1278 * target.c (target_disable_btrace): Fix invalid return value for
1280 (target_teardown_btrace): Likewise.
1282 2013-10-14 Yao Qi <yao@codesourcery.com>
1284 * varobj.c (struct varobj): Move most of the fields to
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.
1302 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
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.
1312 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1314 Canonicalize directories for EXEC_FILENAME.
1315 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1317 * utils.c (gdb_realpath_keepfile): New function.
1318 * utils.h (gdb_realpath_keepfile): New declaration.
1320 2013-10-11 Doug Evans <dje@google.com>
1322 * Makefile.in (GDBFLAGS): New variable.
1325 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1327 * NEWS: Add entry documenting the new "-catch-assert" and
1328 "-catch-exception" GDB/MI commands.
1330 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1332 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
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
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.
1347 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
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.
1354 2013-10-11 Joel Brobecker <brobecker@adacore.com>
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
1361 2013-10-11 Joel Brobecker <brobecker@adacore.com>
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.
1380 2013-10-11 Joel Brobecker <brobecker@adacore.com>
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.
1387 2013-10-11 Joel Brobecker <brobecker@adacore.com>
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.
1393 2013-10-11 Yao Qi <yao@codesourcery.com>
1395 * remote.c (discard_pending_stop_replies_in_queue): Update
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
1402 (remote_parse_stop_reply): Initialize field 'rs'.
1404 2013-10-10 Will Newton <will.newton@linaro.org>
1406 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1409 2013-10-10 Joel Brobecker <brobecker@adacore.com>
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".
1423 2013-10-09 Pedro Alves <palves@redhat.com>
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.
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,
1444 * target.h (target_read, target_insert_breakpoint)
1445 (target_remove_breakpoint): Adjust comments.
1446 * valprint.c (partial_memory_read): Rename parameter, and adjust
1448 (val_print_string): Use memory_error_message to build the memory
1451 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
1457 2013-10-09 Pedro Alves <palves@redhat.com>
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
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.
1468 2013-10-09 Tom Tromey <tromey@redhat.com>
1470 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1471 bfd_get_alt_debug_link_info.
1473 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
1483 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1485 * objfiles.h (OBJF_NOT_FILENAME): New.
1487 2013-10-08 Tom Tromey <tromey@redhat.com>
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
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.
1500 2013-10-08 Joel Brobecker <brobecker@adacore.com>
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.
1508 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1510 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1512 2013-10-07 Tom Tromey <tromey@redhat.com>
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.
1526 2013-10-07 Tom Tromey <tromey@redhat.com>
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.
1535 2013-10-07 Pedro Alves <palves@redhat.com>
1537 PR breakpoints/11568
1538 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1539 the thread list" instead of "gone".
1541 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
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.
1551 2013-10-06 Yao Qi <yao@codesourcery.com>
1553 * varobj.h: Add comments to enum varobj_languages.
1555 2013-10-04 Doug Evans <dje@google.com>
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,
1566 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
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.
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.
1596 2013-10-04 Pedro Alves <palves@redhat.com>
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.
1609 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1611 * aix-thread.c (sync_threadlists): Add missing ')' in call
1614 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1616 * procfs.c (procfs_init_inferior): Fix typo causing the build
1619 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1621 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1623 2013-10-04 Joel Brobecker <brobecker@adacore.com>
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.
1632 2013-10-04 Yao Qi <yao@codesourcery.com>
1634 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1635 (struct notif_client) <pending_event>: Moved
1636 to struct remote_notif_state.
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.
1658 (discard_pending_stop_replies_in_queue): New function.
1659 (remote_wait_ns): Likewise.
1661 2013-10-04 Yao Qi <yao@codesourcery.com>
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.
1692 2013-10-04 Yao Qi <yao@codesourcery.com>
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
1699 (varobj_add_child): Likewise.
1700 (create_child_with_value): Likewise. Update comments. Don't
1702 (update_dynamic_varobj_children): Duplicate 'name'
1703 and pass it to install_dynamic_child.
1705 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
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.
1713 2013-10-03 Pedro Alves <palves@redhat.com>
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.
1723 2013-10-03 Tristan Gingold <gingold@adacore.com>
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
1730 Remove trailing spaces.
1732 2013-10-02 Pedro Alves <palves@redhat.com>
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>.
1762 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1764 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1765 strcmp to compare two symtab filenames.
1767 2013-10-02 Joel Brobecker <brobecker@adacore.com>
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.
1774 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1777 * python/python.c: Document gdb.execute command in Python help.
1779 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1781 * python/py-frame.c (frame_info_to_frame_object): Use
1782 gdbpy_convert_exception. Clean up Python object on failure.
1784 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1786 * python/lib/gdb/command/frame_filters.py
1787 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1788 (ShowFrameFilterPriority.invoke): Ditto.
1790 2013-10-01 Keith Seitz <keiths@redhat.com>
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 *
1800 * objc-lang.c (find_imps): Make argument 'method' const.
1802 * objc-lang.h (find_imps): Likewise.
1804 2013-10-01 Keith Seitz <keiths@redhat.com>
1806 * completer.c (skip_quoted_chars): Make all arguments 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.
1816 2013-10-01 Keith Seitz <keiths@redhat.com>
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'
1830 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1832 * f-exp.y (parse_number): Make first argument const.
1833 (match_string_literal): Make local variable 'tokstart'
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
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.
1874 2013-10-01 Keith Seitz <keiths@redhat.com>
1876 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
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
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
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
1894 (linespec_lexer_lex_string): Make local variables 'start' and
1896 Use skip_spaces_const instead of skip_spaces.
1897 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1899 (parse_linespec): Temporarily cast 'argptr' to const for
1900 'parser->lexer.stream'.
1901 * m2-exp.y (yylex): Remove temporary cast to char * for
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.
1909 2013-10-01 Doug Evans <dje@google.com>
1911 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1913 2013-10-01 Yao Qi <yao@codesourcery.com>
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.
1927 2013-10-01 Yao Qi <yao@codesourcery.com>
1929 * varobj.c (varobj_format_string): Remove "unknown".
1930 (languages): Remove the first element.
1931 * varobj.h (enum varobj_languages): Remove vlang_c.
1933 2013-10-01 Yao Qi <yao@codesourcery.com>
1935 * varobj.c (struct language_specific) <language>: Remove.
1936 (languages): Update the initialization.
1938 2013-10-01 Yao Qi <yao@codesourcery.com>
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.
1947 2013-10-01 Yao Qi <yao@codesourcery.com>
1949 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
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
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
1964 * windows-tdep.h (windows_init_abi): Declare.
1965 (windows_iterate_over_objfiles_in_search_order): Remove
1968 2013-10-01 Jerome Guitton <guitton@adacore.com>
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.
1977 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1979 * ada-lang.c (ada_has_this_exception_support): Ignore
1980 mst_solib_trampoline minimal symbols.
1982 2013-09-30 Tristan Gingold <gingold@adacore.com>
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.
1992 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
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.
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.
2042 2013-09-28 Mike Frysinger <vapier@gentoo.org>
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.
2048 2013-09-27 Doug Evans <dje@google.com>
2050 * dwarf2read.c (dwarf2_section_info): Add comment.
2051 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
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.
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.
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
2070 (create_dwo_in_dwp): Tweak comments.
2071 (read_str_index): Tweak comment. Record dwarf form name in static
2074 2013-09-27 Pedro Alves <palves@redhat.com>
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
2085 2013-09-27 Pedro Alves <palves@redhat.com>
2087 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2089 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2092 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
2098 2013-09-26 Pierre Muller <muller@sourceware.org>
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.
2107 2013-09-25 Doug Evans <dje@google.com>
2109 * objfiles.c (allocate_objfile): Move comment to better place.
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.
2123 * symfile.h (struct sym_fns): Delete member "sym_flavour".
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.
2132 * symfile.h (struct sym_fns): Add "objfile" argument to
2133 sym_read_linetable. All uses updated.
2135 * symtab.c (domain_name, search_domain_name): New functions.
2136 * symtab.h (domain_name, search_domain_name): Declare.
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.
2143 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2146 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2149 2013-09-24 Doug Evans <dje@google.com>
2151 * objfiles.c (free_objfile): Move comment.
2153 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2155 * ada-exp.y (string_to_operator): Delete.
2156 (dummy_string_to_ada_operator): Delete.
2158 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2161 * i386-tdep.h (enum amd64_reg_class): New, moved here from
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.
2179 2013-09-24 Joel Brobecker <brobecker@adacore.com>
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.
2186 2013-09-24 Joel Brobecker <brobecker@adacore.com>
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.
2194 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2196 * amd64-windows-tdep.c: #include "value.h"
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.
2210 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2212 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2213 objfile->original_name.
2215 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
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
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
2252 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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):
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
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):
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
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
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
2326 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2329 * probe.c (parse_probes): Rename variable objfile_name to
2332 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
2343 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
2361 2013-09-23 Tom Tromey <tromey@redhat.com>
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.
2371 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2373 * regcache.c: Add include of valprint.h.
2374 (dump_endian_bytes): Delete.
2375 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2377 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2379 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2381 2013-09-19 Pedro Alves <palves@redhat.com>
2383 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2386 2013-09-19 Pedro Alves <palves@redhat.com>
2387 Thomas Schwinge <thomas@codesourcery.com>
2388 Yue Lu <hacklu.newborn@gmail.com>
2390 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2391 Take a gdb_byte pointer instead of a char pointer.
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.
2399 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
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
2411 (symbol_file_add_main): Make args parameter const.
2413 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2414 Ulrich Weigand <uweigand@de.ibm.com>
2416 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2418 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2420 2013-09-18 Pedro Alves <palves@redhat.com>
2421 Yue Lu <hacklu.newborn@gmail.com>
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.
2430 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
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.
2437 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2439 * infrun.c (handle_inferior_event): Check if we know the
2440 function start address before setting a resume breakpoint.
2442 2013-09-18 Pedro Alves <palves@redhat.com>
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.
2448 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2450 * main.h (get_gdb_program_name): Remove extra whitespace.
2452 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2454 * main.h (get_gdb_program_name): Add declaration.
2455 * main.c (get_gdb_program_name): Add definition.
2457 2013-09-17 Doug Evans <dje@google.com>
2459 * dwarf2read.c: Move definitions of complaint functions to after
2460 forward declarations of local functions.
2462 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2463 Pedro Alves <palves@redhat.com>
2466 * breakpoint.c (remove_threaded_breakpoints): New function.
2467 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2468 as thread_exit observer.
2470 2013-09-17 Pedro Alves <palves@redhat.com>
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
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):
2485 * remote-mips.c (common_open): Likewise.
2486 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2488 (print_frame_info): New 'set_current_sal' parameter. Set the last
2489 displayed sal depending on the new paremeter instead of looking at
2491 (backtrace_command_1, select_and_print_frame, frame_command)
2492 (current_frame_command, up_command, down_command): Adjust call to
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.
2502 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2504 * value.c (isvoid_internal_fn): Replace "parameter" with
2507 2013-09-16 Stan Shebs <stan@codesourcery.com>
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
2517 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2519 * NEWS: Mention new convenience function $_isvoid.
2520 * value.c (isvoid_internal_fn): New function.
2521 (_initialize_values): Add new convenience function $_isvoid.
2523 2013-09-16 Pierre Muller <muller@sourceware.org>
2525 * arm-linux-tdep.c: Add "elf/common.h" header.
2526 Remove AT_HWCAP macro definintion as it is provided in
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.
2534 2013-09-14 Pierre Muller <muller@sourceware.org>
2535 Tom Tromey <tromey@redhat.com>
2536 Pedro Alves <palves@redhat.com>
2538 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2539 mode if operating system doesn't know O_CLOEXEC.
2541 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2544 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2547 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
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
2609 * gdbserver/Makefile.in (clean): Add removal of new makefile
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
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.
2626 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
2656 2013-09-12 Andrew Pinski <apinski@cavium.com>
2658 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2660 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2662 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2664 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2666 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2668 2013-09-06 Pedro Alves <palves@redhat.com>
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
2677 2013-09-06 Pedro Alves <palves@redhat.com>
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.
2687 2013-09-06 Pedro Alves <palves@redhat.com>
2689 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2690 host_address_to_string, and send debug output to gdb_stdlog.
2692 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
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.
2705 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2707 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2708 to deprecated_init_ui_hook.
2710 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
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
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.
2724 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2726 * cris-tdep.c (cris_gdbarch_init): Add call to
2727 get_gdbarch_fetch_tls_load_module_address.
2729 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
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.
2736 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2738 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2740 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2742 * defs.h (deprecated_command_loop_hook): Remove, including
2743 references in comments.
2744 * interps.c (current_interp_command_loop): No longer use
2745 deprecated_command_loop_hook.
2746 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2748 * top.c (deprecated_command_loop_hook): Remove.
2750 2013-09-05 Pedro Alves <palves@redhat.com>
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.
2756 2013-09-05 Tristan Gingold <gingold@adacore.com>
2758 * MAINTAINERS: Remove avr maintainership.
2760 2013-09-05 Pedro Alves <palves@redhat.com>
2762 * findvar.c (value_of_register): Rework in terms of
2763 value_of_register_lazy.
2765 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2767 * symfile.c (add_symbol_file_command): Remove trailing
2768 whitespaces and blank line after comment.
2770 2013-09-05 Pedro Alves <palves@redhat.com>
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.
2778 2013-09-05 Pedro Alves <palves@redhat.com>
2781 * tui/tui-regs.c (tui_show_registers): Show registers of the
2782 selected frame, not the current frame.
2784 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2786 * MAINTAINERS (Write After Approval): Add myself to the list.
2788 2013-09-04 Doug Evans <dje@google.com>
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.
2798 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
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
2808 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
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.
2817 2013-09-04 Doug Evans <dje@google.com>
2819 * progspace.c (save_current_space_and_thread): Remove unnecessary
2820 call to save_current_inferior.
2822 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2824 * sh64-tdep.c (sh64_do_register): Return after printing message
2825 about unavailable register contents.
2827 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2828 Pedro Alves <palves@redhat.com>
2830 * symfile.c (add_symbol_file_command): Error out on unknown
2831 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2832 options and collapse into single conditional branch.
2834 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2836 * inf-child.c (inf_child_follow_fork): New parameter
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
2843 (follow_fork): Pass detach_fork parameter to
2845 * linux-nat.c (linux_child_follow_fork): New parameter
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
2851 (target_follow_fork): New parameter detach_fork.
2853 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2855 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2856 Replace sec->bfd by sec->the_bfd_section->owner.
2858 2013-09-03 Yao Qi <yao@codesourcery.com>
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
2867 2013-09-03 Yao Qi <yao@codesourcery.com>
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
2876 * osabi.c (gdb_osabi_names): Remove "Interix".
2878 2013-09-03 Yao Qi <yao@codesourcery.com>
2880 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2882 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
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.
2889 2013-09-02 Pierre Muller <muller@sourceware.org>
2891 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2894 2013-09-02 Pierre Muller <muller@sourceware.org>
2896 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2897 by use of plongest function.
2899 2013-09-02 Tristan Gingold <gingold@adacore.com>
2901 * NEWS: Add entry mentioning support for native Windows x64
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.
2918 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2922 2013-08-30 Pedro Alves <palves@redhat.com>
2924 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2927 2013-08-30 Pedro Alves <palves@redhat.com>
2929 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2932 2013-08-30 Pedro Alves <palves@redhat.com>
2934 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2935 Adjust arguments to print_stack_frame.
2937 2013-08-30 Pedro Alves <palves@redhat.com>
2939 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2941 2013-08-30 Pedro Alves <palves@redhat.com>
2943 * frame.h (show_and_print_stack_frame): Delete declaration.
2945 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2948 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2949 (archpy_name): Check for valid architecture.
2950 (archpy_disassemble): Ditto.
2952 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2954 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2955 instead of "long long" in call to ptrace64.
2957 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
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
2969 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2971 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2974 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2976 * value.c (allocate_value_contents): Make static.
2977 * value.h (allocate_value_contents): Remove prototype.
2979 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
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.
2988 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2990 * value.c (value_from_contents_and_address): Replace allocate_value and
2991 memcpy with value_from_contents.
2993 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
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,
3012 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3015 * python/py-framefilter.c (apply_frame_filter): Check
3016 gdb_python_initialized. Exit if the Python frame-filter code
3017 cannot be initialized.
3019 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3022 * top.c (print_gdb_version): Remove erroneous newline after help
3025 2013-08-29 Yao Qi <yao@codesourcery.com>
3027 * varobj.c (install_dynamic_child): Remove trailing space.
3028 Add one blank line after variable declaration.
3030 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
3048 2013-08-28 Will Newton <will.newton@linaro.org>
3050 * common/linux-ptrace.c: Include stdint.h unconditionally.
3052 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3055 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3057 2013-08-28 Yao Qi <yao@codesourcery.com>
3058 Pedro Alves <palves@redhat.com>
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.
3069 2013-08-27 Doug Evans <dje@google.com>
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.
3077 2013-08-27 Pedro Alves <palves@redhat.com>
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.
3085 2013-08-27 Pedro Alves <palves@redhat.com>
3087 * darwin-nat.c (darwin_xfer_memory): Delete.
3088 (_initialize_darwin_inferior): Don't install a
3089 deprecated_xfer_memory method.
3091 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3092 Yao Qi <yao@codesourcery.com>
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.
3102 (list_args_or_locals): New parameter 'skip_unavailable'.
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.
3111 * NEWS: Mention the new option "--skip-unavailable" to MI
3112 commands '-stack-list-locals', '-stack-list-arguments' and
3113 '-stack-list-variables'.
3115 2013-08-27 Yao Qi <yao@codesourcery.com>
3117 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3118 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3120 * mi/mi-getopt.c (mi_getopt): Remove.
3121 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3123 (mi_getopt): Call mi_getopt_1.
3124 (mi_getopt_silent): New.
3125 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3127 2013-08-26 Doug Evans <dje@google.com>
3130 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3131 .gdb_index is in use.
3132 * symfile.c (reread_symbols): Reset objfile->sf.
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".
3139 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3140 missing debug info checks.
3142 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3143 Ulrich Weigand <uweigand@de.ibm.com>
3145 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3146 line tables generated by XLC compiled binaries.
3148 2013-08-23 Doug Evans <dje@google.com>
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".
3155 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3156 debugging printf to better location.
3158 2013-08-23 Pedro Alves <palves@redhat.com>
3160 * target.c (target_read_live_memory): Change type of 'ret' local
3163 2013-08-23 Pedro Alves <palves@redhat.com>
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.
3173 2013-08-23 Pierre Muller <muller@sourceware.org>
3175 ARI fix: Push # directives to start of line.
3176 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3178 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3181 * breakpoint.c (enable_command, disable_command): Iterate over
3182 all specified breakpoint locations.
3184 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
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
3191 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
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
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.
3272 2013-08-22 Samuel Bronson <naesten@gmail.com>
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.
3282 2013-08-22 Pedro Alves <palves@redhat.com>
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
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.
3298 2013-08-22 Alan Modra <amodra@gmail.com>
3300 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3301 * configure.tgt: Likewise as targets.
3303 2013-08-20 Doug Evans <dje@google.com>
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
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
3318 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3319 * buildsym.h (get_macro_table): Declare.
3321 2013-08-20 Tom Tromey <tromey@redhat.com>
3323 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3325 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3327 2013-08-20 Doug Evans <dje@google.com>
3329 * blockframe.c: Remove #include "psymtab.h".
3330 * cp-support.c: Ditto.
3334 2013-08-20 Tom Tromey <tromey@redhat.com>
3337 * exceptions.h (return_mask): Now an enum.
3338 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3341 2013-08-20 Tom Tromey <tromey@redhat.com>
3343 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
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,
3355 (struct objfile) <gdbarch>: ... here. Remove.
3356 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3358 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3360 2013-08-20 Alan Modra <amodra@gmail.com>
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.
3373 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
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
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
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.
3399 2013-08-19 Pedro Alves <palves@redhat.com>
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.
3407 2013-08-15 Kevin Buettner <kevinb@redhat.com>
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.
3416 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3419 * top.c (quit_force): Skip writing history file
3420 if input is not from terminal.
3422 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3430 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3438 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3445 2013-08-14 Tom Tromey <tromey@redhat.com>
3447 * remote.c (sizeof_pkt): Remove.
3448 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3450 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3457 2013-08-14 Tom Tromey <tromey@redhat.com>
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
3464 2013-08-14 Tom Tromey <tromey@redhat.com>
3466 * remote.c (struct remote_state) <last_sent_step>:
3468 (last_sent_step): Remove.
3469 (remote_resume, remote_wait_as): Update.
3471 2013-08-14 Tom Tromey <tromey@redhat.com>
3473 * remote.c (struct remote_state) <last_sent_signal>:
3475 (last_sent_signal): Remove.
3476 (new_remote_state, remote_resume, remote_wait_as): Update.
3478 2013-08-14 Tom Tromey <tromey@redhat.com>
3480 * remote.c (struct remote_state) <last_program_signals_packet>:
3482 (last_program_signals_packet): Remove.
3483 (remote_program_signals, remote_open_1): Update.
3485 2013-08-14 Tom Tromey <tromey@redhat.com>
3487 * remote.c (struct remote_state) <last_pass_packet>:
3489 (last_pass_packet): Remove.
3490 (remote_pass_signals, remote_open_1): Update.
3492 2013-08-14 Tom Tromey <tromey@redhat.com>
3494 * remote.c (struct remote_state) <remote_traceframe_number>:
3496 (remote_traceframe_number): Remove.
3497 (new_remote_state, remote_open_1, set_remote_traceframe)
3498 (remote_trace_find): Update.
3500 2013-08-14 Tom Tromey <tromey@redhat.com>
3502 * remote.c (struct remote_state) <general_thread, continue_thread>:
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.
3509 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3520 2013-08-14 Tom Tromey <tromey@redhat.com>
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.
3527 2013-08-14 Tom Tromey <tromey@redhat.com>
3529 * remote.c (remote_protocol_features): Now const.
3531 2013-08-14 Tom Tromey <tromey@redhat.com>
3533 * remote.c (crc32_table, crc32): Remove.
3534 (remote_verify_memory): Use xcrc32.
3536 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3538 * value.h (create_internalvar_type_lazy): Adjust prototype
3541 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3543 * common/format.c (parse_format_string): Don't allow '#' flag for
3544 pointer arguments in format string.
3546 2013-08-13 Pierre Muller <muller@sourceware.org>
3548 * utils.c (init_page_info): Only call tgetnum function
3549 if rl_get_screen_size did not return useful values.
3551 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3553 PR breakpoints/15117
3554 * linespec.c (linespec_parse_basic): Check for convenience
3555 variable or history value while parsing.
3557 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3559 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3561 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3562 different signals between the generic Linux kernel implementation
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.
3568 2013-08-09 Doug Evans <dje@google.com>
3570 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3573 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
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
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.
3615 2013-08-09 Pedro Alves <palves@redhat.com>
3617 * avr-tdep.c (XMALLOC): Delete macro.
3618 * cli/cli-dump.c (XMALLOC): Delete macro.
3620 2013-08-09 Pedro Alves <palves@redhat.com>
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
3629 2013-08-09 Pedro Alves <palves@redhat.com>
3631 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3634 2013-08-09 Pedro Alves <palves@redhat.com>
3636 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3639 2013-08-09 Pedro Alves <palves@redhat.com>
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.
3645 2013-08-09 Yao Qi <yao@codesourcery.com>
3647 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3650 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3652 * gcore.c (create_gcore_bfd): Use tilde_expand.
3654 2013-08-08 Yao Qi <yao@codesourcery.com>
3656 * frame.h (read_frame_local): Declare.
3657 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3659 * stack.c (read_frame_local): New.
3661 2013-08-08 Yao Qi <yao@codesourcery.com>
3663 * mi/mi-cmd-stack.c: Update comments to function
3664 list_args_or_locals.
3666 2013-08-07 Tom Tromey <tromey@redhat.com>
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"
3673 (dwarf2_build_psymtabs_hard): Update.
3674 (scan_partial_symbols): Pass CU's language to
3675 process_psymtab_comp_unit.
3677 2013-08-07 Tom Tromey <tromey@redhat.com>
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>:
3686 2013-08-07 Tom Tromey <tromey@redhat.com>
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.
3693 2013-08-07 Tom Tromey <tromey@redhat.com>
3695 * dwarf2read.c (recursively_compute_inclusions): Add
3696 "immediate_parent" argument. Set symtab's "user" field
3698 (compute_symtab_includes): Update.
3700 2013-08-07 Tom Tromey <tromey@redhat.com>
3702 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3703 when adding label symbols.
3705 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3706 Ulrich Weigand <uweigand@de.ibm.com>
3708 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3709 * configure.host (powerpc64-*-aix*): Likewise.
3711 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3712 Ulrich Weigand <uweigand@de.ibm.com>
3714 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
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.
3722 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3723 Ulrich Weigand <uweigand@de.ibm.com>
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.
3734 2013-08-07 Anton Blanchard <anton@samba.org>
3736 * MAINTAINERS: Add myself to Write After Approval.
3738 2013-08-05 Tom Tromey <tromey@redhat.com>
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.
3753 2013-08-05 Tom Tromey <tromey@redhat.com>
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.
3790 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3793 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
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
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.
3825 2013-08-02 Tom Tromey <tromey@redhat.com>
3828 * breakpoint.c (update_watchpoint, watchpoint_check)
3829 (watch_command_1): Update.
3830 * eval.c (fetch_subexp_value): Add "preserve_errors"
3832 * ppc-linux-nat.c (check_condition): Update.
3833 * value.h (fetch_subexp_value): Update.
3835 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3837 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3840 2013-08-01 Doug Evans <dje@google.com>
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.
3851 * valops.c (value_struct_elt): Add missing call to check_typedef.
3852 (value_find_oload_method_list): Ditto.
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.
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
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
3879 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3881 * cli/cli-script.c (script_from_file): Remove use of
3883 * main.c (captured_main): Remove use of error_pre_print and
3885 * utils.c (error_pre_print, quit_pre_print): Remove.
3886 * utils.h (error_pre_print, quit_pre_print): Likewise.
3888 2013-08-01 Yao Qi <yao@codesourcery.com>
3890 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3892 (mi_cmd_stack_list_variables): Likewise.
3894 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3896 * exceptions.c (deprecated_throw_reason): Remove.
3897 * exceptions.h (deprecated_throw_reason): Remove.
3899 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
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.
3905 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
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.
3914 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3916 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3919 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3920 Yao Qi <yao@codesourcery.com>
3922 * tracepoint.c (trace_dump_command): Select the current frame.
3924 2013-07-30 Doug Evans <dje@google.com>
3926 * dwarf2read.c (process_queue): Add type signature to debug output.
3928 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3930 * value.c (value_fetch_lazy): Mark optimized out values as such
3931 rather than raising an error.
3933 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
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
3939 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
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"
3947 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
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.
3965 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
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.
3972 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3974 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3976 (attr_form_is_ref): Moved below attr_form_is_constant.
3978 2013-07-29 Doug Evans <dje@google.com>
3980 * main.c (captured_command_loop): Tweak comment.
3982 * target.c (target_async_permitted_1): Fix comment.
3984 * symtab.c (iterate_over_some_symtabs): Add comment.
3986 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3988 2013-07-27 Yao Qi <yao@codesourcery.com>
3990 * NEWS: Mention that GDBserver now supports hardware
3991 watchpoints on the MIPS GNU/Linux target.
3993 2013-07-27 Yao Qi <yao@codesourcery.com>
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.
4023 2013-07-27 Yao Qi <yao@codesourcery.com>
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.
4059 2013-07-27 Yao Qi <yao@codesourcery.com>
4061 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
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.
4072 2013-07-27 Yao Qi <yao@codesourcery.com>
4074 * breakpoint.h: Include break-common.h.
4075 (enum target_hw_bp_type): Move to ...
4076 * common/break-common.h: ... here. New.
4078 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4080 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4081 process group regardless of having tty on stdin.
4083 2013-07-25 Doug Evans <dje@google.com>
4085 * linux-fork.h (detach_fork): Delete.
4087 2013-07-25 Tom Tromey <tromey@redhat.com>
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
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.
4102 2013-07-25 Tom Tromey <tromey@redhat.com>
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.
4111 2013-07-25 Mark Kettenis <kettenis@gnu.org>
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.
4122 2013-07-25 Mark Kettenis <kettenis@gnu.org>
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.
4128 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
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.
4134 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
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
4141 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4143 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4146 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4148 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4149 interface can evaluate arguments. Fallback to the old mode if it
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
4155 * probe.c (can_evaluate_probe_arguments): New function.
4156 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
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
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
4167 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4168 New function pointer.
4170 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
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.
4186 2013-07-24 Doug Evans <dje@google.com>
4188 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4191 2013-07-23 Yao Qi <yao@codesourcery.com>
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):
4201 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4204 2013-07-23 Tom Tromey <tromey@redhat.com>
4206 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4209 2013-07-22 Doug Evans <dje@google.com>
4211 * exec.h (remove_target_sections): Delete arg abfd.
4212 * exec.c (exec_close): Update call to remove_target_sections.
4213 (remove_target_sections): Delete arg abfd.
4214 * solib.c (update_solib_list): Ditto.
4215 (reload_shared_libraries_1): Ditto.
4216 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4217 * target.h (struct target_section): Rename key to owner.
4220 2013-07-22 Tom Tromey <tromey@redhat.com>
4222 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4224 2013-07-22 Tom Tromey <tromey@redhat.com>
4226 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4227 Simplify cleanup handling.
4229 2013-07-22 Tom Tromey <tromey@redhat.com>
4231 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4232 on all return paths.
4234 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
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).
4240 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4242 * top.c (print_gdb_version): Add help, apropos description and
4243 url to online documentation.
4245 2013-07-19 Hui Zhu <hui@codesourcery.com>
4248 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4250 2013-07-19 Yao Qi <yao@codesourcery.com>
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
4256 * valops.c (read_value_memory): Call
4257 traceframe_available_memory unconditionally.
4259 2013-07-18 Yao Qi <yao@codesourcery.com>
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'.
4266 2013-07-17 Doug Evans <dje@google.com>
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.
4278 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4279 of all *list variables.
4281 * gdbcmd.h (togglelist): Delete.
4282 * cli/cli-cmds.c (togglelist): Delete.
4283 (init_cmd_lists): Update.
4284 * cli/cli-cmds.h (togglelist): Delete.
4286 2013-07-17 Tom Tromey <tromey@redhat.com>
4288 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4291 2013-07-16 Doug Evans <dje@google.com>
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.
4299 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4301 * common/format.c (parse_format_string): Add checks for NULL
4302 character before calling strchr.
4304 2013-07-16 Doug Evans <dje@google.com>
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.
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.
4327 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
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.
4346 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4348 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4349 numbers with enum values.
4351 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4354 * thread.c (thread_apply_all_command): Check for valid threads
4356 (thread_array_cleanup): New struct.
4357 (set_thread_refcount): New function.
4359 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4361 * infcmd.c (default_print_one_register_info): Reuse function
4364 2013-07-10 Tom Tromey <tromey@redhat.com>
4366 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4367 (ada-exp.o): New target.
4369 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
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
4376 2013-07-09 Pedro Alves <palves@redhat.com>
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.
4384 2013-07-09 Doug Evans <dje@google.com>
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
4403 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
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.
4409 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4410 Pedro Alves <palves@redhat.com>
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.
4416 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4418 * top.c (print_gdb_configuration): Explain in output of
4419 --configuration what does "relocatable" mean.
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.
4425 2013-07-06 Yao Qi <yao@codesourcery.com>
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'.
4437 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
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.
4443 2013-07-04 Pedro Alves <palves@redhat.com>
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.
4451 2013-07-04 Pedro Alves <palves@redhat.com>
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
4457 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
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.
4467 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
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.
4474 2013-07-04 Yao Qi <yao@codesourcery.com>
4477 2013-06-27 Yao Qi <yao@codesourcery.com>
4479 * common/create-version.sh: Update comments. Handle the case
4480 that TARGET_ALIAS is empty.
4482 2013-07-03 Pedro Alves <palves@redhat.com>
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.
4494 2013-07-02 Tom Tromey <tromey@redhat.com>
4496 * contrib/ari/update-web-ari.sh: Update for version.in change.
4498 2013-07-02 Tom Tromey <tromey@redhat.com>
4500 * common/ptid.h: Comment fixes.
4502 2013-07-01 Tom Tromey <tromey@redhat.com>
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.
4508 2013-07-01 Tom Tromey <tromey@redhat.com>
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;
4516 2013-07-01 Tom Tromey <tromey@redhat.com>
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",
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",
4527 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4529 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4531 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4533 (v850_dbtrap_breakpoint_from_pc): Likewise.
4534 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4537 2013-07-01 Tom Tromey <tromey@redhat.com>
4539 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4540 * configure: Rebuild.
4542 2013-07-01 Pedro Alves <palves@redhat.com>
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
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.
4575 2013-07-01 Pedro Alves <palves@redhat.com>
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.
4589 2013-07-01 Pedro Alves <palves@redhat.com>
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
4597 * top.h (gdbinit): Make const.
4598 * configure, config.in: Regenerate.
4600 2013-07-01 Pedro Alves <palves@redhat.com>
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.
4613 2013-07-01 Pedro Alves <palves@redhat.com>
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
4620 2013-07-01 Pedro Alves <palves@redhat.com>
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.
4642 2013-07-01 Pedro Alves <palves@redhat.com>
4644 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4645 defined instead of checking HAVE_UNISTD_H.
4647 2013-07-01 Pedro Alves <palves@redhat.com>
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.
4659 2013-07-01 Pedro Alves <palves@redhat.com>
4661 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4663 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4666 * remote.c (async_remote_interrupt_twice): Make it static.
4667 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4669 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
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.
4675 2013-06-28 Tom Tromey <tromey@redhat.com>
4677 * Makefile.in (version.c): Use version.in, not
4679 * common/create-version.sh: Likewise.
4680 * common/version.in: Move...
4681 * version.in: ...here.
4683 2013-06-28 Pedro Alves <palves@redhat.com>
4685 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4687 * utils.h (pagination_enabled): Declare.
4689 2013-06-28 Pedro Alves <palves@redhat.com>
4691 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4692 Move higher up in file.
4694 2013-06-28 Tom Tromey <tromey@redhat.com>
4696 * tracepoint.c (deprecated_readline_begin_hook)
4697 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4700 2013-06-28 Pedro Alves <palves@redhat.com>
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.
4708 2013-06-27 Tom Tromey <tromey@redhat.com>
4710 * target.c (find_run_target): Remove.
4711 * target.h (find_run_target): Remove.
4713 2013-06-27 Tom Tromey <tromey@redhat.com>
4715 * corelow.c (core_gdbarch): Now static.
4717 2013-06-27 Tom Tromey <tromey@redhat.com>
4719 * target.c (target_struct_index): Remove.
4721 2013-06-27 Pedro Alves <palves@redhat.com>
4723 * infrun.c: Remove comment describing the 'stepping over runtime
4724 loader dynamic symbol resolution code' mechanism; moved to
4727 2013-06-27 Pedro Alves <palves@redhat.com>
4729 * exceptions.c (catch_command_errors): Remove spurious space.
4730 * exceptions.h (catch_command_errors): Second parameter is "arg",
4733 2013-06-27 Yao Qi <yao@codesourcery.com>
4735 * common/create-version.sh: Update comments. Handle the case
4736 that TARGET_ALIAS is empty.
4738 2013-06-26 Pedro Alves <palves@redhat.com>
4740 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4743 2013-06-26 Pedro Alves <palves@redhat.com>
4745 * infrun.c: Update comments on stepping over runtime loader
4746 dynamic symbol resolution code.
4748 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4750 * ax-gdb.h (union exp_element): Forward declare.
4751 * parser-defs.h: Include expression.h.
4753 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4755 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4757 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4759 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4761 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
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.
4768 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4770 * mips-tdep.c (mips_next_pc): Fix a typo.
4772 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4774 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4776 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4777 Yao Qi <yao@codesourcery.com>
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.
4806 * NEWS: Mention new MI command -trace-frame-collected.
4808 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4809 Yao Qi <yao@codesourcery.com>
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
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.
4828 * NEWS: Mention the change in GDB and GDBserver.
4830 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4831 Yao Qi <yao@codesourcery.com>
4833 * tracepoint.c (trace_dump_command): Move code to ...
4834 (get_traceframe_location): ... here. New.
4836 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4837 Yao Qi <yao@codesourcery.com>
4839 * tracepoint.c (trace_dump_command): GDB emits an error
4840 instead of a warning when a traceframe is not selected.
4842 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4843 Yao Qi <yao@codesourcery.com>
4845 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4846 (clear_collection_list): Free fields 'aexpre_list' and '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'.
4856 2013-06-25 Tom Tromey <tromey@redhat.com>
4858 * common/create-version.sh (date): Use "$", not "$$" in sed
4861 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4863 * NEWS (New targets): Add entry for TI MSP430.
4865 2013-06-25 Yao Qi <yao@codesourcery.com>
4867 * remote.c (remote_start_remote): Move code to upload tsv
4870 2013-06-25 Yao Qi <yao@codesourcery.com>
4871 Hui Zhu <hui@codesourcery.com>
4872 Pedro Alves <palves@redhat.com>
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.
4886 2013-06-24 Kevin Buettner <kevinb@redhat.com>
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.
4893 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4895 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4896 microMIPS synthetic symbols.
4898 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
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
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
4929 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4930 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
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.
4946 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4948 * common/create-version.sh: Fix expansion of $host_alias
4949 and $target_alias in generation of HOST_NAME and TARGET_NAME
4952 2013-06-24 Tom Tromey <tromey@redhat.com>
4954 * common/create-version.sh: New file.
4955 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
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.
4963 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4965 * gdb/gnulib/Makefile.in: Update date in copyright header.
4966 * gdb/gnulib/configure.ac: Ditto.
4967 * gdb/gnulib/update-gnulib.sh: Ditto.
4969 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4971 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4972 "gdb/gnulib/import".
4974 2013-06-21 Will Newton <will.newton@linaro.org>
4976 * doublest.c (ldfrexp): Remove function.
4977 (convert_doublest_to_floatformat): Call frexpl instead of
4980 2013-06-21 Will Newton <will.newton@linaro.org>
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.
5014 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
5020 2013-06-20 Doug Evans <dje@google.com>
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.
5028 * dwarf2read.c (struct dwp_file): Fix comment.
5029 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5031 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5034 2013-06-20 Yao Qi <yao@codesourcery.com>
5036 * breakpoint.c (create_breakpoint): Fix code indentation.
5038 2013-06-20 Yao Qi <yao@codesourcery.com>
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.
5045 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5046 Yao Qi <yao@codesourcery.com>
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.
5055 2013-06-19 Mike Frysinger <vapier@gentoo.org>
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
5065 (cpu_supports_btrace): Likewise.
5066 * go32-nat.c: Include i386-cpuid.h.
5067 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5069 2013-06-19 Doug Evans <dje@google.com>
5071 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5072 (get_section_index): Ditto.
5074 2013-06-19 Tom Tromey <tromey@redhat.com>
5076 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5079 2013-06-18 Doug Evans <dje@google.com>
5081 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5083 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5084 Move test of cu_index closer to use. Print complaint if cu_index
5087 2013-06-18 Joel Brobecker <brobecker@adacore.com>
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.
5098 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5100 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5101 DWARF2_PER_OBJFILE by uses of DATA instead.
5103 2013-06-18 Tom Tromey <tromey@redhat.com>
5105 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
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
5113 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5115 (bpstat_explains_signal): Likewise.
5116 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5118 2013-06-18 Tom Tromey <tromey@redhat.com>
5120 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5122 2013-06-18 Tom Tromey <tromey@redhat.com>
5124 * python/python.c (finish_python_initialization): Decref
5125 'pythondir' on failure path as well.
5127 2013-06-18 Tom Tromey <tromey@redhat.com>
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.
5135 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5137 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5139 2013-06-17 Pierre Muller <muller@sourceware.org>
5141 * corelow.c (core_open): Print GDB signal name instead of target
5144 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5146 * .gitignore: Add /gcore.
5148 2013-06-13 Doug Evans <dje@google.com>
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 '/'.
5153 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5155 * stack.c (backtrace_command_1): Fix indentation.
5157 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5159 * window-nat.c (thread_rec): Add missing empty line after
5160 local variable declaration.
5162 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5164 * windows-nat.c (thread_rec): Revert format used to print
5165 error code returned by SuspendThread from %d back to %u.
5167 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5169 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5171 (get_windows_debug_event): Likewise, for all debug traces.
5173 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5175 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5178 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5179 Yao Qi <yao@codesourcery.com>
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.
5189 2013-06-07 Pedro Alves <palves@redhat.com>
5191 * darwin-nat.c: Fix formating in copyright header.
5192 * darwin-nat.h: Likewise.
5193 * gnu-nat.c: Likewise.
5194 * machoread.c: Likewise.
5196 2013-06-07 Pedro Alves <palves@redhat.com>
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.
5204 2013-06-07 Will Newton <will.newton@linaro.org>
5206 * printcmd.c (build_address_symbolic): Call
5207 gdbarch_addr_bits_remove for text minimal symbols.
5209 2013-06-07 Will Newton <will.newton@linaro.org>
5211 * MAINTAINERS: Add myself to Write After Approval.
5213 2013-06-07 Yao Qi <yao@codesourcery.com>
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.
5225 2013-06-06 Doug Evans <dje@google.com>
5227 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5228 and fix header docs.
5230 2013-06-05 Doug Evans <dje@google.com>
5231 Keith Seitz <keiths@redhat.com>
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.
5241 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5243 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5244 minimal symbols pointing to function descriptors.
5246 2013-06-05 Tom Tromey <tromey@redhat.com>
5248 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5250 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5251 Pedro Alves <palves@redhat.com>
5253 * remote.c (remote_wait_as): Restore signal handler before returning
5254 when GDB gets a notification.
5256 2013-06-04 Gary Benson <gbenson@redhat.com>
5259 * breakpoint.h (handle_solib_event): Moved function declaration
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
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
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
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.
5310 2013-06-04 Gary Benson <gbenson@redhat.com>
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.
5326 2013-06-04 Gary Benson <gbenson@redhat.com>
5330 2013-06-04 Gary Benson <gbenson@redhat.com>
5332 * objfiles.h (inhibit_section_map_updates): New function
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.
5349 2013-06-04 Gary Benson <gbenson@redhat.com>
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.
5357 2013-06-04 Alan Modra <amodra@gmail.com>
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.
5375 2013-06-04 Yao Qi <yao@codesourcery.com>
5377 * solib.c (solib_find): Don't need dir separator if path has
5380 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5382 Revert (indirectly causes a SIGSEGV):
5383 * machoread.c (macho_symfile_read): Assign first cleanup to
5386 2013-06-03 Yao Qi <yao@codesourcery.com>
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.
5403 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5404 Yao Qi <yao@codesourcery.com>
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.
5411 2013-05-30 Tom Tromey <tromey@redhat.com>
5413 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5415 2013-05-30 Tom Tromey <tromey@redhat.com>
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
5426 2013-05-30 Tom Tromey <tromey@redhat.com>
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.
5433 2013-05-30 Tom Tromey <tromey@redhat.com>
5435 * infrun.c (adjust_pc_after_break): Introduce an outer null
5438 2013-05-30 Tom Tromey <tromey@redhat.com>
5440 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5442 2013-05-30 Tom Tromey <tromey@redhat.com>
5444 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5445 for 'old_chain'. Do not check 'head' before processing
5448 2013-05-30 Tom Tromey <tromey@redhat.com>
5450 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5453 2013-05-30 Tom Tromey <tromey@redhat.com>
5455 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5456 inner scope. Unconditionally call do_cleanups.
5458 2013-05-30 Tom Tromey <tromey@redhat.com>
5460 * source.c (find_and_open_source): Call do_cleanups.
5462 2013-05-30 Tom Tromey <tromey@redhat.com>
5464 * linux-thread-db.c (thread_db_load_search): Unconditionally
5467 2013-05-30 Tom Tromey <tromey@redhat.com>
5469 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5470 for 'cleanup'; instead use a later one.
5472 2013-05-30 Tom Tromey <tromey@redhat.com>
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.
5479 2013-05-30 Tom Tromey <tromey@redhat.com>
5481 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5482 do_cleanups on all return paths.
5484 2013-05-30 Tom Tromey <tromey@redhat.com>
5486 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5488 2013-05-30 Tom Tromey <tromey@redhat.com>
5490 * stabsread.c (read_struct_type): Call do_cleanups along
5493 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5495 * mips-linux-tdep.c: Adjust formatting throughout.
5497 2013-05-30 Tom Tromey <tromey@redhat.com>
5499 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5500 along all return paths.
5502 2013-05-30 Tom Tromey <tromey@redhat.com>
5504 * symfile.c (find_separate_debug_file): Call do_cleanups
5505 along all return paths.
5507 2013-05-30 Tom Tromey <tromey@redhat.com>
5509 * symtab.c (search_symbols): Introduce a null cleanup for
5512 2013-05-30 Tom Tromey <tromey@redhat.com>
5514 * python/py-value.c (valpy_binop): Call do_cleanups before
5517 2013-05-30 Tom Tromey <tromey@redhat.com>
5519 * python/py-prettyprint.c (print_children): Remove extra
5522 2013-05-30 Tom Tromey <tromey@redhat.com>
5524 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5527 2013-05-30 Tom Tromey <tromey@redhat.com>
5529 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5530 along all return paths.
5532 2013-05-30 Tom Tromey <tromey@redhat.com>
5534 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5537 2013-05-30 Tom Tromey <tromey@redhat.com>
5539 * varobj.c (c_value_of_root): Call do_cleanups along all
5542 2013-05-30 Tom Tromey <tromey@redhat.com>
5544 * tracepoint.c (trace_dump_command): Unconditionally call
5547 2013-05-30 Tom Tromey <tromey@redhat.com>
5549 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5550 do_cleanups earlier.
5552 2013-05-30 Tom Tromey <tromey@redhat.com>
5554 * machoread.c (macho_symfile_read): Assign first cleanup to
5557 2013-05-30 Tom Tromey <tromey@redhat.com>
5559 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5561 2013-05-30 Tom Tromey <tromey@redhat.com>
5563 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5565 2013-05-30 Tom Tromey <tromey@redhat.com>
5567 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5568 call discard_cleanups.
5569 (inf_ptrace_attach): Likewise.
5571 2013-05-30 Tom Tromey <tromey@redhat.com>
5573 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5575 (mips_initialize): Likewise.
5576 (common_open): Call do_cleanups.
5578 2013-05-30 Tom Tromey <tromey@redhat.com>
5580 * utils.c (internal_vproblem): Call do_cleanups.
5582 2013-05-30 Tom Tromey <tromey@redhat.com>
5584 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5586 2013-05-30 Tom Tromey <tromey@redhat.com>
5588 * cli/cli-script.c (setup_user_args): Don't return after error.
5590 2013-05-30 Tom Tromey <tromey@redhat.com>
5592 * somread.c (som_symtab_read): Call do_cleanups.
5594 2013-05-30 Tom Tromey <tromey@redhat.com>
5596 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5598 2013-05-30 Tom Tromey <tromey@redhat.com>
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):
5606 * symfile.c (load_command): Call do_cleanups.
5608 2013-05-30 Tom Tromey <tromey@redhat.com>
5610 * contrib/cleanup_check.py: New file.
5611 * contrib/gcc-with-excheck: Add option parsing.
5613 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5615 * windows-nat.c (windows_delete_thread): Add missing space
5618 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5620 * inferior.c (top level): Include tilde.h.
5621 (add_inferior_command): Call tilde_expand on the value of 'exec'
5624 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5625 Yao Qi <yao@codesourcery.com>
5627 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5629 (encode_actions): Likewise.
5630 * remote.c (remote_download_tracepoint): Caller update.
5631 * tracepoint.h (encode_actions): Update declaration.
5633 2013-05-30 Pedro Alves <palves@redhat.com>
5635 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5638 2013-05-30 Yao Qi <yao@codesourcery.com>
5640 * remote.c (remote_check_symbols): Remove unused parameter
5643 (remote_start_remote, remote_new_objfile): Caller update.
5645 2013-05-30 Yao Qi <yao@codesourcery.com>
5647 * mi/mi-cmds.c (mi_cmds): Define MI command
5648 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5651 2013-05-29 Pedro Alves <palves@redhat.com>
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
5660 2013-05-29 Pedro Alves <palves@redhat.com>
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.
5670 2013-05-28 Yao Qi <yao@codesourcery.com>
5672 * tracepoint.c (stringify_collection_list): Remove parameter
5674 (encode_actions): Caller update. Remove local variables.
5676 2013-05-24 Yao Qi <yao@codesourcery.com>
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
5686 2013-05-23 Doug Evans <dje@google.com>
5688 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5690 2013-05-23 Pedro Alves <palves@redhat.com>
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.
5699 2013-05-23 Pedro Alves <palves@redhat.com>
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.
5705 2013-05-23 Pedro Alves <palves@redhat.com>
5707 * NEWS: Mention GDBserver range stepping support.
5709 2013-05-23 Yao Qi <yao@codesourcery.com>
5710 Pedro Alves <palves@redhat.com>
5712 * gdbthread.h (struct thread_control_state) <may_range_step>: New
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
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.
5735 2013-05-23 Yao Qi <yao@codesourcery.com>
5736 Pedro Alves <palves@redhat.com>
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.
5743 2013-05-23 Yao Qi <yao@codesourcery.com>
5744 Pedro Alves <palves@redhat.com>
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.
5750 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5752 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5755 2013-05-22 Keith Seitz <keiths@redhat.com>
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
5768 * stack.h (find_frame_funname): Remove "const" from
5769 'funname' parameter.
5771 2013-05-22 Tom Tromey <tromey@redhat.com>
5774 * c-valprint.c (c_value_print): Use value_addr for
5775 references. Convert back to reference type with value_ref.
5777 2013-05-22 Eli Zaretskii <eliz@gnu.org>
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
5784 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
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
5794 (ui_out_destroy): Add vector cleanup.
5796 2013-05-22 Pedro Alves <palves@redhat.com>
5798 * python/python-internal.h (gdb_Py_DECREF): Tag with
5799 "ARI: editCase function".
5801 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5803 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5805 2013-05-21 Pedro Alves <palves@redhat.com>
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
5812 2013-05-21 Pedro Alves <palves@redhat.com>
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.
5819 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5821 * breakpoints.c (detach_breakpoints): Do not
5822 detach breakpoints locations with loc_type bp_loc_other.
5824 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5826 Workaround Python 2.6.
5827 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5830 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
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
5840 * solib.h (set_solib_ops): Make the new_ops parameter const.
5842 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5844 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
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.
5859 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5861 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5863 2013-05-21 Hui Zhu <hui@codesourcery.com>
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.
5875 2013-05-20 Tom Tromey <tromey@redhat.com>
5877 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5879 2013-05-20 Tom Tromey <tromey@redhat.com>
5881 * python/py-value.c (valpy_get_dynamic_type): Simplify
5882 dynamic_type assignment. Use Py_XINCREF.
5884 2013-05-20 Tom Tromey <tromey@redhat.com>
5886 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5888 2013-05-20 Tom Tromey <tromey@redhat.com>
5890 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5891 (gdbpy_selected_frame): Move object-construction code
5894 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
5941 2013-05-20 Tom Tromey <tromey@redhat.com>
5943 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5944 * python/py-param.c (get_set_value, get_show_value): Use
5946 * python/python.c (start_type_printers, apply_type_printers):
5947 Use explicit decrefs.
5949 2013-05-20 Tom Tromey <tromey@redhat.com>
5951 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5954 2013-05-20 Tom Tromey <tromey@redhat.com>
5956 * python/python.c (gdbpy_run_events): Decref the result
5957 of PyObject_CallObject.
5959 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
5965 2013-05-20 Tom Tromey <tromey@redhat.com>
5967 * python/py-param.c (compute_enum_values): Decref 'item'.
5969 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
5992 2013-05-20 Tom Tromey <tromey@redhat.com>
5994 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5996 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5997 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5999 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6001 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6003 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
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'.
6011 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6012 Return 'int'. Check errors.
6013 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6015 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6017 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6019 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6021 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6023 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6025 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6027 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6029 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6031 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6033 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6035 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6037 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
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.
6062 2013-05-20 Tom Tromey <tromey@redhat.com>
6064 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6065 Decref the reslut of PyObject_CallMethod.
6067 2013-05-20 Tom Tromey <tromey@redhat.com>
6069 * python/py-event.c (gdbpy_initialize_event_generic): Return
6070 early if PyType_Ready fails.
6072 2013-05-20 Tom Tromey <tromey@redhat.com>
6074 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6075 as 'default' in the switch.
6077 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
6087 2013-05-20 Tom Tromey <tromey@redhat.com>
6089 * python/py-event.c (evpy_emit_event): Decref the
6090 result of PyObject_CallFunctionObjArgs.
6092 2013-05-20 Tom Tromey <tromey@redhat.com>
6094 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6097 2013-05-20 Tom Tromey <tromey@redhat.com>
6099 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6101 2013-05-20 Tom Tromey <tromey@redhat.com>
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.
6110 2013-05-20 Tom Tromey <tromey@redhat.com>
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
6118 (GDB_PY_HANDLE_EXCEPTION): Update.
6119 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6121 2013-05-20 Tom Tromey <tromey@redhat.com>
6123 * python/python-internal.h (events_object_type): Remove.
6125 2013-05-20 Tom Tromey <tromey@redhat.com>
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):
6132 2013-05-20 Tom Tromey <tromey@redhat.com>
6134 * py-evtregistry.c (create_event_object): Decref
6135 eventregistry_object if PyList_New fails.
6137 2013-05-20 Tom Tromey <tromey@redhat.com>
6139 * py-cmd.c (gdbpy_string_to_argv): Check result of
6142 2013-05-20 Tom Tromey <tromey@redhat.com>
6144 * python/python.c (before_prompt_hook): Add cleanup to
6147 2013-05-20 Tom Tromey <tromey@redhat.com>
6149 * python/py-function.c (fnpy_init): Decref result of
6150 PyObject_GetAttrString.
6152 2013-05-20 Tom Tromey <tromey@redhat.com>
6154 * python/py-threadevent.c (get_event_thread): Use
6155 CPYCHECKER_RETURNS_BORROWED_REF.
6156 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6158 (pspace_to_pspace_object, objfile_to_objfile_object)
6159 (find_thread_object): Use it.
6161 2013-05-20 Tom Tromey <tromey@redhat.com>
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
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.
6211 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6213 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6214 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6216 2013-05-20 Doug Evans <dje@google.com>
6218 When reading CU, stay in DWO. Be more tolerent of bad debug info.
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.
6244 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6246 * windows-nat.c (handle_unload_dll): Add missing empty line.
6248 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6250 * dwarf2read.c (prototyped_function_p): New function.
6251 (read_subroutine_type): Use it.
6253 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6255 * rs6000-aix-tdep.c: De-indent some example code provided
6258 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
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
6264 2013-05-17 Doug Evans <dje@google.com>
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
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"
6279 2013-05-17 Tom Tromey <tromey@redhat.com>
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.
6286 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6288 * acinclude.m4: Add check for dlopen in libdl.
6289 * configure.ac: Ditto.
6290 * configure: Regenerate.
6292 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
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
6299 (frame_stash_add): Convert function to add an entry to a hash
6301 (frame_stash_find): Convert function to search the hash table.
6302 (frame_stash_invalidate): Convert function to empty the hash
6304 (get_frame_id): Only add to stash if a frame_id is created.
6305 (_initialize_frame): Call frame_stash_create.
6307 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6309 * configure.ac: Ensure MIG is available when building for GNU Hurd
6311 * configure: Regenerate.
6313 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6315 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6317 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6319 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6320 all cleanups are done before returning from this function.
6322 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6324 * utils.h: #include "exceptions.h".
6325 (enum errors): Remove partial declaration.
6327 2013-05-15 Joel Brobecker <brobecker@adacore.com>
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
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
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):
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.
6359 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
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".
6369 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6371 * linespec.c (convert_linespec_to_sals): New comment for
6372 SOURCE_FILENAME assignment.
6374 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6376 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6379 2013-05-14 Tom Tromey <tromey@redhat.com>
6381 * eval.c (parse_and_eval_long): Make 'exp' const.
6382 * value.h (parse_and_eval_long): Update.
6384 2013-05-14 Tom Tromey <tromey@redhat.com>
6386 * ui-file.c (gdb_fopen): Make arguments const.
6387 * ui-file.h (gdb_fopen): Make arguments const.
6389 2013-05-14 Tom Tromey <tromey@redhat.com>
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.
6395 2013-05-14 Tom Tromey <tromey@redhat.com>
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
6405 2013-05-13 Tom Tromey <tromey@redhat.com>
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'
6413 (target_save_record): Likewise.
6415 2013-05-13 Tom Tromey <tromey@redhat.com>
6418 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6419 ranges section has been read.
6421 2013-05-13 Tom Tromey <tromey@redhat.com>
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.
6430 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6432 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6433 floating point registers to register type before storing
6435 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6438 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6439 Tom Tromey <tromey@redhat.com>
6441 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6443 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
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.
6450 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6451 Tom Tromey <tromey@redhat.com>
6454 * configure: Rebuild.
6455 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6458 2013-05-10 Pedro Alves <palves@redhat.com>
6460 * remote.c (_initialize_remote): Fix spelling of
6461 qXfer:traceframe-info:read packet in packet config command.
6463 2013-05-10 David Taylor <dtaylor@emc.com>
6467 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6468 "QTro" at start of packet.
6470 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6472 * solib-aix.c (solib_aix_relocate_section_addresses):
6473 For the .bss section action, apply the same offset as
6476 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6478 * solib-aix.c (solib_aix_relocate_section_addresses):
6479 Remove FIXME comment.
6481 2013-05-10 Joel Brobecker <brobecker@adacore.com>
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.
6490 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6492 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
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
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
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
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
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.
6539 2013-05-09 Doug Evans <dje@google.com>
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.
6549 * symfile.c (decrement_reading_symtab): Add assert.
6550 (increment_reading_symtab): Ditto.
6552 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6554 * source.c (forward_search_command): Replace call to getc
6556 (reverse_search_command): Likewise.
6558 2013-05-08 Doug Evans <dje@google.com>
6560 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6563 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6565 * sol-thread.c (info_cb): Factorize the code a little.
6567 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6569 * sol-thread.c (info_cb): Rework the output of the "maintenance
6570 info sol-threads" command a bit.
6572 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6574 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6575 Replace ti.ti_startfunc by ti.ti_pc.
6577 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6579 * solib-aix.c (solib_aix_free_library_list): New function
6580 for the case where HAVE_LIBEXPAT is not defined.
6582 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
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.
6589 2013-05-07 Pierre Muller <muller@sourceware.org>
6591 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6592 instead of <sys/wait.h>.
6594 2013-05-07 Pierre Muller <muller@sourceware.org>
6596 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6597 trailing new line from warning message.
6599 2013-05-07 Pierre Muller <muller@sourceware.org>
6601 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6602 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6604 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6606 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6607 error message (ARI fix).
6609 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6611 * features/library-list-aix.dtd: Replace library-list by
6613 * rs6000-nat.c: Replace library-list by library-list-aix
6615 * solib-aix.c: Likewise.
6617 2013-05-07 Joel Brobecker <brobecker@adacore.com>
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.
6625 2013-05-07 Yao Qi <yao@codesourcery.com>
6627 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6628 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6630 2013-05-07 Yao Qi <yao@codesourcery.com>
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.
6638 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6640 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6641 debug state prior to replicating existing hardware watchpoints or
6644 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6646 * gcore.c (gcore_create_callback): Ignore sections with
6647 separate_debug_objfile_backlink != NULL.
6649 2013-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>
6654 Based on the nios2-elf port from Altera Corporation.
6656 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
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
6675 2013-05-06 Doug Evans <dje@google.com>
6677 * symfile.c: Whitespace cleanup.
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.
6685 2013-05-06 Tom Tromey <tromey@redhat.com>
6687 * ada-lang.c (ada_value_primitive_packed_val): Don't
6689 * value.c (set_value_parent): Incref the new parent and decref
6691 (value_copy, value_primitive_field): Use set_value_parent.
6693 2013-05-06 Tom Tromey <tromey@redhat.com>
6695 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6696 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6698 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6699 * dwarf2read.c (write_constant_as_bytes)
6700 (dwarf2_fetch_constant_bytes): New functions.
6702 2013-05-06 Tom Tromey <tromey@redhat.com>
6704 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6706 (dwarf2_const_value_attr): Update.
6708 2013-05-06 Tom Tromey <tromey@redhat.com>
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.
6715 2013-05-06 Tom Tromey <tromey@redhat.com>
6717 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6720 2013-05-06 Doug Evans <dje@google.com>
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
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
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.
6748 * symfile.c (syms_from_objfile_1): Use correct section count when
6749 objfile->sf == NULL.
6751 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6753 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6755 2013-05-06 Doug Evans <dje@google.com>
6757 * psympriv.h (struct partial_symtab): Augment comment for member
6760 2013-05-06 Joel Brobecker <brobecker@adacore.com>
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
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
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.
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
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.
6826 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6828 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6829 to target_write_memory and target_read_memory.
6831 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6833 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6834 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6836 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6838 * darwin-nat.c: Replace all "%x" instances in format strings
6839 into "0x%x" throughout.
6841 2013-05-06 Joel Brobecker <brobecker@adacore.com>
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.
6852 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6854 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6856 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6858 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6860 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
6867 2013-05-04 Eli Zaretskii <eliz@gnu.org>
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.
6876 2013-05-03 Kevin Buettner <kevinb@redhat.com>
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
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.
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.
6904 2013-05-03 Doug Evans <dje@google.com>
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.
6913 2013-05-03 Kevin Buettner <kevinb@redhat.com>
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().
6924 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6926 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6927 ignore SIGINT and SIGTRAP in case these internal signals are
6930 2013-05-01 Joel Brobecker <brobecker@adacore.com>
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 *".
6938 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6940 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6941 of &info->load_map from "char *" to "gdb_byte *".
6943 2013-05-01 Joel Brobecker <brobecker@adacore.com>
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.
6949 2013-04-30 Doug Evans <dje@google.com>
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.
6956 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6957 calling init_cutu_and_read_dies.
6959 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6961 * target-descriptions.c (maint_print_c_tdesc_cmd):
6962 Add case to parse structures as register types and
6965 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6967 * MAINTAINERS (Write After Approval): Add myself to the list.
6969 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6971 * sol-thread.c (rw_common): Change type of parameter "buf"
6973 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6974 rw_common to "gdb_byte *" instead of "char *".
6976 2013-04-30 Joel Brobecker <brobecker@adacore.com>
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.
6983 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6985 * i386gnu-nat.c (CREG_OFFSET): New macro.
6986 (creg_offset): New array.
6987 (CREG_ADDR): Use creg_offset instead of reg_offset.
6989 2013-04-30 Joel Brobecker <brobecker@adacore.com>
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.
6995 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6997 * common/filestuff.c: Replace #include <dirent.h> by
6998 #include "gdb_dirent.h".
7000 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7002 * common/filestuff.c: Replace #include <sys/stat.h> by
7003 #include "gdb_stat.h".
7005 2013-04-29 Pierre Muller <muller@sourceware.org>
7007 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7008 editCase function rule.
7009 (get_DW_AT_signature_type): Likewise.
7011 2013-04-29 Joel Brobecker <brobecker@adacore.com>
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.
7017 2013-04-29 Pierre Muller <muller@sourceware.org>
7019 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7021 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7023 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7025 2013-04-28 Yao Qi <yao@codesourcery.com>
7027 * solib-dsbt.c (fetch_loadmap): Re-indent.
7028 (displacement_from_map, enable_break2): Likewise.
7029 (dsbt_relocate_section_addresses): Likewise.
7031 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7035 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7038 * dwarf2read.c (process_full_comp_unit): Always create a static
7041 2013-04-25 Hui Zhu <hui@codesourcery.com>
7043 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7044 to loc->cmd_bytecode.
7046 2013-04-24 Doug Evans <dje@google.com>
7048 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7050 2013-04-22 Keith Seitz <keiths@redhat.com>
7052 * tracepoint.c (trace_save): Call the writer's start method.
7054 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7057 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7060 2013-04-23 Tom Tromey <tromey@redhat.com>
7062 * common/filestuff.c: Check USE_WIN32API before including
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
7072 2013-04-23 Hui Zhu <hui@codesourcery.com>
7075 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7077 2013-04-23 Hui Zhu <hui@codesourcery.com>
7080 * breakpoint.c (dprintf_print_recreate): New.
7081 (save_breakpoints): Let it not save dprintf commands.
7082 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7084 2013-04-22 Tom Tromey <tromey@redhat.com>
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
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
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
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
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
7118 (linux_async_pipe): Use gdb_pipe_cloexec.
7119 * remote-fileio.c (remote_fileio_func_open): Use
7121 * remote.c (remote_file_put, remote_file_get): Use
7123 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
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
7135 * main.c (captured_main): Call notice_open_fds.
7137 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
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
7144 2013-04-22 Yao Qi <yao@codesourcery.com>
7146 * infrun.c: Fix typo in comment.
7148 2013-04-22 Andrew Haley <aph@redhat.com>
7150 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7153 2013-04-20 Yao Qi <yao@codesourcery.com>
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 *'.
7159 2013-04-19 Pedro Alves <palves@redhat.com>
7161 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7163 * configure: Regenerate.
7165 2013-04-19 Pedro Alves <palves@redhat.com>
7167 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7170 2013-04-19 Pedro Alves <palves@redhat.com>
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
7180 2013-04-19 Pedro Alves <palves@redhat.com>
7182 * record.c (validate_history_size): Make parameter 'setting'
7185 2013-04-19 Pedro Alves <palves@redhat.com>
7187 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7190 2013-04-19 Pedro Alves <palves@redhat.com>
7192 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7195 2013-04-19 Pedro Alves <palves@redhat.com>
7197 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7198 * ada-tasks.c (read_fat_string_value): Likewise.
7200 2013-04-19 Pedro Alves <palves@redhat.com>
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.
7206 2013-04-19 Pedro Alves <palves@redhat.com>
7208 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7209 (read_index_from_section): Add cast to 'char *'.
7211 2013-04-19 Pedro Alves <palves@redhat.com>
7213 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7215 2013-04-19 Pedro Alves <palves@redhat.com>
7217 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7219 2013-04-19 Pedro Alves <palves@redhat.com>
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
7225 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7227 2013-04-19 Pedro Alves <palves@redhat.com>
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.
7237 2013-04-19 Pedro Alves <palves@redhat.com>
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
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.
7248 2013-04-19 Pedro Alves <palves@redhat.com>
7250 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7252 2013-04-19 Pedro Alves <palves@redhat.com>
7254 * remote.c (remote_write_bytes_aux, compare_sections_command)
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.
7264 2013-04-19 Pedro Alves <palves@redhat.com>
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.
7278 2013-04-19 Pedro Alves <palves@redhat.com>
7280 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7282 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7284 2013-04-19 Pedro Alves <palves@redhat.com>
7286 * alpha-tdep.c (alpha_extract_return_value): Use
7287 regcache_cooked_read_unsigned to read 'v0'.
7289 2013-04-19 Pedro Alves <palves@redhat.com>
7291 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7292 parameters 'at', 'as' and 'offset' to uint32_t.
7294 2013-04-19 Pedro Alves <palves@redhat.com>
7296 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7297 'is64' to signed 'int'.
7299 2013-04-19 Pedro Alves <palves@redhat.com>
7301 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7304 2013-04-19 Pedro Alves <palves@redhat.com>
7306 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7307 'insnbuf' buffer type to unsigned int[].
7309 2013-04-19 Pedro Alves <palves@redhat.com>
7311 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7313 2013-04-19 Pedro Alves <palves@redhat.com>
7315 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7318 2013-04-19 Pedro Alves <palves@redhat.com>
7320 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7321 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7323 * mips-tdep.c (heuristic_fence_post): Change type to int.
7324 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7326 2013-04-19 Pedro Alves <palves@redhat.com>
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.
7332 2013-04-19 Pedro Alves <palves@redhat.com>
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
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
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.
7353 (info_spu_event_command, info_spu_signal_command): Add casts to
7356 2013-04-19 Pedro Alves <palves@redhat.com>
7358 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
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
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
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
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
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
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
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
7448 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
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.
7458 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7459 Pedro Alves <palves@redhat.com>
7461 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7464 2013-04-17 Doug Evans <dje@google.com>
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.
7483 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7485 * aarch64-tdep.c (aarch64_write_pc): Removed.
7486 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7489 2013-04-17 Yao Qi <yao@codesourcery.com>
7491 * top.c (print_gdb_configuration): Print configure-time
7492 parameter on using libbabeltrace or not.
7494 2013-04-16 Pedro Alves <palves@redhat.com>
7496 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7498 2013-04-16 Pedro Alves <palves@redhat.com>
7500 * common/glibc_thread_db.h: Update from upstream glibc
7501 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7503 2013-04-16 Pedro Alves <palves@redhat.com>
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.
7509 2013-04-16 Will Newton <will.newton@gmail.com>
7510 Pedro Alves <palves@redhat.com>
7514 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7515 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7518 2013-04-16 Pedro Alves <palves@redhat.com>
7519 Eli Zaretskii <eliz@gnu.org>
7521 * NEWS: Mention "set foo unlimited".
7523 2013-04-15 Doug Evans <dje@google.com>
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.
7533 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7535 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7536 (create_dwo_in_dwp): Ditto.
7538 2013-04-15 Tom Tromey <tromey@redhat.com>
7540 * NEWS: Move recent entries into "since 7.6" section.
7542 2013-04-15 Tom Tromey <tromey@redhat.com>
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
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.
7568 2013-04-15 Tom Tromey <tromey@redhat.com>
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.
7582 2013-04-15 Tom Tromey <tromey@redhat.com>
7584 * break-catch-throw.c (struct exception_names): New.
7585 (exception_functions): Change type.
7586 (re_set_exception_catchpoint): Look for SDT probes.
7588 2013-04-15 Tom Tromey <tromey@redhat.com>
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.
7601 2013-04-15 Tom Tromey <tromey@redhat.com>
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.
7610 2013-04-15 Tom Tromey <tromey@redhat.com>
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
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.
7632 2013-04-15 Tom Tromey <tromey@redhat.com>
7634 * elfread.c (elf_symtab_read): Install versioned symbol under
7635 unversioned name as well.
7637 2013-04-15 Tom Tromey <tromey@redhat.com>
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
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.
7657 2013-04-15 Tom Tromey <tromey@redhat.com>
7661 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
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.
7671 2013-04-15 Pierre Muller <muller@sourceware.org>
7673 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7674 set_gdbarch_write_pc as deprecated anymore.
7676 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7678 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7681 2013-04-13 Yao Qi <yao@codesourcery.com>
7683 * ctf.c (_initialize_ctf): Include "completer.h".
7684 Call add_target_with_completer instead of add_target.
7686 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
7695 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7697 * config.in: Regenerate.
7699 2013-04-12 Tom Tromey <tromey@redhat.com>
7701 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
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):
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):
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'
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'
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'
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
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
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
7770 (per_cu_header_read_in): Constify.
7771 * symfile.h (dwarf2_get_section_info): Update.
7773 2013-04-12 Tom Tromey <tromey@redhat.com>
7775 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7777 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7779 * NEWS: Mention "show configuration", --configuration.
7780 * top.c (print_gdb_configuration): New function, displays the
7781 details about GDB configure-time parameters.
7782 (print_gdb_version): Mention "show configuration".
7783 * cli/cli-cmds.c (show_configuration): New function.
7784 (_initialize_cli_cmds): Add the "show configuration" command.
7785 * main.c (captured_main) <print_configuration>: New static var.
7786 <long_options>: Use it.
7787 If --configuration was given, call print_gdb_configuration.
7789 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7790 Pedro Alves <palves@redhat.com>
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.
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
7809 * gdb_gcore.sh: Rename to ...
7810 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7811 and GCORE_TRANSFORM_NAME substitutions.
7813 Fix parsing tabs in ${gdb_target_obs}.
7814 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7816 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7818 * remote.c (unpush_and_perror): Add output message final dot.
7820 2013-04-11 Yao Qi <yao@codesourcery.com>
7822 * tracepoint.c (tfile_interp_line): Fit parameters line and
7825 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7827 * solib.c (solib_map_sections): Remove code overwriting
7828 SO->SO_NAME with the bfd's filename.
7830 2013-04-10 Pedro Alves <palves@redhat.com>
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"
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
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>:
7848 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7850 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
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".
7858 2013-04-10 Pedro Alves <palves@redhat.com>
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.
7869 2013-04-10 Hui Zhu <hui@codesourcery.com>
7870 Yao Qi <yao@codesourcery.com>
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
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.
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
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'.
7905 (struct traceframe_info, trace_regblock_size): Move it to ...
7906 * tracepoint.h: ... here.
7907 (get_tracepoint_number): Declare it.
7908 (get_uploaded_tsv): Declare it.
7910 * NEWS: Mention new configure option.
7912 2013-04-10 Pedro Alves <palves@redhat.com>
7913 Hui Zhu <hui@codesourcery.com>
7915 * breakpoint.c (dprintf_re_set): New.
7916 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7919 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7921 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7922 Remove solib-svr4.o from the list.
7924 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7926 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7927 Use gdb_assert_not_reached instead of invalid boolean expression.
7929 2013-04-09 Pedro Alves <palves@redhat.com>
7931 * remote.c (unpush_and_perror): New function.
7932 (readchar, remote_serial_write): Use it.
7934 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7936 * NEWS: Mention new btrace RSP packets.
7938 2013-04-08 Tom Tromey <tromey@redhat.com>
7940 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7943 2013-04-08 Tom Tromey <tromey@redhat.com>
7945 * maint.c (print_bfd_section_info): Print the section index.
7946 * symmisc.c (dump_msymbols): Print the section index.
7948 2013-04-08 Tom Tromey <tromey@redhat.com>
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):
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
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):
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.
7987 2013-04-08 Tom Tromey <tromey@redhat.com>
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):
7995 * minsyms.c (prim_record_minimal_symbol): Update.
7996 (prim_record_minimal_symbol_full): Remove 'bfd_section'
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):
8006 2013-04-08 Tom Tromey <tromey@redhat.com>
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
8019 2013-04-08 Tom Tromey <tromey@redhat.com>
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):
8026 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8028 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
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
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.
8049 2013-04-08 Tom Tromey <tromey@redhat.com>
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.
8073 2013-04-08 Tom Tromey <tromey@redhat.com>
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
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.
8097 2013-04-08 Tom Tromey <tromey@redhat.com>
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.
8104 2013-04-08 Tom Tromey <tromey@redhat.com>
8106 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
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.
8122 2013-04-08 Pedro Alves <palves@redhat.com>
8123 Keith Seitz <keiths@redhat.com>
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".
8132 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8134 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8136 2013-04-07 Yao Qi <yao@codesourcery.com>
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
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.
8150 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8152 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8153 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8156 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8158 * main.h (windows_get_absolute_argv0): ...to here.
8160 2013-04-05 Doug Evans <dje@google.com>
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.
8168 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8175 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8182 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8188 2013-04-05 Eli Zaretskii <eliz@gnu.org>
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.
8195 2013-04-04 Pedro Alves <palves@redhat.com>
8196 Hui Zhu <hui@codesourcery.com>
8198 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8199 tracepoint, reset its STEP_COUNT and call validate_actionline.
8201 2013-04-03 Doug Evans <dje@google.com>
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.
8211 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
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.
8220 * psymtab.c (read_psymtabs_with_fullname): Don't call
8221 psymtab_to_fullname if the basenames are different.
8223 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8225 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8226 New entry about "fullname" presence.
8228 2013-04-03 Pedro Alves <palves@redhat.com>
8230 * NEWS: Mention x86_64/Cygwin as new native configuration.
8232 2013-04-02 Doug Evans <dje@google.com>
8234 * dwarf2read.c (read_structure_type): Fix typo in comment.
8236 2013-04-02 Pedro Alves <palves@redhat.com>
8238 * NEWS: Mention "set/show debug aarch64", "set/show debug
8239 coff-pe-read" and "set/show debug mach-o".
8241 2013-04-02 Pedro Alves <palves@redhat.com>
8243 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8245 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8247 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8248 gdb_string.h is now in common/.
8250 2013-04-02 Pedro Alves <palves@redhat.com>
8252 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8253 under "New options".
8255 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8259 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8261 2013-04-02 Pedro Alves <palves@redhat.com>
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.
8269 2013-04-01 Jiong Wang <jiwang@tilera.com>
8271 * NEWS: Mention TILE-Gx in "New native configurations" and
8272 "New targets" sections.
8274 2013-04-01 Doug Evans <dje@google.com>
8276 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8277 (process_enumeration_scope): Simplify.
8279 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
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
8288 (build_type_psymtabs_reader): Assert called for a type unit.
8289 (build_type_psymtab_dependencies): Assert called for a type unit group.
8291 * dwarf2read.c (free_dwo_file): Add comment.
8292 (dwarf2_per_objfile_free): Unref dwp bfd.
8294 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
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'.
8303 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
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'.
8313 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8315 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8316 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8318 2013-03-29 Doug Evans <dje@google.com>
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.
8327 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8328 unnecessary, cleanup.
8330 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
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.
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.
8342 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8343 missing .debug_types section.
8345 2013-03-29 Yao Qi <yao@codesourcery.com>
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.
8356 * target.h: Include "command.h".
8357 (add_target_with_completer): Declare it.
8359 2013-03-28 Joel Brobecker <brobecker@adacore.com>
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.
8365 2013-03-28 Doug Evans <dje@google.com>
8367 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8368 types hash table until we know we need it.
8370 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
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.
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.
8382 2013-03-28 Pedro Alves <palves@redhat.com>
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
8392 2013-03-28 Doug Evans <dje@google.com>
8394 * symfile.c (find_separate_debug_file): Add comment.
8395 (terminate_after_last_dir_separator): Tweak comment.
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.
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.
8406 * typeprint.c (_initialize_typeprint): Improve type help text.
8408 * python/python.c (finish_python_initialization): Provide suggestion
8409 for how to tell gdb to find its python files.
8411 2013-03-28 Pedro Alves <palves@redhat.com>
8415 * source.c (_initialize_source): Change back "set listsize" to an
8418 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8421 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8423 2013-03-27 Pedro Alves <palves@redhat.com>
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
8433 (init_main): Adjust.
8435 2013-03-27 Pedro Alves <palves@redhat.com>
8437 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8438 coff_pe_read" command to "set debug coff-pe-read".
8440 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8442 * record.c (command_size_to_target_size): Fix size comparison.
8443 Change parameter type from pointer to integer to integer.
8446 2013-03-27 Pierre Muller <muller@sourceware.org>
8448 * windows-nat.c (handle_output_debug_string): Avoid typecast
8449 from integer of different size warning.
8451 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8453 * windows-nat.c (handle_output_debug_string): Add empty line
8454 after local block variable definition.
8456 2013-03-26 Pedro Alves <palves@redhat.com>
8458 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8459 (net_open): Make 'polls' local unsigned.
8461 2013-03-26 Pedro Alves <palves@redhat.com>
8463 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8464 a zuinteger command instead of uinteger.
8466 2013-03-26 Pedro Alves <palves@redhat.com>
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).
8477 2013-03-26 Pedro Alves <palves@redhat.com>
8479 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8480 and "set dcache size" commands zuinteger instead of uinteger.
8482 2013-03-26 Pedro Alves <palves@redhat.com>
8484 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8485 command zuinteger instead of uinteger.
8487 2013-03-26 Pedro Alves <palves@redhat.com>
8489 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8490 zuinteger instead of uinteger.
8492 2013-03-26 Pedro Alves <palves@redhat.com>
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".
8506 2013-03-26 Pedro Alves <palves@redhat.com>
8508 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8509 use with history_max_entries use. Remove FIXME note.
8511 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8513 * record-btrace.c (record_btrace_close): Call
8514 record_btrace_auto_disable.
8516 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8518 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8520 2013-03-25 Doug Evans <dje@google.com>
8522 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8524 2013-03-25 Tom Tromey <tromey@redhat.com>
8527 * c-exp.y (exp): Add new productions for destructors after '.' and
8529 (write_destructor_name): New function.
8531 2013-03-25 Tom Tromey <tromey@redhat.com>
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.
8540 2013-03-25 Yao Qi <yao@codesourcery.com>
8542 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8543 instead of '_mkdir'.
8545 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8547 * windows-nat.c (windows_get_absolute_argv0): New function.
8548 * windows-nat.h: Add its prototype.
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.
8557 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
8573 2013-03-22 Pedro Alves <palves@redhat.com>
8574 Yao Qi <yao@codesourcery.com>
8575 Mark Kettenis <kettenis@gnu.org>
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
8582 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8591 2013-03-22 Pedro Alves <palves@redhat.com>
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.
8598 2013-03-22 Pedro Alves <palves@redhat.com>
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.
8604 2013-03-21 Doug Evans <dje@google.com>
8606 New commands "mt set per-command {space,time,symtab} {on,off}".
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
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.
8642 2013-03-21 Tom Tromey <tromey@redhat.com>
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
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
8654 (syms_from_objfile_1): Remove dead 'if' condition. Check
8656 (add_symbol_file_command): Set 'num_sections'.
8657 * symfile-mem.c (symbol_file_add_from_memory): Set
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'.
8663 2013-03-21 Tom Tromey <tromey@redhat.com>
8665 * tracepoint.h (decode_agent_options): Add 'trace_string'
8667 * tracepoint.c (decode_agent_options): Add 'trace_string'
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.
8688 2013-03-21 Tom Tromey <tromey@redhat.com>
8691 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8692 Handle FILENAME token.
8694 2013-03-21 Tom Tromey <tromey@redhat.com>
8696 * c-exp.y (YYPRINT): Define.
8697 (c_print_token): New function.
8699 2013-03-21 Tom Tromey <tromey@redhat.com>
8701 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8703 2013-03-21 Yao Qi <yao@codesourcery.com>
8705 * ctf.c: Include "gdb_stat.h".
8706 [USE_WIN32API]: New macro 'mkdir'.
8707 (ctf_start): Use permission bits macros if they are defined.
8709 2013-03-20 Keith Seitz <keiths@redhat.com>
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.
8715 2013-03-20 Pedro Alves <palves@redhat.com>
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
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
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.
8734 2013-03-20 Tom Tromey <tromey@redhat.com>
8736 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8738 * dwarf2read.c (read_func_scope): Remove old FIXME.
8739 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
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,
8745 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8747 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8748 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8751 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8752 Tom Tromey <tromey@redhat.com>
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
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
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
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.
8810 2013-03-20 Tom Tromey <tromey@redhat.com>
8812 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8813 (print_partial_symbols, recursively_search_psymtabs): Use
8816 2013-03-20 Pierre Muller <muller@sourceware.org>
8818 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8819 addtion, subtraction, multiplication and division binary operator.
8821 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
8853 (push_target, unpush_target, pop_target): Remove parameter quitting from
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
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
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.
8871 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8873 * windows-nat.c (handle_output_debug_string): Replace call
8874 to string_to_core_addr with call to strtoull.
8876 2013-03-20 Yao Qi <yao@codesourcery.com>
8878 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8879 and write it to CTF metadata.
8881 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8883 * windows-nat.c (handle_output_debug_string): Change type of n to
8884 SIZE_T to avoid crash on 64 bit systems.
8886 2013-03-17 Eli Zaretskii <eliz@gnu.org>
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.
8892 2013-03-15 Steve Ellcey <sellcey@mips.com>
8894 * remote-sim.c (sim_command_completer): Make char arguments const.
8896 2013-03-15 Tom Tromey <tromey@redhat.com>
8899 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8901 2013-03-14 Tom Tromey <tromey@redhat.com>
8903 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
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.
8912 2013-03-14 Tom Tromey <tromey@redhat.com>
8914 * symfile.c (get_debug_link_info): Remove.
8915 (find_separate_debug_file_by_debuglink): Use
8916 bfd_get_debug_link_info.
8918 2013-03-14 Tom Tromey <tromey@redhat.com>
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.
8925 2013-03-14 Doug Evans <dje@google.com>
8926 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8933 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8935 * source.c (print_source_lines_base): Make a local copy of
8938 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8939 Jan Kratochvil <jan.kratochvil@redhat.com>
8941 * source.c (print_source_lines_base): Suppress "file" for TUI.
8943 2013-03-14 Keith Seitz <keiths@redhat.com>
8944 Alan Matsuoka <alanm@redhat.com>
8948 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8950 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8953 2013-03-14 Yao Qi <yao@codesourcery.com>
8955 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8956 status to tfile if trace is stopped by command 'tstop'.
8958 2013-03-14 Yao Qi <yao@codesourcery.com>
8960 * tracepoint.c (tfile_write_status): Write trace notes and user
8961 name into tfile if they are not NULL.
8963 2013-03-14 Hui Zhu <hui@codesourcery.com>
8964 Yao Qi <yao@codesourcery.com>
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.
8982 2013-03-14 Yao Qi <yao@codesourcery.com>
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.
9009 2013-03-13 Pedro Alves <palves@redhat.com>
9011 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9013 2013-03-13 Pedro Alves <palves@redhat.com>
9015 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
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.
9029 2013-03-13 Pedro Alves <palves@redhat.com>
9031 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
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
9039 (catch_syscall_completer): Make "text" and "word" parameters
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
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
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"
9070 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9072 * cli/cli-script.c (validate_comname): Make "tem" local const.
9073 (define_command): New const local "tem_c". Use it in calls to
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
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
9096 (command_completer, signal_completer): Make "text" and "prefix"
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"
9103 * cp-abi.c (cp_abi_completer): Likewise.
9104 * expression.h (parse_expression_for_completion): Change
9106 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9108 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9109 * infrun.c (handle_completer): Make "text" and "word" parameters
9111 * interps.c (interpreter_completer): Make "text" and "word"
9113 * language.h (struct language_defn)
9114 <la_make_symbol_completion_list>: Make "text" and "word"
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
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
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
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"
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"
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
9156 (make_source_files_completion_list): Make "text" and "word"
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
9166 (set_verbose): Make "cmdname" local const.
9167 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9169 (validate_actionline): Make "line" parameter a pointer to const
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
9178 (trace_dump_command): Adjust to validate_actionline prototype
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.
9186 2013-03-13 Pedro Alves <palves@redhat.com>
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**'
9201 * stap-probe.c (stap_parse_register_operand)
9202 (stap_parse_single_operand): Likewise.
9204 2013-03-13 Yao Qi <yao@codesourcery.com>
9206 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9207 the last matched 'V' blcok in trace frame.
9209 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9211 * NEWS: Create a new section for the next release branch.
9212 Rename the section of the current branch, now that it has
9215 2013-03-12 Joel Brobecker <brobecker@adacore.com>
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.
9220 2013-03-12 Keith Seitz <keiths@redhat.com>
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.
9229 (mi_parse): Make "cmd" const.
9231 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9233 2013-03-12 Keith Seitz <keiths@redhat.com>
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.
9249 (watch_command_1): Make "arg" const.
9250 Constify string handling.
9251 Copy the expression string instead of changing the input
9253 (update_breakpoint_location): Pass const pointer to
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.
9294 2013-03-12 Hui Zhu <hui@codesourcery.com>
9296 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9298 2013-03-12 Yao Qi <yao@codesourcery.com>
9299 Hui Zhu <hui@codesourcery.com>
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
9305 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
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.
9313 2013-03-11 Pedro Alves <palves@redhat.com>
9314 Jan Kratochvil <jan.kratochvil@redhat.com>
9316 * configure: Regenerate.
9317 * configure.ac (check dynamic export flag): Link python test with
9320 2013-03-11 Doug Evans <dje@google.com>
9321 Keith Seitz <keiths@redhat.com>
9323 * linespec.c (find_linespec_symbols): Call find_function_symbols
9324 first, and then call lookup_prefix_sym/find_method.
9326 2013-03-11 Pedro Alves <palves@redhat.com>
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.
9338 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9340 * remote.c (remote_set_trace_buffer_size): Move != operator
9341 to the start of next line to fix an ARI warning.
9343 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9345 * NEWS: Add record changes.
9347 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9354 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9362 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9376 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
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.
9396 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9398 * record.h (record_disconnect): New.
9399 (record_detach): New.
9400 (record_mourn_inferior): New.
9402 * record-full.c (record_disconnect, record_detach,
9403 record_mourn_inferior, record_kill): Move to...
9404 * record.c: ...here.
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
9413 (record_mourn_inferior, record_kill): Assert that the target
9414 is of record stratum. Call record_unpush and DEBUG.
9416 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9418 * record-full.h, record-full.c (record_memory_query): Rename
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.
9431 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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
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.
9498 (record_beneath_to_store_registers): Renamed to ...
9499 (record_full_beneath_to_store_registers): ... this.
9501 (record_beneath_to_xfer_partial_ops): Renamed to ...
9502 (record_full_beneath_to_xfer_partial_ops): ... this.
9504 (record_beneath_to_xfer_partial): Renamed to ...
9505 (record_full_beneath_to_xfer_partial): ... this.
9507 (record_beneath_to_insert_breakpoint): Renamed to ...
9508 (record_full_beneath_to_insert_breakpoint): ... this.
9510 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9511 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9513 (record_beneath_to_stopped_data_address): Renamed to ...
9514 (record_full_beneath_to_stopped_data_address): ... this.
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.
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.
9568 (record_async_inferior_event_handler): Renamed to ...
9569 (record_full_async_inferior_event_handler): ... this.
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.
9624 (record_init_record_breakpoints): Renamed to ...
9625 (record_full_init_record_breakpoints): ... this.
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.
9696 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
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
9752 Change "record" command help text.
9753 Move "record restore", "record set", and "record show" commands to
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.
9774 (record_delete): New.
9775 (record_is_replaying): New.
9776 (record_goto_entry): New.
9777 (record_goto_begin): New.
9778 (record_goto_end): 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.
9789 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9791 * target.h (add_deprecated_target_alias): New.
9792 * target.c (add_deprecated_target_alias): New.
9794 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9796 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9798 (linux_supports_btrace): Add kernel and
9800 (kernel_supports_btrace): New function.
9801 (cpu_supports_btrace): New function.
9802 (intel_supports_btrace): New function.
9804 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9820 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9833 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9848 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9857 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
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.
9876 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
9882 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
9888 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
9894 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9897 2013-03-08 Yao Qi <yao@codesourcery.com>
9899 * tracepoint.c (_initialize_tracepoint): Indent the code.
9901 2013-03-08 Pedro Alves <palves@redhat.com>
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 *'.
9907 2013-03-08 Stan Shebs <stan@codesourcery.com>
9908 Hafiz Abid Qadeer <abidh@codesourcery.com>
9910 * NEWS: Mention set and show trace-buffer-size commands.
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.
9927 2013-03-08 Tom Tromey <tromey@redhat.com>
9929 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9932 2013-03-07 Pedro Alves <palves@redhat.com>
9934 * target.c (target_read_stralloc, target_fileio_read_alloc):
9935 *Cast pointer to 'gdb_byte *' in target call.
9937 2013-03-07 Pedro Alves <palves@redhat.com>
9939 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9942 2013-03-07 Keith Seitz <keiths@redhat.com>
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.
9997 2013-03-07 Pedro Alves <palves@redhat.com>
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.
10006 2013-03-07 Pedro Alves <palves@redhat.com>
10008 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10010 (make_wchar_iterator): Remove cast to char*.
10011 (wchar_iterate): Change type of local.
10013 2013-03-07 Pedro Alves <palves@redhat.com>
10015 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10016 for 'regcache->register_status'.
10018 2013-03-07 Pedro Alves <palves@redhat.com>
10020 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10023 2013-03-07 Pedro Alves <palves@redhat.com>
10025 * stap-probe.c (handle_stap_probe): Add cast to char*.
10027 2013-03-07 Pedro Alves <palves@redhat.com>
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.
10033 2013-03-07 Pedro Alves <palves@redhat.com>
10035 * remote-notif.c (notif_debug): Change type to int.
10036 * remote-notif.h (notif_debug): Likewise.
10038 2013-03-07 Pedro Alves <palves@redhat.com>
10040 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10042 2013-03-07 Pedro Alves <palves@redhat.com>
10044 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10045 * remote.h (hex2bin, bin2hex): ... here.
10046 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10048 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10050 * utils.c (initialize_utils): Improve doc strings of "set/show
10051 width", "set/show height", and "set/show pagination".
10053 2013-03-06 Keith Seitz <keiths@redhat.com>
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.
10060 2013-03-06 Doug Evans <dje@google.com>
10062 * elfread.c (elf_symfile_read): Move debugging printf to more
10065 2013-03-06 Pedro Alves <palves@redhat.com>
10067 * python/py-utils.c (target_string_to_unicode): Delete function.
10068 * python/python-internal.h (target_string_to_unicode): Delete
10071 2013-03-06 Pierre Muller <muller@sourceware.org>
10073 * linespec.c (get_current_search_block): ARI fix, use (void)
10074 for empty parameter list.
10076 2013-03-05 Doug Evans <dje@google.com>
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.
10096 2013-03-05 Yao Qi <yao@codesourcery.com>
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.
10103 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10105 * NEWS: Mention new target x86_64-*-cygwin*.
10107 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
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.
10113 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10115 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10117 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
10130 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10132 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10133 calling do_cleanup.
10135 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10137 * tracepoint.c (build_traceframe_info): Add code for byte order.
10139 2013-03-02 Kevin Buettner <kevinb@redhat.com>
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.
10145 2013-03-01 Jiong Wang <jiwang@tilera.com>
10146 Pedro Alves <palves@redhat.com>
10148 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10150 (tilegx_skip_prologue): Limit prologue analysis to section end.
10152 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10154 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10157 2013-03-01 Pedro Alves <palves@redhat.com>
10159 Use gdb_byte for bytes from the program being debugged.
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):
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'
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'
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.
10231 2013-03-01 Jiong Wang <jiwang@tilera.com>
10233 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10234 (tilegx_gdbarch_init): Install it.
10236 2013-02-28 Tom Tromey <tromey@redhat.com>
10238 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10241 2013-02-28 Doug Evans <dje@google.com>
10243 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10244 * python/python.c (gdbpy_find_pc_line): Ditto.
10246 2013-02-28 Tom Tromey <tromey@redhat.com>
10248 * contrib/excheck.py: New file.
10249 * contrib/exsummary.py: New file.
10250 * contrib/gcc-with-excheck: New file.
10252 2013-02-28 Tom Tromey <tromey@redhat.com>
10254 * python/python.c (gdbpy_print_stack): Call begin_line and
10255 fprintf_filtered inside TRY_CATCH.
10257 2013-02-28 Tom Tromey <tromey@redhat.com>
10259 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10262 2013-02-28 Tom Tromey <tromey@redhat.com>
10264 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10265 frame_object_to_frame_info inside TRY_CATCH.
10267 2013-02-28 Tom Tromey <tromey@redhat.com>
10269 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10272 2013-02-28 Tom Tromey <tromey@redhat.com>
10274 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10276 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10278 * windows-nat.c: Throughout, fix format strings and casts of
10279 printf-like functions to avoid type related warnings on all
10281 (handle_output_debug_string): Fetch context information address
10282 from debug string using string_to_core_addr.
10284 2013-02-27 Jiong Wang <jiwang@tilera.com>
10286 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10287 * regformats/reg-tilegx32.dat: New.
10289 2013-02-27 Jiong Wang <jiwang@tilera.com>
10291 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10293 2013-02-27 Jiong Wang <jiwang@tilera.com>
10295 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10297 2013-02-27 Yao Qi <yao@codesourcery.com>
10298 Pedro Alves <palves@redhat.com>
10300 * tracepoint.c (tfile_trace_find): For tfind
10301 pc/tp/range/outside, look for the next trace frame instead of
10302 always starting from frame 0.
10304 2013-02-26 Anthony Green <green@moxielogic.com>
10306 * configure.tgt: Add support for moxie-*-rtems* target.
10308 2013-02-25 Pedro Alves <palves@redhat.com>
10310 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10313 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10315 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10316 if $fp is used as the virtual frame pointer.
10318 2013-02-23 Alan Modra <amodra@gmail.com>
10320 * elfread.c (elf_symtab_read): Do not use udata.p here to find
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.
10327 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
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
10334 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10336 2013-02-21 Alan Modra <amodra@gmail.com>
10338 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10340 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
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.
10347 2013-02-20 Jiong Wang <jiwang@tilera.com>
10349 * MAINTAINERS (Write After Approval): Add myself to the list.
10351 2013-02-19 Pedro Alves <palves@redhat.com>
10353 Garbage collect 'struct monitor_ops'::load_routine.
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'.
10362 2013-02-19 Pedro Alves <palves@redhat.com>
10366 Harmonize with generic_load.
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.
10375 2013-02-19 Kai Tietz <ktietz@redhat.com>
10378 * symfile.c (load_section_data): Change type of load_offset
10380 (generic_load): User strtoulst instead of strtoul for conversion
10383 2013-02-19 Jiong Wang <jiwang@tilera.com>
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.
10390 2013-02-19 Jiong Wang <jiwang@tilera.com>
10392 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10394 2013-02-19 Jiong Wang <jiwang@tilera.com>
10396 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10398 2013-02-19 Jiong Wang <jiwang@tilera.com>
10400 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
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.
10411 2013-02-19 Jiong Wang <jiwang@tilera.com>
10413 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10414 should be aligned to 64bit.
10416 2013-02-19 Kai Tietz <ktietz@redhat.com>
10418 * windows-nat.c (windows_xfer_memory): Fix debug-output
10421 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10423 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10424 Don't check DSP register number if HAVE_DSP is not set.
10426 2013-02-19 Alan Modra <amodra@gmail.com>
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.
10436 2013-02-18 Tom Tromey <tromey@redhat.com>
10439 * dwarf2read.c (read_subrange_type): Use result of
10442 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10444 * frame.c: Remove one extra white space after #include
10447 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10449 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10451 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10453 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10454 and dir commands into an if block.
10456 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10458 * python/py-breakpoint (struct pybp_code): Use int instead of
10461 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10462 Hafiz Abid Qadeer <abidh@codesourcery.com>
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
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.
10483 2013-02-15 Yao Qi <yao@codesourcery.com>
10485 * remote.c: Fix a typo.
10487 2013-02-14 Pierre Muller <muller@sourceware.org>
10489 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10491 2013-02-14 Pedro Alves <palves@redhat.com>
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.
10499 2013-02-14 Pedro Alves <palves@redhat.com>
10501 * utils.c (savestring): Rename parameter 'size' to 'len'.
10503 2013-02-14 Pedro Alves <palves@redhat.com>
10504 Yufeng Zhang <yufeng.zhang@arm.com>
10506 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10507 (aarch64_inferior_data, struct aarch64_inferior_data):
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.
10537 2013-02-14 Pedro Alves <palves@redhat.com>
10539 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10540 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10543 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10544 Hafiz Abid Qadeer <abidh@codesourcery.com>
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.
10553 2013-02-14 Yao Qi <yao@codesourcery.com>
10555 * infcmd.c (breakpoint_proceeded): Remove it.
10557 2013-02-14 Yao Qi <yao@codesourcery.com>
10559 * tracepoint.c (end_actions_pseudocommand): Make it static.
10560 (while_stepping_pseudocommand): Likewise.
10561 * tracepoint.h (end_actions_pseudocommand): Remove the
10563 (while_stepping_pseudocommand): Likewise.
10565 2013-02-14 Yao Qi <yao@codesourcery.com>
10567 * cli/cli-decode.c (help_cmd): Remove the declaration of
10569 (help_all): Likewise.
10571 2013-02-13 Pedro Alves <palves@redhat.com>
10573 * amd64-linux-nat.c (update_debug_registers_callback):
10575 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
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):
10585 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
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):
10596 (struct i386_process_info): New.
10597 (i386_process_list): New global.
10598 (i386_find_process_pid, i386_add_process, i386_process_info_get):
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
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
10625 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
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
10633 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10634 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10636 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10637 (linux_nat_forget_process): New declarations.
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.
10644 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10646 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10649 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10651 * aarch64-linux-nat.c (debug_reg_change_callback)
10652 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10655 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10657 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10660 2013-02-13 Pedro Alves <palves@redhat.com>
10661 Hafiz Abid Qadeer <abidh@codesourcery.com>
10663 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10665 2013-02-12 Tom Tromey <tromey@redhat.com>
10668 * c-exp.y (lex_one_token): Initialize other fields of yylval on
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.
10675 2013-02-12 Pedro Alves <palves@redhat.com>
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.
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.
10728 2013-02-12 Pedro Alves <palves@redhat.com>
10730 * break-catch-sig.c: Update copyright years.
10732 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
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
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
10750 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10753 2013-02-11 Doug Evans <dje@google.com>
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.
10762 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10764 * valops.c (value_assign): Handling bitfield offset in
10765 `lval_internalvar_component' case.
10767 2013-02-08 Doug Evans <dje@google.com>
10769 * common/format.c (parse_format_string): Fix whitespace.
10771 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10773 * stack.c (return_command): Work around uninitialized variable
10776 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10778 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10779 number of the registers from 36 to 34.
10781 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10783 * NEWS: Mention new AArch64 native and target support.
10785 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10787 * MAINTAINERS (Write After Approval): Add myself.
10789 2013-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>
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.
10799 2013-02-07 Doug Evans <dje@google.com>
10801 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10802 disassemble command.
10804 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10806 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10807 set_gdbarch_fetch_tls_load_module_address.
10809 2013-02-06 David S. Miller <davem@davemloft.net>
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.
10819 2013-02-06 Tom Tromey <tromey@redhat.com>
10821 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10822 outside of TRY_CATCH.
10824 2013-02-06 Yao Qi <yao@codesourcery.com>
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
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".
10841 * NEWS: Mention the new MI notification "=tsv-modified".
10843 2013-02-05 Doug Evans <dje@google.com>
10845 * completer.c (location_completer): Fix typo in comment.
10847 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10849 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10852 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10854 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10855 Refactor if statement to avoid trailing || operator.
10857 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10859 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10861 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
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.
10869 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10870 Denys Vlasenko <dvlasenk@redhat.com>
10871 Pedro Alves <palves@redhat.com>
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
10886 2013-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>
10891 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10893 2013-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>
10898 * aarch64-newlib-tdep.c: New file.
10899 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
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".
10906 2013-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>
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.
10918 2013-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>
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).
10940 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10942 * contrib/expect-read1.c: New file.
10943 * contrib/expect-read1.sh: New file.
10945 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10947 * dwarf2read.c (file_file_name): New function with code from
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
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
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
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
10977 (new_macro_table): New parameter comp_dir, add a comment for it.
10978 (macro_source_fullname): new declaration.
10980 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
10990 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
11013 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
11053 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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):
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
11070 (create_sals_line_offset, convert_linespec_to_sals): New variable
11071 fullname, initialize it, replace symtab->filename reference by the
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
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.
11136 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11137 Jan Kratochvil <jan.kratochvil@redhat.com>
11139 Add a new variable that controls a way in which filenames are
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'
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.
11153 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
11165 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
11183 * symtab.c (find_line_symtab): Rename the called function to
11184 expand_symtabs_with_fullname.
11186 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
11204 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11206 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11209 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11210 source_file references by symtab field references. Remove variables
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.
11226 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11228 Replace xfullpath calls by gdb_realpath calls.
11229 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
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
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
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
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.
11257 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
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
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.
11285 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11287 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11289 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11291 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11293 2013-02-01 Pedro Alves <palves@redhat.com>
11295 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11296 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11298 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
11306 2013-01-31 Tom Tromey <tromey@redhat.com>
11308 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11310 (struct jit_program_space_data): Rename from jit_inferior_data.
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',
11318 (jit_register_code): Update.
11319 (jit_update_inferior_cache): Remove.
11320 (jit_breakpoint_deleted): Get jit data from the location's program
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.
11329 2013-01-31 Tom Tromey <tromey@redhat.com>
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
11338 (_initialize_jit): Register breakpoint deleted observer.
11340 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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.
11348 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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,
11354 (c_get_string): Remove unused kind.
11355 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11357 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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
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
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
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
11401 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11402 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11405 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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.
11414 2013-01-31 Tom Tromey <tromey@redhat.com>
11417 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11420 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11422 * target.c (target_read_string): Remove unused origlen.
11424 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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.
11432 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
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
11439 2013-01-30 Tom Tromey <tromey@redhat.com>
11441 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11443 2013-01-30 Tom Tromey <tromey@redhat.com>
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.
11449 2013-01-30 Tom Tromey <tromey@redhat.com>
11451 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11452 (read_structure_type, read_enumeration_type): Remove cast.
11454 2013-01-30 Tom Tromey <tromey@redhat.com>
11456 * dwarf2read.c (read_namespace_type): Remove cast.
11457 (read_typedef): Likewise.
11459 2013-01-29 Tom Tromey <tromey@redhat.com>
11461 * dwarf2read.c (free_dwo_file): Remove assert.
11463 2013-01-29 Tom Tromey <tromey@redhat.com>
11465 * value.c (deprecated_set_value_modifiable): Remove.
11466 * value.h (deprecated_set_value_modifiable): Remove.
11468 2013-01-28 Doug Evans <dje@google.com>
11470 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11471 to addresses from dwo files.
11473 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
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.
11483 2013-01-25 Tom Tromey <tromey@redhat.com>
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.
11490 2013-01-25 Tom Tromey <tromey@redhat.com>
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.
11499 2013-01-25 Pedro Alves <palves@redhat.com>
11501 * remote.c (add_current_inferior_and_thread): Tweak comment.
11503 2013-01-25 Tom Tromey <tromey@redhat.com>
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.
11513 2013-01-25 Tom Tromey <tromey@redhat.com>
11515 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11517 2013-01-25 Pedro Alves <palves@redhat.com>
11519 * remote.c (stop_reply_extract_thread): New.
11520 (add_current_inferior_and_thread): New parameter 'wait_status'.
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.
11528 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11529 Ulrich Weigand <uweigand@de.ibm.com>
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
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.
11546 2013-01-25 Yao Qi <yao@codesourcery.com>
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.
11564 2013-01-25 Yao Qi <yao@codesourcery.com>
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.
11573 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11575 * MAINTAINERS: Update my email.
11577 2013-01-25 Yao Qi <yao@codesourcery.com>
11579 * main.c (print_gdb_help): Remove "--epoch" from the help
11582 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
11584 * symtab.c (skip_prologue_using_sal): Consider a file
11585 change the same as an increased line number
11587 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11589 * MAINTAINERS (Write After Approval): Add myself to the list.
11591 2013-01-24 Tom Tromey <tromey@redhat.com>
11593 * ada-lang.h (ada_decode_symbol): Make return type const.
11594 * ada-lang.c (ada_decode_symbol): Likewise.
11596 2013-01-23 Doug Evans <dje@google.com>
11598 * linespec.c (find_linespec_symbols): Make static.
11600 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11602 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11603 type on float conversion for complex type.
11605 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
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
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
11619 * python/python.c (_initialize_python): Initialize
11620 gdb.Architecture class.
11622 2013-01-23 Doug Evans <dje@google.com>
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.
11632 2013-01-22 Pedro Alves <palves@redhat.com>
11634 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11637 2013-01-22 Pedro Alves <palves@redhat.com>
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.
11651 2013-01-22 Pedro Alves <palves@redhat.com>
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.
11664 2013-01-22 Pedro Alves <palves@redhat.com>
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
11671 * annotate.h (annotate_ignore_count_change): Delete.
11672 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11673 annotate_ignore_count_change.
11675 2013-01-22 Tom Tromey <tromey@redhat.com>
11677 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11678 require_rvalue for a register location.
11680 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11682 * breakpoint.c (print_one_breakpoint_location): Add MI
11683 field 'thread-groups' when printing a breakpoint.
11684 (output_thread_groups): New function.
11686 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11688 * python/lib/gdb/commands/explore.py
11689 (CompoundExplorer.explore_expr): Correct the name of a method
11691 (ExploreTypeCommand.invoke): Add a missing 'return'.
11693 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
11703 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
11719 2013-01-21 Tom Tromey <tromey@redhat.com>
11721 * dwarf2read.c (fixup_go_packaging): Save package name
11722 on objfile obstack.
11723 * gdbtypes.c (init_type): Don't copy name.
11725 2013-01-21 Tom Tromey <tromey@redhat.com>
11727 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
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
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'
11748 2013-01-21 Tom Tromey <tromey@redhat.com>
11750 * gdbtypes.c (init_type): Make 'name' const.
11751 * gdbtypes.h (init_type): Update.
11753 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
11777 2013-01-21 Tom Tromey <tromey@redhat.com>
11779 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11780 (symbol_set_names): Remove casts. Handle field const-ness.
11782 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
11788 2013-01-21 Tom Tromey <tromey@redhat.com>
11790 * main.c (captured_main): Call bfd_init.
11792 2013-01-21 Tom Tromey <tromey@redhat.com>
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.
11799 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11801 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11803 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11805 Fix gdb.fortran/common-block.exp crash in PIE mode.
11806 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
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.
11815 2013-01-18 David Blaikie <dblaikie@gmail.com>
11817 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11819 2013-01-18 Tom Tromey <tromey@redhat.com>
11822 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11823 Call require_rvalue.
11825 2013-01-18 Yao Qi <yao@codesourcery.com>
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
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.
11851 2013-01-18 Yao Qi <yao@codesourcery.com>
11853 * infrun.c (proceed): Rename local variable 'oneproc' to
11856 2013-01-17 Doug Evans <dje@google.com>
11858 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11859 (dw2_build_type_unit_groups): Delete. All uses updated.
11861 * symtab.h (struct symbol_search): Add comment.
11863 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11865 * symtab.c (compare_filenames_for_search): New comment for
11868 2013-01-17 Tom Tromey <tromey@redhat.com>
11870 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11872 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11874 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11875 initialize it by existing make_cleanup. Call new do_cleanups.
11877 2013-01-17 Tom Tromey <tromey@redhat.com>
11879 * cp-abi.c (cp_abi_completer): New function.
11880 (_initialize_cp_abi): Set completer for "set cp-abi".
11882 2013-01-17 Tom Tromey <tromey@redhat.com>
11884 * mem-break.c: Remove obsolete comment.
11885 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11887 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11889 * jit.c (jit_reader_load_command): Interpret the jit reader name
11890 as an absolute path if it begins with a forward slash.
11892 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11896 * jit.c (finalize_symtab): Ensure that only the global block has a
11899 2013-01-17 Pedro Alves <palves@redhat.com>
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.
11906 2013-01-16 Doug Evans <dje@google.com>
11908 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11910 2013-01-16 Pedro Alves <palves@redhat.com>
11911 Tom Tromey <tromey@redhat.com>
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
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.
11937 2013-01-16 Tom Tromey <tromey@redhat.com>
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
11944 2013-01-16 Yao Qi <yao@codesourcery.com>
11946 * printcmd.c (current_display_number): Make it static.
11948 2013-01-16 Yao Qi <yao@codesourcery.com>
11950 * infcmd.c (step_once): Don't check '!single_inst' as it was
11953 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11955 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11957 2013-01-14 Tom Tromey <tromey@redhat.com>
11959 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
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.
11966 2013-01-14 Tom Tromey <tromey@redhat.com>
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.
11981 2013-01-14 Tom Tromey <tromey@redhat.com>
11984 * psymtab.c (struct psymtab_state): New.
11985 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11987 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11988 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11990 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11991 Pedro Alves <palves@redhat.com>
11995 * remote.c (remote_threads_info): Make a copy of the reply from
11996 qfThreadInfo and use that instead of rs->buf.
11998 2013-01-14 Yao Qi <yao@codesourcery.com>
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.
12006 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
12015 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12017 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12018 non-existing files.
12020 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12021 non-existing files if FILENAME is already absolute.
12023 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12025 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12026 fputs_filtered. Append trailing newline.
12028 2013-01-11 Yao Qi <yao@codesourcery.com>
12029 Stan Shebs <stan@codesourcery.com>
12031 * psymtab.c (init_psymbol_list): Clarify the comment.
12033 2013-01-11 Yao Qi <yao@codesourcery.com>
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.
12039 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12042 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12044 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12046 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12048 2013-01-09 Anthony Green <green@moxielogic.com>
12050 * cp-abi.c (cplus_print_vtable): Don't return value from void
12052 * ada-lang.c (re_set_catch_assert): Ditto.
12054 2013-01-09 Doug Evans <dje@google.com>
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.
12068 2013-01-09 Tom Tromey <tromey@redhat.com>
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
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.
12079 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12081 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12082 Cast return_address to 64bits.
12084 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
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.
12090 2013-01-07 Tom Tromey <tromey@redhat.com>
12092 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12094 (objc_language_defn): Use c_printchar, c_printstr,
12097 2013-01-07 Tom Tromey <tromey@redhat.com>
12101 * ada-valprint.c (printstr, print_field_values): Remove
12103 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12105 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
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
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
12124 2013-01-04 Tom Tromey <tromey@redhat.com>
12126 * valprint.h (read_string): Add 'extern'.
12128 2013-01-07 Joel Brobecker <brobecker@adacore.com>
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.
12133 2013-01-03 Pierre Muller <muller@sourceware.org>
12135 * main.c (relocate_gdb_directory): Avoid calling stat function
12138 2013-01-03 Yao Qi <yao@codesourcery.com>
12140 * psymtab.c (fixup_psymbol_section): Update declaration.
12141 (fixup_psymbol_section): Remove code returning value.
12143 2013-01-03 Yao Qi <yao@codesourcery.com>
12145 * symtab.h: Remove some out of date comments.
12146 (enum exception_event_kind): Move it ...
12147 * breakpoint.c: ... here.
12149 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
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.
12157 2013-01-02 Tom Tromey <tromey@redhat.com>
12159 * symfile.h (struct ecoff_debug_hack): Remove.
12160 * objfiles.c: Don't include mdebugread.h.
12162 2013-01-02 Tom Tromey <tromey@redhat.com>
12164 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12165 * configure.ac: Check for Mach-O support in BFD. Update
12167 * configure: Rebuild.
12169 2013-01-02 Tom Tromey <tromey@redhat.com>
12171 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12172 * configure.ac: Use GDB_AC_CHECK_BFD.
12173 * configure: Rebuild.
12175 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12177 * MAINTAINERS: Update my email.
12179 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12181 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12183 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12185 * rs6000-nat.c (bss_data_overlap): New function.
12186 (vmap_symtab): Use it to adjust the .bss section's offset.
12188 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12190 Update year range in copyright notice of all files.
12192 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12194 * top.c (print_gdb_version): Update copyright year.
12196 For older changes see ChangeLog-2012.
12202 version-control: never