Remove last_cache
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-20 Yao Qi <yao@codesourcery.com>
2
3 * dcache.c (last_cache): Remove.
4 (dcache_free, dcache_init): Update.
5 (dcache_update):
6 (dcache_print_line): Add parameter 'dcache'. Replace
7 'target_dcache' with 'dcache'.
8 (dcache_info): Move code to dcache_info_1. Call
9 'dcache_info_1'.
10 (dcache_info_1): New function.
11 (set_dcache_size): Call target_dcache_invalidate.
12 (set_dcache_line_size): Call target_dcache_invalidate.
13 * target.c (target_dcache_init_p): New function.
14 (target_dcache_invalidate): Check target_dcache_init_p first.
15 (target_dcache_get, target_dcache_get_or_init): New function.
16 (memory_xfer_partial_1): Adjust.
17 (initialize_target): Don't initialize 'target_dcache'.
18 * target.h (struct dcache_struct): Declare.
19 (target_dcache_get): Declare.
20
21 2013-11-19 Yao Qi <yao@codesourcery.com>
22
23 * varobj.c (varobj_get_type): Fix typo.
24
25 2013-11-19 Joel Brobecker <brobecker@adacore.com>
26
27 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
28
29 2013-11-19 Joel Brobecker <brobecker@adacore.com>
30
31 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
32 "stat.h".
33
34 2013-11-18 Tom Tromey <tromey@redhat.com>
35
36 * common/gdb_stat.h: Remove.
37 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
38 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
39 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
40 * corefile.c: Use sys/stat.h, not gdb_stat.h.
41 * ctf.c: Use sys/stat.h, not gdb_stat.h.
42 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
43 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
44 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
45 * exec.c: Use sys/stat.h, not gdb_stat.h.
46 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
47 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
48 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
49 * jit.c: Use sys/stat.h, not gdb_stat.h.
50 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
51 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
52 * main.c: Use sys/stat.h, not gdb_stat.h.
53 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
54 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
55 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
56 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
57 * procfs.c: Use sys/stat.h, not gdb_stat.h.
58 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
59 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
60 * remote.c: Use sys/stat.h, not gdb_stat.h.
61 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
62 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
63 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
64 * source.c: Use sys/stat.h, not gdb_stat.h.
65 * symfile.c: Use sys/stat.h, not gdb_stat.h.
66 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
67 * symtab.c: Use sys/stat.h, not gdb_stat.h.
68 * top.c: Use sys/stat.h, not gdb_stat.h.
69 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
70
71 2013-11-18 Tom Tromey <tromey@redhat.com>
72
73 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
74 sys_stat.
75 * gnulib/aclocal.m4: Update.
76 * gnulib/config.in: Update.
77 * gnulib/configure: Update.
78 * gnulib/import/Makefile.am: Update.
79 * gnulib/import/Makefile.in: Update.
80 * gnulib/import/m4/gnulib-cache.m4: Update.
81 * gnulib/import/m4/gnulib-comp.m4: Update.
82 * gnulib/import/m4/sys_stat_h.m4: New.
83 * gnulib/import/m4/time_h.m4: New.
84 * gnulib/import/sys_stat.in.h: New.
85 * gnulib/import/time.in.h: New.
86
87 2013-11-18 Tom Tromey <tromey@redhat.com>
88
89 * configure: Rebuild.
90 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
91
92 2013-11-18 Tom Tromey <tromey@redhat.com>
93
94 * configure: Rebuild.
95 * configure.ac: Don't check for unistd.h.
96
97 2013-11-18 Tom Tromey <tromey@redhat.com>
98
99 * configure: Rebuild.
100 * configure.ac: Don't check for stdlib.h
101 * defs.h: Include stdlib.h unconditionally.
102
103 2013-11-18 Tom Tromey <tromey@redhat.com>
104
105 * config.in: Rebuild.
106 * configure: Rebuild.
107 * configure.ac: Don't check for stddef.h.
108 * defs.h: Unconditionally include stddef.h. Remove duplicate
109 inclusion.
110
111 2013-11-18 Tom Tromey <tromey@redhat.com>
112
113 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
114 * common/gdb_dirent.h: Remove.
115 * common/filestuff.c: Use dirent.h.
116 * common/linux-osdata.c: Use dirent.h.
117 (NAMELEN): Define.
118 * config.in: Rebuild.
119 * configure: Rebuild.
120 * configure.ac: Don't use AC_HEADER_DIRENT.
121 * linux-fork.c: Use dirent.h
122 * linux-nat.c: Use dirent.h.
123 * nto-procfs.c: Use dirent.h.
124 * procfs.c: Use dirent.h.
125
126 2013-11-18 Tom Tromey <tromey@redhat.com>
127
128 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
129 * gnulib/aclocal.m4: Update.
130 * gnulib/config.in: Update.
131 * gnulib/configure: Update.
132 * gnulib/import/Makefile.am: Update.
133 * gnulib/import/Makefile.in: Update.
134 * gnulib/import/dirent.in.h: New.
135 * gnulib/import/m4/dirent_h.m4: New.
136 * gnulib/import/m4/gnulib-cache.m4: Update.
137 * gnulib/import/m4/gnulib-comp.m4: Update.
138
139 2013-11-18 Tom Tromey <tromey@redhat.com>
140
141 * configure: Rebuild.
142 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
143 strings.h.
144
145 2013-11-18 Tom Tromey <tromey@redhat.com>
146
147 * common/gdb_string.h: Remove.
148 * aarch64-tdep.c: Use string.h, not gdb_string.h.
149 * ada-exp.y: Use string.h, not gdb_string.h.
150 * ada-lang.c: Use string.h, not gdb_string.h.
151 * ada-lex.l: Use string.h, not gdb_string.h.
152 * ada-typeprint.c: Use string.h, not gdb_string.h.
153 * ada-valprint.c: Use string.h, not gdb_string.h.
154 * aix-thread.c: Use string.h, not gdb_string.h.
155 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
156 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
157 * alpha-nat.c: Use string.h, not gdb_string.h.
158 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
159 * alpha-tdep.c: Use string.h, not gdb_string.h.
160 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
161 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
162 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
163 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
164 * amd64-nat.c: Use string.h, not gdb_string.h.
165 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
166 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
167 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
168 * arch-utils.c: Use string.h, not gdb_string.h.
169 * arm-linux-nat.c: Use string.h, not gdb_string.h.
170 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
171 * arm-tdep.c: Use string.h, not gdb_string.h.
172 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
173 * armbsd-tdep.c: Use string.h, not gdb_string.h.
174 * armnbsd-nat.c: Use string.h, not gdb_string.h.
175 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
176 * armobsd-tdep.c: Use string.h, not gdb_string.h.
177 * avr-tdep.c: Use string.h, not gdb_string.h.
178 * ax-gdb.c: Use string.h, not gdb_string.h.
179 * ax-general.c: Use string.h, not gdb_string.h.
180 * bcache.c: Use string.h, not gdb_string.h.
181 * bfin-tdep.c: Use string.h, not gdb_string.h.
182 * breakpoint.c: Use string.h, not gdb_string.h.
183 * build-id.c: Use string.h, not gdb_string.h.
184 * buildsym.c: Use string.h, not gdb_string.h.
185 * c-exp.y: Use string.h, not gdb_string.h.
186 * c-lang.c: Use string.h, not gdb_string.h.
187 * c-typeprint.c: Use string.h, not gdb_string.h.
188 * c-valprint.c: Use string.h, not gdb_string.h.
189 * charset.c: Use string.h, not gdb_string.h.
190 * cli-out.c: Use string.h, not gdb_string.h.
191 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
192 * cli/cli-decode.c: Use string.h, not gdb_string.h.
193 * cli/cli-dump.c: Use string.h, not gdb_string.h.
194 * cli/cli-interp.c: Use string.h, not gdb_string.h.
195 * cli/cli-logging.c: Use string.h, not gdb_string.h.
196 * cli/cli-script.c: Use string.h, not gdb_string.h.
197 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
198 * cli/cli-utils.c: Use string.h, not gdb_string.h.
199 * coffread.c: Use string.h, not gdb_string.h.
200 * common/common-utils.c: Use string.h, not gdb_string.h.
201 * common/filestuff.c: Use string.h, not gdb_string.h.
202 * common/linux-procfs.c: Use string.h, not gdb_string.h.
203 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
204 * common/signals.c: Use string.h, not gdb_string.h.
205 * common/vec.h: Use string.h, not gdb_string.h.
206 * core-regset.c: Use string.h, not gdb_string.h.
207 * corefile.c: Use string.h, not gdb_string.h.
208 * corelow.c: Use string.h, not gdb_string.h.
209 * cp-abi.c: Use string.h, not gdb_string.h.
210 * cp-support.c: Use string.h, not gdb_string.h.
211 * cp-valprint.c: Use string.h, not gdb_string.h.
212 * cris-tdep.c: Use string.h, not gdb_string.h.
213 * d-lang.c: Use string.h, not gdb_string.h.
214 * dbxread.c: Use string.h, not gdb_string.h.
215 * dcache.c: Use string.h, not gdb_string.h.
216 * demangle.c: Use string.h, not gdb_string.h.
217 * dicos-tdep.c: Use string.h, not gdb_string.h.
218 * disasm.c: Use string.h, not gdb_string.h.
219 * doublest.c: Use string.h, not gdb_string.h.
220 * dsrec.c: Use string.h, not gdb_string.h.
221 * dummy-frame.c: Use string.h, not gdb_string.h.
222 * dwarf2-frame.c: Use string.h, not gdb_string.h.
223 * dwarf2loc.c: Use string.h, not gdb_string.h.
224 * dwarf2read.c: Use string.h, not gdb_string.h.
225 * elfread.c: Use string.h, not gdb_string.h.
226 * environ.c: Use string.h, not gdb_string.h.
227 * eval.c: Use string.h, not gdb_string.h.
228 * event-loop.c: Use string.h, not gdb_string.h.
229 * exceptions.c: Use string.h, not gdb_string.h.
230 * exec.c: Use string.h, not gdb_string.h.
231 * expprint.c: Use string.h, not gdb_string.h.
232 * f-exp.y: Use string.h, not gdb_string.h.
233 * f-lang.c: Use string.h, not gdb_string.h.
234 * f-typeprint.c: Use string.h, not gdb_string.h.
235 * f-valprint.c: Use string.h, not gdb_string.h.
236 * fbsd-nat.c: Use string.h, not gdb_string.h.
237 * findcmd.c: Use string.h, not gdb_string.h.
238 * findvar.c: Use string.h, not gdb_string.h.
239 * fork-child.c: Use string.h, not gdb_string.h.
240 * frame.c: Use string.h, not gdb_string.h.
241 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
242 * frv-tdep.c: Use string.h, not gdb_string.h.
243 * gdb.c: Use string.h, not gdb_string.h.
244 * gdb_bfd.c: Use string.h, not gdb_string.h.
245 * gdbarch.c: Use string.h, not gdb_string.h.
246 * gdbtypes.c: Use string.h, not gdb_string.h.
247 * gnu-nat.c: Use string.h, not gdb_string.h.
248 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
249 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
250 * go-exp.y: Use string.h, not gdb_string.h.
251 * go-lang.c: Use string.h, not gdb_string.h.
252 * go32-nat.c: Use string.h, not gdb_string.h.
253 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
254 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
255 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
256 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
257 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
258 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
259 * i386-linux-nat.c: Use string.h, not gdb_string.h.
260 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
261 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
262 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
263 * i386-tdep.c: Use string.h, not gdb_string.h.
264 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
265 * i386gnu-nat.c: Use string.h, not gdb_string.h.
266 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
267 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
268 * i387-tdep.c: Use string.h, not gdb_string.h.
269 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
270 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
271 * inf-child.c: Use string.h, not gdb_string.h.
272 * inf-ptrace.c: Use string.h, not gdb_string.h.
273 * inf-ttrace.c: Use string.h, not gdb_string.h.
274 * infcall.c: Use string.h, not gdb_string.h.
275 * infcmd.c: Use string.h, not gdb_string.h.
276 * inflow.c: Use string.h, not gdb_string.h.
277 * infrun.c: Use string.h, not gdb_string.h.
278 * interps.c: Use string.h, not gdb_string.h.
279 * iq2000-tdep.c: Use string.h, not gdb_string.h.
280 * irix5-nat.c: Use string.h, not gdb_string.h.
281 * jv-exp.y: Use string.h, not gdb_string.h.
282 * jv-lang.c: Use string.h, not gdb_string.h.
283 * jv-typeprint.c: Use string.h, not gdb_string.h.
284 * jv-valprint.c: Use string.h, not gdb_string.h.
285 * language.c: Use string.h, not gdb_string.h.
286 * linux-fork.c: Use string.h, not gdb_string.h.
287 * linux-nat.c: Use string.h, not gdb_string.h.
288 * lm32-tdep.c: Use string.h, not gdb_string.h.
289 * m2-exp.y: Use string.h, not gdb_string.h.
290 * m2-typeprint.c: Use string.h, not gdb_string.h.
291 * m32c-tdep.c: Use string.h, not gdb_string.h.
292 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
293 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
294 * m32r-rom.c: Use string.h, not gdb_string.h.
295 * m32r-tdep.c: Use string.h, not gdb_string.h.
296 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
297 * m68k-tdep.c: Use string.h, not gdb_string.h.
298 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
299 * m68klinux-nat.c: Use string.h, not gdb_string.h.
300 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
301 * m88k-tdep.c: Use string.h, not gdb_string.h.
302 * macrocmd.c: Use string.h, not gdb_string.h.
303 * main.c: Use string.h, not gdb_string.h.
304 * mdebugread.c: Use string.h, not gdb_string.h.
305 * mem-break.c: Use string.h, not gdb_string.h.
306 * memattr.c: Use string.h, not gdb_string.h.
307 * memory-map.c: Use string.h, not gdb_string.h.
308 * mep-tdep.c: Use string.h, not gdb_string.h.
309 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
310 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
311 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
312 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
313 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
314 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
315 * mi/mi-console.c: Use string.h, not gdb_string.h.
316 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
317 * mi/mi-interp.c: Use string.h, not gdb_string.h.
318 * mi/mi-main.c: Use string.h, not gdb_string.h.
319 * mi/mi-parse.c: Use string.h, not gdb_string.h.
320 * microblaze-rom.c: Use string.h, not gdb_string.h.
321 * microblaze-tdep.c: Use string.h, not gdb_string.h.
322 * mingw-hdep.c: Use string.h, not gdb_string.h.
323 * minidebug.c: Use string.h, not gdb_string.h.
324 * minsyms.c: Use string.h, not gdb_string.h.
325 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
326 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
327 * mips-tdep.c: Use string.h, not gdb_string.h.
328 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
329 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
330 * mipsread.c: Use string.h, not gdb_string.h.
331 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
332 * mn10300-tdep.c: Use string.h, not gdb_string.h.
333 * monitor.c: Use string.h, not gdb_string.h.
334 * moxie-tdep.c: Use string.h, not gdb_string.h.
335 * mt-tdep.c: Use string.h, not gdb_string.h.
336 * nbsd-tdep.c: Use string.h, not gdb_string.h.
337 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
338 * nto-procfs.c: Use string.h, not gdb_string.h.
339 * nto-tdep.c: Use string.h, not gdb_string.h.
340 * objc-lang.c: Use string.h, not gdb_string.h.
341 * objfiles.c: Use string.h, not gdb_string.h.
342 * opencl-lang.c: Use string.h, not gdb_string.h.
343 * osabi.c: Use string.h, not gdb_string.h.
344 * osdata.c: Use string.h, not gdb_string.h.
345 * p-exp.y: Use string.h, not gdb_string.h.
346 * p-lang.c: Use string.h, not gdb_string.h.
347 * p-typeprint.c: Use string.h, not gdb_string.h.
348 * parse.c: Use string.h, not gdb_string.h.
349 * posix-hdep.c: Use string.h, not gdb_string.h.
350 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
351 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
352 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
353 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
354 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
355 * printcmd.c: Use string.h, not gdb_string.h.
356 * procfs.c: Use string.h, not gdb_string.h.
357 * prologue-value.c: Use string.h, not gdb_string.h.
358 * python/py-auto-load.c: Use string.h, not gdb_string.h.
359 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
360 * ravenscar-thread.c: Use string.h, not gdb_string.h.
361 * regcache.c: Use string.h, not gdb_string.h.
362 * registry.c: Use string.h, not gdb_string.h.
363 * remote-fileio.c: Use string.h, not gdb_string.h.
364 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
365 * remote-mips.c: Use string.h, not gdb_string.h.
366 * remote-sim.c: Use string.h, not gdb_string.h.
367 * remote.c: Use string.h, not gdb_string.h.
368 * reverse.c: Use string.h, not gdb_string.h.
369 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
370 * ser-base.c: Use string.h, not gdb_string.h.
371 * ser-go32.c: Use string.h, not gdb_string.h.
372 * ser-mingw.c: Use string.h, not gdb_string.h.
373 * ser-pipe.c: Use string.h, not gdb_string.h.
374 * ser-tcp.c: Use string.h, not gdb_string.h.
375 * ser-unix.c: Use string.h, not gdb_string.h.
376 * serial.c: Use string.h, not gdb_string.h.
377 * sh-tdep.c: Use string.h, not gdb_string.h.
378 * sh64-tdep.c: Use string.h, not gdb_string.h.
379 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
380 * skip.c: Use string.h, not gdb_string.h.
381 * sol-thread.c: Use string.h, not gdb_string.h.
382 * solib-dsbt.c: Use string.h, not gdb_string.h.
383 * solib-frv.c: Use string.h, not gdb_string.h.
384 * solib-osf.c: Use string.h, not gdb_string.h.
385 * solib-spu.c: Use string.h, not gdb_string.h.
386 * solib-target.c: Use string.h, not gdb_string.h.
387 * solib.c: Use string.h, not gdb_string.h.
388 * somread.c: Use string.h, not gdb_string.h.
389 * source.c: Use string.h, not gdb_string.h.
390 * sparc-nat.c: Use string.h, not gdb_string.h.
391 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
392 * sparc-tdep.c: Use string.h, not gdb_string.h.
393 * sparc64-tdep.c: Use string.h, not gdb_string.h.
394 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
395 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
396 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
397 * spu-linux-nat.c: Use string.h, not gdb_string.h.
398 * spu-multiarch.c: Use string.h, not gdb_string.h.
399 * spu-tdep.c: Use string.h, not gdb_string.h.
400 * stabsread.c: Use string.h, not gdb_string.h.
401 * stack.c: Use string.h, not gdb_string.h.
402 * std-regs.c: Use string.h, not gdb_string.h.
403 * symfile.c: Use string.h, not gdb_string.h.
404 * symmisc.c: Use string.h, not gdb_string.h.
405 * symtab.c: Use string.h, not gdb_string.h.
406 * target.c: Use string.h, not gdb_string.h.
407 * thread.c: Use string.h, not gdb_string.h.
408 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
409 * tilegx-tdep.c: Use string.h, not gdb_string.h.
410 * top.c: Use string.h, not gdb_string.h.
411 * tracepoint.c: Use string.h, not gdb_string.h.
412 * tui/tui-command.c: Use string.h, not gdb_string.h.
413 * tui/tui-data.c: Use string.h, not gdb_string.h.
414 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
415 * tui/tui-file.c: Use string.h, not gdb_string.h.
416 * tui/tui-layout.c: Use string.h, not gdb_string.h.
417 * tui/tui-out.c: Use string.h, not gdb_string.h.
418 * tui/tui-regs.c: Use string.h, not gdb_string.h.
419 * tui/tui-source.c: Use string.h, not gdb_string.h.
420 * tui/tui-stack.c: Use string.h, not gdb_string.h.
421 * tui/tui-win.c: Use string.h, not gdb_string.h.
422 * tui/tui-windata.c: Use string.h, not gdb_string.h.
423 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
424 * typeprint.c: Use string.h, not gdb_string.h.
425 * ui-file.c: Use string.h, not gdb_string.h.
426 * ui-out.c: Use string.h, not gdb_string.h.
427 * user-regs.c: Use string.h, not gdb_string.h.
428 * utils.c: Use string.h, not gdb_string.h.
429 * v850-tdep.c: Use string.h, not gdb_string.h.
430 * valarith.c: Use string.h, not gdb_string.h.
431 * valops.c: Use string.h, not gdb_string.h.
432 * valprint.c: Use string.h, not gdb_string.h.
433 * value.c: Use string.h, not gdb_string.h.
434 * varobj.c: Use string.h, not gdb_string.h.
435 * vax-tdep.c: Use string.h, not gdb_string.h.
436 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
437 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
438 * windows-nat.c: Use string.h, not gdb_string.h.
439 * xcoffread.c: Use string.h, not gdb_string.h.
440 * xml-support.c: Use string.h, not gdb_string.h.
441 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
442 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
443
444 2013-11-18 Tom Tromey <tromey@redhat.com>
445
446 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
447 and strstr.
448 * gnulib/aclocal.m4: Update.
449 * gnulib/config.in: Update.
450 * gnulib/configure: Update.
451 * gnulib/import/Makefile.am: Update.
452 * gnulib/import/Makefile.in: Update.
453 * gnulib/import/errno.in.h: New.
454 * gnulib/import/intprops.h: New.
455 * gnulib/import/m4/errno_h.m4: New.
456 * gnulib/import/m4/gnulib-cache.m4: Update.
457 * gnulib/import/m4/gnulib-comp.m4: Update.
458 * gnulib/import/m4/strerror.m4: New.
459 * gnulib/import/m4/strstr.m4: New.
460 * gnulib/import/m4/sys_socket_h.m4: New.
461 * gnulib/import/strerror-override.c: New.
462 * gnulib/import/strerror-override.h: New.
463 * gnulib/import/strerror.c: New.
464 * gnulib/import/strstr.c: New.
465
466 2013-11-18 Tom Tromey <tromey@redhat.com>
467
468 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
469 multiple lines.
470
471 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
472
473 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
474 * sparc-tdep.h: And its prototype.
475
476 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
477 function.
478 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
479
480 2013-11-18 Pedro Alves <palves@redhat.com>
481
482 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
483 use unpack_pointer.
484
485 2013-11-18 Joel Brobecker <brobecker@adacore.com>
486
487 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
488 to -list-features output.
489
490 2013-11-17 Joel Brobecker <brobecker@adacore.com>
491
492 * dwarf2expr.h (struct dwarf_expr_context_funcs)
493 <read_addr_from_reg>: Renames "read_reg".
494 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
495 Adjust comment.
496 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
497 Use read_addr_from_reg in place of read_reg.
498 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
499 in place of read_reg.
500 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
501 dwarf_expr_read_reg.
502 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
503 with dwarf_expr_read_addr_from_reg.
504 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
505 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
506 needs_frame_read_addr_from_reg.
507
508 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
509
510 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
511
512 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
513
514 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
515 NULL.
516
517 2013-11-15 Tom Tromey <tromey@redhat.com>
518
519 PR c++/16117:
520 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
521 (classify_name): Likewise. Prefer a field of "this" over a
522 filename.
523 (classify_inner_name, yylex): Update.
524
525 2013-11-15 Joel Brobecker <brobecker@adacore.com>
526
527 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
528 Extend the documentation a bit.
529 <get_reg_value>: New field.
530 * dwarf2loc.c (dwarf_expr_get_reg_value)
531 (needs_frame_get_reg_value): New functions.
532 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
533 callback.
534 * dwarf2-frame.c (get_reg_value): New function.
535 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
536 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
537 Use new callback to compute result_val.
538
539 2013-11-15 Alan Modra <amodra@gmail.com>
540
541 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
542 (ppc64_desc_entry_point): ..this. Update comments here and at
543 call points.
544 (ppc64_standard_linkage1, ppc64_standard_linkage2,
545 ppc64_standard_linkage3): Update comments.
546 (ppc64_standard_linkage4, ppc64_standard_linkage5,
547 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
548 patterns.
549 (ppc64_standard_linkage4_target): New function.
550 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
551 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
552 nop match. Fix comment wrap.
553
554 2013-11-14 Pedro Alves <palves@redhat.com>
555
556 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
557 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
558
559 2013-11-14 Pedro Alves <palves@redhat.com>
560
561 * infrun.c (struct execution_control_state)
562 <stepped_after_stopped_by_watchpoint>: New field.
563 (get_inferior_stop_soon): New function.
564 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
565 moved to struct execution_control_state -- adjust. Use
566 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
567 new function.
568 (handle_signal_stop): New function, factored out from
569 handle_inferior_event.
570
571 2013-11-14 Pedro Alves <palves@redhat.com>
572
573 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
574 return a boolean.
575 * breakpoint.c (bpstat_explains_signal): Adjust to return a
576 boolean.
577 (explains_signal_watchpoint, base_breakpoint_explains_signal):
578 Adjust to return a boolean.
579 * breakpoint.h (enum bpstat_signal_value): Delete.
580 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
581 (bpstat_explains_signal): Likewise.
582 * infrun.c (handle_inferior_event) <random signal checks>:
583 bpstat_explains_signal now returns a boolean - adjust. No longer
584 consider hiding signals.
585
586 2013-11-14 Pedro Alves <palves@redhat.com>
587
588 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
589 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
590 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
591 BPSTAT_SIGNAL_HIDE.
592 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
593 instead of BPSTAT_SIGNAL_HIDE.
594 * infrun.c (handle_inferior_event): Rework random signal checks.
595
596 2013-11-14 Pedro Alves <palves@redhat.com>
597
598 * infrun.c (struct execution_control_state): Remove
599 'random_signal' field.
600 (handle_syscall_event): Use bpstat_causes_stop instead of
601 bpstat_explains_signal. Don't set ecs->random_signal.
602 (handle_inferior_event): New 'random_signal' local.
603 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
604 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
605 bpstat_explains_signal. Don't set ecs->random_signal.
606 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
607 ecs->random_signal.
608
609 2013-11-14 Pedro Alves <palves@redhat.com>
610
611 * infrun.c (handle_inferior_event): Move comment from the
612 function's body to the function's description, adjusted.
613
614 2013-11-14 Pedro Alves <palves@redhat.com>
615
616 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
617 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
618 Assert we never fall through out of the TARGET_WAITKIND_LOADED
619 case.
620
621 2013-11-14 Tom Tromey <tromey@redhat.com>
622
623 * python/py-linetable.c (ltpy_has_line)
624 (ltpy_get_all_source_lines): Fix loop termination condition.
625
626 2013-11-14 Joel Brobecker <brobecker@adacore.com>
627
628 * mi/mi-parse.h (struct mi_parse) <language>: New field.
629 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
630 PARSE->LANGUAGE during command execution, if set.
631 * mi/mi-parse.c: Add "language.h" #include.
632 (mi_parse): Add parsing of "--language" command option.
633
634 * NEWS: Add entry mentioning the new "--language" command option.
635
636 2013-11-14 Pedro Alves <palves@redhat.com>
637 Joel Brobecker <brobecker@adacore.com>
638
639 * cli/cli-utils.h (extract_arg_const): Add declaration.
640 * cli/cli-utils.c (extract_arg_const): New function.
641 (extract_arg): Reimplement using extract_arg_const.
642
643 2013-11-14 Joel Brobecker <brobecker@adacore.com>
644
645 * language.h: Add "symtab.h" #include.
646
647 2013-11-13 Doug Evans <xdje42@gmail.com>
648
649 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
650 specific breakpoints, don't evaluate breakpoint condition if
651 different thread.
652
653 2013-11-13 Keith Seitz <keiths@redhat.com>
654
655 PR c++/7935
656 PR c++/10541
657 * cp-support.c (insepct_type): Add support for substituting
658 namespace aliases, too.
659 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
660 for DW_TAG_imported_declaration.
661 (add_partial_symbol): Likewise.
662 (process_die): Handle namespace aliases with
663 read_namespace_alias.
664 (die_needs_namespace): Add DW_TAG_imported_declaration.
665 (read_namespace_alias): New function.
666 (load_partial_dies): Load DW_TAG_imported_declaration, too.
667 (new_symbol_full): Handle DW_TAG_imported_declaration.
668
669 2013-11-13 Keith Seitz <keiths@redhat.com>
670
671 * p-exp.y (uptok): Make first parameter const.
672 (yylex): Make `tokstart' and `tokptr' const.
673 Don't copy the lexer input to a temporary buffer.
674 Make `p' const.
675 Remove const workaround for parse_escape.
676 Create a temporary buffer for a convenience variable instead
677 of doing in-place modification of the input.
678 If a match is found with a different case from the input,
679 do not change the input at all.
680 Use `tmp' to construct the resultant stoken instead of
681 `tokstart'.
682
683 2013-11-13 Doug Evans <xdje42@gmail.com>
684
685 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
686
687 2013-11-13 Joel Brobecker <brobecker@adacore.com>
688
689 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
690 entry with "ada-exceptions".
691
692 2013-11-13 Joel Brobecker <brobecker@adacore.com>
693
694 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
695 after re-initialization of OBJFILE's obstack.
696
697 2013-11-12 Doug Evans <xdje42@gmail.com>
698
699 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
700 bs->stop != 0 on entry. Update function comment. Simplify early
701 exit for frame mismatch. Reindent rest of function.
702
703 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
704
705 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
706 NULL.
707
708 2013-11-12 Doug Evans <dje@google.com>
709
710 Work around gold/15646.
711 * dwarf2read.c (read_index_from_section): Update comment.
712 (struct dw2_symtab_iterator): New member global_seen.
713 (dw2_symtab_iter_init): Initialize it.
714 (dw2_symtab_iter_next): Skip duplicate global symbols.
715 (dw2_expand_symtabs_matching): Ditto.
716
717 2013-11-12 Joel Brobecker <brobecker@adacore.com>
718
719 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
720 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
721 command.
722 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
723 (mi_cmd_info_ada_exceptions): New function.
724 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
725
726 2013-11-12 Joel Brobecker <brobecker@adacore.com>
727
728 * ada-lang.h: #include "vec.h".
729 (struct ada_exc_info): New.
730 (ada_exc_info): New typedef.
731 (DEF_VEC_O(ada_exc_info)): New vector.
732 (ada_exceptions_list): Add declaration.
733 * ada-lang.c (ada_is_exception_sym)
734 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
735 (sort_remove_dups_ada_exceptions_list)
736 (ada_exc_search_name_matches, ada_add_standard_exceptions)
737 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
738 (ada_exceptions_list_1, ada_exceptions_list)
739 (info_exceptions_command): New function.
740 (_initialize_ada_language): Add "info exception" command.
741
742 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
743
744 PR python/15629
745 * NEWS: Add linetable feature.
746 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
747 * python/py-linetable.c: New file.
748 * python/py-symtab.c (stpy_get_linetable): New function.
749 * python/python-internal.h (symtab_to_linetable_object): Declare.
750 (gdbpy_initialize_linetable): Ditto.
751 * python/python.c (_initialize_python): Call
752 gdbpy_initialize_linetable.
753
754 2013-11-11 Joel Brobecker <brobecker@adacore.com>
755
756 * ada-lang.c (create_ada_exception_catchpoint): Enhance
757 the documentation of fields "except_string" and "condition".
758 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
759 CONDITION on the heap before passing it to
760 create_ada_exception_catchpoint.
761 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
762 CONDITION.
763
764 2013-11-11 Tom Tromey <tromey@redhat.com>
765
766 * config.in, configure: Rebuild.
767 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
768
769 2013-11-11 Joel Brobecker <brobecker@adacore.com>
770
771 * remote-sim.c (gdbsim_detach): Break declaration into
772 shorter lines. No code change.
773
774 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
775
776 * remote-sim.c (gdbsim_detach): Fix prototype.
777
778 2013-11-08 Doug Evans <dje@google.com>
779
780 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
781 (create_debug_types_hash_table): Only print debugging messages for
782 each TU if dwarf2-read >= 2.
783 (process_queue): Ditto.
784 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
785 Update doc string.
786
787 2013-11-08 Tom Tromey <tromey@redhat.com>
788
789 * configure: Rebuild.
790 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
791
792 2013-11-08 Tom Tromey <tromey@redhat.com>
793
794 * configure, config.in: Rebuild.
795 * configure.ac: Remove unused configury.
796
797 2013-11-08 Tom Tromey <tromey@redhat.com>
798
799 * m32c-tdep.c: Use gdb_string.h.
800
801 2013-11-08 Tom Tromey <tromey@redhat.com>
802
803 * configure, config.in: Rebuild.
804 * configure.ac: Remove all link.h-related checks.
805
806 2013-11-08 Tom Tromey <tromey@redhat.com>
807
808 * acinclude.m4: Include common.m4.
809 * common/common.m4: New file.
810 * configure, config.in: Rebuild.
811 * configure.ac: Use GDB_AC_COMMON.
812
813 2013-11-08 Doug Evans <dje@google.com>
814
815 * NEWS: Mention that "set debug symtab-create" now accepts a
816 verbosity level.
817 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
818 to set the symtab's primary flag.
819 * jit.c (finalize_symtab): Ditto.
820 * mdebugread.c (psymtab_to_symtab_1): Ditto.
821 * symfile.c (allocate_symtab): Only print debugging messages for
822 symtab_create_debug levels 2 and higher.
823 * symtab.c (symtab_create_debug): Change type to unsigned int.
824 (set_symtab_primary): New function.
825 (_initialize_symtab): Change "set debug symtab-create" to a
826 zuinteger option.
827 * symtab.h (set_symtab_primary): Declare.
828 (symtab_create_debug): Update decl.
829
830 2013-11-08 Tom Tromey <tromey@redhat.com>
831
832 * aix-thread.c (aix_thread_detach): Update.
833 * corelow.c (core_detach): Update.
834 * darwin-nat.c (darwin_detach): Update.
835 * dec-thread.c (dec_thread_detach): Update.
836 * gnu-nat.c (gnu_detach): Update.
837 * go32-nat.c (go32_detach): Update.
838 * inf-ptrace.c (inf_ptrace_detach): Update.
839 * inf-ttrace.c (inf_ttrace_detach): Update.
840 * linux-fork.c (linux_fork_detach): Update.
841 * linux-fork.h (linux_fork_detach): Update.
842 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
843 local for const-correctness.
844 * linux-thread-db.c (thread_db_detach): Update.
845 * monitor.c (monitor_detach): Update.
846 * nto-procfs.c (procfs_detach): Update.
847 * procfs.c (procfs_detach): Update.
848 * record.c (record_detach): Update.
849 * record.h (record_detach): Update.
850 * remote-m32r-sdi.c (m32r_detach): Update.
851 * remote-mips.c (mips_detach): Update.
852 * remote-sim.c (gdbsim_detach): Update.
853 * remote.c (remote_detach_1, remote_detach)
854 (extended_remote_detach): Update.
855 * sol-thread.c (sol_thread_detach): Update.
856 * target.c (target_detach): Make "args" const.
857 (init_dummy_target): Update.
858 * target.h (struct target_ops) <to_detach>: Make argument const.
859 (target_detach): Likewise.
860 * windows-nat.c (windows_detach): Update.
861
862 2013-11-07 Doug Evans <dje@google.com>
863
864 PR 11786
865 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
866 and align fields for PT_GNU_RELRO segments.
867
868 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
869
870 PR python/15747
871 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
872
873 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
874
875 * NEWS: Document Python temporary breakpoint support.
876 * python/py-breakpoint.c (bppy_get_temporary): New function.
877 (bppy_init): New keyword: temporary. Parse it and set breakpoint
878 to temporary if True.
879
880 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
881
882 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
883 removed to allow analyzing unconditional branch instructions
884 with PC-relative offsets of zero.
885
886 2013-11-07 Yao Qi <yao@codesourcery.com>
887
888 * mi/mi-cmd-var.c: Include "language.h".
889 (mi_cmd_var_info_expression): Get language name from
890 language_defn.
891 * varobj.c (varobj_language_string): Remove.
892 (variable_language): Remove declaration.
893 (languages): Remove.
894 (varobj_get_language): Change the type of return value.
895 (variable_language): Remove.
896 * varobj.h (enum varobj_languages): Remove.
897 (varobj_language_string): Remove declaration.
898 (varobj_get_language): Update declaration.
899
900 2013-11-07 Yao Qi <yao@codesourcery.com>
901
902 * language.h (struct language_defn) <la_natural_name>: New
903 field.
904 * ada-lang.c (ada_language_defn): Initialize field
905 'la_natural_name'.
906 * c-lang.c (c_language_defn): Likewise.
907 (cplus_language_defn, asm_language_defn): Likewise.
908 * d-lang.c (d_language_defn): Likewise.
909 * f-lang.c (f_language_defn): Likewise.
910 * go-lang.c (go_language_defn): Likewise.
911 * jv-lang.c (java_language_defn): Likewise.
912 * language.c (unknown_language_defn ): Likewise.
913 (auto_language_defn): Likewise.
914 * m2-lang.c (m2_language_defn): Likewise.
915 * objc-lang.c (objc_language_defn): Likewise.
916 * opencl-lang.c (opencl_language_defn): Likewise.
917 * p-lang.c (pascal_language_defn): Likewise.
918
919 2013-11-07 Yao Qi <yao@codesourcery.com>
920
921 * language.c (language_str): Return const char *.
922 (add_language): Add const to 'language_names'
923 * language.h (struct language_defn) <la_name>: Add const.
924 (language_str: Update declaration.
925
926 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
927
928 * s390-linux-nat.c (s390_read_description): Consider the TE field
929 in the HWCAP for determining 'have_regset_tdb'.
930
931 2013-11-06 Will Newton <will.newton@linaro.org>
932
933 PR gdb/12866
934 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
935 values. (read_partial_die): Likewise.
936
937 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
938
939 PR cli/16122
940 * top.c (command_line_input): Unify interactivity tests to use
941 input_from_terminal_p.
942 * event-top.c (command_line_handler): Likewise.
943
944 2013-11-06 Yao Qi <yao@codesourcery.com>
945
946 * Makefile.in (check-perf): New target.
947
948 2013-11-05 Will Newton <will.newton@linaro.org>
949
950 PR gdb/7670
951 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
952 (arm_print_float_info): Likewise.
953
954 2013-11-04 Anton Blanchard <anton@samba.org>
955
956 * target.c (memory_xfer_partial): Cap write to 4KB.
957
958 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
959
960 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
961 probe scan even when the arch provides no get_longjmp_target.
962
963 2013-10-31 Pedro Alves <palves@redhat.com>
964
965 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
966 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
967 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
968 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
969 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
970 <bpstat handling>: If the bpstat chain wants the signal to be
971 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
972 GDB_SIGNAL_TRAP.
973
974 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
975
976 * breakpoint.c (update_watchpoint): Update error message and add
977 an additional error message.
978
979 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
980
981 * s390-tdep.h: Rename to...
982 * s390-linux-tdep.h: ...here.
983 * s390-tdep.c: Rename to...
984 * s390-linux-tdep.c: ...here. Adjust #include.
985 * s390-nat.c: Rename to...
986 * s390-linux-nat.c: ...here. Adjust #include.
987 * config/s390/s390.mh: Rename to...
988 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
989 s390-linux-nat.o.
990 * configure.host: Reflect host rename "s390" -> "linux".
991 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
992 * Makefile.in (ALL_TARGET_OBS): Likewise.
993 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
994 s390-linux-tdep.h.
995 (ALLDEPFILES): Reflect rename of .c files.
996
997 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
998
999 * s390-nat.c: Whitespace cleanup.
1000 * s390-tdep.c: Likewise.
1001 * s390-tdep.h: Remove empty line at end of file.
1002
1003 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1004
1005 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1006 siginfo_size.
1007
1008 2013-10-29 Tom Tromey <tromey@redhat.com>
1009
1010 * utils.c (reg): Move undefinition...
1011 * gdb_curses.h: ... here. Update comment to mention AIX.
1012
1013 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1014
1015 * exec.h (add_target_sections_of_objfile): New declaration.
1016 * exec.c (add_target_sections_of_objfile): New function.
1017 * symfile.c (add_symbol_file_command): Update current target sections.
1018 (remove_symbol_file_command): New command.
1019 (symfile_free_objfile): New function.
1020 (_initialize_symfile): Register observer for free_objfile events.
1021 * NEWS: Add description of the remove-symbol-file command.
1022 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1023 * objfiles.c (free_objfile): Notify free_objfile.
1024 (is_addr_in_objfile): New function.
1025 * objfiles.h (is_addr_in_objfile): New declaration.
1026 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1027 events instead of solib_unloaded events.
1028 (_initialize_printcmd): Register observer for free_objfile instead
1029 of solib_unloaded notifications.
1030 * solib.c (remove_user_added_objfile): New function.
1031 (_initialize_symfile): Add remove-symbol-file.
1032
1033 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1034
1035 * infcmd.c (default_print_one_register_info): Use val_print to
1036 print all values even optimized out or unavailable ones. Don't
1037 try to print a raw form of optimized out or unavailable values.
1038
1039 2013-10-29 Yao Qi <yao@codesourcery.com>
1040
1041 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1042 parameter 'arg' instead of from program_space_data.
1043 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1044 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1045 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1046 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1047 * inflow.c (inflow_inferior_data_cleanup): Get data from
1048 parameter 'arg' instead of inferior_data.
1049 * registry.h: Add comments.
1050
1051 2013-10-28 Pedro Alves <palves@redhat.com>
1052
1053 * breakpoint.c (watchpoints_triggered)
1054 <!target_stopped_data_address>: Hardcode return 1.
1055
1056 2013-10-28 Pedro Alves <palves@redhat.com>
1057
1058 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1059 level and reindent.
1060
1061 2013-10-28 Pedro Alves <palves@redhat.com>
1062
1063 * infrun.c (process_event_stop_test): New function, factored out
1064 from handle_inferior_event.
1065 (handle_inferior_event): 'process_event_stop_test' is now a
1066 function instead of a goto label -- adjust.
1067
1068 2013-10-28 Pedro Alves <palves@redhat.com>
1069
1070 * infrun.c (handle_inferior_event): Move process_event_stop_test
1071 goto label to the else branch of the ecs->random_signal check,
1072 along with FRAME and GDBARCH re-fetching.
1073
1074 2013-10-28 Pedro Alves <palves@redhat.com>
1075
1076 * infrun.c (switch_back_to_stepped_thread): New function, factored
1077 out from handle_inferior_event.
1078 (handle_inferior_event): Adjust to call
1079 switch_back_to_stepped_thread. Call it also at the tail of the
1080 random signal handling, and return, instead of also handling
1081 random signals just before the stepping tests.
1082
1083 2013-10-28 Pedro Alves <palves@redhat.com>
1084
1085 * infrun.c (clear_stop_func): Delete.
1086 (handle_inferior_event): Don't call clear_stop_func and don't
1087 clear 'ecs->random_signal'.
1088
1089 2013-10-27 Yao Qi <yao@codesourcery.com>
1090
1091 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1092 (varobj_create, varobj_get_path_expr): Update.
1093 (varobj_value_has_mutated, varobj_update): Likewise.
1094 (create_child_with_value, new_root_variable): Likewise.
1095 (number_of_children, name_of_variable): Likewise.
1096 (value_of_child, my_value_of_variable): Likewise.
1097 (varobj_value_is_changeable_p): Likewise.
1098
1099 2013-10-25 Yao Qi <yao@codesourcery.com>
1100
1101 * language.h (struct lang_varobj_ops): Declare.
1102 (struct language_defn) <la_varobj_ops>: New field.
1103 * ada-lang.c: Include "varobj.h"
1104 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1105 ada_varobj_ops.
1106 * c-lang.c: Include "varobj.h"
1107 (c_language_defn): Initialize field 'la_varobj_ops' with
1108 c_varobj_ops.
1109 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1110 cplus_varobj_ops.
1111 (asm_language_defn): Initialize field 'la_varobj_ops' with
1112 default_varobj_ops.
1113 (minimal_language_defn): Likewise.
1114 * d-lang.c (d_language_defn): Likewise.
1115 * f-lang.c (f_language_defn): Likewise.
1116 * go-lang.c (go_language_defn): Likewise.
1117 * m2-lang.c (m2_language_defn): Likewise.
1118 * objc-lang.c (objc_language_defn): Likewise.
1119 * opencl-lang.c (opencl_language_defn): Likewise.
1120 * p-lang.c (pascal_language_defn): Likewise.
1121 * language.c (unknown_language_defn): Likewise.
1122 (auto_language_defn): Likewise.
1123 (local_language_defn): Likewise.
1124 * jv-lang.c (java_language_defn): Initialize field
1125 'la_varobj_ops' with java_varobj_ops.
1126 * varobj.c (varobj_create): Update.
1127 * varobj.h (default_varobj_ops): Define macro.
1128
1129 2013-10-25 Pedro Alves <palves@redhat.com>
1130
1131 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1132 static field value.
1133 (cp_print_static_field): If the value is entirely optimized out,
1134 print <optimized out> here.
1135 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1136 static field value.
1137 * p-valprint.c (pascal_object_print_static_field): If the value is
1138 entirely optimized out, print <optimized out> here.
1139 * valops.c (do_search_struct_field)
1140 (value_struct_elt_for_reference): No longer handle a NULL static
1141 field value.
1142 * value.c (value_static_field): Return an optimized out value
1143 instead of NULL.
1144
1145 2013-10-25 Yao Qi <yao@codesourcery.com>
1146
1147 * remote.c (remote_traceframe_info): Return early if
1148 traceframe is not selected.
1149
1150 2013-10-25 Yao Qi <yao@codesourcery.com>
1151
1152 * tracepoint.c (traceframe_fun): Remove.
1153 (traceframe_sal): Remove.
1154 (set_traceframe_context): Add local variables.
1155
1156 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1157
1158 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1159 and parameter name.
1160
1161 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1162
1163 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1164 failure from register information collection.
1165
1166 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1167
1168 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1169 member.
1170 (linux_corefile_thread_callback): Update accordingly.
1171 (linux_make_corefile_notes): Likewise.
1172
1173 2013-10-24 Pedro Alves <palves@redhat.com>
1174
1175 * NEWS (New options): Mention set/show startup-with-shell.
1176 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1177 instead of 3.
1178 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1179 startup-with-shell'.
1180 (show_startup_with_shell): New function.
1181 (_initialize_fork_child): Register the set/show startup-with-shell
1182 commands.
1183 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1184 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1185 * procfs.c (procfs_init_inferior): Remove comment.
1186 * infcmd.c (startup_with_shell): New global.
1187 * inferior.h (startup_with_shell): Declare global.
1188 (STARTUP_WITH_SHELL): Delete.
1189 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1190
1191 2013-10-23 Pedro Alves <palves@redhat.com>
1192
1193 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1194 * common/signals.c: Include "gdb_assert.h".
1195 (signals): New field 'symbol'.
1196 (SET): Use the 'symbol' parameter.
1197 (gdb_signal_to_symbol_string): New function.
1198 * infrun.c (handle_inferior_event) <random signal>: In debug
1199 output, print the random signal enum as string in addition to its
1200 number.
1201 * target/waitstatus.c (target_waitstatus_to_string): Print the
1202 signal's enum value as string instead of the (POSIX) signal name.
1203
1204 2013-10-23 Gary Benson <gbenson@redhat.com>
1205
1206 PR 16013
1207 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1208 from 32 to 18. Adjusted fscanf format string accordingly.
1209 (Avoids leaving cmd unterminated.)
1210 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1211 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1212 that local_address and remote_address will not overflow.
1213 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1214 leaving dependencies unterminated. Parse size as "%u" to match
1215 definition.
1216
1217 2013-10-22 Pedro Alves <palves@redhat.com>
1218
1219 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1220 set ecs->random signal.
1221
1222 2013-10-22 Pedro Alves <palves@redhat.com>
1223
1224 * infrun.c (keep_going): Update comments.
1225
1226 2013-10-22 Pedro Alves <palves@redhat.com>
1227
1228 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1229 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1230
1231 2013-10-22 Pedro Alves <palves@redhat.com>
1232
1233 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1234 GDB_EXC_BAD_ACCESS.
1235 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1236 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1237 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1238 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1239 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1240 (GDB_SIGNAL_LAST): Change description string.
1241 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1242 Adjust to signal renaming.
1243 * darwin-nat.c (darwin_decode_message): Likewise.
1244
1245 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1246
1247 * MAINTAINERS (Write After Approval): Add myself to the list.
1248
1249 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1250
1251 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1252 forced off, downgrade them to software watchpoints if possible,
1253 and error out if not possible.
1254 (watch_command_1): Move watchpoint type selection closer to
1255 watchpoint creation, and extend the comments.
1256
1257 2013-10-18 Pedro Alves <palves@redhat.com>
1258
1259 PR gdb/16062
1260 * infrun.c (handle_inferior_event): Keep going if we got a random
1261 signal we should not stop for, instead of falling through to the
1262 step tests.
1263
1264 2013-10-18 Yao Qi <yao@codesourcery.com>
1265
1266 * c-varobj.c (cplus_number_of_children): Fix indentation.
1267
1268 2013-10-17 Tom Tromey <tromey@redhat.com>
1269
1270 PR gdb/15995:
1271 * printcmd.c (printcmd): Call gdb_flush.
1272
1273 2013-10-17 Tom Tromey <tromey@redhat.com>
1274
1275 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1276 (elf_locate_sections): Update.
1277
1278 2013-10-17 Yao Qi <yao@codesourcery.com>
1279
1280 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1281 * ada-varobj.c: Remove the include of ada-varobj.h.
1282 (ada_varobj_get_number_of_children): Declare.
1283 (ada_varobj_get_name_of_child): Make it static.
1284 (ada_varobj_get_path_expr_of_child): Likewise.
1285 (ada_varobj_get_value_of_child): Likewise.
1286 (ada_varobj_get_type_of_child): Likewise.
1287 (ada_varobj_get_value_of_array_variable): Likewise.
1288 * ada-varobj.h: Remove.
1289
1290 2013-10-17 Yao Qi <yao@codesourcery.com>
1291
1292 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1293 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1294 * ada-varobj.c: Include "varobj.h".
1295 (ada_number_of_children): New. Moved from varobj.c.
1296 (ada_name_of_variable, ada_name_of_child): Likewise.
1297 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1298 (ada_type_of_child, ada_value_of_variable): Likewise.
1299 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1300 (ada_varobj_ops): New.
1301 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1302 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1303 * gdbtypes.h (get_target_type): Declare.
1304 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1305 "ada-lang.h".
1306 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1307 (ANONYMOUS_UNION_NAME): Likewise.
1308 (get_type, get_value_type, get_target_type): Remove declarations.
1309 (value_get_print_value, varobj_value_get_print_value): Likewise.
1310 (c_number_of_children, c_name_of_variable): Likewise.
1311 (c_name_of_child, c_path_expr_of_child): Likewise.
1312 (c_value_of_child, c_type_of_child): Likewise.
1313 (c_value_of_variable, cplus_number_of_children): Likewise.
1314 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1315 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1316 (cplus_value_of_child, cplus_type_of_child): Likewise.
1317 (cplus_value_of_variable, java_number_of_children): Likewise.
1318 (java_name_of_variable, java_name_of_child): Likewise.
1319 (java_path_expr_of_child, java_value_of_child): Likewise.
1320 (java_type_of_child, java_value_of_variable): Likewise.
1321 (ada_number_of_children, ada_name_of_variable): Likewise.
1322 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1323 (ada_value_of_child, ada_type_of_child): Likewise.
1324 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1325 (ada_value_has_mutated): Likewise.
1326 (struct language_specific): Move it to varobj.h.
1327 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1328 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1329 Callers update.
1330 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1331 Make it extern.
1332 (is_anonymous_child): Move it to c-varobj.c and rename to
1333 varobj_is_anonymous_child. Caller update.
1334 (get_type): Move it to c-varobj.c.
1335 (get_value_type): Rename it varobj_get_value_type. Make it
1336 extern.
1337 (get_target_type): Move it gdbtypes.c.
1338 (varobj_formatted_print_options): New function.
1339 (value_get_print_value): Rename it to
1340 varobj_value_get_print_value and make it extern.
1341 (varobj_value_is_changeable_p): Make it extern.
1342 (adjust_value_for_child_access): Move it to c-varobj.c.
1343 (default_value_is_changeable_p): Rename it to
1344 varobj_default_value_is_changeable_p. Make it extern.
1345 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1346 (c_name_of_child, c_path_expr_of_child): Likewise.
1347 (c_value_of_child, c_type_of_child): Likewise.
1348 (c_value_of_variable, cplus_number_of_children): Likewise.
1349 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1350 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1351 (cplus_value_of_child, cplus_type_of_child): Likewise.
1352 (cplus_value_of_variable): Likewise.
1353 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1354 (java_name_of_child, java_path_expr_of_child): Likewise.
1355 (java_value_of_child, java_type_of_child): Likewise.
1356 (java_value_of_variable): Likewise.
1357 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1358 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1359 (ada_value_of_child, ada_type_of_child): Likewise.
1360 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1361 (ada_value_has_mutated): Likewise.
1362 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1363 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1364 (c_varobj_ops, cplus_varobj_ops): Declare.
1365 (java_varobj_ops, ada_varobj_ops): Declare.
1366 (varobj_default_value_is_changeable_p): Declare.
1367 (varobj_value_is_changeable_p): Declare.
1368 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1369 (varobj_get_path_expr_parent): Declare.
1370 (varobj_value_get_print_value): Declare.
1371 (varobj_formatted_print_options): Declare.
1372 (varobj_restrict_range): Declare.
1373
1374 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1375
1376 * target/waitstatus.h (target_waitkind): Remove spurious
1377 character from the comments.
1378
1379 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1380
1381 * gdbarch.sh (get_longjmp_target): Add method documentation.
1382 * gdbarch.h: Regenerate.
1383
1384 2013-10-16 Tom Tromey <tromey@redhat.com>
1385
1386 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1387 label.
1388
1389 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1390
1391 * gcore.in: Call GDB using the full path to the gcore script.
1392 Error out if the GDB binary is not found.
1393
1394 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1395
1396 PR gdb/16014
1397 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1398 sizeof.
1399
1400 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1401
1402 PR gdb/16042
1403 * target.c (target_disable_btrace): Fix invalid return value for
1404 void function.
1405 (target_teardown_btrace): Likewise.
1406
1407 2013-10-14 Yao Qi <yao@codesourcery.com>
1408
1409 * varobj.c (struct varobj): Move most of the fields to
1410 varobj.h.
1411 (struct varobj_dynamic): New struct.
1412 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1413 (varobj_has_more): Likewise.
1414 (dynamic_varobj_has_child_method): Likewise.
1415 (update_dynamic_varobj_children): Likewise.
1416 (varobj_get_num_children): Likewise.
1417 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1418 (install_new_value_visualizer): Likewise.
1419 (install_new_value_visualizer, install_new_value): Likewise.
1420 (varobj_update, new_variable, free_variable): Likewise.
1421 (my_value_of_variable, value_get_print_value): Likewise.
1422 (install_visualizer): Change the type of parameter 'var' to
1423 'struct varobjd_dynamic *'. Callers update.
1424 * varobj.h (struct varobj): Moved from varobj.c.
1425 (struct varobj) <dynamic>: New field.
1426
1427 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1428
1429 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1430 as the preferred name of r30.
1431 * nios2-linux-tdep.c (reg_offsets): Likewise.
1432 * features/nios2-cpu.xml: Likewise.
1433 * features/nios2-linux.c: Regenerated.
1434 * features/nios2.c: Regenerated.
1435 * regformats/nios2-linux.dat: Regenerated.
1436
1437 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 Canonicalize directories for EXEC_FILENAME.
1440 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1441 exec_filename.
1442 * utils.c (gdb_realpath_keepfile): New function.
1443 * utils.h (gdb_realpath_keepfile): New declaration.
1444
1445 2013-10-11 Doug Evans <dje@google.com>
1446
1447 * Makefile.in (GDBFLAGS): New variable.
1448 (run): New rule.
1449
1450 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1451
1452 * NEWS: Add entry documenting the new "-catch-assert" and
1453 "-catch-exception" GDB/MI commands.
1454
1455 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1456
1457 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1458 "enabled".
1459 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1460 "enabled". Set B->ENABLE_STATE accordingly.
1461 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1462 ada-lang.c.
1463 (create_ada_exception_catchpoint): Add declaration.
1464 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1465 (create_ada_exception_catchpoint): Make non-static. Add new
1466 parameter "disabled". Use it in call to
1467 init_ada_exception_breakpoint.
1468 (catch_ada_exception_command): Add parameter "enabled" in call
1469 to create_ada_exception_catchpoint.
1470 (catch_assert_command): Likewise.
1471
1472 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1473 Add declarations.
1474 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1475 "catch-exception" commands.
1476 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1477 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1478
1479 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1480
1481 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1482 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1483 of all its enumerates with "ada_". Update the rest of this
1484 file throughout.
1485
1486 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1487
1488 * ada-lang.c (ada_decode_exception_location): Delete.
1489 (create_ada_exception_catchpoint): Remove arguments "sal",
1490 "addr_string" and "ops". Add argument "ex_kind" instead.
1491 Adjust implementation accordingly, calling ada_exception_sal
1492 to get the entities it no longer gets passed as arguments.
1493 Document the function's arguments.
1494 (catch_ada_exception_command): Use catch_ada_exception_command_split
1495 instead of ada_decode_exception_location, and update call to
1496 create_ada_exception_catchpoint.
1497 (catch_ada_assert_command_split): Renames
1498 ada_decode_assert_location. Remove parameters "addr_string" and
1499 "ops", and now returns void. Adjust implementation accordingly.
1500 Update the function documentation.
1501 (catch_assert_command): Use catch_ada_assert_command_split
1502 instead of ada_decode_assert_location. Update call to
1503 create_ada_exception_catchpoint.
1504
1505 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1506
1507 * utils.h (perror_warning_with_name): Add declaration.
1508 * utils.c (perror_warning_with_name): New function.
1509 * cli/cli-cmds.c (source_script_with_search): Add call to
1510 perror_warning_with_name if from_tty is nul.
1511
1512 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1513
1514 * utils.c (perror_string): New function, extracted out of
1515 throw_perror_with_name.
1516 (throw_perror_with_name): Rework to use perror_string.
1517
1518 2013-10-11 Yao Qi <yao@codesourcery.com>
1519
1520 * remote.c (discard_pending_stop_replies_in_queue): Update
1521 declaration.
1522 (struct stop_reply) <rs>: New field.
1523 (remove_stop_reply_of_remote_state): New function.
1524 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1525 Callers update. Pass remove_stop_reply_of_remote_state to
1526 QUEUE_iterate.
1527 (remote_parse_stop_reply): Initialize field 'rs'.
1528
1529 2013-10-10 Will Newton <will.newton@linaro.org>
1530
1531 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1532 linux_init_abi.
1533
1534 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1535
1536 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1537 serial_baud_show_cmd.
1538 (_initialize_cli_cmds): Delete the code creating the
1539 "set/show remotebaud" commands.
1540 * serial.c (baud_rate): Move here from top.c.
1541 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1542 (_initialize_serial): Create "set/show serial baud" commands.
1543 Add "set/show remotebaud" command aliases.
1544 * top.c (baud_rate): Moved to serial.c.
1545 * NEWS: Document the new "set/show serial baud" commands,
1546 replacing "set/show remotebaud".
1547
1548 2013-10-09 Pedro Alves <palves@redhat.com>
1549
1550 * breakpoint.c (insert_bp_location): Use memory_error_message to
1551 build the memory error string.
1552 * c-lang.c: Include "gdbcore.h".
1553 (c_get_string): Use memory_error to throw error.
1554 (target_xfer_memory_error): Delete.
1555 (memory_error_message): New, factored out from
1556 target_xfer_memory_error.
1557 (memory_error): Change parameter type to target_xfer_error.
1558 Rewrite.
1559 (read_memory): Use memory_error instead of
1560 target_xfer_memory_error.
1561 * gdbcore.h: Include "target.h".
1562 (memory_error): Change parameter type to target_xfer_error.
1563 (memory_error_message): Declare function.
1564 * target.c (target_read_memory, target_read_stack)
1565 (target_write_memory, target_write_raw_memory): Return
1566 TARGET_XFER_E_IO on error. Adjust comments.
1567 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1568 instead of EIO.
1569 * target.h (target_read, target_insert_breakpoint)
1570 (target_remove_breakpoint): Adjust comments.
1571 * valprint.c (partial_memory_read): Rename parameter, and adjust
1572 comment.
1573 (val_print_string): Use memory_error_message to build the memory
1574 error string.
1575
1576 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1577
1578 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1579 result variable. Rename variable fopen_e_ever_failed to
1580 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1581
1582 2013-10-09 Pedro Alves <palves@redhat.com>
1583
1584 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1585 (monitor_write_memory_longlongs, monitor_write_memory_block):
1586 Constify 'myaddr' parameter.
1587 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1588 helper.
1589 (monitor_xfer_partial): New function.
1590 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1591 hook. Install a to_xfer_partial hook.
1592
1593 2013-10-09 Tom Tromey <tromey@redhat.com>
1594
1595 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1596 bfd_get_alt_debug_link_info.
1597
1598 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1599
1600 New flag OBJF_NOT_FILENAME.
1601 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1602 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1603 allocate_objfile.
1604 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1605 symbol_file_add_from_bfd.
1606 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1607 allocate_objfile.
1608 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1609 NULL.
1610 * objfiles.h (OBJF_NOT_FILENAME): New.
1611
1612 2013-10-08 Tom Tromey <tromey@redhat.com>
1613
1614 * Makefile.in (SFILES): Add build-id.c.
1615 (HFILES_NO_SRCDIR): Add build-id.h.
1616 * build-id.c: New file, largely from elfread.c. Modified
1617 most functions.
1618 * build-id.h: New file.
1619 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1620 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1621 Search for dwz file using build-id.
1622 * elfread.c (build_id_bfd_get, build_id_verify)
1623 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1624
1625 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1626
1627 * ada-lang.c (compare_names_with_case): Renamed from
1628 compare_names, adding a new parameter "casing" and its handling.
1629 New function documentation.
1630 (compare_names): New function, implemented using
1631 compare_names_with_case.
1632
1633 2013-10-08 Joel Brobecker <brobecker@adacore.com>
1634
1635 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1636
1637 2013-10-07 Tom Tromey <tromey@redhat.com>
1638
1639 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1640 demangled_names_hash.
1641 (free_objfile): Don't delete the demangled_names_hash.
1642 * objfiles.h (struct objfile_per_bfd_storage)
1643 <demangled_names_hash>: New field.
1644 (struct objfile) <demangled_names_hash>: Move to
1645 objfile_per_bfd_storage.
1646 * symfile.c (reread_symbols): Don't delete the
1647 demangled_names_hash.
1648 * symtab.c (create_demangled_names_hash): Update.
1649 (symbol_set_names): Update.
1650
1651 2013-10-07 Tom Tromey <tromey@redhat.com>
1652
1653 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1654 needs_relocations>: New fields.
1655 (gdb_bfd_requires_relocations): New function.
1656 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1657 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1658 the BFD needs relocations applied.
1659
1660 2013-10-07 Pedro Alves <palves@redhat.com>
1661
1662 PR breakpoints/11568
1663 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1664 the thread list" instead of "gone".
1665
1666 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1667
1668 * NEWS: Mention new convenience variable $_exitsignal.
1669 * corelow.c (core_open): Reset exit convenience variables. Set
1670 $_exitsignal to the uncaught signal which generated the corefile.
1671 * infrun.c (handle_inferior_event): Reset exit convenience
1672 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1673 (clear_exit_convenience_vars): New function.
1674 * inferior.h (clear_exit_convenience_vars): New prototype.
1675
1676 2013-10-06 Yao Qi <yao@codesourcery.com>
1677
1678 * varobj.h: Add comments to enum varobj_languages.
1679
1680 2013-10-04 Doug Evans <dje@google.com>
1681
1682 Add support for DWP file format version 2.
1683 * NEWS: Mention support for DWP file format version 2.
1684 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1685 union of asection, containing_section. New fields virtual_offset
1686 and is_virtual. Change type of readin filed from int to char.
1687 (dwo_sections, dwo_file): Tweak comments.
1688 (dwp_v2_section_ids): New enum.
1689 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1690 str_offsets, types.
1691 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1692 All uses updated.
1693 (virtual_v2_dwo_sections): New struct.
1694 (dwp_hash_table): New fields version, nr_columns. Change type of
1695 section_pool field to a union.
1696 (dwp_file): New field version.
1697 (dwarf2_has_info): Check for virtual sections.
1698 (get_containing_section): New function.
1699 (get_section_bfd_owner, get_section_bfd_section): Call it.
1700 (dwarf2_locate_sections): Update.
1701 (dwarf2_section_empty_p): Update.
1702 (dwarf2_read_section): Handle virtual sections.
1703 (locate_dwz_sections): Update.
1704 (create_dwp_hash_table): Document and handle V2 format.
1705 (locate_v1_virtual_dwo_sections): Renamed from
1706 locate_virtual_dwo_sections and update. All callers updated.
1707 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1708 Delete arg htab. Rename arg section_index to unit_index.
1709 All callers updated.
1710 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1711 All uses updated.
1712 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1713 (lookup_dwo_unit_in_dwp): Add V2 support.
1714 (dwarf2_locate_dwo_sections): Update.
1715 (dwarf2_locate_common_dwp_sections): Renamed from
1716 dwarf2_locate_dwp_sections and update. All callers updated.
1717 (dwarf2_locate_v2_dwp_sections): New function.
1718 (open_and_init_dwp_file): Add V2 support.
1719 (read_str_index): New locals str_section, str_offsets_section.
1720
1721 2013-10-04 Pedro Alves <palves@redhat.com>
1722
1723 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1724 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1725 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1726 describing comments with references to ptid.h.
1727 * common/ptid.h: Remove intro description of constructors,
1728 accessors and predicates.
1729 (struct ptid): Reformat.
1730 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1731 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1732 describing comments.
1733
1734 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1735
1736 * aix-thread.c (sync_threadlists): Add missing ')' in call
1737 to ptid_build.
1738
1739 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1740
1741 * procfs.c (procfs_init_inferior): Fix typo causing the build
1742 to fail.
1743
1744 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1745
1746 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1747
1748 2013-10-04 Joel Brobecker <brobecker@adacore.com>
1749
1750 * mi/mi-main.c (run_one_inferior): Add function description.
1751 Make ARG a pointer to an integer whose value determines whether
1752 we should "run" or "start" the program.
1753 (mi_cmd_exec_run): Add handling of the "--start" option.
1754 Reject all other command-line options.
1755 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1756
1757 2013-10-04 Yao Qi <yao@codesourcery.com>
1758
1759 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1760 (struct notif_client) <pending_event>: Moved
1761 to struct remote_notif_state.
1762 <id>: New field.
1763 (struct remote_notif_state) <pending_event>: New field.
1764 (notif_event_xfree): Declare.
1765 * remote-notif.c (handle_notification): Adjust.
1766 (notif_event_xfree): New function.
1767 (do_notif_event_xfree): Call notif_event_xfree.
1768 (remote_notif_state_xfree): Call notif_event_xfree to free
1769 each element in field pending_event.
1770 * remote.c (discard_pending_stop_replies): Remove declaration.
1771 (discard_pending_stop_replies_in_queue): Declare.
1772 (remote_close): Call discard_pending_stop_replies_in_queue
1773 instead of discard_pending_stop_replies.
1774 (remote_start_remote): Adjust.
1775 (stop_reply_xfree): Call notif_event_xfree.
1776 (notif_client_stop): Adjust initialization.
1777 (remote_notif_remove_all): Rename it to ...
1778 (remove_stop_reply_for_inferior): ... this. Update comments.
1779 Don't check INF is NULL.
1780 (discard_pending_stop_replies): Return early if notif_state is
1781 NULL. Adjust. Don't check INF is NULL.
1782 (remote_notif_get_pending_events): Adjust.
1783 (discard_pending_stop_replies_in_queue): New function.
1784 (remote_wait_ns): Likewise.
1785
1786 2013-10-04 Yao Qi <yao@codesourcery.com>
1787
1788 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1789 (notif_queue): Remove.
1790 (remote_notif_process): Add one parameter 'notif_queue'.
1791 Update comments. Callers update.
1792 (remote_async_get_pending_events_token): Remove.
1793 (remote_notif_register_async_event_handler): Remove.
1794 (remote_notif_unregister_async_event_handler): Remove.
1795 (handle_notification): Add parameter 'notif_queue'. Update
1796 comments. Callers update.
1797 (notif_xfree): Remove.
1798 (remote_notif_state_allocate): New function.
1799 (remote_notif_state_xfree): New function.
1800 (_initialize_notif): Remove code to allocate queue.
1801 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1802 (struct remote_notif_state): New.
1803 (handle_notification): Update declaration.
1804 (remote_notif_process): Likewise.
1805 (remote_notif_register_async_event_handler): Remove.
1806 (remote_notif_unregister_async_event_handler): Remove.
1807 (remote_notif_state_allocate): Declare.
1808 (remote_notif_state_xfree): Declare.
1809 * remote.c (struct remote_state) <notif_state>: New field.
1810 (remote_close): Don't call
1811 remote_notif_unregister_async_event_handler. Call
1812 remote_notif_state_xfree.
1813 (remote_open_1): Don't call
1814 remote_notif_register_async_event_handler. Call
1815 remote_notif_state_allocate.
1816
1817 2013-10-04 Yao Qi <yao@codesourcery.com>
1818
1819 * varobj.c (create_child_with_value): Remove 'const' from the
1820 type of parameter 'name'.
1821 (varobj_add_child): Likewise.
1822 (install_dynamic_child): Remove 'const' from the type of
1823 parameter 'name'.
1824 (varobj_add_child): Likewise.
1825 (create_child_with_value): Likewise. Update comments. Don't
1826 duplicate 'name'.
1827 (update_dynamic_varobj_children): Duplicate 'name'
1828 and pass it to install_dynamic_child.
1829
1830 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1831
1832 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1833 conversion logic to occur after PyLong_Check. Comment on order
1834 change significance.
1835 * python/py-arch.c (archpy_disassemble): Comment on order of
1836 conversion for integers and longs.
1837
1838 2013-10-03 Pedro Alves <palves@redhat.com>
1839
1840 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1841 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1842 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1843 PTRACE_O_TRACEFORK is not supported.
1844 (linux_test_for_tracesysgood): New function.
1845 (linux_test_for_tracefork): New function, factored out from
1846 linux_check_ptrace_features, and also don't kill child_pid here.
1847
1848 2013-10-03 Tristan Gingold <gingold@adacore.com>
1849
1850 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1851 Remove verbose error reporting. Use detected state to
1852 thread_set_state call.
1853 (i386_darwin_dr_get): Fix return type. Remove verbose error
1854 report.
1855 Remove trailing spaces.
1856
1857 2013-10-02 Pedro Alves <palves@redhat.com>
1858
1859 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1860 val_print_optimized_out.
1861 * jv-valprint.c (java_print_value_fields): Likewise.
1862 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1863 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1864 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1865 new optimized out value.
1866 * findvar.c (address_from_register): Likewise.
1867 * frame.c (put_frame_register): Tweak error string to say the
1868 register was not saved, rather than optimized out.
1869 * infcmd.c (default_print_one_register_info): Adjust call to
1870 val_print_optimized_out. Use value_of_register instead of
1871 get_frame_register_value.
1872 * mi/mi-main.c (output_register): Use value_of_register instead of
1873 get_frame_register_value.
1874 * valprint.c (valprint_check_validity): Likewise.
1875 (val_print_optimized_out): New value parameter. If the value is
1876 lval_register, print <not saved> instead.
1877 (value_check_printable, val_print_scalar_formatted): Adjust calls
1878 to val_print_optimized_out.
1879 * valprint.h (val_print_optimized_out): New value parameter.
1880 * value.c (struct value) <optimized_out>: Extend comment.
1881 (error_value_optimized_out): New function.
1882 (require_not_optimized_out): Use it. Use a different string for
1883 lval_register values.
1884 * value.h (error_value_optimized_out): New declaration.
1885 * NEWS: Mention <not saved>.
1886
1887 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1888
1889 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1890 strcmp to compare two symtab filenames.
1891
1892 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1893
1894 * symtab.c (search_symbols_equal): Delete.
1895 (sort_search_symbols_remove_dups): Replace call to
1896 search_symbols_equal by call to compare_search_syms,
1897 adjusting as necessary.
1898
1899 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1900
1901 PR python/15579
1902 * python/python.c: Document gdb.execute command in Python help.
1903
1904 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1905
1906 * python/py-frame.c (frame_info_to_frame_object): Use
1907 gdbpy_convert_exception. Clean up Python object on failure.
1908
1909 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1910
1911 * python/lib/gdb/command/frame_filters.py
1912 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1913 (ShowFrameFilterPriority.invoke): Ditto.
1914
1915 2013-10-01 Keith Seitz <keiths@redhat.com>
1916
1917 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1918 (parse_linespec): Make 'argptr' const.
1919 Remove temporary cast of 'argptr' to const char **.
1920 (decode_line_full): Pass const pointer to parse_linespec.
1921 (decode_line_1): Likewise.
1922 (decode_objc): Make local variable 'new_argptr' const.
1923 (find_function_symbols): Remove temporary cast to char *
1924 to find_imps.
1925 * objc-lang.c (find_imps): Make argument 'method' const.
1926 Return const.
1927 * objc-lang.h (find_imps): Likewise.
1928
1929 2013-10-01 Keith Seitz <keiths@redhat.com>
1930
1931 * completer.c (skip_quoted_chars): Make all arguments const.
1932 Return const.
1933 (skip_quoted): Likewise.
1934 * completer.h (skip_quoted_chars): Likewise.
1935 (skip_quoted): Likewise.
1936 * defs.h (skip_quoted): Remove duplicate declaration.
1937 * jv-exp.y: Include completer.h.
1938 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1939 * p-exp.y: Include completer.h.
1940
1941 2013-10-01 Keith Seitz <keiths@redhat.com>
1942
1943 * c-exp.y (parse_number): Make first argument const.
1944 Make a copy of the input to manipulate.
1945 (c_parse_escape): Make first argument const.
1946 Make local variable 'tokptr' const.
1947 (parse_string_or_char): Make first two arguments const.
1948 (macro_original_text): Make const.
1949 (lex_one_token): Make local variable 'tokstart' const.
1950 Likewise for local variables named 'p'.
1951 Cast away const for struct stoken (temporary).
1952 * c-lang.h (c_parse_escpae): Make first argument const.
1953 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1954 const.
1955 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1956 var_string case.
1957 * f-exp.y (parse_number): Make first argument const.
1958 (match_string_literal): Make local variable 'tokstart'
1959 const.
1960 (yylex): Make local variable 'p' const.
1961 Cast away const for struct stoken (temporary).
1962 * go-exp.y (parse_number): Make first argument const.
1963 (parse_string_or_char): Likewise.
1964 Make local variable 'tokstart' const.
1965 (lex_one_token): Likewise for numerous locals called 'p'.
1966 Cast away const for struct stoken (temporary).
1967 * jv-exp.y (parse_number): Make first argument const.
1968 Make local variables 'tokstart' and 'tokptr' const.
1969 Cast away const for call to skip_quoted (temporary).
1970 (yylex): Make local variable 'p' const.
1971 Cast away const for struct stoken (temporary).
1972 * m2-exp.y (parse_number): Make local variable 'p' const.
1973 (yylex): Likewise for 'tokstart'.
1974 Cast away const for struct stoken (temporary).
1975 Make local variable 'p' const.
1976 * macroexp.c (get_character_constant): Pass a const string
1977 to c_parse_escape.
1978 (get_string_literal): Likewise.
1979 (macro_expand_next): Make first argument const.
1980 Cast away const for init_shared_buffer.
1981 * macroexp.h (macro_expand_next): Make first argument const.
1982 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1983 Pass a const string to c_parse_escape.
1984 Make local variables 'p' and 'namestart' const.
1985 * parse.c (lexptr): Make const.
1986 (prev_lexptr): Likewise.
1987 (find_template_name_end): Return const.
1988 Make argument const, too.
1989 (parse_exp_in_context): Make first argument const.
1990 Remove the entire const_hack.
1991 (parse_exp_in_context_1): Make first argument const.
1992 * parser-defs.h (find_template_name_end): Return const.
1993 Make argument const, too.
1994 (lexptr): Make const.
1995 (prev_lexptr): Likewise.
1996 * utils.c (parse_escape): Make second argument const.
1997 * utils.h (parse_escape): Likewise.
1998
1999 2013-10-01 Keith Seitz <keiths@redhat.com>
2000
2001 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2002 is now const.
2003 (block_lookup): Make 'raw_name' and 'name' const.
2004 * ada-lex.l (processString): Update for struct stoken.ptr.
2005 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2006 (operator_stoken): Likewise.
2007 (lex_one_token): Remove temporary cast to char * for
2008 'yylval.sval.ptr'.
2009 * f-exp.y (yylex): Likewise.
2010 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2011 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2012 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2013 'yylval.sval.ptr'.
2014 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2015 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2016 * linespec.c (struct ls_parser): Make 'stream' const.
2017 (find_parameter_list_end): Make argument 'input' and local
2018 variable 'p' const.
2019 (linespec_lexer_lex_string): Make local variables 'start' and
2020 'p' const.
2021 Use skip_spaces_const instead of skip_spaces.
2022 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2023 const.
2024 (parse_linespec): Temporarily cast 'argptr' to const for
2025 'parser->lexer.stream'.
2026 * m2-exp.y (yylex): Remove temporary cast to char * for
2027 'yylval.sval.ptr'.
2028 * objc-lang.c (add_msglist): Make local variable 'p' const.
2029 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2030 (exp : STRING): Make 'sp' const.
2031 (parse_number): Make argument 'p' const.
2032 * parser-defs.h (struct stoken): Make 'ptr' const.
2033
2034 2013-10-01 Doug Evans <dje@google.com>
2035
2036 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2037
2038 2013-10-01 Yao Qi <yao@codesourcery.com>
2039
2040 * varobj.c (c_value_of_root): Remove declaration.
2041 (cplus_value_of_root, java_value_of_root): Likewise.
2042 (ada_value_of_root): Likewise.
2043 (struct language_specific) <value_of_root>: Remove.
2044 (languages): Update initialization.
2045 (check_scope): Move earlier.
2046 (c_value_of_root): Move earlier and rename to ...
2047 (value_of_root_1): ... this.
2048 (value_of_root): Caller update.
2049 (cplus_value_of_root, java_value_of_root): Remove.
2050 (ada_value_of_root): Remove.
2051
2052 2013-10-01 Yao Qi <yao@codesourcery.com>
2053
2054 * varobj.c (varobj_format_string): Remove "unknown".
2055 (languages): Remove the first element.
2056 * varobj.h (enum varobj_languages): Remove vlang_c.
2057
2058 2013-10-01 Yao Qi <yao@codesourcery.com>
2059
2060 * varobj.c (struct language_specific) <language>: Remove.
2061 (languages): Update the initialization.
2062
2063 2013-10-01 Yao Qi <yao@codesourcery.com>
2064
2065 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2066 "solib-target.h". Include "windows-tdep.h".
2067 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2068 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2069 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2070 windows-tdep.o to gdb_target_obs.
2071
2072 2013-10-01 Yao Qi <yao@codesourcery.com>
2073
2074 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2075 "solib-target.h".
2076 (amd64_windows_init_abi): Don't call set_solib_ops and
2077 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2078 windows_init_abi instead.
2079 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2080 "solib-target.h".
2081 (i386_cygwin_init_abi): Don't call set_solib_ops,
2082 set_gdbarch_has_dos_based_file_system and
2083 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2084 windows_init_abi instead.
2085 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2086 (windows_init_abi): New function.
2087 (windows_iterate_over_objfiles_in_search_order): Make it
2088 static.
2089 * windows-tdep.h (windows_init_abi): Declare.
2090 (windows_iterate_over_objfiles_in_search_order): Remove
2091 declaration.
2092
2093 2013-10-01 Jerome Guitton <guitton@adacore.com>
2094
2095 Checked in by Joel Brobecker <brobecker@adacore.com>
2096 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2097 incomplete dictionnary instead of None in case of missing
2098 environment variables.
2099 (elinos_init): in case of an incomplete environment, best
2100 effort to load system libraries instead of abort.
2101
2102 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2103
2104 * ada-lang.c (ada_has_this_exception_support): Ignore
2105 mst_solib_trampoline minimal symbols.
2106
2107 2013-09-30 Tristan Gingold <gingold@adacore.com>
2108
2109 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2110 hardware watchpoint.
2111 (i386_darwin_dr_set): Support 32 and 64 bit states.
2112 (i386_darwin_dr_get): Likewise.
2113 (i386_darwin_dr_set_control): Make static.
2114 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2115 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2116
2117 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2118
2119 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2120 Replace TIDGET with ptid_get_lwp.
2121 Replace GET_LWP with ptid_get_lwp.
2122 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2123 Replace BUILD_THREAD with ptid_build.
2124 Replace BUILD_LWP with ptid_build.
2125 Replace PIDGET with ptid_get_pid.
2126 Replace TIDGET with ptid_get_lwp.
2127 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2128 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2129 Replace TIDGET with ptid_get_lwp.
2130 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2131 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2132 Replace TIDGET with ptid_get_lwp.
2133 Replace GET_LWP with ptid_get_lwp.
2134 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2135 * auxv.c: Likewise.
2136 * breakpoint.c: Likewise.
2137 * common/ptid.c (ptid_is_pid): Condense check for
2138 null_ptid and minus_one_ptid.
2139 (ptid_lwp_p): New function.
2140 (ptid_tid_p): New function.
2141 * common/ptid.h: Update comments for accessors.
2142 (ptid_lwp_p): New prototype.
2143 (ptid_tid_p): New prototype.
2144 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2145 * gcore.c: Replace PIDGET with ptid_get_pid.
2146 * gdbthread.h: Likewise.
2147 * gnu-nat.c: Likewise.
2148 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2149 Replace TIDGET with ptid_get_lwp.
2150 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2151 * hppanbsd-nat.c: Likewise.
2152 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2153 Replace TIDGET with ptid_get_lwp.
2154 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2155 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2156 * infcmd.c: Likewise.
2157 * inferior.h: Likewise.
2158 * inflow.c: Likewise.
2159 * infrun.c: Likewise.
2160 * linux-fork.c: Likewise.
2161 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2162 Replace GET_PID with ptid_get_pid.
2163 Replace is_lwp with ptid_lwp_p.
2164 Replace GET_LWP with ptid_get_lwp.
2165 Replace BUILD_LWP with ptid_build.
2166
2167 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2168
2169 * common/linux-btrace.c: Move sys/syscall.h out of the
2170 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2171 Also check for SYS_perf_event_open before attempting to buid.
2172
2173 2013-09-27 Doug Evans <dje@google.com>
2174
2175 * dwarf2read.c (dwarf2_section_info): Add comment.
2176 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2177 All uses updated.
2178 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2179 (dwarf2_read_section): Delete unused local "header". Add section
2180 name to error message.
2181 (create_dwo_in_dwp): Tweak comment.
2182 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2183
2184 * dwarf2read.c (die_reader_specs): Tweak comment.
2185 (get_section_bfd_owner, get_section_bfd_section): New functions.
2186 (get_section_name, get_section_file_name): New functions.
2187 (get_section_id, get_section_flags): New functions.
2188 (*): Use new functions to access section fields.
2189
2190 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2191 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2192 arg "htab". All callers updated.
2193 (create_debug_types_hash_table): Remove redundant copy of
2194 abbrev_section.
2195 (create_dwo_in_dwp): Tweak comments.
2196 (read_str_index): Tweak comment. Record dwarf form name in static
2197 local.
2198
2199 2013-09-27 Pedro Alves <palves@redhat.com>
2200
2201 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2202 (remote_filename_p): Add comment.
2203 * remote.c (remote_filename_p): Adjust to use
2204 REMOTE_SYSROOT_PREFIX.
2205 * solib.c (solib_find): When deciding whether we need to add a
2206 directory separator, check whether the sysroot is "remote:"
2207 instead of checking whether the patch has a drive spec. Add
2208 comments.
2209
2210 2013-09-27 Pedro Alves <palves@redhat.com>
2211
2212 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2213 Delete fields.
2214 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2215 directly.
2216
2217 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2218
2219 Fix set debug frame output.
2220 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2221 SENTINEL_FRAME entry lower to match enum frame_type order.
2222
2223 2013-09-26 Pierre Muller <muller@sourceware.org>
2224
2225 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2226 AMD64_R15_REGNUM when a register index is expected.
2227 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2228 Substitute in array.
2229 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2230 (amd64_push_arguments): Substitute in integer_regnum array.
2231
2232 2013-09-25 Doug Evans <dje@google.com>
2233
2234 * objfiles.c (allocate_objfile): Move comment to better place.
2235
2236 New option "set debug symfile on".
2237 * NEWS: Mention "set debug symfile".
2238 * Makefile.in (SFILES): Add symfile-debug.c.
2239 (COMMON_OBS): Add symfile-debug.o.
2240 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2241 objfile's symbol functions.
2242 * objfiles.h (objfile_set_sym_fns): Declare.
2243 * symfile-debug.c: New file.
2244 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2245 objfile's symbol functions.
2246 (reread_symbols): Ditto.
2247
2248 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2249 All uses updated.
2250 (add_symtab_fns): Update prototype.
2251 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2252 (registered_sym_fns): ... this.
2253 (symtab_fns): Update.
2254 (add_symtab_fns): New arg "flavour". All callers updated.
2255 (find_sym_fns): Rewrite to use new sym_fns registry.
2256
2257 * symfile.h (struct sym_fns): Add "objfile" argument to
2258 sym_read_linetable. All uses updated.
2259
2260 * symtab.c (domain_name, search_domain_name): New functions.
2261 * symtab.h (domain_name, search_domain_name): Declare.
2262
2263 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2264 map_matching_symbols so objfile is first. All uses updated.
2265 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2266 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2267
2268 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2269
2270 PR shlibs/8882
2271 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2272 link map entries.
2273
2274 2013-09-24 Doug Evans <dje@google.com>
2275
2276 * objfiles.c (free_objfile): Move comment.
2277
2278 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2279
2280 * ada-exp.y (string_to_operator): Delete.
2281 (dummy_string_to_ada_operator): Delete.
2282
2283 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2284
2285 Revert:
2286 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2287 amd64-tdep.c.
2288 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2289 call_dummy_integer_regs, and classify.
2290 * amd64-tdep.h (amd64_classify): Add declaration.
2291 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2292 (amd64_reg_class): Delete, moved to i386-tdep.h.
2293 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2294 Replace call to amd64_classify by call to tdep->classify.
2295 (amd64_push_arguments): Get the list of registers to use for
2296 passing integer parameters from the gdbarch tdep structure,
2297 rather than using a hardcoded one. Replace calls to amd64_classify
2298 by calls to tdep->classify.
2299 (amd64_push_dummy_call): Get the register number used for
2300 the "hidden" argument from tdep->call_dummy_integer_regs.
2301 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2302 and tdep->call_dummy_integer_regs. Set tdep->classify.
2303
2304 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2305
2306 Revert:
2307 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2308 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2309 where tdep->memory_args_by_pointer is non-zero.
2310
2311 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2312
2313 Revert:
2314 * i386-tdep.h (struct gdbarch_tdep): Add new field
2315 integer_param_regs_saved_in_caller_frame.
2316 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2317 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2318
2319 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2320
2321 * amd64-windows-tdep.c: #include "value.h"
2322 (amd64_windows_classify): Delete.
2323 (amd64_windows_passed_by_integer_register)
2324 (amd64_windows_passed_by_xmm_register)
2325 (amd64_windows_passed_by_pointer)
2326 (amd64_windows_adjust_args_passed_by_pointer)
2327 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2328 (amd64_windows_push_dummy_call): New functions.
2329 (amd64_windows_init_abi): Remove setting of
2330 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2331 tdep->classify, tdep->memory_args_by_pointer and
2332 tdep->integer_param_regs_saved_in_caller_frame.
2333 Add call to set_gdbarch_push_dummy_call.
2334
2335 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2336
2337 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2338 objfile->original_name.
2339
2340 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2341
2342 Pass down original filename for objfile.
2343 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2344 * elfread.c (elf_symfile_read): Likewise.
2345 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2346 longer set ORIGINAL_NAME.
2347 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2348 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2349 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2350 symbol_file_add_from_bfd call.
2351 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2352 (macho_check_dsym): Add parameter filenamep. Change function comment.
2353 Set *filenamep.
2354 (macho_symfile_read): New variable dsym_filename. Update
2355 macho_check_dsym call. Use it for symbol_file_add_separate.
2356 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2357 it. Use it for objfile->original_name.
2358 (objfile_name): Return OBFD's filename, if available.
2359 * objfiles.h (allocate_objfile): Add new parameter name.
2360 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2361 * symfile-mem.c (symbol_file_add_from_memory): Update
2362 symbol_file_add_from_bfd call.
2363 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2364 comment for it.
2365 (symbol_file_add_with_addrs): New parameter name, add function comment
2366 for it. Remove variable name. Update allocate_objfile call.
2367 (symbol_file_add_separate): New parameter name, add function comment
2368 for it. Update symbol_file_add_with_addrs call.
2369 (symbol_file_add_from_bfd): New parameter name. Update
2370 symbol_file_add_with_addrs call.
2371 (symbol_file_add): Update symbol_file_add_from_bfd call.
2372 (reread_symbols): New variable original_name. Save
2373 objfile->original_name by it.
2374 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2375 second parameter.
2376
2377 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2378
2379 Code cleanup: Add objfile_name accessor function.
2380 * ada-lang.c (is_known_support_routine): Use objfile_name.
2381 * auto-load.c (source_gdb_script_for_objfile)
2382 (auto_load_objfile_script): Likewise.
2383 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2384 * dbxread.c (dbx_symfile_read): Likewise.
2385 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2386 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2387 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2388 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2389 (lookup_dwp_signatured_type, lookup_dwo_unit)
2390 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2391 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2392 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2393 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2394 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2395 (read_subrange_type, load_partial_dies, read_partial_die)
2396 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2397 (die_containing_type, build_error_marker_type, lookup_die_type)
2398 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2399 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2400 (get_DW_AT_signature_type, write_psymtabs_to_index)
2401 (save_gdb_index_command): Likewise.
2402 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2403 Likewise.
2404 * expprint.c (dump_subexp_body_standard): Likewise.
2405 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2406 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2407 original_name.
2408 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2409 obj_name, use objfile_name for it, use the variable.
2410 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2411 Use objfile_name.
2412 * machoread.c (macho_symtab_read, macho_check_dsym)
2413 (macho_symfile_relocate): Likewise.
2414 * maint.c (maintenance_translate_address): Likewise.
2415 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2416 * minsyms.c (install_minimal_symbols): Likewise.
2417 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2418 original_name.
2419 (filter_overlapping_sections): Use objfile_name.
2420 (objfile_name): New function.
2421 * objfiles.h (struct objfile): Rename field name to original_name.
2422 (objfile_name): New prototype.
2423 * printcmd.c (sym_info, address_info): Use objfile_name.
2424 * probe.c (parse_probes, collect_probes, compare_probes)
2425 (info_probes_for_ops): Likewise.
2426 * progspace.c (clone_program_space): Likewise.
2427 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2428 (maintenance_info_psymtabs): Likewise.
2429 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2430 (source_section_scripts): Likewise.
2431 * python/py-objfile.c (objfpy_get_filename): Likewise.
2432 * python/py-progspace.c (pspy_get_filename): Likewise.
2433 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2434 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2435 * solib.c (solib_read_symbols): Likewise.
2436 * stabsread.c (scan_file_globals): Likewise.
2437 * stap-probe.c (handle_stap_probe): Likewise.
2438 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2439 (find_separate_debug_file_by_debuglink): Likewise.
2440 (reread_symbols): Likewise. Use the objfile field name renamed to
2441 original_name.
2442 (allocate_symtab): Use objfile_name.
2443 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2444 (dump_objfile, dump_msymbols, dump_symtab_1)
2445 (maintenance_print_msymbols, maintenance_print_objfiles)
2446 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2447 * target.c (target_translate_tls_address, target_info): Likewise.
2448 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2449 objfile_name.
2450
2451 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2452
2453 Code cleanup.
2454 * probe.c (parse_probes): Rename variable objfile_name to
2455 objfile_namestr.
2456
2457 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2458
2459 Remove solib-sunos.c.
2460 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2461 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2462 * objfiles.c (rt_common_objfile): Remove.
2463 (free_objfile): Remove rt_common_objfile comparison.
2464 * objfiles.h (rt_common_objfile): Remove.
2465 * solib-sunos.c: Remove.
2466 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2467
2468 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 Remove a.out NetBSD and OpenBSD hosts.
2471 * NEWS (Removed native configurations): New.
2472 * config/arm/nbsdaout.mh: Remove.
2473 * config/i386/nbsdaout.mh: Remove.
2474 * config/i386/obsdaout.mh: Remove.
2475 * config/m68k/nbsdaout.mh: Remove.
2476 * config/sparc/nbsdaout.mh: Remove.
2477 * config/vax/nbsdaout.mh: Remove.
2478 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2479 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2480 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2481 error.
2482 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2483 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2484 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2485
2486 2013-09-23 Tom Tromey <tromey@redhat.com>
2487
2488 * linespec.c (struct minsym_and_objfile): Remove.
2489 (minsym_and_objfile_d): Remove.
2490 (struct linespec, struct collect_info, linespec_parse_basic)
2491 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2492 (compare_msymbols, find_method, find_function_symbols)
2493 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2494 (add_minsym, search_minsyms_for_name): Update.
2495
2496 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2497
2498 * regcache.c: Add include of valprint.h.
2499 (dump_endian_bytes): Delete.
2500 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2501
2502 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2503
2504 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2505
2506 2013-09-19 Pedro Alves <palves@redhat.com>
2507
2508 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2509 breakpoints.
2510
2511 2013-09-19 Pedro Alves <palves@redhat.com>
2512 Thomas Schwinge <thomas@codesourcery.com>
2513 Yue Lu <hacklu.newborn@gmail.com>
2514
2515 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2516 Take a gdb_byte pointer instead of a char pointer.
2517
2518 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2519 gnu_xfer_partial helper.
2520 (gnu_xfer_partial): New function.
2521 (gnu_target): Don't install a deprecated_xfer_memory hook.
2522 Install a to_xfer_partial hook.
2523
2524 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2525
2526 Constification.
2527 * main.c (captured_main): Replace catch_command_errors by
2528 catch_command_errors_const. Twice.
2529 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2530 (symbol_file_add): Make name parameter const.
2531 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2532 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2533 variable name. Change their usage accordingly.
2534 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2535 const.
2536 (symbol_file_add_main): Make args parameter const.
2537
2538 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2539 Ulrich Weigand <uweigand@de.ibm.com>
2540
2541 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2542 of c_value member.
2543 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2544
2545 2013-09-18 Pedro Alves <palves@redhat.com>
2546 Yue Lu <hacklu.newborn@gmail.com>
2547
2548 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2549 (gnu_create_inferior)
2550 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2551 (set_sig_thread_cmd): Use the lwpid field of ptids to
2552 store/extract thread ids instead of the tid field.
2553 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2554
2555 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2556
2557 * infcmd.c (default_print_one_register_info): Add detection of
2558 optimized out values.
2559 (default_print_registers_info): Switch to using
2560 get_frame_register_value.
2561
2562 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2563
2564 * infrun.c (handle_inferior_event): Check if we know the
2565 function start address before setting a resume breakpoint.
2566
2567 2013-09-18 Pedro Alves <palves@redhat.com>
2568
2569 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2570 minus_one_ptid instead of looking at the ptid's tid field and
2571 comparing that to -1.
2572
2573 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2574
2575 * main.h (get_gdb_program_name): Remove extra whitespace.
2576
2577 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2578
2579 * main.h (get_gdb_program_name): Add declaration.
2580 * main.c (get_gdb_program_name): Add definition.
2581
2582 2013-09-17 Doug Evans <dje@google.com>
2583
2584 * dwarf2read.c: Move definitions of complaint functions to after
2585 forward declarations of local functions.
2586
2587 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2588 Pedro Alves <palves@redhat.com>
2589
2590 PR gdb/11568
2591 * breakpoint.c (remove_threaded_breakpoints): New function.
2592 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2593 as thread_exit observer.
2594
2595 2013-09-17 Pedro Alves <palves@redhat.com>
2596
2597 PR gdb/15911
2598 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2599 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2600 * corelow.c (core_open):
2601 * frame.h (print_stack_frame, print_frame_info): New
2602 'set_current_sal' parameter.
2603 * infcmd.c (finish_command, kill_command): Adjust call to
2604 print_stack_frame.
2605 * inferior.c (inferior_command): Likewise.
2606 * infrun.c (normal_stop): Likewise.
2607 * linux-fork.c (linux_fork_context): Likewise.
2608 * record-full.c (record_full_goto_entry, record_full_restore):
2609 Likewise.
2610 * remote-mips.c (common_open): Likewise.
2611 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2612 Use it.
2613 (print_frame_info): New 'set_current_sal' parameter. Set the last
2614 displayed sal depending on the new paremeter instead of looking at
2615 print_what.
2616 (backtrace_command_1, select_and_print_frame, frame_command)
2617 (current_frame_command, up_command, down_command): Adjust call to
2618 print_stack_frame.
2619 * thread.c (print_thread_info, restore_selected_frame)
2620 (do_captured_thread_select): Adjust call to print_stack_frame.
2621 * tracepoint.c (tfind_1): Likewise.
2622 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2623 (mi_cmd_stack_info_frame): Likewise.
2624 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2625 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2626
2627 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2628
2629 * value.c (isvoid_internal_fn): Replace "parameter" with
2630 "argument".
2631
2632 2013-09-16 Stan Shebs <stan@codesourcery.com>
2633
2634 * README: Update references to writing code for GDB.
2635 * configure.ac (build_warnings): Remove obsolete comment.
2636 * configure: Regenerate.
2637 * gdbarch.sh: Remove references to gdbint.texinfo.
2638 * gdbarch.h: Regenerate.
2639 * gdbtypes.c (objfile_type): Remove comments referencing internals
2640 manual and D10V.
2641
2642 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2643
2644 * NEWS: Mention new convenience function $_isvoid.
2645 * value.c (isvoid_internal_fn): New function.
2646 (_initialize_values): Add new convenience function $_isvoid.
2647
2648 2013-09-16 Pierre Muller <muller@sourceware.org>
2649
2650 * arm-linux-tdep.c: Add "elf/common.h" header.
2651 Remove AT_HWCAP macro definintion as it is provided in
2652 added include file.
2653 * s390-tdep.c: Remove system header <elf.h>
2654 Add "elf/common.h" header for AT_HWCAP definition.
2655 (s390_core_read_description): Use correct CORE_ADDR
2656 for hwcap local variable used as third parameter
2657 of function target_auxv_search.
2658
2659 2013-09-14 Pierre Muller <muller@sourceware.org>
2660 Tom Tromey <tromey@redhat.com>
2661 Pedro Alves <palves@redhat.com>
2662
2663 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2664 mode if operating system doesn't know O_CLOEXEC.
2665
2666 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2667
2668 Code cleanup.
2669 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2670 inner block.
2671
2672 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2673
2674 * NEWS: Mention TDB support.
2675 * features/s390-tdb.xml: New file.
2676 * features/s390-te-linux64.xml: New file.
2677 * features/s390x-te-linux64.xml: New file.
2678 * features/Makefile (WHICH): Add new tdescs above.
2679 (s390-te-linux64-expedite): Set.
2680 (s390x-te-linux64-expedite): Set.
2681 * features/s390-te-linux64.c: New file (generated).
2682 * features/s390x-te-linux64.c: New file (generated).
2683 * regformats/s390-te-linux64.dat: New file (generated).
2684 * regformats/s390x-te-linux64.dat: New file (generated).
2685 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2686 (HWCAP_S390_TE): Likewise.
2687 (S390_TDB_DWORD0_REGNUM): Likewise.
2688 (S390_TDB_DWORD0_REGNUM): Likewise.
2689 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2690 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2691 (S390_TDB_ATIA_REGNUM): Likewise.
2692 (S390_TDB_R0_REGNUM): Likewise.
2693 (S390_TDB_R1_REGNUM): Likewise.
2694 (S390_TDB_R2_REGNUM): Likewise.
2695 (S390_TDB_R3_REGNUM): Likewise.
2696 (S390_TDB_R4_REGNUM): Likewise.
2697 (S390_TDB_R5_REGNUM): Likewise.
2698 (S390_TDB_R6_REGNUM): Likewise.
2699 (S390_TDB_R7_REGNUM): Likewise.
2700 (S390_TDB_R8_REGNUM): Likewise.
2701 (S390_TDB_R9_REGNUM): Likewise.
2702 (S390_TDB_R10_REGNUM): Likewise.
2703 (S390_TDB_R11_REGNUM): Likewise.
2704 (S390_TDB_R12_REGNUM): Likewise.
2705 (S390_TDB_R13_REGNUM): Likewise.
2706 (S390_TDB_R14_REGNUM): Likewise.
2707 (S390_TDB_R15_REGNUM): Likewise.
2708 (S390_NUM_REGS): Increase.
2709 (S390_IS_TDBREGSET_REGNUM): New macro.
2710 (s390_regmap_tdb): Declare.
2711 (s390_sizeof_tdbregset): Define.
2712 (tdesc_s390_te_linux64): Declare.
2713 (tdesc_s390x_te_linux64): Likewise.
2714 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2715 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2716 (s390_regmap_tdb): New regmap.
2717 (s390_supply_tdb_regset): New function.
2718 (s390_tdb_regset): New regset.
2719 (s390_linux64v2_regset_sections): Add TDB regset to list.
2720 (s390x_linux64v2_regset_sections): Likewise.
2721 (s390_regset_from_core_section): Recognize TDB core note section.
2722 (s390_core_read_description): If HWCAP indicates TE support,
2723 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2724 (s390_gdbarch_init): Handle TDB regset.
2725 (_initialize_s390_tdep): Initialize new tdescs.
2726 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2727 (have_regset_tdb): New variable.
2728 (s390_native_supply): Support register invalidation.
2729 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2730 (check_regset): Treat ENODATA as "regset exists".
2731 (s390_linux_fetch_inferior_registers): Add TDB.
2732 (s390_read_description): Check for TDB existence and select
2733 appropriate tdesc.
2734 * gdbserver/Makefile.in (clean): Add removal of new makefile
2735 targets.
2736 (s390-te-linux64.c): New makefile target.
2737 (s390x-te-linux64.c): Likewise.
2738 * gdbserver/configure.srv (srv_regobj): Append new objects
2739 s390-te-linux64.o and s390x-te-linux64.o.
2740 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2741 s390x-te-linux64.xml, and s390-tdb.xml.
2742 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2743 declaration.
2744 (tdesc_s390_te_linux64): Likewise.
2745 (init_registers_s390x_te_linux64): Likewise.
2746 (tdesc_s390x_te_linux64): Likewise.
2747 (s390_check_regset): Treat ENODATA as "regset exists".
2748 (s390_arch_setup): Add TDB regset support.
2749 (initialize_low_arch): Initialize registers for new tdescs.
2750
2751 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2752
2753 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2754 (S390_IS_FPREGSET_REGNUM): New macro.
2755 * s390-tdep.c (s390_dwarf_regmap): Make const.
2756 (regnum_is_gpr_full): New function for replacing repeated code.
2757 (s390_pseudo_register_name): Use it.
2758 (s390_pseudo_register_type): Likewise.
2759 (s390_pseudo_register_read): Likewise.
2760 (s390_pseudo_register_write): Likewise.
2761 (s390_unwind_pseudo_register): Likewise.
2762 (s390_regmap_gregset): New format for regmap.
2763 (s390x_regmap_gregset): Likewise.
2764 (s390_regmap_fpregset): Likewise.
2765 (s390_regmap_upper): Likewise.
2766 (s390_regmap_last_break): Likewise.
2767 (s390_regmap_system_call): Likewise.
2768 (s390_supply_regset): Adjust to new regmap format.
2769 (s390_collect_regset): Likewise.
2770 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2771 (s390_native_collect): Likewise.
2772 (supply_gregset): Likewise.
2773 (fill_gregset): Likewise.
2774 (supply_fpregset): Likewise.
2775 (fill_fpregset): Likewise.
2776 (fetch_regset): Likewise.
2777 (store_regset): Likewise.
2778 (s390_linux_fetch_inferior_registers): Likewise.
2779 (s390_linux_fetch_inferior_registers): Likewise.
2780
2781 2013-09-12 Andrew Pinski <apinski@cavium.com>
2782
2783 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2784
2785 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2786
2787 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2788
2789 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
2790
2791 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2792
2793 2013-09-06 Pedro Alves <palves@redhat.com>
2794
2795 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2796 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2797 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2798 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2799 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2800 gdb_stdlog.
2801
2802 2013-09-06 Pedro Alves <palves@redhat.com>
2803
2804 * remote-sim.c (dump_mem): Constify buf parameter.
2805 gdbsim_xfer_inferior_memory): Rename to ...
2806 (gdbsim_xfer_memory): ... this. Adjust interface as
2807 target_xfer_partial helper.
2808 (gdbsim_xfer_partial): New function.
2809 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2810 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2811
2812 2013-09-06 Pedro Alves <palves@redhat.com>
2813
2814 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2815 host_address_to_string, and send debug output to gdb_stdlog.
2816
2817 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2818
2819 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2820 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2821 gdb_target_obs for cris target.
2822 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2823 (cris_gdbarch_init): Move calls to
2824 set_gdbarch_fetch_tls_load_module_address and
2825 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2826 Add call to gdbarch_init_osabi.
2827 * cris-linux-tdep.c: New file.
2828 * cris-tdep.h: New file.
2829
2830 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2831
2832 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2833 to deprecated_init_ui_hook.
2834
2835 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
2836
2837 * cli/cli-interp.c (_initialize_cli_interp): Add a
2838 command_loop_proc to interp_procs.
2839 * event-top.c (cli_command_loop): Change signature to match
2840 interp_command_loop_ftype.
2841 * event-top.h (cli_command_loop): Same.
2842 * interps.c (interp_new): Require every interpreter to have a
2843 command_loop_proc.
2844 (current_interp_command_loop): Just call the command_loop_proc on
2845 the current interpreter.
2846 * tui/tui-interp.c (_initialize_tui_interp): Add a
2847 command_loop_proc to interp_procs.
2848
2849 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2850
2851 * cris-tdep.c (cris_gdbarch_init): Add call to
2852 get_gdbarch_fetch_tls_load_module_address.
2853
2854 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2855
2856 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2857 (cris_elf_gregset_t): Rename from elf_gregset_t.
2858 (crisv32_elf_gregset_t): Adjust.
2859 (cris_supply_gregset, fetch_core_registers): Adjust.
2860
2861 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
2862
2863 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2864
2865 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
2866
2867 * defs.h (deprecated_command_loop_hook): Remove, including
2868 references in comments.
2869 * interps.c (current_interp_command_loop): No longer use
2870 deprecated_command_loop_hook.
2871 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2872 setup.
2873 * top.c (deprecated_command_loop_hook): Remove.
2874
2875 2013-09-05 Pedro Alves <palves@redhat.com>
2876
2877 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2878 local is now int instead of ULONGEST. Print it with %d
2879 instead of paddress.
2880
2881 2013-09-05 Tristan Gingold <gingold@adacore.com>
2882
2883 * MAINTAINERS: Remove avr maintainership.
2884
2885 2013-09-05 Pedro Alves <palves@redhat.com>
2886
2887 * findvar.c (value_of_register): Rework in terms of
2888 value_of_register_lazy.
2889
2890 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2891
2892 * symfile.c (add_symbol_file_command): Remove trailing
2893 whitespaces and blank line after comment.
2894
2895 2013-09-05 Pedro Alves <palves@redhat.com>
2896
2897 * tui/tui-regs.c (tui_register_format): Don't look at the
2898 register's name here. Return string representing register
2899 value instead of storing it in the data element.
2900 (tui_get_register): Compare register string representations
2901 instead of register value states and contents.
2902
2903 2013-09-05 Pedro Alves <palves@redhat.com>
2904
2905 PR tui/15933
2906 * tui/tui-regs.c (tui_show_registers): Show registers of the
2907 selected frame, not the current frame.
2908
2909 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2910
2911 * MAINTAINERS (Write After Approval): Add myself to the list.
2912
2913 2013-09-04 Doug Evans <dje@google.com>
2914
2915 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2916 (queue_and_load_dwo_tu): New function.
2917 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2918 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2919 Make dependent_cu optional.
2920 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2921 and an older .gdb_index is in use, queue and load all its TUs too.
2922
2923 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2924
2925 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2926 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2927 variable search_flags.
2928 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2929 (OPF_RETURN_REALPATH): ... here.
2930 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2931 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2932 call. Twice.
2933 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2934 openp call.
2935 * solib.c (solib_find): Likewise. Four times.
2936 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2937 in the function comment and for the realpath_fptr variable.
2938 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2939 (find_and_open_source): Likewise. Twice.
2940 * symfile.c (symfile_bfd_open): Likewise, also twice.
2941
2942 2013-09-04 Doug Evans <dje@google.com>
2943
2944 * progspace.c (save_current_space_and_thread): Remove unnecessary
2945 call to save_current_inferior.
2946
2947 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2948
2949 * sh64-tdep.c (sh64_do_register): Return after printing message
2950 about unavailable register contents.
2951
2952 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2953 Pedro Alves <palves@redhat.com>
2954
2955 * symfile.c (add_symbol_file_command): Error out on unknown
2956 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2957 options and collapse into single conditional branch.
2958
2959 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2960
2961 * inf-child.c (inf_child_follow_fork): New parameter
2962 detach_fork.
2963 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2964 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2965 * inferior.h (detach_fork): Remove.
2966 * infrun.c (detach_fork): Adjust comment and make it
2967 static.
2968 (follow_fork): Pass detach_fork parameter to
2969 target_follow_fork.
2970 * linux-nat.c (linux_child_follow_fork): New parameter
2971 detach_fork.
2972 * target.c (target_follow_fork): New parameter detach_fork.
2973 Pass detach_fork as parameter and print its value.
2974 * target.h (struct target_ops) <to_follow_fork>: New int
2975 parameter.
2976 (target_follow_fork): New parameter detach_fork.
2977
2978 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2979
2980 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2981 Replace sec->bfd by sec->the_bfd_section->owner.
2982
2983 2013-09-03 Yao Qi <yao@codesourcery.com>
2984
2985 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2986 from linux_has_shared_address_space.
2987 (linux_has_shared_address_space): Call linux_is_uclinux.
2988 * linux-tdep.h (linux_is_uclinux): Declare.
2989 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2990 linux_is_uclinux.
2991
2992 2013-09-03 Yao Qi <yao@codesourcery.com>
2993
2994 * config/djgpp/fnchange.lst: Remove entry of
2995 i386-interix-nat.c and i386-interix-tdep.c.
2996 * configure.ac: Remove '*-*-interix*'.
2997 * configure: Re-generated.
2998 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2999 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3000 obsolete comments.
3001 * osabi.c (gdb_osabi_names): Remove "Interix".
3002
3003 2013-09-03 Yao Qi <yao@codesourcery.com>
3004
3005 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3006
3007 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3008
3009 * record.h (record_print_flag) <record_print_src_line,
3010 record_print_insn_range>: Rename into ...
3011 (record_print_flag) <record_print_src_line,
3012 record_print_insn_range>: ... this. Update all users.
3013
3014 2013-09-02 Pierre Muller <muller@sourceware.org>
3015
3016 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3017 error code.
3018
3019 2013-09-02 Pierre Muller <muller@sourceware.org>
3020
3021 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3022 by use of plongest function.
3023
3024 2013-09-02 Tristan Gingold <gingold@adacore.com>
3025
3026 * NEWS: Add entry mentioning support for native Windows x64
3027 SEH data.
3028
3029 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3030 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3031 (struct amd64_windows_frame_cache): New struct.
3032 (amd64_windows_w2gdb_regnum): New global.
3033 (pc_in_range, amd64_windows_frame_decode_epilogue)
3034 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3035 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3036 (amd64_windows_frame_this_id): New functions.
3037 (amd64_windows_frame_unwind): New static global.
3038 (amd64_windows_skip_prologue): New function.
3039 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3040 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3041 with amd64_windows_skip_prologue.
3042
3043 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3044
3045 GDB 7.6.1 released.
3046
3047 2013-08-30 Pedro Alves <palves@redhat.com>
3048
3049 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3050 SRC_AND_LOC.
3051
3052 2013-08-30 Pedro Alves <palves@redhat.com>
3053
3054 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3055 warning text.
3056
3057 2013-08-30 Pedro Alves <palves@redhat.com>
3058
3059 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3060 Adjust arguments to print_stack_frame.
3061
3062 2013-08-30 Pedro Alves <palves@redhat.com>
3063
3064 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3065
3066 2013-08-30 Pedro Alves <palves@redhat.com>
3067
3068 * frame.h (show_and_print_stack_frame): Delete declaration.
3069
3070 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3071
3072 PR python/15461
3073 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3074 (archpy_name): Check for valid architecture.
3075 (archpy_disassemble): Ditto.
3076
3077 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3078
3079 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3080 instead of "long long" in call to ptrace64.
3081
3082 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3083
3084 * mi/mi-interp.c (mi_command_loop): Change signature to match
3085 interp_command_loop_ftype.
3086 (mi1_command_loop): Remove.
3087 (mi2_command_loop): Remove.
3088 (mi3_command_loop): Remove.
3089 (mi_interpreter_resume): Remove setting of
3090 deprecated_command_loop_hook.
3091 (_initialize_mi_interp): Set mi_command_loop as the command loop
3092 callback.
3093
3094 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3095
3096 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3097 value_type.
3098
3099 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3100
3101 * value.c (allocate_value_contents): Make static.
3102 * value.h (allocate_value_contents): Remove prototype.
3103
3104 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3105
3106 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3107 of assembling value via allocate_value_lazy and attribute setter.
3108 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3109 assembling value via allocate_value_lazy and attribute setter.
3110 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3111 assembling value via allocate_value_lazy and attribute setter.
3112
3113 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3114
3115 * value.c (value_from_contents_and_address): Replace allocate_value and
3116 memcpy with value_from_contents.
3117
3118 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3119
3120 * python/py-framefilter.c (py_print_frame): Remove usage of
3121 PyString_AsString. Use python_string_to_host_string instead.
3122 Refactor function to work with a string as a new allocation
3123 instead of a pointer.
3124 (py_print_frame): Ditto.
3125 * python/lib/gdb/frames.py (return_list): Cain iterators together
3126 instead of adding them as a list.
3127 (_sort_list): Call return_list, and remove duplicate code.
3128 (execute_frame_filters): Convert iterator to a list with list().
3129 * python/lib/gdb/command/frame_filters.py
3130 (SetFrameFilterPriority._set_filter_priority): Convert priority
3131 attribute to an integer.
3132 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3133 wrapper function __next__.
3134 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3135 define as "str".
3136
3137 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3138
3139 PR python/15752
3140 * python/py-framefilter.c (apply_frame_filter): Check
3141 gdb_python_initialized. Exit if the Python frame-filter code
3142 cannot be initialized.
3143
3144 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3145
3146 PR cli/15842
3147 * top.c (print_gdb_version): Remove erroneous newline after help
3148 text.
3149
3150 2013-08-29 Yao Qi <yao@codesourcery.com>
3151
3152 * varobj.c (install_dynamic_child): Remove trailing space.
3153 Add one blank line after variable declaration.
3154
3155 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3156
3157 PR gdb/15415
3158 * corefile.c (get_exec_file): Use exec_filename.
3159 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3160 * exec.c (exec_close): Free EXEC_FILENAME.
3161 (exec_file_attach): New variable canonical_pathname. Use
3162 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3163 EXEC_FILENAME.
3164 * exec.h (exec_filename): New.
3165 * inferior.c (print_inferior, inferior_command): Use
3166 PSPACE_EXEC_FILENAME.
3167 * mi/mi-main.c (print_one_inferior): Likewise.
3168 * progspace.c (clone_program_space, print_program_space): Likewise.
3169 * progspace.h (struct program_space): New field pspace_exec_filename.
3170 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3171 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3172
3173 2013-08-28 Will Newton <will.newton@linaro.org>
3174
3175 * common/linux-ptrace.c: Include stdint.h unconditionally.
3176
3177 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3178
3179 Code cleanup.
3180 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3181
3182 2013-08-28 Yao Qi <yao@codesourcery.com>
3183 Pedro Alves <palves@redhat.com>
3184
3185 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3186 instead of stdio_fileopen.
3187 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3188 .Call stderr_fileopen instead of stdio_fileopen.
3189 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3190 [__MINGW32__] (stderr_file_fputs): New function.
3191 (stderr_fileopen): New function.
3192 * ui-file.h (stderr_fileopen): Declare.
3193
3194 2013-08-27 Doug Evans <dje@google.com>
3195
3196 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3197 (struct dwarf2_per_cu_data): Ditto.
3198 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3199 (process_imported_unit_die): Ditto.
3200 (follow_die_sig_1): Simplify assert.
3201
3202 2013-08-27 Pedro Alves <palves@redhat.com>
3203
3204 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3205 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3206 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3207 windows_xfer_memory directly.
3208 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3209
3210 2013-08-27 Pedro Alves <palves@redhat.com>
3211
3212 * darwin-nat.c (darwin_xfer_memory): Delete.
3213 (_initialize_darwin_inferior): Don't install a
3214 deprecated_xfer_memory method.
3215
3216 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3217 Yao Qi <yao@codesourcery.com>
3218
3219 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3220 (parse_no_frames_option): Remove.
3221 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3222 (mi_cmd_stack_list_args): Adjust.
3223 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3224 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3225 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3226 Caller update.
3227 (list_args_or_locals): New parameter 'skip_unavailable'.
3228 Handle it.
3229 * valprint.c (scalar_type_p): Rename to ...
3230 (val_print_scalar_type_p): ... this. Make extern.
3231 (val_print, value_check_printable): Adjust.
3232 * valprint.h (val_print_scalar_type_p): Declare.
3233 * value.c (value_entirely_unavailable): New function.
3234 * value.h (value_entirely_unavailable): Declare.
3235
3236 * NEWS: Mention the new option "--skip-unavailable" to MI
3237 commands '-stack-list-locals', '-stack-list-arguments' and
3238 '-stack-list-variables'.
3239
3240 2013-08-27 Yao Qi <yao@codesourcery.com>
3241
3242 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3243 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3244 options.
3245 * mi/mi-getopt.c (mi_getopt): Remove.
3246 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3247 'error_on_unknown'.
3248 (mi_getopt): Call mi_getopt_1.
3249 (mi_getopt_silent): New.
3250 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3251
3252 2013-08-26 Doug Evans <dje@google.com>
3253
3254 PR symtab/15885
3255 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3256 .gdb_index is in use.
3257 * symfile.c (reread_symbols): Reset objfile->sf.
3258
3259 * NEWS: Document "mt print objfiles" now takes optional regexp.
3260 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3261 regexp of objfiles to print.
3262 (_initialize_symmisc): Update doc string for "mt print objfiles".
3263
3264 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3265 missing debug info checks.
3266
3267 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3268 Ulrich Weigand <uweigand@de.ibm.com>
3269
3270 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3271 line tables generated by XLC compiled binaries.
3272
3273 2013-08-23 Doug Evans <dje@google.com>
3274
3275 * symmisc.c (dump_symtab): Delete prototype.
3276 (dump_msymbols, dump_objfile): Ditto.
3277 (maintenance_info_symtabs): Mark as dont_repeat.
3278 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3279
3280 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3281 debugging printf to better location.
3282
3283 2013-08-23 Pedro Alves <palves@redhat.com>
3284
3285 * target.c (target_read_live_memory): Change type of 'ret' local
3286 to LONGEST.
3287
3288 2013-08-23 Pedro Alves <palves@redhat.com>
3289
3290 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3291 (remote_read_bytes): Change return type to LONGEST, and adjust to
3292 return a target_xfer_error on error.
3293 (remote_xfer_memory): Delete.
3294 (remote_flash_write): Change type of 'ret' local to LONGEST.
3295 (remote_xfer_partial, remote_xfer_partial): Adjust.
3296 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3297
3298 2013-08-23 Pierre Muller <muller@sourceware.org>
3299
3300 ARI fix: Push # directives to start of line.
3301 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3302
3303 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3304
3305 PR gdb/15501
3306 * breakpoint.c (enable_command, disable_command): Iterate over
3307 all specified breakpoint locations.
3308
3309 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3310
3311 * common/linux-ptrace.c (linux_fork_to_function): Push #
3312 directives to the start of the line.
3313 (linux_check_ptrace_features): Fix warning message to use
3314 the "_" markup.
3315
3316 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3317
3318 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3319 nat/linux-waitpid.h.
3320 (linux-waitpid.o): New object file rule.
3321 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3322 (current_ptrace_options): Moved from linux-nat.c.
3323 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3324 parameters.
3325 (linux_fork_to_function): New function.
3326 (linux_grandchild_function): Likewise.
3327 (linux_child_function): Likewise.
3328 (linux_check_ptrace_features): New function, heavily
3329 based on linux-nat.c:linux_test_for_tracefork.
3330 (linux_enable_event_reporting): New function.
3331 (ptrace_supports_feature): Likewise.
3332 (linux_supports_tracefork): Likewise.
3333 (linux_supports_traceclone): Likewise.
3334 (linux_supports_tracevforkdone): Likewise.
3335 (linux_supports_tracesysgood): Likewise.
3336 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3337 gdbserver/linux-low.c.
3338 (linux_enable_event_reporting): New declaration.
3339 (linux_supports_tracefork): Likewise.
3340 (linux_supports_traceclone): Likewise.
3341 (linux_supports_tracevforkdone): Likewise.
3342 (linux_supports_tracesysgood): Likewise.
3343 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3344 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3345 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3346 * config/arm/linux.mh (NATDEPFILES): Likewise.
3347 * config/i386/linux.mh (NATDEPFILES): Likewise.
3348 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3349 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3350 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3351 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3352 * config/mips/linux.mh (NATDEPFILES): Likewise.
3353 * config/pa/linux.mh (NATDEPFILES): Likewise..
3354 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3355 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3356 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3357 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3358 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3359 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3360 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3361 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3362 ptrace's 4th argument's types.
3363 Check the type of PTRACE_TYPE_ARG4.
3364 * configure: Regenerate.
3365 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3366 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3367 (linux_supports_tracefork_flag): Remove.
3368 (linux_supports_tracesysgood_flag): Likewise.
3369 (linux_supports_tracevforkdone_flag): Likewise.
3370 (current_ptrace_options): Moved to
3371 common/linux-ptrace.c.
3372 (linux_tracefork_child): Remove.
3373 (my_waitpid): Remove.
3374 (linux_test_for_tracefork): Renamed to
3375 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3376 (linux_test_for_tracesysgood): Remove.
3377 (linux_supports_tracesysgood): Remove.
3378 (linux_supports_tracefork): Remove.
3379 (linux_supports_tracevforkdone): Remove.
3380 (linux_enable_tracesysgood): Remove.
3381 (linux_enable_event_reporting): Remove.
3382 (linux_init_ptrace): New function.
3383 (linux_child_post_attach): Call linux_init_ptrace.
3384 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3385 (linux_child_follow_fork): Call linux_supports_tracefork
3386 and linux_supports_tracevforkdone.
3387 (linux_child_insert_fork_catchpoint): Call
3388 linux_supports_tracefork.
3389 (linux_child_insert_vfork_catchpoint): Likewise.
3390 (linux_child_set_syscall_catchpoint): Call
3391 linux_supports_tracesysgood.
3392 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3393 * nat/linux-nat.h: New file.
3394 * nat/linux-waitpid.c: New file.
3395 * nat/linux-waitpid.h: New file.
3396
3397 2013-08-22 Samuel Bronson <naesten@gmail.com>
3398
3399 ARM Linux support for `catch syscall'.
3400 * syscalls/arm-linux.py: New file.
3401 * syscalls/arm-linux.xml: Likewise.
3402 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3403 (arm_linux_init_abi): Register the new function and syscall xml file.
3404 * data-directory/Makefile.in: Install the new syscall xml file.
3405 * NEWS: Brag about this.
3406
3407 2013-08-22 Pedro Alves <palves@redhat.com>
3408
3409 PR gdb/15871
3410 * corefile.c (target_xfer_memory_error): New function.
3411 (memory_error): Defer EIO to target_memory_error.
3412 (read_memory): Use target_xfer_partial, and handle finer-grained
3413 target xfer errors.
3414 * target.c (target_xfer_error_to_string): New function.
3415 (memory_xfer_partial_1): If memory is known to be
3416 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3417 (target_xfer_partial): Make extern.
3418 * target.h (enum target_xfer_error): New enum.
3419 (target_xfer_error_to_string): Declare function.
3420 (target_xfer_partial): Declare function.
3421 (struct target_ops) <xfer_partial>: Adjust describing comment.
3422
3423 2013-08-22 Alan Modra <amodra@gmail.com>
3424
3425 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3426 * configure.tgt: Likewise as targets.
3427
3428 2013-08-20 Doug Evans <dje@google.com>
3429
3430 * buildsym.c (subfile_stack): Move here from buildsym.h.
3431 (pending_macros): Ditto.
3432 (get_macro_table): New function.
3433 (buildsym_init): Initialize subfile_stack.
3434 * coffread.c (type_vector,type_vector_length): Moved here from
3435 buildsym.h.
3436 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3437 (coff_symtab_read): Use it.
3438 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3439 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3440 with call to get_macro_table.
3441 * stabsread.c (type_vector,type_vector_length): Moved here from
3442 buildsym.h.
3443 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3444 * buildsym.h (get_macro_table): Declare.
3445
3446 2013-08-20 Tom Tromey <tromey@redhat.com>
3447
3448 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3449 Update.
3450 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3451
3452 2013-08-20 Doug Evans <dje@google.com>
3453
3454 * blockframe.c: Remove #include "psymtab.h".
3455 * cp-support.c: Ditto.
3456 * source.c: Ditto.
3457 * stack.c: Ditto.
3458
3459 2013-08-20 Tom Tromey <tromey@redhat.com>
3460
3461 PR python/15816:
3462 * exceptions.h (return_mask): Now an enum.
3463 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3464 enum constants.
3465
3466 2013-08-20 Tom Tromey <tromey@redhat.com>
3467
3468 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3469 get_objfile_arch.
3470 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3471 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3472 * jit.c (jit_object_close_impl): Update.
3473 * jv-lang.c (get_dynamics_objfile): Update.
3474 * linespec.c (add_minsym): Use get_dynamics_objfile.
3475 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3476 (allocate_objfile): Don't initialize 'gdbarch' field.
3477 (get_objfile_arch): Update.
3478 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3479 moved from...
3480 (struct objfile) <gdbarch>: ... here. Remove.
3481 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3482 get_objfile_arch.
3483 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3484
3485 2013-08-20 Alan Modra <amodra@gmail.com>
3486
3487 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3488 for IBM long double nan and inf.
3489 (floatformat_is_negative, floatformat_classify,
3490 floatformat_mantissa): Similarly.
3491 (floatformat_ieee_single, floatformat_ieee_double,
3492 floatformat_ieee_quad, floatformat_arm_ext,
3493 floatformat_ia64_spill): Delete unused vars.
3494 (_initialize_doublest): Delete unused function.
3495 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3496 little-endian variants of floatformat_ibm_long_double.
3497
3498 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3499
3500 * Makefile.in (SFILES): Remove common/target-common.c and
3501 add target/waitstatus.c.
3502 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3503 target/resume.h, target/wait.h and target/waitstatus.h.
3504 (COMMON_OBS): Remove target-common.o and add
3505 waitstatus.o.
3506 (target-common.o): Remove.
3507 (waitstatus.o): New target object file.
3508 * common/target-common.c: Move contents to
3509 target/waitstatus.c and remove.
3510 * common/target-common.h: Move contents to other files and
3511 remove.
3512 (enum resume_kind: Move to target/resume.h.
3513 (TARGET_WNOHANG): Move to target/wait.h.
3514 (enum target_waitkind): Move to target/waitstatus.h.
3515 (struct target_waitstatus): Likewise.
3516 * target.h: Do not include target-common.h and
3517 include target/resume.h, target/wait.h and
3518 target/waitstatus.h.
3519 * target/resume.h: New file.
3520 * target/wait.h: New file.
3521 * target/waitstatus.h: New file.
3522 * target/waitstatus.c: New file.
3523
3524 2013-08-19 Pedro Alves <palves@redhat.com>
3525
3526 * linux-nat.c (linux_test_for_tracefork)
3527 (linux_test_for_tracesysgood, linux_child_follow_fork)
3528 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3529 (linux_nat_wait_1): Extend comment.
3530 (linux_async_pipe): Add comment.
3531
3532 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3533
3534 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3535 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3536 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3537 Update to account for fact that PC is now a pseudo-register.
3538 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3539 cases for RL78_PC_REGNUM.
3540
3541 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3542
3543 PR cli/15841
3544 * top.c (quit_force): Skip writing history file
3545 if input is not from terminal.
3546
3547 2013-08-14 Tom Tromey <tromey@redhat.com>
3548
3549 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3550 resultthreadlist>: New fields.
3551 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3552 (remote_get_threadlist, remote_threadlist_iterator): Use
3553 new fields. Remove static variables.
3554
3555 2013-08-14 Tom Tromey <tromey@redhat.com>
3556
3557 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3558 remote_watch_data_address>: New fields.
3559 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3560 (process_stop_reply, remote_wait_as)
3561 (remote_check_watch_resources, remote_stopped_data_address): Update.
3562
3563 2013-08-14 Tom Tromey <tromey@redhat.com>
3564
3565 * remote.c (struct remote_state) <async_client_callback,
3566 async_client_context>: New fields.
3567 (async_client_callback, async_client_context): Remove.
3568 (remote_async_serial_handler, remote_async): Update.
3569
3570 2013-08-14 Tom Tromey <tromey@redhat.com>
3571
3572 * remote.c (sizeof_pkt): Remove.
3573 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3574
3575 2013-08-14 Tom Tromey <tromey@redhat.com>
3576
3577 * remote.c (struct remote_state) <use_threadinfo_query,
3578 use_threadextra_query>: New fields.
3579 (remote_threads_info, remote_threads_extra_info)
3580 (remote_open_1): Update.
3581
3582 2013-08-14 Tom Tromey <tromey@redhat.com>
3583
3584 * remote.c (struct remote_state) <finished_object,
3585 finished_annex, finished_offset>: New fields.
3586 (remote_read_qxfer): Use remote_state fields; remove static
3587 variables.
3588
3589 2013-08-14 Tom Tromey <tromey@redhat.com>
3590
3591 * remote.c (struct remote_state) <last_sent_step>:
3592 New field.
3593 (last_sent_step): Remove.
3594 (remote_resume, remote_wait_as): Update.
3595
3596 2013-08-14 Tom Tromey <tromey@redhat.com>
3597
3598 * remote.c (struct remote_state) <last_sent_signal>:
3599 New field.
3600 (last_sent_signal): Remove.
3601 (new_remote_state, remote_resume, remote_wait_as): Update.
3602
3603 2013-08-14 Tom Tromey <tromey@redhat.com>
3604
3605 * remote.c (struct remote_state) <last_program_signals_packet>:
3606 New field.
3607 (last_program_signals_packet): Remove.
3608 (remote_program_signals, remote_open_1): Update.
3609
3610 2013-08-14 Tom Tromey <tromey@redhat.com>
3611
3612 * remote.c (struct remote_state) <last_pass_packet>:
3613 New field.
3614 (last_pass_packet): Remove.
3615 (remote_pass_signals, remote_open_1): Update.
3616
3617 2013-08-14 Tom Tromey <tromey@redhat.com>
3618
3619 * remote.c (struct remote_state) <remote_traceframe_number>:
3620 New field.
3621 (remote_traceframe_number): Remove.
3622 (new_remote_state, remote_open_1, set_remote_traceframe)
3623 (remote_trace_find): Update.
3624
3625 2013-08-14 Tom Tromey <tromey@redhat.com>
3626
3627 * remote.c (struct remote_state) <general_thread, continue_thread>:
3628 New fields.
3629 (general_thread, continue_thread): Remove.
3630 (record_currthread, set_thread, set_general_process)
3631 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3632 (extended_remote_mourn_1): Update.
3633
3634 2013-08-14 Tom Tromey <tromey@redhat.com>
3635
3636 * remote.c (struct remote_state) <remote_desc>: New field.
3637 (remote_desc): Remove.
3638 (remote_threads_info, remote_threads_extra_info, remote_close)
3639 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3640 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3641 (remote_hostio_send_command, remote_file_put, remote_file_get)
3642 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3643 (remote_async, remote_new_objfile, set_range_stepping): Update.
3644
3645 2013-08-14 Tom Tromey <tromey@redhat.com>
3646
3647 * remote.c (remote_state): Now a pointer.
3648 (get_remote_state_raw): Update.
3649 (new_remote_state): New function.
3650 (_initialize_remote): Use new_remote_state.
3651
3652 2013-08-14 Tom Tromey <tromey@redhat.com>
3653
3654 * remote.c (remote_protocol_features): Now const.
3655
3656 2013-08-14 Tom Tromey <tromey@redhat.com>
3657
3658 * remote.c (crc32_table, crc32): Remove.
3659 (remote_verify_memory): Use xcrc32.
3660
3661 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3662
3663 * value.h (create_internalvar_type_lazy): Adjust prototype
3664 declaration.
3665
3666 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
3667
3668 * common/format.c (parse_format_string): Don't allow '#' flag for
3669 pointer arguments in format string.
3670
3671 2013-08-13 Pierre Muller <muller@sourceware.org>
3672
3673 * utils.c (init_page_info): Only call tgetnum function
3674 if rl_get_screen_size did not return useful values.
3675
3676 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3677
3678 PR breakpoints/15117
3679 * linespec.c (linespec_parse_basic): Check for convenience
3680 variable or history value while parsing.
3681
3682 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3683
3684 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3685 AVR.
3686 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3687 different signals between the generic Linux kernel implementation
3688 and AVR's.
3689 (avr_linux_gdb_signal_from_target): Delete.
3690 (avr_linux_gdb_signal_to_target): Delete.
3691 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3692
3693 2013-08-09 Doug Evans <dje@google.com>
3694
3695 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3696 entries.
3697
3698 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3699
3700 * linux-tdep.c: Define enum with generic signal numbers.
3701 (linux_gdb_signal_from_target): New function.
3702 (linux_gdb_signal_to_target): Likewise.
3703 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3704 methods to the functions above.
3705 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3706 (linux_gdb_signal_to_target): Likewise.
3707 * alpha-linux-tdep.c: Define new enum with signals different
3708 from generic Linux kernel.
3709 (alpha_linux_gdb_signal_from_target): New function.
3710 (alpha_linux_gdb_signal_to_target): Likewise.
3711 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3712 with the functions mentioned above.
3713 * avr-tdep.c: Define enum with differences between Linux kernel
3714 and AVR signals.
3715 (avr_linux_gdb_signal_from_target): New function.
3716 (avr_linux_gdb_signal_to_target): Likewise.
3717 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3718 the functions mentioned above.
3719 * sparc-linux-tdep.c: Define enum with differences between SPARC
3720 and generic Linux kernel signal numbers.
3721 (sparc32_linux_gdb_signal_from_target): New function.
3722 (sparc32_linux_gdb_signal_to_target): Likewise.
3723 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3724 to the functions defined above.
3725 * xtensa-linux-tdep.c: Define enum with differences between
3726 Xtensa and Linux kernel generic signals.
3727 (xtensa_linux_gdb_signal_from_target): New function.
3728 (xtensa_linux_gdb_signal_to_target): Likewise.
3729 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3730 to the functions defined above.
3731 * mips-linux-tdep.c: Define enum with differences between
3732 signals in MIPS and Linux kernel generic ones.
3733 (mips_gdb_signal_to_target): New function.
3734 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3735 only different signals from the Linux kernel generic.
3736 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3737 the functions defined above.
3738 * mips-linux-tdep.h (enum mips_signals): Remove.
3739
3740 2013-08-09 Pedro Alves <palves@redhat.com>
3741
3742 * avr-tdep.c (XMALLOC): Delete macro.
3743 * cli/cli-dump.c (XMALLOC): Delete macro.
3744
3745 2013-08-09 Pedro Alves <palves@redhat.com>
3746
3747 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3748 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3749 (fopen_with_cleanup, add_dump_command): Make static.
3750 * cli/cli-dump.h: Delete file.
3751 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3752 cli/cli-dump.h.
3753
3754 2013-08-09 Pedro Alves <palves@redhat.com>
3755
3756 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3757 error message.
3758
3759 2013-08-09 Pedro Alves <palves@redhat.com>
3760
3761 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3762 error message.
3763
3764 2013-08-09 Pedro Alves <palves@redhat.com>
3765
3766 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3767 (gcore_command): Use tilde_expand here, and when showing the
3768 filename to the user, show the expanded version.
3769
3770 2013-08-09 Yao Qi <yao@codesourcery.com>
3771
3772 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3773 'entryval' is set.
3774
3775 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3776
3777 * gcore.c (create_gcore_bfd): Use tilde_expand.
3778
3779 2013-08-08 Yao Qi <yao@codesourcery.com>
3780
3781 * frame.h (read_frame_local): Declare.
3782 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3783 read_frame_local.
3784 * stack.c (read_frame_local): New.
3785
3786 2013-08-08 Yao Qi <yao@codesourcery.com>
3787
3788 * mi/mi-cmd-stack.c: Update comments to function
3789 list_args_or_locals.
3790
3791 2013-08-07 Tom Tromey <tromey@redhat.com>
3792
3793 PR symtab/15028:
3794 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3795 (process_psymtab_comp_unit_reader): Use it.
3796 (process_psymtab_comp_unit): Update. Add "pretend_language"
3797 argument.
3798 (dwarf2_build_psymtabs_hard): Update.
3799 (scan_partial_symbols): Pass CU's language to
3800 process_psymtab_comp_unit.
3801
3802 2013-08-07 Tom Tromey <tromey@redhat.com>
3803
3804 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3805 (dwarf2_gdb_index_functions): Update.
3806 * psymtab.c (find_symbol_file_from_partial): Remove.
3807 (psym_functions): Update.
3808 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3809 Remove.
3810
3811 2013-08-07 Tom Tromey <tromey@redhat.com>
3812
3813 * symfile.c (set_initial_language): Look up "main" symbol
3814 and use its language.
3815 * symtab.c (find_main_filename): Remove.
3816 * symtab.h (find_main_filename): Remove.
3817
3818 2013-08-07 Tom Tromey <tromey@redhat.com>
3819
3820 * dwarf2read.c (recursively_compute_inclusions): Add
3821 "immediate_parent" argument. Set symtab's "user" field
3822 if not set.
3823 (compute_symtab_includes): Update.
3824
3825 2013-08-07 Tom Tromey <tromey@redhat.com>
3826
3827 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3828 when adding label symbols.
3829
3830 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3831 Ulrich Weigand <uweigand@de.ibm.com>
3832
3833 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3834 * configure.host (powerpc64-*-aix*): Likewise.
3835
3836 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3837 Ulrich Weigand <uweigand@de.ibm.com>
3838
3839 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3840 is defined.
3841 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3842 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3843 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3844 * configure.ac: Check for ptrace64.
3845 * configure, config.in: Regenerate.
3846
3847 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3848 Ulrich Weigand <uweigand@de.ibm.com>
3849
3850 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3851 Call ptrace64 instead of ptrace if defined.
3852 Add macro addr_ptr to take care of ptrace address argument.
3853 (pdc_read_regs): Likewise.
3854 (pdc_write_regs): Likewise.
3855 (aix_thread_resume): Likewise.
3856 (fetch_regs_kernel_thread): Likewise.
3857 (store_regs_kernel_thread): Likewise.
3858
3859 2013-08-07 Anton Blanchard <anton@samba.org>
3860
3861 * MAINTAINERS: Add myself to Write After Approval.
3862
3863 2013-08-05 Tom Tromey <tromey@redhat.com>
3864
3865 * aix-thread.c (_initialize_aix_thread): Use
3866 complete_target_initialization.
3867 * bsd-uthread.c (_initialize_bsd_uthread): Use
3868 complete_target_initialization.
3869 * dec-thread.c (_initialize_dec_thread): Use
3870 complete_target_initialization.
3871 * ravenscar-thread.c (_initialize_ravenscar): Use
3872 complete_target_initialization.
3873 * sol-thread.c (_initialize_sol_thread): Use
3874 complete_target_initialization.
3875 * spu-multiarch.c (_initialize_spu_multiarch): Use
3876 complete_target_initialization.
3877
3878 2013-08-05 Tom Tromey <tromey@redhat.com>
3879
3880 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3881 * ada-lang.c (ada_lookup_simple_minsym): Return
3882 bound_minimal_symbol.
3883 * ada-lang.h (ada_lookup_simple_minsym): Update.
3884 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3885 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3886 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3887 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3888 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3889 * minsyms.c (msymbol_objfile): Remove.
3890 (lookup_minimal_symbol_internal): New function, from
3891 lookup_minimal_symbol.
3892 (lookup_minimal_symbol): Rewrite using
3893 lookup_minimal_symbol_internal.
3894 (lookup_bound_minimal_symbol): New function.
3895 * minsyms.h (msymbol_objfile): Remove.
3896 (lookup_bound_minimal_symbol): Declare.
3897 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3898 * parse.c (write_exp_msymbol): Change parameter to a
3899 bound_minimal_symbol.
3900 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3901 * parser-defs.h (write_exp_msymbol): Update.
3902 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3903 * symfile.c (simple_read_overlay_table): Use
3904 lookup_bound_minimal_symbol.
3905 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3906 (search_symbols): Likewise.
3907 (print_msymbol_info): Take a bound_minimal_symbol argument.
3908 (symtab_symbol_info, rbreak_command): Update.
3909 * symtab.h (struct symbol_search) <msymbol>: Change type
3910 to bound_minimal_symbol.
3911 * valops.c (find_function_in_inferior): Use
3912 lookup_bound_minimal_symbol.
3913 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3914
3915 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3916
3917 Code cleanup.
3918 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3919 to ...
3920 (async_cleanup_sigint_signal_handler): ... this.
3921 (initialize_sigint_signal_handler): Remove declaration.
3922 (handle_remote_sigint): Rename the declaration to ...
3923 (async_handle_remote_sigint): ... this.
3924 (handle_remote_sigint_twice): Rename the declaration to ...
3925 (async_handle_remote_sigint_twice): ... this.
3926 (async_remote_interrupt, async_remote_interrupt_twice)
3927 (remote_interrupt): Remove the declarations.
3928 (remote_interrupt_twice): Rename the declaration ...
3929 (sync_remote_interrupt_twice): ... this.
3930 (sigint_remote_twice_token): Rename the variable to ...
3931 (async_sigint_remote_twice_token): ... this.
3932 (sigint_remote_token): Rename the variable to ...
3933 (async_sigint_remote_token): ... this.
3934 (initialize_sigint_signal_handler): Rename the function to ...
3935 (async_initialize_sigint_signal_handler): ... this. Update the name
3936 inside.
3937 (handle_remote_sigint): Rename the function to ...
3938 (async_handle_remote_sigint): ... this. Update the names inside.
3939 (handle_remote_sigint_twice): Rename the function to ...
3940 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3941 (cleanup_sigint_signal_handler): Rename the function to ...
3942 (async_cleanup_sigint_signal_handler): ... this.
3943 (remote_interrupt): Rename the function to ...
3944 (sync_remote_interrupt): this. Update the names inside.
3945 (remote_interrupt_twice): Rename the function to ...
3946 (sync_remote_interrupt_twice): this. Update the names inside.
3947 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3948 (_initialize_remote): Update the names inside.
3949
3950 2013-08-02 Tom Tromey <tromey@redhat.com>
3951
3952 PR symtab/15719:
3953 * breakpoint.c (update_watchpoint, watchpoint_check)
3954 (watch_command_1): Update.
3955 * eval.c (fetch_subexp_value): Add "preserve_errors"
3956 parameter.
3957 * ppc-linux-nat.c (check_condition): Update.
3958 * value.h (fetch_subexp_value): Update.
3959
3960 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3961
3962 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3963 add_file_handler.
3964
3965 2013-08-01 Doug Evans <dje@google.com>
3966
3967 PR symtab/15691
3968 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3969 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3970 Add assert of sig_entry->dwo_unit == NULL.
3971 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3972 had already been read.
3973 (read_signatured_type): Set per_cu.tu_read.
3974
3975 PR symtab/15695
3976 * valops.c (value_struct_elt): Add missing call to check_typedef.
3977 (value_find_oload_method_list): Ditto.
3978
3979 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3980 effectively, struct symbol_search **.
3981 (make_cleanup_free_search_symbols): Change arg to struct
3982 symbol_search **. All callers updated.
3983 (compare_search_syms): Compare symtab file name and block as well.
3984 (search_symbols_equal): New function.
3985 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3986 New args new_head, new_tail. Result is now void. Remove dups after
3987 sorting the symbols.
3988 (search_symbols): Sort all found symbols once, after all have been
3989 found, and remove duplicates. Simplify cleanup tracking of result.
3990 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3991
3992 Further workarounds for binutils/15021.
3993 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3994 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3995 Watch for duplicate symtabs coming from type units.
3996 (compute_symtab_includes): Update call to
3997 recursively_compute_inclusions. Build vector of included symtabs
3998 instead of per_cus.
3999 * symtab.h (symtab_ptr): New typedef.
4000 (DEF_VEC_P (symtab_ptr)): New VEC type.
4001 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4002 instead.
4003
4004 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4005
4006 * cli/cli-script.c (script_from_file): Remove use of
4007 error_pre_print.
4008 * main.c (captured_main): Remove use of error_pre_print and
4009 quit_pre_print.
4010 * utils.c (error_pre_print, quit_pre_print): Remove.
4011 * utils.h (error_pre_print, quit_pre_print): Likewise.
4012
4013 2013-08-01 Yao Qi <yao@codesourcery.com>
4014
4015 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4016 with mi_getopt.
4017 (mi_cmd_stack_list_variables): Likewise.
4018
4019 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4020
4021 * exceptions.c (deprecated_throw_reason): Remove.
4022 * exceptions.h (deprecated_throw_reason): Remove.
4023
4024 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4025
4026 * remote-mips.c (mips_error): Replace use of
4027 deprecated_throw_reason with throw_verror. Use the error message
4028 passed to mips_error as the error message for throw_verror.
4029
4030 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4031
4032 * monitor.c (monitor_interrupt_query): Replace use of
4033 deprecated_throw_reason with quit.
4034 * nto-procfs.c (interrupt_query): Likewise.
4035 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4036 * remote-mips.c (mips_kill): Likewise.
4037 * remote.c (interrupt_query): Likewise.
4038
4039 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4040
4041 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4042 with call to fatal.
4043
4044 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4045 Yao Qi <yao@codesourcery.com>
4046
4047 * tracepoint.c (trace_dump_command): Select the current frame.
4048
4049 2013-07-30 Doug Evans <dje@google.com>
4050
4051 * dwarf2read.c (process_queue): Add type signature to debug output.
4052
4053 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4054
4055 * value.c (value_fetch_lazy): Mark optimized out values as such
4056 rather than raising an error.
4057
4058 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4059
4060 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4061 before checking which bits of the parent, not the child, value are
4062 valid.
4063
4064 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4065
4066 PR gdb/15715
4067 * top.c: Include "filenames.h".
4068 (set_history_filename): New function.
4069 (init_main): Install it as set hook of the "set history filename"
4070 command.
4071
4072 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4073
4074 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4075 attribute parameter.
4076 (dwarf2_const_value_data): Constify struct attribute parameter.
4077 (dwarf2_const_value): Constify struct attribute parameter.
4078 (dwarf2_const_value_attr): Constify struct attribute parameter.
4079 (lookup_die_type): Constify struct attribute parameter.
4080 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4081 (follow_die_ref_or_sig): Constify struct attribute parameter.
4082 (follow_die_ref): Constify struct attribute parameter.
4083 (follow_die_sig): Constify struct attribute parameter.
4084 (get_DW_AT_signature_type): Constify struct attribute parameter.
4085 (get_type_unit_group): Constify struct attribute parameter.
4086 (fill_in_loclist_baton): Constify struct attribute parameter.
4087 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4088 (type_unit_group): Constify struct attribute parameter.
4089
4090 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4091
4092 * dwarf2read.c (attr_form_is_block): Make argument const.
4093 (attr_form_is_section_offset): Make argument const.
4094 (attr_form_is_constant): Make argument const.
4095 (attr_form_is_ref): Make argument const.
4096
4097 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4098
4099 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4100 All uses updated.
4101 (attr_form_is_ref): Moved below attr_form_is_constant.
4102
4103 2013-07-29 Doug Evans <dje@google.com>
4104
4105 * main.c (captured_command_loop): Tweak comment.
4106
4107 * target.c (target_async_permitted_1): Fix comment.
4108
4109 * symtab.c (iterate_over_some_symtabs): Add comment.
4110
4111 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4112
4113 2013-07-27 Yao Qi <yao@codesourcery.com>
4114
4115 * NEWS: Mention that GDBserver now supports hardware
4116 watchpoints on the MIPS GNU/Linux target.
4117
4118 2013-07-27 Yao Qi <yao@codesourcery.com>
4119
4120 * Makefile.in (HFILES_NO_SRCDIR): Add
4121 common/mips-linux-watch.h.
4122 (mips-linux-watch.o): New rule.
4123 * common/mips-linux-watch.c: New.
4124 * common/mips-linux-watch.h: New.
4125 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4126 * mips-linux-nat.c: Include mips-linux-watch.h.
4127 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4128 to common/mips-linux-watch.h.
4129 (MAX_DEBUG_REGISTER): Likewise.
4130 (enum pt_watch_style): Likewise.
4131 (struct mips32_watch_regs): Likewise.
4132 (struct mips64_watch_regs): Likewise.
4133 (struct pt_watch_regs): Likewise.
4134 (struct mips_watchpoint): Likewise.
4135 (mips_linux_watch_get_irw_mask): Move to
4136 common/mips-linux-watch.c.
4137 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4138 (mips_linux_watch_get_watchlo): Likewise.
4139 (mips_linux_watch_set_watchlo): Likewise.
4140 (mips_linux_watch_get_watchhi): Likewise.
4141 (mips_linux_watch_set_watchhi): Likewise.
4142 (mips_linux_read_watch_registers): Likewise.
4143 (mips_linux_watch_type_to_irw): Likewise.
4144 (mips_linux_stopped_data_address, fill_mask): Likewise.
4145 (mips_linux_watch_try_one_watch): Likewise.
4146 (mips_linux_watch_populate_regs): Likewise.
4147
4148 2013-07-27 Yao Qi <yao@codesourcery.com>
4149
4150 * mips-linux-nat.c (get_irw_mask): Rename to ...
4151 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4152 'set' to 'n'. Update function comment. All callers changed.
4153 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4154 function comment. All callers changed.
4155 (get_num_valid): Rename to ...
4156 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4157 'set' to 'n'. Update function comment. All callers changed.
4158 (get_watchlo): Rename to ...
4159 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4160 'set' to 'n'. Update function comment. All callers changed.
4161 (set_watchlo): Rename to ...
4162 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4163 'set' to 'n'. Update function comment. All callers changed.
4164 (get_watchhi): Rename to ...
4165 (mips_linux_watch_get_watchhi): ... this. Update function
4166 comment. All callers changed.
4167 (set_watchhi): Rename to ...
4168 (mips_linux_watch_set_watchhi): ... this. Update function
4169 comment. All callers changed.
4170 (mips_linux_read_watch_registers): Update function comment.
4171 Add new parameters 'lwpid', 'watch_readback', and
4172 'watch_readback_valid'. Update.
4173 (type_to_irw): Rename to ...
4174 (mips_linux_watch_type_to_irw): ... this. Update function
4175 comment. All callers changed.
4176 (fill_mask): Update function comment.
4177 (try_one_watch): Rename to ...
4178 (mips_linux_watch_try_one_watch): ... this. Change the type
4179 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4180 (populate_regs_from_watches): Rename to ...
4181 (mips_linux_watch_populate_regs): ... this. Add parameter
4182 'current_watches'. All callers changed.
4183
4184 2013-07-27 Yao Qi <yao@codesourcery.com>
4185
4186 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4187 the code.
4188 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4189 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4190 (struct pt_watch_regs): Likewise.
4191 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4192 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4193 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4194 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4195 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4196
4197 2013-07-27 Yao Qi <yao@codesourcery.com>
4198
4199 * breakpoint.h: Include break-common.h.
4200 (enum target_hw_bp_type): Move to ...
4201 * common/break-common.h: ... here. New.
4202
4203 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4204
4205 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4206 process group regardless of having tty on stdin.
4207
4208 2013-07-25 Doug Evans <dje@google.com>
4209
4210 * linux-fork.h (detach_fork): Delete.
4211
4212 2013-07-25 Tom Tromey <tromey@redhat.com>
4213
4214 PR remote/15256, PR remote/15266:
4215 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4216 * monitor.c (monitor_detach): Use unpush_target.
4217 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4218 * remote-mips.c (mips_detach): Use unpush_target. Don't
4219 call mips_close.
4220 * remote-sim.c (gdbsim_detach): Use unpush_target.
4221 * target.c (pop_target): Remove.
4222 (pop_all_targets_above): Don't call target_close.
4223 (target_close): Assert that the target is unpushed.
4224 * target.h (pop_target): Don't declare.
4225 * tracepoint.c (tfile_open): Use unpush_target.
4226
4227 2013-07-25 Tom Tromey <tromey@redhat.com>
4228
4229 * linux-thread-db.c (init_thread_db_ops): Call
4230 complete_target_initialization.
4231 (_initialize_thread_db): Don't call add_target.
4232 * target.c (complete_target_initialization): New function.
4233 (add_target_with_completer): Call it.
4234 * target.h (complete_target_initialization): Declare.
4235
4236 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4237
4238 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4239 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4240 (HPPANBSD_SIZEOF_GREGS): New define.
4241 (hppaobsd_supply_gregset): Handle additional registers.
4242 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4243 we provide more registers now.
4244 (hppabsd_supply_gregset): Supply additional registers.
4245 (hppabsd_collect_gregset): Collect additional registers.
4246
4247 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4248
4249 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4250 (hppabsd_dwarf2_frame_init_reg): New function.
4251 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4252
4253 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4254
4255 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4256 'z' format code. Remove error for optimized out values, standard
4257 code will handle these fine.
4258
4259 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4260
4261 * NEWS: Mention new 'z' formatter.
4262 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4263 (_initialize_printcmd): Mention 'z' formatter in help text of the
4264 'x' command.
4265
4266 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4267
4268 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4269 formatting.
4270
4271 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4272
4273 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4274 interface can evaluate arguments. Fallback to the old mode if it
4275 cannot.
4276 (create_exception_master_breakpoint): Likewise.
4277 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4278 (struct sym_probe_fns elf_probe_fns): Export function above to the
4279 probe interface.
4280 * probe.c (can_evaluate_probe_arguments): New function.
4281 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4282 function pointer.
4283 (can_evaluate_probe_arguments): New function prototype.
4284 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4285 probe interface can evaluate arguments. Fallback to the old mode
4286 if it cannot.
4287 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4288 interface can evaluate arguments. Warning the user if it cannot.
4289 (stap_can_evaluate_probe_arguments): New function.
4290 (struct probe_ops stap_probe_ops): Export function above to the
4291 probe interface.
4292 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4293 New function pointer.
4294
4295 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4296
4297 * Makefile.in (SFILES): Add common/target-common.c.
4298 Add common/target-common.h to headers.
4299 (COMMON_OBS): Add target-common.o.
4300 (target-common.o): New target.
4301 * linux-nat.h (resume_kind): Move to common/target-common.h.
4302 * target.c (target_waitstatus_to_string): Move to
4303 common/target-common.c.
4304 * target.h: Include target-common.h.
4305 (target_waitkind): Move to common/target-common.h.
4306 (target_waitstatus): Likewise.
4307 (TARGET_WNOHANG): Likewise.
4308 * common/target-common.c: New file.
4309 * common/target-common.h: New file.
4310
4311 2013-07-24 Doug Evans <dje@google.com>
4312
4313 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4314 a warning.
4315
4316 2013-07-23 Yao Qi <yao@codesourcery.com>
4317
4318 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4319 parameter 'gdbarch'.
4320 (i386_stack_tramp_frame_sniffer): Caller update.
4321 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4322 parameter 'gdbarch' and 'target'.
4323 (i386_linux_core_read_description): Caller update.
4324 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4325 Likewise.
4326 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4327 declaration.
4328
4329 2013-07-23 Tom Tromey <tromey@redhat.com>
4330
4331 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4332 2013-07-22.
4333
4334 2013-07-22 Doug Evans <dje@google.com>
4335
4336 * exec.h (remove_target_sections): Delete arg abfd.
4337 * exec.c (exec_close): Update call to remove_target_sections.
4338 (remove_target_sections): Delete arg abfd.
4339 * solib.c (update_solib_list): Ditto.
4340 (reload_shared_libraries_1): Ditto.
4341 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4342 * target.h (struct target_section): Rename key to owner.
4343 All uses updated.
4344
4345 2013-07-22 Tom Tromey <tromey@redhat.com>
4346
4347 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4348
4349 2013-07-22 Tom Tromey <tromey@redhat.com>
4350
4351 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4352 Simplify cleanup handling.
4353
4354 2013-07-22 Tom Tromey <tromey@redhat.com>
4355
4356 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4357 on all return paths.
4358
4359 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4360
4361 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4362 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4363 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4364
4365 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4366
4367 * top.c (print_gdb_version): Add help, apropos description and
4368 url to online documentation.
4369
4370 2013-07-19 Hui Zhu <hui@codesourcery.com>
4371
4372 PR gdb/15692
4373 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4374
4375 2013-07-19 Yao Qi <yao@codesourcery.com>
4376
4377 * target.c (update_current_target): Change the default action
4378 of 'to_traceframe_info' from tcomplain to return_zero.
4379 * target.h (struct target_ops) <to_traceframe_info>: Add more
4380 comments.
4381 * valops.c (read_value_memory): Call
4382 traceframe_available_memory unconditionally.
4383
4384 2013-07-18 Yao Qi <yao@codesourcery.com>
4385
4386 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4387 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4388 symbol without prefix. If found, set its type to
4389 'mst_solib_trampoline'.
4390
4391 2013-07-17 Doug Evans <dje@google.com>
4392
4393 * NEWS: Mention "set print raw frame-arguments".
4394 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4395 * stack.c (print_raw_frame_arguments): New static global.
4396 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4397 (_initialize_stack): New command "set/show print raw frame-arguments".
4398 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4399 (set_print_raw, show_print_raw): New functions.
4400 (_initialize_valprint): New prefix command "set/show print raw".
4401 * valprint.h (value_print_options): Improve comments.
4402
4403 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4404 of all *list variables.
4405
4406 * gdbcmd.h (togglelist): Delete.
4407 * cli/cli-cmds.c (togglelist): Delete.
4408 (init_cmd_lists): Update.
4409 * cli/cli-cmds.h (togglelist): Delete.
4410
4411 2013-07-17 Tom Tromey <tromey@redhat.com>
4412
4413 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4414 dwarf2_per_objfile.
4415
4416 2013-07-16 Doug Evans <dje@google.com>
4417
4418 * nto-tdep.c (nto_relocate_section_addresses): Update,
4419 target_section.bfd deleted.
4420 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4421 * s390-tdep.c (s390_load): Ditto.
4422 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4423
4424 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4425
4426 * common/format.c (parse_format_string): Add checks for NULL
4427 character before calling strchr.
4428
4429 2013-07-16 Doug Evans <dje@google.com>
4430
4431 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4432 temp_pathname argument.
4433 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4434 when opening the file fails.
4435
4436 * target.h (struct target_section): Delete member bfd.
4437 All users updated to use the_bfd_section->owner instead.
4438 * exec.c (add_to_section_table): Assert bfd is expected value.
4439 Remove initialization of target_section.bfd.
4440 (remove_target_sections): Update.
4441 (section_table_available_memory): Update.
4442 (section_table_xfer_memory_partial): Update.
4443 (print_section_info): Update.
4444 (exec_set_section_address): Update.
4445 * record-full.c (record_full_core_xfer_partial): Update.
4446 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4447 * solib-target.c (solib_target_relocate_section_addresses): Update.
4448 * symfile.c (build_section_addr_info_from_section_table): Update.
4449 * target.c (memory_xfer_live_readonly_partial): Update.
4450 (memory_xfer_partial_1): Update.
4451
4452 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4453
4454 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4455 now available for embedded (BookE) and server (BookS) processors,
4456 correct mentions of 'booke' and adjust comments accordingly in order to
4457 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4458 (have_ptrace_booke_interface): Rename function and variable
4459 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4460 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4461 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4462 'hwdebug_point_cmp'. Update all uses.
4463 (booke_find_thread_points_by_tid): Rename function
4464 'booke_find_thread_points_by_tid' to
4465 'hwdebug_find_thread_points_by_tid'. Update all uses.
4466 (booke_insert_point): Rename function 'booke_insert_point' to
4467 'hwdebug_insert_point'. Update all uses.
4468 (booke_remove_point): Rename function 'booke_remove_point' to
4469 'hwdebug_remove_point'. Update all uses.
4470
4471 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4472
4473 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4474 numbers with enum values.
4475
4476 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4477
4478 PR threads/13217
4479 * thread.c (thread_apply_all_command): Check for valid threads
4480 and thread count.
4481 (thread_array_cleanup): New struct.
4482 (set_thread_refcount): New function.
4483
4484 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4485
4486 * infcmd.c (default_print_one_register_info): Reuse function
4487 print_hex_chars.
4488
4489 2013-07-10 Tom Tromey <tromey@redhat.com>
4490
4491 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4492 (ada-exp.o): New target.
4493
4494 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4495
4496 * mt-tdep.c (mt_registers_info): Call
4497 get_no_prettyformat_print_options instead of
4498 get_raw_print_options (regression by last patch from Doug
4499 Evans).
4500
4501 2013-07-09 Pedro Alves <palves@redhat.com>
4502
4503 Checked in by Joel Brobecker <brobecker@adacore.com>.
4504 * ada-lang.c (coerce_unspec_val_to_type): Use
4505 value_optimized_out_const.
4506 * value.c (value_optimized_out_const): New function.
4507 * value.h (value_optimized_out_const): New declaration.
4508
4509 2013-07-09 Doug Evans <dje@google.com>
4510
4511 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4512 Enum values rename as well. All uses updated.
4513 * valprint.h (value_print_options): Rename member pretty to
4514 pretty format. Rename member prettyprint_arrays to
4515 prettyformat_arrays. Rename member prettyprint_structs to
4516 prettyformat_structs. All uses updated.
4517 (get_no_prettyformat_print_options): Renamed from
4518 get_raw_print_options.
4519 * valprint.c (get_no_prettyformat_print_options): Renamed from
4520 get_raw_print_options. All callers updated.
4521 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4522 All callers updated.
4523 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4524 All callers updated.
4525 (_initialize_valprint): Improve help text for "set print pretty" and
4526 "set print arrays".
4527
4528 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4529
4530 * value.c (value_bits_valid): Revert previous change, and change
4531 by Pedro on 2013-07-04, due to regressions in
4532 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4533
4534 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4535 Pedro Alves <palves@redhat.com>
4536
4537 * value.c (value_bits_valid): If the value is not lval_computed
4538 or has no check validity handler then the answer is the
4539 optimized_out flag, otherwise defer to the handler.
4540
4541 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4542
4543 * top.c (print_gdb_configuration): Explain in output of
4544 --configuration what does "relocatable" mean.
4545
4546 * main.c (print_gdb_help): Regroup options in the --help text.
4547 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4548 the relevant discussions.
4549
4550 2013-07-06 Yao Qi <yao@codesourcery.com>
4551
4552 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4553 Remove parameter 'lsal'.
4554 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4555 to inner block. Caller update.
4556 (base_breakpoint_create_breakpoints_sal): Update.
4557 (bkpt_create_breakpoints_sal): Likewise.
4558 (tracepoint_create_breakpoints_sal): Likewise.
4559 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4560 element 0 of vector 'canonical->sals'.
4561
4562 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4563
4564 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4565 register number instead of the pseudo register one.
4566 (rs6000_dwarf2_reg_to_regnum): Likewise.
4567
4568 2013-07-04 Pedro Alves <palves@redhat.com>
4569
4570 * findvar.c (value_of_register): Use allocate_optimized_out_value
4571 if the register has been optimized out, instead of
4572 set_value_optimized_out.
4573 * frame-unwind.c (frame_unwind_got_optimized): Use
4574 allocate_optimized_out_value.
4575
4576 2013-07-04 Pedro Alves <palves@redhat.com>
4577
4578 * value.c (value_bits_valid): If the value is not lval_computed,
4579 or doesn't have a check_validity hook, assume the value is entirely
4580 valid.
4581
4582 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4583
4584 * stack.c (read_frame_arg): No longer fetch lazy values.
4585 * value.c (value_optimized_out): If the value is not already
4586 marked optimized out, and is lazy then fetch it.
4587 (value_primitive_field): Move optimized out check to later in the
4588 function, after we have loaded any lazy values.
4589 (value_fetch_lazy): Use optimized out flag directly rather than
4590 calling optimized_out method.
4591
4592 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4593
4594 * valops.c: Don't include "user-regs.h".
4595 (value_fetch_lazy): Moved to value.c.
4596 * value.c: Include "user-regs.h".
4597 (value_fetch_lazy): Moved from valops.c.
4598
4599 2013-07-04 Yao Qi <yao@codesourcery.com>
4600
4601 Revert:
4602 2013-06-27 Yao Qi <yao@codesourcery.com>
4603
4604 * common/create-version.sh: Update comments. Handle the case
4605 that TARGET_ALIAS is empty.
4606
4607 2013-07-03 Pedro Alves <palves@redhat.com>
4608
4609 * Makefile.in (config.status): Depend on development.sh.
4610 (aclocal_m4_deps): Add libmcheck.m4.
4611 * acinclude.m4: Include libmcheck.m4.
4612 * configure.ac: Source development.sh instead of setting
4613 'development' here. --enable-libmcheck/--disable-libmcheck code
4614 factored out to GDB_AC_LIBMCHECK. Run it.
4615 * development.sh: New file.
4616 * libmcheck.m4: New file.
4617 * configure: Regenerate.
4618
4619 2013-07-02 Tom Tromey <tromey@redhat.com>
4620
4621 * contrib/ari/update-web-ari.sh: Update for version.in change.
4622
4623 2013-07-02 Tom Tromey <tromey@redhat.com>
4624
4625 * common/ptid.h: Comment fixes.
4626
4627 2013-07-01 Tom Tromey <tromey@redhat.com>
4628
4629 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4630 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4631 (dwarf2_read_index, create_all_comp_units): Update.
4632
4633 2013-07-01 Tom Tromey <tromey@redhat.com>
4634
4635 * configure.ac (build_warnings): Add -Wold-style-definition.
4636 * configure: Rebuild.
4637 * machoread.c (_initialize_machoread): Use "(void)".
4638 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4639 use "(void)".
4640
4641 2013-07-01 Tom Tromey <tromey@redhat.com>
4642
4643 * configure.ac (build_warnings): Add -Wold-style-declaration.
4644 * configure: Rebuild.
4645 * dsrec.c (make_srec): Use "static const", not "const static".
4646 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4647 not "const static".
4648 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4649 Use "static const", not "const static".
4650 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4651 not "const static".
4652 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4653 not "const static".
4654 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4655 not "const static".
4656 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4657 not "const static".
4658 (v850_dbtrap_breakpoint_from_pc): Likewise.
4659 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4660 not "const static".
4661
4662 2013-07-01 Tom Tromey <tromey@redhat.com>
4663
4664 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4665 * configure: Rebuild.
4666
4667 2013-07-01 Pedro Alves <palves@redhat.com>
4668
4669 * defs.h: Include "pathmax.h".
4670 * utils.c: Don't include sys/param.h.
4671 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4672 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4673 instead of MAXPATHLEN.
4674 * solib-sunos.c: Don't include sys/param.h.
4675 * xcoffread.c: Don't include sys/param.h.
4676 * bsd-kvm.c: Don't include sys/param.h.
4677 * darwin-nat.c: Don't include sys/param.h.
4678 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4679 * darwin-nat-info.c: Don't include sys/param.h.
4680 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4681 MAXPATHLEN.
4682 * i386obsd-nat.c: Don't include sys/param.h.
4683 * inf-child.c: Don't include sys/param.h.
4684 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4685 * linux-fork.c: Don't include sys/param.h.
4686 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4687 * linux-nat.c: Don't include sys/param.h.
4688 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4689 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4690 * m68klinux-nat.c: Don't include sys/param.h.
4691 * nbsd-nat.c: Don't include sys/param.h.
4692 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4693 * ppc-linux-nat.c: Don't include sys/param.h.
4694 * rs6000-nat.c: Don't include sys/param.h.
4695 * spu-linux-nat.c. Don't include sys/param.h.
4696 * windows-nat.c: Don't include sys/param.h.
4697 * xtensa-linux-nat.c: Don't include sys/param.h.
4698 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4699
4700 2013-07-01 Pedro Alves <palves@redhat.com>
4701
4702 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4703 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4704 * gnulib/aclocal.m4: Regenerate.
4705 * gnulib/config.in: Regenerate.
4706 * gnulib/configure: Regenerate.
4707 * gnulib/import/pathmax.h: New file.
4708 * gnulib/import/Makefile.am: Regenerate.
4709 * gnulib/import/Makefile.in: Regenerate.
4710 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4711 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4712 * gnulib/import/m4/pathmax.m4: New file.
4713
4714 2013-07-01 Pedro Alves <palves@redhat.com>
4715
4716 * configure.ac (GDBINIT): Define, depending on host.
4717 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4718 * top.c (PATH_MAX): Delete fallback definition.
4719 (GDBINIT_FILENAME): Delete.
4720 (gdbinit): Reimplement as const char array set to the GDBINIT
4721 string constant.
4722 * top.h (gdbinit): Make const.
4723 * configure, config.in: Regenerate.
4724
4725 2013-07-01 Pedro Alves <palves@redhat.com>
4726
4727 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4728 * cli/cli-cmds.h (source_script): Likewise.
4729 * exceptions.c (catch_command_errors_const): New function.
4730 * exceptions.h (catch_command_errors_const): Declare.
4731 * main.c (get_init_files): Make parameters const, and adjust.
4732 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4733 'local_gdbinit' locals const. Adjust to use
4734 catch_command_errors_const.
4735 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4736 'local_gdbinit' locals const.
4737
4738 2013-07-01 Pedro Alves <palves@redhat.com>
4739
4740 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4741 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4742 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4743 <unistd.h>.
4744
4745 2013-07-01 Pedro Alves <palves@redhat.com>
4746
4747 Import the "unistd" gnulib module.
4748 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4749 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4750 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4751 import/m4/unistd_h.m4.
4752 * gnulib/aclocal.m4: Renenerate.
4753 * gnulib/config.in: Renenerate.
4754 * gnulib/configure: Renenerate.
4755 * gnulib/import/Makefile.am: Renenerate.
4756 * gnulib/import/Makefile.in: Renenerate.
4757 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4758 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4759 * gnulib/import/m4/off_t.m4: New file.
4760 * gnulib/import/m4/ssize_t.m4: New file.
4761 * gnulib/import/m4/sys_types_h.m4: New file.
4762 * gnulib/import/m4/unistd_h.m4: New file.
4763 * gnulib/import/sys_types.in.h: New file.
4764 * gnulib/import/unistd.c: New file.
4765 * gnulib/import/unistd.in.h: New file.
4766
4767 2013-07-01 Pedro Alves <palves@redhat.com>
4768
4769 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4770 defined instead of checking HAVE_UNISTD_H.
4771
4772 2013-07-01 Pedro Alves <palves@redhat.com>
4773
4774 Reimport gnulib from scratch.
4775 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4776 import/m4/onceonly.m4.
4777 * gnulib/aclocal.m4: Renegerate.
4778 * gnulib/config.in: Renegerate.
4779 * gnulib/configure: Renegerate.
4780 * gnulib/import/Makefile.in: Renegerate.
4781 * gnulib/import/extra/update-copyright: Renegerate.
4782 * gnulib/import/m4/onceonly.m4: Delete.
4783
4784 2013-07-01 Pedro Alves <palves@redhat.com>
4785
4786 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4787
4788 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4789
4790 Code cleanup.
4791 * remote.c (async_remote_interrupt_twice): Make it static.
4792 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4793
4794 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4795
4796 * ia64-linux-tdep.c: Include <ctype.h>.
4797 (ia64_linux_stap_is_single_operand): New function.
4798 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4799
4800 2013-06-28 Tom Tromey <tromey@redhat.com>
4801
4802 * Makefile.in (version.c): Use version.in, not
4803 common/version.in.
4804 * common/create-version.sh: Likewise.
4805 * common/version.in: Move...
4806 * version.in: ...here.
4807
4808 2013-06-28 Pedro Alves <palves@redhat.com>
4809
4810 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4811 here.
4812 * utils.h (pagination_enabled): Declare.
4813
4814 2013-06-28 Pedro Alves <palves@redhat.com>
4815
4816 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4817 Move higher up in file.
4818
4819 2013-06-28 Tom Tromey <tromey@redhat.com>
4820
4821 * tracepoint.c (deprecated_readline_begin_hook)
4822 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4823 declare.
4824
4825 2013-06-28 Pedro Alves <palves@redhat.com>
4826
4827 PR tui/14880
4828 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4829 checking if they're available.
4830 * value.c (value_available_contents_eq): Change comment.
4831 * value.h (value_available_contents_eq): Expand comment.
4832
4833 2013-06-27 Tom Tromey <tromey@redhat.com>
4834
4835 * target.c (find_run_target): Remove.
4836 * target.h (find_run_target): Remove.
4837
4838 2013-06-27 Tom Tromey <tromey@redhat.com>
4839
4840 * corelow.c (core_gdbarch): Now static.
4841
4842 2013-06-27 Tom Tromey <tromey@redhat.com>
4843
4844 * target.c (target_struct_index): Remove.
4845
4846 2013-06-27 Pedro Alves <palves@redhat.com>
4847
4848 * infrun.c: Remove comment describing the 'stepping over runtime
4849 loader dynamic symbol resolution code' mechanism; moved to
4850 gdbint.texinfo.
4851
4852 2013-06-27 Pedro Alves <palves@redhat.com>
4853
4854 * exceptions.c (catch_command_errors): Remove spurious space.
4855 * exceptions.h (catch_command_errors): Second parameter is "arg",
4856 not "command".
4857
4858 2013-06-27 Yao Qi <yao@codesourcery.com>
4859
4860 * common/create-version.sh: Update comments. Handle the case
4861 that TARGET_ALIAS is empty.
4862
4863 2013-06-26 Pedro Alves <palves@redhat.com>
4864
4865 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4866 comment.
4867
4868 2013-06-26 Pedro Alves <palves@redhat.com>
4869
4870 * infrun.c: Update comments on stepping over runtime loader
4871 dynamic symbol resolution code.
4872
4873 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4874
4875 * ax-gdb.h (union exp_element): Forward declare.
4876 * parser-defs.h: Include expression.h.
4877
4878 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4879
4880 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4881
4882 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4883
4884 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4885
4886 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4887
4888 Fix trace-status to output proper start-time and stop-time.
4889 * tracepoint.c (trace_status_command): Fix type of printf arg to
4890 prevent improper type conversion.
4891 (trace_status_mi): Likewise.
4892
4893 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4894
4895 * mips-tdep.c (mips_next_pc): Fix a typo.
4896
4897 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4898
4899 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4900
4901 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4902 Yao Qi <yao@codesourcery.com>
4903
4904 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4905 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4906 * mi/mi-main.c (print_variable_or_computed): New function.
4907 (mi_cmd_trace_frame_collected): New function.
4908 * tracepoint.c (find_trace_state_variable_by_number): New.
4909 (struct traceframe_info): Move to tracepoint.h
4910 (struct collection_list): Likewise.
4911 (do_collect_symbol): Include locals and arguments in the
4912 collected variables list.
4913 (clear_collection_list): Clear wholly collected variables list
4914 and computed variables list.
4915 (append_exp): New function.
4916 (encode_actions_1): Include variables in the wholly
4917 collected variables list. Include memory ranges and
4918 full-fledged expressions in the computed expressions list.
4919 (encode_actions): Move some code to ...
4920 Return the cleanup chain.
4921 (encode_actions_rsp): ... here. New function.
4922 (get_traceframe_location, get_traceframe_info): Remove static.
4923 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4924 (struct collection_list): Moved from tracepoint.c. Add two
4925 new fields 'wholly_collected' and 'computed'.
4926 (find_trace_state_variable_by_number): Declare.
4927 (encode_actions): Adjust declaration.
4928 (encode_actions_rsp): Declare.
4929 (get_traceframe_info, get_traceframe_location): Declare.
4930
4931 * NEWS: Mention new MI command -trace-frame-collected.
4932
4933 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4934 Yao Qi <yao@codesourcery.com>
4935
4936 * ctf.c (ctf_traceframe_info): Push trace state variables
4937 present in the trace data into the traceframe info object.
4938 * breakpoint.c (DEF_VEC_I): Remove.
4939 * common/filestuff.c (DEF_VEC_I): Likewise.
4940 * dwarf2loc.c (DEF_VEC_I): Likewise.
4941 * mi/mi-main.c (DEF_VEC_I): Likewise.
4942 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4943 * features/traceframe-info.dtd: Add tvar element and its
4944 attributes.
4945 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4946 (build_traceframe_info): Push trace state variables present in
4947 the trace data into the traceframe info object.
4948 (traceframe_info_start_tvar): New function.
4949 (tvar_attributes): New.
4950 (traceframe_info_children): Add "tvar" element.
4951 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4952
4953 * NEWS: Mention the change in GDB and GDBserver.
4954
4955 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4956 Yao Qi <yao@codesourcery.com>
4957
4958 * tracepoint.c (trace_dump_command): Move code to ...
4959 (get_traceframe_location): ... here. New.
4960
4961 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4962 Yao Qi <yao@codesourcery.com>
4963
4964 * tracepoint.c (trace_dump_command): GDB emits an error
4965 instead of a warning when a traceframe is not selected.
4966
4967 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4968 Yao Qi <yao@codesourcery.com>
4969
4970 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4971 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4972 in collection_list.
4973 (do_clear_collection_list, init_collection_list): New.
4974 (encode_actions): Add local variables 'tracepoint_list' and
4975 'stepping_list'. Call init_collection_list and make cleanup
4976 which calls do_clear_collection_list. Don't call
4977 clear_collection_list.
4978 (_initialize_tracepoint): Delete references to
4979 'tracepoint_list' and 'stepping_list'.
4980
4981 2013-06-25 Tom Tromey <tromey@redhat.com>
4982
4983 * common/create-version.sh (date): Use "$", not "$$" in sed
4984 expression.
4985
4986 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4987
4988 * NEWS (New targets): Add entry for TI MSP430.
4989
4990 2013-06-25 Yao Qi <yao@codesourcery.com>
4991
4992 * remote.c (remote_start_remote): Move code to upload tsv
4993 earlier.
4994
4995 2013-06-25 Yao Qi <yao@codesourcery.com>
4996 Hui Zhu <hui@codesourcery.com>
4997 Pedro Alves <palves@redhat.com>
4998
4999 PR breakpoints/15075
5000 PR breakpoints/15434
5001 * breakpoint.c (bpstat_stop_status): Call
5002 b->ops->after_condition_true.
5003 (update_dprintf_command_list): Don't append "continue" command
5004 to the command list of dprintf breakpoint.
5005 (base_breakpoint_after_condition_true): New function.
5006 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5007 (dprintf_after_condition_true): New function.
5008 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5009 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5010
5011 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5012
5013 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5014 (ALLDEPFILES): Add msp430-tdep.c.
5015 * configure.tgt (msp430*-*-elf): New target.
5016 * msp430-tdep.c: New file.
5017
5018 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5019
5020 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5021 microMIPS synthetic symbols.
5022
5023 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5024
5025 * objfiles.h (pc_in_section): New prototype.
5026 (in_plt_section): Remove name argument, replace prototype with
5027 static inline function.
5028 * mips-tdep.h: Include "objfiles.h".
5029 (in_mips_stubs_section): New function.
5030 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5031 in_solib_call_trampoline member.
5032 (hppa_in_solib_call_trampoline): Remove name argument.
5033 * objfiles.c (pc_in_section): New function.
5034 (in_plt_section): Remove function.
5035 * mips-linux-tdep.c: Include "objfiles.h".
5036 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5037 name argument. Return 1 rather than the low 16-bit halfword of
5038 any instruction examined.
5039 (mips_linux_in_dynsym_resolve_code): Update
5040 mips_linux_in_dynsym_stub call accordingly.
5041 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5042 rather than an equivalent hand-coded sequence.
5043 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5044 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5045 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5046 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5047 in_opd_section.
5048 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5049 on call to tdep->in_solib_call_trampoline.
5050 (hppa_in_solib_call_trampoline): Remove name argument, update
5051 according to in_plt_section change.
5052 (hppa_skip_trampoline_code): Update according to in_plt_section
5053 change.
5054 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5055 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5056 Likewise.
5057 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5058 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5059 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5060 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5061 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5062 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5063 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5064 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5065 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5066 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5067 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5068 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5069 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5070
5071 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5072
5073 * common/create-version.sh: Fix expansion of $host_alias
5074 and $target_alias in generation of HOST_NAME and TARGET_NAME
5075 (resp.).
5076
5077 2013-06-24 Tom Tromey <tromey@redhat.com>
5078
5079 * common/create-version.sh: New file.
5080 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5081 create-version.sh.
5082 (HFILES_NO_SRCDIR): Use common/version.h.
5083 * version.in: Move to ...
5084 * common/version.in: ... here. Replace date with "DATE".
5085 * version.h: Move to ...
5086 * common/version.h: ... here.
5087
5088 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5089
5090 * gdb/gnulib/Makefile.in: Update date in copyright header.
5091 * gdb/gnulib/configure.ac: Ditto.
5092 * gdb/gnulib/update-gnulib.sh: Ditto.
5093
5094 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5095
5096 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5097 "gdb/gnulib/import".
5098
5099 2013-06-21 Will Newton <will.newton@linaro.org>
5100
5101 * doublest.c (ldfrexp): Remove function.
5102 (convert_doublest_to_floatformat): Call frexpl instead of
5103 ldfrexp.
5104
5105 2013-06-21 Will Newton <will.newton@linaro.org>
5106
5107 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5108 * gnulib/aclocal.m4: Regenerate.
5109 * gnulib/config.in: Regenerate.
5110 * gnulib/configure: Regenerate.
5111 * gnulib/import/Makefile.am: Update.
5112 * gnulib/import/Makefile.in: Update.
5113 * gnulib/import/m4/gnulib-cache.m4: Update.
5114 * gnulib/import/m4/gnulib-comp.m4: Update.
5115 * gnulib/import/float+.h: Import.
5116 * gnulib/import/float.c: Import.
5117 * gnulib/import/float.in.h: Import.
5118 * gnulib/import/fpucw.h: Import.
5119 * gnulib/import/frexp.c: Import.
5120 * gnulib/import/frexpl.c: Import.
5121 * gnulib/import/isnan.c: Import.
5122 * gnulib/import/isnand-nolibm.h: Import.
5123 * gnulib/import/isnand.c: Import.
5124 * gnulib/import/isnanl-nolibm.h: Import.
5125 * gnulib/import/isnanl.c: Import.
5126 * gnulib/import/itold.c: Import.
5127 * gnulib/import/m4/exponentd.m4: Import.
5128 * gnulib/import/m4/exponentl.m4: Import.
5129 * gnulib/import/m4/float_h.m4: Import.
5130 * gnulib/import/m4/fpieee.m4: Import.
5131 * gnulib/import/m4/frexp.m4: Import.
5132 * gnulib/import/m4/frexpl.m4: Import.
5133 * gnulib/import/m4/isnand.m4: Import.
5134 * gnulib/import/m4/isnanl.m4: Import.
5135 * gnulib/import/m4/math_h.m4: Import.
5136 * gnulib/import/math.c: Import.
5137 * gnulib/import/math.in.h: Import.
5138
5139 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5140
5141 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5142 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5143 signature_INTEL_edx comparisons.
5144
5145 2013-06-20 Doug Evans <dje@google.com>
5146
5147 symtab/15652
5148 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5149 All callers updated.
5150 (open_dwp_file): If we can't find the dwp file, search the basename
5151 in debug-file-directory.
5152
5153 * dwarf2read.c (struct dwp_file): Fix comment.
5154 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5155
5156 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5157 better.
5158
5159 2013-06-20 Yao Qi <yao@codesourcery.com>
5160
5161 * breakpoint.c (create_breakpoint): Fix code indentation.
5162
5163 2013-06-20 Yao Qi <yao@codesourcery.com>
5164
5165 * breakpoint.c (create_breakpoints_sal_default): Remove
5166 parameter 'lsal'. Update declaration.
5167 (bkpt_create_breakpoints_sal): Caller update.
5168 (tracepoint_create_breakpoints_sal): Likewise.
5169
5170 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5171 Yao Qi <yao@codesourcery.com>
5172
5173 * NEWS: Mention the new option '--skip-unavailable' of command
5174 -data-list-register-values.
5175 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5176 --skip-unavailable option. Adjust to use output_register.
5177 (output_register): Add new 'skip_unavailable' parameter.
5178 Handle it.
5179
5180 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5181
5182 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5183 common/i386-gcc-cpuid.h.
5184 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5185 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5186 Copy the latest version from upstream gcc.
5187 * common/linux-btrace.c: Include i386-cpuid.h.
5188 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5189 call to i386_cpuid.
5190 (cpu_supports_btrace): Likewise.
5191 * go32-nat.c: Include i386-cpuid.h.
5192 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5193
5194 2013-06-19 Doug Evans <dje@google.com>
5195
5196 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5197 (get_section_index): Ditto.
5198
5199 2013-06-19 Tom Tromey <tromey@redhat.com>
5200
5201 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5202 "dprintf" help.
5203
5204 2013-06-18 Doug Evans <dje@google.com>
5205
5206 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5207 before using it.
5208 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5209 Move test of cu_index closer to use. Print complaint if cu_index
5210 is bad.
5211
5212 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5213
5214 * machoread.c (oso_vector): Delete this global.
5215 (macho_register_oso): Add new parameter "oso_vector_ptr".
5216 Use it instead of the "oso_vector" global.
5217 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5218 (macho_symfile_read): Use a local oso_vector, to be free'ed
5219 at the end of this function, in place of the old "oso_vector"
5220 global. Update various function calls accordingly. Use one
5221 single cleanup chain for the entire function.
5222
5223 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5224
5225 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5226 DWARF2_PER_OBJFILE by uses of DATA instead.
5227
5228 2013-06-18 Tom Tromey <tromey@redhat.com>
5229
5230 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5231 argument.
5232 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5233 Special case signals other than GDB_SIGNAL_TRAP.
5234 (explains_signal_watchpoint): New function.
5235 (base_breakpoint_explains_signal): Add 'sig' argument.
5236 (initialize_breakpoint_ops): Set 'explains_signal' method for
5237 watchpoints.
5238 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5239 signal argument.
5240 (bpstat_explains_signal): Likewise.
5241 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5242
5243 2013-06-18 Tom Tromey <tromey@redhat.com>
5244
5245 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5246
5247 2013-06-18 Tom Tromey <tromey@redhat.com>
5248
5249 * python/python.c (finish_python_initialization): Decref
5250 'pythondir' on failure path as well.
5251
5252 2013-06-18 Tom Tromey <tromey@redhat.com>
5253
5254 PR symtab/15391:
5255 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5256 after taking bits_to_skip into account. Sign extend byte_offset.
5257 * utils.h (gdb_sign_extend): Declare.
5258 * utils.c (gdb_sign_extend): New function.
5259
5260 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5261
5262 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5263
5264 2013-06-17 Pierre Muller <muller@sourceware.org>
5265
5266 * corelow.c (core_open): Print GDB signal name instead of target
5267 signal number.
5268
5269 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5270
5271 * .gitignore: Add /gcore.
5272
5273 2013-06-13 Doug Evans <dje@google.com>
5274
5275 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5276 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5277
5278 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5279
5280 * stack.c (backtrace_command_1): Fix indentation.
5281
5282 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5283
5284 * window-nat.c (thread_rec): Add missing empty line after
5285 local variable declaration.
5286
5287 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5288
5289 * windows-nat.c (thread_rec): Revert format used to print
5290 error code returned by SuspendThread from %d back to %u.
5291
5292 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5293
5294 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5295 ID in debug trace.
5296 (get_windows_debug_event): Likewise, for all debug traces.
5297
5298 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5299
5300 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5301 warning message.
5302
5303 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5304 Yao Qi <yao@codesourcery.com>
5305
5306 * mi/mi-main.c (get_register): Remove declaration.
5307 (output_register): Declare.
5308 (mi_cmd_data_list_register_values): Remove local variable
5309 'tuple_cleanup'. Move some code into output_register.
5310 (get_register): Renamed to ...
5311 (output_register): ... this. Output the register's
5312 "number" ui_out tuple here.
5313
5314 2013-06-07 Pedro Alves <palves@redhat.com>
5315
5316 * darwin-nat.c: Fix formating in copyright header.
5317 * darwin-nat.h: Likewise.
5318 * gnu-nat.c: Likewise.
5319 * machoread.c: Likewise.
5320
5321 2013-06-07 Pedro Alves <palves@redhat.com>
5322
5323 PR server/14823
5324 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5325 static. Output a global target description pointer.
5326 (init_registers_${name}): Adjust to initialize a
5327 target description structure.
5328
5329 2013-06-07 Will Newton <will.newton@linaro.org>
5330
5331 * printcmd.c (build_address_symbolic): Call
5332 gdbarch_addr_bits_remove for text minimal symbols.
5333
5334 2013-06-07 Will Newton <will.newton@linaro.org>
5335
5336 * MAINTAINERS: Add myself to Write After Approval.
5337
5338 2013-06-07 Yao Qi <yao@codesourcery.com>
5339
5340 * tracepoint.c (start_tracing): Move code to ...
5341 (trace_reset_local_state): ... here. New.
5342 (disconnect_tracing): Don't call set_current_traceframe,
5343 set_tracepoint_num, and set_traceframe_context. Call
5344 trace_reset_local_state instead.
5345 (tfile_close): Call trace_reset_local_state.
5346 * ctf.c (ctf_close): Likewise.
5347 * remote.c (remote_close): Likewise.
5348 * tracepoint.h (trace_reset_local_state): Declare.
5349
5350 2013-06-06 Doug Evans <dje@google.com>
5351
5352 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5353 and fix header docs.
5354
5355 2013-06-05 Doug Evans <dje@google.com>
5356 Keith Seitz <keiths@redhat.com>
5357
5358 PR 15519
5359 * cp-namespace.c (find_symbol_in_baseclass): Call
5360 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5361 Check result of call to lookup_symbol_static.
5362 Call lookup_static_symbol_aux unconditionally.
5363 Call check_typedef on base types before accessing them.
5364 (cp_lookup_nested_symbol): Fix comment.
5365
5366 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5367
5368 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5369 minimal symbols pointing to function descriptors.
5370
5371 2013-06-05 Tom Tromey <tromey@redhat.com>
5372
5373 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5374
5375 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5376 Pedro Alves <palves@redhat.com>
5377
5378 * remote.c (remote_wait_as): Restore signal handler before returning
5379 when GDB gets a notification.
5380
5381 2013-06-04 Gary Benson <gbenson@redhat.com>
5382
5383 PR 2328
5384 * breakpoint.h (handle_solib_event): Moved function declaration
5385 to solib.h.
5386 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5387 (bpstat_stop_status): Pass new argument to handle_solib_event.
5388 * solib.h (update_solib_breakpoints): New function declaration.
5389 (handle_solib_event): Moved function declaration from
5390 breakpoint.h.
5391 * solib.c (update_solib_breakpoints): New function.
5392 (handle_solib_event): Moved function from breakpoint.c.
5393 Updated to call solib_ops->handle_event if not NULL.
5394 * solist.h (target_so_ops): New fields "update_breakpoints" and
5395 "handle_event".
5396 * infrun.c (set_stop_on_solib_events): New function.
5397 (_initialize_infrun): Use the above for "set
5398 stop-on-solib-events".
5399 (handle_inferior_event): Pass new argument to handle_solib_event.
5400 * solib-svr4.c (probe.h): New include.
5401 (svr4_free_library_list): New forward declaration.
5402 (probe_action): New enum.
5403 (probe_info): New struct.
5404 (probe_info): New static variable.
5405 (NUM_PROBES): New definition.
5406 (svr4_info): New fields "using_xfer", "probes_table" and
5407 "solib_list".
5408 (free_probes_table): New function.
5409 (free_solib_list): New function.
5410 (svr4_pspace_data_cleanup): Free probes table and solib list.
5411 (svr4_copy_library_list): New function.
5412 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5413 (svr4_read_so_list): New parameter "prev_lm".
5414 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5415 (svr4_current_sos): New function.
5416 (probe_and_action): New struct.
5417 (hash_probe_and_action): New function.
5418 (equal_probe_and_action): Likewise.
5419 (register_solib_event_probe): Likewise.
5420 (solib_event_probe_at): Likewise.
5421 (solib_event_probe_action): Likewise.
5422 (solist_update_full): Likewise.
5423 (solist_update_incremental): Likewise.
5424 (disable_probes_interface_cleanup): Likewise.
5425 (svr4_handle_solib_event): Likewise.
5426 (svr4_update_solib_event_breakpoint): Likewise.
5427 (svr4_update_solib_event_breakpoints): Likewise.
5428 (svr4_create_solib_event_breakpoints): Likewise.
5429 (enable_break): Free probes table before creating breakpoints.
5430 Use svr4_create_solib_event_breakpoints to create breakpoints.
5431 (svr4_solib_create_inferior_hook): Free the solib list.
5432 (_initialize_svr4_solib): Initialise
5433 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5434
5435 2013-06-04 Gary Benson <gbenson@redhat.com>
5436
5437 * target.h (target_ops): New field
5438 "to_augmented_libraries_svr4_read".
5439 (target_augmented_libraries_svr4_read): New macro.
5440 * target.c (update_current_target): Handle
5441 to_augmented_libraries_svr4_read.
5442 * remote.c (remote_state): New field
5443 "augmented_libraries_svr4_read".
5444 (remote_augmented_libraries_svr4_read_feature): New function.
5445 (remote_protocol_features): Add entry for
5446 "augmented-libraries-svr4-read".
5447 (remote_augmented_libraries_svr4_read): New function.
5448 (init_remote_ops): Initialize
5449 remote_ops.to_augmented_libraries_svr4_read.
5450
5451 2013-06-04 Gary Benson <gbenson@redhat.com>
5452
5453 * NEWS: Update.
5454
5455 2013-06-04 Gary Benson <gbenson@redhat.com>
5456
5457 * objfiles.h (inhibit_section_map_updates): New function
5458 declaration.
5459 (resume_section_map_updates): Likewise.
5460 (resume_section_map_updates_cleanup): Likewise.
5461 * objfiles.c (objfile_pspace_info): Removed field
5462 "objfiles_changed_p". New fields "new_objfiles_available",
5463 "section_map_dirty" and "inhibit_updates".
5464 (allocate_objfile): Set new_objfiles_available.
5465 (free_objfile): Set section_map_dirty.
5466 (objfile_relocate1): Likewise.
5467 (in_plt_section): Likewise.
5468 (find_pc_section): Update the conditions under which the
5469 section map will be updated.
5470 (inhibit_section_map_updates): New function.
5471 (resume_section_map_updates): Likewise.
5472 (resume_section_map_updates_cleanup): Likewise.
5473
5474 2013-06-04 Gary Benson <gbenson@redhat.com>
5475
5476 * probe.h (get_probe_argument_count): New declaration.
5477 (evaluate_probe_argument): Likewise.
5478 * probe.c (get_probe_argument_count): New function.
5479 (evaluate_probe_argument): Likewise.
5480 (probe_safe_evaluate_at_pc): Use the above new functions.
5481
5482 2013-06-04 Alan Modra <amodra@gmail.com>
5483
5484 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5485 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5486 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5487 target mem reads on optional insns.
5488 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5489 ppc_insns_match_pattern calls.
5490 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5491 Add match for power7 thread safety insns, and new order of
5492 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5493 invocation in comment, and update rest of comment.
5494 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5495 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5496 (ppc64_standard_linkage2_target): Update insn offsets.
5497 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5498 stubs first. Update calls.
5499
5500 2013-06-04 Yao Qi <yao@codesourcery.com>
5501
5502 * solib.c (solib_find): Don't need dir separator if path has
5503 drive spec.
5504
5505 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5506
5507 Revert (indirectly causes a SIGSEGV):
5508 * machoread.c (macho_symfile_read): Assign first cleanup to
5509 'back_to'.
5510
5511 2013-06-03 Yao Qi <yao@codesourcery.com>
5512
5513 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5514 mi-parse.c. Make them static.
5515 (mi_all_values): Likewise.
5516 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5517 mi_parse_print_values. Make it external.
5518 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5519 Remove the declarations.
5520 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5521 * mi/mi-parse.h (mi_parse_print_values): Declare.
5522 * mi/mi-cmd-stack.c: Include mi-parse.h.
5523 (parse_print_values): Remove
5524 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5525 of parse_print_values.
5526 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5527
5528 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5529 Yao Qi <yao@codesourcery.com>
5530
5531 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5532 (encode_actions): Move code to ...
5533 (all_tracepoint_actions_and_cleanup): ... here. New.
5534 (trace_dump_command): Likewise.
5535
5536 2013-05-30 Tom Tromey <tromey@redhat.com>
5537
5538 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5539
5540 2013-05-30 Tom Tromey <tromey@redhat.com>
5541
5542 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5543 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5544 'old_chain' argument. Add 'parser_result' argument.
5545 (gdb_xml_create_parser_and_cleanup): Remove old version.
5546 (gdb_xml_parse_quick): Update.
5547 (xml_process_xincludes): Update.
5548 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5549 declare.
5550
5551 2013-05-30 Tom Tromey <tromey@redhat.com>
5552
5553 * probe.c (collect_probes): Check arguments for NULL before
5554 calling compile_rx_or_error.
5555 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5556 Remove NULL return.
5557
5558 2013-05-30 Tom Tromey <tromey@redhat.com>
5559
5560 * infrun.c (adjust_pc_after_break): Introduce an outer null
5561 cleanup.
5562
5563 2013-05-30 Tom Tromey <tromey@redhat.com>
5564
5565 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5566
5567 2013-05-30 Tom Tromey <tromey@redhat.com>
5568
5569 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5570 for 'old_chain'. Do not check 'head' before processing
5571 cleanups.
5572
5573 2013-05-30 Tom Tromey <tromey@redhat.com>
5574
5575 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5576 "cleanup_tuple".
5577
5578 2013-05-30 Tom Tromey <tromey@redhat.com>
5579
5580 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5581 inner scope. Unconditionally call do_cleanups.
5582
5583 2013-05-30 Tom Tromey <tromey@redhat.com>
5584
5585 * source.c (find_and_open_source): Call do_cleanups.
5586
5587 2013-05-30 Tom Tromey <tromey@redhat.com>
5588
5589 * linux-thread-db.c (thread_db_load_search): Unconditionally
5590 call do_cleanups.
5591
5592 2013-05-30 Tom Tromey <tromey@redhat.com>
5593
5594 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5595 for 'cleanup'; instead use a later one.
5596
5597 2013-05-30 Tom Tromey <tromey@redhat.com>
5598
5599 * python/py-breakpoint.c (bppy_get_commands): Use
5600 explicit, unconditional return.
5601 * python/py-frame.c (frapy_read_var): Likewise.
5602 * python/python.c (gdbpy_decode_line): Likewise.
5603
5604 2013-05-30 Tom Tromey <tromey@redhat.com>
5605
5606 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5607 do_cleanups on all return paths.
5608
5609 2013-05-30 Tom Tromey <tromey@redhat.com>
5610
5611 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5612
5613 2013-05-30 Tom Tromey <tromey@redhat.com>
5614
5615 * stabsread.c (read_struct_type): Call do_cleanups along
5616 all return paths.
5617
5618 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5619
5620 * mips-linux-tdep.c: Adjust formatting throughout.
5621
5622 2013-05-30 Tom Tromey <tromey@redhat.com>
5623
5624 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5625 along all return paths.
5626
5627 2013-05-30 Tom Tromey <tromey@redhat.com>
5628
5629 * symfile.c (find_separate_debug_file): Call do_cleanups
5630 along all return paths.
5631
5632 2013-05-30 Tom Tromey <tromey@redhat.com>
5633
5634 * symtab.c (search_symbols): Introduce a null cleanup for
5635 'retval_chain'.
5636
5637 2013-05-30 Tom Tromey <tromey@redhat.com>
5638
5639 * python/py-value.c (valpy_binop): Call do_cleanups before
5640 exiting loop.
5641
5642 2013-05-30 Tom Tromey <tromey@redhat.com>
5643
5644 * python/py-prettyprint.c (print_children): Remove extra
5645 do_cleanups call.
5646
5647 2013-05-30 Tom Tromey <tromey@redhat.com>
5648
5649 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5650 all return paths.
5651
5652 2013-05-30 Tom Tromey <tromey@redhat.com>
5653
5654 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5655 along all return paths.
5656
5657 2013-05-30 Tom Tromey <tromey@redhat.com>
5658
5659 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5660 call do_cleanups.
5661
5662 2013-05-30 Tom Tromey <tromey@redhat.com>
5663
5664 * varobj.c (c_value_of_root): Call do_cleanups along all
5665 return paths.
5666
5667 2013-05-30 Tom Tromey <tromey@redhat.com>
5668
5669 * tracepoint.c (trace_dump_command): Unconditionally call
5670 do_cleanups.
5671
5672 2013-05-30 Tom Tromey <tromey@redhat.com>
5673
5674 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5675 do_cleanups earlier.
5676
5677 2013-05-30 Tom Tromey <tromey@redhat.com>
5678
5679 * machoread.c (macho_symfile_read): Assign first cleanup to
5680 'back_to'.
5681
5682 2013-05-30 Tom Tromey <tromey@redhat.com>
5683
5684 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5685
5686 2013-05-30 Tom Tromey <tromey@redhat.com>
5687
5688 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5689
5690 2013-05-30 Tom Tromey <tromey@redhat.com>
5691
5692 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5693 call discard_cleanups.
5694 (inf_ptrace_attach): Likewise.
5695
5696 2013-05-30 Tom Tromey <tromey@redhat.com>
5697
5698 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5699 return paths.
5700 (mips_initialize): Likewise.
5701 (common_open): Call do_cleanups.
5702
5703 2013-05-30 Tom Tromey <tromey@redhat.com>
5704
5705 * utils.c (internal_vproblem): Call do_cleanups.
5706
5707 2013-05-30 Tom Tromey <tromey@redhat.com>
5708
5709 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5710
5711 2013-05-30 Tom Tromey <tromey@redhat.com>
5712
5713 * cli/cli-script.c (setup_user_args): Don't return after error.
5714
5715 2013-05-30 Tom Tromey <tromey@redhat.com>
5716
5717 * somread.c (som_symtab_read): Call do_cleanups.
5718
5719 2013-05-30 Tom Tromey <tromey@redhat.com>
5720
5721 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5722
5723 2013-05-30 Tom Tromey <tromey@redhat.com>
5724
5725 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5726 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5727 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5728 * source.c (show_substitute_path_command): Call do_cleanups.
5729 (unset_substitute_path_command, set_substitute_path_command):
5730 Likewise.
5731 * symfile.c (load_command): Call do_cleanups.
5732
5733 2013-05-30 Tom Tromey <tromey@redhat.com>
5734
5735 * contrib/cleanup_check.py: New file.
5736 * contrib/gcc-with-excheck: Add option parsing.
5737
5738 2013-05-30 Joel Brobecker <brobecker@adacore.com>
5739
5740 * windows-nat.c (windows_delete_thread): Add missing space
5741 in cast expression.
5742
5743 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5744
5745 * inferior.c (top level): Include tilde.h.
5746 (add_inferior_command): Call tilde_expand on the value of 'exec'
5747 argument.
5748
5749 2013-05-30 Pedro Alves <pedro@codesourcery.com>
5750 Yao Qi <yao@codesourcery.com>
5751
5752 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5753 Caller update.
5754 (encode_actions): Likewise.
5755 * remote.c (remote_download_tracepoint): Caller update.
5756 * tracepoint.h (encode_actions): Update declaration.
5757
5758 2013-05-30 Pedro Alves <palves@redhat.com>
5759
5760 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5761 pointer.
5762
5763 2013-05-30 Yao Qi <yao@codesourcery.com>
5764
5765 * remote.c (remote_check_symbols): Remove unused parameter
5766 'objfile'.
5767 Declaration update.
5768 (remote_start_remote, remote_new_objfile): Caller update.
5769
5770 2013-05-30 Yao Qi <yao@codesourcery.com>
5771
5772 * mi/mi-cmds.c (mi_cmds): Define MI command
5773 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5774 DEF_MI_CMD_CLI.
5775
5776 2013-05-29 Pedro Alves <palves@redhat.com>
5777
5778 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5779 (remote_insert_watchpoint, remote_remove_watchpoint)
5780 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5781 (remote_verify_memory, compare_sections_command)
5782 (remote_search_memory): Set the general process/thread on the
5783 remote side.
5784
5785 2013-05-29 Pedro Alves <palves@redhat.com>
5786
5787 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5788 (_initialize_aarch64_tdep): Don't call
5789 initialize_tdesc_aarch64_without_fpu.
5790 * features/Makefile (WHICH): Remove reference to
5791 aarch64-without-fpu.
5792 * features/aarch64-without-fpu.c: Delete file.
5793 * regformats/aarch64-without-fpu.dat: Delete file.
5794
5795 2013-05-28 Yao Qi <yao@codesourcery.com>
5796
5797 * tracepoint.c (stringify_collection_list): Remove parameter
5798 'string'.
5799 (encode_actions): Caller update. Remove local variables.
5800
5801 2013-05-24 Yao Qi <yao@codesourcery.com>
5802
5803 * tracepoint.c (TFILE_PID): Remove.
5804 (tfile_open): Don't add thread and inferior.
5805 (tfile_close): Don't set 'inferior_ptid'. Don't call
5806 exit_inferior_silent.
5807 (tfile_thread_alive): Remove.
5808 (init_tfile_ops): Don't set field 'to_thread_alive' of
5809 tfile_ops.
5810
5811 2013-05-23 Doug Evans <dje@google.com>
5812
5813 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5814
5815 2013-05-23 Pedro Alves <palves@redhat.com>
5816
5817 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5818 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5819 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5820 Only define if HAVE_SOCKETS is defined.
5821 * configure.ac: Check for sys/socket.h.
5822 * config.in, configure: Regenerate.
5823
5824 2013-05-23 Pedro Alves <palves@redhat.com>
5825
5826 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5827 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5828 printing uint32_t variables.
5829
5830 2013-05-23 Pedro Alves <palves@redhat.com>
5831
5832 * NEWS: Mention GDBserver range stepping support.
5833
5834 2013-05-23 Yao Qi <yao@codesourcery.com>
5835 Pedro Alves <palves@redhat.com>
5836
5837 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5838 field.
5839 * infcmd.c (step_once, until_next_command): Enable range stepping.
5840 * infrun.c (displaced_step_prepare): Disable range stepping.
5841 (resume): Disable range stepping if stepping over a breakpoint or
5842 we have software watchpoints. If range stepping is enabled,
5843 assert the thread is in the stepping range.
5844 (clear_proceed_status_thread): Clear may_range_step.
5845 (handle_inferior_event): Disable range stepping as soon as we know
5846 the thread that hit the event. Re-enable it whenever we're going
5847 to step with a step range.
5848 * remote.c (struct vCont_action_support) <r>: New field.
5849 (use_range_stepping): New global.
5850 (remote_vcont_probe): Handle 'r' action.
5851 (append_resumption): Append an 'r' action if the thread may range
5852 step.
5853 (show_range_stepping): New function.
5854 (set_range_stepping): New function.
5855 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5856 'set range-stepping' and 'show range-stepping' commands.
5857 * NEWS: Mention range stepping, the new vCont;r action, and the
5858 new "set/show range-stepping" commands.
5859
5860 2013-05-23 Yao Qi <yao@codesourcery.com>
5861 Pedro Alves <palves@redhat.com>
5862
5863 * remote.c (struct vCont_action_support): New struct.
5864 (struct remote_state) <support_vCont_t>: Remove field.
5865 <vCont_actions_support>: New field.
5866 (remote_vcont_probe, remote_stop_ns): Update.
5867
5868 2013-05-23 Yao Qi <yao@codesourcery.com>
5869 Pedro Alves <palves@redhat.com>
5870
5871 * gdbthread.h (pc_in_thread_step_range): New declaration.
5872 * thread.c (pc_in_thread_step_range): New function.
5873 * infrun.c (handle_inferior_event): Use it.
5874
5875 2013-05-23 Joel Brobecker <brobecker@adacore.com>
5876
5877 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5878 of sprintf.
5879
5880 2013-05-22 Keith Seitz <keiths@redhat.com>
5881
5882 * ada-lang.c (is_known_support_routine): Add explicit free of
5883 'func_name' from find_frame_funname.
5884 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5885 for func_name from find_frame_funname.
5886 * python/py-frame.c (frapy_name): Add explicit free of
5887 'name' from find_frame_funname.
5888 * stack.c (find_frame_funname): Add comment explaining that
5889 funcp must be freed by the caller.
5890 Return copy of symbol names instead of pointers.
5891 (print_frame): Add a cleanup for 'funname' from
5892 find_frame_funname.
5893 * stack.h (find_frame_funname): Remove "const" from
5894 'funname' parameter.
5895
5896 2013-05-22 Tom Tromey <tromey@redhat.com>
5897
5898 PR c++/15401:
5899 * c-valprint.c (c_value_print): Use value_addr for
5900 references. Convert back to reference type with value_ref.
5901
5902 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5903
5904 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5905 unloaded DLL, it will be done by handle_solib_event. See
5906 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5907 details.
5908
5909 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5910
5911 * ui-out.c: Create typedef ui_out_level_p and define vector
5912 operations for that type.
5913 (struct ui_out): Use a vector instead of an array.
5914 (current_level): Return level from a vector.
5915 (push_level): Create a level in a vector.
5916 (pop_level): Delete a level in a vector.
5917 (ui_out_new): Create initial level zero level, and store in a
5918 vector.
5919 (ui_out_destroy): Add vector cleanup.
5920
5921 2013-05-22 Pedro Alves <palves@redhat.com>
5922
5923 * python/python-internal.h (gdb_Py_DECREF): Tag with
5924 "ARI: editCase function".
5925
5926 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5927
5928 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5929
5930 2013-05-21 Pedro Alves <palves@redhat.com>
5931
5932 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5933 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5934 * python/py-utils.c (py_decref): Don't check for NULL before
5935 calling Py_DECREF.
5936
5937 2013-05-21 Pedro Alves <palves@redhat.com>
5938
5939 * python/py-utils.c (py_decref): Remove extra braces.
5940 (gdb_pymodule_addobject): Remove extra braces.
5941 * python-internal.h (gdb_Py_DECREF): New static inline function.
5942 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5943
5944 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5945
5946 * breakpoints.c (detach_breakpoints): Do not
5947 detach breakpoints locations with loc_type bp_loc_other.
5948
5949 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5950
5951 Workaround Python 2.6.
5952 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5953 a block.
5954
5955 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5956
5957 Code cleanup: constification.
5958 * solib.c (solib_ops): Make return type and ops variable type const.
5959 (set_solib_ops): Make the new_ops parameter and ops variable const.
5960 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5961 (solib_add, solib_keep_data_in_core, clear_solib)
5962 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5963 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5964 const.
5965 * solib.h (set_solib_ops): Make the new_ops parameter const.
5966
5967 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5968
5969 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5970 variable.
5971 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5972 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5973 (SYSTEM_GDBINIT_FILES): New variables.
5974 (all): Add stamp-system-gdbinit.
5975 (stamp-system-gdbinit): New rule.
5976 (clean-system-gdbinit, install-system-gdbinit)
5977 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5978 (install-only): Add dependency on install-system-gdbinit.
5979 (uninstall): Add dependency on uninstall-system-gdbinit.
5980 (clean): Add dependency on clean-system-gdbinit.
5981 * system-gdbinit/elinos.py: New file.
5982 * system-gdbinit/wrs-linux.py: New file.
5983
5984 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5985
5986 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5987
5988 2013-05-21 Hui Zhu <hui@codesourcery.com>
5989
5990 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5991 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5992 * mi/mi-cmd-break.c (ctype.h): New include.
5993 (gdb_obstack.h): New include.
5994 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5995 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5996 (mi_cmd_dprintf_insert): New.
5997 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5998 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5999
6000 2013-05-20 Tom Tromey <tromey@redhat.com>
6001
6002 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6003
6004 2013-05-20 Tom Tromey <tromey@redhat.com>
6005
6006 * python/py-value.c (valpy_get_dynamic_type): Simplify
6007 dynamic_type assignment. Use Py_XINCREF.
6008
6009 2013-05-20 Tom Tromey <tromey@redhat.com>
6010
6011 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6012
6013 2013-05-20 Tom Tromey <tromey@redhat.com>
6014
6015 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6016 (gdbpy_selected_frame): Move object-construction code
6017 out of TRY_CATCH.
6018
6019 2013-05-20 Tom Tromey <tromey@redhat.com>
6020
6021 * python/py-arch.c (gdbpy_initialize_arch): Use
6022 gdb_pymodule_addobject.
6023 * python/py-block.c (gdbpy_initialize_blocks): Use
6024 gdb_pymodule_addobject.
6025 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6026 gdb_pymodule_addobject.
6027 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6028 gdb_pymodule_addobject.
6029 * python/py-event.c (gdbpy_initialize_event_generic): Use
6030 gdb_pymodule_addobject.
6031 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6032 gdb_pymodule_addobject.
6033 * python/py-evts.c (add_new_registry): Use
6034 gdb_pymodule_addobject.
6035 (gdbpy_initialize_py_events): Likewise.
6036 * python/py-finishbreakpoint.c
6037 (gdbpy_initialize_finishbreakpoints): Use
6038 gdb_pymodule_addobject.
6039 * python/py-frame.c (gdbpy_initialize_frames): Use
6040 gdb_pymodule_addobject.
6041 * python/py-function.c (gdbpy_initialize_functions): Use
6042 gdb_pymodule_addobject.
6043 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6044 gdb_pymodule_addobject.
6045 * python/py-infthread.c (gdbpy_initialize_thread): Use
6046 gdb_pymodule_addobject.
6047 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6048 gdb_pymodule_addobject.
6049 * python/py-param.c (gdbpy_initialize_parameters): Use
6050 gdb_pymodule_addobject.
6051 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6052 gdb_pymodule_addobject.
6053 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6054 gdb_pymodule_addobject.
6055 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6056 gdb_pymodule_addobject.
6057 * python/py-type.c (gdbpy_initialize_types): Use
6058 gdb_pymodule_addobject.
6059 * python/py-utils.c (gdb_pymodule_addobject): New function.
6060 * python/py-value.c (gdbpy_initialize_values): Use
6061 gdb_pymodule_addobject.
6062 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6063 * python/python.c (_initialize_python): Use
6064 gdb_pymodule_addobject.
6065
6066 2013-05-20 Tom Tromey <tromey@redhat.com>
6067
6068 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6069 * python/py-param.c (get_set_value, get_show_value): Use
6070 explicit decrefs.
6071 * python/python.c (start_type_printers, apply_type_printers):
6072 Use explicit decrefs.
6073
6074 2013-05-20 Tom Tromey <tromey@redhat.com>
6075
6076 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6077 incref the module.
6078
6079 2013-05-20 Tom Tromey <tromey@redhat.com>
6080
6081 * python/python.c (gdbpy_run_events): Decref the result
6082 of PyObject_CallObject.
6083
6084 2013-05-20 Tom Tromey <tromey@redhat.com>
6085
6086 * python/py-symtab.c (set_sal): Use
6087 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6088 (symtab_and_line_to_sal_object): Update.
6089
6090 2013-05-20 Tom Tromey <tromey@redhat.com>
6091
6092 * python/py-param.c (compute_enum_values): Decref 'item'.
6093
6094 2013-05-20 Tom Tromey <tromey@redhat.com>
6095
6096 * mi/mi-main.c: Include python-internal.h.
6097 (mi_cmd_list_features): Check gdb_python_initialized.
6098 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6099 (python_inferior_exit, python_new_objfile, add_thread_object)
6100 (delete_thread_object, py_free_inferior): Check
6101 gdb_python_initialized.
6102 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6103 gdb_python_initialized.
6104 * python/py-type.c (save_objfile_types): Check
6105 gdb_python_initialized.
6106 * python/python-internal.h (gdb_python_initialized): Declare.
6107 * python/python.c (ensure_python_env): Throw exception if
6108 Python not initialized.
6109 (before_prompt_hook, source_python_script_for_objfile)
6110 (start_type_printers, apply_type_printers,
6111 free_type_printers): Check gdb_python_initialized.
6112 * varobj.c (varobj_get_display_hint)
6113 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6114 (install_new_value_visualizer, varobj_set_visualizer)
6115 (value_get_print_value): Check gdb_python_initialized.
6116
6117 2013-05-20 Tom Tromey <tromey@redhat.com>
6118
6119 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6120 Check errors.
6121 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6122 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6123 Check errors.
6124 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6125 Check errors.
6126 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6127 Check errors.
6128 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6129 Check errors.
6130 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6131 init function to return 'int'.
6132 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6133 Return 'int'. Check errors.
6134 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6135 Check errors.
6136 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6137 Return 'int'. Check errors.
6138 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6139 Check errors.
6140 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6141 Check errors.
6142 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6143 Check errors.
6144 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6145 Check errors.
6146 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6147 Check errors.
6148 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6149 Check errors.
6150 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6151 Check errors.
6152 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6153 Check errors.
6154 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6155 Check errors.
6156 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6157 Check errors.
6158 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6159 Check errors.
6160 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6161 Check errors.
6162 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6163 Check errors.
6164 * python/python-internal.h (gdbpy_initialize_auto_load,
6165 gdbpy_initialize_values, gdbpy_initialize_frames,
6166 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6167 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6168 gdbpy_initialize_blocks, gdbpy_initialize_types,
6169 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6170 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6171 gdbpy_initialize_finishbreakpoints,
6172 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6173 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6174 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6175 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6176 gdbpy_initialize_signal_event,
6177 gdbpy_initialize_breakpoint_event,
6178 gdbpy_initialize_continue_event,
6179 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6180 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6181 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6182 * python/python.c (gdb_python_initialized): New global.
6183 (gdbpy_initialize_events): Return 'int'. Check errors.
6184 (_initialize_python): Check errors. Set
6185 gdb_python_initialized.
6186
6187 2013-05-20 Tom Tromey <tromey@redhat.com>
6188
6189 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6190 Decref the reslut of PyObject_CallMethod.
6191
6192 2013-05-20 Tom Tromey <tromey@redhat.com>
6193
6194 * python/py-event.c (gdbpy_initialize_event_generic): Return
6195 early if PyType_Ready fails.
6196
6197 2013-05-20 Tom Tromey <tromey@redhat.com>
6198
6199 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6200 as 'default' in the switch.
6201
6202 2013-05-20 Tom Tromey <tromey@redhat.com>
6203
6204 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6205 get_addr_from_python calls out of TRY_CATCH.
6206 (infpy_write_memory, infpy_search_memory): Likewise.
6207 * python/py-utils.c (get_addr_from_python): Return negative
6208 value on error. Use TRY_CATCH.
6209 * python/python-internal.h (get_addr_from_python): Use
6210 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6211
6212 2013-05-20 Tom Tromey <tromey@redhat.com>
6213
6214 * python/py-event.c (evpy_emit_event): Decref the
6215 result of PyObject_CallFunctionObjArgs.
6216
6217 2013-05-20 Tom Tromey <tromey@redhat.com>
6218
6219 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6220 Correctly decref.
6221
6222 2013-05-20 Tom Tromey <tromey@redhat.com>
6223
6224 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6225
6226 2013-05-20 Tom Tromey <tromey@redhat.com>
6227
6228 * python/py-event.h (gdbpy_initialize_event_generic): Use
6229 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6230 * python/py-evts.c (add_new_registry): Use
6231 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6232 * python/python-internal.h
6233 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6234
6235 2013-05-20 Tom Tromey <tromey@redhat.com>
6236
6237 * python/py-arch.c (archpy_disassemble): Update.
6238 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6239 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6240 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6241 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6242 macro.
6243 (GDB_PY_HANDLE_EXCEPTION): Update.
6244 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6245
6246 2013-05-20 Tom Tromey <tromey@redhat.com>
6247
6248 * python/python-internal.h (events_object_type): Remove.
6249
6250 2013-05-20 Tom Tromey <tromey@redhat.com>
6251
6252 * python/py-event.h (evpy_emit_event): Use
6253 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6254 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6255 New macro.
6256
6257 2013-05-20 Tom Tromey <tromey@redhat.com>
6258
6259 * py-evtregistry.c (create_event_object): Decref
6260 eventregistry_object if PyList_New fails.
6261
6262 2013-05-20 Tom Tromey <tromey@redhat.com>
6263
6264 * py-cmd.c (gdbpy_string_to_argv): Check result of
6265 PyList_New.
6266
6267 2013-05-20 Tom Tromey <tromey@redhat.com>
6268
6269 * python/python.c (before_prompt_hook): Add cleanup to
6270 decref 'hook'.
6271
6272 2013-05-20 Tom Tromey <tromey@redhat.com>
6273
6274 * python/py-function.c (fnpy_init): Decref result of
6275 PyObject_GetAttrString.
6276
6277 2013-05-20 Tom Tromey <tromey@redhat.com>
6278
6279 * python/py-threadevent.c (get_event_thread): Use
6280 CPYCHECKER_RETURNS_BORROWED_REF.
6281 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6282 New define.
6283 (pspace_to_pspace_object, objfile_to_objfile_object)
6284 (find_thread_object): Use it.
6285
6286 2013-05-20 Tom Tromey <tromey@redhat.com>
6287
6288 * python/py-arch.c (arch_object_type): Use
6289 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6290 * python/py-block.c (block_syms_iterator_object_type):
6291 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6292 * python/py-bpevent.c (breakpoint_event_object_type):
6293 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6294 * python/py-cmd.c (cmdpy_object_type): Use
6295 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6296 * python/py-continueevent.c (continue_event_object_type):
6297 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6298 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6299 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6300 * python/py-events.h (thread_event_object_type):
6301 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6302 * python/py-evtregistry.c (eventregistry_object_type): Use
6303 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6304 * python/py-exitedevent.c (exited_event_object_type):
6305 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6306 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6307 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6308 * python/py-function.c (fnpy_object_type): Use
6309 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6310 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6311 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6312 * python/py-infthread.c (thread_object_type): Use
6313 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6314 * python/py-lazy-string.c (lazy_string_object_type):
6315 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6316 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6317 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6318 * python/py-objfile.c (objfile_object_type): Use
6319 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6320 * python/py-param.c (parmpy_object_type):
6321 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6322 * python/py-progspace.c (pspace_object_type):
6323 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6324 * python/py-signalevent.c (signal_event_object_type):
6325 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6326 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6327 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6328 * python/py-type.c (type_object_type, field_object_type)
6329 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6330 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6331 define.
6332 (value_object_type, block_object_type, symbol_object_type)
6333 (event_object_type, stop_event_object_type, breakpoint_object_type)
6334 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6335
6336 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6337
6338 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6339 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6340
6341 2013-05-20 Doug Evans <dje@google.com>
6342
6343 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6344 For Fission.
6345 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6346 reading_dwo_directly.
6347 (struct signatured_type): New member dwo_unit.
6348 (struct die_reader_specs): New member comp_dir.
6349 (create_signatured_type_table_from_index): Use malloc for
6350 all_type_units instead of objfile's obstack.
6351 (create_all_type_units): Ditto.
6352 (fill_in_sig_entry_from_dwo_entry): New function.
6353 (add_type_unit): New function.
6354 (lookup_dwo_signatured_type): New function.
6355 (lookup_dwp_signatured_type): New function.
6356 (lookup_signatured_type): New arg cu. All callers updated.
6357 (init_cu_die_reader): Initialize comp_dir.
6358 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6359 Change assert of matching type signatures to call error on mismatch.
6360 (lookup_dwo_unit): Add assert.
6361 (init_tu_and_read_dwo_dies): New function.
6362 (init_cutu_and_read_dies): Call it.
6363 (build_type_unit_groups): Handle case of no type unit groups created.
6364 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6365 (lookup_dwo_cutu): Tweak complaint.
6366 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6367 (dwarf2_per_objfile_free): Free all_type_units.
6368
6369 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6370
6371 * windows-nat.c (handle_unload_dll): Add missing empty line.
6372
6373 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6374
6375 * dwarf2read.c (prototyped_function_p): New function.
6376 (read_subroutine_type): Use it.
6377
6378 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6379
6380 * rs6000-aix-tdep.c: De-indent some example code provided
6381 as a comment.
6382
6383 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6384
6385 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6386 region is ok for a hardware watchpoint using the new ptrace interface
6387 on Power servers.
6388
6389 2013-05-17 Doug Evans <dje@google.com>
6390
6391 * NEWS: Mention new maintenance commands check-symtabs, and
6392 expand-symtabs, and renamed check-psymtabs.
6393 * psymtab.c (maintenance_check_psymtabs): Renamed from
6394 maintenance_check_symtabs. Only process already-expanded symbol
6395 tables.
6396 (_initialize_psymtab): Update.
6397 * symmisc.c (maintenance_check_symtabs): New function.
6398 (maintenance_expand_name_matcher): New function
6399 (maintenance_expand_file_matcher): New function
6400 (maintenance_expand_symtabs): New function.
6401 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6402 commands.
6403
6404 2013-05-17 Tom Tromey <tromey@redhat.com>
6405
6406 * python/py-inferior.c (infpy_read_memory): Don't call
6407 PyErr_SetString if PyObject_New fails.
6408 * python/py-frame.c (frame_info_to_frame_object): Don't call
6409 PyErr_SetString if PyObject_New fails.
6410
6411 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6412
6413 * acinclude.m4: Add check for dlopen in libdl.
6414 * configure.ac: Ditto.
6415 * configure: Regenerate.
6416
6417 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6418
6419 * frame.c (frame_stash): Convert to htab.
6420 (frame_addr_hash): New function.
6421 (frame_addr_hash_eq): New function.
6422 (frame_stash_create): Convert function to create
6423 a hash table.
6424 (frame_stash_add): Convert function to add an entry to a hash
6425 table.
6426 (frame_stash_find): Convert function to search the hash table.
6427 (frame_stash_invalidate): Convert function to empty the hash
6428 table.
6429 (get_frame_id): Only add to stash if a frame_id is created.
6430 (_initialize_frame): Call frame_stash_create.
6431
6432 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6433
6434 * configure.ac: Ensure MIG is available when building for GNU Hurd
6435 hosts.
6436 * configure: Regenerate.
6437
6438 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6439
6440 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6441
6442 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6443
6444 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6445 all cleanups are done before returning from this function.
6446
6447 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6448
6449 * utils.h: #include "exceptions.h".
6450 (enum errors): Remove partial declaration.
6451
6452 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6453
6454 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6455 * gdbarch.h, gdbarch.c: Regenerate.
6456 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6457 handling.
6458
6459 * rs6000-aix-tdep.h: New file.
6460 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6461 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6462 "xml-utils.h".
6463 (struct field_info, struct ld_info_desc): New types.
6464 (ld_info32_desc, ld_info64_desc): New static constants.
6465 (struct ld_info): New type.
6466 (rs6000_aix_extract_ld_info): New function.
6467 (rs6000_aix_shared_library_to_xml): Likewise.
6468 (rs6000_aix_ld_info_to_xml): Likewise.
6469 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6470 (rs6000_aix_init_osabi): Add call to
6471 set_gdbarch_core_xfer_shared_libraries_aix.
6472 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6473 Remove "xml-utils.h" include.
6474 (LdInfo): Delete typedef.
6475 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6476 Delete macros.
6477 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6478 Adjust code accordingly.
6479 (rs6000_core_ldinfo): Delete, folded into
6480 rs6000_aix_core_xfer_shared_libraries_aix.
6481 (rs6000_xfer_shared_library): Delete.
6482 (rs6000_xfer_shared_libraries): Reimplement.
6483
6484 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6485
6486 * record.c (record_goto_cmdlist): New.
6487 (cmd_record_goto): Split into this ...
6488 (cmd_record_goto_begin): ... this
6489 (cmd_record_goto_end): ... and this.
6490 (_initialize_record): Change "record goto" to prefix command.
6491 Add commands for "record goto begin" and "record goto end".
6492 Add an alias for "record goto start" to "record goto begin".
6493
6494 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6495
6496 * linespec.c (convert_linespec_to_sals): New comment for
6497 SOURCE_FILENAME assignment.
6498
6499 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6500
6501 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6502 internal_warning.
6503
6504 2013-05-14 Tom Tromey <tromey@redhat.com>
6505
6506 * eval.c (parse_and_eval_long): Make 'exp' const.
6507 * value.h (parse_and_eval_long): Update.
6508
6509 2013-05-14 Tom Tromey <tromey@redhat.com>
6510
6511 * ui-file.c (gdb_fopen): Make arguments const.
6512 * ui-file.h (gdb_fopen): Make arguments const.
6513
6514 2013-05-14 Tom Tromey <tromey@redhat.com>
6515
6516 * remote.c (remote_set_trace_notes): Make arguments const.
6517 * target.c (update_current_target): Update cast.
6518 * target.h (to_set_trace_notes): Make arguments const.
6519
6520 2013-05-14 Tom Tromey <tromey@redhat.com>
6521
6522 * go32-nat.c (go32_terminal_info): Make 'args' const.
6523 * inferior.h (child_terminal_info): Update.
6524 * inflow.c (child_terminal_info): Make 'args' const.
6525 * target.c (default_terminal_info): Make 'args' const.
6526 (debug_to_terminal_save_ours): Likewise.
6527 * target.h (struct target_ops) <to_terminal_info>: Make argument
6528 const.
6529
6530 2013-05-13 Tom Tromey <tromey@redhat.com>
6531
6532 * gcore.c (create_gcore_bfd): Make 'filename' const.
6533 * gcore.h (create_gcore_bfd): Make 'filename' const.
6534 * record-full.c (record_full_save): Make 'recfilename' const.
6535 * target.c (target_save_record): Make 'filename' const.
6536 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6537 const.
6538 (target_save_record): Likewise.
6539
6540 2013-05-13 Tom Tromey <tromey@redhat.com>
6541
6542 PR gdb/15338:
6543 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6544 ranges section has been read.
6545
6546 2013-05-13 Tom Tromey <tromey@redhat.com>
6547
6548 PR exp/15364:
6549 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6550 STRUCTOP_PTR>: Return a not_lval value for
6551 EVAL_AVOID_SIDE_EFFECTS.
6552 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6553 for EVAL_AVOID_SIDE_EFFECTS.
6554
6555 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6556
6557 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6558 floating point registers to register type before storing
6559 value.
6560 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6561 Likewise.
6562
6563 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6564 Tom Tromey <tromey@redhat.com>
6565
6566 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6567 New functions.
6568 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6569 Declare.
6570 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6571 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6572 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6573 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6574
6575 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6576 Tom Tromey <tromey@redhat.com>
6577
6578 PR build/15414:
6579 * configure: Rebuild.
6580 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6581 with -Wno-format.
6582
6583 2013-05-10 Pedro Alves <palves@redhat.com>
6584
6585 * remote.c (_initialize_remote): Fix spelling of
6586 qXfer:traceframe-info:read packet in packet config command.
6587
6588 2013-05-10 David Taylor <dtaylor@emc.com>
6589
6590 PR remote/15455
6591
6592 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6593 "QTro" at start of packet.
6594
6595 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6596
6597 * solib-aix.c (solib_aix_relocate_section_addresses):
6598 For the .bss section action, apply the same offset as
6599 the .data section.
6600
6601 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6602
6603 * solib-aix.c (solib_aix_relocate_section_addresses):
6604 Remove FIXME comment.
6605
6606 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6607
6608 PR tdep/15420:
6609 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6610 New functions, directly copied from sparc-sol-thread.c.
6611 * sparc-sol-thread.c: Delete.
6612 * configure.ac: Remove code handling sparc-solaris-thread.c.
6613 * configure: Regenerate.
6614
6615 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6616
6617 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6618 filter logic.
6619 (backtrace_command): Add "no-filters" option parsing.
6620 (_initialize_stack): Alter help to reflect "no-filters" option.
6621 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6622 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6623 (py-frame.o): Add target
6624 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6625 filter files.
6626 * python/python.h: Add new frame filter constants, and flag enum.
6627 (apply_frame_filter): Add definition.
6628 * python/python.c (apply_frame_filter): New non-Python
6629 enabled function.
6630 * python/py-utils.c (py_xdecref): New function.
6631 (make_cleanup_py_xdecref): Ditto.
6632 * python/py-objfile.c: Declare frame_filters dictionary.
6633 (objfpy_dealloc): Add frame_filters dealloc.
6634 (objfpy_new): Initialize frame_filters attribute.
6635 (objfile_to_objfile_object): Ditto.
6636 (objfpy_get_frame_filters): New function.
6637 (objfpy_set_frame_filters): New function.
6638 * python/py-progspace.c: Declare frame_filters dictionary.
6639 (pspy_dealloc): Add frame_filters dealloc.
6640 (pspy_new): Initialize frame_filters attribute.
6641 (pspacee_to_pspace_object): Ditto.
6642 (pspy_get_frame_filters): New function.
6643 (pspy_set_frame_filters): New function.
6644 * python/py-framefilter.c: New file.
6645 * python/lib/gdb/command/frame_filters.py: New file.
6646 * python/lib/gdb/frames.py: New file.
6647 * python/lib/gdb/__init__.py: Initialize global frame_filters
6648 dictionary
6649 * python/lib/gdb/FrameDecorator.py: New file.
6650 * python/lib/gdb/FrameIterator.py: New file.
6651 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6652 * mi/mi-cmds.h: Declare.
6653 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6654 --no-frame-filter logic, and Python frame filter logic.
6655 (stack_enable_frame_filters): New function.
6656 (parse_no_frame_option): Ditto.
6657 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6658 filter logic.
6659 (mi_cmd_stack_list_locals): Ditto.
6660 (mi_cmd_stack_list_args): Ditto.
6661 (mi_cmd_stack_list_variables): Ditto.
6662 * NEWS: Add frame filter note.
6663
6664 2013-05-09 Doug Evans <dje@google.com>
6665
6666 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6667 All callers updated.
6668 (syms_from_objfile): Ditto. Make static.
6669 (symbol_file_add_with_addrs): Renamed from
6670 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6671 num_offsets. All callers updated.
6672 * symfile.h (syms_from_objfile): Delete.
6673
6674 * symfile.c (decrement_reading_symtab): Add assert.
6675 (increment_reading_symtab): Ditto.
6676
6677 2013-05-09 Joel Brobecker <brobecker@adacore.com>
6678
6679 * source.c (forward_search_command): Replace call to getc
6680 by call to fgetc.
6681 (reverse_search_command): Likewise.
6682
6683 2013-05-08 Doug Evans <dje@google.com>
6684
6685 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6686 matching test.
6687
6688 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6689
6690 * sol-thread.c (info_cb): Factorize the code a little.
6691
6692 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6693
6694 * sol-thread.c (info_cb): Rework the output of the "maintenance
6695 info sol-threads" command a bit.
6696
6697 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6698
6699 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6700 Replace ti.ti_startfunc by ti.ti_pc.
6701
6702 2013-05-08 Joel Brobecker <brobecker@adacore.com>
6703
6704 * solib-aix.c (solib_aix_free_library_list): New function
6705 for the case where HAVE_LIBEXPAT is not defined.
6706
6707 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6708
6709 PR breakpoints/15413:
6710 * breakpoint.c (condition_completer): Simplify the code to
6711 disconsider multiple locations of breakpoints when completing the
6712 "condition" command.
6713
6714 2013-05-07 Pierre Muller <muller@sourceware.org>
6715
6716 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6717 instead of <sys/wait.h>.
6718
6719 2013-05-07 Pierre Muller <muller@sourceware.org>
6720
6721 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6722 trailing new line from warning message.
6723
6724 2013-05-07 Pierre Muller <muller@sourceware.org>
6725
6726 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6727 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6728
6729 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6730
6731 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6732 error message (ARI fix).
6733
6734 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6735
6736 * features/library-list-aix.dtd: Replace library-list by
6737 library-list-aix.
6738 * rs6000-nat.c: Replace library-list by library-list-aix
6739 throughout.
6740 * solib-aix.c: Likewise.
6741
6742 2013-05-07 Joel Brobecker <brobecker@adacore.com>
6743
6744 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6745 Renames TARGET_OBJECT_AIX_LIBRARIES.
6746 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6747 TARGET_OBJECT_LIBRARIES_AIX throughout.
6748 * solib-aix.c: Likwise.
6749
6750 2013-05-07 Yao Qi <yao@codesourcery.com>
6751
6752 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6753 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6754
6755 2013-05-07 Yao Qi <yao@codesourcery.com>
6756
6757 * solib-dsbt.c (enable_break): Declare.
6758 (dsbt_current_sos): Remove call to enable_break2.
6759 (enable_break2): Rename to enable_break. Set solib breakpoint
6760 on '_dl_debug_state'.
6761 (enable_break): Remove.
6762
6763 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
6764
6765 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6766 debug state prior to replicating existing hardware watchpoints or
6767 breakpoints.
6768
6769 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6770
6771 * gcore.c (gcore_create_callback): Ignore sections with
6772 separate_debug_objfile_backlink != NULL.
6773
6774 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6775 Andrew Jenner <andrew@codesourcery.com>
6776 Chung-Lin Tang <cltang@codesourcery.com>
6777 Julian Brown <julian@codesourcery.com>
6778
6779 Based on the nios2-elf port from Altera Corporation.
6780
6781 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6782 nios2-linux-tdep.o.
6783 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6784 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6785 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6786 * nios2-tdep.h: New.
6787 * nios2-tdep.c: New.
6788 * nios2-linux-tdep.c: New.
6789 * features/Makefile (WHICH): Add nios2-linux.
6790 (nios2-linux-expedite): Set.
6791 * features/nios2-cpu.xml: New.
6792 * features/nios2.xml: New.
6793 * features/nios2-linux.xml: New.
6794 * features/nios2.c: New (autogenerated).
6795 * features/nios2-linux.c: New (autogenerated).
6796 * regformats/nios2-linux.dat: New (autogenerated).
6797 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6798 and commands.
6799
6800 2013-05-06 Doug Evans <dje@google.com>
6801
6802 * symfile.c: Whitespace cleanup.
6803
6804 * solist.h (struct target_so_ops): New member clear_so.
6805 * solib-svr4.c (svr4_clear_so): New function.
6806 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6807 * solib.c (clear_so): Renamed from free_so_symbols.
6808 All callers updated. Call target clear_so if it exists.
6809
6810 2013-05-06 Tom Tromey <tromey@redhat.com>
6811
6812 * ada-lang.c (ada_value_primitive_packed_val): Don't
6813 call value_incref.
6814 * value.c (set_value_parent): Incref the new parent and decref
6815 the old parent.
6816 (value_copy, value_primitive_field): Use set_value_parent.
6817
6818 2013-05-06 Tom Tromey <tromey@redhat.com>
6819
6820 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6821 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6822 if needed.
6823 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6824 * dwarf2read.c (write_constant_as_bytes)
6825 (dwarf2_fetch_constant_bytes): New functions.
6826
6827 2013-05-06 Tom Tromey <tromey@redhat.com>
6828
6829 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6830 parameters.
6831 (dwarf2_const_value_attr): Update.
6832
6833 2013-05-06 Tom Tromey <tromey@redhat.com>
6834
6835 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6836 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6837 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6838 Remove declaration.
6839
6840 2013-05-06 Tom Tromey <tromey@redhat.com>
6841
6842 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6843 objfile's obstack.
6844
6845 2013-05-06 Doug Evans <dje@google.com>
6846
6847 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6848 * stabsread.h (process_one_symbol): Update declaration.
6849 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6850 * elfread.c (elf_symfile_relocate_probe): Ditto.
6851 * psymtab.c (relocate_psymtabs): Ditto.
6852 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6853 (objfile_relocate): Ditto.
6854 * objfiles.h (objfile_relocate): Update declaration.
6855 * symfile.c (relative_addr_info_to_section_offsets): Constify
6856 addrs parameter.
6857 (default_symfile_offsets): Ditto.
6858 (syms_from_objfile_1): Constify offsets parameter.
6859 (syms_from_objfile): Ditto.
6860 (symbol_file_add_with_addrs_or_offsets): Ditto.
6861 (symfile_map_offsets_to_segments): Constify data parameter.
6862 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6863 delta parameters of member relocate.
6864 (struct sym_probe_fns): Constify new_offsets,
6865 delta parameters of member sym_relocate_probe.
6866 (struct sym_fns): Constify section_addr_info parameter of member
6867 sym_offsets.
6868 (relative_addr_info_to_section_offsets): Update declaration.
6869 (default_symfile_offsets): Ditto.
6870 (syms_from_objfile): Ditto.
6871 (symfile_map_offsets_to_segments): Ditto.
6872
6873 * symfile.c (syms_from_objfile_1): Use correct section count when
6874 objfile->sf == NULL.
6875
6876 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6877
6878 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6879
6880 2013-05-06 Doug Evans <dje@google.com>
6881
6882 * psympriv.h (struct partial_symtab): Augment comment for member
6883 section_offsets.
6884
6885 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6886
6887 Reimplement shared library support on ppc-aix...
6888 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6889 * features/library-list-aix.dtd: New file.
6890 * solib-aix.h, solib-aix.c: New file.
6891 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6892 (rs6000_find_toc_address_hook): Delete.
6893 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6894 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6895 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6896 "xml-utils.h".
6897 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6898 (vmap_symtab, fixup_breakpoints): Delete.
6899 (rs6000_xfer_shared_libraries): New function.
6900 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6901 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6902 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6903 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6904 (rs6000_xfer_shared_library): New function.
6905 (find_toc_address): Delete.
6906 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6907 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6908 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6909 before creating minimal symbol. Adjust function description
6910 accordingly.
6911 (scan_xcoff_symtab): Replace call to
6912 prim_record_minimal_symbol_and_info by call to
6913 record_minimal_symbol.
6914 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6915 around default_symfile_offsets.
6916 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6917 powerpc-aix targets.
6918 * config/rs6000/nm-rs6000.h: Delete.
6919 * config/powerpc/aix.mh (NAT_FILE): Delete.
6920 (NATDEPFILES): Remove xcoffsolib.o.
6921 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6922 (ALL_TARGET_OBS): Add solib-aix.o.
6923 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6924 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6925 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6926 * xcoffsolib.h, xcoffsolib.c: Delete.
6927
6928 * solib.c (reload_shared_libraries): Remove reference to
6929 SOLIB_CREATE_INFERIOR_HOOK.
6930 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6931 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6932 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6933 comment.
6934 * corelow.c (deprecated_core_resize_section_table): Delete.
6935 * exec.c: Remove include of xcoffsolib.h".
6936 (map_vmap, vmap): Delete.
6937 (exec_close_1): Remove references to vmap.
6938 (exec_file_attach): Remove vmap handling code, and reference
6939 to DEPRECATED_IBM6000_TARGET.
6940 (bfdsec_to_vmap): Delete.
6941 (exec_files_info): Remove block of code handling VMAP.
6942 * infcmd.c (post_create_inferior): Remove reference to
6943 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6944 * infrun.c (follow_exec): Remove reference to
6945 SOLIB_CREATE_INFERIOR_HOOK.
6946 * stack.c (print_frame): Remove reference to PC_SOLIB.
6947 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6948 (dsbt_relocate_main_executable): Likewise.
6949 * solib-frv.c (frv_current_sos): Likewise.
6950
6951 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6952
6953 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6954 to target_write_memory and target_read_memory.
6955
6956 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6957
6958 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6959 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6960
6961 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6962
6963 * darwin-nat.c: Replace all "%x" instances in format strings
6964 into "0x%x" throughout.
6965
6966 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6967
6968 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6969 gdb_assert by call to MACH_CHECK_ERROR.
6970 (darwin_attach_pid): Raise an error rather than a failed
6971 assertion when various system calls failed. Report a warning
6972 instead of raising a failed assertion when PREV_NOT is not NULL
6973 after call to mach_port_request_notification.
6974 (darwin_ptrace_me): Raise an error rather than a failed
6975 assertion when read returns nonzero.
6976
6977 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6978
6979 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6980
6981 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6982
6983 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6984
6985 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6986
6987 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6988 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6989 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6990 a stale cleanup. Fix double free of NAME.
6991
6992 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6993
6994 * windows-nat.c (windows_delete_thread): Accept an additional
6995 argument, the thread's exit code, and announce thread death when
6996 print_thread_events is non-zero and we are deleting a thread that
6997 is not the main thread.
6998 (get_windows_debug_event): Pass thread exit code to
6999 windows_delete_thread.
7000
7001 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7002
7003 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7004 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7005 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7006 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7007 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7008 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7009 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7010 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7011 (gdbarch_tdep): New struct.
7012 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7013 E_NUM_REGS.
7014 (v850e3v5_register_name): New function.
7015 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7016 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7017 code handling the struct return conventions for the RH850 ABI.
7018 Update all callers.
7019 (v850_eight_byte_align_p): New function.
7020 (v850_push_call_dummy): Push structs by value, not by reference
7021 for the RH850 ABI. Add support for eight byte alignment.
7022 (v850_dbtrap_breakpoint_from_pc): New function.
7023 (v850_gdbarch_init): Add ABI detection code. Register
7024 v850e3v5_register_name for the v850e3v5 architecture. Set the
7025 number of registers for v850e3v5. Register
7026 v850_dbtrap_breakpoint_from_pc as appropriate.
7027 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7028
7029 2013-05-03 Doug Evans <dje@google.com>
7030
7031 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7032 of bfd_count_sections.
7033 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7034 * symfile.c (default_symfile_offsets): Ditto.
7035 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7036 one entry, not bfd_count_sections entries.
7037
7038 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7039
7040 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7041 `save' and `restore' register groups. Don't include SPL
7042 or SPH in these groups.
7043 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7044 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7045 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7046 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7047 dwarf2_append_unwinders().
7048
7049 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7050
7051 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7052 ignore SIGINT and SIGTRAP in case these internal signals are
7053 caught explicitely.
7054
7055 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7056
7057 * darwin-nat.c (darwin_read_write_inferior): Change types
7058 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7059 of copy_count to "mach_msg_type_number_t".
7060 (darwin_read_dyld_info): Change type of parameter
7061 rdaddr to "gdb_byte *".
7062
7063 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7064
7065 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7066 of &info->load_map from "char *" to "gdb_byte *".
7067
7068 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7069
7070 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7071 from "char *" to "gdb_byte *".
7072 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7073
7074 2013-04-30 Doug Evans <dje@google.com>
7075
7076 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7077 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7078 DWO stub. If DWO isn't found, just use stub.
7079 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7080
7081 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7082 calling init_cutu_and_read_dies.
7083
7084 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7085
7086 * target-descriptions.c (maint_print_c_tdesc_cmd):
7087 Add case to parse structures as register types and
7088 bitfields.
7089
7090 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7091
7092 * MAINTAINERS (Write After Approval): Add myself to the list.
7093
7094 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7095
7096 * sol-thread.c (rw_common): Change type of parameter "buf"
7097 to "gdb_byte *".
7098 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7099 rw_common to "gdb_byte *" instead of "char *".
7100
7101 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7102
7103 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7104 of local variable msym to const struct bound_minimal_symbol.
7105 Adjust use accordingly.
7106 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7107
7108 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7109
7110 * i386gnu-nat.c (CREG_OFFSET): New macro.
7111 (creg_offset): New array.
7112 (CREG_ADDR): Use creg_offset instead of reg_offset.
7113
7114 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7115
7116 * mep-tdep.c (mep_write_pc): Delete.
7117 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7118 Add call to set_gdbarch_pc_regnum.
7119
7120 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7121
7122 * common/filestuff.c: Replace #include <dirent.h> by
7123 #include "gdb_dirent.h".
7124
7125 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7126
7127 * common/filestuff.c: Replace #include <sys/stat.h> by
7128 #include "gdb_stat.h".
7129
7130 2013-04-29 Pierre Muller <muller@sourceware.org>
7131
7132 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7133 editCase function rule.
7134 (get_DW_AT_signature_type): Likewise.
7135
7136 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7137
7138 * m32r-tdep.c (m32r_write_pc): Delete.
7139 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7140 Add call to set_gdbarch_pc_regnum.
7141
7142 2013-04-29 Pierre Muller <muller@sourceware.org>
7143
7144 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7145
7146 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7147
7148 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7149
7150 2013-04-28 Yao Qi <yao@codesourcery.com>
7151
7152 * solib-dsbt.c (fetch_loadmap): Re-indent.
7153 (displacement_from_map, enable_break2): Likewise.
7154 (dsbt_relocate_section_addresses): Likewise.
7155
7156 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7157
7158 GDB 7.6 released.
7159
7160 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7161
7162 PR corefiles/14983:
7163 * dwarf2read.c (process_full_comp_unit): Always create a static
7164 block.
7165
7166 2013-04-25 Hui Zhu <hui@codesourcery.com>
7167
7168 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7169 to loc->cmd_bytecode.
7170
7171 2013-04-24 Doug Evans <dje@google.com>
7172
7173 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7174
7175 2013-04-22 Keith Seitz <keiths@redhat.com>
7176
7177 * tracepoint.c (trace_save): Call the writer's start method.
7178
7179 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7180
7181 PR gdb/10462
7182 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7183 before argument.
7184
7185 2013-04-23 Tom Tromey <tromey@redhat.com>
7186
7187 * common/filestuff.c: Check USE_WIN32API before including
7188 sys/socket.h.
7189 (HAVE_F_GETFD): New define.
7190 (mark_cloexec): Check HAVE_F_GETFD.
7191 (gdb_open_cloexec): Change 'mode' to unsigned long.
7192 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7193 (gdb_pipe_cloexec): Check HAVE_PIPE.
7194 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7195 long.
7196
7197 2013-04-23 Hui Zhu <hui@codesourcery.com>
7198
7199 PR gdb/15293
7200 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7201
7202 2013-04-23 Hui Zhu <hui@codesourcery.com>
7203
7204 PR gdb/15165
7205 * breakpoint.c (dprintf_print_recreate): New.
7206 (save_breakpoints): Let it not save dprintf commands.
7207 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7208
7209 2013-04-22 Tom Tromey <tromey@redhat.com>
7210
7211 PR gdb/7912:
7212 * Makefile.in (SFILES): Add filestuff.c
7213 (COMMON_OBS): Add filestuff.o.
7214 (filestuff.o): New target.
7215 * auto-load.c (auto_load_objfile_script_1): Use
7216 gdb_fopen_cloexec.
7217 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7218 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7219 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7220 * common/agent.c (gdb_connect_sync_socket): Use
7221 gdb_socket_cloexec.
7222 * common/filestuff.c: New file.
7223 * common/filestuff.h: New file.
7224 * common/linux-osdata.c (linux_common_core_of_thread)
7225 (command_from_pid, commandline_from_pid, print_source_lines)
7226 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7227 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7228 gdb_fopen_cloexec.
7229 * common/linux-procfs.c (linux_proc_get_int)
7230 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7231 * config.in, configure: Rebuild.
7232 * configure.ac: Don't check for sys/socket.h. Check for
7233 fdwalk, pipe2.
7234 * corelow.c (core_open): Use gdb_open_cloexec.
7235 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7236 * fork-child.c (fork_inferior): Call close_most_fds.
7237 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7238 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7239 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7240 Use gdb_fopen_cloexec.
7241 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7242 gdb_open_cloexec.
7243 (linux_async_pipe): Use gdb_pipe_cloexec.
7244 * remote-fileio.c (remote_fileio_func_open): Use
7245 gdb_open_cloexec.
7246 * remote.c (remote_file_put, remote_file_get): Use
7247 gdb_fopen_cloexec.
7248 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7249 close_most_fds.
7250 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7251 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7252 * solib.c (solib_find): Use gdb_open_cloexec.
7253 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7254 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7255 (tfile_open): Use gdb_open_cloexec.
7256 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7257 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7258 * xml-support.c (xml_fetch_content_from_file): Use
7259 gdb_fopen_cloexec.
7260 * main.c (captured_main): Call notice_open_fds.
7261
7262 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7263
7264 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7265 'char *' to 'gdb_byte *'.
7266 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7267 'gdb_byte'.
7268
7269 2013-04-22 Yao Qi <yao@codesourcery.com>
7270
7271 * infrun.c: Fix typo in comment.
7272
7273 2013-04-22 Andrew Haley <aph@redhat.com>
7274
7275 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7276 instead of "long".
7277
7278 2013-04-20 Yao Qi <yao@codesourcery.com>
7279
7280 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7281 'char *' to 'gdb_byte *'. Cast the return value of
7282 'bt_ctf_get_char_array' to 'gdb_byte *'.
7283
7284 2013-04-19 Pedro Alves <palves@redhat.com>
7285
7286 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7287 -Wpointer-sign.
7288 * configure: Regenerate.
7289
7290 2013-04-19 Pedro Alves <palves@redhat.com>
7291
7292 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7293 'void *'.
7294
7295 2013-04-19 Pedro Alves <palves@redhat.com>
7296
7297 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7298 Change type of 'myaddr' parameter to gdb_byte pointer.
7299 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7300 to 'long long' pointer instead of to 'unsigned long long'.
7301 (monitor_write_memory_block, monitor_read_memory_single)
7302 (monitor_read_memory): Change type of 'myaddr' parameter to
7303 gdb_byte pointer.
7304
7305 2013-04-19 Pedro Alves <palves@redhat.com>
7306
7307 * record.c (validate_history_size): Make parameter 'setting'
7308 unsigned.
7309
7310 2013-04-19 Pedro Alves <palves@redhat.com>
7311
7312 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7313 to 'gdb_byte *'.
7314
7315 2013-04-19 Pedro Alves <palves@redhat.com>
7316
7317 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7318 local to int.
7319
7320 2013-04-19 Pedro Alves <palves@redhat.com>
7321
7322 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7323 * ada-tasks.c (read_fat_string_value): Likewise.
7324
7325 2013-04-19 Pedro Alves <palves@redhat.com>
7326
7327 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7328 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7329 'offset', and adjust.
7330
7331 2013-04-19 Pedro Alves <palves@redhat.com>
7332
7333 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7334 (read_index_from_section): Add cast to 'char *'.
7335
7336 2013-04-19 Pedro Alves <palves@redhat.com>
7337
7338 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7339
7340 2013-04-19 Pedro Alves <palves@redhat.com>
7341
7342 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7343
7344 2013-04-19 Pedro Alves <palves@redhat.com>
7345
7346 * record-full.c (record_full_get_bookmark): Change local 'ret'
7347 type to char * and add cast to gdb_byte *.
7348 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7349 string.
7350 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7351
7352 2013-04-19 Pedro Alves <palves@redhat.com>
7353
7354 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7355 * python/py-prettyprint.c (print_string_repr): Change type of
7356 'output' local to char *. Add cast to gdb_byte * in
7357 LA_PRINT_STRING call.
7358 (print_children): Change type of 'output' local to char *.
7359 * python/py-value.c (valpy_string): Add cast to const char * in
7360 PyUnicode_Decode call.
7361
7362 2013-04-19 Pedro Alves <palves@redhat.com>
7363
7364 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7365 and change its type to 'const char *'. Adjust.
7366 (mips_send_packet): Add cast to 'char *', and remove cast to
7367 'unsigned char *'.
7368 (mips_receive_packet): Remove cast to 'unsigned char *'.
7369 (mips_load_srec): Use bfd_byte.
7370 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7371 (pmon_checkset): Make 'value' parameter unsigned.
7372
7373 2013-04-19 Pedro Alves <palves@redhat.com>
7374
7375 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7376
7377 2013-04-19 Pedro Alves <palves@redhat.com>
7378
7379 * remote.c (remote_write_bytes_aux, compare_sections_command)
7380 (remote_read_qxfer)
7381 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7382 (remote_hostio_readlink, remote_bfd_iovec_pread)
7383 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7384 binary buffer, and char when buffer is used as string.
7385 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7386 (trace_save, tfile_open, traceframe_walk_blocks)
7387 (tfile_fetch_registers): Likewise.
7388
7389 2013-04-19 Pedro Alves <palves@redhat.com>
7390
7391 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7392 buffer and size_t size. Adjust.
7393 * ser-base.h (ser_base_write): Adjust.
7394 * ser-go32.c (cnts): Change type to size_t.
7395 (dos_write): Change prototype -- take 'void *'
7396 buffer and size_t size. Adjust.
7397 (dos_info): Print elements of 'cnts' as unsigned long.
7398 * serial.c (serial_write): Likewise.
7399 * serial.h (serial_write): Adjust.
7400 (struct serial_ops) <write>: Change prototype -- take 'void *'
7401 buffer and size_t size. Adjust.
7402
7403 2013-04-19 Pedro Alves <palves@redhat.com>
7404
7405 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7406 gdb_byte *.
7407 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7408
7409 2013-04-19 Pedro Alves <palves@redhat.com>
7410
7411 * alpha-tdep.c (alpha_extract_return_value): Use
7412 regcache_cooked_read_unsigned to read 'v0'.
7413
7414 2013-04-19 Pedro Alves <palves@redhat.com>
7415
7416 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7417 parameters 'at', 'as' and 'offset' to uint32_t.
7418
7419 2013-04-19 Pedro Alves <palves@redhat.com>
7420
7421 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7422 'is64' to signed 'int'.
7423
7424 2013-04-19 Pedro Alves <palves@redhat.com>
7425
7426 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7427 parameter to int *.
7428
7429 2013-04-19 Pedro Alves <palves@redhat.com>
7430
7431 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7432 'insnbuf' buffer type to unsigned int[].
7433
7434 2013-04-19 Pedro Alves <palves@redhat.com>
7435
7436 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7437
7438 2013-04-19 Pedro Alves <palves@redhat.com>
7439
7440 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7441 unsigned long *.
7442
7443 2013-04-19 Pedro Alves <palves@redhat.com>
7444
7445 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7446 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7447 UINT_MAX.
7448 * mips-tdep.c (heuristic_fence_post): Change type to int.
7449 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7450
7451 2013-04-19 Pedro Alves <palves@redhat.com>
7452
7453 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7454 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7455 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7456
7457 2013-04-19 Pedro Alves <palves@redhat.com>
7458
7459 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7460 it to get a string view of the byte buffer.
7461 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7462 type to gdb_byte *. Adjust.
7463 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7464 Change local to char *.
7465 * solib-darwin.c (find_program_interpreter): Change return type to
7466 char *. Adjust.
7467 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7468 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7469 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7470 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7471 * solib-svr4.c (find_program_interpreter): Change return type to
7472 char *. Adjust.
7473 (enable_break): Change local 'interp_name' to char *.
7474 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7475 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7476 (spu_pseudo_register_write_spu): Use char for string buffer.
7477 Adjust.
7478 (info_spu_event_command, info_spu_signal_command): Add casts to
7479 'char *'.
7480
7481 2013-04-19 Pedro Alves <palves@redhat.com>
7482
7483 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7484 gdb_byte[].
7485 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7486 * ada-lang.c (ada_value_assign): Use gdb_byte.
7487 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7488 (alphanbsd_sigtramp_offset): Use gdb_byte.
7489 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7490 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7491 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7492 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7493 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7494 * arm-tdep.c (arm_stub_unwind_sniffer)
7495 (arm_displaced_init_closure): Use gdb_byte.
7496 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7497 (arm_default_thumb_le_breakpoint)
7498 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7499 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7500 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7501 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7502 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7503 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7504 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7505 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7506 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7507 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7508 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7509 (cris_store_return_value, cris_extract_return_value): Use
7510 gdb_byte.
7511 (constraint): Change type of parameter to char * from signed
7512 char*. Use gdb_byte.
7513 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7514 of local buffer to gdb_byte *.
7515 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7516 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7517 (add_address_entry): Change type of local buffer to gdb_byte[].
7518 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7519 (frv_push_dummy_call): Use gdb_byte.
7520 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7521 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7522 (hppa_hpux_supply_save_state): Use gdb_byte.
7523 * hppa-tdep.c (hppa32_push_dummy_call)
7524 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7525 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7526 (slotN_contents, replace_slotN_contents): Change type of parameter
7527 to gdb_byte *.
7528 (fetch_instruction, ia64_pseudo_register_write)
7529 (ia64_register_to_value, ia64_value_to_register)
7530 (ia64_extract_return_value, ia64_store_return_value)
7531 (ia64_push_dummy_call): Use gdb_byte.
7532 * m32c-tdep.c (m32c_return_value): Remove cast.
7533 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7534 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7535 gdb_byte.
7536 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7537 * mn10300-tdep.c (mn10300_store_return_value)
7538 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7539 gdb_byte.
7540 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7541 (moxie_process_record): Remove casts.
7542 * ppc-ravenscar-thread.c (supply_register_at_address)
7543 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7544 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7545 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7546 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7547 * remote.c (compare_sections_command): Use gdb_byte.
7548 * score-tdep.c (score7_free_memblock): Change type of parameter to
7549 gdb_byte *.
7550 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7551 gdb_byte *. Use gdb_byte.
7552 (sh_push_dummy_call_fpu): Use gdb_byte.
7553 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7554 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7555 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7556 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7557 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7558 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7559 (sh64_store_return_value, sh64_register_convert_to_virtual):
7560 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7561 (sh64_pseudo_register_write): Use gdb_byte.
7562 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7563 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7564 buffer.
7565 (irix_current_sos): Use gdb_byte.
7566 * solib-som.c (som_current_sos): Use gdb_byte.
7567 * sparc-ravenscar-thread.c (supply_register_at_address)
7568 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7569 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7570 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7571 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7572 'gdb_byte *'.
7573 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7574 'gdb_byte *'.
7575 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7576 * xstormy16-tdep.c (xstormy16_extract_return_value)
7577 (xstormy16_store_return_value): Change parameter type to
7578 'gdb_byte *'. Adjust.
7579 (xstormy16_push_dummy_call): Use gdb_byte.
7580 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7581 (call0_analyze_prologue, execute_code): Use gdb_byte.
7582
7583 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7584 Pedro Alves <palves@redhat.com>
7585
7586 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7587 value contents.
7588
7589 2013-04-17 Doug Evans <dje@google.com>
7590
7591 * dwarf2read.c (struct signatured_type): New member type.
7592 (struct attribute): Replace member signatured_type with signature.
7593 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7594 (read_call_site_scope): Call follow_die_ref instead of
7595 follow_die_ref_or_sig.
7596 (read_structure_type): Rewrite handling of signatured types.
7597 (read_enumeration_type): Ditto.
7598 (read_attribute_value): Update.
7599 (build_error_marker_type): New function.
7600 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7601 Don't call error for bad types, just build an error marker type.
7602 (dump_die_shallow): Update.
7603 (follow_die_sig_1): Renamed from follow_die_sig.
7604 Don't call error for bad types, instead return NULL.
7605 (follow_die_sig): New function.
7606 (get_signatured_type, get_DW_AT_signature_type): New functions.
7607
7608 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7609
7610 * aarch64-tdep.c (aarch64_write_pc): Removed.
7611 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7612 function.
7613
7614 2013-04-17 Yao Qi <yao@codesourcery.com>
7615
7616 * top.c (print_gdb_configuration): Print configure-time
7617 parameter on using libbabeltrace or not.
7618
7619 2013-04-16 Pedro Alves <palves@redhat.com>
7620
7621 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7622
7623 2013-04-16 Pedro Alves <palves@redhat.com>
7624
7625 * common/glibc_thread_db.h: Update from upstream glibc
7626 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7627
7628 2013-04-16 Pedro Alves <palves@redhat.com>
7629
7630 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7631 * common/glibc_thread_db.h: ... this new file ...
7632 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7633
7634 2013-04-16 Will Newton <will.newton@gmail.com>
7635 Pedro Alves <palves@redhat.com>
7636
7637 PR build/11881
7638
7639 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7640 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7641 HAVE_THREAD_DB_H.
7642
7643 2013-04-16 Pedro Alves <palves@redhat.com>
7644 Eli Zaretskii <eliz@gnu.org>
7645
7646 * NEWS: Mention "set foo unlimited".
7647
7648 2013-04-15 Doug Evans <dje@google.com>
7649
7650 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7651 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7652 (create_dwo_cu_reader): Renamed from
7653 create_dwo_debug_info_hash_table_reader.
7654 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7655 Remove support for multiple CUs in a DWO file.
7656 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7657
7658 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7659 instead of phex.
7660 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7661 (create_dwo_in_dwp): Ditto.
7662
7663 2013-04-15 Tom Tromey <tromey@redhat.com>
7664
7665 * NEWS: Move recent entries into "since 7.6" section.
7666
7667 2013-04-15 Tom Tromey <tromey@redhat.com>
7668
7669 PR c++/13588:
7670 * NEWS: Update.
7671 * break-catch-throw.c (struct exception_catchpoint)
7672 <exception_rx, pattern>: New fields.
7673 (fetch_probe_arguments, dtor_exception_catchpoint)
7674 (check_status_exception_catchpoint)
7675 (print_one_detail_exception_catchpoint): New functions.
7676 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7677 Compile regular expression if needed.
7678 (extract_exception_regexp): New function.
7679 (catch_exception_command_1): Use extract_exception_regexp.
7680 (compute_exception): Use fetch_probe_arguments.
7681 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7682 and check_status fields.
7683 * cp-abi.c (cplus_typename_from_type_info): New function.
7684 * cp-abi.h (cplus_typename_from_type_info): Declare.
7685 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7686 * gdb_regex.h (compile_rx_or_error): Declare.
7687 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7688 comment.
7689 (init_gnuv3_ops): Set get_type_from_type_info field.
7690 * probe.c (compile_rx_or_error): Move...
7691 * utils.c (compile_rx_or_error): ... here.
7692
7693 2013-04-15 Tom Tromey <tromey@redhat.com>
7694
7695 PR c++/15176:
7696 * NEWS: Update.
7697 * break-catch-throw.c (compute_exception): New function.
7698 (exception_funcs): New global.
7699 (_initialize_break_catch_throw): Create $_exception.
7700 * cp-abi.c (cplus_type_from_type_info): New function.
7701 * cp-abi.h (cplus_type_from_type_info): Declare.
7702 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7703 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7704 (gnuv3_get_type_from_type_info): New functions.
7705 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7706
7707 2013-04-15 Tom Tromey <tromey@redhat.com>
7708
7709 * break-catch-throw.c (struct exception_names): New.
7710 (exception_functions): Change type.
7711 (re_set_exception_catchpoint): Look for SDT probes.
7712
7713 2013-04-15 Tom Tromey <tromey@redhat.com>
7714
7715 PR c++/10119:
7716 * break-catch-throw.c (exception_functions): New global.
7717 (gnu_v3_exception_catchpoint_ops): Move earlier.
7718 (struct exception_catchpoint): New.
7719 (classify_exception_breakpoint): Rewrite.
7720 (re_set_exception_catchpoint): New function.
7721 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7722 Allocate a struct exception_catchpoint.
7723 (catch_exception_command_1): Update.
7724 (initialize_throw_catchpoint_ops): Set 're_set' method.
7725
7726 2013-04-15 Tom Tromey <tromey@redhat.com>
7727
7728 * Makefile.in (SFILES): Add break-catch-throw.c
7729 (COMMON_OBS): Add break-catch-throw.o.
7730 * break-catch-throw.c: New file.
7731 * breakpoint.c: Move exception-catching code to new file.
7732 (ep_parse_optional_if_clause): No longer static.
7733 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7734
7735 2013-04-15 Tom Tromey <tromey@redhat.com>
7736
7737 PR c++/9065:
7738 * NEWS: Update.
7739 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7740 * c-exp.y (TYPEID): New token.
7741 (exp): Add new TYPEID productions.
7742 (ident_tokens): Add "typeid".
7743 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7744 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7745 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7746 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7747 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7748 case.
7749 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7750 (build_std_type_info_type, gnuv3_get_typeid_type)
7751 (gnuv3_get_typeid): New functions.
7752 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7753 new fields on ABI object.
7754 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7755 * std-operator.def (OP_TYPEID): New.
7756
7757 2013-04-15 Tom Tromey <tromey@redhat.com>
7758
7759 * elfread.c (elf_symtab_read): Install versioned symbol under
7760 unversioned name as well.
7761
7762 2013-04-15 Tom Tromey <tromey@redhat.com>
7763
7764 PR c++/11990:
7765 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7766 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7767 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7768 (gdb_demangle): New function.
7769 * cp-support.h (gdb_demangle): Declare.
7770 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7771 (dwarf2_name): Use gdb_demangle.
7772 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7773 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7774 suffixes from name.
7775 (gnuv3_print_method_ptr): Use gdb_demangle.
7776 * jv-lang.c (java_demangle): Use gdb_demangle.
7777 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7778 * language.c (unk_lang_demangle): Use gdb_demangle.
7779 * symtab.c (symbol_find_demangled_name)
7780 (demangle_for_lookup): Use gdb_demangle.
7781
7782 2013-04-15 Tom Tromey <tromey@redhat.com>
7783
7784 PR c++/12824:
7785 * NEWS: Update.
7786 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7787 New constant.
7788 (classify_exception_breakpoint): New function.
7789 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7790 (print_mention_exception_catchpoint)
7791 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7792 (catch_exception_command_1): Handle "rethrow" catchpoint.
7793 (catch_rethrow_command): New function.
7794 (_initialize_breakpoint): Add "catch rethrow" command.
7795
7796 2013-04-15 Pierre Muller <muller@sourceware.org>
7797
7798 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7799 set_gdbarch_write_pc as deprecated anymore.
7800
7801 2013-04-15 Joel Brobecker <brobecker@adacore.com>
7802
7803 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7804 declarations.
7805
7806 2013-04-13 Yao Qi <yao@codesourcery.com>
7807
7808 * ctf.c (_initialize_ctf): Include "completer.h".
7809 Call add_target_with_completer instead of add_target.
7810
7811 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7812
7813 Fix GDB regression related to PR binutils/14813.
7814 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7815 * minidebug.c (lzma_close): Add return value comment.
7816 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7817 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7818 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7819
7820 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7821
7822 * config.in: Regenerate.
7823
7824 2013-04-12 Tom Tromey <tromey@redhat.com>
7825
7826 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7827 const.
7828 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7829 (struct die_reader_specs) <buffer>: Likewise.
7830 (die_reader_func_ftype): Make 'info_ptr' const.
7831 (struct line_header) <include_dirs, statement_program_start,
7832 statement_program_end>: Now const.
7833 (struct file_entry) <name>: Likewise.
7834 (struct partial_die_info) <sibling>: Likewise.
7835 (struct dwarf_block) <data>: Likewise.
7836 (dwarf2_read_section): Remove cast.
7837 (dwarf2_get_section_info): Make 'bufp' const.
7838 (read_index_from_section): Constify.
7839 (dw2_get_file_names_reader): Make 'info_ptr' const.
7840 (dw2_get_primary_filename_reader): Likewise.
7841 (read_comp_unit_head): Make 'info_ptr' and return type const.
7842 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7843 Likewise.
7844 (read_abbrev_offset): Constify.
7845 (dwarf2_create_include_psymtab): Make 'name' const.
7846 (create_debug_types_hash_table): Update.
7847 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7848 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7849 Constify.
7850 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7851 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7852 (read_comp_units_from_section): Constify.
7853 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7854 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7855 const.
7856 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7857 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7858 (create_dwp_hash_table, dwarf2_ranges_read)
7859 (dwarf2_record_block_ranges): Constify.
7860 (read_die_and_children, read_die_and_siblings_1)
7861 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7862 const.
7863 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7864 (abbrev_table_read_table): Constify.
7865 (load_partial_dies): Make 'info_ptr' const.
7866 (read_partial_die, read_attribute_value, read_attribute): Make
7867 'info_ptr' and return type const.
7868 (read_address, read_initial_length)
7869 (read_checked_initial_length_and_offset, read_offset)
7870 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7871 const.
7872 (read_direct_string): Make 'buf' and return type const.
7873 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7874 (read_indirect_string): Make return type const.
7875 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7876 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7877 'info_ptr' const.
7878 (read_str_index): Make return type const.
7879 (add_include_dir): Make 'include_dir' const.
7880 (add_file_name): Make 'name' const.
7881 (dwarf_decode_line_header): Constify.
7882 (psymtab_include_file_name): Make return type const.
7883 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7884 (dwarf2_start_subfile): Make 'filename' const.
7885 (dwarf2_const_value_attr): Make 'bytes' const.
7886 (read_signatured_type_reader): Make 'info_ptr' const.
7887 (decode_locdesc): Constify.
7888 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7889 const.
7890 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7891 'mac_end', and return type const.
7892 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7893 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7894 type const.
7895 (per_cu_header_read_in): Constify.
7896 * symfile.h (dwarf2_get_section_info): Update.
7897
7898 2013-04-12 Tom Tromey <tromey@redhat.com>
7899
7900 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7901
7902 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7903
7904 * NEWS: Mention "show configuration", --configuration.
7905 * top.c (print_gdb_configuration): New function, displays the
7906 details about GDB configure-time parameters.
7907 (print_gdb_version): Mention "show configuration".
7908 * cli/cli-cmds.c (show_configuration): New function.
7909 (_initialize_cli_cmds): Add the "show configuration" command.
7910 * main.c (captured_main) <print_configuration>: New static var.
7911 <long_options>: Use it.
7912 If --configuration was given, call print_gdb_configuration.
7913
7914 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7915 Pedro Alves <palves@redhat.com>
7916
7917 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7918 (generated_files): Add gcore.
7919 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7920 HAVE_NATIVE_GCORE_HOST.
7921 (gcore): New.
7922 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7923 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7924 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7925 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7926 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7927 Add HAVE_NATIVE_GCORE_HOST.
7928 * configure: Regenerate.
7929 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7930 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7931 AC_CONFIG_FILES for gcore.
7932 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7933 gdb_have_gcore.
7934 * gdb_gcore.sh: Rename to ...
7935 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7936 and GCORE_TRANSFORM_NAME substitutions.
7937
7938 Fix parsing tabs in ${gdb_target_obs}.
7939 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7940
7941 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7942
7943 * remote.c (unpush_and_perror): Add output message final dot.
7944
7945 2013-04-11 Yao Qi <yao@codesourcery.com>
7946
7947 * tracepoint.c (tfile_interp_line): Fit parameters line and
7948 utpp in one line.
7949
7950 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7951
7952 * solib.c (solib_map_sections): Remove code overwriting
7953 SO->SO_NAME with the bfd's filename.
7954
7955 2013-04-10 Pedro Alves <palves@redhat.com>
7956
7957 * cli/cli-decode.c (integer_unlimited_completer): New function.
7958 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7959 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7960 completer.
7961 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7962 (is_unlimited_literal): New function.
7963 (do_set_command): Handle literal "unlimited" arguments.
7964 * frame.c (_initialize_frame) <set backtrace limit>: Document
7965 "unlimited".
7966 * printcmd.c (_initialize_printcmd) <set print
7967 max-symbolic-offset>: Add help text.
7968 * record-full.c (_initialize_record_full) <set record full
7969 insn-number-max>: Likewise.
7970 * record.c (_initialize_record) <set record
7971 instruction-history-size, set record function-call-history-size>:
7972 Add help text.
7973 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7974 help text.
7975 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7976 Likewise.
7977 * source.c (_initialize_source) <set listsize>: Add help text.
7978 * utils.c (initialize_utils) <set height, set width>: Likewise.
7979 <set pagination>: Mention "set height unlimited".
7980 * valprint.c (_initialize_valprint) <set print elements, set print
7981 repeats>: Document "unlimited".
7982
7983 2013-04-10 Pedro Alves <palves@redhat.com>
7984
7985 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7986 instead of disconnect_tracing.
7987 * infcmd.c (detach_command, disconnect_command): Call
7988 query_if_trace_running. Adjust.
7989 * top.c: Include "tracepoint.h".
7990 (quit_target): Delete. Contents moved ...
7991 (quit_force): ... here. Wrap each stage of teardown in
7992 TRY_CATCH. Call disconnect_tracing before detaching.
7993
7994 2013-04-10 Hui Zhu <hui@codesourcery.com>
7995 Yao Qi <yao@codesourcery.com>
7996
7997 * configure.ac: Check libbabeltrace is installed.
7998 * config.in: Regenerate.
7999 * configure: Regenerate.
8000 * Makefile.in (LIBBABELTRACE): New.
8001 (CLIBS): Add LIBBABELTRACE.
8002 * ctf.c: Include "exec.h".
8003 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8004 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8005 (ctf_save_metadata_header): Define new type aliases in
8006 metadata.
8007 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8008 in metadata. Start a new faked packet for trace status.
8009 (ctf_write_status): Write trace status to CTF.
8010 (ctf_write_uploaded_tsv): Write TSV to CTF.
8011 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8012 (ctf_write_definition_end): End the faked packet.
8013
8014 (ctx, ctf_iter, trace_dirname): New.
8015 (start_pos): New variable.
8016 (ctf_destroy, ctf_open_dir, ctf_open): New.
8017 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8018 macros.
8019 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8020 (ctf_fetch_registers, ctf_xfer_partial): New.
8021 (ctf_get_trace_state_variable_value): New.
8022 (ctf_get_tpnum_from_frame_event): New.
8023 (ctf_get_traceframe_address): New.
8024 (ctf_trace_find, ctf_has_stack): New.
8025 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8026 (ctf_get_trace_status, ctf_read_status): New.
8027 (_initialize_ctf): New.
8028 * tracepoint.c (get_tracepoint_number): New
8029 (get_uploaded_tsv): Remove 'static'.
8030 (struct traceframe_info, trace_regblock_size): Move it to ...
8031 * tracepoint.h: ... here.
8032 (get_tracepoint_number): Declare it.
8033 (get_uploaded_tsv): Declare it.
8034
8035 * NEWS: Mention new configure option.
8036
8037 2013-04-10 Pedro Alves <palves@redhat.com>
8038 Hui Zhu <hui@codesourcery.com>
8039
8040 * breakpoint.c (dprintf_re_set): New.
8041 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8042 to dprintf_re_set.
8043
8044 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8045
8046 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8047 Remove solib-svr4.o from the list.
8048
8049 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8050
8051 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8052 Use gdb_assert_not_reached instead of invalid boolean expression.
8053
8054 2013-04-09 Pedro Alves <palves@redhat.com>
8055
8056 * remote.c (unpush_and_perror): New function.
8057 (readchar, remote_serial_write): Use it.
8058
8059 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8060
8061 * NEWS: Mention new btrace RSP packets.
8062
8063 2013-04-08 Tom Tromey <tromey@redhat.com>
8064
8065 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8066 long.
8067
8068 2013-04-08 Tom Tromey <tromey@redhat.com>
8069
8070 * maint.c (print_bfd_section_info): Print the section index.
8071 * symmisc.c (dump_msymbols): Print the section index.
8072
8073 2013-04-08 Tom Tromey <tromey@redhat.com>
8074
8075 PR symtab/8424:
8076 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8077 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8078 * breakpoint.c (resolve_sal_pc): Update.
8079 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8080 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8081 (minsym_lookup_iterator_cb): Use it.
8082 (default_read_var_value): Update.
8083 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8084 Update.
8085 * infcmd.c (jump_command): Update.
8086 * linespec.c (minsym_found): Update.
8087 * maint.c (maintenance_translate_address): Update.
8088 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8089 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8090 * parse.c (write_exp_msymbol): Update.
8091 * printcmd.c (address_info): Update.
8092 * psymtab.c (find_pc_sect_psymbol): Update.
8093 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8094 SYMBOL_OBJ_SECTION.
8095 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8096 Don't initialize SYMBOL_OBJ_SECTION.
8097 * spu-tdep.c (spu_catch_start): Update.
8098 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8099 * symmisc.c (dump_msymbols, print_symbol): Update.
8100 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8101 how fallback section is computed.
8102 (fixup_symbol_section): Update.
8103 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8104 Update.
8105 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8106 Initialize SYMBOL_SECTION.
8107 * symtab.h (struct general_symbol_info) <section>: Update comment.
8108 <obj_section>: Remove.
8109 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8110 (SYMBOL_OBJFILE): New macro.
8111
8112 2013-04-08 Tom Tromey <tromey@redhat.com>
8113
8114 * coffread.c (record_minimal_symbol): Update.
8115 * dbxread.c (record_minimal_symbol): Update.
8116 * elfread.c (record_minimal_symbol): Update.
8117 * machoread.c (macho_symtab_add_minsym): Update.
8118 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8119 Update.
8120 * minsyms.c (prim_record_minimal_symbol): Update.
8121 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8122 argument.
8123 (prim_record_minimal_symbol_and_info): Likewise.
8124 * minsyms.h (prim_record_minimal_symbol_full)
8125 (prim_record_minimal_symbol_and_info): Update.
8126 * symtab.c (allocate_symbol, initialize_symbol)
8127 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8128 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8129 Update.
8130
8131 2013-04-08 Tom Tromey <tromey@redhat.com>
8132
8133 PR symtab/8423:
8134 * solib-som.c (som_solib_section_offsets): Use BFD section
8135 indices. Set offsets for all sections.
8136 * somread.c (som_symtab_read): Compute BFD section for
8137 symbol. Use prim_record_minimal_symbol_and_info.
8138 (som_symfile_read): Fix comment.
8139 (struct find_section_offset_arg): New.
8140 (find_section_offset, set_section_index): New functions.
8141 (som_symfile_offsets): Use set_section_index to compute
8142 section indices.
8143
8144 2013-04-08 Tom Tromey <tromey@redhat.com>
8145
8146 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8147 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8148 gdb_bfd_section_index.
8149 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8150 New functions.
8151 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8152 Declare.
8153 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8154 Update.
8155 * objfiles.c (add_to_objfile_sections_full): New function.
8156 (add_to_objfile_sections): Use it.
8157 (build_section_table): Rewrite.
8158 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8159 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8160 (struct objfile) <sections>: Update comment.
8161 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8162 is NULL.
8163 (ALL_OBJSECTIONS): Use it.
8164 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8165 * solib-frv.c (frv_relocate_main_executable): Update.
8166 * solib-target.c (solib_target_relocate_section_addresses):
8167 Use gdb_bfd_section_index.
8168 * symfile.c (build_section_addr_info_from_section_table):
8169 Use gdb_bfd_section_index.
8170 (build_section_addr_info_from_bfd, place_section): Likewise.
8171 * symtab.c (fixup_section): Update.
8172 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8173
8174 2013-04-08 Tom Tromey <tromey@redhat.com>
8175
8176 * minsyms.h (struct bound_minimal_symbol): New.
8177 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8178 Remove objfile argument.
8179 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8180 Return bound_minimal_symbol.
8181 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8182 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8183 Return bound_minimal_symbol.
8184 (in_gnu_ifunc_stub): Update.
8185 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8186 Remove 'objfile_p' argument.
8187 (lookup_solib_trampoline_symbol_by_pc): Update.
8188 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8189 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8190 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8191 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8192 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8193 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8194 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8195 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8196 stack.c, symtab.c, tui/tui-disasm.c: Update.
8197
8198 2013-04-08 Tom Tromey <tromey@redhat.com>
8199
8200 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8201 Use symbol's obstack, not an objfile.
8202 * coffread.c (process_coff_symbol): Update.
8203 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8204 * jv-lang.c (add_class_symbol): Update.
8205 * mdebugread.c (new_symbol): Update.
8206 * minsyms.c (prim_record_minimal_symbol_full)
8207 (terminate_minimal_symbol_table): Update.
8208 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8209 * stabsread.c (define_symbol, read_enum_type): Update.
8210 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8211 Handle Ada specially.
8212 (symbol_set_language): Add 'obstack' argument.
8213 (symbol_set_names): Update.
8214 (symbol_natural_name, symbol_demangled_name): Always use
8215 ada_decode_symbol.
8216 * symtab.h (struct general_symbol_info)
8217 <language_specific::obstack>: New field.
8218 <ada_mangled>: New field.
8219 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8220 (symbol_set_language): Update.
8221
8222 2013-04-08 Tom Tromey <tromey@redhat.com>
8223
8224 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8225 Take an obstack, not an objfile.
8226 (symbol_set_names): Update.
8227 * symtab.h (symbol_set_demangled_name): Update.
8228
8229 2013-04-08 Tom Tromey <tromey@redhat.com>
8230
8231 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8232 allocate_symbol.
8233 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8234 (read_func_scope): Call allocate_template_symbol.
8235 (new_symbol_full): Call allocate_symbol.
8236 * jit.c (finalize_symtab): Call allocate_symbol.
8237 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8238 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8239 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8240 (common_block_end): Call allocate_symbol.
8241 * symtab.c (allocate_symbol, initialize_symbol)
8242 (allocate_template_symbol): New functions.
8243 * symtab.c (allocate_symbol, initialize_symbol)
8244 (allocate_template_symbol): Declare.
8245 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8246
8247 2013-04-08 Pedro Alves <palves@redhat.com>
8248 Keith Seitz <keiths@redhat.com>
8249
8250 * breakpoint.c (create_breakpoint): Rename
8251 "parse_condition_and_thread" parameter to "parse_arg". Update
8252 describing comment. If !PARSE_ARG, then error out if ARG is not
8253 the empty string after extracting the location.
8254 * breakpoint.h (create_breakpoint): Rename
8255 "parse_condition_and_thread" parameter to "parse_arg".
8256
8257 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8258
8259 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8260
8261 2013-04-07 Yao Qi <yao@codesourcery.com>
8262
8263 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8264 and 'addr2' to CORE_ADDR.
8265 * target.c (update_current_target): Update.
8266 * target.h (struct target_ops) <to_trace_find>: Change parameter
8267 type to CORE_ADDR.
8268 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8269 'addr2' to CORE_ADDR.
8270 (tfile_trace_find): Likewise.
8271 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8272 Change local variable 'addr' to type CORE_ADDR.
8273 * tracepoint.h (tfind_1): Update declaration.
8274
8275 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8276
8277 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8278 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8279 Include main.h.
8280
8281 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8282 here...
8283 * main.h (windows_get_absolute_argv0): ...to here.
8284
8285 2013-04-05 Doug Evans <dje@google.com>
8286
8287 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8288 (read_cutu_die_from_dwo): Add comments.
8289 (read_structure_type): Update comment.
8290 (read_enumeration_type, read_namespace_type): Update comment.
8291 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8292
8293 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8294
8295 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8296 * Makefile.in (gdb.z): Remove.
8297 (install-only): Remove $(man1dir) and gdb.1 installation.
8298 * gdb.1: Remove.
8299
8300 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8301
8302 Fix compatibility with Linux kernel 3.8.3.
8303 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8304 to more inner block. Remove parsing of NUMBER from outer block.
8305 Parse NUMBER only if KEYWORD has been identified.
8306
8307 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8308
8309 Fix variable name shadowing.
8310 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8311 filename to mapsfilename and update its uses.
8312
8313 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8314
8315 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8316 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8317 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8318 details of the problem.
8319
8320 2013-04-04 Pedro Alves <palves@redhat.com>
8321 Hui Zhu <hui@codesourcery.com>
8322
8323 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8324 tracepoint, reset its STEP_COUNT and call validate_actionline.
8325
8326 2013-04-03 Doug Evans <dje@google.com>
8327
8328 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8329 read_die_and_siblings.
8330 (read_die_and_siblings): New function.
8331 (read_cutu_die_from_dwo): Dump die if requested.
8332 (read_die_and_children): Call read_full_die_1 and
8333 read_die_and_siblings_1.
8334 (read_full_die): Dump die if requested.
8335
8336 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8337
8338 * dwarf2read.c (struct dwo_file): New member comp_dir.
8339 Rename member name to dwo_name. All uses updated.
8340 (hash_dwo_file): Include comp_dir in computation.
8341 (eq_dwo_file): Ditto.
8342 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8343 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8344
8345 * psymtab.c (read_psymtabs_with_fullname): Don't call
8346 psymtab_to_fullname if the basenames are different.
8347
8348 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8349
8350 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8351 New entry about "fullname" presence.
8352
8353 2013-04-03 Pedro Alves <palves@redhat.com>
8354
8355 * NEWS: Mention x86_64/Cygwin as new native configuration.
8356
8357 2013-04-02 Doug Evans <dje@google.com>
8358
8359 * dwarf2read.c (read_structure_type): Fix typo in comment.
8360
8361 2013-04-02 Pedro Alves <palves@redhat.com>
8362
8363 * NEWS: Mention "set/show debug aarch64", "set/show debug
8364 coff-pe-read" and "set/show debug mach-o".
8365
8366 2013-04-02 Pedro Alves <palves@redhat.com>
8367
8368 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8369
8370 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8371
8372 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8373 gdb_string.h is now in common/.
8374
8375 2013-04-02 Pedro Alves <palves@redhat.com>
8376
8377 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8378 under "New options".
8379
8380 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8381
8382 Revert this patch:
8383 PR gdb/15275
8384 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8385
8386 2013-04-02 Pedro Alves <palves@redhat.com>
8387
8388 PR gdb/15275
8389
8390 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8391 (remote_serial_write): New function.
8392 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8393
8394 2013-04-01 Jiong Wang <jiwang@tilera.com>
8395
8396 * NEWS: Mention TILE-Gx in "New native configurations" and
8397 "New targets" sections.
8398
8399 2013-04-01 Doug Evans <dje@google.com>
8400
8401 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8402 (process_enumeration_scope): Simplify.
8403
8404 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8405 type_unit_group ...
8406 (struct signatured_type): ... to here.
8407 (sig_type_ptr): New typedef.
8408 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8409 out of union 't'. All uses updated.
8410 (dw2_get_file_names_reader): Assert not called for a type unit.
8411 (dw2_get_file_names): Assert not called for a type unit or type
8412 unit group.
8413 (build_type_psymtabs_reader): Assert called for a type unit.
8414 (build_type_psymtab_dependencies): Assert called for a type unit group.
8415
8416 * dwarf2read.c (free_dwo_file): Add comment.
8417 (dwarf2_per_objfile_free): Unref dwp bfd.
8418
8419 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8420
8421 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8422 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8423 (read_pe_exported_syms): Remove unused 'exportix'.
8424 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8425 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8426 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8427
8428 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8429
8430 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8431 (print_it_watchpoint): Remove unused 'bl'.
8432 (say_where): Remove unused 'uiout'.
8433 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8434 (bkpt_breakpoint_hit): Remove unused 'b'.
8435 (internal_bkpt_print_it): Remove unused 'uiout'.
8436 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8437
8438 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8439
8440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8441 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8442
8443 2013-03-29 Doug Evans <dje@google.com>
8444
8445 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8446 Delete arg is_dwp. All callers updated.
8447 (open_dwp_file): New function.
8448 (open_and_init_dwp_file): Call it.
8449 (get_dwp_file): New function.
8450 (lookup_dwo_cutu): Call it.
8451
8452 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8453 unnecessary, cleanup.
8454
8455 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8456
8457 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8458 (lookup_dwo_unit): New function.
8459 (init_cutu_and_read_dies): Move DWO handling to new functions.
8460
8461 * dwarf2read.c (struct signatured_type): Tweak comment.
8462 (struct dwo_unit): Tweak comment.
8463 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8464 (create_dwo_debug_info_hash_table): Tweak comment.
8465 (dwarf2_per_cu_offset_and_type): Tweak comment.
8466
8467 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8468 missing .debug_types section.
8469
8470 2013-03-29 Yao Qi <yao@codesourcery.com>
8471
8472 * corelow.c: Include "completer.h".
8473 (_initialize_corelow): Call add_target_with_completer with
8474 argument 'filename_completer'.
8475 * tracepoint.c: Likewise.
8476 * exec.c (_initialize_exec): Likewise.
8477 * target.c (add_target): Rename to ...
8478 (add_target_with_completer): ... this. Call set_cmd_completer
8479 if parameter completer is not NULL.
8480 (add_target): New.
8481 * target.h: Include "command.h".
8482 (add_target_with_completer): Declare it.
8483
8484 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8485
8486 * coffread.c (is_import_fixup_symbol): New function.
8487 (record_minimal_symbol): Use is_import_fixup_symbol to
8488 detect import fixup symbols, and discard them.
8489
8490 2013-03-28 Doug Evans <dje@google.com>
8491
8492 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8493 types hash table until we know we need it.
8494
8495 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8496 index numbers.
8497
8498 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8499 All callers updated.
8500 (dw2_print_stats): Print #read CUs too.
8501 (dump_die_shallow): Print signatured types better.
8502
8503 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8504 info_or_types_section to section. All uses updated.
8505 (struct dwo_unit): Ditto.
8506
8507 2013-03-28 Pedro Alves <palves@redhat.com>
8508
8509 * NEWS (New options): New section.
8510 (New options): Mention set/show remote trace-status-packet.
8511 * remote.c (PACKET_qTStatus): New enumeration value.
8512 (remote_get_trace_status): Skip sending qTStatus if the packet is
8513 disabled. Use packet_ok.
8514 (_initialize_remote): Register a configuration command for
8515 qTStatus packet.
8516
8517 2013-03-28 Doug Evans <dje@google.com>
8518
8519 * symfile.c (find_separate_debug_file): Add comment.
8520 (terminate_after_last_dir_separator): Tweak comment.
8521
8522 * dwarf2read.c (create_partial_symtab): Add forward decl.
8523 (create_partial_symtab): Move to be closer to other psymtab functions.
8524 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8525
8526 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8527 (compute_symtab_includes): Remove unnecessary forward declaration.
8528 (die_needs_namespace): Add comment marking group of functions for
8529 dwarf2 name computation.
8530
8531 * typeprint.c (_initialize_typeprint): Improve type help text.
8532
8533 * python/python.c (finish_python_initialization): Provide suggestion
8534 for how to tell gdb to find its python files.
8535
8536 2013-03-28 Pedro Alves <palves@redhat.com>
8537
8538 PR gdb/15294
8539
8540 * source.c (_initialize_source): Change back "set listsize" to an
8541 integer command.
8542
8543 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8544
8545 PR gdb/15275
8546 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8547
8548 2013-03-27 Pedro Alves <palves@redhat.com>
8549
8550 * top.c (history_size): Rename to ...
8551 (history_size_setshow_var): ... this. Add comment.
8552 (show_commands): Use readline's 'history_length' instead of
8553 computing the history length by calling history_get in a loop.
8554 (set_history_size_command): Error out for sizes over INT_MAX.
8555 Restore previous history size on invalid size.
8556 (init_history): If HISTSIZE is negative, leave the history size as
8557 zero. Add comments.
8558 (init_main): Adjust.
8559
8560 2013-03-27 Pedro Alves <palves@redhat.com>
8561
8562 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8563 coff_pe_read" command to "set debug coff-pe-read".
8564
8565 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8566
8567 * record.c (command_size_to_target_size): Fix size comparison.
8568 Change parameter type from pointer to integer to integer.
8569 Update all users.
8570
8571 2013-03-27 Pierre Muller <muller@sourceware.org>
8572
8573 * windows-nat.c (handle_output_debug_string): Avoid typecast
8574 from integer of different size warning.
8575
8576 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8577
8578 * windows-nat.c (handle_output_debug_string): Add empty line
8579 after local block variable definition.
8580
8581 2013-03-26 Pedro Alves <palves@redhat.com>
8582
8583 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8584 (net_open): Make 'polls' local unsigned.
8585
8586 2013-03-26 Pedro Alves <palves@redhat.com>
8587
8588 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8589 a zuinteger command instead of uinteger.
8590
8591 2013-03-26 Pedro Alves <palves@redhat.com>
8592
8593 * record-full.c (record_full_insn_num): Make it unsigned.
8594 (record_full_check_insn_num, record_full_message)
8595 (record_full_registers_change, record_full_xfer_partial): Remove
8596 record_full_insn_max_num check (it's always != 0).
8597 (record_full_info, record_full_restore): Use %u as format string.
8598 (): Use %u as format string.
8599 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8600 check (it's always != 0).
8601
8602 2013-03-26 Pedro Alves <palves@redhat.com>
8603
8604 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8605 and "set dcache size" commands zuinteger instead of uinteger.
8606
8607 2013-03-26 Pedro Alves <palves@redhat.com>
8608
8609 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8610 command zuinteger instead of uinteger.
8611
8612 2013-03-26 Pedro Alves <palves@redhat.com>
8613
8614 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8615 zuinteger instead of uinteger.
8616
8617 2013-03-26 Pedro Alves <palves@redhat.com>
8618
8619 * record.c (record_insn_history_size_setshow_var)
8620 (record_call_history_size_setshow_var): New globals.
8621 (command_size_to_target_size): New function.
8622 (cmd_record_insn_history, cmd_record_call_history): Use
8623 command_size_to_target_size instead of cast.
8624 (validate_history_size, set_record_insn_history_size)
8625 (set_record_call_history_size): New functions.
8626 (_initialize_record): Install set_record_insn_history_size and
8627 set_record_call_history_size as "set" hooks of "set record
8628 instruction-history-size" and "set record
8629 function-call-history-size".
8630
8631 2013-03-26 Pedro Alves <palves@redhat.com>
8632
8633 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8634 use with history_max_entries use. Remove FIXME note.
8635
8636 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8637
8638 * record-btrace.c (record_btrace_close): Call
8639 record_btrace_auto_disable.
8640
8641 2013-03-25 Joel Brobecker <brobecker@adacore.com>
8642
8643 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8644
8645 2013-03-25 Doug Evans <dje@google.com>
8646
8647 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8648
8649 2013-03-25 Tom Tromey <tromey@redhat.com>
8650
8651 PR symtab/11462:
8652 * c-exp.y (exp): Add new productions for destructors after '.' and
8653 '->'.
8654 (write_destructor_name): New function.
8655
8656 2013-03-25 Tom Tromey <tromey@redhat.com>
8657
8658 PR c++/9197:
8659 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8660 value_struct_elt, not lookup_struct_elt_type.
8661 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8662 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8663 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8664
8665 2013-03-25 Yao Qi <yao@codesourcery.com>
8666
8667 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8668 instead of '_mkdir'.
8669
8670 2013-03-23 Eli Zaretskii <eliz@gnu.org>
8671
8672 * windows-nat.c (windows_get_absolute_argv0): New function.
8673 * windows-nat.h: Add its prototype.
8674
8675 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8676 Use IS_DIR_SEPARATOR instead of looking for a character inside
8677 SLASH_STRING. Include filenames.h.
8678 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8679 relocate_gdb_directory works when passed gdb_program_name.
8680 Include windows-nat.h.
8681
8682 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8683
8684 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8685 * remote.c (trace_error): Remove the special handling of '2'.
8686 (readchar) <SERIAL_EOF>
8687 (readchar) <SERIAL_ERROR>
8688 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8689 (remote_get_trace_status): Call throw_exception if EX is
8690 TARGET_CLOSE_ERROR.
8691 * utils.c (perror_with_name): Rename to ...
8692 (throw_perror_with_name): ... here. New parameter errcode, describe it
8693 in the function comment.
8694 (perror_with_name): New function wrapper.
8695 * utils.h (enum errors): New stub declaration.
8696 (throw_perror_with_name): New declaration.
8697
8698 2013-03-22 Pedro Alves <palves@redhat.com>
8699 Yao Qi <yao@codesourcery.com>
8700 Mark Kettenis <kettenis@gnu.org>
8701
8702 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8703 Don't let the user set the value to UINT_MAX directly.
8704 <var_integer>: Don't let the user set the value to INT_MAX
8705 directly.
8706
8707 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8708
8709 * remote.c (remote_unpush_target): New function.
8710 (remote_open_1): Remove two pop_target calls, update one comment, add
8711 comment to target_preopen call. Replace pop_target call by
8712 remote_unpush_target call.
8713 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8714 pop_target calls by remote_unpush_target calls.
8715
8716 2013-03-22 Pedro Alves <palves@redhat.com>
8717
8718 * linux-nat.c (linux_child_follow_fork): Don't call
8719 linux_enable_event_reporting.
8720 (linux_handle_extended_wait): Don't call
8721 linux_enable_event_reporting.
8722
8723 2013-03-22 Pedro Alves <palves@redhat.com>
8724
8725 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8726 use it to rewrite the trampoline buffers with type gdb_byte[], and
8727 undefine the macro. Remove char* cast.
8728
8729 2013-03-21 Doug Evans <dje@google.com>
8730
8731 New commands "mt set per-command {space,time,symtab} {on,off}".
8732 * NEWS: Add entry.
8733 * event-top.c: #include "maint.h".
8734 * main.c: #include "maint.h".
8735 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8736 timeval-utils.h, maint.h, cli/cli-setshow.h.
8737 (per_command_time, per_command_space): New static globals.
8738 (per_command_symtab): New static global.
8739 (per_command_setlist, per_command_showlist): New static globals.
8740 (struct cmd_stats): Move here from utils.c.
8741 (set_per_command_time): Renamed from set_display_time in utils.c
8742 and moved here. All callers updated.
8743 (set_per_command_space): Renamed from set_display_space in utils.c
8744 and moved here. All callers updated.
8745 (count_symtabs_and_blocks): New function.
8746 (report_command_stats): Moved here from utils.c. Add support for
8747 printing symtab stats. Only print data if enabled before command
8748 executed.
8749 (make_command_stats_cleanup): Ditto.
8750 (sert_per_command_cmd, show_per_command_cmd): New functions.
8751 (_initialize_maint_cmds): Add new commands
8752 mt set per-command {space,time,symtab} {on,off}.
8753 * maint.h: New file.
8754 * top.c: #include "maint.h".
8755 * utils.c (reset_prompt_for_continue_wait_time): New function.
8756 (get_prompt_for_continue_wait_time): New function.
8757 * utils.h (reset_prompt_for_continue_wait_time): Declare
8758 (get_prompt_for_continue_wait_time): Declare.
8759 (make_command_stats_cleanup): Moved to maint.h.
8760 (set_display_time, set_display_space): Moved to maint.h and renamed
8761 to set_per_command_time, set_per_command_space.
8762 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8763 parse_binary_operation and made non-static. Don't call error,
8764 just return an error marker. All callers updated.
8765 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8766
8767 2013-03-21 Tom Tromey <tromey@redhat.com>
8768
8769 * symfile.c (alloc_section_addr_info): Update header. Don't set
8770 'num_sections' field.
8771 (build_section_addr_info_from_section_table): Set 'num_sections'.
8772 (build_section_addr_info_from_bfd): Likewise.
8773 (build_section_addr_info_from_objfile): Remove dead loop
8774 condition.
8775 (free_section_addr_info): Unconditionally call xfree.
8776 (relative_addr_info_to_section_offsets, addrs_section_sort)
8777 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8778 condition.
8779 (syms_from_objfile_1): Remove dead 'if' condition. Check
8780 'num_sections'.
8781 (add_symbol_file_command): Set 'num_sections'.
8782 * symfile-mem.c (symbol_file_add_from_memory): Set
8783 'num_sections'.
8784 * somread.c (som_symfile_offsets): Remove dead loop condition.
8785 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8786 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8787
8788 2013-03-21 Tom Tromey <tromey@redhat.com>
8789
8790 * tracepoint.h (decode_agent_options): Add 'trace_string'
8791 argument.
8792 * tracepoint.c (decode_agent_options): Add 'trace_string'
8793 argument.
8794 (validate_actionline): Update.
8795 (collect_symbol): Add 'trace_string' argument.
8796 (struct add_local_symbols_data) <trace_string>: New field.
8797 (do_collect_symbol): Update.
8798 (add_local_symbols): Add 'trace_string' argument.
8799 (encode_actions_1): Update.
8800 (trace_dump_actions): Update.
8801 * dwarf2loc.c (access_memory): Update.
8802 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8803 * ax-general.c (new_agent_expr): Update.
8804 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8805 (gen_trace_for_return_address): Add argument.
8806 (trace_kludge, trace_string_kludge): Remove.
8807 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8808 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8809 (gen_trace_for_var): Add 'trace_string' argument.
8810 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8811 (gen_printf, agent_eval_command_one): Update.
8812
8813 2013-03-21 Tom Tromey <tromey@redhat.com>
8814
8815 PR exp/15109:
8816 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8817 Handle FILENAME token.
8818
8819 2013-03-21 Tom Tromey <tromey@redhat.com>
8820
8821 * c-exp.y (YYPRINT): Define.
8822 (c_print_token): New function.
8823
8824 2013-03-21 Tom Tromey <tromey@redhat.com>
8825
8826 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8827
8828 2013-03-21 Yao Qi <yao@codesourcery.com>
8829
8830 * ctf.c: Include "gdb_stat.h".
8831 [USE_WIN32API]: New macro 'mkdir'.
8832 (ctf_start): Use permission bits macros if they are defined.
8833
8834 2013-03-20 Keith Seitz <keiths@redhat.com>
8835
8836 * breakpoint.h (struct breakpoint): Add comment to
8837 extra_string indicating that this member is mallod'd.
8838 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8839
8840 2013-03-20 Pedro Alves <palves@redhat.com>
8841
8842 PR gdb/15289
8843
8844 * cli/cli-setshow.c (do_set_command)
8845 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8846 the result of parsing the command argument. Throw error if the
8847 value is greater than UINT_MAX. Print the invalid value with
8848 plongest.
8849 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8850 result of parsing the command argument. Throw error if the value
8851 is greater than INT_MAX, not greater or equal. Also throw error
8852 if the value is less than INT_MIN. Print the invalid value with
8853 plongest.
8854 <var_zuinteger_unlimited>: Throw error if the value is greater
8855 than INT_MAX, not greater or equal.
8856 (do_show_command) <var_integer, var_zinteger,
8857 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8858
8859 2013-03-20 Tom Tromey <tromey@redhat.com>
8860
8861 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8862 if possible.
8863 * dwarf2read.c (read_func_scope): Remove old FIXME.
8864 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8865 not LOC_COMPUTED.
8866 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8867 Unconditionally call via computed ops, if possible.
8868 * printcmd.c (address_info): Unconditionally call via computed ops,
8869 if possible.
8870 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8871 if possible.
8872 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8873 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8874 if possible.
8875
8876 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8877 Tom Tromey <tromey@redhat.com>
8878
8879 PR symtab/8421:
8880 * coffread.c (coff_register_index): New global.
8881 (process_coff_symbol, coff_read_enum_type): Set
8882 SYMBOL_ACLASS_INDEX.
8883 (_initialize_coffread): Initialize new global.
8884 * dwarf2loc.c (locexpr_find_frame_base_location)
8885 (dwarf2_block_frame_base_locexpr_funcs)
8886 (loclist_find_frame_base_location)
8887 (dwarf2_block_frame_base_loclist_funcs): New.
8888 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8889 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8890 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8891 (dwarf2_block_frame_base_loclist_funcs): New.
8892 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8893 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8894 globals.
8895 (read_func_scope): Update.
8896 (fixup_go_packaging, mark_common_block_symbol_computed)
8897 (var_decode_location, new_symbol_full, dwarf2_const_value):
8898 Set SYMBOL_ACLASS_INDEX.
8899 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8900 (_initialize_dwarf2_read): Initialize new globals.
8901 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8902 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8903 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8904 globals.
8905 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8906 (_initialize_mdebugread): Initialize new globals.
8907 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8908 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8909 (stab_register_index, stab_regparm_index): New globals.
8910 (define_symbol, read_enum_type, common_block_end): Set
8911 SYMBOL_ACLASS_INDEX.
8912 (_initialize_stabsread): Initialize new globals.
8913 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8914 globals.
8915 (MAX_SYMBOL_IMPLS): New define.
8916 (register_symbol_computed_impl, register_symbol_block_impl)
8917 (register_symbol_register_impl)
8918 (initialize_ordinary_address_classes): New functions.
8919 (_initialize_symtab): Call initialize_ordinary_address_classes.
8920 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8921 (struct symbol_impl): New.
8922 (SYMBOL_ACLASS_BITS): New define.
8923 (struct symbol) <aclass, ops>: Remove fields.
8924 <aclass_index>: New field.
8925 (symbol_impls): Declare.
8926 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8927 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8928 (register_symbol_computed_impl, register_symbol_block_impl)
8929 (register_symbol_register_impl): Declare.
8930 (struct symbol_computed_ops): Add location_has_loclist.
8931 (struct symbol_block_ops): New.
8932 (SYMBOL_BLOCK_OPS): New.
8933 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8934
8935 2013-03-20 Tom Tromey <tromey@redhat.com>
8936
8937 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8938 (print_partial_symbols, recursively_search_psymtabs): Use
8939 PSYMBOL_CLASS.
8940
8941 2013-03-20 Pierre Muller <muller@sourceware.org>
8942
8943 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8944 addtion, subtraction, multiplication and division binary operator.
8945
8946 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8947
8948 Code cleanup.
8949 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8950 * bsd-kvm.c (bsd_kvm_close): Likewise.
8951 * bsd-uthread.c (bsd_uthread_close): Likewise.
8952 * corelow.c (core_close): Likewise.
8953 (core_close_cleanup): Remove parameter quitting from a caller.
8954 * event-top.c (async_disconnect): Likewise.
8955 * exec.c (exec_close_1): Remove parameter quitting.
8956 * go32-nat.c (go32_close): Likewise.
8957 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8958 parameter quitting from a caller.
8959 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8960 variable.
8961 (mips_linux_close): Remove parameter quitting. Remove parameter
8962 quitting from a caller.
8963 * monitor.c (monitor_close): Remove parameter quitting.
8964 * monitor.h (monitor_close): Likewise.
8965 * record-btrace.c (record_btrace_close): Likewise.
8966 * record-full.c (record_full_close): Likewise.
8967 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8968 it also from fprintf_unfiltered.
8969 * remote-mips.c (mips_close): Remove parameter quitting.
8970 (mips_detach): Remove parameter quitting from a caller.
8971 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8972 (gdbsim_close): Remove duplicate function comment. Remove parameter
8973 quitting and remove it also from printf_filtered.
8974 * remote.c (remote_close): Remove parameter quitting.
8975 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8976 * target.c (update_current_target): Remove parameter int from to_close
8977 de_fault.
8978 (push_target, unpush_target, pop_target): Remove parameter quitting from
8979 a caller.
8980 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8981 Remove parameter quitting from a caller.
8982 (target_preopen): Remove parameter quitting from a caller.
8983 (target_close): Remove parameter quitting. Remove parameter quitting
8984 from a caller two times. Remove parameter quitting also from
8985 fprintf_unfiltered.
8986 * target.h (struct target_ops): Remove parameter quitting and as int
8987 from fields to_xclose and to_close.
8988 (extern struct target_ops current_target):
8989 (target_close, pop_all_targets): Remove parameter quitting. Update the
8990 comment.
8991 (pop_all_targets_above): Remove parameter quitting.
8992 * top.c (quit_target): Remove parameter quitting from a caller.
8993 * tracepoint.c (tfile_close): Remove parameter quitting.
8994 * windows-nat.c (windows_close): Remove parameter quitting.
8995
8996 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8997
8998 * windows-nat.c (handle_output_debug_string): Replace call
8999 to string_to_core_addr with call to strtoull.
9000
9001 2013-03-20 Yao Qi <yao@codesourcery.com>
9002
9003 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9004 and write it to CTF metadata.
9005
9006 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9007
9008 * windows-nat.c (handle_output_debug_string): Change type of n to
9009 SIZE_T to avoid crash on 64 bit systems.
9010
9011 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9012
9013 * python/python-internal.h (HAVE_SNPRINTF)
9014 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9015 about redefinition of snprintf by pyerrors.h.
9016
9017 2013-03-15 Steve Ellcey <sellcey@mips.com>
9018
9019 * remote-sim.c (sim_command_completer): Make char arguments const.
9020
9021 2013-03-15 Tom Tromey <tromey@redhat.com>
9022
9023 PR c++/15116:
9024 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9025
9026 2013-03-14 Tom Tromey <tromey@redhat.com>
9027
9028 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9029 New fields.
9030 (get_file_crc): Move from symfile.c.
9031 (gdb_bfd_crc): New function.
9032 * gdb_bfd.h (gdb_bfd_crc): Declare.
9033 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9034 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9035 (separate_debug_file_exists): Use gdb_bfd_crc.
9036
9037 2013-03-14 Tom Tromey <tromey@redhat.com>
9038
9039 * symfile.c (get_debug_link_info): Remove.
9040 (find_separate_debug_file_by_debuglink): Use
9041 bfd_get_debug_link_info.
9042
9043 2013-03-14 Tom Tromey <tromey@redhat.com>
9044
9045 * symtab.c (error_in_psymtab_expansion): New function.
9046 (lookup_symbol_aux_quick)
9047 (basic_lookup_transparent_type_quick): Remove "last resort"
9048 code. Use error_in_psymtab_expansion.
9049
9050 2013-03-14 Doug Evans <dje@google.com>
9051 Jan Kratochvil <jan.kratochvil@redhat.com>
9052
9053 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9054 any successful compare_filenames_for_search or FILENAME_CMP.
9055 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9056 * symtab.c (iterate_over_some_symtabs): Likewise.
9057
9058 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9059
9060 * source.c (print_source_lines_base): Make a local copy of
9061 symtab_to_fullname.
9062
9063 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9064 Jan Kratochvil <jan.kratochvil@redhat.com>
9065
9066 * source.c (print_source_lines_base): Suppress "file" for TUI.
9067
9068 2013-03-14 Keith Seitz <keiths@redhat.com>
9069 Alan Matsuoka <alanm@redhat.com>
9070
9071 PR c++/15203
9072 PR c++/15210
9073 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9074 TYPE_CODE_METHOD.
9075 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9076 symbols.
9077
9078 2013-03-14 Yao Qi <yao@codesourcery.com>
9079
9080 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9081 status to tfile if trace is stopped by command 'tstop'.
9082
9083 2013-03-14 Yao Qi <yao@codesourcery.com>
9084
9085 * tracepoint.c (tfile_write_status): Write trace notes and user
9086 name into tfile if they are not NULL.
9087
9088 2013-03-14 Hui Zhu <hui@codesourcery.com>
9089 Yao Qi <yao@codesourcery.com>
9090
9091 * Makefile.in (REMOTE_OBS): Add ctf.o.
9092 (SFILES): Add ctf.c.
9093 (HFILES_NO_SRCDIR): Add ctf.h.
9094 * ctf.c, ctf.h: New files.
9095 * tracepoint.c: Include 'ctf.h'.
9096 (collect_pseudocommand): Remove static.
9097 (trace_save_command): Parse option "-ctf".
9098 Produce different trace file writers per option.
9099 Adjust output message.
9100 (trace_save_tfile, trace_save_ctf): New.
9101 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9102 * mi/mi-main.c: Include 'ctf.h'.
9103 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9104 trace_save_tfile or trace_save_ctf.
9105 * NEWS: Mention these changes.
9106
9107 2013-03-14 Yao Qi <yao@codesourcery.com>
9108
9109 * tracepoint.c (trace_file_writer_xfree): New.
9110 (struct tfile_writer_data): New.
9111 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9112 (tfile_write_header, tfile_write_regblock_type): New.
9113 (tfile_write_status, tfile_write_uploaded_tsv): New.
9114 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9115 (tfile_write_raw_data, (tfile_end): New.
9116 (tfile_write_ops): New global variable.
9117 (TRACE_WRITE_R_BLOCK): New macro.
9118 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9119 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9120 (TRACE_WRITE_V_BLOCK): New macro.
9121 (trace_save): Add extra one parameter WRITER. Make it static.
9122 Use WRITER to writer trace.
9123 (tfile_trace_file_writer_new): New.
9124 (trace_save_command): Caller update.
9125 (trace_save_tfile): Write trace data in TFILE format.
9126 * tracepoint.h (struct trace_frame_write_ops): New.
9127 (struct trace_file_write_ops): New.
9128 (struct trace_file_writer): New.
9129 (trace_save): Remove its declaration.
9130 (trace_save_tfile): Declare it.
9131 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9132 instead of trace_save.
9133
9134 2013-03-13 Pedro Alves <palves@redhat.com>
9135
9136 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9137
9138 2013-03-13 Pedro Alves <palves@redhat.com>
9139
9140 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9141 commented out code.
9142 * demangle.c (current_demangling_style_string): Make it const.
9143 (set_demangling_command): Assert the demangling style is known.
9144 Remove all handling of unknown styles. Set
9145 'current_demangling_style_string' to an element of the
9146 demangling_style_names array.
9147 (set_demangling_style): Delete.
9148 (_initialize_demangler): Set current_demangling_style_string to the
9149 element of the demangling_style_names array that corresponds to
9150 the default demangling style. Remove FIXME note. Don't call
9151 set_demangling_style.
9152 * gdb-demangle.h (set_demangling_style): Remove declaration.
9153
9154 2013-03-13 Pedro Alves <palves@redhat.com>
9155
9156 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9157 fields const.
9158 (ada_make_symbol_completion_list): Make "text0" parameter const.
9159 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9160 * breakpoint.c (condition_completer): Make "text" and "word"
9161 parameters const. Adjust.
9162 (check_tracepoint_command): Adjust to validate_actionline
9163 prototype change.
9164 (catch_syscall_completer): Make "text" and "word" parameters
9165 const.
9166 * cli/cli-cmds.c (show_user): Make "comname" local const.
9167 (valid_command_p): Make "command" parameter const.
9168 (alias_command): Make "alias_prefix" and "command_prefix" locals
9169 const.
9170 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9171 (add_alias_cmd): Make "name" and "oldname" parameters const.
9172 Adjust. No longer make copy of OLDNAME.
9173 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9174 (add_setshow_cmd_full, add_setshow_enum_cmd)
9175 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9176 (add_setshow_filename_cmd, add_setshow_string_cmd)
9177 (add_setshow_string_noescape_cmd)
9178 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9179 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9180 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9181 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9182 Make "name" parameter const.
9183 (help_cmd): Rename "command" parameter to "arg". New const local
9184 "command".
9185 (find_cmd): Make "command" parameter const.
9186 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9187 deprecated_cmd_warning prototype change.
9188 (undef_cmd_error): Make "cmdtype" parameter const.
9189 (lookup_cmd): Make "line" parameter const.
9190 (deprecated_cmd_warning): Change type of "text" parameter to
9191 pointer to const char, from pointer to pointer to char. Adjust.
9192 (lookup_cmd_composition): Make "text" parameter const.
9193 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9194 parameters const.
9195 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9196 const.
9197 * cli/cli-script.c (validate_comname): Make "tem" local const.
9198 (define_command): New const local "tem_c". Use it in calls to
9199 lookup_cmd.
9200 (document_command): Make "tem" and "comfull" locals const.
9201 (show_user_1): Make "prefix" and "name" parameters const.
9202 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9203 const.
9204 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9205 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9206 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9207 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9208 (complete_on_enum, add_setshow_enum_cmd)
9209 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9210 (add_setshow_filename_cmd, add_setshow_string_cmd)
9211 (add_setshow_string_noescape_cmd)
9212 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9213 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9214 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9215 Change prototypes, constifying strings.
9216 * completer.c (noop_completer, filename_completer): Make "text"
9217 and "prefix" parameters const.
9218 (location_completer, expression_completer)
9219 (complete_line_internal): Make "text" and "prefix" parameters
9220 const and adjust.
9221 (command_completer, signal_completer): Make "text" and "prefix"
9222 parameters const.
9223 * completer.h (noop_completer, filename_completer)
9224 (expression_completer, location_completer, command_completer)
9225 (signal_completer): Change prototypes.
9226 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9227 parameters const.
9228 * cp-abi.c (cp_abi_completer): Likewise.
9229 * expression.h (parse_expression_for_completion): Change
9230 prototype.
9231 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9232 parameters const.
9233 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9234 * infrun.c (handle_completer): Make "text" and "word" parameters
9235 const.
9236 * interps.c (interpreter_completer): Make "text" and "word"
9237 parameters const.
9238 * language.h (struct language_defn)
9239 <la_make_symbol_completion_list>: Make "text" and "word"
9240 parameters const.
9241 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9242 (parse_exp_in_context): Rename to ...
9243 (parse_exp_in_context_1): ... this.
9244 (parse_exp_in_context): Reimplement, with const hack from
9245 parse_exp_1.
9246 (parse_expression_for_completion): Make "string" parameter const.
9247 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9248 to pointer to const char. Adjust.
9249 (print_command_1): Make "exp" parameter const.
9250 (output_command): Rename to ...
9251 (output_command_const): ... this. Make "exp" parameter const.
9252 (output_command): Reimplement.
9253 (x_command): Adjust.
9254 (display_command): Rename "exp" parameter to "arg". New "exp"
9255 local, const version of "arg".
9256 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9257 "cmd_name" local const.
9258 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9259 call.
9260 (cmdpy_completer): Make "text" and "word" parameters const.
9261 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9262 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9263 const.
9264 * remote.c (_initialize_remote): Make "cmd_name" local const.
9265 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9266 parameters const. Adjust.
9267 (completion_list_add_fields): Make "sym_text", "text" and "word"
9268 parameters const.
9269 (struct add_name_data) <sym_text, text, word>: Make fields const.
9270 (default_make_symbol_completion_list_break_on): Make "text" and
9271 "word" parameters const. Adjust locals.
9272 (default_make_symbol_completion_list)
9273 (make_symbol_completion_list, make_symbol_completion_type)
9274 (make_symbol_completion_list_fn): Make "text" and "word"
9275 parameters const.
9276 (make_file_symbol_completion_list): Make "text", "word" and
9277 "srcfile" parameters const. Adjust locals.
9278 (add_filename_to_list): Make "text" and "word" parameters const.
9279 (struct add_partial_filename_data) <text, word>: Make fields
9280 const.
9281 (make_source_files_completion_list): Make "text" and "word"
9282 parameters const.
9283 * symtab.h (default_make_symbol_completion_list_break_on)
9284 (default_make_symbol_completion_list, make_symbol_completion_list)
9285 (make_symbol_completion_type enum type_code)
9286 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9287 (make_source_files_completion_list): Change prototype.
9288 * top.c (execute_command): Adjust to pass pointer to pointer to
9289 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9290 change.
9291 (set_verbose): Make "cmdname" local const.
9292 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9293 and adjust.
9294 (validate_actionline): Make "line" parameter a pointer to const
9295 char, and adjust.
9296 (encode_actions_1): Make "action_exp" local const, and adjust.
9297 (encode_actions): Adjust.
9298 (replace_comma): Delete.
9299 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9300 const, and adjust. Don't frob the action string while splitting
9301 it at commas. Instead, make a copy of each split substring in
9302 turn.
9303 (trace_dump_command): Adjust to validate_actionline prototype
9304 change.
9305 * tracepoint.h (decode_agent_options, decode_agent_options)
9306 (encode_actions, validate_actionline): Change prototypes.
9307 * valprint.h (output_command): Delete declaration.
9308 (output_command_const): Declare.
9309 * value.c (function_destroyer): Cast const away in xfree call.
9310
9311 2013-03-13 Pedro Alves <palves@redhat.com>
9312
9313 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9314 rather than casting 'const char * const *' to 'const char **'.
9315 * ada-lex.l (processInt): Make "trailer" local const. Remove
9316 'const char **' cast.
9317 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9318 locals, and use those as strtol output pointer, instead than doing
9319 invalid casts to from 'const char **' to 'char **'.
9320 (_initialize_demangle): Remove cast.
9321 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9322 locals, and use those as strtol output pointer, instead than doing
9323 invalid casts to from 'const char **' to 'char **'.
9324 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9325 casts.
9326 * stap-probe.c (stap_parse_register_operand)
9327 (stap_parse_single_operand): Likewise.
9328
9329 2013-03-13 Yao Qi <yao@codesourcery.com>
9330
9331 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9332 the last matched 'V' blcok in trace frame.
9333
9334 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9335
9336 * NEWS: Create a new section for the next release branch.
9337 Rename the section of the current branch, now that it has
9338 been cut.
9339
9340 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9341
9342 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9343 * version.in: Bump version to 7.6.50.20130312-cvs.
9344
9345 2013-03-12 Keith Seitz <keiths@redhat.com>
9346
9347 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9348 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9349 Remove temporary copy of input string.
9350 (mi_execute_command_wrapper): Make "cmd" const.
9351 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9352 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9353 Use const strings.
9354 (mi_parse): Make "cmd" const.
9355 Use const strings.
9356 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9357
9358 2013-03-12 Keith Seitz <keiths@redhat.com>
9359
9360 * ada-lang.c (ada_read_renaming_var_value): Pass const
9361 pointer to expression string to parse_exp_1.
9362 (create_excep_cond_exprs): Likewise.
9363 * ax-gdb.c (agent_eval_command_one): Likewise.
9364 (maint_agent_printf_command): Likewise.
9365 Constify much of the string handling/parsing.
9366 * breakpoint.c (set_breakpoint_condition): Pass const
9367 pointer to expression string to parse_exp_1.
9368 (update_watchpoint): Likewise.
9369 (parse_cmd_to_aexpr): Constify string handling.
9370 Pass const pointer to parse_exp_1.
9371 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9372 (find_condition_and_thread): Likewise.
9373 Make TOK const.
9374 (watch_command_1): Make "arg" const.
9375 Constify string handling.
9376 Copy the expression string instead of changing the input
9377 string.
9378 (update_breakpoint_location): Pass const pointer to
9379 parse_exp_1.
9380 * eval.c (parse_and_eval_address): Make "exp" const.
9381 (parse_to_comma_and_eval): Make "expp" const.
9382 (parse_and_eval): Make "exp" const.
9383 * expression.h (parse_expression): Make argument const.
9384 (parse_exp_1): Make first argument const.
9385 * findcmd.c (parse_find_args): Treat "args" as const.
9386 * linespec.c (parse_linespec): Pass const pointer to
9387 linespec_expression_to_pc.
9388 (linespec_expression_to_pc): Make "exp_ptr" const.
9389 * parse.c (parse_exp_1): Make "stringptr" const.
9390 Make a copy of the expression to pass to parse_exp_in_context until
9391 this whole interface can be constified.
9392 (parse_expression): Make "string" const.
9393 * printcmd.c (ui_printf): Treat "arg" as const.
9394 Handle const strings.
9395 * tracepoint.c (validate_actionline): Pass const pointer to
9396 all calls to parse_exp_1.
9397 (encode_actions_1): Likewise.
9398 * value.h (parse_to_comma_and_eval): Make argument const.
9399 (parse_and_eval_address): Likewise.
9400 (parse_and_eval): Likewise.
9401 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9402 (varobj_set_value): Likewise.
9403 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9404 constify string handling.
9405 Pass const pointers to parse_and_eval_address and
9406 parse_to_comman_and_eval.
9407 * cli/cli-utils.c (skip_to_space): Rename to ...
9408 (skip_to_space_const): ... this. Handle const strings.
9409 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9410 skip_to_space_const.
9411 (skip_to_space_const): Declare.
9412 * common/format.c (parse_format_string): Make "arg" const.
9413 Handle const strings.
9414 * common/format.h (parse_format_string): Make "arg" const.
9415 * gdbserver/ax.c (ax_printf): Make "format" const.
9416 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9417 of the expression string.
9418
9419 2013-03-12 Hui Zhu <hui@codesourcery.com>
9420
9421 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9422
9423 2013-03-12 Yao Qi <yao@codesourcery.com>
9424 Hui Zhu <hui@codesourcery.com>
9425
9426 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9427 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9428 DW_OP_deref_size.
9429
9430 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9431
9432 * ada-lex.l (rules): Only recognize 'thread' as a
9433 delimiter when followed by numerals, as for c-exp.y.
9434 Use new rewind_to_char function to rewind the input for
9435 expression-delimiting tokens.
9436 (rewind_to_char): New function.
9437
9438 2013-03-11 Pedro Alves <palves@redhat.com>
9439 Jan Kratochvil <jan.kratochvil@redhat.com>
9440
9441 * configure: Regenerate.
9442 * configure.ac (check dynamic export flag): Link python test with
9443 $PYTHON_LIBS.
9444
9445 2013-03-11 Doug Evans <dje@google.com>
9446 Keith Seitz <keiths@redhat.com>
9447
9448 * linespec.c (find_linespec_symbols): Call find_function_symbols
9449 first, and then call lookup_prefix_sym/find_method.
9450
9451 2013-03-11 Pedro Alves <palves@redhat.com>
9452
9453 * charset.c (convert_between_encodings): Don't cast between
9454 different pointer to pointer types. Instead, make the 'inp' local
9455 be of the type iconv expects.
9456 (wchar_iterate): Don't cast between different pointer to pointer
9457 types. Instead, use new pointer local of the type iconv expects.
9458 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9459 Add new local of type char pointer, and use it to get a
9460 char/string view of the byte buffer, instead of casting between
9461 pointer to pointer types.
9462
9463 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9464
9465 * remote.c (remote_set_trace_buffer_size): Move != operator
9466 to the start of next line to fix an ARI warning.
9467
9468 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9469
9470 * NEWS: Add record changes.
9471
9472 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9473
9474 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9475 the instruction history disassembly.
9476 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9477 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9478
9479 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9480
9481 * Makefile.in (SFILES): Add record-btrace.c
9482 (COMMON_OBS): Add record-btrace.o
9483 * record-btrace.c: New.
9484 * objfiles.c: Include btrace.h.
9485 (free_objfile): call btrace_free_objfile.
9486
9487 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9488
9489 * target.c (target_call_history, target_call_history_from,
9490 target_call_history_range): New.
9491 * target.h (target_ops) <to_call_history, to_call_history_from,
9492 to_call_history_range>: New fields.
9493 (target_call_history, target_call_history_from,
9494 target_call_history_range): New declaration.
9495 * record.c (get_call_history_modifiers, cmd_record_call_history,
9496 record_call_history_size): New.
9497 (_initialize_record): Add the "record function-call-history" command.
9498 Add "set/show record function-call-history-size" commands.
9499 * record.h (record_print_flag): New.
9500
9501 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9502
9503 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9504 to_insn_history_range>: New fields.
9505 (target_insn_history): New.
9506 (target_insn_history_from): New.
9507 (target_insn_history_range): New.
9508 * target.c (target_insn_history): New.
9509 (target_insn_history_from): New.
9510 (target_insn_history_range): New.
9511 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9512 (record_insn_history_size): New.
9513 (get_insn_number): New.
9514 (get_context_size): New.
9515 (no_chunk): New.
9516 (get_insn_history_modifiers): New.
9517 (cmd_record_insn_history): New.
9518 (_initialize_record): Add "set/show record instruction-history-size"
9519 command. Add "record instruction-history" command.
9520
9521 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9522
9523 * record.h (record_disconnect): New.
9524 (record_detach): New.
9525 (record_mourn_inferior): New.
9526 (record_kill): New.
9527 * record-full.c (record_disconnect, record_detach,
9528 record_mourn_inferior, record_kill): Move to...
9529 * record.c: ...here.
9530 (DEBUG): New.
9531 (record_stop): New.
9532 (record_unpush): New.
9533 (cmd_record_stop): Call record_stop. Replace unpush_target
9534 call with record_unpush call.
9535 (record_disconnect, record_detach): Assert that the target
9536 is of record stratum. Call record_unpush, record_stop, and
9537 DEBUG.
9538 (record_mourn_inferior, record_kill): Assert that the target
9539 is of record stratum. Call record_unpush and DEBUG.
9540
9541 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9542
9543 * record-full.h, record-full.c (record_memory_query): Rename
9544 to ...
9545 (record_full_memory_query): ...this. Update all users.
9546 (record_arch_list_add_reg): Rename to ...
9547 (record_full_arch_list_add_reg): ...this. Update all users.
9548 (record_arch_list_add_mem): Rename to ...
9549 (record_full_arch_list_add_mem): ...this. Update all users.
9550 (record_arch_list_add_end): Rename to ...
9551 (record_full_arch_list_add_end): ...this. Update all users.
9552 (record_gdb_operation_disable_set): Rename to ...
9553 (record_full_gdb_operation_disable_set): ...this.
9554 Update all users.
9555
9556 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9557
9558 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9559 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9560 (RECORD_IS_REPLAY): Renamed to ...
9561 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9562 (RECORD_FILE_MAGIC): Renamed to ...
9563 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9564 (record_mem_entry): Renamed to ...
9565 (record_full_mem_entry): ... this. Updated all users.
9566 (record_reg_entry): Renamed to ...
9567 (record_full_reg_entry): ... this. Updated all users.
9568 (record_end_entry): Renamed to ...
9569 (record_full_end_entry): ... this. Updated all users.
9570 (record_type) <record_end, record_reg, record_mem>: Renamed
9571 to ...
9572 (record_full_type) <record_full_end, record_full_reg,
9573 record_full_mem>: ... this. Updated all users.
9574 (record_entry): Renamed to ...
9575 (record_full_entry): ... this. Updated all users.
9576 (record_core_buf_entry): Renamed to ...
9577 (record_full_core_buf_entry): ... this. Updated all users.
9578 (record_core_regbuf): Renamed to ...
9579 (record_full_core_regbuf): ... this. Updated all users.
9580 (record_core_start): Renamed to ...
9581 (record_full_core_start): ... this. Updated all users.
9582 (record_core_end): Renamed to ...
9583 (record_full_core_end): ... this. Updated all users.
9584 (record_core_buf_list): Renamed to ...
9585 (record_full_core_buf_list): ... this. Updated all users.
9586 (record_first): Renamed to ...
9587 (record_full_first): ... this. Updated all users.
9588 (record_list): Renamed to ...
9589 (record_full_list): ... this. Updated all users.
9590 (record_arch_list_head): Renamed to ...
9591 (record_full_arch_list_head): ... this. Updated all users.
9592 (record_arch_list_tail): Renamed to ...
9593 (record_full_arch_list_tail): ... this. Updated all users.
9594 (record_stop_at_limit): Renamed to ...
9595 (record_full_stop_at_limit): ... this. Updated all users.
9596 (record_insn_max_num): Renamed to ...
9597 (record_full_insn_max_num): ... this. Updated all users.
9598 (record_insn_num): Renamed to ...
9599 (record_full_insn_num): ... this. Updated all users.
9600 (record_insn_count): Renamed to ...
9601 (record_full_insn_count): ... this. Updated all users.
9602 (record_ops): Renamed to ...
9603 (record_full_ops): ... this. Updated all users.
9604 (record_core_ops): Renamed to ...
9605 (record_full_core_ops): ... this. Updated all users.
9606 (set_record_cmdlist): Renamed to ...
9607 (set_record_full_cmdlist): ... this. Updated all users.
9608 (show_record_cmdlist): Renamed to ...
9609 (show_record_full_cmdlist): ... this. Updated all users.
9610 (record_cmdlist): Renamed to ...
9611 (record_full_cmdlist): ... this. Updated all users.
9612 (record_beneath_to_resume_ops): Renamed to ...
9613 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9614 (record_beneath_to_resume): Renamed to ...
9615 (record_full_beneath_to_resume): ... this. Updated all users.
9616 (record_beneath_to_wait_ops): Renamed to ...
9617 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9618 (record_beneath_to_wait): Renamed to ...
9619 (record_full_beneath_to_wait): ... this. Updated all users.
9620 (record_beneath_to_store_registers_ops): Renamed to ...
9621 (record_full_beneath_to_store_registers_ops): ... this.
9622 Updated all users.
9623 (record_beneath_to_store_registers): Renamed to ...
9624 (record_full_beneath_to_store_registers): ... this.
9625 Updated all users.
9626 (record_beneath_to_xfer_partial_ops): Renamed to ...
9627 (record_full_beneath_to_xfer_partial_ops): ... this.
9628 Updated all users.
9629 (record_beneath_to_xfer_partial): Renamed to ...
9630 (record_full_beneath_to_xfer_partial): ... this.
9631 Updated all users.
9632 (record_beneath_to_insert_breakpoint): Renamed to ...
9633 (record_full_beneath_to_insert_breakpoint): ... this.
9634 Updated all users.
9635 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9636 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9637 Updated all users.
9638 (record_beneath_to_stopped_data_address): Renamed to ...
9639 (record_full_beneath_to_stopped_data_address): ... this.
9640 Updated all users.
9641 (record_beneath_to_async): Renamed to ...
9642 (record_full_beneath_to_async): ... this. Updated all users.
9643 (record_goto_insn): Renamed to ...
9644 (record_full_goto_insn): ... this. Updated all users.
9645 (record_save): Renamed to ...
9646 (record_full_save): ... this. Updated all users.
9647 (record_reg_alloc): Renamed to ...
9648 (record_full_reg_alloc): ... this. Updated all users.
9649 (record_reg_release): Renamed to ...
9650 (record_full_reg_release): ... this. Updated all users.
9651 (record_mem_alloc): Renamed to ...
9652 (record_full_mem_alloc): ... this. Updated all users.
9653 (record_mem_release): Renamed to ...
9654 (record_full_mem_release): ... this. Updated all users.
9655 (record_end_alloc): Renamed to ...
9656 (record_full_end_alloc): ... this. Updated all users.
9657 (record_end_release): Renamed to ...
9658 (record_full_end_release): ... this. Updated all users.
9659 (record_entry_release): Renamed to ...
9660 (record_full_entry_release): ... this. Updated all users.
9661 (record_list_release): Renamed to ...
9662 (record_full_list_release): ... this. Updated all users.
9663 (record_list_release_following): Renamed to ...
9664 (record_full_list_release_following): ... this.
9665 Updated all users.
9666 (record_list_release_first): Renamed to ...
9667 (record_full_list_release_first): ... this. Updated all users.
9668 (record_arch_list_add): Renamed to ...
9669 (record_full_arch_list_add): ... this. Updated all users.
9670 (record_get_loc): Renamed to ...
9671 (record_full_get_loc): ... this. Updated all users.
9672 (record_check_insn_num): Renamed to ...
9673 (record_full_check_insn_num): ... this. Updated all users.
9674 (record_arch_list_cleanups): Renamed to ...
9675 (record_full_arch_list_cleanups): ... this. Updated all users.
9676 (record_message): Renamed to ...
9677 (record_full_message): ... this. Updated all users.
9678 (record_message_wrapper): Renamed to ...
9679 (record_full_message_wrapper): ... this. Updated all users.
9680 (record_message_wrapper_safe): Renamed to ...
9681 (record_full_message_wrapper_safe): ... this. Updated all users.
9682 (record_gdb_operation_disable): Renamed to ...
9683 (record_full_gdb_operation_disable): ... this. Updated all users.
9684 (record_hw_watchpoint): Renamed to ...
9685 (record_full_hw_watchpoint): ... this. Updated all users.
9686 (record_exec_insn): Renamed to ...
9687 (record_full_exec_insn): ... this. Updated all users.
9688 (record_restore): Renamed to ...
9689 (record_full_restore): ... this. Updated all users.
9690 (record_async_inferior_event_token): Renamed to ...
9691 (record_full_async_inferior_event_token): ... this.
9692 Updated all users.
9693 (record_async_inferior_event_handler): Renamed to ...
9694 (record_full_async_inferior_event_handler): ... this.
9695 Updated all users.
9696 (record_core_open_1): Renamed to ...
9697 (record_full_core_open_1): ... this. Updated all users.
9698 (record_open_1): Renamed to ...
9699 (record_full_open_1): ... this. Updated all users.
9700 (record_open): Renamed to ...
9701 (record_full_open): ... this. Updated all users.
9702 (record_close): Renamed to ...
9703 (record_full_close): ... this. Updated all users.
9704 (record_resume_step): Renamed to ...
9705 (record_full_resume_step): ... this. Updated all users.
9706 (record_resumed): Renamed to ...
9707 (record_full_resumed): ... this. Updated all users.
9708 (record_execution_dir): Renamed to ...
9709 (record_full_execution_dir): ... this. Updated all users.
9710 (record_resume): Renamed to ...
9711 (record_full_resume): ... this. Updated all users.
9712 (record_get_sig): Renamed to ...
9713 (record_full_get_sig): ... this. Updated all users.
9714 (record_sig_handler): Renamed to ...
9715 (record_full_sig_handler): ... this. Updated all users.
9716 (record_wait_cleanups): Renamed to ...
9717 (record_full_wait_cleanups): ... this. Updated all users.
9718 (record_wait_1): Renamed to ...
9719 (record_full_wait_1): ... this. Updated all users.
9720 (record_wait): Renamed to ...
9721 (record_full_wait): ... this. Updated all users.
9722 (record_stopped_by_watchpoint): Renamed to ...
9723 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9724 (record_disconnect): Renamed to ...
9725 (record_full_disconnect): ... this. Updated all users.
9726 (record_detach): Renamed to ...
9727 (record_full_detach): ... this. Updated all users.
9728 (record_mourn_inferior): Renamed to ...
9729 (record_full_mourn_inferior): ... this. Updated all users.
9730 (record_kill): Renamed to ...
9731 (record_full_kill): ... this. Updated all users.
9732 (record_stopped_data_address): Renamed to ...
9733 (record_full_stopped_data_address): ... this. Updated all users.
9734 (record_registers_change): Renamed to ...
9735 (record_full_registers_change): ... this. Updated all users.
9736 (record_store_registers): Renamed to ...
9737 (record_full_store_registers): ... this. Updated all users.
9738 (record_xfer_partial): Renamed to ...
9739 (record_full_xfer_partial): ... this. Updated all users.
9740 (record_breakpoint): Renamed to ...
9741 (record_full_breakpoint): ... this. Updated all users.
9742 (record_breakpoint_p): Renamed to ...
9743 (record_full_breakpoint_p): ... this. Updated all users.
9744 (record_breakpoints): Renamed to ...
9745 (record_full_breakpoints): ... this. Updated all users.
9746 (record_sync_record_breakpoints): Renamed to ...
9747 (record_full_sync_record_breakpoints): ... this.
9748 Updated all users.
9749 (record_init_record_breakpoints): Renamed to ...
9750 (record_full_init_record_breakpoints): ... this.
9751 Updated all users.
9752 (record_insert_breakpoint): Renamed to ...
9753 (record_full_insert_breakpoint): ... this. Updated all users.
9754 (record_remove_breakpoint): Renamed to ...
9755 (record_full_remove_breakpoint): ... this. Updated all users.
9756 (record_can_execute_reverse): Renamed to ...
9757 (record_full_can_execute_reverse): ... this. Updated all users.
9758 (record_get_bookmark): Renamed to ...
9759 (record_full_get_bookmark): ... this. Updated all users.
9760 (record_goto_bookmark): Renamed to ...
9761 (record_full_goto_bookmark): ... this. Updated all users.
9762 (record_async): Renamed to ...
9763 (record_full_async): ... this. Updated all users.
9764 (record_can_async_p): Renamed to ...
9765 (record_full_can_async_p): ... this. Updated all users.
9766 (record_is_async_p): Renamed to ...
9767 (record_full_is_async_p): ... this. Updated all users.
9768 (record_execution_direction): Renamed to ...
9769 (record_full_execution_direction): ... this. Updated all users.
9770 (record_info): Renamed to ...
9771 (record_full_info): ... this. Updated all users.
9772 (record_delete): Renamed to ...
9773 (record_full_delete): ... this. Updated all users.
9774 (record_is_replaying): Renamed to ...
9775 (record_full_is_replaying): ... this. Updated all users.
9776 (record_goto_entry): Renamed to ...
9777 (record_full_goto_entry): ... this. Updated all users.
9778 (record_goto_begin): Renamed to ...
9779 (record_full_goto_begin): ... this. Updated all users.
9780 (record_goto_end): Renamed to ...
9781 (record_full_goto_end): ... this. Updated all users.
9782 (record_goto): Renamed to ...
9783 (record_full_goto): ... this. Updated all users.
9784 (init_record_ops): Renamed to ...
9785 (init_record_full_ops): ... this. Updated all users.
9786 (record_core_resume): Renamed to ...
9787 (record_full_core_resume): ... this. Updated all users.
9788 (record_core_kill): Renamed to ...
9789 (record_full_core_kill): ... this. Updated all users.
9790 (record_core_fetch_registers): Renamed to ...
9791 (record_full_core_fetch_registers): ... this. Updated all users.
9792 (record_core_prepare_to_store): Renamed to ...
9793 (record_full_core_prepare_to_store): ... this. Updated all users.
9794 (record_core_store_registers): Renamed to ...
9795 (record_full_core_store_registers): ... this. Updated all users.
9796 (record_core_xfer_partial): Renamed to ...
9797 (record_full_core_xfer_partial): ... this. Updated all users.
9798 (record_core_insert_breakpoint): Renamed to ...
9799 (record_full_core_insert_breakpoint): ... this. Updated all users.
9800 (record_core_remove_breakpoint): Renamed to ...
9801 (record_full_core_remove_breakpoint): ... this. Updated all users.
9802 (record_core_has_execution): Renamed to ...
9803 (record_full_core_has_execution): ... this. Updated all users.
9804 (init_record_core_ops): Renamed to ...
9805 (init_record_full_core_ops): ... this. Updated all users.
9806 (cmd_record_restore): Renamed to ...
9807 (cmd_record_full_restore): ... this. Updated all users.
9808 (record_save_cleanups): Renamed to ...
9809 (record_full_save_cleanups): ... this. Updated all users.
9810 (cmd_record_start): Renamed to ...
9811 (cmd_record_full_start): ... this. Updated all users.
9812 (set_record_insn_max_num): Renamed to ...
9813 (set_record_full_insn_max_num): ... this. Updated all users.
9814 (set_record_command): Renamed to ...
9815 (set_record_full_command): ... this. Updated all users.
9816 (show_record_command): Renamed to ...
9817 (show_record_full_command): ... this. Updated all users.
9818 (_initialize_record): Renamed to ...
9819 (_initialize_record_full): ... this. Updated all users.
9820
9821 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9822
9823 * record.h: Split into this and ...
9824 * record-full.h: ... this.
9825 * record.c: Split into this and ...
9826 * record-full.c: ... this.
9827 * target.h (target_ops): Add new fields to_info_record,
9828 to_save_record, to_delete_record, to_record_is_replaying,
9829 to_goto_record_begin, to_goto_record_end, to_goto_record.
9830 (target_info_record): New.
9831 (target_save_record): New.
9832 (target_supports_delete_record): New.
9833 (target_delete_record): New.
9834 (target_record_is_replaying): New.
9835 (target_goto_record_begin): New.
9836 (target_goto_record_end): New.
9837 (target_goto_record): New.
9838 * target.c (target_info_record): New.
9839 (target_save_record): New.
9840 (target_supports_delete_record): New.
9841 (target_delete_record): New.
9842 (target_record_is_replaying): New.
9843 (target_goto_record_begin): New.
9844 (target_goto_record_end): New.
9845 (target_goto_record): New.
9846 * record.h: Declare struct cmd_list_element.
9847 (record_cmdlist): New declaration.
9848 (set_record_cmdlist): New declaration.
9849 (show_record_cmdlist): New declaration.
9850 (info_record_cmdlist): New declaration.
9851 (cmd_record_goto): New declaration.
9852 * record.c: Remove unnecessary includes.
9853 Include inferior.h.
9854 (cmd_record_goto): Remove declaration.
9855 (record_cmdlist): Now extern. Initialize.
9856 (set_record_cmdlist): Now extern. Initialize.
9857 (show_record_cmdlist): Now extern. Initialize.
9858 (info_record_cmdlist): Now extern. Initialize.
9859 (find_record_target): New.
9860 (require_record_target): New.
9861 (cmd_record_start): Update.
9862 (cmd_record_delete): Remove target-specific code.
9863 Call target_delete_record.
9864 (cmd_record_stop): Unpush any record target.
9865 (set_record_insn_max_num): Move to record-full.c
9866 (set_record_command): Add comment.
9867 (show_record_command): Add comment.
9868 (info_record_command): Update comment.
9869 Remove target-specific code.
9870 Call the record target's to_info_record.
9871 (cmd_record_start): New.
9872 (cmd_record_goto): Now extern.
9873 Remove target-specific code.
9874 Call target_goto_begin, target_goto_end, or target_goto.
9875 (_initialize_record): Move record target ops initialization to
9876 record-full.c.
9877 Change "record" command help text.
9878 Move "record restore", "record set", and "record show" commands to
9879 record-full.c.
9880 * Makefile.in (SFILES): Add record-full.c.
9881 (HFILES_NO_SRCDIR): Add record-full.h.
9882 (COMMON_OBS): Add record-full.o.
9883 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9884 * arm-tdep.c: Include record-full.h.
9885 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9886 * i386-tdep.c: Include record-full.h.
9887 * infrun.c: Include record-full.h.
9888 * linux-record.c: Include record-full.h.
9889 * moxie-tdep.c: Include record-full.h.
9890 * record-full.c: Include record-full.h.
9891 Change module comment.
9892 (set_record_full_cmdlist): New.
9893 (show_record_full_cmdlist): New.
9894 (record_full_cmdlist): New.
9895 (record_goto_insn): New declaration.
9896 (record_save): New declaration.
9897 (record_check_insn_num): Change query string.
9898 (record_info): New.
9899 (record_delete): New.
9900 (record_is_replaying): New.
9901 (record_goto_entry): New.
9902 (record_goto_begin): New.
9903 (record_goto_end): New.
9904 (record_goto): New.
9905 (init_record_ops): Update.
9906 (init_record_core_ops): Update.
9907 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9908 (cmd_record_start): New.
9909 (set_record_insn_max_num): Moved from record.c
9910 (set_record_full_command): New.
9911 (show_record_full_command): New.
9912 (_initialize_record_full): New.
9913
9914 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9915
9916 * target.h (add_deprecated_target_alias): New.
9917 * target.c (add_deprecated_target_alias): New.
9918
9919 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9920
9921 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9922 and signal.h.
9923 (linux_supports_btrace): Add kernel and
9924 cpuid check.
9925 (kernel_supports_btrace): New function.
9926 (cpu_supports_btrace): New function.
9927 (intel_supports_btrace): New function.
9928
9929 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9930
9931 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9932 * remote.c: Include btrace.h.
9933 (struct btrace_target_info): New struct.
9934 (remote_supports_btrace): New function.
9935 (send_Qbtrace): New function.
9936 (remote_enable_btrace): New function.
9937 (remote_disable_btrace): New function.
9938 (remote_teardown_btrace): New function.
9939 (remote_read_btrace): New function.
9940 (init_remote_ops): Add btrace ops.
9941 (enum <unnamed>): Add btrace packets.
9942 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9943 (_initialize_remote): Add packet configuration for branch tracing.
9944
9945 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9946
9947 * features/btrace.dtd: New file.
9948 * Makefile.in (XMLFILES): Add btrace.dtd.
9949 * btrace.h (parse_xml_btrace): New declaration.
9950 * btrace.c: Include xml-support.h.
9951 (parse_xml_btrace): New function.
9952 (parse_xml_btrace_block): New function.
9953 (block_attributes): New struct.
9954 (btrace_attributes): New struct.
9955 (btrace_children): New struct.
9956 (btrace_elements): New struct.
9957
9958 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9959
9960 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9961 (amd64_linux_enable_btrace): New.
9962 (amd64_linux_disable_btrace): New.
9963 (amd64_linux_teardown_btrace): New.
9964 (_initialize_amd64_linux_nat): Initialize btrace ops.
9965 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9966 (i386_linux_enable_btrace): New.
9967 (i386_linux_disable_btrace): New.
9968 (i386_linux_teardown_btrace): New.
9969 (_initialize_i386_linux_nat): Initialize btrace ops.
9970 * config/i386/linux.mh: Add linux-btrace.o.
9971 * config/i386/linux64.mh: Add linux-btrace.o.
9972
9973 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9974
9975 * common/linux_btrace.h: New file.
9976 * common/linux_btrace.c: New file.
9977 * Makefile.in (SFILES): Add btrace.c.
9978 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9979 (COMMON_OBS): Add btrace.o.
9980 (linux-btrace.o): New rule.
9981
9982 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9983
9984 * target.h: Include btrace.h.
9985 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9986 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9987 * target.c (target_supports_btrace): New function.
9988 (target_enable_btrace): New function.
9989 (target_disable_btrace): New function.
9990 (target_teardown_btrace): New function.
9991 (target_read_btrace): New function.
9992 * btrace.h: New file.
9993 * btrace.c: New file.
9994 * Makefile.in: Add btrace.c.
9995 * gdbthread.h: Include btrace.h.
9996 (struct thread_info): Add btrace field.
9997 * thread.c: Include btrace.h.
9998 (clear_thread_inferior_resources): Call target_teardown_btrace.
9999 * common/btrace-common.h: New file.
10000
10001 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10002
10003 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10004 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10005 kill_status to outer block.
10006
10007 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10008
10009 Fix entry-values if the callee called a noreturn function.
10010 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10011 get_frame_address_in_block. Add new comment.
10012
10013 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 Fix entry-values in C++ across CUs.
10016 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10017 lookup_minimal_symbol. Add a comment.
10018 * dwarf2read.c
10019 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10020 DW_AT_linkage_name.
10021
10022 2013-03-08 Yao Qi <yao@codesourcery.com>
10023
10024 * tracepoint.c (_initialize_tracepoint): Indent the code.
10025
10026 2013-03-08 Pedro Alves <palves@redhat.com>
10027
10028 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10029 (parse_find_args, find_command): Change type of pattern buffer
10030 locals to 'gdb_byte *'.
10031
10032 2013-03-08 Stan Shebs <stan@codesourcery.com>
10033 Hafiz Abid Qadeer <abidh@codesourcery.com>
10034
10035 * NEWS: Mention set and show trace-buffer-size commands.
10036 Mention new packet.
10037 * target.h (struct target_ops): New method
10038 to_set_trace_buffer_size.
10039 (target_set_trace_buffer_size): New macro.
10040 * target.c (update_current_target): Set up new method.
10041 * tracepoint.c (trace_buffer_size): New global.
10042 (start_tracing): Send it to the target.
10043 (set_trace_buffer_size): New function.
10044 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10045 * remote.c (remote_set_trace_buffer_size): New function.
10046 (_initialize_remote): Use it.
10047 (QTBuffer:size) New remote command.
10048 (PACKET_QTBuffer_size): New enum.
10049 (remote_protocol_features): Add an entry for
10050 PACKET_QTBuffer_size.
10051
10052 2013-03-08 Tom Tromey <tromey@redhat.com>
10053
10054 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10055 variable.
10056
10057 2013-03-07 Pedro Alves <palves@redhat.com>
10058
10059 * target.c (target_read_stralloc, target_fileio_read_alloc):
10060 *Cast pointer to 'gdb_byte *' in target call.
10061
10062 2013-03-07 Pedro Alves <palves@redhat.com>
10063
10064 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10065 call.
10066
10067 2013-03-07 Keith Seitz <keiths@redhat.com>
10068
10069 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10070 (trace_pass_command): Likewise.
10071 * cli/cli-cmds.c: Include cli/cli-utils.h.
10072 (source_command): Use skip-spaces.
10073 (disassemble_command): Likewise.
10074 * findcmd.c: Include cli/cli-utils.h.
10075 (parse_find_args): Use skip_spaces.
10076 * go32-nat.c: Include cli/cli-utils.h.
10077 (go32_sldt): Use skip_spaces.
10078 (go32_sgdt): Likewise.
10079 (go32_sidt): Likewise.
10080 (go32_pde): Likewise.
10081 (go32_pte): Likewise.
10082 (go32_pte_for_address): Likewise.
10083 * infcmd.c: Include cli/cli-utils.h.
10084 (registers_info): Use skip_spaces.
10085 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10086 (linux_info_proc): Likewise.
10087 * linux-thread-db.c: Include cli/cli-utils.h.
10088 (info_auto_load_libthread_db): Use skip_spaces_const.
10089 * m32r-rom.c: Include cli/cli-utils.h.
10090 (m32r_upload_command): Use skip_spaces.
10091 * maint.c: Include cli/cli-utils.h.
10092 (maintenance_translate_address): Use skip_spaces.
10093 * mi/mi-parse.c: Include cli/cli-utils.h.
10094 (mi_parse_argv): Use skip_spaces.
10095 (mi_parse): Likewise.
10096 * minsyms.c: Include cli/cli-utils.h.
10097 (msymbol_hash_iw): Use skip_spaces_const.
10098 * objc-lang.c: Include cli/cli-utils.h.
10099 (parse_selector): Use skip_spaces.
10100 (parse_method): Likewise.
10101 * python/python.c: Include cli/cli-utils.h.
10102 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10103 (python_command)[HAVE_PYTHON]: Likewise.
10104 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10105 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10106 (m32r_load): Use skip_spaces.
10107 * serial.c: Include cli/cli-utils.h.
10108 (serial_open): Use skip_spaces_const.
10109 * stack.c: Include cli/cli-utils.h.
10110 (parse_frame_specification_1): Use skip_spaces_const.
10111 * symfile.c: Include cli/cli-utils.h.
10112 (set_ext_lang_command): Use skip_spaces.
10113 * symtab.c: Include cli/cli-utils.h.
10114 (rbreak_command): Use skip_spaces.
10115 * thread.c (thread_name_command): Use skip_spaces.
10116 * tracepoint.c (validate_actionline): Use skip_spaces.
10117 (encode_actions_1): Likewise.
10118 (trace_find_range_command): Likewise.
10119 (trace_find_outside_command): Likewise.
10120 (trace_dump_actions): Likewise.
10121
10122 2013-03-07 Pedro Alves <palves@redhat.com>
10123
10124 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10125 * expprint.c (print_subexp_standard): Likewise.
10126 * utils.c (host_char_to_target): Likewise.
10127 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10128 * varobj.c (value_get_print_value): Change type of local to char*.
10129 Cast it gdb_byte * in call to language printer.
10130
10131 2013-03-07 Pedro Alves <palves@redhat.com>
10132
10133 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10134 gdb_byte *'.
10135 (make_wchar_iterator): Remove cast to char*.
10136 (wchar_iterate): Change type of local.
10137
10138 2013-03-07 Pedro Alves <palves@redhat.com>
10139
10140 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10141 for 'regcache->register_status'.
10142
10143 2013-03-07 Pedro Alves <palves@redhat.com>
10144
10145 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10146 int.
10147
10148 2013-03-07 Pedro Alves <palves@redhat.com>
10149
10150 * stap-probe.c (handle_stap_probe): Add cast to char*.
10151
10152 2013-03-07 Pedro Alves <palves@redhat.com>
10153
10154 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10155 RECORD_MSGRCV>: Pass a signed variable to
10156 regcache_raw_read_signed, instead of an unsigned one.
10157
10158 2013-03-07 Pedro Alves <palves@redhat.com>
10159
10160 * remote-notif.c (notif_debug): Change type to int.
10161 * remote-notif.h (notif_debug): Likewise.
10162
10163 2013-03-07 Pedro Alves <palves@redhat.com>
10164
10165 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10166
10167 2013-03-07 Pedro Alves <palves@redhat.com>
10168
10169 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10170 * remote.h (hex2bin, bin2hex): ... here.
10171 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10172
10173 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10174
10175 * utils.c (initialize_utils): Improve doc strings of "set/show
10176 width", "set/show height", and "set/show pagination".
10177
10178 2013-03-06 Keith Seitz <keiths@redhat.com>
10179
10180 * ax-gdb.c (gen_printf): Make FORMAT const.
10181 * ax-gdb.h (gen_printf): Likewise.
10182 * ax-general.c (ax_string): Make STR const.
10183 * ax.h (ax_string): Likewise.
10184
10185 2013-03-06 Doug Evans <dje@google.com>
10186
10187 * elfread.c (elf_symfile_read): Move debugging printf to more
10188 logical location.
10189
10190 2013-03-06 Pedro Alves <palves@redhat.com>
10191
10192 * python/py-utils.c (target_string_to_unicode): Delete function.
10193 * python/python-internal.h (target_string_to_unicode): Delete
10194 declaration.
10195
10196 2013-03-06 Pierre Muller <muller@sourceware.org>
10197
10198 * linespec.c (get_current_search_block): ARI fix, use (void)
10199 for empty parameter list.
10200
10201 2013-03-05 Doug Evans <dje@google.com>
10202
10203 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10204 of old ada_lookup_symbol_list. In !full_search case, don't
10205 search superblocks.
10206 (ada_lookup_symbol_list): Delete arg full_search, all callers
10207 updated. Call ada_lookup_symbol_list_worker.
10208 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10209 * ada-lang.h (ada_lookup_symbol_list): Update.
10210 * language.h (language_defn): Update comment for
10211 la_iterate_over_symbols.
10212 * linespec.c (iterate_over_file_blocks): New function.
10213 (iterate_over_all_matching_symtabs): Call it.
10214 (lookup_prefix_sym): Ditto.
10215 (get_current_search_block): New function.
10216 (get_search_block): Delete.
10217 (find_label_symbols): Call get_current_search_block.
10218 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10219 * symtab.c (iterate_over_symbols): Don't search superblocks.
10220
10221 2013-03-05 Yao Qi <yao@codesourcery.com>
10222
10223 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10224 parameter VAR's type from "unsigned int" to "int".
10225 * command.h (var_zuinteger_unlimited): Update its comments.
10226 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10227
10228 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10229
10230 * NEWS: Mention new target x86_64-*-cygwin*.
10231
10232 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10233
10234 * configure.host: Add x86_64-*-cygwin* as host.
10235 * configure.tgt: Add x86_64-*-cygwin* as target.
10236 * config/i386/cygwin64.mh: New file.
10237
10238 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10239
10240 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10241
10242 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10243
10244 * linespec.c (struct linespec_canonical_name): New.
10245 (struct linespec_state): Change canonical_names type to it.
10246 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10247 xrealloc element size. Initialize the different CANONICAL fields.
10248 (canonical_to_fullform): New.
10249 (filter_results): Use it. Add variables canonical, fullform and
10250 cleanup.
10251 (struct decode_line_2_item, decode_line_2_compare_items): New.
10252 (decode_line_2): Remove variables iter and item_names, add variables
10253 items and items_count. Modify the code for these new variables.
10254
10255 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10256
10257 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10258 calling do_cleanup.
10259
10260 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10261
10262 * tracepoint.c (build_traceframe_info): Add code for byte order.
10263
10264 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10265
10266 * v850-tdep.c: (v850e2_register_name): Revise system register
10267 names to match current V850E2M architecture specifications.
10268 Update register number enum comments too.
10269
10270 2013-03-01 Jiong Wang <jiwang@tilera.com>
10271 Pedro Alves <palves@redhat.com>
10272
10273 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10274 to END_ADDR.
10275 (tilegx_skip_prologue): Limit prologue analysis to section end.
10276
10277 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10278
10279 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10280 use it.
10281
10282 2013-03-01 Pedro Alves <palves@redhat.com>
10283
10284 Use gdb_byte for bytes from the program being debugged.
10285
10286 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10287 Change type of local 'buf' to gdb_byte.
10288 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10289 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10290 * cris-tdep.c (cris_sigcontext_addr)
10291 (cris_sigtramp_frame_unwind_cache): Likewise.
10292 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10293 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10294 Likewise.
10295 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10296 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10297 (hppa32_hpux_search_dummy_call_sequence)
10298 (hppa_hpux_supply_save_state): Likewise.
10299 * hppa-linux-tdep.c (insns_match_pattern)
10300 (hppa_linux_find_global_pointer): Likewise.
10301 * hppa-tdep.c (hppa_in_function_epilogue_p)
10302 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10303 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10304 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10305 (i386fbsd_collect_uthread): Likewise.
10306 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10307 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10308 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10309 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10310 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10311 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10312 (ia64_libunwind_frame_prev_register)
10313 (ia64_libunwind_sigtramp_frame_this_id)
10314 (ia64_find_global_pointer_from_dynamic_section)
10315 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10316 (ia64_unwind_pc): Likewise.
10317 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10318 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10319 (m68hc11_extract_return_value): Likewise.
10320 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10321 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10322 (mep_get_insn, mep_push_dummy_call): Likewise.
10323 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10324 (mips_linux_in_dynsym_stub): Likewise.
10325 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10326 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10327 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10328 to gdb_byte.
10329 * remote-mips.c (mips_set_register): Likewise.
10330 * remote-sim.c (gdbsim_fetch_register): Likewise.
10331 * score-tdep.c (score7_fetch_inst): Change type of parameter
10332 'memblock' and local 'buf' to gdb_byte.
10333 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10334 Change type of local 'buf' to gdb_byte. Adjust.
10335 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10336 to gdb_byte**.
10337 (score7_analyze_prologue): Change type of 'memblock' and
10338 'memblock_ptr' locals to gdb_byte*.
10339 * sh64-tdep.c (sh64_extract_return_value)
10340 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10341 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10342 * solib-pa64.c (pa64_solib_create_inferior_hook)
10343 (pa64_open_symbol_file_object): Remove local 'buf'.
10344 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10345 (som_open_symbol_file_object): Likewise.
10346 * solib-spu.c (spu_current_sos): Likewise.
10347 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10348 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10349 (spu_store_registers): Likewise.
10350 * target.c (debug_print_register): Likewise.
10351 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10352 * xstormy16-tdep.c (xstormy16_store_return_value)
10353 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10354 (xstormy16_find_jmp_table_entry): Likewise.
10355
10356 2013-03-01 Jiong Wang <jiwang@tilera.com>
10357
10358 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10359 (tilegx_gdbarch_init): Install it.
10360
10361 2013-02-28 Tom Tromey <tromey@redhat.com>
10362
10363 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10364 PyLong_Check.
10365
10366 2013-02-28 Doug Evans <dje@google.com>
10367
10368 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10369 * python/python.c (gdbpy_find_pc_line): Ditto.
10370
10371 2013-02-28 Tom Tromey <tromey@redhat.com>
10372
10373 * contrib/excheck.py: New file.
10374 * contrib/exsummary.py: New file.
10375 * contrib/gcc-with-excheck: New file.
10376
10377 2013-02-28 Tom Tromey <tromey@redhat.com>
10378
10379 * python/python.c (gdbpy_print_stack): Call begin_line and
10380 fprintf_filtered inside TRY_CATCH.
10381
10382 2013-02-28 Tom Tromey <tromey@redhat.com>
10383
10384 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10385 inside TRY_CATCH.
10386
10387 2013-02-28 Tom Tromey <tromey@redhat.com>
10388
10389 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10390 frame_object_to_frame_info inside TRY_CATCH.
10391
10392 2013-02-28 Tom Tromey <tromey@redhat.com>
10393
10394 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10395 TRY_CATCH.
10396
10397 2013-02-28 Tom Tromey <tromey@redhat.com>
10398
10399 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10400
10401 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10402
10403 * windows-nat.c: Throughout, fix format strings and casts of
10404 printf-like functions to avoid type related warnings on all
10405 platforms.
10406 (handle_output_debug_string): Fetch context information address
10407 from debug string using string_to_core_addr.
10408
10409 2013-02-27 Jiong Wang <jiwang@tilera.com>
10410
10411 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10412 * regformats/reg-tilegx32.dat: New.
10413
10414 2013-02-27 Jiong Wang <jiwang@tilera.com>
10415
10416 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10417
10418 2013-02-27 Jiong Wang <jiwang@tilera.com>
10419
10420 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10421
10422 2013-02-27 Yao Qi <yao@codesourcery.com>
10423 Pedro Alves <palves@redhat.com>
10424
10425 * tracepoint.c (tfile_trace_find): For tfind
10426 pc/tp/range/outside, look for the next trace frame instead of
10427 always starting from frame 0.
10428
10429 2013-02-26 Anthony Green <green@moxielogic.com>
10430
10431 * configure.tgt: Add support for moxie-*-rtems* target.
10432
10433 2013-02-25 Pedro Alves <palves@redhat.com>
10434
10435 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10436 warning text.
10437
10438 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10439
10440 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10441 if $fp is used as the virtual frame pointer.
10442
10443 2013-02-23 Alan Modra <amodra@gmail.com>
10444
10445 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10446 symbol size.
10447 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10448 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10449 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10450 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10451
10452 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10453
10454 Code cleanup.
10455 * elfread.c (build_id_bfd_get): Make the return type const.
10456 (build_id_verify): Make the check parameter const.
10457 (build_id_to_debug_filename): Make the build_id parameter and variable
10458 data const.
10459 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10460
10461 2013-02-21 Alan Modra <amodra@gmail.com>
10462
10463 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10464
10465 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10466
10467 Add a new method 'disassemble' to gdb.Architecture class.
10468 * python/py-arch.c (archpy_disassmble): Implementation of the
10469 new method gdb.Architecture.disassemble.
10470 (arch_object_methods): Add entry for the new method.
10471
10472 2013-02-20 Jiong Wang <jiwang@tilera.com>
10473
10474 * MAINTAINERS (Write After Approval): Add myself to the list.
10475
10476 2013-02-19 Pedro Alves <palves@redhat.com>
10477
10478 Garbage collect 'struct monitor_ops'::load_routine.
10479
10480 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10481 * monitor.c (monitor_load): No longer call
10482 current_monitor->load_routine.
10483 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10484 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10485 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10486
10487 2013-02-19 Pedro Alves <palves@redhat.com>
10488
10489 PR gdb/15161
10490
10491 Harmonize with generic_load.
10492
10493 * monitor.c: Include "readline/readline.h".
10494 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10495 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10496 long/strtol for the 'load_offset' local. Error out if no argument
10497 is given or if too many arguments are given. Tilde expand the
10498 passed in file name.
10499
10500 2013-02-19 Kai Tietz <ktietz@redhat.com>
10501
10502 PR gdb/15161
10503 * symfile.c (load_section_data): Change type of load_offset
10504 to CORE_ADDR.
10505 (generic_load): User strtoulst instead of strtoul for conversion
10506 of load_offset.
10507
10508 2013-02-19 Jiong Wang <jiwang@tilera.com>
10509
10510 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10511 for return address, "lr" register, saved on stack.
10512 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10513 after we invoke tilegx_analyze_prologue.
10514
10515 2013-02-19 Jiong Wang <jiwang@tilera.com>
10516
10517 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10518
10519 2013-02-19 Jiong Wang <jiwang@tilera.com>
10520
10521 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10522
10523 2013-02-19 Jiong Wang <jiwang@tilera.com>
10524
10525 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10526 (tilegx_write_pc): New function.
10527 (tilegx_cannot_reference_register): Return zero if REGNO
10528 is TILEGX_FAULTNUM_REGNUM.
10529 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10530 (tilegx_register_name): Add handling of "faultnum" register.
10531 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10532 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10533 handling of TILEGX_FAULTNUM_REGNUM.
10534 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10535
10536 2013-02-19 Jiong Wang <jiwang@tilera.com>
10537
10538 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10539 should be aligned to 64bit.
10540
10541 2013-02-19 Kai Tietz <ktietz@redhat.com>
10542
10543 * windows-nat.c (windows_xfer_memory): Fix debug-output
10544 for LLP64.
10545
10546 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10547
10548 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10549 Don't check DSP register number if HAVE_DSP is not set.
10550
10551 2013-02-19 Alan Modra <amodra@gmail.com>
10552
10553 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10554 throughout file instead.
10555 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10556 Don't xmalloc return value.
10557 (build_id_verify): Similarly. Don't xfree.
10558 (build_id_to_debug_filename): Update.
10559 (find_separate_debug_file_by_buildid): Update, don't xfree.
10560
10561 2013-02-18 Tom Tromey <tromey@redhat.com>
10562
10563 PR gdb/15102:
10564 * dwarf2read.c (read_subrange_type): Use result of
10565 'check_typedef'.
10566
10567 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10568
10569 * frame.c: Remove one extra white space after #include
10570 directive.
10571
10572 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10573
10574 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10575
10576 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10579 and dir commands into an if block.
10580
10581 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10582
10583 * python/py-breakpoint (struct pybp_code): Use int instead of
10584 enum type_code.
10585
10586 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10587 Hafiz Abid Qadeer <abidh@codesourcery.com>
10588
10589 * NEWS: Mention new field "trace-file".
10590 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10591 (tfile_open): Record the trace file's filename in the trace
10592 status.
10593 (tfile_files_info): Mention the name of the trace file.
10594 Check the "filename" field explicitely.
10595 (trace_status_command): Explicitely check "filename" field.
10596 (trace_find_command): Ditto.
10597 (trace_find_pc_command): Ditto.
10598 (trace_find_tracepoint_command): Ditto.
10599 (trace_find_line_command): Ditto.
10600 (trace_find_range_command): Ditto.
10601 (trace_find_outside_command): Ditto.
10602 * tracepoint.h (struct trace_status) <from_file>: Rename it
10603 to "filename" and make it hold the trace file's filename
10604 instead of a boolean.
10605 * remote.c (remote_get_trace_status): Initialize "filename"
10606 field with NULL instead of 0.
10607
10608 2013-02-15 Yao Qi <yao@codesourcery.com>
10609
10610 * remote.c: Fix a typo.
10611
10612 2013-02-14 Pierre Muller <muller@sourceware.org>
10613
10614 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10615
10616 2013-02-14 Pedro Alves <palves@redhat.com>
10617
10618 * utils.c (savestring): Don't #undef it. Move function to
10619 common/common-utils.c.
10620 * common/common-utils.c: Include gdb_string.h.
10621 (savestring): Move here from utils.c.
10622 * common/common-utils.h (savestring): Declare.
10623
10624 2013-02-14 Pedro Alves <palves@redhat.com>
10625
10626 * utils.c (savestring): Rename parameter 'size' to 'len'.
10627
10628 2013-02-14 Pedro Alves <palves@redhat.com>
10629 Yufeng Zhang <yufeng.zhang@arm.com>
10630
10631 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10632 (aarch64_inferior_data, struct aarch64_inferior_data):
10633 Delete.
10634 (struct aarch64_process_info): New.
10635 (aarch64_process_list): New global.
10636 (aarch64_find_process_pid, aarch64_add_process)
10637 (aarch64_process_info_get): New functions.
10638 (aarch64_inferior_data_get): Delete.
10639 (aarch64_process_info_get): New function.
10640 (aarch64_forget_process): New function.
10641 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10642 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10643 aarch64_get_debug_reg_state.
10644 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10645 instead of linux_nat_iterate_watchpoint_lwps.
10646 (aarch64_linux_new_fork): New function.
10647 (aarch64_linux_child_post_startup_inferior): Use
10648 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10649 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10650 (aarch64_linux_remove_hw_breakpoint)
10651 (aarch64_handle_aligned_watchpoint)
10652 (aarch64_handle_unaligned_watchpoint)
10653 (aarch64_linux_insert_watchpoint)
10654 (aarch64_linux_remove_watchpoint)
10655 (aarch64_linux_stopped_data_address): Adjust to pass the current
10656 process id to aarch64_debug_reg_state.
10657 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10658 linux_nat_new_fork hook, and aarch64_forget_process as
10659 linux_nat_forget_process hook; remove the call to
10660 register_inferior_data_with_cleanup.
10661
10662 2013-02-14 Pedro Alves <palves@redhat.com>
10663
10664 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10665 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10666 lval_memory.
10667
10668 2013-02-14 Pedro Alves <pedro@codesourcery.com>
10669 Hafiz Abid Qadeer <abidh@codesourcery.com>
10670
10671 * tracepoint.h (validate_trace_state_variable_name): Declare.
10672 * tracepoint.c (validate_trace_state_variable_name): New.
10673 (trace_variable_command): Parse the trace state variable's name
10674 without using parse_expression. Do several validations.
10675 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10676 trace state variable's name with parse_expression. Validate it.
10677
10678 2013-02-14 Yao Qi <yao@codesourcery.com>
10679
10680 * infcmd.c (breakpoint_proceeded): Remove it.
10681
10682 2013-02-14 Yao Qi <yao@codesourcery.com>
10683
10684 * tracepoint.c (end_actions_pseudocommand): Make it static.
10685 (while_stepping_pseudocommand): Likewise.
10686 * tracepoint.h (end_actions_pseudocommand): Remove the
10687 declaration.
10688 (while_stepping_pseudocommand): Likewise.
10689
10690 2013-02-14 Yao Qi <yao@codesourcery.com>
10691
10692 * cli/cli-decode.c (help_cmd): Remove the declaration of
10693 "cmdlist".
10694 (help_all): Likewise.
10695
10696 2013-02-13 Pedro Alves <palves@redhat.com>
10697
10698 * amd64-linux-nat.c (update_debug_registers_callback):
10699 Update comment.
10700 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10701 iterate_over_lwps.
10702 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10703 i386_debug_reg_state.
10704 (amd64_linux_new_fork): New function.
10705 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10706 linux_nat_new_fork hook, and i386_forget_process as
10707 linux_nat_forget_process hook.
10708 * i386-linux-nat.c (update_debug_registers_callback):
10709 Update comment.
10710 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10711 iterate_over_lwps.
10712 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10713 i386_debug_reg_state.
10714 (i386_linux_new_fork): New function.
10715 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10716 linux_nat_new_fork hook, and i386_forget_process as
10717 linux_nat_forget_process hook.
10718 * i386-nat.c (i386_init_dregs): Delete.
10719 (i386_inferior_data, struct i386_inferior_data):
10720 Delete.
10721 (struct i386_process_info): New.
10722 (i386_process_list): New global.
10723 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10724 New functions.
10725 (i386_inferior_data_get): Delete.
10726 (i386_process_info_get): New function.
10727 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10728 (i386_forget_process): New function.
10729 (i386_cleanup_dregs): Rewrite.
10730 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10731 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10732 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10733 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10734 to i386_debug_reg_state.
10735 (i386_use_watchpoints): Don't register inferior data.
10736 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10737 adjust comment.
10738 (i386_forget_process): Declare.
10739 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10740 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10741 New static globals.
10742 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10743 (add_initial_lwp): New, factored out from ...
10744 (add_lwp): ... this. Don't check the number of lwps before
10745 calling linux_nat_new_thread.
10746 (linux_nat_iterate_watchpoint_lwps): Delete.
10747 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10748 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10749 forks and vforks.
10750 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10751 initial lwp.
10752 (linux_nat_kill, linux_nat_mourn_inferior): Call
10753 linux_nat_forget_process.
10754 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10755 (linux_nat_forget_process): New functions.
10756 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10757 type.
10758 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10759 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10760 types.
10761 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10762 (linux_nat_forget_process): New declarations.
10763
10764 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10765 (amd64fbsd_mourn_inferior): New function.
10766 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10767 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10768
10769 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10770
10771 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10772 Adding _().
10773
10774 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10775
10776 * aarch64-linux-nat.c (debug_reg_change_callback)
10777 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10778 %s and phex().
10779
10780 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10781
10782 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10783 with LONGEST.
10784
10785 2013-02-13 Pedro Alves <palves@redhat.com>
10786 Hafiz Abid Qadeer <abidh@codesourcery.com>
10787
10788 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10789
10790 2013-02-12 Tom Tromey <tromey@redhat.com>
10791
10792 PR symtab/11464:
10793 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10794 NAME return.
10795 (classify_inner_name): Remove 'first_name' argument, add
10796 'context'. Remove unused variable.
10797 (yylex): Explicitly maintain the context type. Exit loop earlier
10798 if NAME result is seen.
10799
10800 2013-02-12 Pedro Alves <palves@redhat.com>
10801
10802 * amd64-darwin-tdep.c: Add (C) after Copyright.
10803 * cli/cli-cmds.h: Ditto.
10804 * cli/cli-decode.c: Ditto.
10805 * cli/cli-decode.h: Ditto.
10806 * cli/cli-dump.c: Ditto.
10807 * cli/cli-dump.h: Ditto.
10808 * cli/cli-interp.c: Ditto.
10809 * cli/cli-logging.c: Ditto.
10810 * cli/cli-script.c: Ditto.
10811 * cli/cli-script.h: Ditto.
10812 * cli/cli-setshow.c: Ditto.
10813 * cli/cli-setshow.h: Ditto.
10814 * cli/cli-utils.c: Ditto.
10815 * cli/cli-utils.h: Ditto.
10816 * config/alpha/nm-osf3.h: Ditto.
10817 * config/djgpp/djconfig.sh: Ditto.
10818 * config/i386/nm-fbsd.h: Ditto.
10819 * config/i386/nm-i386gnu.h: Ditto.
10820 * config/nm-linux.h: Ditto.
10821 * config/nm-nto.h: Ditto.
10822 * config/rs6000/nm-rs6000.h: Ditto.
10823 * config/sparc/nm-sol2.h: Ditto.
10824 * darwin-nat-info.c: Ditto.
10825 * dfp.c: Ditto.
10826 * dfp.h: Ditto.
10827 * gdb-demangle.h: Ditto.
10828 * i386-darwin-nat.c: Ditto.
10829 * i386-darwin-tdep.c: Ditto.
10830 * linux-fork.h: Ditto.
10831 * m32c-tdep.c: Ditto.
10832 * microblaze-linux-tdep.c: Ditto.
10833 * microblaze-rom.c: Ditto.
10834 * microblaze-tdep.c: Ditto.
10835 * microblaze-tdep.h: Ditto.
10836 * mips-linux-tdep.h: Ditto.
10837 * ppc-ravenscar-thread.c: Ditto.
10838 * ppc-ravenscar-thread.h: Ditto.
10839 * prologue-value.c: Ditto.
10840 * prologue-value.h: Ditto.
10841 * ravenscar-thread.c: Ditto.
10842 * ravenscar-thread.h: Ditto.
10843 * sparc-ravenscar-thread.c: Ditto.
10844 * sparc-ravenscar-thread.h: Ditto.
10845 * tilegx-linux-tdep.c: Ditto.
10846 * unwind_stop_reasons.def: Ditto.
10847 * windows-nat.h: Ditto.
10848 * xtensa-linux-tdep.c: Ditto.
10849 * xtensa-xtregs.c: Ditto.
10850 * regformats/regdat.sh: Ditto.
10851 * regformats/regdef.h: Ditto.
10852
10853 2013-02-12 Pedro Alves <palves@redhat.com>
10854
10855 * break-catch-sig.c: Update copyright years.
10856
10857 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10858
10859 Add support for a destructor for ui_out data and use it to
10860 provide a ui_out destructor.
10861 * ui-out.h: Declare the new ui_out destructor.
10862 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10863 * ui-out.c (default_data_destroy): Add a default data destructor
10864 which does nothing.
10865 (default_ui_out_impl): Set the new data_destroy field to
10866 default_data_destroy
10867 (uo_data_destroy): Local function which invokes the data
10868 destructor if present.
10869 (clear_table): Local function which clears the table data of a
10870 ui_out object.
10871 (ui_out_destroy): Public function which frees a ui_out object.
10872 (ui_out_table_end): Use the new clear_table function.
10873 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10874 NULL.
10875 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10876 to NULL.
10877
10878 2013-02-11 Doug Evans <dje@google.com>
10879
10880 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10881 (printf_decfloat): New function. Broken out from ui_printf.
10882 Remove unnecessary code to shift the entire format string down.
10883 (printf_pointer): New function.
10884 (ui_printf): Code to print C strings, wide C strings, decfloats,
10885 and pointers moved to separate functions.
10886
10887 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10888
10889 * valops.c (value_assign): Handling bitfield offset in
10890 `lval_internalvar_component' case.
10891
10892 2013-02-08 Doug Evans <dje@google.com>
10893
10894 * common/format.c (parse_format_string): Fix whitespace.
10895
10896 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10897
10898 * stack.c (return_command): Work around uninitialized variable
10899 warning.
10900
10901 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10902
10903 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10904 number of the registers from 36 to 34.
10905
10906 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10907
10908 * NEWS: Mention new AArch64 native and target support.
10909
10910 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10911
10912 * MAINTAINERS (Write After Approval): Add myself.
10913
10914 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10915 Marcus Shawcroft <marcus.shawcroft@arm.com>
10916 Nigel Stephens <nigel.stephens@arm.com>
10917 Yufeng Zhang <yufeng.zhang@arm.com>
10918
10919 * aarch64-linux-nat.c: New file.
10920 * config/aarch64/linux.mh: New file.
10921 * configure.host: Add AArch64.
10922 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10923
10924 2013-02-07 Doug Evans <dje@google.com>
10925
10926 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10927 disassemble command.
10928
10929 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10930
10931 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10932 set_gdbarch_fetch_tls_load_module_address.
10933
10934 2013-02-06 David S. Miller <davem@davemloft.net>
10935
10936 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10937 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10938 * value.c (struct_return_convention): New function.
10939 (using_struct_return): Implement in terms of struct_return_convention.
10940 * value.h (struct_return_convention): Declare.
10941 * stack.c (return_command): Allow successful overriding of the return
10942 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10943
10944 2013-02-06 Tom Tromey <tromey@redhat.com>
10945
10946 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10947 outside of TRY_CATCH.
10948
10949 2013-02-06 Yao Qi <yao@codesourcery.com>
10950
10951 * mi/mi-interp.c: Include "tracepoint.h".
10952 (mi_tsv_modified): Declare.
10953 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10954 (mi_interpreter_init): Call observer_attach_tsv_modified.
10955 (mi_tsv_modified): New.
10956 (mi_tsv_created, mi_tsv_deleted): Update.
10957 * tracepoint.c (trace_variable_command): Call
10958 observer_notify_tsv_modified if the initial value of tsv is
10959 changed.
10960 (delete_trace_state_variable): Call
10961 observer_notify_tsv_deleted earlier.
10962 (trace_variable_command): Caller update.
10963 (create_tsv_from_upload): Likewise.
10964 * observer.sh: Declare "struct trace_state_variable".
10965
10966 * NEWS: Mention the new MI notification "=tsv-modified".
10967
10968 2013-02-05 Doug Evans <dje@google.com>
10969
10970 * completer.c (location_completer): Fix typo in comment.
10971
10972 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10973
10974 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10975 ADDRESS sorted.
10976
10977 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10978
10979 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10980 Refactor if statement to avoid trailing || operator.
10981
10982 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10983
10984 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10985
10986 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10987
10988 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10989 * configure.host: Add powerpc*-*-freebsd* target.
10990 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10991 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10992 * config/powerpc/fbsd.mh: New file.
10993
10994 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10995 Denys Vlasenko <dvlasenk@redhat.com>
10996 Pedro Alves <palves@redhat.com>
10997
10998 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10999 (struct elf_internal_linux_prpsinfo): Forward declare.
11000 * gdbarch.h, gdbarch.c: Regenerate.
11001 * linux-tdep.c: Include `cli/cli-utils.h'.
11002 (linux_fill_prpsinfo): New function.
11003 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11004 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11005 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11006 depending on gdbarch pointer bitness.
11007 * ppc-linux-tdep.c: Include elf-bfd.h.
11008 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11009 on 32-bit.
11010
11011 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11012 Marcus Shawcroft <marcus.shawcroft@arm.com>
11013 Nigel Stephens <nigel.stephens@arm.com>
11014 Yufeng Zhang <yufeng.zhang@arm.com>
11015
11016 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11017
11018 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11019 Marcus Shawcroft <marcus.shawcroft@arm.com>
11020 Nigel Stephens <nigel.stephens@arm.com>
11021 Yufeng Zhang <yufeng.zhang@arm.com>
11022
11023 * aarch64-newlib-tdep.c: New file.
11024 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11025 aarch64*-*-elf.
11026 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11027 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11028 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11029 * osabi.c (gdb_osabi_names): Add "Newlib".
11030
11031 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11032 Marcus Shawcroft <marcus.shawcroft@arm.com>
11033 Nigel Stephens <nigel.stephens@arm.com>
11034 Yufeng Zhang <yufeng.zhang@arm.com>
11035
11036 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11037 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11038 * aarch64-linux-tdep.c: New file.
11039 * aarch64-linux-tdep.h: New file.
11040 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11041 * configure.tgt: Add aarch64-none-linux-gnu.
11042
11043 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11044 Marcus Shawcroft <marcus.shawcroft@arm.com>
11045 Nigel Stephens <nigel.stephens@arm.com>
11046 Yufeng Zhang <yufeng.zhang@arm.com>
11047
11048 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11049 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11050 (ALLDEPFILES): Add aarch64-tdep.c.
11051 * aarch64-tdep.c: New file.
11052 * aarch64-tdep.h: New file.
11053 * configure.tgt: Add AArch64.
11054 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11055 (aarch64-expedite): New definition.
11056 * features/aarch64-core.xml: New file.
11057 * features/aarch64-fpu.xml: New file.
11058 * features/aarch64-without-fpu.c: New file (generated).
11059 * features/aarch64-without-fpu.xml: New file.
11060 * features/aarch64.c: New file (generated).
11061 * features/aarch64.xml: New file.
11062 * regformats/aarch64-without-fpu.dat: New file (generated).
11063 * regformats/aarch64.dat: New file (generated).
11064
11065 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11066
11067 * contrib/expect-read1.c: New file.
11068 * contrib/expect-read1.sh: New file.
11069
11070 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11071
11072 * dwarf2read.c (file_file_name): New function with code from
11073 file_full_name.
11074 (file_full_name): Move most of the code to file_file_name.
11075 (macro_start_file): Rename variable full_name to file_name and use
11076 file_file_name for it. Add comp_dir parameter to new_macro_table.
11077 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11078 macro_source_file->filename access by macro_source_fullname call.
11079 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11080 caller.
11081 * macrotab.c (struct macro_table): New field comp_dir.
11082 (macro_include): New variables link_fullname and source_fullname.
11083 Replace any macro_source_file->filename access by macro_source_fullname
11084 call.
11085 (macro_lookup_inclusion): Remove the partial filenames checking code.
11086 (check_for_redefinition): New variables source_fullname and
11087 found_key_fullname. Replace any macro_source_file->filename access by
11088 macro_source_fullname call.
11089 (macro_undef): New variables source_fullname and key_fullname. Replace
11090 any macro_source_file->filename access by macro_source_fullname call.
11091 (macro_lookup_definition): New variables retval and source_fullname.
11092 Replace any macro_source_file->filename access by macro_source_fullname
11093 call.
11094 (foreach_macro): New variable key_fullname. Replace any
11095 macro_source_file->filename access by macro_source_fullname call.
11096 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11097 macro_source_file->filename access by macro_source_fullname call.
11098 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11099 (macro_source_fullname): New function.
11100 * macrotab.h (struct macro_source_file): Extent the filename field
11101 comment.
11102 (new_macro_table): New parameter comp_dir, add a comment for it.
11103 (macro_source_fullname): new declaration.
11104
11105 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11108 this_real_name to outer block. Use it also for
11109 compare_filenames_for_search.
11110 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11111 with dw2_get_real_path for file_matcher, considering also
11112 BASENAMES_MAY_DIFFER.
11113 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11114
11115 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11116
11117 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11118 to the file_matcher parameter. Pass 0 to it.
11119 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11120 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11121 NULL psymtab_to_fullname result.
11122 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11123 an expected filename instead.
11124 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11125 file_matcher parameter. Call also psymtab_to_fullname, after newly
11126 considering BASENAMES_MAY_DIFFER.
11127 * source.c (rewrite_source_path): Remove static.
11128 * source.h (rewrite_source_path): New declaration.
11129 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11130 the expand_symtabs_matching field. Comment it.
11131 * symtab.c (file_matches): New function comment. Add parameter
11132 basenames, implement it.
11133 (search_symbols_file_matches): Add basenames parameter. Update the
11134 file_matches caller.
11135 (search_symbols): Match FILES also against symtab_to_fullname.
11136 Optimize it for BASENAMES_MAY_DIFFER.
11137
11138 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11139
11140 * source.c (print_source_lines_base): Print for TUI also "fullname".
11141 * tui/tui-data.c (init_content_element): Change tui_locator_element
11142 field to full_name.
11143 * tui/tui-data.h (struct tui_locator_element): Likewise.
11144 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11145 tui_update_locator_filename calls to tui_update_locator_fullname.
11146 Replace symtab->filename refererence by symtab_to_fullname call.
11147 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11148 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11149 field to full_name. Replace symtab->filename refererence by
11150 symtab_to_fullname call.
11151 (tui_show_symtab_source): Rename parameter to fullname. Change
11152 tui_locator_element field to full_name.
11153 * tui/tui-stack.c: Include source.h.
11154 (tui_set_locator_filename): Rename the declaration to ...
11155 (tui_set_locator_fullname): ... here. Rename its parameter to
11156 fullname, updates its comment.
11157 (tui_set_locator_info): Rename its parameter to fullname.
11158 (tui_set_locator_filename): Rename the definition to ...
11159 (tui_set_locator_fullname): ... here. Rename its parameter to
11160 fullname, updates its comment. Change tui_locator_element field to
11161 full_name.
11162 (tui_set_locator_info): Rename its parameter to fullname.
11163 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11164 (tui_update_locator_filename): Rename to ...
11165 (tui_update_locator_fullname): ... here. Rename callee to
11166 tui_set_locator_fullname.
11167 (tui_show_frame_info): Replace symtab->filename refererence by
11168 symtab_to_fullname call.
11169 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11170 (tui_update_locator_fullname): ... here.
11171 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11172 tui_update_locator_fullname. Replace symtab->filename refererence by
11173 symtab_to_fullname call.
11174 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11175 Rename the callee to tui_update_locator_fullname.
11176 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11177
11178 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11179
11180 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11181 by symtab_to_filename_for_display calls.
11182 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11183 (clear_command): New variable sal_fullname, initialize it. Replace
11184 compare_filenames_for_search by filename_cmp with sal_fullname.
11185 (say_where, update_static_tracepoint): Replace symtab->filename
11186 refererences by symtab_to_filename_for_display calls.
11187 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11188 Likewise.
11189 * dwarf2read.c: Include source.h.
11190 (fixup_go_packaging): Replace symtab->filename refererences by
11191 symtab_to_filename_for_display calls.
11192 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11193 Replace symtab->filename refererences by symtab_to_filename_for_display
11194 calls.
11195 (create_sals_line_offset, convert_linespec_to_sals): New variable
11196 fullname, initialize it, replace symtab->filename reference by the
11197 variable.
11198 * linux-fork.c: Include source.h.
11199 (info_checkpoints_command): Replace symtab->filename refererences by
11200 symtab_to_filename_for_display calls.
11201 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11202 by symtab_to_filename_for_display calls.
11203 * mdebugread.c: Include source.h.
11204 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11205 symtab_to_filename_for_display calls.
11206 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11207 (mi_cmd_file_list_exec_source_files): Likewise.
11208 * printcmd.c: Include source.h.
11209 (build_address_symbolic): Replace symtab->filename refererences by
11210 symtab_to_filename_for_display calls.
11211 * psymtab.c (partial_map_symtabs_matching_filename)
11212 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11213 with psymtab_to_fullname.
11214 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11215 by symtab_to_filename_for_display calls.
11216 (stpy_get_filename): New variable filename, initialize it, use instead
11217 of symtab->filename refererences.
11218 (salpy_str): Make variable filename const char *. Replace
11219 symtab->filename refererences by symtab_to_filename_for_display calls.
11220 * skip.c: Include source.h and filenames.h.
11221 (skip_file_command): Remove const from the symtab variable. Replace
11222 symtab->filename refererences by symtab_to_fullname call.
11223 (function_name_is_marked_for_skip): New variables searched_for_fullname
11224 and fullname. Use them to search also with symtab's fullname.
11225 * source.c (find_source_lines): Replace symtab->filename refererences
11226 by symtab_to_filename_for_display calls.
11227 (print_source_lines_base): New variable filename, use it instead of
11228 symtab->filename. Replace symtab->filename refererences by
11229 symtab_to_filename_for_display calls.
11230 (line_info, forward_search_command): Replace symtab->filename
11231 refererences by symtab_to_filename_for_display calls.
11232 (reverse_search_command): Replace symtab->filename refererences by
11233 symtab_to_filename_for_display calls. New variable filename for it.
11234 * stack.c (frame_info): Likewise.
11235 * symmisc.c: Include source.h.
11236 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11237 (maintenance_info_symtabs): Replace symtab->filename refererences by
11238 symtab_to_filename_for_display calls.
11239 * symtab.c (iterate_over_some_symtabs): Call
11240 compare_filenames_for_search also with symtab_to_fullname.
11241 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11242 symtab->filename refererences by symtab_to_filename_for_display calls.
11243 (find_line_symtab): Replace symtab->filename refererences by
11244 symtab_to_filename_for_display calls.
11245 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11246 (print_symbol_info): Make the last parameter const char *. New
11247 variable s_filename. Use it in the function.
11248 (symtab_symbol_info): Make the last_filename variable const char *.
11249 Replace symtab->filename refererences by symtab_to_filename_for_display
11250 calls.
11251 (rbreak_command): New variable fullname. Use it. Replace
11252 symtab->filename refererence by symtab_to_filename_for_display call.
11253 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11254 (print_one_static_tracepoint_marker): Replace symtab->filename
11255 refererences by symtab_to_filename_for_display calls.
11256 * tui/tui-source.c (tui_set_source_content): New variables filename and
11257 s_filename. Replace symtab->filename refererences by this variable.
11258 Replace other symtab->filename refererences by
11259 symtab_to_filename_for_display calls.
11260
11261 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11262 Jan Kratochvil <jan.kratochvil@redhat.com>
11263
11264 Add a new variable that controls a way in which filenames are
11265 displayed.
11266 * NEWS (set filename-display): New entry.
11267 * source.c (filename_display_basename, filename_display_relative)
11268 (filename_display_absolute, filename_display_kind_names)
11269 (filename_display_string, show_filename_display_string)
11270 (symtab_to_filename_for_display): New.
11271 (_initialize_source): Added initialization of 'filename-display'
11272 variable.
11273 * source.h (symtab_to_filename_for_display): Added declaration.
11274 * stack.c (print_frame): Added new variable and calling of a new
11275 function and condition with this variable. Changed third argument of
11276 calling of a function.
11277
11278 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11279
11280 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11281 Rename field reference filename to fullname.
11282 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11283 fullname. New comment for it.
11284 * tui/tui-source.c (tui_set_source_content): Rename field reference
11285 filename to fullname. Initialize field by symtab_to_fullname now.
11286 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11287 reference filename to fullname. Use symtab_to_fullname during
11288 comparison.
11289
11290 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11291
11292 Code cleanup.
11293 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11294 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11295 filename to fullname. Rename variable this_name to this_fullname.
11296 Lowercase FILENAME_CMP call.
11297 (dw2_find_symbol_file): New comment for the returned string.
11298 (dwarf2_gdb_index_functions): Rename the function to
11299 dw2_expand_symtabs_with_fullname.
11300 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11301 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11302 fullname.
11303 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11304 * symfile.h (struct quick_symbol_functions): Rename field
11305 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11306 parameter filename to fullname. Document returned string meaning for
11307 find_symbol_file.
11308 * symtab.c (find_line_symtab): Rename the called function to
11309 expand_symtabs_with_fullname.
11310
11311 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11312
11313 Code cleanup.
11314 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11315 call of filename_cmp with compare_filenames_for_search.
11316 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11317 is_abs, unify the call of FILENAME_CMP with
11318 compare_filenames_for_search. New gdb_asserts for real_path and name.
11319 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11320 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11321 * symfile.h (struct quick_symbol_functions): Extend the comment for
11322 map_symtabs_matching_filename.
11323 * symtab.c (compare_filenames_for_search): Remove the function comment
11324 relative path requirement. Handle absolute filenames, with a comment.
11325 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11326 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11327 real_path and name. Unify the call of compare_filenames_for_search
11328 with FILENAME_CMP.
11329 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11330
11331 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11332
11333 Code cleanup.
11334 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11335 source_file references by symtab field references. Remove variables
11336 sal and fullname.
11337 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11338 (clear_command, say_where): Replace bp_location field source_file
11339 references by symtab field references.
11340 (bp_location_dtor): Remove the source_file reference.
11341 (update_static_tracepoint): Replace bp_location field source_file
11342 references by symtab field references.
11343 (breakpoint_free_objfile): New function.
11344 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11345 Replace the field source_file by field symtab, extend its comment.
11346 (breakpoint_free_objfile): New declaration.
11347 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11348 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11349 field source_file references by symtab field references.
11350
11351 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11352
11353 Replace xfullpath calls by gdb_realpath calls.
11354 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11355 function comment.
11356 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11357 Remove it from the iterate_over_some_symtabs call.
11358 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11359 Remove it from the dw2_map_expand_apply calls, remove a block handling
11360 it.
11361 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11362 Remove it from the iterate_over_some_symtabs call.
11363 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11364 Remove it from the partial_map_expand_apply calls, remove a block
11365 handling it. Drop gdb_realpath call and cleanups from the real_path
11366 handling.
11367 * source.c (openp): Drop the comment part about xfullpath. Replace
11368 xfullpath calls by gdb_realpath calls.
11369 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11370 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11371 from method map_symtabs_matching_filename and its comment.
11372 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11373 gdb_realpath call.
11374 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11375 remove it also from the function comment, remove a block handling it.
11376 Drop gdb_realpath call and cleanups from the real_path handling.
11377 (iterate_over_symtabs): Drop variable full_path and its use.
11378 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11379 * utils.c (xfullpath): Remove.
11380 * utils.h (xfullpath): Remove.
11381
11382 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11383
11384 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11385 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11386 (ALLDEPFILES): Add ppc64-tdep.c.
11387 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11388 ppc64-tdep.o to gdb_target_obs.
11389 * ppc64-tdep.h: New file.
11390 * ppc64-tdep.c: New file.
11391 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11392 ppc-linux-tdep.c to here.
11393 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11394 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11395 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11396 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11397 from ppc-linux-tdep.c to here.
11398 (ppc64_convert_from_func_ptr_addr): Rename from
11399 ppc64_linux_convert_from_func_ptr_addr to
11400 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11401 here.
11402 * rs6000-tdep.c:
11403 (read_insn): Move from ppc-linux-tdep.c to here.
11404 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11405 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11406 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11407 Removed above functions.
11408 (ppc_linux_init_abi): Adjust.
11409
11410 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11411
11412 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11413
11414 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11415
11416 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11417
11418 2013-02-01 Pedro Alves <palves@redhat.com>
11419
11420 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11421 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11422
11423 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11424
11425 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11426 files with no separate debug info.
11427 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11428 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11429 only for files with no separate debug info.
11430
11431 2013-01-31 Tom Tromey <tromey@redhat.com>
11432
11433 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11434 change type.
11435 (struct jit_program_space_data): Rename from jit_inferior_data.
11436 Update comments.
11437 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11438 Change return type. Attach data to program space.
11439 (jit_program_space_data_cleanup): Rename from
11440 jit_inferior_data_cleanup; change argument type.
11441 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11442 change type.
11443 (jit_register_code): Update.
11444 (jit_update_inferior_cache): Remove.
11445 (jit_breakpoint_deleted): Get jit data from the location's program
11446 space.
11447 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11448 'ps_data', change type.
11449 (jit_inferior_init, jit_breakpoint_re_set_internal)
11450 (jit_event_handler): Update.
11451 (free_objfile_data): Get data from objfile's program space.
11452 (_initialize_jit): Update.
11453
11454 2013-01-31 Tom Tromey <tromey@redhat.com>
11455
11456 PR gdb/13987:
11457 * jit.c (struct jit_inferior_data) <cached_code_address,
11458 jit_breakpoint>: New fields.
11459 (jit_breakpoint_re_set_internal): Fix logging. Only create
11460 breakpoint if cached address has changed.
11461 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11462 functions.
11463 (_initialize_jit): Register breakpoint deleted observer.
11464
11465 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11466
11467 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11468 (save_infcall_suspend_state): Ifdef out unused inf.
11469 (restore_infcall_suspend_state): Ifdef out unused inf.
11470 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11471 (jit_frame_sniffer): Remove unused inf_data.
11472
11473 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11474
11475 * c-exp.y (classify_inner_name): Remove unused type.
11476 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11477 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11478 need_escape.
11479 (c_get_string): Remove unused kind.
11480 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11481
11482 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11483
11484 * charset.c (intermediate_encoding): Remove unused i.
11485 * completer.c (signal_completer): Remove unused i.
11486 * continuations.c (discard_my_continuations_1): Remove unused
11487 continuation_ptr.
11488 * corelow.c (core_close): Remove unuseD name.
11489 (get_core_siginfo): Remove unused pid.
11490 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11491 i, cps.
11492 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11493 (loclist_describe_location): Remove unused first.
11494 * event-top.c (command_line_handler): Remove unused got_eof.
11495 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11496 (resize_section_table): Remove unused old_value.
11497 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11498 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11499 * i386-tdep.c (i386_process_record): Remove unused rex.
11500 * infcmd.c (get_return_value): Remove unused uiout.
11501 * jv-lang.c (type_from_class): Remove unused is_array.
11502 * jv-valprint.c (java_val_print): Remove unused i.
11503 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11504 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11505 * m2-typeprint.c (m2_print_type): Remove unused code.
11506 * macroexp.c (get_character_constant): Remove unused body_start.
11507 (macro_stringify): Remove unused result.
11508 * objc-lang.c (find_methods): Remove unused gdbarch.
11509 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11510 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11511 * stack.c (print_frame_args): Remove unused summary.
11512 * thread.c (thread_apply_command): Remove unused p.
11513 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11514 * valops.c (search_struct_method): Remove unused skip.
11515 * valprint.c (generic_val_print): Remove unused byte_order.
11516 * varobj.c (varobj_update): Remove unused changed.
11517 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11518 (alias_command): Remove unused c.
11519 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11520 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11521 format.
11522 (mi_cmd_data_write_memory): Remove unused word_format.
11523 (mi_cmd_data_write_memory_bytes): Remove unused r.
11524 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11525 p_start, p_end.
11526 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11527 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11528 line_width.
11529
11530 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11531
11532 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11533 * symtab.c (iterate_over_symtabs): Remove unused s.
11534 (find_pc_sect_symtab): Remove unused pspAce.
11535 (find_pc_sect_line): Remove unused alt_symtab.
11536 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11537 (completion_list_add_name): Remove unused newsize.
11538
11539 2013-01-31 Tom Tromey <tromey@redhat.com>
11540
11541 PR c++/14998:
11542 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11543 TYPE_CODE_FUNC.
11544
11545 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11546
11547 * target.c (target_read_string): Remove unused origlen.
11548
11549 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11550
11551 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11552 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11553 * ax-general.c (ax_print): Remove unused is_float.
11554 * blockframe.c (block_innermost_frame): Remove unused start, end.
11555 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11556
11557 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11558
11559 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11560 (svr4_read_so_list): Remove unused lmo.
11561 * solib-target.c (solib_target_relocate_section_addresses): Remove
11562 unused flags.
11563
11564 2013-01-30 Tom Tromey <tromey@redhat.com>
11565
11566 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11567
11568 2013-01-30 Tom Tromey <tromey@redhat.com>
11569
11570 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11571 * utils.c (gnu_debuglink_crc32): Remove.
11572 * utils.h (gnu_debuglink_crc32): Don't declare.
11573
11574 2013-01-30 Tom Tromey <tromey@redhat.com>
11575
11576 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11577 (read_structure_type, read_enumeration_type): Remove cast.
11578
11579 2013-01-30 Tom Tromey <tromey@redhat.com>
11580
11581 * dwarf2read.c (read_namespace_type): Remove cast.
11582 (read_typedef): Likewise.
11583
11584 2013-01-29 Tom Tromey <tromey@redhat.com>
11585
11586 * dwarf2read.c (free_dwo_file): Remove assert.
11587
11588 2013-01-29 Tom Tromey <tromey@redhat.com>
11589
11590 * value.c (deprecated_set_value_modifiable): Remove.
11591 * value.h (deprecated_set_value_modifiable): Remove.
11592
11593 2013-01-28 Doug Evans <dje@google.com>
11594
11595 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11596 to addresses from dwo files.
11597
11598 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11599
11600 * valops.c (find_overload_match): Remove unused argument 'lax'.
11601 * value.h: Remove unused argument 'lax' from the declaration of
11602 find_overload_match.
11603 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11604 to find_overload_match.
11605 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11606 argument to find_overload_match.
11607
11608 2013-01-25 Tom Tromey <tromey@redhat.com>
11609
11610 * dwarf2read.c (processing_has_namespace_info): Remove.
11611 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11612 (process_die, read_func_scope, dwarf2_start_symtab)
11613 (new_symbol_full): Update.
11614
11615 2013-01-25 Tom Tromey <tromey@redhat.com>
11616
11617 * cp-namespace.c (cp_set_block_scope): Remove.
11618 * cp-support.h (cp_set_block_scope): Remove.
11619 * dbxread.c: Include block.h.
11620 (cp_set_block_scope): New function.
11621 (process_one_symbol): Update.
11622 * dwarf2read.c (read_func_scope): Use block_set_scope.
11623
11624 2013-01-25 Pedro Alves <palves@redhat.com>
11625
11626 * remote.c (add_current_inferior_and_thread): Tweak comment.
11627
11628 2013-01-25 Tom Tromey <tromey@redhat.com>
11629
11630 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11631 (cp_add_using_directive): Add 'copy_names' argument.
11632 * cp-support.h (cp_add_using_directive): Update.
11633 (struct using_direct) <import_src, import_dest, alias,
11634 declaration>: Now const.
11635 * dwarf2read.c (read_import_statement): Use obconcat.
11636 Don't copy names passed to cp_add_using_directive.
11637
11638 2013-01-25 Tom Tromey <tromey@redhat.com>
11639
11640 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11641
11642 2013-01-25 Pedro Alves <palves@redhat.com>
11643
11644 * remote.c (stop_reply_extract_thread): New.
11645 (add_current_inferior_and_thread): New parameter 'wait_status'.
11646 Handle it.
11647 (remote_start_remote): Pass wait status to
11648 add_current_inferior_and_thread.
11649 (extended_remote_run): Update comment.
11650 (extended_remote_create_inferior_1): Pass wait status to
11651 add_current_inferior_and_thread.
11652
11653 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
11654 Ulrich Weigand <uweigand@de.ibm.com>
11655
11656 * valarith.c (value_vector_widen): New function for replicating a
11657 scalar into a vector.
11658 (value_binop): Use value_vector_widen to widen scalar to vector
11659 rather than casting, this better matches gcc C behaviour.
11660 * valops.c (value_casst): Update logic for casting between vector
11661 types, and for casting from scalar to vector, try to match gcc C
11662 behaviour.
11663 * value.h (value_vector_widen): Declare.
11664 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11665 function, handle special case for casting scalar to vector.
11666 (opencl_relop): Use opencl_value_cast.
11667 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11668 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11669 in order to use opencl_value_cast.
11670
11671 2013-01-25 Yao Qi <yao@codesourcery.com>
11672
11673 * event-loop.c: Include "queue.h".
11674 (gdb_event_p): New typedef.
11675 (DECLARE_QUEUE_P): Use.
11676 (DEFINE_QUEUE_P): Use.
11677 (async_queue_event): Remove.
11678 (gdb_event_xfree): New.
11679 (initialize_event_loop): New.
11680 (process_event): Use QUEUE macros.
11681 (event_queue): Remove.
11682 (gdb_wait_for_event): Caller update.
11683 (check_async_event_handlers): Likewise.
11684 (poll_timers): Likewise.
11685 * event-loop.h (initialize_event_loop): Declare.
11686 * event-loop.c (gdb_event_xfree): New.
11687 * top.c (gdb_init): Call initialize_event_loop.
11688
11689 2013-01-25 Yao Qi <yao@codesourcery.com>
11690
11691 * event-loop.c (async_queue_event): Remove one parameter
11692 'position'. Remove code handling 'position' == TAIL.
11693 (gdb_wait_for_event): Caller update.
11694 (check_async_event_handlers): Caller update.
11695 (poll_timers): Caller update.
11696 * event-loop.h (enum queue_position): Remove.
11697
11698 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11699
11700 * MAINTAINERS: Update my email.
11701
11702 2013-01-25 Yao Qi <yao@codesourcery.com>
11703
11704 * main.c (print_gdb_help): Remove "--epoch" from the help
11705 message.
11706
11707 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11708
11709 * symtab.c (skip_prologue_using_sal): Consider a file
11710 change the same as an increased line number
11711
11712 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11713
11714 * MAINTAINERS (Write After Approval): Add myself to the list.
11715
11716 2013-01-24 Tom Tromey <tromey@redhat.com>
11717
11718 * ada-lang.h (ada_decode_symbol): Make return type const.
11719 * ada-lang.c (ada_decode_symbol): Likewise.
11720
11721 2013-01-23 Doug Evans <dje@google.com>
11722
11723 * linespec.c (find_linespec_symbols): Make static.
11724
11725 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11726
11727 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11728 type on float conversion for complex type.
11729
11730 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11731
11732 Add a new class gdb.Architecture which exposes GDB's
11733 internal representation of architecture via GDB Python API.
11734 * Makefile.in: Add entries corresponding to the new file
11735 python/py-arch.c.
11736 * NEWS (Python Scripting): Add entries for the new class
11737 gdb.Architecture and the new method gdb.Frame.architecture.
11738 * python/py-arch.c: Implement gdb.Architecture class.
11739 * python/py-frame.c (frapy_arch): Implement the method
11740 gdb.Frame.architecture().
11741 (frame_object_methods): Add 'architecture' to the method table.
11742 * python/python-internal.h: Add declarations of new utility
11743 functions.
11744 * python/python.c (_initialize_python): Initialize
11745 gdb.Architecture class.
11746
11747 2013-01-23 Doug Evans <dje@google.com>
11748
11749 Work around binutils/15021.
11750 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11751 type_unit_group out of union s. All uses updated.
11752 (read_index_from_section): Watch for index version 8.
11753 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11754 an imported symtab.
11755 (write_psymtabs_to_index): Increment version number to 8.
11756
11757 2013-01-22 Pedro Alves <palves@redhat.com>
11758
11759 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11760 user-visible.
11761
11762 2013-01-22 Pedro Alves <palves@redhat.com>
11763
11764 * annotate.c (annotate_breakpoints_changed): Rename to ...
11765 (annotate_breakpoints_invalid): ... this. Make static.
11766 (breakpoint_changed): Adjust.
11767 (_initialize_annotate): Always install the observers. Install a
11768 "breakpoint_created" observer.
11769 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11770 * breakpoint.c (set_breakpoint_condition)
11771 (breakpoint_set_commands, do_map_commands_command)
11772 (init_raw_breakpoint, clear_command, set_ignore_count)
11773 (enable_breakpoint_disp): No longer call
11774 annotate_breakpoints_changed.
11775
11776 2013-01-22 Pedro Alves <palves@redhat.com>
11777
11778 * annotate.c: Include "inferior.h".
11779 (frames_invalid_emitted)
11780 (breakpoints_invalid_emitted): New globals.
11781 (async_background_execution_p): New function.
11782 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11783 emitting the annotation if it has already been emitted.
11784 (annotate_display_prompt): New function.
11785 * annotate.h (annotate_display_prompt): New declaration.
11786 * event-top.c: Include annotate.h.
11787 (display_gdb_prompt): Call annotate_display_prompt.
11788
11789 2013-01-22 Pedro Alves <palves@redhat.com>
11790
11791 * annotate.c (ignore_count_changed): Delete.
11792 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11793 (annotate_ignore_count_change): Delete.
11794 (annotate_stopped): Don't emit a delayed breakpoints-changed
11795 annotation.
11796 * annotate.h (annotate_ignore_count_change): Delete.
11797 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11798 annotate_ignore_count_change.
11799
11800 2013-01-22 Tom Tromey <tromey@redhat.com>
11801
11802 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11803 require_rvalue for a register location.
11804
11805 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11806
11807 * breakpoint.c (print_one_breakpoint_location): Add MI
11808 field 'thread-groups' when printing a breakpoint.
11809 (output_thread_groups): New function.
11810
11811 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11812
11813 * python/lib/gdb/commands/explore.py
11814 (CompoundExplorer.explore_expr): Correct the name of a method
11815 being invoked.
11816 (ExploreTypeCommand.invoke): Add a missing 'return'.
11817
11818 2013-01-21 Tom Tromey <tromey@redhat.com>
11819
11820 * gdb_obstack.h (obconcat): Move declaration here, from...
11821 * symfile.h (obconcat): ... here.
11822 * gdb_obstack.c: New file.
11823 (obconcat): Move from...
11824 * symfile.c (obconcat): ... here.
11825 * Makefile.in (SFILES): Add gdb_obstack.c.
11826 (COMMON_OBS): Add gdb_obstack.o.
11827
11828 2013-01-21 Tom Tromey <tromey@redhat.com>
11829
11830 * symfile.h (obsavestring): Don't declare.
11831 * symfile.c (obsavestring): Remove.
11832 * ada-exp.y: Use obstack_copy0, not obsavestring.
11833 * ada-lang.c: Use obstack_copy0, not obsavestring.
11834 * coffread.c: Use obstack_copy0, not obsavestring.
11835 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11836 * dbxread.c: Use obstack_copy0, not obsavestring.
11837 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11838 * jit.c: Use obstack_copy0, not obsavestring.
11839 * mdebugread.c: Use obstack_copy0, not obsavestring.
11840 * psymtab.c: Use obstack_copy0, not obsavestring.
11841 * stabsread.c: Use obstack_copy0, not obsavestring.
11842 * xcoffread.c: Use obstack_copy0, not obsavestring.
11843
11844 2013-01-21 Tom Tromey <tromey@redhat.com>
11845
11846 * dwarf2read.c (fixup_go_packaging): Save package name
11847 on objfile obstack.
11848 * gdbtypes.c (init_type): Don't copy name.
11849
11850 2013-01-21 Tom Tromey <tromey@redhat.com>
11851
11852 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11853 const.
11854 (struct attribute) <u.str>: Now const.
11855 (struct fnfieldlist) <name>: Now const.
11856 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11857 (partial_die_parent_scope): Make return type const.
11858 (partial_die_full_name, add_partial_symbol): Update.
11859 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11860 'name' const.
11861 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11862 (read_file_scope, read_func_scope, dwarf2_add_field)
11863 (dwarf2_add_member_fn, read_structure_type)
11864 (process_enumeration_scope, read_array_type, read_module_type)
11865 (read_base_type, read_subrange_type): Update.
11866 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11867 (new_symbol_full, guess_full_die_structure_name): Update.
11868 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11869 (dwarf2_name): Return const type.
11870 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11871 const.
11872
11873 2013-01-21 Tom Tromey <tromey@redhat.com>
11874
11875 * gdbtypes.c (init_type): Make 'name' const.
11876 * gdbtypes.h (init_type): Update.
11877
11878 2013-01-21 Tom Tromey <tromey@redhat.com>
11879
11880 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11881 (start_symtab): Make 'name' and 'dirname' const. Use
11882 set_last_source_file.
11883 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11884 (last_source_file): Define. Now static.
11885 (set_last_source_file, get_last_source_file): New functions.
11886 * buildsym.h (last_source_file): Don't declare.
11887 (start_symtab): Update.
11888 (set_last_source_file, get_last_source_file): Declare.
11889 * coffread.c (complete_symtab): Use set_last_source_file.
11890 (coff_end_symtab): Likewise.
11891 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11892 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11893 set_last_source_file.
11894 (process_one_symbol): Use get_last_source_file.
11895 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11896 (psymtab_to_symtab_1): Use get_last_source_file.
11897 * xcoffread.c (process_linenos): Use get_last_source_file.
11898 (complete_symtab): Use set_last_source_file.
11899 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11900 (scan_xcoff_symtab): Use set_last_source_file.
11901
11902 2013-01-21 Tom Tromey <tromey@redhat.com>
11903
11904 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11905 (symbol_set_names): Remove casts. Handle field const-ness.
11906
11907 2013-01-21 Tom Tromey <tromey@redhat.com>
11908
11909 * dwarf2read.c (new_symbol_full): Remove cast.
11910 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11911 * symtab.h (symbol_set_demangled_name): Update.
11912
11913 2013-01-21 Tom Tromey <tromey@redhat.com>
11914
11915 * main.c (captured_main): Call bfd_init.
11916
11917 2013-01-21 Tom Tromey <tromey@redhat.com>
11918
11919 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11920 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11921 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11922 * NEWS: Update.
11923
11924 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11925
11926 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11927
11928 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11929
11930 Fix gdb.fortran/common-block.exp crash in PIE mode.
11931 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11932 LOC_COMMON_BLOCK.
11933 * f-valprint.c (info_common_command_for_block): Expect
11934 LOC_COMMON_BLOCK in gdb_assert.
11935 * symtab.h (struct general_symbol_info): Update comment for the
11936 common_block member.
11937 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11938 (enum address_class): New member LOC_COMMON_BLOCK.
11939
11940 2013-01-18 David Blaikie <dblaikie@gmail.com>
11941
11942 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11943
11944 2013-01-18 Tom Tromey <tromey@redhat.com>
11945
11946 PR c++/14999:
11947 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11948 Call require_rvalue.
11949
11950 2013-01-18 Yao Qi <yao@codesourcery.com>
11951
11952 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11953 (dbx_read_symtab): New declaration.
11954 (dbx_psymtab_to_symtab): Delete.
11955 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11956 Rename parameter PST to SELF. Exchanged two parameters.
11957 (start_psymtab): Caller update.
11958 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11959 (dwarf2_read_symtab): New declaration.
11960 (dwarf2_psymtab_to_symtab): Delete.
11961 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11962 Rename parameter PST to SELF. Exchanged two parameters.
11963 (create_partial_symtab): Caller update.
11964 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11965 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11966 Rename parameter PST to SELF. Exchanged two parameters.
11967 (parse_partial_symbols, new_psymtab): Caller update.
11968 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11969 two parameters.
11970 * psymtab.c (psymtab_to_symtab): Caller update.
11971 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11972 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11973 Rename parameter PST to SELF. Exchanged two parameters.
11974 (xcoff_start_psymtab): Caller update.
11975
11976 2013-01-18 Yao Qi <yao@codesourcery.com>
11977
11978 * infrun.c (proceed): Rename local variable 'oneproc' to
11979 'force_step'.
11980
11981 2013-01-17 Doug Evans <dje@google.com>
11982
11983 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11984 (dw2_build_type_unit_groups): Delete. All uses updated.
11985
11986 * symtab.h (struct symbol_search): Add comment.
11987
11988 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11989
11990 * symtab.c (compare_filenames_for_search): New comment for
11991 HAS_DRIVE_SPEC.
11992
11993 2013-01-17 Tom Tromey <tromey@redhat.com>
11994
11995 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11996
11997 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11998
11999 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12000 initialize it by existing make_cleanup. Call new do_cleanups.
12001
12002 2013-01-17 Tom Tromey <tromey@redhat.com>
12003
12004 * cp-abi.c (cp_abi_completer): New function.
12005 (_initialize_cp_abi): Set completer for "set cp-abi".
12006
12007 2013-01-17 Tom Tromey <tromey@redhat.com>
12008
12009 * mem-break.c: Remove obsolete comment.
12010 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12011
12012 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12013
12014 * jit.c (jit_reader_load_command): Interpret the jit reader name
12015 as an absolute path if it begins with a forward slash.
12016
12017 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12018
12019 PR gdb/14550
12020
12021 * jit.c (finalize_symtab): Ensure that only the global block has a
12022 NULL superblock.
12023
12024 2013-01-17 Pedro Alves <palves@redhat.com>
12025
12026 * acinclude.m4: Include ../config/plugins.m4,
12027 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12028 * Makefile.in (aclocal_m4_deps): Update.
12029 * aclocal.m4: Renegerate.
12030
12031 2013-01-16 Doug Evans <dje@google.com>
12032
12033 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12034
12035 2013-01-16 Pedro Alves <palves@redhat.com>
12036 Tom Tromey <tromey@redhat.com>
12037
12038 PR cli/7221:
12039 * NEWS: Add "catch signal".
12040 * breakpoint.c (base_breakpoint_ops): No longer static.
12041 (bpstat_explains_signal): New function.
12042 (init_catchpoint): No longer static.
12043 (base_breakpoint_explains_signal): New function.
12044 (base_breakpoint_ops): Initialize new field.
12045 * breakpoint.h (enum bpstat_signal_value): New.
12046 (struct breakpoint_ops) <explains_signal>: New field.
12047 (bpstat_explains_signal): Remove macro, declare as function.
12048 (base_breakpoint_ops, init_catchpoint): Declare.
12049 * break-catch-sig.c: New file.
12050 * inferior.h (signal_catch_update): Declare.
12051 * infrun.c (signal_catch): New global.
12052 (handle_syscall_event): Update for change to
12053 bpstat_explains_signal.
12054 (handle_inferior_event): Likewise. Always handle random signals
12055 via bpstats.
12056 (signal_cache_update): Check signal_catch.
12057 (signal_catch_update): New function.
12058 (_initialize_infrun): Initialize signal_catch.
12059 * Makefile.in (SFILES): Add break-catch-sig.c.
12060 (COMMON_OBS): Add break-catch-sig.o.
12061
12062 2013-01-16 Tom Tromey <tromey@redhat.com>
12063
12064 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12065 (print_one_catch_solib, print_one_catch_syscall)
12066 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12067 "catch-type".
12068
12069 2013-01-16 Yao Qi <yao@codesourcery.com>
12070
12071 * printcmd.c (current_display_number): Make it static.
12072
12073 2013-01-16 Yao Qi <yao@codesourcery.com>
12074
12075 * infcmd.c (step_once): Don't check '!single_inst' as it was
12076 checked before.
12077
12078 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12079
12080 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12081
12082 2013-01-14 Tom Tromey <tromey@redhat.com>
12083
12084 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12085 set command.
12086 * command.h (add_setshow_string_noescape_cmd): Update.
12087 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12088 (complete_set_gnutarget): New function.
12089 (_initialize_core): Set the "set gnutarget" completer.
12090
12091 2013-01-14 Tom Tromey <tromey@redhat.com>
12092
12093 PR symtab/14442:
12094 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12095 (c_type_print_modifier): Likewise.
12096 * dwarf2read.c (read_tag_restrict_type): New function.
12097 (read_type_die_1): Handle DW_TAG_restrict_type.
12098 * gdbtypes.c (make_restrict_type): New function.
12099 (recursive_dump_type): Handle TYPE_RESTRICT.
12100 * gdbtypes.h (enum type_flag_values): Renumber.
12101 (enum type_instance_flag_value): Add
12102 TYPE_INSTANCE_FLAG_RESTRICT.
12103 (TYPE_RESTRICT): New macro.
12104 (make_restrict_type): Declare.
12105
12106 2013-01-14 Tom Tromey <tromey@redhat.com>
12107
12108 PR symtab/14931:
12109 * psymtab.c (struct psymtab_state): New.
12110 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12111 functions.
12112 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12113 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12114
12115 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12116 Pedro Alves <palves@redhat.com>
12117
12118 PR remote/14786
12119
12120 * remote.c (remote_threads_info): Make a copy of the reply from
12121 qfThreadInfo and use that instead of rs->buf.
12122
12123 2013-01-14 Yao Qi <yao@codesourcery.com>
12124
12125 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12126 (dbx_psymtab_to_symtab): Likewise.
12127 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12128 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12129 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12130
12131 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12132
12133 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12134 make_cleanup_restore_current_language. Call set_language. Move
12135 OLD_CHAIN and INNER_CHAIN cleanups.
12136 * utils.c (do_restore_current_language)
12137 (make_cleanup_restore_current_language): New functions.
12138 * utils.h (make_cleanup_restore_current_language): New declaration.
12139
12140 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12141
12142 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12143 non-existing files.
12144
12145 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12146 non-existing files if FILENAME is already absolute.
12147
12148 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12149
12150 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12151 fputs_filtered. Append trailing newline.
12152
12153 2013-01-11 Yao Qi <yao@codesourcery.com>
12154 Stan Shebs <stan@codesourcery.com>
12155
12156 * psymtab.c (init_psymbol_list): Clarify the comment.
12157
12158 2013-01-11 Yao Qi <yao@codesourcery.com>
12159
12160 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12161 (update_dprintf_command_list): Assert that 'printf_line' is
12162 non-null. Remove condition check.
12163
12164 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12165
12166 Code cleanup.
12167 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12168 type const char *.
12169 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12170 const char *.
12171 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12172
12173 2013-01-09 Anthony Green <green@moxielogic.com>
12174
12175 * cp-abi.c (cplus_print_vtable): Don't return value from void
12176 function.
12177 * ada-lang.c (re_set_catch_assert): Ditto.
12178
12179 2013-01-09 Doug Evans <dje@google.com>
12180
12181 * symfile.h (quick_symbol_functions): Delete member
12182 pre_expand_symtabs_matching. All uses removed.
12183 * dwarf2read.c (dw2_lookup_symbol): Implement.
12184 (dw2_do_expand_symtabs_matching): Delete.
12185 (dw2_pre_expand_symtabs_matching): Delete.
12186 (struct dw2_symtab_iterator): New type.
12187 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12188 (dw2_expand_symtabs_for_function): Rewrite.
12189 (dwarf2_gdb_index_functions): Update.
12190 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12191 (psym_functions): Update.
12192
12193 2013-01-09 Tom Tromey <tromey@redhat.com>
12194
12195 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12196 * configure: Rebuild.
12197 * configure.ac: Add somread.o to the build if BFD has SOM
12198 support.
12199 * somread.c: Include som/aout.h, not syms.h.
12200 (som_symtab_read): Use som_external_symbol_dictionary_record.
12201 Unpack records manually.
12202 (_initialize_somread): Declare.
12203
12204 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12205
12206 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12207 Cast return_address to 64bits.
12208
12209 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12210
12211 * printcmd.c: Remove define of function output_command.
12212 * tracepoint.c: Remove extern of function output_command.
12213 * valprint.h: (output_command): New extern.
12214
12215 2013-01-07 Tom Tromey <tromey@redhat.com>
12216
12217 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12218 Remove.
12219 (objc_language_defn): Use c_printchar, c_printstr,
12220 c_emit_char.
12221
12222 2013-01-07 Tom Tromey <tromey@redhat.com>
12223
12224 PR cli/7719:
12225 * NEWS: Update.
12226 * ada-valprint.c (printstr, print_field_values): Remove
12227 "inspect_it" code.
12228 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12229 code.
12230 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12231 code.
12232 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12233 * main.c (captured_main): Remove "epoch" argument.
12234 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12235 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12236 * p-valprint.c (pascal_object_print_value_fields): Remove
12237 "inspect_it" code.
12238 * printcmd.c (print_command_1): Remove 'inspect' argument.
12239 (print_command, call_command): Update.
12240 (inspect_command): Remove.
12241 (_initialize_printcmd): Make "inspect" an alias for "print".
12242 * top.c (epoch_interface): Remove.
12243 * top.h (epoch_interface): Remove.
12244 * valprint.c (user_print_options): Update.
12245 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12246 * valprint.h (struct value_print_options) <inspect_it>: Remove
12247 field.
12248
12249 2013-01-04 Tom Tromey <tromey@redhat.com>
12250
12251 * valprint.h (read_string): Add 'extern'.
12252
12253 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12254
12255 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12256 used to decide whether to define darwin_read_dyld_info or not.
12257
12258 2013-01-03 Pierre Muller <muller@sourceware.org>
12259
12260 * main.c (relocate_gdb_directory): Avoid calling stat function
12261 if DIR is empty.
12262
12263 2013-01-03 Yao Qi <yao@codesourcery.com>
12264
12265 * psymtab.c (fixup_psymbol_section): Update declaration.
12266 (fixup_psymbol_section): Remove code returning value.
12267
12268 2013-01-03 Yao Qi <yao@codesourcery.com>
12269
12270 * symtab.h: Remove some out of date comments.
12271 (enum exception_event_kind): Move it ...
12272 * breakpoint.c: ... here.
12273
12274 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12275
12276 PR gdb/14405
12277 * darwin-nat.c (darwin_read_dyld_info): Only build if
12278 TASK_DYLD_INFO_COUNT is defined.
12279 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12280 TASK_DYLD_INFO_COUNT is defined.
12281
12282 2013-01-02 Tom Tromey <tromey@redhat.com>
12283
12284 * symfile.h (struct ecoff_debug_hack): Remove.
12285 * objfiles.c: Don't include mdebugread.h.
12286
12287 2013-01-02 Tom Tromey <tromey@redhat.com>
12288
12289 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12290 * configure.ac: Check for Mach-O support in BFD. Update
12291 CONFIG_OBS.
12292 * configure: Rebuild.
12293
12294 2013-01-02 Tom Tromey <tromey@redhat.com>
12295
12296 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12297 * configure.ac: Use GDB_AC_CHECK_BFD.
12298 * configure: Rebuild.
12299
12300 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12301
12302 * MAINTAINERS: Update my email.
12303
12304 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12305
12306 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12307
12308 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12309
12310 * rs6000-nat.c (bss_data_overlap): New function.
12311 (vmap_symtab): Use it to adjust the .bss section's offset.
12312
12313 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12314
12315 Update year range in copyright notice of all files.
12316
12317 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12318
12319 * top.c (print_gdb_version): Update copyright year.
12320
12321 For older changes see ChangeLog-2012.
12322 \f
12323 Local Variables:
12324 mode: change-log
12325 left-margin: 8
12326 fill-column: 74
12327 version-control: never
12328 coding: utf-8
12329 End:
This page took 0.279975 seconds and 5 git commands to generate.