Add REGISTRY for struct address_space.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3a8356ff
YQ
12013-11-20 Yao Qi <yao@codesourcery.com>
2
3 * progspace.c (struct address_space): Update comments.
4 <REGISTRY_FIELDS>: New fields.
5 DEFINE_REGISTRY for address_space.
6 (new_address_space): Call address_space_alloc_data.
7 (free_address_space): Call address_space_free_data.
8 * progspace.h: Use DECLARE_REGISTRY.
9
68c765e2
YQ
102013-11-20 Yao Qi <yao@codesourcery.com>
11
12 * Makefile.in (SFILES):Add target-dcache.c.
13 (HFILES_NO_SRCDIR): Add target-dcache.h.
14 (COMMON_OBS): Add target-dcache.o.
15 * dcache.c: Remove inclusion to "target.h". Include
16 "target-dcache.h".
17 * memattr.c: Include "target-dcache.h".
18 * top.c: Likewise.
19 * tracepoint.c: Likewise.
20 * target.c: (stack_cache_enabled_p_1): Move to
21 target-dcache.c.
22 (stack_cache_enabled_p): Likewise.
23 (set_stack_cache_enabled_p): Likewise.
24 (show_stack_cache_enabled_p): Likewise.
25 (target_dcache, target_dcache_init_p): Likewise.
26 (target_dcache_invalidate): Likewise.
27 (target_dcache_get, target_dcache_get_or_init): Likewise.
28 (memory_xfer_partial_1): Call function stack_cache_enabled.
29 (initialize_target): Move code to target-dcache.c.
30 * target.h (target_dcache_invalidate): Move to
31 target-dcache.h.
32 (target_dcache_get): Likewise.
33 * target-dcache.c: New.
34 * target-dcache.h: New.
35
f2de9785
YQ
362013-11-20 Yao Qi <yao@codesourcery.com>
37
38 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
39 it is initialized.
40
2a2f9fe4
YQ
412013-11-20 Yao Qi <yao@codesourcery.com>
42
43 * dcache.c (last_cache): Remove.
44 (dcache_free, dcache_init): Update.
45 (dcache_update):
46 (dcache_print_line): Add parameter 'dcache'. Replace
47 'target_dcache' with 'dcache'.
48 (dcache_info): Move code to dcache_info_1. Call
49 'dcache_info_1'.
50 (dcache_info_1): New function.
51 (set_dcache_size): Call target_dcache_invalidate.
52 (set_dcache_line_size): Call target_dcache_invalidate.
53 * target.c (target_dcache_init_p): New function.
54 (target_dcache_invalidate): Check target_dcache_init_p first.
55 (target_dcache_get, target_dcache_get_or_init): New function.
56 (memory_xfer_partial_1): Adjust.
57 (initialize_target): Don't initialize 'target_dcache'.
58 * target.h (struct dcache_struct): Declare.
59 (target_dcache_get): Declare.
60
8ab91b96
YQ
612013-11-19 Yao Qi <yao@codesourcery.com>
62
63 * varobj.c (varobj_get_type): Fix typo.
64
df7752b0
JB
652013-11-19 Joel Brobecker <brobecker@adacore.com>
66
67 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
68
4a0a886a
JB
692013-11-19 Joel Brobecker <brobecker@adacore.com>
70
71 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
72 "stat.h".
73
53ce3c39
TT
742013-11-18 Tom Tromey <tromey@redhat.com>
75
76 * common/gdb_stat.h: Remove.
77 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
78 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
79 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
80 * corefile.c: Use sys/stat.h, not gdb_stat.h.
81 * ctf.c: Use sys/stat.h, not gdb_stat.h.
82 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
83 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
84 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
85 * exec.c: Use sys/stat.h, not gdb_stat.h.
86 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
87 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
88 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
89 * jit.c: Use sys/stat.h, not gdb_stat.h.
90 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
91 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
92 * main.c: Use sys/stat.h, not gdb_stat.h.
93 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
94 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
95 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
96 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
97 * procfs.c: Use sys/stat.h, not gdb_stat.h.
98 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
99 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
100 * remote.c: Use sys/stat.h, not gdb_stat.h.
101 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
102 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
103 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
104 * source.c: Use sys/stat.h, not gdb_stat.h.
105 * symfile.c: Use sys/stat.h, not gdb_stat.h.
106 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
107 * symtab.c: Use sys/stat.h, not gdb_stat.h.
108 * top.c: Use sys/stat.h, not gdb_stat.h.
109 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
110
09607c9e
TT
1112013-11-18 Tom Tromey <tromey@redhat.com>
112
113 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
114 sys_stat.
115 * gnulib/aclocal.m4: Update.
116 * gnulib/config.in: Update.
117 * gnulib/configure: Update.
118 * gnulib/import/Makefile.am: Update.
119 * gnulib/import/Makefile.in: Update.
120 * gnulib/import/m4/gnulib-cache.m4: Update.
121 * gnulib/import/m4/gnulib-comp.m4: Update.
122 * gnulib/import/m4/sys_stat_h.m4: New.
123 * gnulib/import/m4/time_h.m4: New.
124 * gnulib/import/sys_stat.in.h: New.
125 * gnulib/import/time.in.h: New.
126
4ff70b84
TT
1272013-11-18 Tom Tromey <tromey@redhat.com>
128
129 * configure: Rebuild.
130 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
131
3447c057
TT
1322013-11-18 Tom Tromey <tromey@redhat.com>
133
134 * configure: Rebuild.
135 * configure.ac: Don't check for unistd.h.
136
0080a2f6
TT
1372013-11-18 Tom Tromey <tromey@redhat.com>
138
139 * configure: Rebuild.
140 * configure.ac: Don't check for stdlib.h
141 * defs.h: Include stdlib.h unconditionally.
142
161d1bec
TT
1432013-11-18 Tom Tromey <tromey@redhat.com>
144
145 * config.in: Rebuild.
146 * configure: Rebuild.
147 * configure.ac: Don't check for stddef.h.
148 * defs.h: Unconditionally include stddef.h. Remove duplicate
149 inclusion.
150
2978b111
TT
1512013-11-18 Tom Tromey <tromey@redhat.com>
152
153 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
154 * common/gdb_dirent.h: Remove.
155 * common/filestuff.c: Use dirent.h.
156 * common/linux-osdata.c: Use dirent.h.
157 (NAMELEN): Define.
158 * config.in: Rebuild.
159 * configure: Rebuild.
160 * configure.ac: Don't use AC_HEADER_DIRENT.
161 * linux-fork.c: Use dirent.h
162 * linux-nat.c: Use dirent.h.
163 * nto-procfs.c: Use dirent.h.
164 * procfs.c: Use dirent.h.
165
e26b6bb0
TT
1662013-11-18 Tom Tromey <tromey@redhat.com>
167
168 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
169 * gnulib/aclocal.m4: Update.
170 * gnulib/config.in: Update.
171 * gnulib/configure: Update.
172 * gnulib/import/Makefile.am: Update.
173 * gnulib/import/Makefile.in: Update.
174 * gnulib/import/dirent.in.h: New.
175 * gnulib/import/m4/dirent_h.m4: New.
176 * gnulib/import/m4/gnulib-cache.m4: Update.
177 * gnulib/import/m4/gnulib-comp.m4: Update.
178
a3d08894
TT
1792013-11-18 Tom Tromey <tromey@redhat.com>
180
181 * configure: Rebuild.
182 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
183 strings.h.
184
0e9f083f
TT
1852013-11-18 Tom Tromey <tromey@redhat.com>
186
187 * common/gdb_string.h: Remove.
188 * aarch64-tdep.c: Use string.h, not gdb_string.h.
189 * ada-exp.y: Use string.h, not gdb_string.h.
190 * ada-lang.c: Use string.h, not gdb_string.h.
191 * ada-lex.l: Use string.h, not gdb_string.h.
192 * ada-typeprint.c: Use string.h, not gdb_string.h.
193 * ada-valprint.c: Use string.h, not gdb_string.h.
194 * aix-thread.c: Use string.h, not gdb_string.h.
195 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
196 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
197 * alpha-nat.c: Use string.h, not gdb_string.h.
198 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
199 * alpha-tdep.c: Use string.h, not gdb_string.h.
200 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
201 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
202 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
203 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
204 * amd64-nat.c: Use string.h, not gdb_string.h.
205 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
206 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
207 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
208 * arch-utils.c: Use string.h, not gdb_string.h.
209 * arm-linux-nat.c: Use string.h, not gdb_string.h.
210 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
211 * arm-tdep.c: Use string.h, not gdb_string.h.
212 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
213 * armbsd-tdep.c: Use string.h, not gdb_string.h.
214 * armnbsd-nat.c: Use string.h, not gdb_string.h.
215 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
216 * armobsd-tdep.c: Use string.h, not gdb_string.h.
217 * avr-tdep.c: Use string.h, not gdb_string.h.
218 * ax-gdb.c: Use string.h, not gdb_string.h.
219 * ax-general.c: Use string.h, not gdb_string.h.
220 * bcache.c: Use string.h, not gdb_string.h.
221 * bfin-tdep.c: Use string.h, not gdb_string.h.
222 * breakpoint.c: Use string.h, not gdb_string.h.
223 * build-id.c: Use string.h, not gdb_string.h.
224 * buildsym.c: Use string.h, not gdb_string.h.
225 * c-exp.y: Use string.h, not gdb_string.h.
226 * c-lang.c: Use string.h, not gdb_string.h.
227 * c-typeprint.c: Use string.h, not gdb_string.h.
228 * c-valprint.c: Use string.h, not gdb_string.h.
229 * charset.c: Use string.h, not gdb_string.h.
230 * cli-out.c: Use string.h, not gdb_string.h.
231 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
232 * cli/cli-decode.c: Use string.h, not gdb_string.h.
233 * cli/cli-dump.c: Use string.h, not gdb_string.h.
234 * cli/cli-interp.c: Use string.h, not gdb_string.h.
235 * cli/cli-logging.c: Use string.h, not gdb_string.h.
236 * cli/cli-script.c: Use string.h, not gdb_string.h.
237 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
238 * cli/cli-utils.c: Use string.h, not gdb_string.h.
239 * coffread.c: Use string.h, not gdb_string.h.
240 * common/common-utils.c: Use string.h, not gdb_string.h.
241 * common/filestuff.c: Use string.h, not gdb_string.h.
242 * common/linux-procfs.c: Use string.h, not gdb_string.h.
243 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
244 * common/signals.c: Use string.h, not gdb_string.h.
245 * common/vec.h: Use string.h, not gdb_string.h.
246 * core-regset.c: Use string.h, not gdb_string.h.
247 * corefile.c: Use string.h, not gdb_string.h.
248 * corelow.c: Use string.h, not gdb_string.h.
249 * cp-abi.c: Use string.h, not gdb_string.h.
250 * cp-support.c: Use string.h, not gdb_string.h.
251 * cp-valprint.c: Use string.h, not gdb_string.h.
252 * cris-tdep.c: Use string.h, not gdb_string.h.
253 * d-lang.c: Use string.h, not gdb_string.h.
254 * dbxread.c: Use string.h, not gdb_string.h.
255 * dcache.c: Use string.h, not gdb_string.h.
256 * demangle.c: Use string.h, not gdb_string.h.
257 * dicos-tdep.c: Use string.h, not gdb_string.h.
258 * disasm.c: Use string.h, not gdb_string.h.
259 * doublest.c: Use string.h, not gdb_string.h.
260 * dsrec.c: Use string.h, not gdb_string.h.
261 * dummy-frame.c: Use string.h, not gdb_string.h.
262 * dwarf2-frame.c: Use string.h, not gdb_string.h.
263 * dwarf2loc.c: Use string.h, not gdb_string.h.
264 * dwarf2read.c: Use string.h, not gdb_string.h.
265 * elfread.c: Use string.h, not gdb_string.h.
266 * environ.c: Use string.h, not gdb_string.h.
267 * eval.c: Use string.h, not gdb_string.h.
268 * event-loop.c: Use string.h, not gdb_string.h.
269 * exceptions.c: Use string.h, not gdb_string.h.
270 * exec.c: Use string.h, not gdb_string.h.
271 * expprint.c: Use string.h, not gdb_string.h.
272 * f-exp.y: Use string.h, not gdb_string.h.
273 * f-lang.c: Use string.h, not gdb_string.h.
274 * f-typeprint.c: Use string.h, not gdb_string.h.
275 * f-valprint.c: Use string.h, not gdb_string.h.
276 * fbsd-nat.c: Use string.h, not gdb_string.h.
277 * findcmd.c: Use string.h, not gdb_string.h.
278 * findvar.c: Use string.h, not gdb_string.h.
279 * fork-child.c: Use string.h, not gdb_string.h.
280 * frame.c: Use string.h, not gdb_string.h.
281 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
282 * frv-tdep.c: Use string.h, not gdb_string.h.
283 * gdb.c: Use string.h, not gdb_string.h.
284 * gdb_bfd.c: Use string.h, not gdb_string.h.
285 * gdbarch.c: Use string.h, not gdb_string.h.
286 * gdbtypes.c: Use string.h, not gdb_string.h.
287 * gnu-nat.c: Use string.h, not gdb_string.h.
288 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
289 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
290 * go-exp.y: Use string.h, not gdb_string.h.
291 * go-lang.c: Use string.h, not gdb_string.h.
292 * go32-nat.c: Use string.h, not gdb_string.h.
293 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
294 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
295 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
296 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
297 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
298 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
299 * i386-linux-nat.c: Use string.h, not gdb_string.h.
300 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
301 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
302 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
303 * i386-tdep.c: Use string.h, not gdb_string.h.
304 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
305 * i386gnu-nat.c: Use string.h, not gdb_string.h.
306 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
307 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
308 * i387-tdep.c: Use string.h, not gdb_string.h.
309 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
310 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
311 * inf-child.c: Use string.h, not gdb_string.h.
312 * inf-ptrace.c: Use string.h, not gdb_string.h.
313 * inf-ttrace.c: Use string.h, not gdb_string.h.
314 * infcall.c: Use string.h, not gdb_string.h.
315 * infcmd.c: Use string.h, not gdb_string.h.
316 * inflow.c: Use string.h, not gdb_string.h.
317 * infrun.c: Use string.h, not gdb_string.h.
318 * interps.c: Use string.h, not gdb_string.h.
319 * iq2000-tdep.c: Use string.h, not gdb_string.h.
320 * irix5-nat.c: Use string.h, not gdb_string.h.
321 * jv-exp.y: Use string.h, not gdb_string.h.
322 * jv-lang.c: Use string.h, not gdb_string.h.
323 * jv-typeprint.c: Use string.h, not gdb_string.h.
324 * jv-valprint.c: Use string.h, not gdb_string.h.
325 * language.c: Use string.h, not gdb_string.h.
326 * linux-fork.c: Use string.h, not gdb_string.h.
327 * linux-nat.c: Use string.h, not gdb_string.h.
328 * lm32-tdep.c: Use string.h, not gdb_string.h.
329 * m2-exp.y: Use string.h, not gdb_string.h.
330 * m2-typeprint.c: Use string.h, not gdb_string.h.
331 * m32c-tdep.c: Use string.h, not gdb_string.h.
332 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
333 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
334 * m32r-rom.c: Use string.h, not gdb_string.h.
335 * m32r-tdep.c: Use string.h, not gdb_string.h.
336 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
337 * m68k-tdep.c: Use string.h, not gdb_string.h.
338 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
339 * m68klinux-nat.c: Use string.h, not gdb_string.h.
340 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
341 * m88k-tdep.c: Use string.h, not gdb_string.h.
342 * macrocmd.c: Use string.h, not gdb_string.h.
343 * main.c: Use string.h, not gdb_string.h.
344 * mdebugread.c: Use string.h, not gdb_string.h.
345 * mem-break.c: Use string.h, not gdb_string.h.
346 * memattr.c: Use string.h, not gdb_string.h.
347 * memory-map.c: Use string.h, not gdb_string.h.
348 * mep-tdep.c: Use string.h, not gdb_string.h.
349 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
350 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
351 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
352 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
353 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
354 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
355 * mi/mi-console.c: Use string.h, not gdb_string.h.
356 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
357 * mi/mi-interp.c: Use string.h, not gdb_string.h.
358 * mi/mi-main.c: Use string.h, not gdb_string.h.
359 * mi/mi-parse.c: Use string.h, not gdb_string.h.
360 * microblaze-rom.c: Use string.h, not gdb_string.h.
361 * microblaze-tdep.c: Use string.h, not gdb_string.h.
362 * mingw-hdep.c: Use string.h, not gdb_string.h.
363 * minidebug.c: Use string.h, not gdb_string.h.
364 * minsyms.c: Use string.h, not gdb_string.h.
365 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
366 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
367 * mips-tdep.c: Use string.h, not gdb_string.h.
368 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
369 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
370 * mipsread.c: Use string.h, not gdb_string.h.
371 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
372 * mn10300-tdep.c: Use string.h, not gdb_string.h.
373 * monitor.c: Use string.h, not gdb_string.h.
374 * moxie-tdep.c: Use string.h, not gdb_string.h.
375 * mt-tdep.c: Use string.h, not gdb_string.h.
376 * nbsd-tdep.c: Use string.h, not gdb_string.h.
377 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
378 * nto-procfs.c: Use string.h, not gdb_string.h.
379 * nto-tdep.c: Use string.h, not gdb_string.h.
380 * objc-lang.c: Use string.h, not gdb_string.h.
381 * objfiles.c: Use string.h, not gdb_string.h.
382 * opencl-lang.c: Use string.h, not gdb_string.h.
383 * osabi.c: Use string.h, not gdb_string.h.
384 * osdata.c: Use string.h, not gdb_string.h.
385 * p-exp.y: Use string.h, not gdb_string.h.
386 * p-lang.c: Use string.h, not gdb_string.h.
387 * p-typeprint.c: Use string.h, not gdb_string.h.
388 * parse.c: Use string.h, not gdb_string.h.
389 * posix-hdep.c: Use string.h, not gdb_string.h.
390 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
391 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
392 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
393 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
394 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
395 * printcmd.c: Use string.h, not gdb_string.h.
396 * procfs.c: Use string.h, not gdb_string.h.
397 * prologue-value.c: Use string.h, not gdb_string.h.
398 * python/py-auto-load.c: Use string.h, not gdb_string.h.
399 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
400 * ravenscar-thread.c: Use string.h, not gdb_string.h.
401 * regcache.c: Use string.h, not gdb_string.h.
402 * registry.c: Use string.h, not gdb_string.h.
403 * remote-fileio.c: Use string.h, not gdb_string.h.
404 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
405 * remote-mips.c: Use string.h, not gdb_string.h.
406 * remote-sim.c: Use string.h, not gdb_string.h.
407 * remote.c: Use string.h, not gdb_string.h.
408 * reverse.c: Use string.h, not gdb_string.h.
409 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
410 * ser-base.c: Use string.h, not gdb_string.h.
411 * ser-go32.c: Use string.h, not gdb_string.h.
412 * ser-mingw.c: Use string.h, not gdb_string.h.
413 * ser-pipe.c: Use string.h, not gdb_string.h.
414 * ser-tcp.c: Use string.h, not gdb_string.h.
415 * ser-unix.c: Use string.h, not gdb_string.h.
416 * serial.c: Use string.h, not gdb_string.h.
417 * sh-tdep.c: Use string.h, not gdb_string.h.
418 * sh64-tdep.c: Use string.h, not gdb_string.h.
419 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
420 * skip.c: Use string.h, not gdb_string.h.
421 * sol-thread.c: Use string.h, not gdb_string.h.
422 * solib-dsbt.c: Use string.h, not gdb_string.h.
423 * solib-frv.c: Use string.h, not gdb_string.h.
424 * solib-osf.c: Use string.h, not gdb_string.h.
425 * solib-spu.c: Use string.h, not gdb_string.h.
426 * solib-target.c: Use string.h, not gdb_string.h.
427 * solib.c: Use string.h, not gdb_string.h.
428 * somread.c: Use string.h, not gdb_string.h.
429 * source.c: Use string.h, not gdb_string.h.
430 * sparc-nat.c: Use string.h, not gdb_string.h.
431 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
432 * sparc-tdep.c: Use string.h, not gdb_string.h.
433 * sparc64-tdep.c: Use string.h, not gdb_string.h.
434 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
435 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
436 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
437 * spu-linux-nat.c: Use string.h, not gdb_string.h.
438 * spu-multiarch.c: Use string.h, not gdb_string.h.
439 * spu-tdep.c: Use string.h, not gdb_string.h.
440 * stabsread.c: Use string.h, not gdb_string.h.
441 * stack.c: Use string.h, not gdb_string.h.
442 * std-regs.c: Use string.h, not gdb_string.h.
443 * symfile.c: Use string.h, not gdb_string.h.
444 * symmisc.c: Use string.h, not gdb_string.h.
445 * symtab.c: Use string.h, not gdb_string.h.
446 * target.c: Use string.h, not gdb_string.h.
447 * thread.c: Use string.h, not gdb_string.h.
448 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
449 * tilegx-tdep.c: Use string.h, not gdb_string.h.
450 * top.c: Use string.h, not gdb_string.h.
451 * tracepoint.c: Use string.h, not gdb_string.h.
452 * tui/tui-command.c: Use string.h, not gdb_string.h.
453 * tui/tui-data.c: Use string.h, not gdb_string.h.
454 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
455 * tui/tui-file.c: Use string.h, not gdb_string.h.
456 * tui/tui-layout.c: Use string.h, not gdb_string.h.
457 * tui/tui-out.c: Use string.h, not gdb_string.h.
458 * tui/tui-regs.c: Use string.h, not gdb_string.h.
459 * tui/tui-source.c: Use string.h, not gdb_string.h.
460 * tui/tui-stack.c: Use string.h, not gdb_string.h.
461 * tui/tui-win.c: Use string.h, not gdb_string.h.
462 * tui/tui-windata.c: Use string.h, not gdb_string.h.
463 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
464 * typeprint.c: Use string.h, not gdb_string.h.
465 * ui-file.c: Use string.h, not gdb_string.h.
466 * ui-out.c: Use string.h, not gdb_string.h.
467 * user-regs.c: Use string.h, not gdb_string.h.
468 * utils.c: Use string.h, not gdb_string.h.
469 * v850-tdep.c: Use string.h, not gdb_string.h.
470 * valarith.c: Use string.h, not gdb_string.h.
471 * valops.c: Use string.h, not gdb_string.h.
472 * valprint.c: Use string.h, not gdb_string.h.
473 * value.c: Use string.h, not gdb_string.h.
474 * varobj.c: Use string.h, not gdb_string.h.
475 * vax-tdep.c: Use string.h, not gdb_string.h.
476 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
477 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
478 * windows-nat.c: Use string.h, not gdb_string.h.
479 * xcoffread.c: Use string.h, not gdb_string.h.
480 * xml-support.c: Use string.h, not gdb_string.h.
481 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
482 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
483
63ce7108
TT
4842013-11-18 Tom Tromey <tromey@redhat.com>
485
486 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
487 and strstr.
488 * gnulib/aclocal.m4: Update.
489 * gnulib/config.in: Update.
490 * gnulib/configure: Update.
491 * gnulib/import/Makefile.am: Update.
492 * gnulib/import/Makefile.in: Update.
493 * gnulib/import/errno.in.h: New.
494 * gnulib/import/intprops.h: New.
495 * gnulib/import/m4/errno_h.m4: New.
496 * gnulib/import/m4/gnulib-cache.m4: Update.
497 * gnulib/import/m4/gnulib-comp.m4: Update.
498 * gnulib/import/m4/strerror.m4: New.
499 * gnulib/import/m4/strstr.m4: New.
500 * gnulib/import/m4/sys_socket_h.m4: New.
501 * gnulib/import/strerror-override.c: New.
502 * gnulib/import/strerror-override.h: New.
503 * gnulib/import/strerror.c: New.
504 * gnulib/import/strstr.c: New.
505
a7c11ee1
TT
5062013-11-18 Tom Tromey <tromey@redhat.com>
507
508 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
509 multiple lines.
510
d0b5971a
JM
5112013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
512
513 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
514 * sparc-tdep.h: And its prototype.
515
516 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
517 function.
518 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
519
4b4589ad
PA
5202013-11-18 Pedro Alves <palves@redhat.com>
521
522 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
523 use unpack_pointer.
524
422ad5c2
JB
5252013-11-18 Joel Brobecker <brobecker@adacore.com>
526
527 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
528 to -list-features output.
529
b1370418
JB
5302013-11-17 Joel Brobecker <brobecker@adacore.com>
531
532 * dwarf2expr.h (struct dwarf_expr_context_funcs)
533 <read_addr_from_reg>: Renames "read_reg".
534 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
535 Adjust comment.
536 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
537 Use read_addr_from_reg in place of read_reg.
538 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
539 in place of read_reg.
540 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
541 dwarf_expr_read_reg.
542 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
543 with dwarf_expr_read_addr_from_reg.
544 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
545 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
546 needs_frame_read_addr_from_reg.
547
6ea71545
JK
5482013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
549
550 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
551
19a1b230
AA
5522013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
553
554 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
555 NULL.
556
805e1f19
TT
5572013-11-15 Tom Tromey <tromey@redhat.com>
558
559 PR c++/16117:
560 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
561 (classify_name): Likewise. Prefer a field of "this" over a
562 filename.
563 (classify_inner_name, yylex): Update.
564
0acf8b65
JB
5652013-11-15 Joel Brobecker <brobecker@adacore.com>
566
567 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
568 Extend the documentation a bit.
569 <get_reg_value>: New field.
570 * dwarf2loc.c (dwarf_expr_get_reg_value)
571 (needs_frame_get_reg_value): New functions.
572 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
573 callback.
574 * dwarf2-frame.c (get_reg_value): New function.
575 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
576 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
577 Use new callback to compute result_val.
578
ef1bc9e7
AM
5792013-11-15 Alan Modra <amodra@gmail.com>
580
581 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
582 (ppc64_desc_entry_point): ..this. Update comments here and at
583 call points.
584 (ppc64_standard_linkage1, ppc64_standard_linkage2,
585 ppc64_standard_linkage3): Update comments.
586 (ppc64_standard_linkage4, ppc64_standard_linkage5,
587 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
588 patterns.
589 (ppc64_standard_linkage4_target): New function.
590 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
591 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
592 nop match. Fix comment wrap.
593
36fa8042
PA
5942013-11-14 Pedro Alves <palves@redhat.com>
595
596 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
597 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
598
4f5d7f63
PA
5992013-11-14 Pedro Alves <palves@redhat.com>
600
601 * infrun.c (struct execution_control_state)
602 <stepped_after_stopped_by_watchpoint>: New field.
603 (get_inferior_stop_soon): New function.
604 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
605 moved to struct execution_control_state -- adjust. Use
606 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
607 new function.
608 (handle_signal_stop): New function, factored out from
609 handle_inferior_event.
610
47591c29
PA
6112013-11-14 Pedro Alves <palves@redhat.com>
612
613 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
614 return a boolean.
615 * breakpoint.c (bpstat_explains_signal): Adjust to return a
616 boolean.
617 (explains_signal_watchpoint, base_breakpoint_explains_signal):
618 Adjust to return a boolean.
619 * breakpoint.h (enum bpstat_signal_value): Delete.
620 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
621 (bpstat_explains_signal): Likewise.
622 * infrun.c (handle_inferior_event) <random signal checks>:
623 bpstat_explains_signal now returns a boolean - adjust. No longer
624 consider hiding signals.
625
bac7d97b
PA
6262013-11-14 Pedro Alves <palves@redhat.com>
627
628 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
629 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
630 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
631 BPSTAT_SIGNAL_HIDE.
632 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
633 instead of BPSTAT_SIGNAL_HIDE.
634 * infrun.c (handle_inferior_event): Rework random signal checks.
635
ce12b012
PA
6362013-11-14 Pedro Alves <palves@redhat.com>
637
638 * infrun.c (struct execution_control_state): Remove
639 'random_signal' field.
640 (handle_syscall_event): Use bpstat_causes_stop instead of
641 bpstat_explains_signal. Don't set ecs->random_signal.
642 (handle_inferior_event): New 'random_signal' local.
643 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
644 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
645 bpstat_explains_signal. Don't set ecs->random_signal.
646 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
647 ecs->random_signal.
648
05ba8510
PA
6492013-11-14 Pedro Alves <palves@redhat.com>
650
651 * infrun.c (handle_inferior_event): Move comment from the
652 function's body to the function's description, adjusted.
653
5c09a2c5
PA
6542013-11-14 Pedro Alves <palves@redhat.com>
655
656 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
657 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
658 Assert we never fall through out of the TARGET_WAITKIND_LOADED
659 case.
660
91822956
TT
6612013-11-14 Tom Tromey <tromey@redhat.com>
662
663 * python/py-linetable.c (ltpy_has_line)
664 (ltpy_get_all_source_lines): Fix loop termination condition.
665
403cb6b1
JB
6662013-11-14 Joel Brobecker <brobecker@adacore.com>
667
668 * mi/mi-parse.h (struct mi_parse) <language>: New field.
669 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
670 PARSE->LANGUAGE during command execution, if set.
671 * mi/mi-parse.c: Add "language.h" #include.
672 (mi_parse): Add parsing of "--language" command option.
673
674 * NEWS: Add entry mentioning the new "--language" command option.
675
b5be8ce0
JB
6762013-11-14 Pedro Alves <palves@redhat.com>
677 Joel Brobecker <brobecker@adacore.com>
678
679 * cli/cli-utils.h (extract_arg_const): Add declaration.
680 * cli/cli-utils.c (extract_arg_const): New function.
681 (extract_arg): Reimplement using extract_arg_const.
682
671afef6
JB
6832013-11-14 Joel Brobecker <brobecker@adacore.com>
684
685 * language.h: Add "symtab.h" #include.
686
6c1b0f7b
DE
6872013-11-13 Doug Evans <xdje42@gmail.com>
688
689 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
690 specific breakpoints, don't evaluate breakpoint condition if
691 different thread.
692
74921315
KS
6932013-11-13 Keith Seitz <keiths@redhat.com>
694
248ace2e 695 PR c++/7935
74921315
KS
696 PR c++/10541
697 * cp-support.c (insepct_type): Add support for substituting
698 namespace aliases, too.
699 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
700 for DW_TAG_imported_declaration.
701 (add_partial_symbol): Likewise.
702 (process_die): Handle namespace aliases with
703 read_namespace_alias.
704 (die_needs_namespace): Add DW_TAG_imported_declaration.
705 (read_namespace_alias): New function.
706 (load_partial_dies): Load DW_TAG_imported_declaration, too.
707 (new_symbol_full): Handle DW_TAG_imported_declaration.
708
793156e6
KS
7092013-11-13 Keith Seitz <keiths@redhat.com>
710
711 * p-exp.y (uptok): Make first parameter const.
712 (yylex): Make `tokstart' and `tokptr' const.
713 Don't copy the lexer input to a temporary buffer.
714 Make `p' const.
715 Remove const workaround for parse_escape.
716 Create a temporary buffer for a convenience variable instead
717 of doing in-place modification of the input.
718 If a match is found with a different case from the input,
719 do not change the input at all.
720 Use `tmp' to construct the resultant stoken instead of
721 `tokstart'.
722
c42bd95a
DE
7232013-11-13 Doug Evans <xdje42@gmail.com>
724
725 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
726
93973826
JB
7272013-11-13 Joel Brobecker <brobecker@adacore.com>
728
729 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
730 entry with "ada-exceptions".
731
846060df
JB
7322013-11-13 Joel Brobecker <brobecker@adacore.com>
733
734 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
735 after re-initialization of OBJFILE's obstack.
736
5efd1b2b 7372013-11-12 Doug Evans <xdje42@gmail.com>
7d4df6a4
DE
738
739 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
740 bs->stop != 0 on entry. Update function comment. Simplify early
741 exit for frame mismatch. Reindent rest of function.
742
ee7615e1
AA
7432013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
744
745 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
746 NULL.
747
8943b874
DE
7482013-11-12 Doug Evans <dje@google.com>
749
750 Work around gold/15646.
751 * dwarf2read.c (read_index_from_section): Update comment.
752 (struct dw2_symtab_iterator): New member global_seen.
753 (dw2_symtab_iter_init): Initialize it.
754 (dw2_symtab_iter_next): Skip duplicate global symbols.
755 (dw2_expand_symtabs_matching): Ditto.
756
a8a9844d
JB
7572013-11-12 Joel Brobecker <brobecker@adacore.com>
758
759 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
760 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
761 command.
762 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
763 (mi_cmd_info_ada_exceptions): New function.
764 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
765
778865d3
JB
7662013-11-12 Joel Brobecker <brobecker@adacore.com>
767
768 * ada-lang.h: #include "vec.h".
769 (struct ada_exc_info): New.
770 (ada_exc_info): New typedef.
771 (DEF_VEC_O(ada_exc_info)): New vector.
772 (ada_exceptions_list): Add declaration.
773 * ada-lang.c (ada_is_exception_sym)
774 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
775 (sort_remove_dups_ada_exceptions_list)
776 (ada_exc_search_name_matches, ada_add_standard_exceptions)
777 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
778 (ada_exceptions_list_1, ada_exceptions_list)
779 (info_exceptions_command): New function.
780 (_initialize_ada_language): Add "info exception" command.
781
bc79de95
PM
7822013-11-11 Phil Muldoon <pmuldoon@redhat.com>
783
784 PR python/15629
785 * NEWS: Add linetable feature.
786 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
787 * python/py-linetable.c: New file.
788 * python/py-symtab.c (stpy_get_linetable): New function.
789 * python/python-internal.h (symtab_to_linetable_object): Declare.
790 (gdbpy_initialize_linetable): Ditto.
791 * python/python.c (_initialize_python): Call
792 gdbpy_initialize_linetable.
793
2df4d1d5
JB
7942013-11-11 Joel Brobecker <brobecker@adacore.com>
795
796 * ada-lang.c (create_ada_exception_catchpoint): Enhance
797 the documentation of fields "except_string" and "condition".
798 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
799 CONDITION on the heap before passing it to
800 create_ada_exception_catchpoint.
801 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
802 CONDITION.
803
99c1d451
TT
8042013-11-11 Tom Tromey <tromey@redhat.com>
805
806 * config.in, configure: Rebuild.
807 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
808
8ca5801b
JB
8092013-11-11 Joel Brobecker <brobecker@adacore.com>
810
811 * remote-sim.c (gdbsim_detach): Break declaration into
812 shorter lines. No code change.
813
7a06d430
EBM
8142013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
815
816 * remote-sim.c (gdbsim_detach): Fix prototype.
817
73be47f5
DE
8182013-11-08 Doug Evans <dje@google.com>
819
820 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
821 (create_debug_types_hash_table): Only print debugging messages for
822 each TU if dwarf2-read >= 2.
823 (process_queue): Ditto.
824 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
825 Update doc string.
826
a18d8f10
TT
8272013-11-08 Tom Tromey <tromey@redhat.com>
828
829 * configure: Rebuild.
830 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
831
9467110b
TT
8322013-11-08 Tom Tromey <tromey@redhat.com>
833
834 * configure, config.in: Rebuild.
835 * configure.ac: Remove unused configury.
836
69706679
TT
8372013-11-08 Tom Tromey <tromey@redhat.com>
838
839 * m32c-tdep.c: Use gdb_string.h.
840
9b4bea72
TT
8412013-11-08 Tom Tromey <tromey@redhat.com>
842
843 * configure, config.in: Rebuild.
844 * configure.ac: Remove all link.h-related checks.
845
3266f10b
TT
8462013-11-08 Tom Tromey <tromey@redhat.com>
847
848 * acinclude.m4: Include common.m4.
849 * common/common.m4: New file.
850 * configure, config.in: Rebuild.
851 * configure.ac: Use GDB_AC_COMMON.
852
db0fec5c
DE
8532013-11-08 Doug Evans <dje@google.com>
854
855 * NEWS: Mention that "set debug symtab-create" now accepts a
856 verbosity level.
857 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
858 to set the symtab's primary flag.
859 * jit.c (finalize_symtab): Ditto.
860 * mdebugread.c (psymtab_to_symtab_1): Ditto.
861 * symfile.c (allocate_symtab): Only print debugging messages for
862 symtab_create_debug levels 2 and higher.
863 * symtab.c (symtab_create_debug): Change type to unsigned int.
864 (set_symtab_primary): New function.
865 (_initialize_symtab): Change "set debug symtab-create" to a
866 zuinteger option.
867 * symtab.h (set_symtab_primary): Declare.
868 (symtab_create_debug): Update decl.
869
52554a0e
TT
8702013-11-08 Tom Tromey <tromey@redhat.com>
871
872 * aix-thread.c (aix_thread_detach): Update.
873 * corelow.c (core_detach): Update.
874 * darwin-nat.c (darwin_detach): Update.
875 * dec-thread.c (dec_thread_detach): Update.
876 * gnu-nat.c (gnu_detach): Update.
877 * go32-nat.c (go32_detach): Update.
878 * inf-ptrace.c (inf_ptrace_detach): Update.
879 * inf-ttrace.c (inf_ttrace_detach): Update.
880 * linux-fork.c (linux_fork_detach): Update.
881 * linux-fork.h (linux_fork_detach): Update.
882 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
883 local for const-correctness.
884 * linux-thread-db.c (thread_db_detach): Update.
885 * monitor.c (monitor_detach): Update.
886 * nto-procfs.c (procfs_detach): Update.
887 * procfs.c (procfs_detach): Update.
888 * record.c (record_detach): Update.
889 * record.h (record_detach): Update.
890 * remote-m32r-sdi.c (m32r_detach): Update.
891 * remote-mips.c (mips_detach): Update.
892 * remote-sim.c (gdbsim_detach): Update.
893 * remote.c (remote_detach_1, remote_detach)
894 (extended_remote_detach): Update.
895 * sol-thread.c (sol_thread_detach): Update.
896 * target.c (target_detach): Make "args" const.
897 (init_dummy_target): Update.
898 * target.h (struct target_ops) <to_detach>: Make argument const.
899 (target_detach): Likewise.
900 * windows-nat.c (windows_detach): Update.
901
204b5331
DE
9022013-11-07 Doug Evans <dje@google.com>
903
904 PR 11786
905 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
906 and align fields for PT_GNU_RELRO segments.
907
92e32e33
PM
9082013-11-07 Phil Muldoon <pmuldoon@redhat.com>
909
ef1bc9e7
AM
910 PR python/15747
911 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
92e32e33 912
f76c27b5
PM
9132013-11-07 Phil Muldoon <pmuldoon@redhat.com>
914
915 * NEWS: Document Python temporary breakpoint support.
916 * python/py-breakpoint.c (bppy_get_temporary): New function.
917 (bppy_init): New keyword: temporary. Parse it and set breakpoint
918 to temporary if True.
919
d52cd232
JM
9202013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
921
922 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
923 removed to allow analyzing unconditional branch instructions
924 with PC-relative offsets of zero.
925
fa4d0c40
YQ
9262013-11-07 Yao Qi <yao@codesourcery.com>
927
928 * mi/mi-cmd-var.c: Include "language.h".
929 (mi_cmd_var_info_expression): Get language name from
930 language_defn.
931 * varobj.c (varobj_language_string): Remove.
932 (variable_language): Remove declaration.
933 (languages): Remove.
934 (varobj_get_language): Change the type of return value.
935 (variable_language): Remove.
936 * varobj.h (enum varobj_languages): Remove.
937 (varobj_language_string): Remove declaration.
938 (varobj_get_language): Update declaration.
939
6abde28f
YQ
9402013-11-07 Yao Qi <yao@codesourcery.com>
941
942 * language.h (struct language_defn) <la_natural_name>: New
943 field.
944 * ada-lang.c (ada_language_defn): Initialize field
945 'la_natural_name'.
946 * c-lang.c (c_language_defn): Likewise.
947 (cplus_language_defn, asm_language_defn): Likewise.
948 * d-lang.c (d_language_defn): Likewise.
949 * f-lang.c (f_language_defn): Likewise.
950 * go-lang.c (go_language_defn): Likewise.
951 * jv-lang.c (java_language_defn): Likewise.
952 * language.c (unknown_language_defn ): Likewise.
953 (auto_language_defn): Likewise.
954 * m2-lang.c (m2_language_defn): Likewise.
955 * objc-lang.c (objc_language_defn): Likewise.
956 * opencl-lang.c (opencl_language_defn): Likewise.
957 * p-lang.c (pascal_language_defn): Likewise.
958
27cd387b
YQ
9592013-11-07 Yao Qi <yao@codesourcery.com>
960
961 * language.c (language_str): Return const char *.
962 (add_language): Add const to 'language_names'
963 * language.h (struct language_defn) <la_name>: Add const.
964 (language_str: Update declaration.
965
6682d959
AA
9662013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
967
968 * s390-linux-nat.c (s390_read_description): Consider the TE field
969 in the HWCAP for determining 'have_regset_tdb'.
970
b9502d3f
WN
9712013-11-06 Will Newton <will.newton@linaro.org>
972
973 PR gdb/12866
974 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
975 values. (read_partial_die): Likewise.
976
840da61a
MB
9772013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
978
979 PR cli/16122
980 * top.c (command_line_input): Unify interactivity tests to use
981 input_from_terminal_p.
982 * event-top.c (command_line_handler): Likewise.
983
7636ccf9
YQ
9842013-11-06 Yao Qi <yao@codesourcery.com>
985
986 * Makefile.in (check-perf): New target.
987
12b27276
WN
9882013-11-05 Will Newton <will.newton@linaro.org>
989
990 PR gdb/7670
991 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
992 (arm_print_float_info): Likewise.
993
67c059c2
AB
9942013-11-04 Anton Blanchard <anton@samba.org>
995
996 * target.c (memory_xfer_partial): Cap write to 4KB.
997
0569175e
TSD
9982013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
999
1000 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1001 probe scan even when the arch provides no get_longjmp_target.
1002
b18e90f5
PA
10032013-10-31 Pedro Alves <palves@redhat.com>
1004
1005 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1006 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1007 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1008 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1009 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1010 <bpstat handling>: If the bpstat chain wants the signal to be
1011 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1012 GDB_SIGNAL_TRAP.
1013
638aa5a1
AB
10142013-10-31 Andrew Burgess <aburgess@broadcom.com>
1015
1016 * breakpoint.c (update_watchpoint): Update error message and add
1017 an additional error message.
1018
0e5fae36
UW
10192013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1020
1021 * s390-tdep.h: Rename to...
1022 * s390-linux-tdep.h: ...here.
1023 * s390-tdep.c: Rename to...
1024 * s390-linux-tdep.c: ...here. Adjust #include.
1025 * s390-nat.c: Rename to...
1026 * s390-linux-nat.c: ...here. Adjust #include.
1027 * config/s390/s390.mh: Rename to...
1028 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1029 s390-linux-nat.o.
1030 * configure.host: Reflect host rename "s390" -> "linux".
1031 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1032 * Makefile.in (ALL_TARGET_OBS): Likewise.
1033 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1034 s390-linux-tdep.h.
1035 (ALLDEPFILES): Reflect rename of .c files.
1036
34201ae3
UW
10372013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1038
1039 * s390-nat.c: Whitespace cleanup.
1040 * s390-tdep.c: Likewise.
1041 * s390-tdep.h: Remove empty line at end of file.
1042
e17aaa33
MR
10432013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1044
1045 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1046 siginfo_size.
1047
aee17e42
TT
10482013-10-29 Tom Tromey <tromey@redhat.com>
1049
1050 * utils.c (reg): Move undefinition...
1051 * gdb_curses.h: ... here. Update comment to mention AIX.
1052
9ac69859
NB
10532013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1054
1055 * exec.h (add_target_sections_of_objfile): New declaration.
1056 * exec.c (add_target_sections_of_objfile): New function.
1057 * symfile.c (add_symbol_file_command): Update current target sections.
1058 (remove_symbol_file_command): New command.
1059 (symfile_free_objfile): New function.
1060 (_initialize_symfile): Register observer for free_objfile events.
1061 * NEWS: Add description of the remove-symbol-file command.
1062 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1063 * objfiles.c (free_objfile): Notify free_objfile.
1064 (is_addr_in_objfile): New function.
1065 * objfiles.h (is_addr_in_objfile): New declaration.
1066 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1067 events instead of solib_unloaded events.
1068 (_initialize_printcmd): Register observer for free_objfile instead
1069 of solib_unloaded notifications.
1070 * solib.c (remove_user_added_objfile): New function.
1071 (_initialize_symfile): Add remove-symbol-file.
1072
f69d9aef
AB
10732013-10-29 Andrew Burgess <aburgess@broadcom.com>
1074
1075 * infcmd.c (default_print_one_register_info): Use val_print to
1076 print all values even optimized out or unavailable ones. Don't
1077 try to print a raw form of optimized out or unavailable values.
1078
487ad57c
YQ
10792013-10-29 Yao Qi <yao@codesourcery.com>
1080
1081 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1082 parameter 'arg' instead of from program_space_data.
1083 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1084 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1085 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1086 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1087 * inflow.c (inflow_inferior_data_cleanup): Get data from
1088 parameter 'arg' instead of inferior_data.
1089 * registry.h: Add comments.
1090
3c4797ba
PA
10912013-10-28 Pedro Alves <palves@redhat.com>
1092
1093 * breakpoint.c (watchpoints_triggered)
1094 <!target_stopped_data_address>: Hardcode return 1.
1095
cdaa5b73
PA
10962013-10-28 Pedro Alves <palves@redhat.com>
1097
1098 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1099 level and reindent.
1100
94c57d6a
PA
11012013-10-28 Pedro Alves <palves@redhat.com>
1102
1103 * infrun.c (process_event_stop_test): New function, factored out
1104 from handle_inferior_event.
1105 (handle_inferior_event): 'process_event_stop_test' is now a
1106 function instead of a goto label -- adjust.
1107
fcf3daef
PA
11082013-10-28 Pedro Alves <palves@redhat.com>
1109
1110 * infrun.c (handle_inferior_event): Move process_event_stop_test
1111 goto label to the else branch of the ecs->random_signal check,
1112 along with FRAME and GDBARCH re-fetching.
1113
c447ac0b
PA
11142013-10-28 Pedro Alves <palves@redhat.com>
1115
1116 * infrun.c (switch_back_to_stepped_thread): New function, factored
1117 out from handle_inferior_event.
1118 (handle_inferior_event): Adjust to call
1119 switch_back_to_stepped_thread. Call it also at the tail of the
1120 random signal handling, and return, instead of also handling
1121 random signals just before the stepping tests.
1122
f05e4c11
PA
11232013-10-28 Pedro Alves <palves@redhat.com>
1124
1125 * infrun.c (clear_stop_func): Delete.
1126 (handle_inferior_event): Don't call clear_stop_func and don't
1127 clear 'ecs->random_signal'.
1128
ca20d462
YQ
11292013-10-27 Yao Qi <yao@codesourcery.com>
1130
1131 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1132 (varobj_create, varobj_get_path_expr): Update.
1133 (varobj_value_has_mutated, varobj_update): Likewise.
1134 (create_child_with_value, new_root_variable): Likewise.
1135 (number_of_children, name_of_variable): Likewise.
1136 (value_of_child, my_value_of_variable): Likewise.
1137 (varobj_value_is_changeable_p): Likewise.
1138
a53b64ea
YQ
11392013-10-25 Yao Qi <yao@codesourcery.com>
1140
1141 * language.h (struct lang_varobj_ops): Declare.
1142 (struct language_defn) <la_varobj_ops>: New field.
1143 * ada-lang.c: Include "varobj.h"
1144 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1145 ada_varobj_ops.
1146 * c-lang.c: Include "varobj.h"
1147 (c_language_defn): Initialize field 'la_varobj_ops' with
1148 c_varobj_ops.
1149 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1150 cplus_varobj_ops.
1151 (asm_language_defn): Initialize field 'la_varobj_ops' with
1152 default_varobj_ops.
1153 (minimal_language_defn): Likewise.
1154 * d-lang.c (d_language_defn): Likewise.
1155 * f-lang.c (f_language_defn): Likewise.
1156 * go-lang.c (go_language_defn): Likewise.
1157 * m2-lang.c (m2_language_defn): Likewise.
1158 * objc-lang.c (objc_language_defn): Likewise.
1159 * opencl-lang.c (opencl_language_defn): Likewise.
1160 * p-lang.c (pascal_language_defn): Likewise.
1161 * language.c (unknown_language_defn): Likewise.
1162 (auto_language_defn): Likewise.
1163 (local_language_defn): Likewise.
1164 * jv-lang.c (java_language_defn): Initialize field
1165 'la_varobj_ops' with java_varobj_ops.
1166 * varobj.c (varobj_create): Update.
1167 * varobj.h (default_varobj_ops): Define macro.
1168
686d4def
PA
11692013-10-25 Pedro Alves <palves@redhat.com>
1170
1171 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1172 static field value.
1173 (cp_print_static_field): If the value is entirely optimized out,
1174 print <optimized out> here.
1175 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1176 static field value.
1177 * p-valprint.c (pascal_object_print_static_field): If the value is
1178 entirely optimized out, print <optimized out> here.
1179 * valops.c (do_search_struct_field)
1180 (value_struct_elt_for_reference): No longer handle a NULL static
1181 field value.
1182 * value.c (value_static_field): Return an optimized out value
1183 instead of NULL.
1184
6c177e28
YQ
11852013-10-25 Yao Qi <yao@codesourcery.com>
1186
1187 * remote.c (remote_traceframe_info): Return early if
1188 traceframe is not selected.
1189
98322bfa
YQ
11902013-10-25 Yao Qi <yao@codesourcery.com>
1191
1192 * tracepoint.c (traceframe_fun): Remove.
1193 (traceframe_sal): Remove.
1194 (set_traceframe_context): Add local variables.
1195
6ba1f115
JB
11962013-10-25 Joel Brobecker <brobecker@adacore.com>
1197
1198 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1199 and parameter name.
1200
bbe769cc
MR
12012013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1202
1203 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1204 failure from register information collection.
1205
72ee4495 12062013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
1207
1208 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1209 member.
1210 (linux_corefile_thread_callback): Update accordingly.
1211 (linux_make_corefile_notes): Likewise.
1212
98882a26
PA
12132013-10-24 Pedro Alves <palves@redhat.com>
1214
1215 * NEWS (New options): Mention set/show startup-with-shell.
1216 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1217 instead of 3.
1218 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1219 startup-with-shell'.
1220 (show_startup_with_shell): New function.
1221 (_initialize_fork_child): Register the set/show startup-with-shell
1222 commands.
1223 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1224 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1225 * procfs.c (procfs_init_inferior): Remove comment.
1226 * infcmd.c (startup_with_shell): New global.
1227 * inferior.h (startup_with_shell): Declare global.
1228 (STARTUP_WITH_SHELL): Delete.
1229 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1230
c9737c08
PA
12312013-10-23 Pedro Alves <palves@redhat.com>
1232
1233 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1234 * common/signals.c: Include "gdb_assert.h".
1235 (signals): New field 'symbol'.
1236 (SET): Use the 'symbol' parameter.
1237 (gdb_signal_to_symbol_string): New function.
1238 * infrun.c (handle_inferior_event) <random signal>: In debug
1239 output, print the random signal enum as string in addition to its
1240 number.
1241 * target/waitstatus.c (target_waitstatus_to_string): Print the
1242 signal's enum value as string instead of the (POSIX) signal name.
1243
f60db4f0
GB
12442013-10-23 Gary Benson <gbenson@redhat.com>
1245
1246 PR 16013
1247 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1248 from 32 to 18. Adjusted fscanf format string accordingly.
1249 (Avoids leaving cmd unterminated.)
1250 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1251 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1252 that local_address and remote_address will not overflow.
1253 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1254 leaving dependencies unterminated. Parse size as "%u" to match
1255 definition.
1256
6d3e7a94
PA
12572013-10-22 Pedro Alves <palves@redhat.com>
1258
1259 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1260 set ecs->random signal.
1261
42ec045f
PA
12622013-10-22 Pedro Alves <palves@redhat.com>
1263
1264 * infrun.c (keep_going): Update comments.
1265
12662013-10-22 Pedro Alves <palves@redhat.com>
1267
1268 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1269 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1270
12712013-10-22 Pedro Alves <palves@redhat.com>
1272
1273 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1274 GDB_EXC_BAD_ACCESS.
1275 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1276 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1277 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1278 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1279 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1280 (GDB_SIGNAL_LAST): Change description string.
1281 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1282 Adjust to signal renaming.
1283 * darwin-nat.c (darwin_decode_message): Likewise.
1284
c8fde1b1
JM
12852013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1286
1287 * MAINTAINERS (Write After Approval): Add myself to the list.
1288
e8369a73
AB
12892013-10-18 Andrew Burgess <aburgess@broadcom.com>
1290
1291 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1292 forced off, downgrade them to software watchpoints if possible,
1293 and error out if not possible.
1294 (watch_command_1): Move watchpoint type selection closer to
1295 watchpoint creation, and extend the comments.
1296
776f04fa
PA
12972013-10-18 Pedro Alves <palves@redhat.com>
1298
1299 PR gdb/16062
1300 * infrun.c (handle_inferior_event): Keep going if we got a random
1301 signal we should not stop for, instead of falling through to the
1302 step tests.
1303
0c6faab5
YQ
13042013-10-18 Yao Qi <yao@codesourcery.com>
1305
1306 * c-varobj.c (cplus_number_of_children): Fix indentation.
1307
50b34a18
TT
13082013-10-17 Tom Tromey <tromey@redhat.com>
1309
1310 PR gdb/15995:
1311 * printcmd.c (printcmd): Call gdb_flush.
1312
5c4c8a59
TT
13132013-10-17 Tom Tromey <tromey@redhat.com>
1314
1315 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1316 (elf_locate_sections): Update.
1317
c4124bf1
YQ
13182013-10-17 Yao Qi <yao@codesourcery.com>
1319
1320 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1321 * ada-varobj.c: Remove the include of ada-varobj.h.
1322 (ada_varobj_get_number_of_children): Declare.
1323 (ada_varobj_get_name_of_child): Make it static.
1324 (ada_varobj_get_path_expr_of_child): Likewise.
1325 (ada_varobj_get_value_of_child): Likewise.
1326 (ada_varobj_get_type_of_child): Likewise.
1327 (ada_varobj_get_value_of_array_variable): Likewise.
1328 * ada-varobj.h: Remove.
1329
99ad9427
YQ
13302013-10-17 Yao Qi <yao@codesourcery.com>
1331
1332 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1333 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1334 * ada-varobj.c: Include "varobj.h".
1335 (ada_number_of_children): New. Moved from varobj.c.
1336 (ada_name_of_variable, ada_name_of_child): Likewise.
1337 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1338 (ada_type_of_child, ada_value_of_variable): Likewise.
1339 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1340 (ada_varobj_ops): New.
1341 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1342 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1343 * gdbtypes.h (get_target_type): Declare.
1344 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1345 "ada-lang.h".
1346 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1347 (ANONYMOUS_UNION_NAME): Likewise.
1348 (get_type, get_value_type, get_target_type): Remove declarations.
1349 (value_get_print_value, varobj_value_get_print_value): Likewise.
1350 (c_number_of_children, c_name_of_variable): Likewise.
1351 (c_name_of_child, c_path_expr_of_child): Likewise.
1352 (c_value_of_child, c_type_of_child): Likewise.
1353 (c_value_of_variable, cplus_number_of_children): Likewise.
1354 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1355 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1356 (cplus_value_of_child, cplus_type_of_child): Likewise.
1357 (cplus_value_of_variable, java_number_of_children): Likewise.
1358 (java_name_of_variable, java_name_of_child): Likewise.
1359 (java_path_expr_of_child, java_value_of_child): Likewise.
1360 (java_type_of_child, java_value_of_variable): Likewise.
1361 (ada_number_of_children, ada_name_of_variable): Likewise.
1362 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1363 (ada_value_of_child, ada_type_of_child): Likewise.
1364 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1365 (ada_value_has_mutated): Likewise.
1366 (struct language_specific): Move it to varobj.h.
1367 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1368 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1369 Callers update.
1370 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1371 Make it extern.
1372 (is_anonymous_child): Move it to c-varobj.c and rename to
1373 varobj_is_anonymous_child. Caller update.
1374 (get_type): Move it to c-varobj.c.
1375 (get_value_type): Rename it varobj_get_value_type. Make it
1376 extern.
1377 (get_target_type): Move it gdbtypes.c.
1378 (varobj_formatted_print_options): New function.
1379 (value_get_print_value): Rename it to
1380 varobj_value_get_print_value and make it extern.
1381 (varobj_value_is_changeable_p): Make it extern.
1382 (adjust_value_for_child_access): Move it to c-varobj.c.
1383 (default_value_is_changeable_p): Rename it to
1384 varobj_default_value_is_changeable_p. Make it extern.
1385 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1386 (c_name_of_child, c_path_expr_of_child): Likewise.
1387 (c_value_of_child, c_type_of_child): Likewise.
1388 (c_value_of_variable, cplus_number_of_children): Likewise.
1389 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1390 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1391 (cplus_value_of_child, cplus_type_of_child): Likewise.
1392 (cplus_value_of_variable): Likewise.
1393 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1394 (java_name_of_child, java_path_expr_of_child): Likewise.
1395 (java_value_of_child, java_type_of_child): Likewise.
1396 (java_value_of_variable): Likewise.
1397 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1398 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1399 (ada_value_of_child, ada_type_of_child): Likewise.
1400 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1401 (ada_value_has_mutated): Likewise.
1402 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1403 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1404 (c_varobj_ops, cplus_varobj_ops): Declare.
1405 (java_varobj_ops, ada_varobj_ops): Declare.
1406 (varobj_default_value_is_changeable_p): Declare.
1407 (varobj_value_is_changeable_p): Declare.
1408 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1409 (varobj_get_path_expr_parent): Declare.
1410 (varobj_value_get_print_value): Declare.
1411 (varobj_formatted_print_options): Declare.
1412 (varobj_restrict_range): Declare.
1413
c8a62302
LM
14142013-10-17 Luis Machado <lgustavo@codesourcery.com>
1415
1416 * target/waitstatus.h (target_waitkind): Remove spurious
1417 character from the comments.
1418
eade6471
JB
14192013-10-17 Joel Brobecker <brobecker@adacore.com>
1420
1421 * gdbarch.sh (get_longjmp_target): Add method documentation.
1422 * gdbarch.h: Regenerate.
1423
5411b26c
TT
14242013-10-16 Tom Tromey <tromey@redhat.com>
1425
1426 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1427 label.
1428
87326c87
LM
14292013-10-16 Luis Machado <lgustavo@codesourcery.com>
1430
1431 * gcore.in: Call GDB using the full path to the gcore script.
1432 Error out if the GDB binary is not found.
1433
fd0a4d76
SDJ
14342013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1435
1436 PR gdb/16014
1437 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1438 sizeof.
1439
d92f7ee3
SDJ
14402013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1441
1442 PR gdb/16042
1443 * target.c (target_disable_btrace): Fix invalid return value for
1444 void function.
1445 (target_teardown_btrace): Likewise.
1446
bb5ce47a
YQ
14472013-10-14 Yao Qi <yao@codesourcery.com>
1448
1449 * varobj.c (struct varobj): Move most of the fields to
1450 varobj.h.
1451 (struct varobj_dynamic): New struct.
1452 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1453 (varobj_has_more): Likewise.
1454 (dynamic_varobj_has_child_method): Likewise.
1455 (update_dynamic_varobj_children): Likewise.
1456 (varobj_get_num_children): Likewise.
1457 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1458 (install_new_value_visualizer): Likewise.
1459 (install_new_value_visualizer, install_new_value): Likewise.
1460 (varobj_update, new_variable, free_variable): Likewise.
1461 (my_value_of_variable, value_get_print_value): Likewise.
1462 (install_visualizer): Change the type of parameter 'var' to
1463 'struct varobjd_dynamic *'. Callers update.
1464 * varobj.h (struct varobj): Moved from varobj.c.
1465 (struct varobj) <dynamic>: New field.
1466
0b76b0ce
SL
14672013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1468
1469 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1470 as the preferred name of r30.
1471 * nios2-linux-tdep.c (reg_offsets): Likewise.
1472 * features/nios2-cpu.xml: Likewise.
1473 * features/nios2-linux.c: Regenerated.
1474 * features/nios2.c: Regenerated.
1475 * regformats/nios2-linux.dat: Regenerated.
1476
4856b6bc
JK
14772013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1478
1479 Canonicalize directories for EXEC_FILENAME.
1480 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1481 exec_filename.
1482 * utils.c (gdb_realpath_keepfile): New function.
1483 * utils.h (gdb_realpath_keepfile): New declaration.
1484
9b557b58
DE
14852013-10-11 Doug Evans <dje@google.com>
1486
1487 * Makefile.in (GDBFLAGS): New variable.
1488 (run): New rule.
1489
ce13fade
JB
14902013-10-11 Joel Brobecker <brobecker@adacore.com>
1491
1492 * NEWS: Add entry documenting the new "-catch-assert" and
1493 "-catch-exception" GDB/MI commands.
1494
349774ef
JB
14952013-10-11 Joel Brobecker <brobecker@adacore.com>
1496
1497 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1498 "enabled".
1499 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1500 "enabled". Set B->ENABLE_STATE accordingly.
1501 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1502 ada-lang.c.
1503 (create_ada_exception_catchpoint): Add declaration.
1504 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1505 (create_ada_exception_catchpoint): Make non-static. Add new
1506 parameter "disabled". Use it in call to
1507 init_ada_exception_breakpoint.
1508 (catch_ada_exception_command): Add parameter "enabled" in call
1509 to create_ada_exception_catchpoint.
1510 (catch_assert_command): Likewise.
1511
1512 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1513 Add declarations.
1514 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1515 "catch-exception" commands.
1516 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1517 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1518
761269c8
JB
15192013-10-11 Joel Brobecker <brobecker@adacore.com>
1520
1521 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1522 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1523 of all its enumerates with "ada_". Update the rest of this
1524 file throughout.
1525
b4a5b78b
JB
15262013-10-11 Joel Brobecker <brobecker@adacore.com>
1527
1528 * ada-lang.c (ada_decode_exception_location): Delete.
1529 (create_ada_exception_catchpoint): Remove arguments "sal",
1530 "addr_string" and "ops". Add argument "ex_kind" instead.
1531 Adjust implementation accordingly, calling ada_exception_sal
1532 to get the entities it no longer gets passed as arguments.
1533 Document the function's arguments.
1534 (catch_ada_exception_command): Use catch_ada_exception_command_split
1535 instead of ada_decode_exception_location, and update call to
1536 create_ada_exception_catchpoint.
1537 (catch_ada_assert_command_split): Renames
1538 ada_decode_assert_location. Remove parameters "addr_string" and
1539 "ops", and now returns void. Adjust implementation accordingly.
1540 Update the function documentation.
1541 (catch_assert_command): Use catch_ada_assert_command_split
1542 instead of ada_decode_assert_location. Update call to
1543 create_ada_exception_catchpoint.
1544
7ad1d32c 15452013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
1546
1547 * utils.h (perror_warning_with_name): Add declaration.
1548 * utils.c (perror_warning_with_name): New function.
1549 * cli/cli-cmds.c (source_script_with_search): Add call to
1550 perror_warning_with_name if from_tty is nul.
1551
7ad1d32c 15522013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
1553
1554 * utils.c (perror_string): New function, extracted out of
1555 throw_perror_with_name.
1556 (throw_perror_with_name): Rework to use perror_string.
1557
bcc75809
YQ
15582013-10-11 Yao Qi <yao@codesourcery.com>
1559
1560 * remote.c (discard_pending_stop_replies_in_queue): Update
1561 declaration.
1562 (struct stop_reply) <rs>: New field.
1563 (remove_stop_reply_of_remote_state): New function.
1564 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1565 Callers update. Pass remove_stop_reply_of_remote_state to
1566 QUEUE_iterate.
1567 (remote_parse_stop_reply): Initialize field 'rs'.
1568
05feb193
WN
15692013-10-10 Will Newton <will.newton@linaro.org>
1570
1571 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1572 linux_init_abi.
1573
0d12017b
JB
15742013-10-10 Joel Brobecker <brobecker@adacore.com>
1575
1576 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1577 serial_baud_show_cmd.
1578 (_initialize_cli_cmds): Delete the code creating the
1579 "set/show remotebaud" commands.
1580 * serial.c (baud_rate): Move here from top.c.
1581 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1582 (_initialize_serial): Create "set/show serial baud" commands.
1583 Add "set/show remotebaud" command aliases.
1584 * top.c (baud_rate): Moved to serial.c.
1585 * NEWS: Document the new "set/show serial baud" commands,
1586 replacing "set/show remotebaud".
1587
578d3588
PA
15882013-10-09 Pedro Alves <palves@redhat.com>
1589
1590 * breakpoint.c (insert_bp_location): Use memory_error_message to
1591 build the memory error string.
1592 * c-lang.c: Include "gdbcore.h".
1593 (c_get_string): Use memory_error to throw error.
1594 (target_xfer_memory_error): Delete.
1595 (memory_error_message): New, factored out from
1596 target_xfer_memory_error.
1597 (memory_error): Change parameter type to target_xfer_error.
1598 Rewrite.
1599 (read_memory): Use memory_error instead of
1600 target_xfer_memory_error.
1601 * gdbcore.h: Include "target.h".
1602 (memory_error): Change parameter type to target_xfer_error.
1603 (memory_error_message): Declare function.
1604 * target.c (target_read_memory, target_read_stack)
1605 (target_write_memory, target_write_raw_memory): Return
1606 TARGET_XFER_E_IO on error. Adjust comments.
1607 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1608 instead of EIO.
1609 * target.h (target_read, target_insert_breakpoint)
1610 (target_remove_breakpoint): Adjust comments.
1611 * valprint.c (partial_memory_read): Rename parameter, and adjust
1612 comment.
1613 (val_print_string): Use memory_error_message to build the memory
1614 error string.
1615
c74e1ccf
JK
16162013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1617
1618 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1619 result variable. Rename variable fopen_e_ever_failed to
1620 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1621
915215be
PA
16222013-10-09 Pedro Alves <palves@redhat.com>
1623
1624 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1625 (monitor_write_memory_longlongs, monitor_write_memory_block):
1626 Constify 'myaddr' parameter.
1627 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1628 helper.
1629 (monitor_xfer_partial): New function.
1630 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1631 hook. Install a to_xfer_partial hook.
1632
acd13123
TT
16332013-10-09 Tom Tromey <tromey@redhat.com>
1634
1635 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1636 bfd_get_alt_debug_link_info.
1637
40135bb1
JK
16382013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1639
1640 New flag OBJF_NOT_FILENAME.
1641 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1642 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1643 allocate_objfile.
1644 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1645 symbol_file_add_from_bfd.
1646 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1647 allocate_objfile.
1648 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1649 NULL.
1650 * objfiles.h (OBJF_NOT_FILENAME): New.
1651
dc294be5
TT
16522013-10-08 Tom Tromey <tromey@redhat.com>
1653
1654 * Makefile.in (SFILES): Add build-id.c.
1655 (HFILES_NO_SRCDIR): Add build-id.h.
1656 * build-id.c: New file, largely from elfread.c. Modified
1657 most functions.
1658 * build-id.h: New file.
1659 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1660 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1661 Search for dwz file using build-id.
1662 * elfread.c (build_id_bfd_get, build_id_verify)
1663 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1664
db230ce3
JB
16652013-10-08 Joel Brobecker <brobecker@adacore.com>
1666
1667 * ada-lang.c (compare_names_with_case): Renamed from
1668 compare_names, adding a new parameter "casing" and its handling.
1669 New function documentation.
1670 (compare_names): New function, implemented using
1671 compare_names_with_case.
1672
6501c98a
JB
16732013-10-08 Joel Brobecker <brobecker@adacore.com>
1674
1675 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1676
84a1243b
TT
16772013-10-07 Tom Tromey <tromey@redhat.com>
1678
1679 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1680 demangled_names_hash.
1681 (free_objfile): Don't delete the demangled_names_hash.
1682 * objfiles.h (struct objfile_per_bfd_storage)
1683 <demangled_names_hash>: New field.
1684 (struct objfile) <demangled_names_hash>: Move to
1685 objfile_per_bfd_storage.
1686 * symfile.c (reread_symbols): Don't delete the
1687 demangled_names_hash.
1688 * symtab.c (create_demangled_names_hash): Update.
1689 (symbol_set_names): Update.
1690
1da77581
TT
16912013-10-07 Tom Tromey <tromey@redhat.com>
1692
1693 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1694 needs_relocations>: New fields.
1695 (gdb_bfd_requires_relocations): New function.
1696 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1697 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1698 the BFD needs relocations applied.
1699
46ecd527
PA
17002013-10-07 Pedro Alves <palves@redhat.com>
1701
1702 PR breakpoints/11568
1703 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1704 the thread list" instead of "gone".
1705
0c557179
SDJ
17062013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1707
1708 * NEWS: Mention new convenience variable $_exitsignal.
1709 * corelow.c (core_open): Reset exit convenience variables. Set
1710 $_exitsignal to the uncaught signal which generated the corefile.
1711 * infrun.c (handle_inferior_event): Reset exit convenience
1712 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1713 (clear_exit_convenience_vars): New function.
1714 * inferior.h (clear_exit_convenience_vars): New prototype.
1715
1cc47d81
YQ
17162013-10-06 Yao Qi <yao@codesourcery.com>
1717
1718 * varobj.h: Add comments to enum varobj_languages.
1719
73869dc2
DE
17202013-10-04 Doug Evans <dje@google.com>
1721
1722 Add support for DWP file format version 2.
1723 * NEWS: Mention support for DWP file format version 2.
1724 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1725 union of asection, containing_section. New fields virtual_offset
1726 and is_virtual. Change type of readin filed from int to char.
1727 (dwo_sections, dwo_file): Tweak comments.
1728 (dwp_v2_section_ids): New enum.
1729 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1730 str_offsets, types.
1731 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1732 All uses updated.
1733 (virtual_v2_dwo_sections): New struct.
1734 (dwp_hash_table): New fields version, nr_columns. Change type of
1735 section_pool field to a union.
1736 (dwp_file): New field version.
1737 (dwarf2_has_info): Check for virtual sections.
1738 (get_containing_section): New function.
1739 (get_section_bfd_owner, get_section_bfd_section): Call it.
1740 (dwarf2_locate_sections): Update.
1741 (dwarf2_section_empty_p): Update.
1742 (dwarf2_read_section): Handle virtual sections.
1743 (locate_dwz_sections): Update.
1744 (create_dwp_hash_table): Document and handle V2 format.
1745 (locate_v1_virtual_dwo_sections): Renamed from
1746 locate_virtual_dwo_sections and update. All callers updated.
1747 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1748 Delete arg htab. Rename arg section_index to unit_index.
1749 All callers updated.
1750 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1751 All uses updated.
1752 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1753 (lookup_dwo_unit_in_dwp): Add V2 support.
1754 (dwarf2_locate_dwo_sections): Update.
1755 (dwarf2_locate_common_dwp_sections): Renamed from
1756 dwarf2_locate_dwp_sections and update. All callers updated.
1757 (dwarf2_locate_v2_dwp_sections): New function.
1758 (open_and_init_dwp_file): Add V2 support.
1759 (read_str_index): New locals str_section, str_offsets_section.
1760
9a2c3737
PA
17612013-10-04 Pedro Alves <palves@redhat.com>
1762
1763 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1764 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1765 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1766 describing comments with references to ptid.h.
1767 * common/ptid.h: Remove intro description of constructors,
1768 accessors and predicates.
1769 (struct ptid): Reformat.
1770 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1771 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1772 describing comments.
1773
f5371440
JB
17742013-10-04 Joel Brobecker <brobecker@adacore.com>
1775
1776 * aix-thread.c (sync_threadlists): Add missing ')' in call
1777 to ptid_build.
1778
793e1c06
JB
17792013-10-04 Joel Brobecker <brobecker@adacore.com>
1780
1781 * procfs.c (procfs_init_inferior): Fix typo causing the build
1782 to fail.
1783
26f0edc1
JB
17842013-10-04 Joel Brobecker <brobecker@adacore.com>
1785
1786 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1787
5713b9b5
JB
17882013-10-04 Joel Brobecker <brobecker@adacore.com>
1789
1790 * mi/mi-main.c (run_one_inferior): Add function description.
1791 Make ARG a pointer to an integer whose value determines whether
1792 we should "run" or "start" the program.
1793 (mi_cmd_exec_run): Add handling of the "--start" option.
1794 Reject all other command-line options.
1795 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1796
f48ff2a7
YQ
17972013-10-04 Yao Qi <yao@codesourcery.com>
1798
1799 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1800 (struct notif_client) <pending_event>: Moved
1801 to struct remote_notif_state.
1802 <id>: New field.
1803 (struct remote_notif_state) <pending_event>: New field.
1804 (notif_event_xfree): Declare.
1805 * remote-notif.c (handle_notification): Adjust.
1806 (notif_event_xfree): New function.
1807 (do_notif_event_xfree): Call notif_event_xfree.
1808 (remote_notif_state_xfree): Call notif_event_xfree to free
1809 each element in field pending_event.
1810 * remote.c (discard_pending_stop_replies): Remove declaration.
1811 (discard_pending_stop_replies_in_queue): Declare.
1812 (remote_close): Call discard_pending_stop_replies_in_queue
1813 instead of discard_pending_stop_replies.
1814 (remote_start_remote): Adjust.
1815 (stop_reply_xfree): Call notif_event_xfree.
1816 (notif_client_stop): Adjust initialization.
1817 (remote_notif_remove_all): Rename it to ...
1818 (remove_stop_reply_for_inferior): ... this. Update comments.
1819 Don't check INF is NULL.
1820 (discard_pending_stop_replies): Return early if notif_state is
1821 NULL. Adjust. Don't check INF is NULL.
1822 (remote_notif_get_pending_events): Adjust.
ef1bc9e7 1823 (discard_pending_stop_replies_in_queue): New function.
f48ff2a7
YQ
1824 (remote_wait_ns): Likewise.
1825
5965e028
YQ
18262013-10-04 Yao Qi <yao@codesourcery.com>
1827
1828 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1829 (notif_queue): Remove.
1830 (remote_notif_process): Add one parameter 'notif_queue'.
1831 Update comments. Callers update.
1832 (remote_async_get_pending_events_token): Remove.
1833 (remote_notif_register_async_event_handler): Remove.
1834 (remote_notif_unregister_async_event_handler): Remove.
1835 (handle_notification): Add parameter 'notif_queue'. Update
1836 comments. Callers update.
1837 (notif_xfree): Remove.
1838 (remote_notif_state_allocate): New function.
1839 (remote_notif_state_xfree): New function.
1840 (_initialize_notif): Remove code to allocate queue.
1841 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1842 (struct remote_notif_state): New.
1843 (handle_notification): Update declaration.
1844 (remote_notif_process): Likewise.
1845 (remote_notif_register_async_event_handler): Remove.
1846 (remote_notif_unregister_async_event_handler): Remove.
1847 (remote_notif_state_allocate): Declare.
1848 (remote_notif_state_xfree): Declare.
1849 * remote.c (struct remote_state) <notif_state>: New field.
1850 (remote_close): Don't call
1851 remote_notif_unregister_async_event_handler. Call
1852 remote_notif_state_xfree.
1853 (remote_open_1): Don't call
1854 remote_notif_register_async_event_handler. Call
1855 remote_notif_state_allocate.
1856
5e5ac9a5
YQ
18572013-10-04 Yao Qi <yao@codesourcery.com>
1858
1859 * varobj.c (create_child_with_value): Remove 'const' from the
1860 type of parameter 'name'.
1861 (varobj_add_child): Likewise.
1862 (install_dynamic_child): Remove 'const' from the type of
1863 parameter 'name'.
1864 (varobj_add_child): Likewise.
1865 (create_child_with_value): Likewise. Update comments. Don't
1866 duplicate 'name'.
1867 (update_dynamic_varobj_children): Duplicate 'name'
1868 and pass it to install_dynamic_child.
1869
06ab7b19
PM
18702013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1871
1872 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1873 conversion logic to occur after PyLong_Check. Comment on order
1874 change significance.
1875 * python/py-arch.c (archpy_disassemble): Comment on order of
1876 conversion for integers and longs.
1877
8ae377e8
PA
18782013-10-03 Pedro Alves <palves@redhat.com>
1879
1880 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1881 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1882 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1883 PTRACE_O_TRACEFORK is not supported.
1884 (linux_test_for_tracesysgood): New function.
1885 (linux_test_for_tracefork): New function, factored out from
1886 linux_check_ptrace_features, and also don't kill child_pid here.
1887
b1328b1b
TG
18882013-10-03 Tristan Gingold <gingold@adacore.com>
1889
1890 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1891 Remove verbose error reporting. Use detected state to
1892 thread_set_state call.
1893 (i386_darwin_dr_get): Fix return type. Remove verbose error
1894 report.
1895 Remove trailing spaces.
1896
901461f8
PA
18972013-10-02 Pedro Alves <palves@redhat.com>
1898
1899 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1900 val_print_optimized_out.
1901 * jv-valprint.c (java_print_value_fields): Likewise.
1902 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1903 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1904 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1905 new optimized out value.
1906 * findvar.c (address_from_register): Likewise.
1907 * frame.c (put_frame_register): Tweak error string to say the
1908 register was not saved, rather than optimized out.
1909 * infcmd.c (default_print_one_register_info): Adjust call to
1910 val_print_optimized_out. Use value_of_register instead of
1911 get_frame_register_value.
1912 * mi/mi-main.c (output_register): Use value_of_register instead of
1913 get_frame_register_value.
1914 * valprint.c (valprint_check_validity): Likewise.
1915 (val_print_optimized_out): New value parameter. If the value is
1916 lval_register, print <not saved> instead.
1917 (value_check_printable, val_print_scalar_formatted): Adjust calls
1918 to val_print_optimized_out.
1919 * valprint.h (val_print_optimized_out): New value parameter.
1920 * value.c (struct value) <optimized_out>: Extend comment.
1921 (error_value_optimized_out): New function.
1922 (require_not_optimized_out): Use it. Use a different string for
1923 lval_register values.
1924 * value.h (error_value_optimized_out): New declaration.
1925 * NEWS: Mention <not saved>.
1926
042a84d9
JB
19272013-10-02 Joel Brobecker <brobecker@adacore.com>
1928
1929 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1930 strcmp to compare two symtab filenames.
1931
6b9780fb
JB
19322013-10-02 Joel Brobecker <brobecker@adacore.com>
1933
1934 * symtab.c (search_symbols_equal): Delete.
1935 (sort_search_symbols_remove_dups): Replace call to
1936 search_symbols_equal by call to compare_search_syms,
1937 adjusting as necessary.
1938
751e7549
PM
19392013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1940
1941 PR python/15579
751e7549
PM
1942 * python/python.c: Document gdb.execute command in Python help.
1943
1efd7661
PM
19442013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1945
1946 * python/py-frame.c (frame_info_to_frame_object): Use
1947 gdbpy_convert_exception. Clean up Python object on failure.
1948
562fc849
PM
19492013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1950
1951 * python/lib/gdb/command/frame_filters.py
1952 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1953 (ShowFrameFilterPriority.invoke): Ditto.
1954
d7561cbb
KS
19552013-10-01 Keith Seitz <keiths@redhat.com>
1956
1957 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1958 (parse_linespec): Make 'argptr' const.
1959 Remove temporary cast of 'argptr' to const char **.
1960 (decode_line_full): Pass const pointer to parse_linespec.
1961 (decode_line_1): Likewise.
1962 (decode_objc): Make local variable 'new_argptr' const.
1963 (find_function_symbols): Remove temporary cast to char *
1964 to find_imps.
1965 * objc-lang.c (find_imps): Make argument 'method' const.
1966 Return const.
1967 * objc-lang.h (find_imps): Likewise.
1968
19692013-10-01 Keith Seitz <keiths@redhat.com>
1970
1971 * completer.c (skip_quoted_chars): Make all arguments const.
1972 Return const.
1973 (skip_quoted): Likewise.
1974 * completer.h (skip_quoted_chars): Likewise.
1975 (skip_quoted): Likewise.
1976 * defs.h (skip_quoted): Remove duplicate declaration.
1977 * jv-exp.y: Include completer.h.
1978 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1979 * p-exp.y: Include completer.h.
1980
19812013-10-01 Keith Seitz <keiths@redhat.com>
1982
1983 * c-exp.y (parse_number): Make first argument const.
1984 Make a copy of the input to manipulate.
1985 (c_parse_escape): Make first argument const.
1986 Make local variable 'tokptr' const.
1987 (parse_string_or_char): Make first two arguments const.
1988 (macro_original_text): Make const.
1989 (lex_one_token): Make local variable 'tokstart' const.
1990 Likewise for local variables named 'p'.
1991 Cast away const for struct stoken (temporary).
1992 * c-lang.h (c_parse_escpae): Make first argument const.
1993 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1994 const.
1995 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1996 var_string case.
1997 * f-exp.y (parse_number): Make first argument const.
1998 (match_string_literal): Make local variable 'tokstart'
1999 const.
2000 (yylex): Make local variable 'p' const.
2001 Cast away const for struct stoken (temporary).
2002 * go-exp.y (parse_number): Make first argument const.
2003 (parse_string_or_char): Likewise.
2004 Make local variable 'tokstart' const.
2005 (lex_one_token): Likewise for numerous locals called 'p'.
2006 Cast away const for struct stoken (temporary).
2007 * jv-exp.y (parse_number): Make first argument const.
2008 Make local variables 'tokstart' and 'tokptr' const.
2009 Cast away const for call to skip_quoted (temporary).
2010 (yylex): Make local variable 'p' const.
2011 Cast away const for struct stoken (temporary).
2012 * m2-exp.y (parse_number): Make local variable 'p' const.
2013 (yylex): Likewise for 'tokstart'.
2014 Cast away const for struct stoken (temporary).
2015 Make local variable 'p' const.
2016 * macroexp.c (get_character_constant): Pass a const string
2017 to c_parse_escape.
2018 (get_string_literal): Likewise.
2019 (macro_expand_next): Make first argument const.
2020 Cast away const for init_shared_buffer.
2021 * macroexp.h (macro_expand_next): Make first argument const.
2022 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2023 Pass a const string to c_parse_escape.
2024 Make local variables 'p' and 'namestart' const.
2025 * parse.c (lexptr): Make const.
2026 (prev_lexptr): Likewise.
2027 (find_template_name_end): Return const.
2028 Make argument const, too.
2029 (parse_exp_in_context): Make first argument const.
2030 Remove the entire const_hack.
2031 (parse_exp_in_context_1): Make first argument const.
2032 * parser-defs.h (find_template_name_end): Return const.
2033 Make argument const, too.
2034 (lexptr): Make const.
2035 (prev_lexptr): Likewise.
2036 * utils.c (parse_escape): Make second argument const.
2037 * utils.h (parse_escape): Likewise.
2038
20392013-10-01 Keith Seitz <keiths@redhat.com>
2040
2041 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2042 is now const.
2043 (block_lookup): Make 'raw_name' and 'name' const.
2044 * ada-lex.l (processString): Update for struct stoken.ptr.
2045 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2046 (operator_stoken): Likewise.
2047 (lex_one_token): Remove temporary cast to char * for
2048 'yylval.sval.ptr'.
2049 * f-exp.y (yylex): Likewise.
2050 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2051 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2052 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2053 'yylval.sval.ptr'.
2054 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2055 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2056 * linespec.c (struct ls_parser): Make 'stream' const.
2057 (find_parameter_list_end): Make argument 'input' and local
2058 variable 'p' const.
2059 (linespec_lexer_lex_string): Make local variables 'start' and
2060 'p' const.
2061 Use skip_spaces_const instead of skip_spaces.
2062 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2063 const.
2064 (parse_linespec): Temporarily cast 'argptr' to const for
2065 'parser->lexer.stream'.
2066 * m2-exp.y (yylex): Remove temporary cast to char * for
2067 'yylval.sval.ptr'.
2068 * objc-lang.c (add_msglist): Make local variable 'p' const.
2069 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2070 (exp : STRING): Make 'sp' const.
2071 (parse_number): Make argument 'p' const.
2072 * parser-defs.h (struct stoken): Make 'ptr' const.
2073
193a8eac
DE
20742013-10-01 Doug Evans <dje@google.com>
2075
2076 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2077
2213e2be
YQ
20782013-10-01 Yao Qi <yao@codesourcery.com>
2079
2080 * varobj.c (c_value_of_root): Remove declaration.
2081 (cplus_value_of_root, java_value_of_root): Likewise.
2082 (ada_value_of_root): Likewise.
2083 (struct language_specific) <value_of_root>: Remove.
2084 (languages): Update initialization.
2085 (check_scope): Move earlier.
2086 (c_value_of_root): Move earlier and rename to ...
2087 (value_of_root_1): ... this.
2088 (value_of_root): Caller update.
2089 (cplus_value_of_root, java_value_of_root): Remove.
2090 (ada_value_of_root): Remove.
2091
c573f273
YQ
20922013-10-01 Yao Qi <yao@codesourcery.com>
2093
2094 * varobj.c (varobj_format_string): Remove "unknown".
2095 (languages): Remove the first element.
2096 * varobj.h (enum varobj_languages): Remove vlang_c.
2097
56250258
YQ
20982013-10-01 Yao Qi <yao@codesourcery.com>
2099
2100 * varobj.c (struct language_specific) <language>: Remove.
2101 (languages): Update the initialization.
2102
29f9ebfa
YQ
21032013-10-01 Yao Qi <yao@codesourcery.com>
2104
2105 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2106 "solib-target.h". Include "windows-tdep.h".
2107 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2108 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2109 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2110 windows-tdep.o to gdb_target_obs.
2111
64870a42
YQ
21122013-10-01 Yao Qi <yao@codesourcery.com>
2113
2114 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2115 "solib-target.h".
2116 (amd64_windows_init_abi): Don't call set_solib_ops and
2117 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2118 windows_init_abi instead.
2119 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2120 "solib-target.h".
2121 (i386_cygwin_init_abi): Don't call set_solib_ops,
2122 set_gdbarch_has_dos_based_file_system and
2123 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2124 windows_init_abi instead.
2125 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2126 (windows_init_abi): New function.
2127 (windows_iterate_over_objfiles_in_search_order): Make it
2128 static.
2129 * windows-tdep.h (windows_init_abi): Declare.
2130 (windows_iterate_over_objfiles_in_search_order): Remove
2131 declaration.
2132
0aebdefa
JB
21332013-10-01 Jerome Guitton <guitton@adacore.com>
2134
2135 Checked in by Joel Brobecker <brobecker@adacore.com>
2136 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2137 incomplete dictionnary instead of None in case of missing
2138 environment variables.
2139 (elinos_init): in case of an incomplete environment, best
2140 effort to load system libraries instead of abort.
2141
1c8e84b0
JB
21422013-10-01 Joel Brobecker <brobecker@adacore.com>
2143
2144 * ada-lang.c (ada_has_this_exception_support): Ignore
2145 mst_solib_trampoline minimal symbols.
2146
61d82a0d
TG
21472013-09-30 Tristan Gingold <gingold@adacore.com>
2148
2149 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2150 hardware watchpoint.
2151 (i386_darwin_dr_set): Support 32 and 64 bit states.
2152 (i386_darwin_dr_get): Likewise.
2153 (i386_darwin_dr_set_control): Make static.
2154 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2155 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2156
dfd4cc63
LM
21572013-09-30 Luis Machado <lgustavo@codesourcery.com>
2158
2159 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2160 Replace TIDGET with ptid_get_lwp.
2161 Replace GET_LWP with ptid_get_lwp.
2162 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2163 Replace BUILD_THREAD with ptid_build.
2164 Replace BUILD_LWP with ptid_build.
2165 Replace PIDGET with ptid_get_pid.
2166 Replace TIDGET with ptid_get_lwp.
2167 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2168 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2169 Replace TIDGET with ptid_get_lwp.
2170 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2171 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2172 Replace TIDGET with ptid_get_lwp.
2173 Replace GET_LWP with ptid_get_lwp.
2174 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2175 * auxv.c: Likewise.
2176 * breakpoint.c: Likewise.
2177 * common/ptid.c (ptid_is_pid): Condense check for
2178 null_ptid and minus_one_ptid.
2179 (ptid_lwp_p): New function.
2180 (ptid_tid_p): New function.
2181 * common/ptid.h: Update comments for accessors.
2182 (ptid_lwp_p): New prototype.
2183 (ptid_tid_p): New prototype.
2184 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2185 * gcore.c: Replace PIDGET with ptid_get_pid.
2186 * gdbthread.h: Likewise.
2187 * gnu-nat.c: Likewise.
2188 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2189 Replace TIDGET with ptid_get_lwp.
2190 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2191 * hppanbsd-nat.c: Likewise.
2192 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2193 Replace TIDGET with ptid_get_lwp.
2194 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2195 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2196 * infcmd.c: Likewise.
2197 * inferior.h: Likewise.
2198 * inflow.c: Likewise.
2199 * infrun.c: Likewise.
2200 * linux-fork.c: Likewise.
2201 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2202 Replace GET_PID with ptid_get_pid.
2203 Replace is_lwp with ptid_lwp_p.
2204 Replace GET_LWP with ptid_get_lwp.
2205 Replace BUILD_LWP with ptid_build.
2206
5b4e221c
MF
22072013-09-28 Mike Frysinger <vapier@gentoo.org>
2208
2209 * common/linux-btrace.c: Move sys/syscall.h out of the
2210 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2211 Also check for SYS_perf_event_open before attempting to buid.
2212
57d63ce2
DE
22132013-09-27 Doug Evans <dje@google.com>
2214
19ac8c2e
DE
2215 * dwarf2read.c (dwarf2_section_info): Add comment.
2216 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2217 All uses updated.
2218 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2219 (dwarf2_read_section): Delete unused local "header". Add section
2220 name to error message.
2221 (create_dwo_in_dwp): Tweak comment.
2222 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2223
a32a8923
DE
2224 * dwarf2read.c (die_reader_specs): Tweak comment.
2225 (get_section_bfd_owner, get_section_bfd_section): New functions.
2226 (get_section_name, get_section_file_name): New functions.
2227 (get_section_id, get_section_flags): New functions.
2228 (*): Use new functions to access section fields.
2229
57d63ce2
DE
2230 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2231 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2232 arg "htab". All callers updated.
2233 (create_debug_types_hash_table): Remove redundant copy of
2234 abbrev_section.
2235 (create_dwo_in_dwp): Tweak comments.
2236 (read_str_index): Tweak comment. Record dwarf form name in static
2237 local.
2238
3736004f
PA
22392013-09-27 Pedro Alves <palves@redhat.com>
2240
2241 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2242 (remote_filename_p): Add comment.
2243 * remote.c (remote_filename_p): Adjust to use
2244 REMOTE_SYSROOT_PREFIX.
2245 * solib.c (solib_find): When deciding whether we need to add a
2246 directory separator, check whether the sysroot is "remote:"
2247 instead of checking whether the patch has a drive spec. Add
2248 comments.
2249
5b5596ff
PA
22502013-09-27 Pedro Alves <palves@redhat.com>
2251
2252 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2253 Delete fields.
2254 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2255 directly.
2256
b5eef7aa
JK
22572013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2258
2259 Fix set debug frame output.
2260 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2261 SENTINEL_FRAME entry lower to match enum frame_type order.
2262
5b856f36
PM
22632013-09-26 Pierre Muller <muller@sourceware.org>
2264
2265 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2266 AMD64_R15_REGNUM when a register index is expected.
2267 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2268 Substitute in array.
2269 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2270 (amd64_push_arguments): Substitute in integer_regnum array.
2271
ade7ed9e
DE
22722013-09-25 Doug Evans <dje@google.com>
2273
d3e81981
DE
2274 * objfiles.c (allocate_objfile): Move comment to better place.
2275
8fb8eb5c
DE
2276 New option "set debug symfile on".
2277 * NEWS: Mention "set debug symfile".
2278 * Makefile.in (SFILES): Add symfile-debug.c.
2279 (COMMON_OBS): Add symfile-debug.o.
2280 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2281 objfile's symbol functions.
2282 * objfiles.h (objfile_set_sym_fns): Declare.
2283 * symfile-debug.c: New file.
2284 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2285 objfile's symbol functions.
2286 (reread_symbols): Ditto.
2287
c256e171
DE
2288 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2289 All uses updated.
2290 (add_symtab_fns): Update prototype.
2291 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2292 (registered_sym_fns): ... this.
2293 (symtab_fns): Update.
2294 (add_symtab_fns): New arg "flavour". All callers updated.
2295 (find_sym_fns): Rewrite to use new sym_fns registry.
2296
f56ce883
DE
2297 * symfile.h (struct sym_fns): Add "objfile" argument to
2298 sym_read_linetable. All uses updated.
2299
20c681d1
DE
2300 * symtab.c (domain_name, search_domain_name): New functions.
2301 * symtab.h (domain_name, search_domain_name): Declare.
2302
ade7ed9e
DE
2303 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2304 map_matching_symbols so objfile is first. All uses updated.
2305 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2306 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2307
7d760051
UW
23082013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2309
2310 PR shlibs/8882
2311 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2312 link map entries.
2313
020f7036
DE
23142013-09-24 Doug Evans <dje@google.com>
2315
2316 * objfiles.c (free_objfile): Move comment.
2317
598402f0
JB
23182013-09-24 Joel Brobecker <brobecker@adacore.com>
2319
2320 * ada-exp.y (string_to_operator): Delete.
2321 (dummy_string_to_ada_operator): Delete.
2322
bf4d6c1c
JB
23232013-09-24 Joel Brobecker <brobecker@adacore.com>
2324
2325 Revert:
2326 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2327 amd64-tdep.c.
2328 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2329 call_dummy_integer_regs, and classify.
2330 * amd64-tdep.h (amd64_classify): Add declaration.
2331 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2332 (amd64_reg_class): Delete, moved to i386-tdep.h.
2333 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2334 Replace call to amd64_classify by call to tdep->classify.
2335 (amd64_push_arguments): Get the list of registers to use for
2336 passing integer parameters from the gdbarch tdep structure,
2337 rather than using a hardcoded one. Replace calls to amd64_classify
2338 by calls to tdep->classify.
2339 (amd64_push_dummy_call): Get the register number used for
2340 the "hidden" argument from tdep->call_dummy_integer_regs.
2341 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2342 and tdep->call_dummy_integer_regs. Set tdep->classify.
2343
849e9755
JB
23442013-09-24 Joel Brobecker <brobecker@adacore.com>
2345
2346 Revert:
2347 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2348 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2349 where tdep->memory_args_by_pointer is non-zero.
2350
c1459fd6
JB
23512013-09-24 Joel Brobecker <brobecker@adacore.com>
2352
2353 Revert:
2354 * i386-tdep.h (struct gdbarch_tdep): Add new field
2355 integer_param_regs_saved_in_caller_frame.
2356 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2357 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2358
20c2e3e0
JB
23592013-09-24 Joel Brobecker <brobecker@adacore.com>
2360
874440b8 2361 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
2362 (amd64_windows_classify): Delete.
2363 (amd64_windows_passed_by_integer_register)
2364 (amd64_windows_passed_by_xmm_register)
2365 (amd64_windows_passed_by_pointer)
2366 (amd64_windows_adjust_args_passed_by_pointer)
2367 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2368 (amd64_windows_push_dummy_call): New functions.
2369 (amd64_windows_init_abi): Remove setting of
2370 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2371 tdep->classify, tdep->memory_args_by_pointer and
2372 tdep->integer_param_regs_saved_in_caller_frame.
2373 Add call to set_gdbarch_push_dummy_call.
2374
82bf32bc
JK
23752013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2376
2377 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2378 objfile->original_name.
2379
24ba069a
JK
23802013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2381
2382 Pass down original filename for objfile.
2383 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2384 * elfread.c (elf_symfile_read): Likewise.
2385 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2386 longer set ORIGINAL_NAME.
2387 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2388 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2389 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2390 symbol_file_add_from_bfd call.
2391 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2392 (macho_check_dsym): Add parameter filenamep. Change function comment.
2393 Set *filenamep.
2394 (macho_symfile_read): New variable dsym_filename. Update
2395 macho_check_dsym call. Use it for symbol_file_add_separate.
2396 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2397 it. Use it for objfile->original_name.
2398 (objfile_name): Return OBFD's filename, if available.
2399 * objfiles.h (allocate_objfile): Add new parameter name.
2400 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2401 * symfile-mem.c (symbol_file_add_from_memory): Update
2402 symbol_file_add_from_bfd call.
2403 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2404 comment for it.
2405 (symbol_file_add_with_addrs): New parameter name, add function comment
2406 for it. Remove variable name. Update allocate_objfile call.
2407 (symbol_file_add_separate): New parameter name, add function comment
2408 for it. Update symbol_file_add_with_addrs call.
2409 (symbol_file_add_from_bfd): New parameter name. Update
2410 symbol_file_add_with_addrs call.
2411 (symbol_file_add): Update symbol_file_add_from_bfd call.
2412 (reread_symbols): New variable original_name. Save
2413 objfile->original_name by it.
2414 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2415 second parameter.
2416
4262abfb
JK
24172013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2418
2419 Code cleanup: Add objfile_name accessor function.
2420 * ada-lang.c (is_known_support_routine): Use objfile_name.
2421 * auto-load.c (source_gdb_script_for_objfile)
2422 (auto_load_objfile_script): Likewise.
2423 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2424 * dbxread.c (dbx_symfile_read): Likewise.
2425 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2426 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2427 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2428 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2429 (lookup_dwp_signatured_type, lookup_dwo_unit)
2430 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2431 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2432 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2433 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2434 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2435 (read_subrange_type, load_partial_dies, read_partial_die)
2436 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2437 (die_containing_type, build_error_marker_type, lookup_die_type)
2438 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2439 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2440 (get_DW_AT_signature_type, write_psymtabs_to_index)
2441 (save_gdb_index_command): Likewise.
2442 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2443 Likewise.
2444 * expprint.c (dump_subexp_body_standard): Likewise.
2445 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2446 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2447 original_name.
2448 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2449 obj_name, use objfile_name for it, use the variable.
2450 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2451 Use objfile_name.
2452 * machoread.c (macho_symtab_read, macho_check_dsym)
2453 (macho_symfile_relocate): Likewise.
2454 * maint.c (maintenance_translate_address): Likewise.
2455 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2456 * minsyms.c (install_minimal_symbols): Likewise.
2457 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2458 original_name.
2459 (filter_overlapping_sections): Use objfile_name.
2460 (objfile_name): New function.
2461 * objfiles.h (struct objfile): Rename field name to original_name.
2462 (objfile_name): New prototype.
2463 * printcmd.c (sym_info, address_info): Use objfile_name.
2464 * probe.c (parse_probes, collect_probes, compare_probes)
2465 (info_probes_for_ops): Likewise.
2466 * progspace.c (clone_program_space): Likewise.
2467 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2468 (maintenance_info_psymtabs): Likewise.
2469 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2470 (source_section_scripts): Likewise.
2471 * python/py-objfile.c (objfpy_get_filename): Likewise.
2472 * python/py-progspace.c (pspy_get_filename): Likewise.
2473 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2474 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2475 * solib.c (solib_read_symbols): Likewise.
2476 * stabsread.c (scan_file_globals): Likewise.
2477 * stap-probe.c (handle_stap_probe): Likewise.
2478 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2479 (find_separate_debug_file_by_debuglink): Likewise.
2480 (reread_symbols): Likewise. Use the objfile field name renamed to
2481 original_name.
2482 (allocate_symtab): Use objfile_name.
2483 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2484 (dump_objfile, dump_msymbols, dump_symtab_1)
2485 (maintenance_print_msymbols, maintenance_print_objfiles)
2486 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2487 * target.c (target_translate_tls_address, target_info): Likewise.
2488 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2489 objfile_name.
2490
4721dc18
JK
24912013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 Code cleanup.
2494 * probe.c (parse_probes): Rename variable objfile_name to
2495 objfile_namestr.
2496
a61d6db8
JK
24972013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2498
2499 Remove solib-sunos.c.
2500 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2501 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2502 * objfiles.c (rt_common_objfile): Remove.
2503 (free_objfile): Remove rt_common_objfile comparison.
2504 * objfiles.h (rt_common_objfile): Remove.
2505 * solib-sunos.c: Remove.
2506 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2507
2659903b
JK
25082013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2509
2510 Remove a.out NetBSD and OpenBSD hosts.
2511 * NEWS (Removed native configurations): New.
2512 * config/arm/nbsdaout.mh: Remove.
2513 * config/i386/nbsdaout.mh: Remove.
2514 * config/i386/obsdaout.mh: Remove.
2515 * config/m68k/nbsdaout.mh: Remove.
2516 * config/sparc/nbsdaout.mh: Remove.
2517 * config/vax/nbsdaout.mh: Remove.
2518 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2519 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2520 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2521 error.
2522 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2523 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2524 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2525
f60e2d5c
TT
25262013-09-23 Tom Tromey <tromey@redhat.com>
2527
2528 * linespec.c (struct minsym_and_objfile): Remove.
2529 (minsym_and_objfile_d): Remove.
2530 (struct linespec, struct collect_info, linespec_parse_basic)
2531 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2532 (compare_msymbols, find_method, find_function_symbols)
2533 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2534 (add_minsym, search_minsyms_for_name): Update.
2535
d3eaaf66
AB
25362013-09-23 Andrew Burgess <aburgess@broadcom.com>
2537
2538 * regcache.c: Add include of valprint.h.
2539 (dump_endian_bytes): Delete.
2540 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2541
2cc762b5
AB
25422013-09-23 Andrew Burgess <aburgess@broadcom.com>
2543
2544 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2545
96181529
PA
25462013-09-19 Pedro Alves <palves@redhat.com>
2547
2548 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2549 breakpoints.
2550
9b3f3ee6
TS
25512013-09-19 Pedro Alves <palves@redhat.com>
2552 Thomas Schwinge <thomas@codesourcery.com>
2553 Yue Lu <hacklu.newborn@gmail.com>
2554
2555 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2556 Take a gdb_byte pointer instead of a char pointer.
2557
2558 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2559 gnu_xfer_partial helper.
2560 (gnu_xfer_partial): New function.
2561 (gnu_target): Don't install a deprecated_xfer_memory hook.
2562 Install a to_xfer_partial hook.
2563
69150c3d
JK
25642013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2565
2566 Constification.
2567 * main.c (captured_main): Replace catch_command_errors by
2568 catch_command_errors_const. Twice.
2569 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2570 (symbol_file_add): Make name parameter const.
2571 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2572 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2573 variable name. Change their usage accordingly.
2574 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2575 const.
2576 (symbol_file_add_main): Make args parameter const.
2577
086850b2
UW
25782013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2579 Ulrich Weigand <uweigand@de.ibm.com>
2580
2581 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2582 of c_value member.
2583 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2584
ca08a94c 25852013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 2586 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
2587
2588 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2589 (gnu_create_inferior)
2590 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2591 (set_sig_thread_cmd): Use the lwpid field of ptids to
2592 store/extract thread ids instead of the tid field.
2593 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2594
e4c6a2c4
AB
25952013-09-18 Andrew Burgess <aburgess@broadcom.com>
2596
2597 * infcmd.c (default_print_one_register_info): Add detection of
2598 optimized out values.
2599 (default_print_registers_info): Switch to using
2600 get_frame_register_value.
2601
58c48e72
MM
26022013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2603
2604 * infrun.c (handle_inferior_event): Check if we know the
2605 function start address before setting a resume breakpoint.
2606
c8d37639
PA
26072013-09-18 Pedro Alves <palves@redhat.com>
2608
2609 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2610 minus_one_ptid instead of looking at the ptid's tid field and
2611 comparing that to -1.
2612
71926e28
AB
26132013-09-18 Andrew Burgess <aburgess@broadcom.com>
2614
2615 * main.h (get_gdb_program_name): Remove extra whitespace.
2616
c88a1531
AB
26172013-09-18 Andrew Burgess <aburgess@broadcom.com>
2618
2619 * main.h (get_gdb_program_name): Add declaration.
2620 * main.c (get_gdb_program_name): Add definition.
2621
4390d890
DE
26222013-09-17 Doug Evans <dje@google.com>
2623
2624 * dwarf2read.c: Move definitions of complaint functions to after
2625 forward declarations of local functions.
2626
49fa26b0
PA
26272013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2628 Pedro Alves <palves@redhat.com>
2629
2630 PR gdb/11568
2631 * breakpoint.c (remove_threaded_breakpoints): New function.
2632 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2633 as thread_exit observer.
2634
08d72866
PA
26352013-09-17 Pedro Alves <palves@redhat.com>
2636
2637 PR gdb/15911
2638 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2639 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2640 * corelow.c (core_open):
2641 * frame.h (print_stack_frame, print_frame_info): New
2642 'set_current_sal' parameter.
2643 * infcmd.c (finish_command, kill_command): Adjust call to
2644 print_stack_frame.
2645 * inferior.c (inferior_command): Likewise.
2646 * infrun.c (normal_stop): Likewise.
2647 * linux-fork.c (linux_fork_context): Likewise.
2648 * record-full.c (record_full_goto_entry, record_full_restore):
2649 Likewise.
2650 * remote-mips.c (common_open): Likewise.
2651 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2652 Use it.
2653 (print_frame_info): New 'set_current_sal' parameter. Set the last
2654 displayed sal depending on the new paremeter instead of looking at
2655 print_what.
2656 (backtrace_command_1, select_and_print_frame, frame_command)
2657 (current_frame_command, up_command, down_command): Adjust call to
2658 print_stack_frame.
2659 * thread.c (print_thread_info, restore_selected_frame)
2660 (do_captured_thread_select): Adjust call to print_stack_frame.
2661 * tracepoint.c (tfind_1): Likewise.
2662 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2663 (mi_cmd_stack_info_frame): Likewise.
2664 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2665 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2666
6bc305f5
SDJ
26672013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2668
2669 * value.c (isvoid_internal_fn): Replace "parameter" with
2670 "argument".
2671
0a7cfe2c
SS
26722013-09-16 Stan Shebs <stan@codesourcery.com>
2673
2674 * README: Update references to writing code for GDB.
2675 * configure.ac (build_warnings): Remove obsolete comment.
2676 * configure: Regenerate.
2677 * gdbarch.sh: Remove references to gdbint.texinfo.
2678 * gdbarch.h: Regenerate.
2679 * gdbtypes.c (objfile_type): Remove comments referencing internals
2680 manual and D10V.
2681
a280dbd1
SDJ
26822013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2683
2684 * NEWS: Mention new convenience function $_isvoid.
2685 * value.c (isvoid_internal_fn): New function.
2686 (_initialize_values): Add new convenience function $_isvoid.
2687
04a83fee
PM
26882013-09-16 Pierre Muller <muller@sourceware.org>
2689
2690 * arm-linux-tdep.c: Add "elf/common.h" header.
2691 Remove AT_HWCAP macro definintion as it is provided in
2692 added include file.
2693 * s390-tdep.c: Remove system header <elf.h>
2694 Add "elf/common.h" header for AT_HWCAP definition.
2695 (s390_core_read_description): Use correct CORE_ADDR
2696 for hwcap local variable used as third parameter
2697 of function target_auxv_search.
2698
88505fac
PM
26992013-09-14 Pierre Muller <muller@sourceware.org>
2700 Tom Tromey <tromey@redhat.com>
2701 Pedro Alves <palves@redhat.com>
2702
2703 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2704 mode if operating system doesn't know O_CLOEXEC.
2705
d3846e71
JK
27062013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2707
2708 Code cleanup.
2709 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2710 inner block.
2711
4ac33720
UW
27122013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2713
2714 * NEWS: Mention TDB support.
2715 * features/s390-tdb.xml: New file.
2716 * features/s390-te-linux64.xml: New file.
2717 * features/s390x-te-linux64.xml: New file.
2718 * features/Makefile (WHICH): Add new tdescs above.
2719 (s390-te-linux64-expedite): Set.
2720 (s390x-te-linux64-expedite): Set.
2721 * features/s390-te-linux64.c: New file (generated).
2722 * features/s390x-te-linux64.c: New file (generated).
2723 * regformats/s390-te-linux64.dat: New file (generated).
2724 * regformats/s390x-te-linux64.dat: New file (generated).
2725 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2726 (HWCAP_S390_TE): Likewise.
2727 (S390_TDB_DWORD0_REGNUM): Likewise.
2728 (S390_TDB_DWORD0_REGNUM): Likewise.
2729 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2730 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2731 (S390_TDB_ATIA_REGNUM): Likewise.
2732 (S390_TDB_R0_REGNUM): Likewise.
2733 (S390_TDB_R1_REGNUM): Likewise.
2734 (S390_TDB_R2_REGNUM): Likewise.
2735 (S390_TDB_R3_REGNUM): Likewise.
2736 (S390_TDB_R4_REGNUM): Likewise.
2737 (S390_TDB_R5_REGNUM): Likewise.
2738 (S390_TDB_R6_REGNUM): Likewise.
2739 (S390_TDB_R7_REGNUM): Likewise.
2740 (S390_TDB_R8_REGNUM): Likewise.
2741 (S390_TDB_R9_REGNUM): Likewise.
2742 (S390_TDB_R10_REGNUM): Likewise.
2743 (S390_TDB_R11_REGNUM): Likewise.
2744 (S390_TDB_R12_REGNUM): Likewise.
2745 (S390_TDB_R13_REGNUM): Likewise.
2746 (S390_TDB_R14_REGNUM): Likewise.
2747 (S390_TDB_R15_REGNUM): Likewise.
2748 (S390_NUM_REGS): Increase.
2749 (S390_IS_TDBREGSET_REGNUM): New macro.
2750 (s390_regmap_tdb): Declare.
2751 (s390_sizeof_tdbregset): Define.
2752 (tdesc_s390_te_linux64): Declare.
2753 (tdesc_s390x_te_linux64): Likewise.
2754 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2755 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2756 (s390_regmap_tdb): New regmap.
2757 (s390_supply_tdb_regset): New function.
2758 (s390_tdb_regset): New regset.
2759 (s390_linux64v2_regset_sections): Add TDB regset to list.
2760 (s390x_linux64v2_regset_sections): Likewise.
2761 (s390_regset_from_core_section): Recognize TDB core note section.
2762 (s390_core_read_description): If HWCAP indicates TE support,
2763 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2764 (s390_gdbarch_init): Handle TDB regset.
2765 (_initialize_s390_tdep): Initialize new tdescs.
2766 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2767 (have_regset_tdb): New variable.
2768 (s390_native_supply): Support register invalidation.
2769 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2770 (check_regset): Treat ENODATA as "regset exists".
2771 (s390_linux_fetch_inferior_registers): Add TDB.
2772 (s390_read_description): Check for TDB existence and select
2773 appropriate tdesc.
2774 * gdbserver/Makefile.in (clean): Add removal of new makefile
2775 targets.
2776 (s390-te-linux64.c): New makefile target.
2777 (s390x-te-linux64.c): Likewise.
2778 * gdbserver/configure.srv (srv_regobj): Append new objects
2779 s390-te-linux64.o and s390x-te-linux64.o.
2780 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2781 s390x-te-linux64.xml, and s390-tdb.xml.
2782 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2783 declaration.
2784 (tdesc_s390_te_linux64): Likewise.
2785 (init_registers_s390x_te_linux64): Likewise.
2786 (tdesc_s390x_te_linux64): Likewise.
2787 (s390_check_regset): Treat ENODATA as "regset exists".
2788 (s390_arch_setup): Add TDB regset support.
2789 (initialize_low_arch): Initialize registers for new tdescs.
2790
2ccd1468
UW
27912013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2792
2793 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2794 (S390_IS_FPREGSET_REGNUM): New macro.
2795 * s390-tdep.c (s390_dwarf_regmap): Make const.
2796 (regnum_is_gpr_full): New function for replacing repeated code.
2797 (s390_pseudo_register_name): Use it.
2798 (s390_pseudo_register_type): Likewise.
2799 (s390_pseudo_register_read): Likewise.
2800 (s390_pseudo_register_write): Likewise.
2801 (s390_unwind_pseudo_register): Likewise.
2802 (s390_regmap_gregset): New format for regmap.
2803 (s390x_regmap_gregset): Likewise.
2804 (s390_regmap_fpregset): Likewise.
2805 (s390_regmap_upper): Likewise.
2806 (s390_regmap_last_break): Likewise.
2807 (s390_regmap_system_call): Likewise.
2808 (s390_supply_regset): Adjust to new regmap format.
2809 (s390_collect_regset): Likewise.
2810 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2811 (s390_native_collect): Likewise.
2812 (supply_gregset): Likewise.
2813 (fill_gregset): Likewise.
2814 (supply_fpregset): Likewise.
2815 (fill_fpregset): Likewise.
2816 (fetch_regset): Likewise.
2817 (store_regset): Likewise.
2818 (s390_linux_fetch_inferior_registers): Likewise.
2819 (s390_linux_fetch_inferior_registers): Likewise.
2820
1aa4cd77
AP
28212013-09-12 Andrew Pinski <apinski@cavium.com>
2822
2823 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2824
d91fab15
UW
28252013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
2826
2827 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2828
5a5d8ead
AB
28292013-09-09 Andrew Burgess <aburgess@broadcom.com>
2830
2831 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2832
1385f66c
PA
28332013-09-06 Pedro Alves <palves@redhat.com>
2834
2835 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2836 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2837 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2838 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2839 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2840 gdb_stdlog.
2841
146ec4db
PA
28422013-09-06 Pedro Alves <palves@redhat.com>
2843
2844 * remote-sim.c (dump_mem): Constify buf parameter.
2845 gdbsim_xfer_inferior_memory): Rename to ...
2846 (gdbsim_xfer_memory): ... this. Adjust interface as
2847 target_xfer_partial helper.
2848 (gdbsim_xfer_partial): New function.
2849 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2850 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2851
fcde0081
PA
28522013-09-06 Pedro Alves <palves@redhat.com>
2853
2854 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2855 host_address_to_string, and send debug output to gdb_stdlog.
2856
749c8b38
RW
28572013-09-06 Ricard Wanderlof <ricardw@axis.com>
2858
2859 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2860 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2861 gdb_target_obs for cris target.
2862 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2863 (cris_gdbarch_init): Move calls to
2864 set_gdbarch_fetch_tls_load_module_address and
2865 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2866 Add call to gdbarch_init_osabi.
2867 * cris-linux-tdep.c: New file.
2868 * cris-tdep.h: New file.
2869
43df09d9
AB
28702013-09-06 Andrew Burgess <aburgess@broadcom.com>
2871
2872 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2873 to deprecated_init_ui_hook.
2874
4d09c5b4
AB
28752013-09-06 Andrew Burgess <aburgess@broadcom.com>
2876
2877 * cli/cli-interp.c (_initialize_cli_interp): Add a
2878 command_loop_proc to interp_procs.
2879 * event-top.c (cli_command_loop): Change signature to match
2880 interp_command_loop_ftype.
2881 * event-top.h (cli_command_loop): Same.
2882 * interps.c (interp_new): Require every interpreter to have a
2883 command_loop_proc.
2884 (current_interp_command_loop): Just call the command_loop_proc on
2885 the current interpreter.
2886 * tui/tui-interp.c (_initialize_tui_interp): Add a
2887 command_loop_proc to interp_procs.
2888
8eb3d7b6
RW
28892013-09-06 Ricard Wanderlof <ricardw@axis.com>
2890
2891 * cris-tdep.c (cris_gdbarch_init): Add call to
2892 get_gdbarch_fetch_tls_load_module_address.
2893
18b3c2f5
RW
28942013-09-06 Ricard Wanderlof <ricardw@axis.com>
2895
2896 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2897 (cris_elf_gregset_t): Rename from elf_gregset_t.
2898 (crisv32_elf_gregset_t): Adjust.
2899 (cris_supply_gregset, fetch_core_registers): Adjust.
2900
dc8636ef
RW
29012013-09-06 Ricard Wanderlof <ricardw@axis.com>
2902
2903 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2904
257e6d53
AB
29052013-09-05 Andrew Burgess <aburgess@broadcom.com>
2906
1581d8a7 2907 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2908 references in comments.
1581d8a7 2909 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2910 deprecated_command_loop_hook.
2911 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2912 setup.
1581d8a7 2913 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2914
7c33b57c
PA
29152013-09-05 Pedro Alves <palves@redhat.com>
2916
2917 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2918 local is now int instead of ULONGEST. Print it with %d
2919 instead of paddress.
2920
9f8edbd5
TG
29212013-09-05 Tristan Gingold <gingold@adacore.com>
2922
2923 * MAINTAINERS: Remove avr maintainership.
2924
d5b495b4
PA
29252013-09-05 Pedro Alves <palves@redhat.com>
2926
2927 * findvar.c (value_of_register): Rework in terms of
2928 value_of_register_lazy.
2929
40b91786
MB
29302013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2931
2932 * symfile.c (add_symbol_file_command): Remove trailing
2933 whitespaces and blank line after comment.
2934
6eed1678
PA
29352013-09-05 Pedro Alves <palves@redhat.com>
2936
2937 * tui/tui-regs.c (tui_register_format): Don't look at the
2938 register's name here. Return string representing register
2939 value instead of storing it in the data element.
2940 (tui_get_register): Compare register string representations
2941 instead of register value states and contents.
2942
8eb6bda2
PA
29432013-09-05 Pedro Alves <palves@redhat.com>
2944
2945 PR tui/15933
2946 * tui/tui-regs.c (tui_show_registers): Show registers of the
2947 selected frame, not the current frame.
2948
48b1f08c
RW
29492013-09-05 Ricard Wanderlof <ricardw@axis.com>
2950
2951 * MAINTAINERS (Write After Approval): Add myself to the list.
2952
89e63ee4
DE
29532013-09-04 Doug Evans <dje@google.com>
2954
2955 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2956 (queue_and_load_dwo_tu): New function.
2957 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2958 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2959 Make dependent_cu optional.
2960 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2961 and an older .gdb_index is in use, queue and load all its TUs too.
2962
492c0ab7
JK
29632013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2964
2965 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2966 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2967 variable search_flags.
2968 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2969 (OPF_RETURN_REALPATH): ... here.
2970 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2971 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2972 call. Twice.
2973 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2974 openp call.
2975 * solib.c (solib_find): Likewise. Four times.
2976 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2977 in the function comment and for the realpath_fptr variable.
2978 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2979 (find_and_open_source): Likewise. Twice.
2980 * symfile.c (symfile_bfd_open): Likewise, also twice.
2981
23a44de8
DE
29822013-09-04 Doug Evans <dje@google.com>
2983
2984 * progspace.c (save_current_space_and_thread): Remove unnecessary
2985 call to save_current_inferior.
2986
47061676
AB
29872013-09-04 Andrew Burgess <aburgess@broadcom.com>
2988
2989 * sh64-tdep.c (sh64_do_register): Return after printing message
2990 about unavailable register contents.
2991
41dc8db8
MB
29922013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2993 Pedro Alves <palves@redhat.com>
2994
2995 * symfile.c (add_symbol_file_command): Error out on unknown
ef1bc9e7
AM
2996 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2997 options and collapse into single conditional branch.
41dc8db8 2998
07107ca6
LM
29992013-09-03 Luis Machado <lgustavo@codesourcery.com>
3000
a7ea61cf 3001 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
3002 detach_fork.
3003 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3004 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3005 * inferior.h (detach_fork): Remove.
3006 * infrun.c (detach_fork): Adjust comment and make it
3007 static.
3008 (follow_fork): Pass detach_fork parameter to
3009 target_follow_fork.
3010 * linux-nat.c (linux_child_follow_fork): New parameter
3011 detach_fork.
3012 * target.c (target_follow_fork): New parameter detach_fork.
3013 Pass detach_fork as parameter and print its value.
3014 * target.h (struct target_ops) <to_follow_fork>: New int
3015 parameter.
3016 (target_follow_fork): New parameter detach_fork.
3017
3bec2768
JB
30182013-09-03 Joel Brobecker <brobecker@adacore.com>
3019
3020 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3021 Replace sec->bfd by sec->the_bfd_section->owner.
3022
c01cbb3d
YQ
30232013-09-03 Yao Qi <yao@codesourcery.com>
3024
3025 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3026 from linux_has_shared_address_space.
3027 (linux_has_shared_address_space): Call linux_is_uclinux.
3028 * linux-tdep.h (linux_is_uclinux): Declare.
3029 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3030 linux_is_uclinux.
3031
7b00db47
YQ
30322013-09-03 Yao Qi <yao@codesourcery.com>
3033
3034 * config/djgpp/fnchange.lst: Remove entry of
3035 i386-interix-nat.c and i386-interix-tdep.c.
3036 * configure.ac: Remove '*-*-interix*'.
3037 * configure: Re-generated.
3038 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3039 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3040 obsolete comments.
3041 * osabi.c (gdb_osabi_names): Remove "Interix".
3042
0f9741f2
YQ
30432013-09-03 Yao Qi <yao@codesourcery.com>
3044
3045 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3046
1e038f67
MM
30472013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3048
3049 * record.h (record_print_flag) <record_print_src_line,
3050 record_print_insn_range>: Rename into ...
3051 (record_print_flag) <record_print_src_line,
3052 record_print_insn_range>: ... this. Update all users.
3053
9e52adf9
PM
30542013-09-02 Pierre Muller <muller@sourceware.org>
3055
3056 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3057 error code.
3058
a2388568
PM
30592013-09-02 Pierre Muller <muller@sourceware.org>
3060
3061 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3062 by use of plongest function.
3063
9058cc3a
TG
30642013-09-02 Tristan Gingold <gingold@adacore.com>
3065
3066 * NEWS: Add entry mentioning support for native Windows x64
3067 SEH data.
3068
3069 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3070 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3071 (struct amd64_windows_frame_cache): New struct.
3072 (amd64_windows_w2gdb_regnum): New global.
3073 (pc_in_range, amd64_windows_frame_decode_epilogue)
3074 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3075 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3076 (amd64_windows_frame_this_id): New functions.
3077 (amd64_windows_frame_unwind): New static global.
3078 (amd64_windows_skip_prologue): New function.
3079 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3080 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3081 with amd64_windows_skip_prologue.
3082
3161820b 30832013-08-30 Joel Brobecker <brobecker@adacore.com>
3084
3085 GDB 7.6.1 released.
3086
02457c76
PA
30872013-08-30 Pedro Alves <palves@redhat.com>
3088
3089 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3090 SRC_AND_LOC.
3091
e0162910
PA
30922013-08-30 Pedro Alves <palves@redhat.com>
3093
3094 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3095 warning text.
3096
6391ce51
PA
30972013-08-30 Pedro Alves <palves@redhat.com>
3098
3099 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3100 Adjust arguments to print_stack_frame.
3101
d1da0587
PA
31022013-08-30 Pedro Alves <palves@redhat.com>
3103
3104 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3105
adfd8245
PA
31062013-08-30 Pedro Alves <palves@redhat.com>
3107
3108 * frame.h (show_and_print_stack_frame): Delete declaration.
3109
96d9056e
PM
31102013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3111
3112 PR python/15461
96d9056e
PM
3113 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3114 (archpy_name): Check for valid architecture.
3115 (archpy_disassemble): Ditto.
3116
11cb8762
JB
31172013-08-29 Joel Brobecker <brobecker@adacore.com>
3118
3119 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3120 instead of "long long" in call to ptrace64.
3121
1af12a7d
AB
31222013-08-29 Andrew Burgess <aburgess@broadcom.com>
3123
3124 * mi/mi-interp.c (mi_command_loop): Change signature to match
3125 interp_command_loop_ftype.
3126 (mi1_command_loop): Remove.
3127 (mi2_command_loop): Remove.
3128 (mi3_command_loop): Remove.
3129 (mi_interpreter_resume): Remove setting of
3130 deprecated_command_loop_hook.
3131 (_initialize_mi_interp): Set mi_command_loop as the command loop
3132 callback.
3133
acc900c2
SA
31342013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3135
3136 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3137 value_type.
3138
548b762d
SA
31392013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3140
3141 * value.c (allocate_value_contents): Make static.
3142 * value.h (allocate_value_contents): Remove prototype.
3143
08039c9e
SA
31442013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3145
3146 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3147 of assembling value via allocate_value_lazy and attribute setter.
3148 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3149 assembling value via allocate_value_lazy and attribute setter.
3150 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3151 assembling value via allocate_value_lazy and attribute setter.
3152
314c7de9
SA
31532013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3154
3155 * value.c (value_from_contents_and_address): Replace allocate_value and
3156 memcpy with value_from_contents.
3157
8f28f522
PM
31582013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3159
3160 * python/py-framefilter.c (py_print_frame): Remove usage of
3161 PyString_AsString. Use python_string_to_host_string instead.
3162 Refactor function to work with a string as a new allocation
3163 instead of a pointer.
3164 (py_print_frame): Ditto.
3165 * python/lib/gdb/frames.py (return_list): Cain iterators together
3166 instead of adding them as a list.
3167 (_sort_list): Call return_list, and remove duplicate code.
3168 (execute_frame_filters): Convert iterator to a list with list().
3169 * python/lib/gdb/command/frame_filters.py
3170 (SetFrameFilterPriority._set_filter_priority): Convert priority
3171 attribute to an integer.
3172 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3173 wrapper function __next__.
3174 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3175 define as "str".
3176
8ee002df
PM
31772013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3178
3179 PR python/15752
8ee002df
PM
3180 * python/py-framefilter.c (apply_frame_filter): Check
3181 gdb_python_initialized. Exit if the Python frame-filter code
3182 cannot be initialized.
3183
af4c453a
PM
31842013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3185
3186 PR cli/15842
af4c453a
PM
3187 * top.c (print_gdb_version): Remove erroneous newline after help
3188 text.
3189
bf8793bb
YQ
31902013-08-29 Yao Qi <yao@codesourcery.com>
3191
3192 * varobj.c (install_dynamic_child): Remove trailing space.
3193 Add one blank line after variable declaration.
3194
1f0c4988
JK
31952013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3196
3197 PR gdb/15415
3198 * corefile.c (get_exec_file): Use exec_filename.
3199 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3200 * exec.c (exec_close): Free EXEC_FILENAME.
3201 (exec_file_attach): New variable canonical_pathname. Use
3202 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3203 EXEC_FILENAME.
3204 * exec.h (exec_filename): New.
3205 * inferior.c (print_inferior, inferior_command): Use
3206 PSPACE_EXEC_FILENAME.
3207 * mi/mi-main.c (print_one_inferior): Likewise.
3208 * progspace.c (clone_program_space, print_program_space): Likewise.
3209 * progspace.h (struct program_space): New field pspace_exec_filename.
3210 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3211 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3212
59ee9f94
WN
32132013-08-28 Will Newton <will.newton@linaro.org>
3214
3215 * common/linux-ptrace.c: Include stdint.h unconditionally.
3216
c8a2a419
JK
32172013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3218
3219 Code cleanup.
3220 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3221
ffa4ac95
YQ
32222013-08-28 Yao Qi <yao@codesourcery.com>
3223 Pedro Alves <palves@redhat.com>
3224
3225 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3226 instead of stdio_fileopen.
3227 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3228 .Call stderr_fileopen instead of stdio_fileopen.
3229 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3230 [__MINGW32__] (stderr_file_fputs): New function.
3231 (stderr_fileopen): New function.
3232 * ui-file.h (stderr_fileopen): Declare.
3233
69d751e3
DE
32342013-08-27 Doug Evans <dje@google.com>
3235
3236 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3237 (struct dwarf2_per_cu_data): Ditto.
3238 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3239 (process_imported_unit_die): Ditto.
3240 (follow_die_sig_1): Simplify assert.
3241
44f38867
PA
32422013-08-27 Pedro Alves <palves@redhat.com>
3243
3244 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3245 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3246 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3247 windows_xfer_memory directly.
3248 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3249
d28d46b5
PA
32502013-08-27 Pedro Alves <palves@redhat.com>
3251
3252 * darwin-nat.c (darwin_xfer_memory): Delete.
3253 (_initialize_darwin_inferior): Don't install a
3254 deprecated_xfer_memory method.
3255
6211c335
YQ
32562013-08-27 Pedro Alves <pedro@codesourcery.com>
3257 Yao Qi <yao@codesourcery.com>
3258
3259 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3260 (parse_no_frames_option): Remove.
3261 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3262 (mi_cmd_stack_list_args): Adjust.
3263 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3264 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3265 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3266 Caller update.
3267 (list_args_or_locals): New parameter 'skip_unavailable'.
3268 Handle it.
3269 * valprint.c (scalar_type_p): Rename to ...
3270 (val_print_scalar_type_p): ... this. Make extern.
3271 (val_print, value_check_printable): Adjust.
3272 * valprint.h (val_print_scalar_type_p): Declare.
3273 * value.c (value_entirely_unavailable): New function.
3274 * value.h (value_entirely_unavailable): Declare.
3275
3276 * NEWS: Mention the new option "--skip-unavailable" to MI
3277 commands '-stack-list-locals', '-stack-list-arguments' and
3278 '-stack-list-variables'.
3279
242f1fd7
YQ
32802013-08-27 Yao Qi <yao@codesourcery.com>
3281
3282 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3283 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3284 options.
3285 * mi/mi-getopt.c (mi_getopt): Remove.
3286 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3287 'error_on_unknown'.
3288 (mi_getopt): Call mi_getopt_1.
3289 (mi_getopt_silent): New.
3290 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3291
260b681b
DE
32922013-08-26 Doug Evans <dje@google.com>
3293
779bd270
DE
3294 PR symtab/15885
3295 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3296 .gdb_index is in use.
3297 * symfile.c (reread_symbols): Reset objfile->sf.
3298
52e260a3
DE
3299 * NEWS: Document "mt print objfiles" now takes optional regexp.
3300 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3301 regexp of objfiles to print.
3302 (_initialize_symmisc): Update doc string for "mt print objfiles".
3303
260b681b
DE
3304 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3305 missing debug info checks.
3306
a85c52f2
UW
33072013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3308 Ulrich Weigand <uweigand@de.ibm.com>
3309
3310 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3311 line tables generated by XLC compiled binaries.
3312
4f00dda3
DE
33132013-08-23 Doug Evans <dje@google.com>
3314
db68bbae
DE
3315 * symmisc.c (dump_symtab): Delete prototype.
3316 (dump_msymbols, dump_objfile): Ditto.
3317 (maintenance_info_symtabs): Mark as dont_repeat.
3318 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3319
4f00dda3
DE
3320 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3321 debugging printf to better location.
3322
23d577b0
PA
33232013-08-23 Pedro Alves <palves@redhat.com>
3324
3325 * target.c (target_read_live_memory): Change type of 'ret' local
3326 to LONGEST.
3327
00d84524
PA
33282013-08-23 Pedro Alves <palves@redhat.com>
3329
3330 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3331 (remote_read_bytes): Change return type to LONGEST, and adjust to
3332 return a target_xfer_error on error.
3333 (remote_xfer_memory): Delete.
3334 (remote_flash_write): Change type of 'ret' local to LONGEST.
3335 (remote_xfer_partial, remote_xfer_partial): Adjust.
3336 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3337
1ed3ee94
PM
33382013-08-23 Pierre Muller <muller@sourceware.org>
3339
3340 ARI fix: Push # directives to start of line.
3341 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3342
9eaabc75
MW
33432013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3344
3345 PR gdb/15501
3346 * breakpoint.c (enable_command, disable_command): Iterate over
3347 all specified breakpoint locations.
3348
101158d9
LM
33492013-08-22 Luis Machado <lgustavo@codesourcery.com>
3350
3351 * common/linux-ptrace.c (linux_fork_to_function): Push #
3352 directives to the start of the line.
3353 (linux_check_ptrace_features): Fix warning message to use
3354 the "_" markup.
3355
96d7229d
LM
33562013-08-22 Luis Machado <lgustavo@codesourcery.com>
3357
3358 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3359 nat/linux-waitpid.h.
3360 (linux-waitpid.o): New object file rule.
3361 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3362 (current_ptrace_options): Moved from linux-nat.c.
3363 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3364 parameters.
3365 (linux_fork_to_function): New function.
3366 (linux_grandchild_function): Likewise.
3367 (linux_child_function): Likewise.
3368 (linux_check_ptrace_features): New function, heavily
3369 based on linux-nat.c:linux_test_for_tracefork.
3370 (linux_enable_event_reporting): New function.
3371 (ptrace_supports_feature): Likewise.
3372 (linux_supports_tracefork): Likewise.
3373 (linux_supports_traceclone): Likewise.
3374 (linux_supports_tracevforkdone): Likewise.
3375 (linux_supports_tracesysgood): Likewise.
3376 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3377 gdbserver/linux-low.c.
3378 (linux_enable_event_reporting): New declaration.
3379 (linux_supports_tracefork): Likewise.
3380 (linux_supports_traceclone): Likewise.
3381 (linux_supports_tracevforkdone): Likewise.
3382 (linux_supports_tracesysgood): Likewise.
3383 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3384 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3385 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3386 * config/arm/linux.mh (NATDEPFILES): Likewise.
3387 * config/i386/linux.mh (NATDEPFILES): Likewise.
3388 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3389 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3390 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3391 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3392 * config/mips/linux.mh (NATDEPFILES): Likewise.
3393 * config/pa/linux.mh (NATDEPFILES): Likewise..
3394 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3395 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3396 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3397 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3398 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3399 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3400 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3401 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3402 ptrace's 4th argument's types.
3403 Check the type of PTRACE_TYPE_ARG4.
3404 * configure: Regenerate.
3405 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3406 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3407 (linux_supports_tracefork_flag): Remove.
3408 (linux_supports_tracesysgood_flag): Likewise.
3409 (linux_supports_tracevforkdone_flag): Likewise.
3410 (current_ptrace_options): Moved to
3411 common/linux-ptrace.c.
3412 (linux_tracefork_child): Remove.
3413 (my_waitpid): Remove.
3414 (linux_test_for_tracefork): Renamed to
3415 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3416 (linux_test_for_tracesysgood): Remove.
3417 (linux_supports_tracesysgood): Remove.
3418 (linux_supports_tracefork): Remove.
3419 (linux_supports_tracevforkdone): Remove.
3420 (linux_enable_tracesysgood): Remove.
3421 (linux_enable_event_reporting): Remove.
3422 (linux_init_ptrace): New function.
3423 (linux_child_post_attach): Call linux_init_ptrace.
3424 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3425 (linux_child_follow_fork): Call linux_supports_tracefork
3426 and linux_supports_tracevforkdone.
3427 (linux_child_insert_fork_catchpoint): Call
3428 linux_supports_tracefork.
3429 (linux_child_insert_vfork_catchpoint): Likewise.
3430 (linux_child_set_syscall_catchpoint): Call
3431 linux_supports_tracesysgood.
3432 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3433 * nat/linux-nat.h: New file.
3434 * nat/linux-waitpid.c: New file.
3435 * nat/linux-waitpid.h: New file.
3436
9f948660
SDJ
34372013-08-22 Samuel Bronson <naesten@gmail.com>
3438
3439 ARM Linux support for `catch syscall'.
3440 * syscalls/arm-linux.py: New file.
3441 * syscalls/arm-linux.xml: Likewise.
3442 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3443 (arm_linux_init_abi): Register the new function and syscall xml file.
3444 * data-directory/Makefile.in: Install the new syscall xml file.
3445 * NEWS: Brag about this.
3446
6be7b56e
PA
34472013-08-22 Pedro Alves <palves@redhat.com>
3448
3449 PR gdb/15871
3450 * corefile.c (target_xfer_memory_error): New function.
3451 (memory_error): Defer EIO to target_memory_error.
3452 (read_memory): Use target_xfer_partial, and handle finer-grained
3453 target xfer errors.
3454 * target.c (target_xfer_error_to_string): New function.
3455 (memory_xfer_partial_1): If memory is known to be
3456 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3457 (target_xfer_partial): Make extern.
3458 * target.h (enum target_xfer_error): New enum.
3459 (target_xfer_error_to_string): Declare function.
3460 (target_xfer_partial): Declare function.
3461 (struct target_ops) <xfer_partial>: Adjust describing comment.
3462
bcbec14e
AM
34632013-08-22 Alan Modra <amodra@gmail.com>
3464
3465 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3466 * configure.tgt: Likewise as targets.
3467
fc474241
DE
34682013-08-20 Doug Evans <dje@google.com>
3469
3470 * buildsym.c (subfile_stack): Move here from buildsym.h.
3471 (pending_macros): Ditto.
3472 (get_macro_table): New function.
3473 (buildsym_init): Initialize subfile_stack.
3474 * coffread.c (type_vector,type_vector_length): Moved here from
3475 buildsym.h.
3476 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3477 (coff_symtab_read): Use it.
3478 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3479 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3480 with call to get_macro_table.
3481 * stabsread.c (type_vector,type_vector_length): Moved here from
3482 buildsym.h.
3483 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3484 * buildsym.h (get_macro_table): Declare.
3485
bec71544
TT
34862013-08-20 Tom Tromey <tromey@redhat.com>
3487
3488 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3489 Update.
3490 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3491
0002ad5f
DE
34922013-08-20 Doug Evans <dje@google.com>
3493
3494 * blockframe.c: Remove #include "psymtab.h".
3495 * cp-support.c: Ditto.
3496 * source.c: Ditto.
3497 * stack.c: Ditto.
3498
df302446
TT
34992013-08-20 Tom Tromey <tromey@redhat.com>
3500
3501 PR python/15816:
3502 * exceptions.h (return_mask): Now an enum.
3503 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3504 enum constants.
3505
df6d5441
TT
35062013-08-20 Tom Tromey <tromey@redhat.com>
3507
3508 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3509 get_objfile_arch.
3510 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3511 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3512 * jit.c (jit_object_close_impl): Update.
3513 * jv-lang.c (get_dynamics_objfile): Update.
3514 * linespec.c (add_minsym): Use get_dynamics_objfile.
3515 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3516 (allocate_objfile): Don't initialize 'gdbarch' field.
3517 (get_objfile_arch): Update.
3518 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3519 moved from...
3520 (struct objfile) <gdbarch>: ... here. Remove.
3521 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3522 get_objfile_arch.
3523 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3524
f5aee5ee
AM
35252013-08-20 Alan Modra <amodra@gmail.com>
3526
3527 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3528 for IBM long double nan and inf.
3529 (floatformat_is_negative, floatformat_classify,
3530 floatformat_mantissa): Similarly.
3531 (floatformat_ieee_single, floatformat_ieee_double,
3532 floatformat_ieee_quad, floatformat_arm_ext,
3533 floatformat_ia64_spill): Delete unused vars.
3534 (_initialize_doublest): Delete unused function.
3535 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3536 little-endian variants of floatformat_ibm_long_double.
3537
33b60d58 35382013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 3539
33b60d58
LM
3540 * Makefile.in (SFILES): Remove common/target-common.c and
3541 add target/waitstatus.c.
3542 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3543 target/resume.h, target/wait.h and target/waitstatus.h.
3544 (COMMON_OBS): Remove target-common.o and add
3545 waitstatus.o.
3546 (target-common.o): Remove.
3547 (waitstatus.o): New target object file.
3548 * common/target-common.c: Move contents to
3549 target/waitstatus.c and remove.
3550 * common/target-common.h: Move contents to other files and
3551 remove.
3552 (enum resume_kind: Move to target/resume.h.
3553 (TARGET_WNOHANG): Move to target/wait.h.
3554 (enum target_waitkind): Move to target/waitstatus.h.
3555 (struct target_waitstatus): Likewise.
3556 * target.h: Do not include target-common.h and
3557 include target/resume.h, target/wait.h and
3558 target/waitstatus.h.
3559 * target/resume.h: New file.
3560 * target/wait.h: New file.
3561 * target/waitstatus.h: New file.
3562 * target/waitstatus.c: New file.
3563
12696c10
PA
35642013-08-19 Pedro Alves <palves@redhat.com>
3565
3566 * linux-nat.c (linux_test_for_tracefork)
3567 (linux_test_for_tracesysgood, linux_child_follow_fork)
3568 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3569 (linux_nat_wait_1): Extend comment.
3570 (linux_async_pipe): Add comment.
3571
ba89f962
KB
35722013-08-15 Kevin Buettner <kevinb@redhat.com>
3573
3574 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3575 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3576 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3577 Update to account for fact that PC is now a pseudo-register.
3578 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3579 cases for RL78_PC_REGNUM.
3580
35ab155d
MB
35812013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3582
3583 PR cli/15841
3584 * top.c (quit_force): Skip writing history file
3585 if input is not from terminal.
3586
0d031856
TT
35872013-08-14 Tom Tromey <tromey@redhat.com>
3588
3589 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3590 resultthreadlist>: New fields.
3591 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3592 (remote_get_threadlist, remote_threadlist_iterator): Use
3593 new fields. Remove static variables.
3594
ee154bee
TT
35952013-08-14 Tom Tromey <tromey@redhat.com>
3596
3597 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3598 remote_watch_data_address>: New fields.
3599 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3600 (process_stop_reply, remote_wait_as)
3601 (remote_check_watch_resources, remote_stopped_data_address): Update.
3602
88b496c3
TT
36032013-08-14 Tom Tromey <tromey@redhat.com>
3604
3605 * remote.c (struct remote_state) <async_client_callback,
3606 async_client_context>: New fields.
3607 (async_client_callback, async_client_context): Remove.
3608 (remote_async_serial_handler, remote_async): Update.
3609
2f65bcb7
TT
36102013-08-14 Tom Tromey <tromey@redhat.com>
3611
3612 * remote.c (sizeof_pkt): Remove.
3613 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3614
b80fafe3
TT
36152013-08-14 Tom Tromey <tromey@redhat.com>
3616
3617 * remote.c (struct remote_state) <use_threadinfo_query,
3618 use_threadextra_query>: New fields.
3619 (remote_threads_info, remote_threads_extra_info)
3620 (remote_open_1): Update.
3621
8e88304f
TT
36222013-08-14 Tom Tromey <tromey@redhat.com>
3623
3624 * remote.c (struct remote_state) <finished_object,
3625 finished_annex, finished_offset>: New fields.
3626 (remote_read_qxfer): Use remote_state fields; remove static
3627 variables.
3628
280ceea3
TT
36292013-08-14 Tom Tromey <tromey@redhat.com>
3630
3631 * remote.c (struct remote_state) <last_sent_step>:
3632 New field.
3633 (last_sent_step): Remove.
3634 (remote_resume, remote_wait_as): Update.
3635
b73be471
TT
36362013-08-14 Tom Tromey <tromey@redhat.com>
3637
3638 * remote.c (struct remote_state) <last_sent_signal>:
3639 New field.
3640 (last_sent_signal): Remove.
3641 (new_remote_state, remote_resume, remote_wait_as): Update.
3642
5e4a05c4
TT
36432013-08-14 Tom Tromey <tromey@redhat.com>
3644
3645 * remote.c (struct remote_state) <last_program_signals_packet>:
3646 New field.
3647 (last_program_signals_packet): Remove.
3648 (remote_program_signals, remote_open_1): Update.
3649
747dc59d
TT
36502013-08-14 Tom Tromey <tromey@redhat.com>
3651
3652 * remote.c (struct remote_state) <last_pass_packet>:
3653 New field.
3654 (last_pass_packet): Remove.
3655 (remote_pass_signals, remote_open_1): Update.
3656
262e1174
TT
36572013-08-14 Tom Tromey <tromey@redhat.com>
3658
3659 * remote.c (struct remote_state) <remote_traceframe_number>:
3660 New field.
3661 (remote_traceframe_number): Remove.
3662 (new_remote_state, remote_open_1, set_remote_traceframe)
3663 (remote_trace_find): Update.
3664
47f8a51d
TT
36652013-08-14 Tom Tromey <tromey@redhat.com>
3666
3667 * remote.c (struct remote_state) <general_thread, continue_thread>:
3668 New fields.
3669 (general_thread, continue_thread): Remove.
3670 (record_currthread, set_thread, set_general_process)
3671 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3672 (extended_remote_mourn_1): Update.
3673
5d93a237
TT
36742013-08-14 Tom Tromey <tromey@redhat.com>
3675
3676 * remote.c (struct remote_state) <remote_desc>: New field.
3677 (remote_desc): Remove.
3678 (remote_threads_info, remote_threads_extra_info, remote_close)
3679 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3680 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3681 (remote_hostio_send_command, remote_file_put, remote_file_get)
3682 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3683 (remote_async, remote_new_objfile, set_range_stepping): Update.
3684
cf792862
TT
36852013-08-14 Tom Tromey <tromey@redhat.com>
3686
3687 * remote.c (remote_state): Now a pointer.
3688 (get_remote_state_raw): Update.
3689 (new_remote_state): New function.
3690 (_initialize_remote): Use new_remote_state.
3691
dc473cfb
TT
36922013-08-14 Tom Tromey <tromey@redhat.com>
3693
3694 * remote.c (remote_protocol_features): Now const.
3695
85ec6ce7
TT
36962013-08-14 Tom Tromey <tromey@redhat.com>
3697
3698 * remote.c (crc32_table, crc32): Remove.
3699 (remote_verify_memory): Use xcrc32.
3700
73033f12
SDJ
37012013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
3702
3703 * value.h (create_internalvar_type_lazy): Adjust prototype
3704 declaration.
3705
5c30d39a
AB
37062013-08-13 Andrew Burgess <aburgess@broadcom.com>
3707
3708 * common/format.c (parse_format_string): Don't allow '#' flag for
3709 pointer arguments in format string.
3710
1a66331e
PM
37112013-08-13 Pierre Muller <muller@sourceware.org>
3712
fde605f3 3713 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
3714 if rl_get_screen_size did not return useful values.
3715
b4013987
AA
37162013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
3717
3718 PR breakpoints/15117
3719 * linespec.c (linespec_parse_basic): Check for convenience
3720 variable or history value while parsing.
3721
959b6a66
SDJ
37222013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
3723
3724 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3725 AVR.
3726 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3727 different signals between the generic Linux kernel implementation
3728 and AVR's.
3729 (avr_linux_gdb_signal_from_target): Delete.
3730 (avr_linux_gdb_signal_to_target): Delete.
3731 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3732
24a55014
DE
37332013-08-09 Doug Evans <dje@google.com>
3734
3735 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3736 entries.
3737
eb14d406
SDJ
37382013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
3739
3740 * linux-tdep.c: Define enum with generic signal numbers.
3741 (linux_gdb_signal_from_target): New function.
3742 (linux_gdb_signal_to_target): Likewise.
3743 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3744 methods to the functions above.
3745 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3746 (linux_gdb_signal_to_target): Likewise.
3747 * alpha-linux-tdep.c: Define new enum with signals different
3748 from generic Linux kernel.
3749 (alpha_linux_gdb_signal_from_target): New function.
3750 (alpha_linux_gdb_signal_to_target): Likewise.
3751 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3752 with the functions mentioned above.
3753 * avr-tdep.c: Define enum with differences between Linux kernel
3754 and AVR signals.
3755 (avr_linux_gdb_signal_from_target): New function.
3756 (avr_linux_gdb_signal_to_target): Likewise.
3757 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3758 the functions mentioned above.
3759 * sparc-linux-tdep.c: Define enum with differences between SPARC
3760 and generic Linux kernel signal numbers.
3761 (sparc32_linux_gdb_signal_from_target): New function.
3762 (sparc32_linux_gdb_signal_to_target): Likewise.
3763 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3764 to the functions defined above.
3765 * xtensa-linux-tdep.c: Define enum with differences between
3766 Xtensa and Linux kernel generic signals.
3767 (xtensa_linux_gdb_signal_from_target): New function.
3768 (xtensa_linux_gdb_signal_to_target): Likewise.
3769 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3770 to the functions defined above.
3771 * mips-linux-tdep.c: Define enum with differences between
3772 signals in MIPS and Linux kernel generic ones.
3773 (mips_gdb_signal_to_target): New function.
3774 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3775 only different signals from the Linux kernel generic.
3776 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3777 the functions defined above.
3778 * mips-linux-tdep.h (enum mips_signals): Remove.
3779
156d08c8
PA
37802013-08-09 Pedro Alves <palves@redhat.com>
3781
3782 * avr-tdep.c (XMALLOC): Delete macro.
3783 * cli/cli-dump.c (XMALLOC): Delete macro.
3784
db229724
PA
37852013-08-09 Pedro Alves <palves@redhat.com>
3786
3787 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3788 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3789 (fopen_with_cleanup, add_dump_command): Make static.
3790 * cli/cli-dump.h: Delete file.
3791 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3792 cli/cli-dump.h.
3793
3f12a589
PA
37942013-08-09 Pedro Alves <palves@redhat.com>
3795
3796 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3797 error message.
3798
c718be47
PA
37992013-08-09 Pedro Alves <palves@redhat.com>
3800
156d08c8 3801 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
3802 error message.
3803
1e351ed1
PA
38042013-08-09 Pedro Alves <palves@redhat.com>
3805
3806 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3807 (gcore_command): Use tilde_expand here, and when showing the
3808 filename to the user, show the expanded version.
3809
1ed8d800
YQ
38102013-08-09 Yao Qi <yao@codesourcery.com>
3811
3812 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3813 'entryval' is set.
3814
47ecca85
PA
38152013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
3816
3817 * gcore.c (create_gcore_bfd): Use tilde_expand.
3818
82a0a75f
YQ
38192013-08-08 Yao Qi <yao@codesourcery.com>
3820
3821 * frame.h (read_frame_local): Declare.
3822 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3823 read_frame_local.
3824 * stack.c (read_frame_local): New.
3825
5c4aa40b
YQ
38262013-08-08 Yao Qi <yao@codesourcery.com>
3827
3828 * mi/mi-cmd-stack.c: Update comments to function
3829 list_args_or_locals.
3830
b93601f3
TT
38312013-08-07 Tom Tromey <tromey@redhat.com>
3832
3833 PR symtab/15028:
3834 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3835 (process_psymtab_comp_unit_reader): Use it.
3836 (process_psymtab_comp_unit): Update. Add "pretend_language"
3837 argument.
3838 (dwarf2_build_psymtabs_hard): Update.
3839 (scan_partial_symbols): Pass CU's language to
3840 process_psymtab_comp_unit.
3841
fa760f46
TT
38422013-08-07 Tom Tromey <tromey@redhat.com>
3843
3844 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3845 (dwarf2_gdb_index_functions): Update.
3846 * psymtab.c (find_symbol_file_from_partial): Remove.
3847 (psym_functions): Update.
3848 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3849 Remove.
3850
bf6d8a91
TT
38512013-08-07 Tom Tromey <tromey@redhat.com>
3852
3853 * symfile.c (set_initial_language): Look up "main" symbol
3854 and use its language.
3855 * symtab.c (find_main_filename): Remove.
3856 * symtab.h (find_main_filename): Remove.
3857
f9125b6c
TT
38582013-08-07 Tom Tromey <tromey@redhat.com>
3859
3860 * dwarf2read.c (recursively_compute_inclusions): Add
3861 "immediate_parent" argument. Set symtab's "user" field
3862 if not set.
3863 (compute_symtab_includes): Update.
3864
fdbb204b
TT
38652013-08-07 Tom Tromey <tromey@redhat.com>
3866
3867 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3868 when adding label symbols.
3869
49de1690
UW
38702013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3871 Ulrich Weigand <uweigand@de.ibm.com>
3872
3873 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3874 * configure.host (powerpc64-*-aix*): Likewise.
3875
b08ee99f
UW
38762013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3877 Ulrich Weigand <uweigand@de.ibm.com>
3878
3879 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3880 is defined.
3881 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3882 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3883 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3884 * configure.ac: Check for ptrace64.
3885 * configure, config.in: Regenerate.
3886
fecf803e
UW
38872013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3888 Ulrich Weigand <uweigand@de.ibm.com>
3889
3890 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3891 Call ptrace64 instead of ptrace if defined.
3892 Add macro addr_ptr to take care of ptrace address argument.
3893 (pdc_read_regs): Likewise.
3894 (pdc_write_regs): Likewise.
3895 (aix_thread_resume): Likewise.
3896 (fetch_regs_kernel_thread): Likewise.
3897 (store_regs_kernel_thread): Likewise.
3898
3bb5e4a8
AB
38992013-08-07 Anton Blanchard <anton@samba.org>
3900
3901 * MAINTAINERS: Add myself to Write After Approval.
3902
12070676
TT
39032013-08-05 Tom Tromey <tromey@redhat.com>
3904
3905 * aix-thread.c (_initialize_aix_thread): Use
3906 complete_target_initialization.
3907 * bsd-uthread.c (_initialize_bsd_uthread): Use
3908 complete_target_initialization.
3909 * dec-thread.c (_initialize_dec_thread): Use
3910 complete_target_initialization.
3911 * ravenscar-thread.c (_initialize_ravenscar): Use
3912 complete_target_initialization.
3913 * sol-thread.c (_initialize_sol_thread): Use
3914 complete_target_initialization.
3915 * spu-multiarch.c (_initialize_spu_multiarch): Use
3916 complete_target_initialization.
3917
7c7b6655
TT
39182013-08-05 Tom Tromey <tromey@redhat.com>
3919
3920 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3921 * ada-lang.c (ada_lookup_simple_minsym): Return
3922 bound_minimal_symbol.
3923 * ada-lang.h (ada_lookup_simple_minsym): Update.
3924 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3925 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3926 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3927 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3928 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3929 * minsyms.c (msymbol_objfile): Remove.
3930 (lookup_minimal_symbol_internal): New function, from
3931 lookup_minimal_symbol.
3932 (lookup_minimal_symbol): Rewrite using
3933 lookup_minimal_symbol_internal.
3934 (lookup_bound_minimal_symbol): New function.
3935 * minsyms.h (msymbol_objfile): Remove.
3936 (lookup_bound_minimal_symbol): Declare.
3937 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3938 * parse.c (write_exp_msymbol): Change parameter to a
3939 bound_minimal_symbol.
3940 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3941 * parser-defs.h (write_exp_msymbol): Update.
3942 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3943 * symfile.c (simple_read_overlay_table): Use
3944 lookup_bound_minimal_symbol.
3945 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3946 (search_symbols): Likewise.
3947 (print_msymbol_info): Take a bound_minimal_symbol argument.
3948 (symtab_symbol_info, rbreak_command): Update.
3949 * symtab.h (struct symbol_search) <msymbol>: Change type
3950 to bound_minimal_symbol.
3951 * valops.c (find_function_in_inferior): Use
3952 lookup_bound_minimal_symbol.
3953 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3954
934b9bac
JK
39552013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3956
3957 Code cleanup.
3958 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3959 to ...
3960 (async_cleanup_sigint_signal_handler): ... this.
3961 (initialize_sigint_signal_handler): Remove declaration.
3962 (handle_remote_sigint): Rename the declaration to ...
3963 (async_handle_remote_sigint): ... this.
3964 (handle_remote_sigint_twice): Rename the declaration to ...
3965 (async_handle_remote_sigint_twice): ... this.
3966 (async_remote_interrupt, async_remote_interrupt_twice)
3967 (remote_interrupt): Remove the declarations.
3968 (remote_interrupt_twice): Rename the declaration ...
3969 (sync_remote_interrupt_twice): ... this.
3970 (sigint_remote_twice_token): Rename the variable to ...
3971 (async_sigint_remote_twice_token): ... this.
3972 (sigint_remote_token): Rename the variable to ...
3973 (async_sigint_remote_token): ... this.
3974 (initialize_sigint_signal_handler): Rename the function to ...
3975 (async_initialize_sigint_signal_handler): ... this. Update the name
3976 inside.
3977 (handle_remote_sigint): Rename the function to ...
3978 (async_handle_remote_sigint): ... this. Update the names inside.
3979 (handle_remote_sigint_twice): Rename the function to ...
3980 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3981 (cleanup_sigint_signal_handler): Rename the function to ...
3982 (async_cleanup_sigint_signal_handler): ... this.
3983 (remote_interrupt): Rename the function to ...
3984 (sync_remote_interrupt): this. Update the names inside.
3985 (remote_interrupt_twice): Rename the function to ...
3986 (sync_remote_interrupt_twice): this. Update the names inside.
3987 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3988 (_initialize_remote): Update the names inside.
3989
3a1115a0
TT
39902013-08-02 Tom Tromey <tromey@redhat.com>
3991
3992 PR symtab/15719:
3993 * breakpoint.c (update_watchpoint, watchpoint_check)
3994 (watch_command_1): Update.
3995 * eval.c (fetch_subexp_value): Add "preserve_errors"
3996 parameter.
3997 * ppc-linux-nat.c (check_condition): Update.
3998 * value.h (fetch_subexp_value): Update.
3999
58b19776
AB
40002013-08-02 Andrew Burgess <aburgess@broadcom.com>
4001
4002 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4003 add_file_handler.
4004
ec94af83
DE
40052013-08-01 Doug Evans <dje@google.com>
4006
7ee85ab1
DE
4007 PR symtab/15691
4008 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4009 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4010 Add assert of sig_entry->dwo_unit == NULL.
4011 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4012 had already been read.
4013 (read_signatured_type): Set per_cu.tu_read.
4014
b846d303
DE
4015 PR symtab/15695
4016 * valops.c (value_struct_elt): Add missing call to check_typedef.
4017 (value_find_oload_method_list): Ditto.
4018
b52109bc
DE
4019 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4020 effectively, struct symbol_search **.
4021 (make_cleanup_free_search_symbols): Change arg to struct
4022 symbol_search **. All callers updated.
4023 (compare_search_syms): Compare symtab file name and block as well.
4024 (search_symbols_equal): New function.
4025 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4026 New args new_head, new_tail. Result is now void. Remove dups after
4027 sorting the symbols.
4028 (search_symbols): Sort all found symbols once, after all have been
4029 found, and remove duplicates. Simplify cleanup tracking of result.
4030 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4031
ec94af83
DE
4032 Further workarounds for binutils/15021.
4033 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4034 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4035 Watch for duplicate symtabs coming from type units.
4036 (compute_symtab_includes): Update call to
4037 recursively_compute_inclusions. Build vector of included symtabs
4038 instead of per_cus.
4039 * symtab.h (symtab_ptr): New typedef.
4040 (DEF_VEC_P (symtab_ptr)): New VEC type.
4041 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4042 instead.
4043
b2ae85cf
AB
40442013-08-01 Andrew Burgess <aburgess@broadcom.com>
4045
4046 * cli/cli-script.c (script_from_file): Remove use of
4047 error_pre_print.
4048 * main.c (captured_main): Remove use of error_pre_print and
4049 quit_pre_print.
4050 * utils.c (error_pre_print, quit_pre_print): Remove.
4051 * utils.h (error_pre_print, quit_pre_print): Likewise.
4052
645eab03
YQ
40532013-08-01 Yao Qi <yao@codesourcery.com>
4054
4055 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4056 with mi_getopt.
4057 (mi_cmd_stack_list_variables): Likewise.
4058
16f92dd4
AB
40592013-07-31 Andrew Burgess <aburgess@broadcom.com>
4060
4061 * exceptions.c (deprecated_throw_reason): Remove.
4062 * exceptions.h (deprecated_throw_reason): Remove.
4063
13f78033
AB
40642013-07-31 Andrew Burgess <aburgess@broadcom.com>
4065
4066 * remote-mips.c (mips_error): Replace use of
4067 deprecated_throw_reason with throw_verror. Use the error message
4068 passed to mips_error as the error message for throw_verror.
4069
039e3c22
AB
40702013-07-31 Andrew Burgess <aburgess@broadcom.com>
4071
4072 * monitor.c (monitor_interrupt_query): Replace use of
4073 deprecated_throw_reason with quit.
4074 * nto-procfs.c (interrupt_query): Likewise.
4075 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4076 * remote-mips.c (mips_kill): Likewise.
4077 * remote.c (interrupt_query): Likewise.
4078
8150913b
AB
40792013-07-31 Andrew Burgess <aburgess@broadcom.com>
4080
4081 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4082 with call to fatal.
4083
de74e63a
YQ
40842013-07-31 Pedro Alves <pedro@codesourcery.com>
4085 Yao Qi <yao@codesourcery.com>
4086
4087 * tracepoint.c (trace_dump_command): Select the current frame.
4088
247f5c4f
DE
40892013-07-30 Doug Evans <dje@google.com>
4090
4091 * dwarf2read.c (process_queue): Add type signature to debug output.
4092
11b4b7cc
AB
40932013-07-30 Andrew Burgess <aburgess@broadcom.com>
4094
4095 * value.c (value_fetch_lazy): Mark optimized out values as such
4096 rather than raising an error.
4097
b0c54aa5
AB
40982013-07-30 Andrew Burgess <aburgess@broadcom.com>
4099
4100 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4101 before checking which bits of the parent, not the child, value are
4102 valid.
4103
97c85fc6
MB
41042013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4105
4106 PR gdb/15715
4107 * top.c: Include "filenames.h".
4108 (set_history_filename): New function.
4109 (init_main): Install it as set hook of the "set history filename"
4110 command.
4111
ff39bb5e
SA
41122013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4113
4114 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4115 attribute parameter.
4116 (dwarf2_const_value_data): Constify struct attribute parameter.
4117 (dwarf2_const_value): Constify struct attribute parameter.
4118 (dwarf2_const_value_attr): Constify struct attribute parameter.
4119 (lookup_die_type): Constify struct attribute parameter.
4120 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4121 (follow_die_ref_or_sig): Constify struct attribute parameter.
4122 (follow_die_ref): Constify struct attribute parameter.
4123 (follow_die_sig): Constify struct attribute parameter.
4124 (get_DW_AT_signature_type): Constify struct attribute parameter.
4125 (get_type_unit_group): Constify struct attribute parameter.
4126 (fill_in_loclist_baton): Constify struct attribute parameter.
4127 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4128 (type_unit_group): Constify struct attribute parameter.
4129
6e5a29e1
SA
41302013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4131
4132 * dwarf2read.c (attr_form_is_block): Make argument const.
4133 (attr_form_is_section_offset): Make argument const.
4134 (attr_form_is_constant): Make argument const.
4135 (attr_form_is_ref): Make argument const.
4136
7771576e
SA
41372013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4138
4139 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4140 All uses updated.
4141 (attr_form_is_ref): Moved below attr_form_is_constant.
4142
a94e8645
DE
41432013-07-29 Doug Evans <dje@google.com>
4144
bb5291d0
DE
4145 * main.c (captured_command_loop): Tweak comment.
4146
b5419e49
DE
4147 * target.c (target_async_permitted_1): Fix comment.
4148
b2d23133
DE
4149 * symtab.c (iterate_over_some_symtabs): Add comment.
4150
a94e8645
DE
4151 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4152
7a60ad40
YQ
41532013-07-27 Yao Qi <yao@codesourcery.com>
4154
4155 * NEWS: Mention that GDBserver now supports hardware
4156 watchpoints on the MIPS GNU/Linux target.
4157
aaee2056
YQ
41582013-07-27 Yao Qi <yao@codesourcery.com>
4159
4160 * Makefile.in (HFILES_NO_SRCDIR): Add
4161 common/mips-linux-watch.h.
4162 (mips-linux-watch.o): New rule.
4163 * common/mips-linux-watch.c: New.
4164 * common/mips-linux-watch.h: New.
4165 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4166 * mips-linux-nat.c: Include mips-linux-watch.h.
4167 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4168 to common/mips-linux-watch.h.
4169 (MAX_DEBUG_REGISTER): Likewise.
4170 (enum pt_watch_style): Likewise.
4171 (struct mips32_watch_regs): Likewise.
4172 (struct mips64_watch_regs): Likewise.
4173 (struct pt_watch_regs): Likewise.
4174 (struct mips_watchpoint): Likewise.
4175 (mips_linux_watch_get_irw_mask): Move to
4176 common/mips-linux-watch.c.
4177 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4178 (mips_linux_watch_get_watchlo): Likewise.
4179 (mips_linux_watch_set_watchlo): Likewise.
4180 (mips_linux_watch_get_watchhi): Likewise.
4181 (mips_linux_watch_set_watchhi): Likewise.
4182 (mips_linux_read_watch_registers): Likewise.
4183 (mips_linux_watch_type_to_irw): Likewise.
4184 (mips_linux_stopped_data_address, fill_mask): Likewise.
4185 (mips_linux_watch_try_one_watch): Likewise.
4186 (mips_linux_watch_populate_regs): Likewise.
4187
b3436450
YQ
41882013-07-27 Yao Qi <yao@codesourcery.com>
4189
4190 * mips-linux-nat.c (get_irw_mask): Rename to ...
4191 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4192 'set' to 'n'. Update function comment. All callers changed.
4193 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4194 function comment. All callers changed.
4195 (get_num_valid): Rename to ...
4196 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4197 'set' to 'n'. Update function comment. All callers changed.
4198 (get_watchlo): Rename to ...
4199 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4200 'set' to 'n'. Update function comment. All callers changed.
4201 (set_watchlo): Rename to ...
4202 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4203 'set' to 'n'. Update function comment. All callers changed.
4204 (get_watchhi): Rename to ...
4205 (mips_linux_watch_get_watchhi): ... this. Update function
4206 comment. All callers changed.
4207 (set_watchhi): Rename to ...
4208 (mips_linux_watch_set_watchhi): ... this. Update function
4209 comment. All callers changed.
4210 (mips_linux_read_watch_registers): Update function comment.
4211 Add new parameters 'lwpid', 'watch_readback', and
4212 'watch_readback_valid'. Update.
4213 (type_to_irw): Rename to ...
4214 (mips_linux_watch_type_to_irw): ... this. Update function
4215 comment. All callers changed.
4216 (fill_mask): Update function comment.
4217 (try_one_watch): Rename to ...
4218 (mips_linux_watch_try_one_watch): ... this. Change the type
4219 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4220 (populate_regs_from_watches): Rename to ...
4221 (mips_linux_watch_populate_regs): ... this. Add parameter
4222 'current_watches'. All callers changed.
4223
9be14b81
YQ
42242013-07-27 Yao Qi <yao@codesourcery.com>
4225
4226 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4227 the code.
4228 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4229 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4230 (struct pt_watch_regs): Likewise.
4231 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4232 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4233 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4234 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4235 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4236
de6f69ad
YQ
42372013-07-27 Yao Qi <yao@codesourcery.com>
4238
4239 * breakpoint.h: Include break-common.h.
4240 (enum target_hw_bp_type): Move to ...
4241 * common/break-common.h: ... here. New.
4242
6f64ef53
PA
42432013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4244
4245 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4246 process group regardless of having tty on stdin.
4247
6107e809
DE
42482013-07-25 Doug Evans <dje@google.com>
4249
4250 * linux-fork.h (detach_fork): Delete.
4251
7fdc1521
TT
42522013-07-25 Tom Tromey <tromey@redhat.com>
4253
4254 PR remote/15256, PR remote/15266:
4255 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4256 * monitor.c (monitor_detach): Use unpush_target.
4257 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4258 * remote-mips.c (mips_detach): Use unpush_target. Don't
4259 call mips_close.
4260 * remote-sim.c (gdbsim_detach): Use unpush_target.
4261 * target.c (pop_target): Remove.
4262 (pop_all_targets_above): Don't call target_close.
4263 (target_close): Assert that the target is unpushed.
4264 * target.h (pop_target): Don't declare.
4265 * tracepoint.c (tfile_open): Use unpush_target.
4266
c22a2b88
TT
42672013-07-25 Tom Tromey <tromey@redhat.com>
4268
4269 * linux-thread-db.c (init_thread_db_ops): Call
4270 complete_target_initialization.
4271 (_initialize_thread_db): Don't call add_target.
4272 * target.c (complete_target_initialization): New function.
4273 (add_target_with_completer): Call it.
4274 * target.h (complete_target_initialization): Declare.
4275
cbb6aada
MK
42762013-07-25 Mark Kettenis <kettenis@gnu.org>
4277
4278 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4279 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4280 (HPPANBSD_SIZEOF_GREGS): New define.
4281 (hppaobsd_supply_gregset): Handle additional registers.
4282 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4283 we provide more registers now.
4284 (hppabsd_supply_gregset): Supply additional registers.
4285 (hppabsd_collect_gregset): Collect additional registers.
4286
17767988
MK
42872013-07-25 Mark Kettenis <kettenis@gnu.org>
4288
4289 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4290 (hppabsd_dwarf2_frame_init_reg): New function.
4291 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4292
fdc8aae8
AB
42932013-07-25 Andrew Burgess <aburgess@broadcom.com>
4294
4295 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4296 'z' format code. Remove error for optimized out values, standard
4297 code will handle these fine.
4298
6fbe845e
AB
42992013-07-25 Andrew Burgess <aburgess@broadcom.com>
4300
4301 * NEWS: Mention new 'z' formatter.
4302 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4303 (_initialize_printcmd): Mention 'z' formatter in help text of the
4304 'x' command.
4305
3373342d
MR
43062013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4307
4308 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4309 formatting.
4310
25f9533e
SDJ
43112013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4312
4313 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4314 interface can evaluate arguments. Fallback to the old mode if it
4315 cannot.
4316 (create_exception_master_breakpoint): Likewise.
4317 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4318 (struct sym_probe_fns elf_probe_fns): Export function above to the
4319 probe interface.
4320 * probe.c (can_evaluate_probe_arguments): New function.
4321 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4322 function pointer.
4323 (can_evaluate_probe_arguments): New function prototype.
4324 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4325 probe interface can evaluate arguments. Fallback to the old mode
4326 if it cannot.
4327 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4328 interface can evaluate arguments. Warning the user if it cannot.
4329 (stap_can_evaluate_probe_arguments): New function.
4330 (struct probe_ops stap_probe_ops): Export function above to the
4331 probe interface.
4332 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4333 New function pointer.
4334
3360c0bf
LM
43352013-07-24 Luis Machado <lgustavo@codesourcery.com>
4336
4337 * Makefile.in (SFILES): Add common/target-common.c.
4338 Add common/target-common.h to headers.
4339 (COMMON_OBS): Add target-common.o.
4340 (target-common.o): New target.
4341 * linux-nat.h (resume_kind): Move to common/target-common.h.
4342 * target.c (target_waitstatus_to_string): Move to
4343 common/target-common.c.
4344 * target.h: Include target-common.h.
4345 (target_waitkind): Move to common/target-common.h.
4346 (target_waitstatus): Likewise.
4347 (TARGET_WNOHANG): Likewise.
4348 * common/target-common.c: New file.
4349 * common/target-common.h: New file.
4350
6656a72d
DE
43512013-07-24 Doug Evans <dje@google.com>
4352
4353 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4354 a warning.
4355
6df81a63
YQ
43562013-07-23 Yao Qi <yao@codesourcery.com>
4357
4358 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4359 parameter 'gdbarch'.
4360 (i386_stack_tramp_frame_sniffer): Caller update.
4361 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4362 parameter 'gdbarch' and 'target'.
4363 (i386_linux_core_read_description): Caller update.
4364 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4365 Likewise.
4366 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4367 declaration.
4368
365156ad
TT
43692013-07-23 Tom Tromey <tromey@redhat.com>
4370
4371 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4372 2013-07-22.
4373
046ac79f
JK
43742013-07-22 Doug Evans <dje@google.com>
4375
4376 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
4377 * exec.c (exec_close): Update call to remove_target_sections.
4378 (remove_target_sections): Delete arg abfd.
046ac79f
JK
4379 * solib.c (update_solib_list): Ditto.
4380 (reload_shared_libraries_1): Ditto.
4381 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
4382 * target.h (struct target_section): Rename key to owner.
4383 All uses updated.
046ac79f 4384
29b2cc46
TT
43852013-07-22 Tom Tromey <tromey@redhat.com>
4386
4387 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4388
d1160018
TT
43892013-07-22 Tom Tromey <tromey@redhat.com>
4390
4391 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4392 Simplify cleanup handling.
4393
2f324bf6
TT
43942013-07-22 Tom Tromey <tromey@redhat.com>
4395
4396 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4397 on all return paths.
4398
e23b9d6e
UW
43992013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4400
4401 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4402 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4403 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4404
1cf55f60
PM
44052013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4406
4407 * top.c (print_gdb_version): Add help, apropos description and
4408 url to online documentation.
4409
fa876972
HZ
44102013-07-19 Hui Zhu <hui@codesourcery.com>
4411
4412 PR gdb/15692
4413 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4414
1527aea8
YQ
44152013-07-19 Yao Qi <yao@codesourcery.com>
4416
4417 * target.c (update_current_target): Change the default action
4418 of 'to_traceframe_info' from tcomplain to return_zero.
4419 * target.h (struct target_ops) <to_traceframe_info>: Add more
4420 comments.
4421 * valops.c (read_value_memory): Call
4422 traceframe_available_memory unconditionally.
4423
886f230e
YQ
44242013-07-18 Yao Qi <yao@codesourcery.com>
4425
4426 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4427 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4428 symbol without prefix. If found, set its type to
4429 'mst_solib_trampoline'.
4430
16419bae
DE
44312013-07-17 Doug Evans <dje@google.com>
4432
e7045703
DE
4433 * NEWS: Mention "set print raw frame-arguments".
4434 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4435 * stack.c (print_raw_frame_arguments): New static global.
4436 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4437 (_initialize_stack): New command "set/show print raw frame-arguments".
4438 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4439 (set_print_raw, show_print_raw): New functions.
4440 (_initialize_valprint): New prefix command "set/show print raw".
4441 * valprint.h (value_print_options): Improve comments.
4442
453e48a5
DE
4443 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4444 of all *list variables.
4445
16419bae
DE
4446 * gdbcmd.h (togglelist): Delete.
4447 * cli/cli-cmds.c (togglelist): Delete.
4448 (init_cmd_lists): Update.
4449 * cli/cli-cmds.h (togglelist): Delete.
4450
626f2d1c
TT
44512013-07-17 Tom Tromey <tromey@redhat.com>
4452
4453 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4454 dwarf2_per_objfile.
4455
57e6060e
DE
44562013-07-16 Doug Evans <dje@google.com>
4457
4458 * nto-tdep.c (nto_relocate_section_addresses): Update,
4459 target_section.bfd deleted.
4460 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4461 * s390-tdep.c (s390_load): Ditto.
4462 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4463
5ea5559b
AB
44642013-07-16 Andrew Burgess <aburgess@broadcom.com>
4465
4466 * common/format.c (parse_format_string): Add checks for NULL
4467 character before calling strchr.
4468
2b2848e2
DE
44692013-07-16 Doug Evans <dje@google.com>
4470
2c571006
DE
4471 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4472 temp_pathname argument.
4473 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4474 when opening the file fails.
4475
2b2848e2
DE
4476 * target.h (struct target_section): Delete member bfd.
4477 All users updated to use the_bfd_section->owner instead.
4478 * exec.c (add_to_section_table): Assert bfd is expected value.
4479 Remove initialization of target_section.bfd.
4480 (remove_target_sections): Update.
4481 (section_table_available_memory): Update.
4482 (section_table_xfer_memory_partial): Update.
4483 (print_section_info): Update.
4484 (exec_set_section_address): Update.
4485 * record-full.c (record_full_core_xfer_partial): Update.
4486 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4487 * solib-target.c (solib_target_relocate_section_addresses): Update.
4488 * symfile.c (build_section_addr_info_from_section_table): Update.
4489 * target.c (memory_xfer_live_readonly_partial): Update.
4490 (memory_xfer_partial_1): Update.
4491
926bf92d
UW
44922013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4493
4494 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4495 now available for embedded (BookE) and server (BookS) processors,
4496 correct mentions of 'booke' and adjust comments accordingly in order to
4497 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4498 (have_ptrace_booke_interface): Rename function and variable
4499 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4500 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4501 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4502 'hwdebug_point_cmp'. Update all uses.
4503 (booke_find_thread_points_by_tid): Rename function
4504 'booke_find_thread_points_by_tid' to
4505 'hwdebug_find_thread_points_by_tid'. Update all uses.
4506 (booke_insert_point): Rename function 'booke_insert_point' to
4507 'hwdebug_insert_point'. Update all uses.
4508 (booke_remove_point): Rename function 'booke_remove_point' to
4509 'hwdebug_remove_point'. Update all uses.
4510
d929bc19
MR
45112013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4512
4513 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4514 numbers with enum values.
4515
054e8d9e
AA
45162013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4517
4518 PR threads/13217
4519 * thread.c (thread_apply_all_command): Check for valid threads
4520 and thread count.
4521 (thread_array_cleanup): New struct.
4522 (set_thread_refcount): New function.
4523
cf006359
AB
45242013-07-11 Andrew Burgess <aburgess@broadcom.com>
4525
4526 * infcmd.c (default_print_one_register_info): Reuse function
4527 print_hex_chars.
4528
94e36acc
TT
45292013-07-10 Tom Tromey <tromey@redhat.com>
4530
4531 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4532 (ada-exp.o): New target.
4533
915dd369
SDJ
45342013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4535
4536 * mt-tdep.c (mt_registers_info): Call
4537 get_no_prettyformat_print_options instead of
4538 get_raw_print_options (regression by last patch from Doug
4539 Evans).
4540
eca07816
JB
45412013-07-09 Pedro Alves <palves@redhat.com>
4542
4543 Checked in by Joel Brobecker <brobecker@adacore.com>.
4544 * ada-lang.c (coerce_unspec_val_to_type): Use
4545 value_optimized_out_const.
4546 * value.c (value_optimized_out_const): New function.
4547 * value.h (value_optimized_out_const): New declaration.
4548
2a998fc0
DE
45492013-07-09 Doug Evans <dje@google.com>
4550
4551 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4552 Enum values rename as well. All uses updated.
4553 * valprint.h (value_print_options): Rename member pretty to
4554 pretty format. Rename member prettyprint_arrays to
4555 prettyformat_arrays. Rename member prettyprint_structs to
4556 prettyformat_structs. All uses updated.
4557 (get_no_prettyformat_print_options): Renamed from
4558 get_raw_print_options.
4559 * valprint.c (get_no_prettyformat_print_options): Renamed from
4560 get_raw_print_options. All callers updated.
4561 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4562 All callers updated.
4563 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4564 All callers updated.
4565 (_initialize_valprint): Improve help text for "set print pretty" and
4566 "set print arrays".
4567
466c1fca
AB
45682013-07-09 Andrew Burgess <aburgess@broadcom.com>
4569
4570 * value.c (value_bits_valid): Revert previous change, and change
4571 by Pedro on 2013-07-04, due to regressions in
4572 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4573
ad0f0303
AB
45742013-07-08 Andrew Burgess <aburgess@broadcom.com>
4575 Pedro Alves <palves@redhat.com>
4576
4577 * value.c (value_bits_valid): If the value is not lval_computed
4578 or has no check validity handler then the answer is the
4579 optimized_out flag, otherwise defer to the handler.
4580
b187bec1
EZ
45812013-07-06 Eli Zaretskii <eliz@gnu.org>
4582
48d1d6f5
EZ
4583 * top.c (print_gdb_configuration): Explain in output of
4584 --configuration what does "relocatable" mean.
4585
b187bec1
EZ
4586 * main.c (print_gdb_help): Regroup options in the --help text.
4587 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4588 the relevant discussions.
4589
52d361e1
YQ
45902013-07-06 Yao Qi <yao@codesourcery.com>
4591
4592 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4593 Remove parameter 'lsal'.
4594 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4595 to inner block. Caller update.
4596 (base_breakpoint_create_breakpoints_sal): Update.
4597 (bkpt_create_breakpoints_sal): Likewise.
4598 (tracepoint_create_breakpoints_sal): Likewise.
4599 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4600 element 0 of vector 'canonical->sals'.
4601
e1ec1b42
LM
46022013-07-05 Luis Machado <lgustavo@codesourcery.com>
4603
4604 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4605 register number instead of the pseudo register one.
4606 (rs6000_dwarf2_reg_to_regnum): Likewise.
4607
7195e6f0
PA
46082013-07-04 Pedro Alves <palves@redhat.com>
4609
4610 * findvar.c (value_of_register): Use allocate_optimized_out_value
4611 if the register has been optimized out, instead of
4612 set_value_optimized_out.
4613 * frame-unwind.c (frame_unwind_got_optimized): Use
4614 allocate_optimized_out_value.
4615
58722cac
PA
46162013-07-04 Pedro Alves <palves@redhat.com>
4617
4618 * value.c (value_bits_valid): If the value is not lval_computed,
4619 or doesn't have a check_validity hook, assume the value is entirely
4620 valid.
4621
691a26f5
AB
46222013-07-04 Andrew Burgess <aburgess@broadcom.com>
4623
4624 * stack.c (read_frame_arg): No longer fetch lazy values.
4625 * value.c (value_optimized_out): If the value is not already
4626 marked optimized out, and is lazy then fetch it.
4627 (value_primitive_field): Move optimized out check to later in the
4628 function, after we have loaded any lazy values.
4629 (value_fetch_lazy): Use optimized out flag directly rather than
4630 calling optimized_out method.
4631
a58e2656
AB
46322013-07-04 Andrew Burgess <aburgess@broadcom.com>
4633
4634 * valops.c: Don't include "user-regs.h".
4635 (value_fetch_lazy): Moved to value.c.
4636 * value.c: Include "user-regs.h".
4637 (value_fetch_lazy): Moved from valops.c.
4638
bd885420
YQ
46392013-07-04 Yao Qi <yao@codesourcery.com>
4640
4641 Revert:
4642 2013-06-27 Yao Qi <yao@codesourcery.com>
4643
4644 * common/create-version.sh: Update comments. Handle the case
4645 that TARGET_ALIAS is empty.
4646
17ef446e
PA
46472013-07-03 Pedro Alves <palves@redhat.com>
4648
4649 * Makefile.in (config.status): Depend on development.sh.
4650 (aclocal_m4_deps): Add libmcheck.m4.
4651 * acinclude.m4: Include libmcheck.m4.
4652 * configure.ac: Source development.sh instead of setting
4653 'development' here. --enable-libmcheck/--disable-libmcheck code
4654 factored out to GDB_AC_LIBMCHECK. Run it.
4655 * development.sh: New file.
4656 * libmcheck.m4: New file.
4657 * configure: Regenerate.
4658
ac6dd50f
TT
46592013-07-02 Tom Tromey <tromey@redhat.com>
4660
4661 * contrib/ari/update-web-ari.sh: Update for version.in change.
4662
bd1df410
TT
46632013-07-02 Tom Tromey <tromey@redhat.com>
4664
4665 * common/ptid.h: Comment fixes.
4666
4db1a1dc
TT
46672013-07-01 Tom Tromey <tromey@redhat.com>
4668
4669 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4670 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4671 (dwarf2_read_index, create_all_comp_units): Update.
4672
dd9aa048
TT
46732013-07-01 Tom Tromey <tromey@redhat.com>
4674
4675 * configure.ac (build_warnings): Add -Wold-style-definition.
4676 * configure: Rebuild.
4677 * machoread.c (_initialize_machoread): Use "(void)".
4678 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4679 use "(void)".
4680
44d100c3
TT
46812013-07-01 Tom Tromey <tromey@redhat.com>
4682
4683 * configure.ac (build_warnings): Add -Wold-style-declaration.
4684 * configure: Rebuild.
4685 * dsrec.c (make_srec): Use "static const", not "const static".
4686 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4687 not "const static".
4688 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4689 Use "static const", not "const static".
4690 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4691 not "const static".
4692 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4693 not "const static".
4694 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4695 not "const static".
4696 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4697 not "const static".
4698 (v850_dbtrap_breakpoint_from_pc): Likewise.
4699 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4700 not "const static".
4701
2945b807
TT
47022013-07-01 Tom Tromey <tromey@redhat.com>
4703
4704 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4705 * configure: Rebuild.
4706
d8d2a3ee
PA
47072013-07-01 Pedro Alves <palves@redhat.com>
4708
4709 * defs.h: Include "pathmax.h".
4710 * utils.c: Don't include sys/param.h.
4711 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4712 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4713 instead of MAXPATHLEN.
4714 * solib-sunos.c: Don't include sys/param.h.
4715 * xcoffread.c: Don't include sys/param.h.
4716 * bsd-kvm.c: Don't include sys/param.h.
4717 * darwin-nat.c: Don't include sys/param.h.
4718 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4719 * darwin-nat-info.c: Don't include sys/param.h.
4720 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4721 MAXPATHLEN.
4722 * i386obsd-nat.c: Don't include sys/param.h.
4723 * inf-child.c: Don't include sys/param.h.
4724 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4725 * linux-fork.c: Don't include sys/param.h.
4726 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4727 * linux-nat.c: Don't include sys/param.h.
4728 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4729 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4730 * m68klinux-nat.c: Don't include sys/param.h.
4731 * nbsd-nat.c: Don't include sys/param.h.
4732 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4733 * ppc-linux-nat.c: Don't include sys/param.h.
4734 * rs6000-nat.c: Don't include sys/param.h.
4735 * spu-linux-nat.c. Don't include sys/param.h.
4736 * windows-nat.c: Don't include sys/param.h.
4737 * xtensa-linux-nat.c: Don't include sys/param.h.
4738 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4739
38ec2207
PA
47402013-07-01 Pedro Alves <palves@redhat.com>
4741
4742 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4743 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4744 * gnulib/aclocal.m4: Regenerate.
4745 * gnulib/config.in: Regenerate.
4746 * gnulib/configure: Regenerate.
4747 * gnulib/import/pathmax.h: New file.
4748 * gnulib/import/Makefile.am: Regenerate.
4749 * gnulib/import/Makefile.in: Regenerate.
4750 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4751 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4752 * gnulib/import/m4/pathmax.m4: New file.
4753
e655c1a2
PA
47542013-07-01 Pedro Alves <palves@redhat.com>
4755
4756 * configure.ac (GDBINIT): Define, depending on host.
4757 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4758 * top.c (PATH_MAX): Delete fallback definition.
4759 (GDBINIT_FILENAME): Delete.
4760 (gdbinit): Reimplement as const char array set to the GDBINIT
4761 string constant.
4762 * top.h (gdbinit): Make const.
4763 * configure, config.in: Regenerate.
4764
50dd9793
PA
47652013-07-01 Pedro Alves <palves@redhat.com>
4766
4767 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4768 * cli/cli-cmds.h (source_script): Likewise.
4769 * exceptions.c (catch_command_errors_const): New function.
4770 * exceptions.h (catch_command_errors_const): Declare.
4771 * main.c (get_init_files): Make parameters const, and adjust.
4772 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4773 'local_gdbinit' locals const. Adjust to use
4774 catch_command_errors_const.
4775 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4776 'local_gdbinit' locals const.
4777
bc7dea8d
PA
47782013-07-01 Pedro Alves <palves@redhat.com>
4779
4780 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4781 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4782 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4783 <unistd.h>.
4784
8839a007
PA
47852013-07-01 Pedro Alves <palves@redhat.com>
4786
4787 Import the "unistd" gnulib module.
4788 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4789 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4790 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4791 import/m4/unistd_h.m4.
4792 * gnulib/aclocal.m4: Renenerate.
4793 * gnulib/config.in: Renenerate.
4794 * gnulib/configure: Renenerate.
4795 * gnulib/import/Makefile.am: Renenerate.
4796 * gnulib/import/Makefile.in: Renenerate.
4797 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4798 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4799 * gnulib/import/m4/off_t.m4: New file.
4800 * gnulib/import/m4/ssize_t.m4: New file.
4801 * gnulib/import/m4/sys_types_h.m4: New file.
4802 * gnulib/import/m4/unistd_h.m4: New file.
4803 * gnulib/import/sys_types.in.h: New file.
4804 * gnulib/import/unistd.c: New file.
4805 * gnulib/import/unistd.in.h: New file.
4806
8c0da261
PA
48072013-07-01 Pedro Alves <palves@redhat.com>
4808
4809 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4810 defined instead of checking HAVE_UNISTD_H.
4811
3574124b
PA
48122013-07-01 Pedro Alves <palves@redhat.com>
4813
4814 Reimport gnulib from scratch.
4815 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4816 import/m4/onceonly.m4.
4817 * gnulib/aclocal.m4: Renegerate.
4818 * gnulib/config.in: Renegerate.
4819 * gnulib/configure: Renegerate.
4820 * gnulib/import/Makefile.in: Renegerate.
4821 * gnulib/import/extra/update-copyright: Renegerate.
4822 * gnulib/import/m4/onceonly.m4: Delete.
4823
702dc4fd
PA
48242013-07-01 Pedro Alves <palves@redhat.com>
4825
4826 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4827
47e1ce27
JK
48282013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4829
4830 Code cleanup.
4831 * remote.c (async_remote_interrupt_twice): Make it static.
4832 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4833
e82839d4
SDJ
48342013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
4835
4836 * ia64-linux-tdep.c: Include <ctype.h>.
4837 (ia64_linux_stap_is_single_operand): New function.
4838 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4839
d6c2da54
TT
48402013-06-28 Tom Tromey <tromey@redhat.com>
4841
4842 * Makefile.in (version.c): Use version.in, not
4843 common/version.in.
4844 * common/create-version.sh: Likewise.
4845 * common/version.in: Move...
4846 * version.in: ...here.
4847
74da6f00
PA
48482013-06-28 Pedro Alves <palves@redhat.com>
4849
4850 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4851 here.
4852 * utils.h (pagination_enabled): Declare.
4853
d32dc48e
PA
48542013-06-28 Pedro Alves <palves@redhat.com>
4855
4856 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4857 Move higher up in file.
4858
0edd9e3b
TT
48592013-06-28 Tom Tromey <tromey@redhat.com>
4860
4861 * tracepoint.c (deprecated_readline_begin_hook)
4862 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4863 declare.
4864
4eb59108
PA
48652013-06-28 Pedro Alves <palves@redhat.com>
4866
4867 PR tui/14880
4868 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4869 checking if they're available.
4870 * value.c (value_available_contents_eq): Change comment.
4871 * value.h (value_available_contents_eq): Expand comment.
4872
97b17156
TT
48732013-06-27 Tom Tromey <tromey@redhat.com>
4874
4875 * target.c (find_run_target): Remove.
4876 * target.h (find_run_target): Remove.
4877
6a3bfc5c
TT
48782013-06-27 Tom Tromey <tromey@redhat.com>
4879
4880 * corelow.c (core_gdbarch): Now static.
4881
c9ef825d
TT
48822013-06-27 Tom Tromey <tromey@redhat.com>
4883
4884 * target.c (target_struct_index): Remove.
4885
e5823f1c
PA
48862013-06-27 Pedro Alves <palves@redhat.com>
4887
4888 * infrun.c: Remove comment describing the 'stepping over runtime
4889 loader dynamic symbol resolution code' mechanism; moved to
4890 gdbint.texinfo.
4891
97f8dd09
PA
48922013-06-27 Pedro Alves <palves@redhat.com>
4893
4894 * exceptions.c (catch_command_errors): Remove spurious space.
4895 * exceptions.h (catch_command_errors): Second parameter is "arg",
4896 not "command".
4897
02b1871e
YQ
48982013-06-27 Yao Qi <yao@codesourcery.com>
4899
4900 * common/create-version.sh: Update comments. Handle the case
4901 that TARGET_ALIAS is empty.
4902
bb1b1cf1
PA
49032013-06-26 Pedro Alves <palves@redhat.com>
4904
4905 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4906 comment.
4907
7b624e71
PA
49082013-06-26 Pedro Alves <palves@redhat.com>
4909
4910 * infrun.c: Update comments on stepping over runtime loader
4911 dynamic symbol resolution code.
4912
74e5a346
SDJ
49132013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4914
4915 * ax-gdb.h (union exp_element): Forward declare.
4916 * parser-defs.h: Include expression.h.
4917
a2fb2cee
MR
49182013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4919
4920 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4921
cdba14e0
DK
49222013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4923
4924 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4925
f30aa5af
DK
49262013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4927
4928 Fix trace-status to output proper start-time and stop-time.
4929 * tracepoint.c (trace_status_command): Fix type of printf arg to
4930 prevent improper type conversion.
4931 (trace_status_mi): Likewise.
4932
1aee363c
MR
49332013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4934
4935 * mips-tdep.c (mips_next_pc): Fix a typo.
4936
3356937a
MR
49372013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4938
4939 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4940
dc673c81
YQ
49412013-06-26 Pedro Alves <pedro@codesourcery.com>
4942 Yao Qi <yao@codesourcery.com>
4943
4944 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4945 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4946 * mi/mi-main.c (print_variable_or_computed): New function.
4947 (mi_cmd_trace_frame_collected): New function.
4948 * tracepoint.c (find_trace_state_variable_by_number): New.
4949 (struct traceframe_info): Move to tracepoint.h
4950 (struct collection_list): Likewise.
4951 (do_collect_symbol): Include locals and arguments in the
4952 collected variables list.
4953 (clear_collection_list): Clear wholly collected variables list
4954 and computed variables list.
4955 (append_exp): New function.
4956 (encode_actions_1): Include variables in the wholly
4957 collected variables list. Include memory ranges and
4958 full-fledged expressions in the computed expressions list.
4959 (encode_actions): Move some code to ...
4960 Return the cleanup chain.
4961 (encode_actions_rsp): ... here. New function.
4962 (get_traceframe_location, get_traceframe_info): Remove static.
4963 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4964 (struct collection_list): Moved from tracepoint.c. Add two
4965 new fields 'wholly_collected' and 'computed'.
4966 (find_trace_state_variable_by_number): Declare.
4967 (encode_actions): Adjust declaration.
4968 (encode_actions_rsp): Declare.
4969 (get_traceframe_info, get_traceframe_location): Declare.
4970
4971 * NEWS: Mention new MI command -trace-frame-collected.
4972
28a93511
YQ
49732013-06-26 Pedro Alves <pedro@codesourcery.com>
4974 Yao Qi <yao@codesourcery.com>
4975
4976 * ctf.c (ctf_traceframe_info): Push trace state variables
4977 present in the trace data into the traceframe info object.
4978 * breakpoint.c (DEF_VEC_I): Remove.
4979 * common/filestuff.c (DEF_VEC_I): Likewise.
4980 * dwarf2loc.c (DEF_VEC_I): Likewise.
4981 * mi/mi-main.c (DEF_VEC_I): Likewise.
4982 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4983 * features/traceframe-info.dtd: Add tvar element and its
4984 attributes.
4985 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4986 (build_traceframe_info): Push trace state variables present in
4987 the trace data into the traceframe info object.
4988 (traceframe_info_start_tvar): New function.
4989 (tvar_attributes): New.
4990 (traceframe_info_children): Add "tvar" element.
4991 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4992
4993 * NEWS: Mention the change in GDB and GDBserver.
4994
ddacd3c8
YQ
49952013-06-26 Pedro Alves <pedro@codesourcery.com>
4996 Yao Qi <yao@codesourcery.com>
4997
4998 * tracepoint.c (trace_dump_command): Move code to ...
4999 (get_traceframe_location): ... here. New.
5000
05796b35
YQ
50012013-06-26 Pedro Alves <pedro@codesourcery.com>
5002 Yao Qi <yao@codesourcery.com>
5003
5004 * tracepoint.c (trace_dump_command): GDB emits an error
5005 instead of a warning when a traceframe is not selected.
5006
cbfa3b61
YQ
50072013-06-26 Pedro Alves <pedro@codesourcery.com>
5008 Yao Qi <yao@codesourcery.com>
5009
5010 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5011 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5012 in collection_list.
5013 (do_clear_collection_list, init_collection_list): New.
5014 (encode_actions): Add local variables 'tracepoint_list' and
5015 'stepping_list'. Call init_collection_list and make cleanup
5016 which calls do_clear_collection_list. Don't call
5017 clear_collection_list.
5018 (_initialize_tracepoint): Delete references to
5019 'tracepoint_list' and 'stepping_list'.
5020
6e2048d3
TT
50212013-06-25 Tom Tromey <tromey@redhat.com>
5022
5023 * common/create-version.sh (date): Use "$", not "$$" in sed
5024 expression.
5025
42059f0e
KB
50262013-06-25 Kevin Buettner <kevinb@redhat.com>
5027
5028 * NEWS (New targets): Add entry for TI MSP430.
5029
a0743c90
YQ
50302013-06-25 Yao Qi <yao@codesourcery.com>
5031
5032 * remote.c (remote_start_remote): Move code to upload tsv
5033 earlier.
5034
9d6e6e84
HZ
50352013-06-25 Yao Qi <yao@codesourcery.com>
5036 Hui Zhu <hui@codesourcery.com>
5037 Pedro Alves <palves@redhat.com>
5038
5039 PR breakpoints/15075
5040 PR breakpoints/15434
5041 * breakpoint.c (bpstat_stop_status): Call
5042 b->ops->after_condition_true.
5043 (update_dprintf_command_list): Don't append "continue" command
5044 to the command list of dprintf breakpoint.
5045 (base_breakpoint_after_condition_true): New function.
5046 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5047 (dprintf_after_condition_true): New function.
5048 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5049 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5050
586cf749
KB
50512013-06-24 Kevin Buettner <kevinb@redhat.com>
5052
5053 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5054 (ALLDEPFILES): Add msp430-tdep.c.
5055 * configure.tgt (msp430*-*-elf): New target.
5056 * msp430-tdep.c: New file.
5057
1bbce132
MR
50582013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5059
5060 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5061 microMIPS synthetic symbols.
5062
3e5d3a5a
MR
50632013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5064
5065 * objfiles.h (pc_in_section): New prototype.
5066 (in_plt_section): Remove name argument, replace prototype with
5067 static inline function.
5068 * mips-tdep.h: Include "objfiles.h".
5069 (in_mips_stubs_section): New function.
5070 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5071 in_solib_call_trampoline member.
5072 (hppa_in_solib_call_trampoline): Remove name argument.
5073 * objfiles.c (pc_in_section): New function.
5074 (in_plt_section): Remove function.
5075 * mips-linux-tdep.c: Include "objfiles.h".
5076 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5077 name argument. Return 1 rather than the low 16-bit halfword of
5078 any instruction examined.
5079 (mips_linux_in_dynsym_resolve_code): Update
5080 mips_linux_in_dynsym_stub call accordingly.
5081 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5082 rather than an equivalent hand-coded sequence.
5083 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5084 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5085 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5086 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5087 in_opd_section.
5088 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5089 on call to tdep->in_solib_call_trampoline.
5090 (hppa_in_solib_call_trampoline): Remove name argument, update
5091 according to in_plt_section change.
5092 (hppa_skip_trampoline_code): Update according to in_plt_section
5093 change.
5094 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5095 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5096 Likewise.
5097 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5098 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5099 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5100 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5101 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5102 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5103 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5104 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5105 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5106 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5107 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5108 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5109 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5110
b9b26a16
JB
51112013-06-24 Joel Brobecker <brobecker@adacore.com>
5112
5113 * common/create-version.sh: Fix expansion of $host_alias
5114 and $target_alias in generation of HOST_NAME and TARGET_NAME
5115 (resp.).
5116
01208463
TT
51172013-06-24 Tom Tromey <tromey@redhat.com>
5118
5119 * common/create-version.sh: New file.
5120 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5121 create-version.sh.
5122 (HFILES_NO_SRCDIR): Use common/version.h.
5123 * version.in: Move to ...
5124 * common/version.in: ... here. Replace date with "DATE".
5125 * version.h: Move to ...
5126 * common/version.h: ... here.
5127
bb6b9a5e
JB
51282013-06-21 Joel Brobecker <brobecker@adacore.com>
5129
5130 * gdb/gnulib/Makefile.in: Update date in copyright header.
5131 * gdb/gnulib/configure.ac: Ditto.
5132 * gdb/gnulib/update-gnulib.sh: Ditto.
5133
c3b18ee7
JB
51342013-06-21 Joel Brobecker <brobecker@adacore.com>
5135
5136 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5137 "gdb/gnulib/import".
5138
85d3b769
WN
51392013-06-21 Will Newton <will.newton@linaro.org>
5140
5141 * doublest.c (ldfrexp): Remove function.
5142 (convert_doublest_to_floatformat): Call frexpl instead of
5143 ldfrexp.
5144
88b48903
WN
51452013-06-21 Will Newton <will.newton@linaro.org>
5146
5147 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5148 * gnulib/aclocal.m4: Regenerate.
5149 * gnulib/config.in: Regenerate.
5150 * gnulib/configure: Regenerate.
5151 * gnulib/import/Makefile.am: Update.
5152 * gnulib/import/Makefile.in: Update.
5153 * gnulib/import/m4/gnulib-cache.m4: Update.
5154 * gnulib/import/m4/gnulib-comp.m4: Update.
5155 * gnulib/import/float+.h: Import.
5156 * gnulib/import/float.c: Import.
5157 * gnulib/import/float.in.h: Import.
5158 * gnulib/import/fpucw.h: Import.
5159 * gnulib/import/frexp.c: Import.
5160 * gnulib/import/frexpl.c: Import.
5161 * gnulib/import/isnan.c: Import.
5162 * gnulib/import/isnand-nolibm.h: Import.
5163 * gnulib/import/isnand.c: Import.
5164 * gnulib/import/isnanl-nolibm.h: Import.
5165 * gnulib/import/isnanl.c: Import.
5166 * gnulib/import/itold.c: Import.
5167 * gnulib/import/m4/exponentd.m4: Import.
5168 * gnulib/import/m4/exponentl.m4: Import.
5169 * gnulib/import/m4/float_h.m4: Import.
5170 * gnulib/import/m4/fpieee.m4: Import.
5171 * gnulib/import/m4/frexp.m4: Import.
5172 * gnulib/import/m4/frexpl.m4: Import.
5173 * gnulib/import/m4/isnand.m4: Import.
5174 * gnulib/import/m4/isnanl.m4: Import.
5175 * gnulib/import/m4/math_h.m4: Import.
5176 * gnulib/import/math.c: Import.
5177 * gnulib/import/math.in.h: Import.
5178
4353c9e6
JK
51792013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5180
5181 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5182 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5183 signature_INTEL_edx comparisons.
5184
e3e06db3
DE
51852013-06-20 Doug Evans <dje@google.com>
5186
6ac97d4c
DE
5187 symtab/15652
5188 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5189 All callers updated.
5190 (open_dwp_file): If we can't find the dwp file, search the basename
5191 in debug-file-directory.
5192
93417882
DE
5193 * dwarf2read.c (struct dwp_file): Fix comment.
5194 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5195
e3e06db3
DE
5196 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5197 better.
5198
0878d0fa
YQ
51992013-06-20 Yao Qi <yao@codesourcery.com>
5200
5201 * breakpoint.c (create_breakpoint): Fix code indentation.
5202
023fa29b
YQ
52032013-06-20 Yao Qi <yao@codesourcery.com>
5204
5205 * breakpoint.c (create_breakpoints_sal_default): Remove
5206 parameter 'lsal'. Update declaration.
5207 (bkpt_create_breakpoints_sal): Caller update.
5208 (tracepoint_create_breakpoints_sal): Likewise.
5209
c898adb7
YQ
52102013-06-20 Pedro Alves <pedro@codesourcery.com>
5211 Yao Qi <yao@codesourcery.com>
5212
5213 * NEWS: Mention the new option '--skip-unavailable' of command
5214 -data-list-register-values.
5215 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5216 --skip-unavailable option. Adjust to use output_register.
5217 (output_register): Add new 'skip_unavailable' parameter.
5218 Handle it.
5219
4d157a3d
MF
52202013-06-19 Mike Frysinger <vapier@gentoo.org>
5221
5222 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5223 common/i386-gcc-cpuid.h.
5224 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5225 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5226 Copy the latest version from upstream gcc.
5227 * common/linux-btrace.c: Include i386-cpuid.h.
5228 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5229 call to i386_cpuid.
5230 (cpu_supports_btrace): Likewise.
5231 * go32-nat.c: Include i386-cpuid.h.
5232 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5233
1ce4db08
DE
52342013-06-19 Doug Evans <dje@google.com>
5235
5236 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5237 (get_section_index): Ditto.
5238
0e4777df
TT
52392013-06-19 Tom Tromey <tromey@redhat.com>
5240
5241 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5242 "dprintf" help.
5243
3190f0c6
DE
52442013-06-18 Doug Evans <dje@google.com>
5245
5246 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5247 before using it.
5248 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5249 Move test of cu_index closer to use. Print complaint if cu_index
5250 is bad.
5251
8b89a20a
JB
52522013-06-18 Joel Brobecker <brobecker@adacore.com>
5253
5254 * machoread.c (oso_vector): Delete this global.
5255 (macho_register_oso): Add new parameter "oso_vector_ptr".
5256 Use it instead of the "oso_vector" global.
5257 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5258 (macho_symfile_read): Use a local oso_vector, to be free'ed
5259 at the end of this function, in place of the old "oso_vector"
5260 global. Update various function calls accordingly. Use one
5261 single cleanup chain for the entire function.
5262
59b0c7c1
JB
52632013-06-18 Joel Brobecker <brobecker@adacore.com>
5264
937c708c 5265 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
5266 DWARF2_PER_OBJFILE by uses of DATA instead.
5267
427cd150
TT
52682013-06-18 Tom Tromey <tromey@redhat.com>
5269
5270 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5271 argument.
5272 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5273 Special case signals other than GDB_SIGNAL_TRAP.
5274 (explains_signal_watchpoint): New function.
5275 (base_breakpoint_explains_signal): Add 'sig' argument.
5276 (initialize_breakpoint_ops): Set 'explains_signal' method for
5277 watchpoints.
5278 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5279 signal argument.
5280 (bpstat_explains_signal): Likewise.
5281 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5282
2d57700b
TT
52832013-06-18 Tom Tromey <tromey@redhat.com>
5284
5285 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5286
ac475191
TT
52872013-06-18 Tom Tromey <tromey@redhat.com>
5288
5289 * python/python.c (finish_python_initialization): Decref
5290 'pythondir' on failure path as well.
5291
5bd1ef56
TT
52922013-06-18 Tom Tromey <tromey@redhat.com>
5293
5294 PR symtab/15391:
5295 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5296 after taking bits_to_skip into account. Sign extend byte_offset.
5297 * utils.h (gdb_sign_extend): Declare.
5298 * utils.c (gdb_sign_extend): New function.
5299
92fac807
JK
53002013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5301
5302 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5303
2d503272
PM
53042013-06-17 Pierre Muller <muller@sourceware.org>
5305
5306 * corelow.c (core_open): Print GDB signal name instead of target
5307 signal number.
5308
6916fd98
MF
53092013-06-17 Mike Frysinger <vapier@gentoo.org>
5310
5311 * .gitignore: Add /gcore.
5312
9c02c129
DE
53132013-06-13 Doug Evans <dje@google.com>
5314
5315 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5316 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5317
d0548fa2
PM
53182013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5319
5320 * stack.c (backtrace_command_1): Fix indentation.
5321
22128028
JB
53222013-06-11 Joel Brobecker <brobecker@adacore.com>
5323
5324 * window-nat.c (thread_rec): Add missing empty line after
5325 local variable declaration.
5326
2ed3e009
JB
53272013-06-11 Joel Brobecker <brobecker@adacore.com>
5328
5329 * windows-nat.c (thread_rec): Revert format used to print
5330 error code returned by SuspendThread from %d back to %u.
5331
0c3d84be
JB
53322013-06-11 Joel Brobecker <brobecker@adacore.com>
5333
5334 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5335 ID in debug trace.
5336 (get_windows_debug_event): Likewise, for all debug traces.
5337
80e88e1a
JB
53382013-06-11 Joel Brobecker <brobecker@adacore.com>
5339
5340 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5341 warning message.
5342
1edebdbf
YQ
53432013-06-08 Pedro Alves <pedro@codesourcery.com>
5344 Yao Qi <yao@codesourcery.com>
5345
5346 * mi/mi-main.c (get_register): Remove declaration.
5347 (output_register): Declare.
5348 (mi_cmd_data_list_register_values): Remove local variable
5349 'tuple_cleanup'. Move some code into output_register.
5350 (get_register): Renamed to ...
5351 (output_register): ... this. Output the register's
5352 "number" ui_out tuple here.
5353
47d48711
PA
53542013-06-07 Pedro Alves <palves@redhat.com>
5355
5356 * darwin-nat.c: Fix formating in copyright header.
5357 * darwin-nat.h: Likewise.
5358 * gnu-nat.c: Likewise.
5359 * machoread.c: Likewise.
5360
3aee8918
PA
53612013-06-07 Pedro Alves <palves@redhat.com>
5362
5f2b57b5 5363 PR server/14823
3aee8918
PA
5364 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5365 static. Output a global target description pointer.
5366 (init_registers_${name}): Adjust to initialize a
5367 target description structure.
5368
fe8400b4
WN
53692013-06-07 Will Newton <will.newton@linaro.org>
5370
5371 * printcmd.c (build_address_symbolic): Call
5372 gdbarch_addr_bits_remove for text minimal symbols.
5373
20df6206
WN
53742013-06-07 Will Newton <will.newton@linaro.org>
5375
5376 * MAINTAINERS: Add myself to Write After Approval.
5377
aef525cb
YQ
53782013-06-07 Yao Qi <yao@codesourcery.com>
5379
5380 * tracepoint.c (start_tracing): Move code to ...
5381 (trace_reset_local_state): ... here. New.
5382 (disconnect_tracing): Don't call set_current_traceframe,
5383 set_tracepoint_num, and set_traceframe_context. Call
5384 trace_reset_local_state instead.
5385 (tfile_close): Call trace_reset_local_state.
5386 * ctf.c (ctf_close): Likewise.
5387 * remote.c (remote_close): Likewise.
5388 * tracepoint.h (trace_reset_local_state): Declare.
5389
d2415c6c
DE
53902013-06-06 Doug Evans <dje@google.com>
5391
5392 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5393 and fix header docs.
5394
69fc87c2
DE
53952013-06-05 Doug Evans <dje@google.com>
5396 Keith Seitz <keiths@redhat.com>
5397
5398 PR 15519
5399 * cp-namespace.c (find_symbol_in_baseclass): Call
5400 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5401 Check result of call to lookup_symbol_static.
5402 Call lookup_static_symbol_aux unconditionally.
5403 Call check_typedef on base types before accessing them.
5404 (cp_lookup_nested_symbol): Fix comment.
5405
a513d1e8
LM
54062013-06-05 Luis Machado <lgustavo@codesourcery.com>
5407
5408 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5409 minimal symbols pointing to function descriptors.
5410
351a6f02
TT
54112013-06-05 Tom Tromey <tromey@redhat.com>
5412
5413 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5414
5e1b953b 54152013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 5416 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
5417
5418 * remote.c (remote_wait_as): Restore signal handler before returning
5419 when GDB gets a notification.
5420
f9e14852
GB
54212013-06-04 Gary Benson <gbenson@redhat.com>
5422
8445cbf1 5423 PR 2328
f9e14852
GB
5424 * breakpoint.h (handle_solib_event): Moved function declaration
5425 to solib.h.
5426 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5427 (bpstat_stop_status): Pass new argument to handle_solib_event.
5428 * solib.h (update_solib_breakpoints): New function declaration.
5429 (handle_solib_event): Moved function declaration from
5430 breakpoint.h.
5431 * solib.c (update_solib_breakpoints): New function.
5432 (handle_solib_event): Moved function from breakpoint.c.
5433 Updated to call solib_ops->handle_event if not NULL.
5434 * solist.h (target_so_ops): New fields "update_breakpoints" and
5435 "handle_event".
5436 * infrun.c (set_stop_on_solib_events): New function.
5437 (_initialize_infrun): Use the above for "set
5438 stop-on-solib-events".
5439 (handle_inferior_event): Pass new argument to handle_solib_event.
5440 * solib-svr4.c (probe.h): New include.
5441 (svr4_free_library_list): New forward declaration.
5442 (probe_action): New enum.
5443 (probe_info): New struct.
5444 (probe_info): New static variable.
5445 (NUM_PROBES): New definition.
5446 (svr4_info): New fields "using_xfer", "probes_table" and
5447 "solib_list".
5448 (free_probes_table): New function.
5449 (free_solib_list): New function.
5450 (svr4_pspace_data_cleanup): Free probes table and solib list.
5451 (svr4_copy_library_list): New function.
5452 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5453 (svr4_read_so_list): New parameter "prev_lm".
5454 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5455 (svr4_current_sos): New function.
5456 (probe_and_action): New struct.
5457 (hash_probe_and_action): New function.
5458 (equal_probe_and_action): Likewise.
5459 (register_solib_event_probe): Likewise.
5460 (solib_event_probe_at): Likewise.
5461 (solib_event_probe_action): Likewise.
5462 (solist_update_full): Likewise.
5463 (solist_update_incremental): Likewise.
5464 (disable_probes_interface_cleanup): Likewise.
5465 (svr4_handle_solib_event): Likewise.
5466 (svr4_update_solib_event_breakpoint): Likewise.
5467 (svr4_update_solib_event_breakpoints): Likewise.
5468 (svr4_create_solib_event_breakpoints): Likewise.
5469 (enable_break): Free probes table before creating breakpoints.
5470 Use svr4_create_solib_event_breakpoints to create breakpoints.
5471 (svr4_solib_create_inferior_hook): Free the solib list.
5472 (_initialize_svr4_solib): Initialise
5473 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5474
ced63ec0
GB
54752013-06-04 Gary Benson <gbenson@redhat.com>
5476
5477 * target.h (target_ops): New field
5478 "to_augmented_libraries_svr4_read".
5479 (target_augmented_libraries_svr4_read): New macro.
5480 * target.c (update_current_target): Handle
5481 to_augmented_libraries_svr4_read.
5482 * remote.c (remote_state): New field
5483 "augmented_libraries_svr4_read".
5484 (remote_augmented_libraries_svr4_read_feature): New function.
5485 (remote_protocol_features): Add entry for
5486 "augmented-libraries-svr4-read".
5487 (remote_augmented_libraries_svr4_read): New function.
5488 (init_remote_ops): Initialize
5489 remote_ops.to_augmented_libraries_svr4_read.
5490
7f91dbec
GB
54912013-06-04 Gary Benson <gbenson@redhat.com>
5492
5493 * NEWS: Update.
5494
607ece04
GB
54952013-06-04 Gary Benson <gbenson@redhat.com>
5496
5497 * objfiles.h (inhibit_section_map_updates): New function
5498 declaration.
5499 (resume_section_map_updates): Likewise.
5500 (resume_section_map_updates_cleanup): Likewise.
5501 * objfiles.c (objfile_pspace_info): Removed field
5502 "objfiles_changed_p". New fields "new_objfiles_available",
5503 "section_map_dirty" and "inhibit_updates".
5504 (allocate_objfile): Set new_objfiles_available.
5505 (free_objfile): Set section_map_dirty.
5506 (objfile_relocate1): Likewise.
5507 (in_plt_section): Likewise.
5508 (find_pc_section): Update the conditions under which the
5509 section map will be updated.
5510 (inhibit_section_map_updates): New function.
5511 (resume_section_map_updates): Likewise.
5512 (resume_section_map_updates_cleanup): Likewise.
5513
9ee6a5ac
GB
55142013-06-04 Gary Benson <gbenson@redhat.com>
5515
5516 * probe.h (get_probe_argument_count): New declaration.
5517 (evaluate_probe_argument): Likewise.
5518 * probe.c (get_probe_argument_count): New function.
5519 (evaluate_probe_argument): Likewise.
5520 (probe_safe_evaluate_at_pc): Use the above new functions.
5521
845d4708
AM
55222013-06-04 Alan Modra <amodra@gmail.com>
5523
5524 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5525 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5526 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5527 target mem reads on optional insns.
5528 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5529 ppc_insns_match_pattern calls.
5530 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5531 Add match for power7 thread safety insns, and new order of
5532 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5533 invocation in comment, and update rest of comment.
5534 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5535 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5536 (ppc64_standard_linkage2_target): Update insn offsets.
5537 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5538 stubs first. Update calls.
5539
404e278f
YQ
55402013-06-04 Yao Qi <yao@codesourcery.com>
5541
5542 * solib.c (solib_find): Don't need dir separator if path has
5543 drive spec.
5544
f6aea118
JB
55452013-06-03 Joel Brobecker <brobecker@adacore.com>
5546
5547 Revert (indirectly causes a SIGSEGV):
5548 * machoread.c (macho_symfile_read): Assign first cleanup to
5549 'back_to'.
5550
87967e27
YQ
55512013-06-03 Yao Qi <yao@codesourcery.com>
5552
5553 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5554 mi-parse.c. Make them static.
5555 (mi_all_values): Likewise.
5556 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5557 mi_parse_print_values. Make it external.
5558 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5559 Remove the declarations.
5560 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5561 * mi/mi-parse.h (mi_parse_print_values): Declare.
5562 * mi/mi-cmd-stack.c: Include mi-parse.h.
5563 (parse_print_values): Remove
5564 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5565 of parse_print_values.
5566 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5567
3ca73e0c
YQ
55682013-05-31 Pedro Alves <pedro@codesourcery.com>
5569 Yao Qi <yao@codesourcery.com>
5570
5571 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5572 (encode_actions): Move code to ...
5573 (all_tracepoint_actions_and_cleanup): ... here. New.
5574 (trace_dump_command): Likewise.
5575
4e993a19
TT
55762013-05-30 Tom Tromey <tromey@redhat.com>
5577
5578 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5579
e3b76b4f
TT
55802013-05-30 Tom Tromey <tromey@redhat.com>
5581
5582 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5583 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5584 'old_chain' argument. Add 'parser_result' argument.
5585 (gdb_xml_create_parser_and_cleanup): Remove old version.
5586 (gdb_xml_parse_quick): Update.
5587 (xml_process_xincludes): Update.
5588 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5589 declare.
5590
db26349c
TT
55912013-05-30 Tom Tromey <tromey@redhat.com>
5592
5593 * probe.c (collect_probes): Check arguments for NULL before
5594 calling compile_rx_or_error.
5595 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5596 Remove NULL return.
5597
77f9e713
TT
55982013-05-30 Tom Tromey <tromey@redhat.com>
5599
5600 * infrun.c (adjust_pc_after_break): Introduce an outer null
5601 cleanup.
5602
45475de7
TT
56032013-05-30 Tom Tromey <tromey@redhat.com>
5604
5605 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5606
ac5007fd
TT
56072013-05-30 Tom Tromey <tromey@redhat.com>
5608
5609 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5610 for 'old_chain'. Do not check 'head' before processing
5611 cleanups.
5612
cd82eddc
TT
56132013-05-30 Tom Tromey <tromey@redhat.com>
5614
5615 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5616 "cleanup_tuple".
5617
57cee33a
TT
56182013-05-30 Tom Tromey <tromey@redhat.com>
5619
5620 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5621 inner scope. Unconditionally call do_cleanups.
5622
795d915c
TT
56232013-05-30 Tom Tromey <tromey@redhat.com>
5624
5625 * source.c (find_and_open_source): Call do_cleanups.
5626
1fc3cf4a
TT
56272013-05-30 Tom Tromey <tromey@redhat.com>
5628
5629 * linux-thread-db.c (thread_db_load_search): Unconditionally
5630 call do_cleanups.
5631
e35ac9bf
TT
56322013-05-30 Tom Tromey <tromey@redhat.com>
5633
5634 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5635 for 'cleanup'; instead use a later one.
5636
f3300387
TT
56372013-05-30 Tom Tromey <tromey@redhat.com>
5638
5639 * python/py-breakpoint.c (bppy_get_commands): Use
5640 explicit, unconditional return.
5641 * python/py-frame.c (frapy_read_var): Likewise.
5642 * python/python.c (gdbpy_decode_line): Likewise.
5643
c27e16e3
TT
56442013-05-30 Tom Tromey <tromey@redhat.com>
5645
5646 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5647 do_cleanups on all return paths.
5648
5ae85e44
TT
56492013-05-30 Tom Tromey <tromey@redhat.com>
5650
5651 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5652
73b8d9da
TT
56532013-05-30 Tom Tromey <tromey@redhat.com>
5654
5655 * stabsread.c (read_struct_type): Call do_cleanups along
5656 all return paths.
5657
7d266584
MR
56582013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
5659
5660 * mips-linux-tdep.c: Adjust formatting throughout.
5661
0f900f54
TT
56622013-05-30 Tom Tromey <tromey@redhat.com>
5663
5664 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5665 along all return paths.
5666
a991ac28
TT
56672013-05-30 Tom Tromey <tromey@redhat.com>
5668
5669 * symfile.c (find_separate_debug_file): Call do_cleanups
5670 along all return paths.
5671
1abaf042
TT
56722013-05-30 Tom Tromey <tromey@redhat.com>
5673
5674 * symtab.c (search_symbols): Introduce a null cleanup for
5675 'retval_chain'.
5676
edefe1da
TT
56772013-05-30 Tom Tromey <tromey@redhat.com>
5678
5679 * python/py-value.c (valpy_binop): Call do_cleanups before
5680 exiting loop.
5681
54f72dcc
TT
56822013-05-30 Tom Tromey <tromey@redhat.com>
5683
5684 * python/py-prettyprint.c (print_children): Remove extra
5685 do_cleanups call.
5686
af1c6971
TT
56872013-05-30 Tom Tromey <tromey@redhat.com>
5688
5689 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5690 all return paths.
5691
b862ce75
TT
56922013-05-30 Tom Tromey <tromey@redhat.com>
5693
5694 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5695 along all return paths.
5696
e12fefc8
TT
56972013-05-30 Tom Tromey <tromey@redhat.com>
5698
5699 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5700 call do_cleanups.
5701
4867f990
TT
57022013-05-30 Tom Tromey <tromey@redhat.com>
5703
5704 * varobj.c (c_value_of_root): Call do_cleanups along all
5705 return paths.
5706
4fd2d6af
TT
57072013-05-30 Tom Tromey <tromey@redhat.com>
5708
5709 * tracepoint.c (trace_dump_command): Unconditionally call
5710 do_cleanups.
5711
752eb8b4
TT
57122013-05-30 Tom Tromey <tromey@redhat.com>
5713
5714 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5715 do_cleanups earlier.
5716
e42d0aa5
TT
57172013-05-30 Tom Tromey <tromey@redhat.com>
5718
5719 * machoread.c (macho_symfile_read): Assign first cleanup to
5720 'back_to'.
5721
4bbc010a
TT
57222013-05-30 Tom Tromey <tromey@redhat.com>
5723
5724 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5725
b9635925
TT
57262013-05-30 Tom Tromey <tromey@redhat.com>
5727
5728 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5729
25f43500
TT
57302013-05-30 Tom Tromey <tromey@redhat.com>
5731
5732 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5733 call discard_cleanups.
5734 (inf_ptrace_attach): Likewise.
5735
d6a2e54a
TT
57362013-05-30 Tom Tromey <tromey@redhat.com>
5737
5738 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5739 return paths.
5740 (mips_initialize): Likewise.
5741 (common_open): Call do_cleanups.
5742
48be7c1b
TT
57432013-05-30 Tom Tromey <tromey@redhat.com>
5744
5745 * utils.c (internal_vproblem): Call do_cleanups.
5746
e61727ab
TT
57472013-05-30 Tom Tromey <tromey@redhat.com>
5748
5749 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5750
b81b921f
TT
57512013-05-30 Tom Tromey <tromey@redhat.com>
5752
5753 * cli/cli-script.c (setup_user_args): Don't return after error.
5754
fe48dfb1
TT
57552013-05-30 Tom Tromey <tromey@redhat.com>
5756
5757 * somread.c (som_symtab_read): Call do_cleanups.
5758
27833de7
TT
57592013-05-30 Tom Tromey <tromey@redhat.com>
5760
5761 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5762
5b3fca71
TT
57632013-05-30 Tom Tromey <tromey@redhat.com>
5764
5765 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5766 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5767 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5768 * source.c (show_substitute_path_command): Call do_cleanups.
5769 (unset_substitute_path_command, set_substitute_path_command):
5770 Likewise.
5771 * symfile.c (load_command): Call do_cleanups.
5772
af83e3f8
TT
57732013-05-30 Tom Tromey <tromey@redhat.com>
5774
5775 * contrib/cleanup_check.py: New file.
5776 * contrib/gcc-with-excheck: Add option parsing.
5777
564eac42
JB
57782013-05-30 Joel Brobecker <brobecker@adacore.com>
5779
5780 * windows-nat.c (windows_delete_thread): Add missing space
5781 in cast expression.
5782
47902076
HAQ
57832013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
5784
5785 * inferior.c (top level): Include tilde.h.
5786 (add_inferior_command): Call tilde_expand on the value of 'exec'
5787 argument.
5788
23da373a
YQ
57892013-05-30 Pedro Alves <pedro@codesourcery.com>
5790 Yao Qi <yao@codesourcery.com>
5791
5792 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5793 Caller update.
5794 (encode_actions): Likewise.
5795 * remote.c (remote_download_tracepoint): Caller update.
5796 * tracepoint.h (encode_actions): Update declaration.
5797
a6e6f791
PA
57982013-05-30 Pedro Alves <palves@redhat.com>
5799
5800 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5801 pointer.
5802
36d25514
YQ
58032013-05-30 Yao Qi <yao@codesourcery.com>
5804
5805 * remote.c (remote_check_symbols): Remove unused parameter
5806 'objfile'.
5807 Declaration update.
5808 (remote_start_remote, remote_new_objfile): Caller update.
5809
62a813cc
YQ
58102013-05-30 Yao Qi <yao@codesourcery.com>
5811
5812 * mi/mi-cmds.c (mi_cmds): Define MI command
5813 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5814 DEF_MI_CMD_CLI.
5815
28439a30
PA
58162013-05-29 Pedro Alves <palves@redhat.com>
5817
5818 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5819 (remote_insert_watchpoint, remote_remove_watchpoint)
5820 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5821 (remote_verify_memory, compare_sections_command)
5822 (remote_search_memory): Set the general process/thread on the
5823 remote side.
5824
6ac1c082
PA
58252013-05-29 Pedro Alves <palves@redhat.com>
5826
5827 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5828 (_initialize_aarch64_tdep): Don't call
5829 initialize_tdesc_aarch64_without_fpu.
5830 * features/Makefile (WHICH): Remove reference to
5831 aarch64-without-fpu.
5832 * features/aarch64-without-fpu.c: Delete file.
5833 * regformats/aarch64-without-fpu.dat: Delete file.
5834
a73e3634
YQ
58352013-05-28 Yao Qi <yao@codesourcery.com>
5836
5837 * tracepoint.c (stringify_collection_list): Remove parameter
5838 'string'.
5839 (encode_actions): Caller update. Remove local variables.
5840
c0ea94eb
YQ
58412013-05-24 Yao Qi <yao@codesourcery.com>
5842
5843 * tracepoint.c (TFILE_PID): Remove.
5844 (tfile_open): Don't add thread and inferior.
5845 (tfile_close): Don't set 'inferior_ptid'. Don't call
5846 exit_inferior_silent.
5847 (tfile_thread_alive): Remove.
5848 (init_tfile_ops): Don't set field 'to_thread_alive' of
5849 tfile_ops.
5850
20d7f211
DE
58512013-05-23 Doug Evans <dje@google.com>
5852
5853 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5854
8658d16d
PA
58552013-05-23 Pedro Alves <palves@redhat.com>
5856
5857 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5858 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5859 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5860 Only define if HAVE_SOCKETS is defined.
5861 * configure.ac: Check for sys/socket.h.
5862 * config.in, configure: Regenerate.
5863
21aa081e
PA
58642013-05-23 Pedro Alves <palves@redhat.com>
5865
5866 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5867 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5868 printing uint32_t variables.
5869
c2d6af84
PA
58702013-05-23 Pedro Alves <palves@redhat.com>
5871
5872 * NEWS: Mention GDBserver range stepping support.
5873
c1e36e3e
PA
58742013-05-23 Yao Qi <yao@codesourcery.com>
5875 Pedro Alves <palves@redhat.com>
5876
5877 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5878 field.
5879 * infcmd.c (step_once, until_next_command): Enable range stepping.
5880 * infrun.c (displaced_step_prepare): Disable range stepping.
5881 (resume): Disable range stepping if stepping over a breakpoint or
5882 we have software watchpoints. If range stepping is enabled,
5883 assert the thread is in the stepping range.
5884 (clear_proceed_status_thread): Clear may_range_step.
5885 (handle_inferior_event): Disable range stepping as soon as we know
5886 the thread that hit the event. Re-enable it whenever we're going
5887 to step with a step range.
5888 * remote.c (struct vCont_action_support) <r>: New field.
5889 (use_range_stepping): New global.
5890 (remote_vcont_probe): Handle 'r' action.
5891 (append_resumption): Append an 'r' action if the thread may range
5892 step.
5893 (show_range_stepping): New function.
5894 (set_range_stepping): New function.
5895 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5896 'set range-stepping' and 'show range-stepping' commands.
5897 * NEWS: Mention range stepping, the new vCont;r action, and the
5898 new "set/show range-stepping" commands.
5899
d458bd84
PA
59002013-05-23 Yao Qi <yao@codesourcery.com>
5901 Pedro Alves <palves@redhat.com>
5902
5903 * remote.c (struct vCont_action_support): New struct.
5904 (struct remote_state) <support_vCont_t>: Remove field.
5905 <vCont_actions_support>: New field.
5906 (remote_vcont_probe, remote_stop_ns): Update.
5907
ce4c476a
PA
59082013-05-23 Yao Qi <yao@codesourcery.com>
5909 Pedro Alves <palves@redhat.com>
5910
5911 * gdbthread.h (pc_in_thread_step_range): New declaration.
5912 * thread.c (pc_in_thread_step_range): New function.
5913 * infrun.c (handle_inferior_event): Use it.
5914
ce70887a
JB
59152013-05-23 Joel Brobecker <brobecker@adacore.com>
5916
5917 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5918 of sprintf.
5919
55b87a52
KS
59202013-05-22 Keith Seitz <keiths@redhat.com>
5921
5922 * ada-lang.c (is_known_support_routine): Add explicit free of
5923 'func_name' from find_frame_funname.
5924 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5925 for func_name from find_frame_funname.
5926 * python/py-frame.c (frapy_name): Add explicit free of
5927 'name' from find_frame_funname.
5928 * stack.c (find_frame_funname): Add comment explaining that
5929 funcp must be freed by the caller.
5930 Return copy of symbol names instead of pointers.
5931 (print_frame): Add a cleanup for 'funname' from
5932 find_frame_funname.
5933 * stack.h (find_frame_funname): Remove "const" from
5934 'funname' parameter.
5935
5f2e6b00
TT
59362013-05-22 Tom Tromey <tromey@redhat.com>
5937
5938 PR c++/15401:
5939 * c-valprint.c (c_value_print): Use value_addr for
5940 references. Convert back to reference type with value_ref.
5941
d85c4847
EZ
59422013-05-22 Eli Zaretskii <eliz@gnu.org>
5943
5944 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5945 unloaded DLL, it will be done by handle_solib_event. See
5946 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5947 details.
5948
54eb231c
PM
59492013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5950
5951 * ui-out.c: Create typedef ui_out_level_p and define vector
5952 operations for that type.
5953 (struct ui_out): Use a vector instead of an array.
5954 (current_level): Return level from a vector.
5955 (push_level): Create a level in a vector.
5956 (pop_level): Delete a level in a vector.
5957 (ui_out_new): Create initial level zero level, and store in a
5958 vector.
5959 (ui_out_destroy): Add vector cleanup.
5960
ac90359c
PA
59612013-05-22 Pedro Alves <palves@redhat.com>
5962
5963 * python/python-internal.h (gdb_Py_DECREF): Tag with
5964 "ARI: editCase function".
5965
6dcc1893
PP
59662013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5967
5968 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5969
c8c735b9
PA
59702013-05-21 Pedro Alves <palves@redhat.com>
5971
5972 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5973 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5974 * python/py-utils.c (py_decref): Don't check for NULL before
5975 calling Py_DECREF.
5976
1915daeb
PA
59772013-05-21 Pedro Alves <palves@redhat.com>
5978
5979 * python/py-utils.c (py_decref): Remove extra braces.
5980 (gdb_pymodule_addobject): Remove extra braces.
5981 * python-internal.h (gdb_Py_DECREF): New static inline function.
5982 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5983
bd9673a4
PW
59842013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5985
5986 * breakpoints.c (detach_breakpoints): Do not
5987 detach breakpoints locations with loc_type bp_loc_other.
5988
ff6009d0
JK
59892013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5990
5991 Workaround Python 2.6.
5992 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5993 a block.
5994
3641da11
JK
59952013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5996
5997 Code cleanup: constification.
5998 * solib.c (solib_ops): Make return type and ops variable type const.
5999 (set_solib_ops): Make the new_ops parameter and ops variable const.
6000 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6001 (solib_add, solib_keep_data_in_core, clear_solib)
6002 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6003 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6004 const.
6005 * solib.h (set_solib_ops): Make the new_ops parameter const.
6006
776af39e
JB
60072013-05-21 Joel Brobecker <brobecker@adacore.com>
6008
6009 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6010 variable.
6011 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6012 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6013 (SYSTEM_GDBINIT_FILES): New variables.
6014 (all): Add stamp-system-gdbinit.
6015 (stamp-system-gdbinit): New rule.
6016 (clean-system-gdbinit, install-system-gdbinit)
6017 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6018 (install-only): Add dependency on install-system-gdbinit.
6019 (uninstall): Add dependency on uninstall-system-gdbinit.
6020 (clean): Add dependency on clean-system-gdbinit.
6021 * system-gdbinit/elinos.py: New file.
6022 * system-gdbinit/wrs-linux.py: New file.
6023
1509e573
JB
60242013-05-21 Joel Brobecker <brobecker@adacore.com>
6025
6026 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6027
c5867ab6
HZ
60282013-05-21 Hui Zhu <hui@codesourcery.com>
6029
6030 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6031 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6032 * mi/mi-cmd-break.c (ctype.h): New include.
6033 (gdb_obstack.h): New include.
6034 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6035 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6036 (mi_cmd_dprintf_insert): New.
6037 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6038 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6039
7d38e38f
TT
60402013-05-20 Tom Tromey <tromey@redhat.com>
6041
6042 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6043
97b77b39
TT
60442013-05-20 Tom Tromey <tromey@redhat.com>
6045
6046 * python/py-value.c (valpy_get_dynamic_type): Simplify
6047 dynamic_type assignment. Use Py_XINCREF.
6048
53e66479
TT
60492013-05-20 Tom Tromey <tromey@redhat.com>
6050
6051 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6052
dcf87832
TT
60532013-05-20 Tom Tromey <tromey@redhat.com>
6054
6055 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6056 (gdbpy_selected_frame): Move object-construction code
6057 out of TRY_CATCH.
6058
aa36459a
TT
60592013-05-20 Tom Tromey <tromey@redhat.com>
6060
6061 * python/py-arch.c (gdbpy_initialize_arch): Use
6062 gdb_pymodule_addobject.
6063 * python/py-block.c (gdbpy_initialize_blocks): Use
6064 gdb_pymodule_addobject.
6065 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6066 gdb_pymodule_addobject.
6067 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6068 gdb_pymodule_addobject.
6069 * python/py-event.c (gdbpy_initialize_event_generic): Use
6070 gdb_pymodule_addobject.
6071 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6072 gdb_pymodule_addobject.
6073 * python/py-evts.c (add_new_registry): Use
6074 gdb_pymodule_addobject.
6075 (gdbpy_initialize_py_events): Likewise.
6076 * python/py-finishbreakpoint.c
6077 (gdbpy_initialize_finishbreakpoints): Use
6078 gdb_pymodule_addobject.
6079 * python/py-frame.c (gdbpy_initialize_frames): Use
6080 gdb_pymodule_addobject.
6081 * python/py-function.c (gdbpy_initialize_functions): Use
6082 gdb_pymodule_addobject.
6083 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6084 gdb_pymodule_addobject.
6085 * python/py-infthread.c (gdbpy_initialize_thread): Use
6086 gdb_pymodule_addobject.
6087 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6088 gdb_pymodule_addobject.
6089 * python/py-param.c (gdbpy_initialize_parameters): Use
6090 gdb_pymodule_addobject.
6091 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6092 gdb_pymodule_addobject.
6093 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6094 gdb_pymodule_addobject.
6095 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6096 gdb_pymodule_addobject.
6097 * python/py-type.c (gdbpy_initialize_types): Use
6098 gdb_pymodule_addobject.
6099 * python/py-utils.c (gdb_pymodule_addobject): New function.
6100 * python/py-value.c (gdbpy_initialize_values): Use
6101 gdb_pymodule_addobject.
6102 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6103 * python/python.c (_initialize_python): Use
6104 gdb_pymodule_addobject.
6105
3d4a3c3e
TT
61062013-05-20 Tom Tromey <tromey@redhat.com>
6107
6108 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6109 * python/py-param.c (get_set_value, get_show_value): Use
6110 explicit decrefs.
6111 * python/python.c (start_type_printers, apply_type_printers):
6112 Use explicit decrefs.
6113
72ff8829
TT
61142013-05-20 Tom Tromey <tromey@redhat.com>
6115
6116 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6117 incref the module.
6118
02146ba5
TT
61192013-05-20 Tom Tromey <tromey@redhat.com>
6120
6121 * python/python.c (gdbpy_run_events): Decref the result
6122 of PyObject_CallObject.
6123
33ee792f
TT
61242013-05-20 Tom Tromey <tromey@redhat.com>
6125
6126 * python/py-symtab.c (set_sal): Use
6127 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6128 (symtab_and_line_to_sal_object): Update.
6129
fcb49fc8
TT
61302013-05-20 Tom Tromey <tromey@redhat.com>
6131
6132 * python/py-param.c (compute_enum_values): Decref 'item'.
6133
0646da15
TT
61342013-05-20 Tom Tromey <tromey@redhat.com>
6135
6136 * mi/mi-main.c: Include python-internal.h.
6137 (mi_cmd_list_features): Check gdb_python_initialized.
6138 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6139 (python_inferior_exit, python_new_objfile, add_thread_object)
6140 (delete_thread_object, py_free_inferior): Check
6141 gdb_python_initialized.
6142 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6143 gdb_python_initialized.
6144 * python/py-type.c (save_objfile_types): Check
6145 gdb_python_initialized.
6146 * python/python-internal.h (gdb_python_initialized): Declare.
6147 * python/python.c (ensure_python_env): Throw exception if
6148 Python not initialized.
6149 (before_prompt_hook, source_python_script_for_objfile)
6150 (start_type_printers, apply_type_printers,
6151 free_type_printers): Check gdb_python_initialized.
6152 * varobj.c (varobj_get_display_hint)
6153 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6154 (install_new_value_visualizer, varobj_set_visualizer)
6155 (value_get_print_value): Check gdb_python_initialized.
6156
999633ed
TT
61572013-05-20 Tom Tromey <tromey@redhat.com>
6158
6159 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6160 Check errors.
6161 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6162 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6163 Check errors.
6164 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6165 Check errors.
6166 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6167 Check errors.
6168 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6169 Check errors.
6170 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6171 init function to return 'int'.
6172 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6173 Return 'int'. Check errors.
6174 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6175 Check errors.
6176 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6177 Return 'int'. Check errors.
6178 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6179 Check errors.
6180 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6181 Check errors.
6182 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6183 Check errors.
6184 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6185 Check errors.
6186 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6187 Check errors.
6188 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6189 Check errors.
6190 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6191 Check errors.
6192 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6193 Check errors.
6194 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6195 Check errors.
6196 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6197 Check errors.
6198 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6199 Check errors.
6200 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6201 Check errors.
6202 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6203 Check errors.
6204 * python/python-internal.h (gdbpy_initialize_auto_load,
6205 gdbpy_initialize_values, gdbpy_initialize_frames,
6206 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6207 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6208 gdbpy_initialize_blocks, gdbpy_initialize_types,
6209 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6210 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6211 gdbpy_initialize_finishbreakpoints,
6212 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6213 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6214 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6215 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6216 gdbpy_initialize_signal_event,
6217 gdbpy_initialize_breakpoint_event,
6218 gdbpy_initialize_continue_event,
6219 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6220 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6221 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6222 * python/python.c (gdb_python_initialized): New global.
6223 (gdbpy_initialize_events): Return 'int'. Check errors.
6224 (_initialize_python): Check errors. Set
6225 gdb_python_initialized.
6226
18868860
TT
62272013-05-20 Tom Tromey <tromey@redhat.com>
6228
6229 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6230 Decref the reslut of PyObject_CallMethod.
6231
9f4ff0c2
TT
62322013-05-20 Tom Tromey <tromey@redhat.com>
6233
6234 * python/py-event.c (gdbpy_initialize_event_generic): Return
6235 early if PyType_Ready fails.
6236
0d3a2e8a
TT
62372013-05-20 Tom Tromey <tromey@redhat.com>
6238
6239 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6240 as 'default' in the switch.
6241
b86af38a
TT
62422013-05-20 Tom Tromey <tromey@redhat.com>
6243
6244 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6245 get_addr_from_python calls out of TRY_CATCH.
6246 (infpy_write_memory, infpy_search_memory): Likewise.
6247 * python/py-utils.c (get_addr_from_python): Return negative
6248 value on error. Use TRY_CATCH.
6249 * python/python-internal.h (get_addr_from_python): Use
6250 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6251
c127ec58
TT
62522013-05-20 Tom Tromey <tromey@redhat.com>
6253
6254 * python/py-event.c (evpy_emit_event): Decref the
6255 result of PyObject_CallFunctionObjArgs.
6256
ba327838
TT
62572013-05-20 Tom Tromey <tromey@redhat.com>
6258
6259 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6260 Correctly decref.
6261
d8191432
TT
62622013-05-20 Tom Tromey <tromey@redhat.com>
6263
6264 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6265
5d153bd1
TT
62662013-05-20 Tom Tromey <tromey@redhat.com>
6267
6268 * python/py-event.h (gdbpy_initialize_event_generic): Use
6269 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6270 * python/py-evts.c (add_new_registry): Use
6271 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6272 * python/python-internal.h
6273 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6274
56cc411c
TT
62752013-05-20 Tom Tromey <tromey@redhat.com>
6276
6277 * python/py-arch.c (archpy_disassemble): Update.
6278 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6279 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6280 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6281 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6282 macro.
6283 (GDB_PY_HANDLE_EXCEPTION): Update.
6284 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6285
8919e174
TT
62862013-05-20 Tom Tromey <tromey@redhat.com>
6287
6288 * python/python-internal.h (events_object_type): Remove.
6289
9b08f225
TT
62902013-05-20 Tom Tromey <tromey@redhat.com>
6291
f5aee5ee
AM
6292 * python/py-event.h (evpy_emit_event): Use
6293 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6294 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6295 New macro.
9b08f225 6296
f04010ff
TT
62972013-05-20 Tom Tromey <tromey@redhat.com>
6298
6299 * py-evtregistry.c (create_event_object): Decref
6300 eventregistry_object if PyList_New fails.
6301
3919fd96
TT
63022013-05-20 Tom Tromey <tromey@redhat.com>
6303
6304 * py-cmd.c (gdbpy_string_to_argv): Check result of
6305 PyList_New.
6306
0430e8cb
TT
63072013-05-20 Tom Tromey <tromey@redhat.com>
6308
6309 * python/python.c (before_prompt_hook): Add cleanup to
6310 decref 'hook'.
6311
764123e4
TT
63122013-05-20 Tom Tromey <tromey@redhat.com>
6313
6314 * python/py-function.c (fnpy_init): Decref result of
6315 PyObject_GetAttrString.
6316
634c58be
TT
63172013-05-20 Tom Tromey <tromey@redhat.com>
6318
6319 * python/py-threadevent.c (get_event_thread): Use
6320 CPYCHECKER_RETURNS_BORROWED_REF.
6321 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6322 New define.
6323 (pspace_to_pspace_object, objfile_to_objfile_object)
6324 (find_thread_object): Use it.
6325
62eec1a5
TT
63262013-05-20 Tom Tromey <tromey@redhat.com>
6327
6328 * python/py-arch.c (arch_object_type): Use
6329 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6330 * python/py-block.c (block_syms_iterator_object_type):
6331 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6332 * python/py-bpevent.c (breakpoint_event_object_type):
6333 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6334 * python/py-cmd.c (cmdpy_object_type): Use
6335 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6336 * python/py-continueevent.c (continue_event_object_type):
6337 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6338 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6339 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6340 * python/py-events.h (thread_event_object_type):
6341 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6342 * python/py-evtregistry.c (eventregistry_object_type): Use
6343 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6344 * python/py-exitedevent.c (exited_event_object_type):
6345 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6346 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6347 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6348 * python/py-function.c (fnpy_object_type): Use
6349 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6350 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6351 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6352 * python/py-infthread.c (thread_object_type): Use
6353 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6354 * python/py-lazy-string.c (lazy_string_object_type):
6355 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6356 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6357 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6358 * python/py-objfile.c (objfile_object_type): Use
6359 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6360 * python/py-param.c (parmpy_object_type):
6361 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6362 * python/py-progspace.c (pspace_object_type):
6363 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6364 * python/py-signalevent.c (signal_event_object_type):
6365 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6366 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6367 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6368 * python/py-type.c (type_object_type, field_object_type)
6369 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6370 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6371 define.
6372 (value_object_type, block_object_type, symbol_object_type)
6373 (event_object_type, stop_event_object_type, breakpoint_object_type)
6374 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6375
81ea8796
AT
63762013-05-20 Andreas Tobler <andreas@fgznet.ch>
6377
6378 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6379 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6380
a2ce51a0
DE
63812013-05-20 Doug Evans <dje@google.com>
6382
6383 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6384 For Fission.
6385 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6386 reading_dwo_directly.
6387 (struct signatured_type): New member dwo_unit.
6388 (struct die_reader_specs): New member comp_dir.
6389 (create_signatured_type_table_from_index): Use malloc for
6390 all_type_units instead of objfile's obstack.
6391 (create_all_type_units): Ditto.
6392 (fill_in_sig_entry_from_dwo_entry): New function.
6393 (add_type_unit): New function.
6394 (lookup_dwo_signatured_type): New function.
6395 (lookup_dwp_signatured_type): New function.
6396 (lookup_signatured_type): New arg cu. All callers updated.
6397 (init_cu_die_reader): Initialize comp_dir.
6398 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6399 Change assert of matching type signatures to call error on mismatch.
6400 (lookup_dwo_unit): Add assert.
6401 (init_tu_and_read_dwo_dies): New function.
6402 (init_cutu_and_read_dies): Call it.
6403 (build_type_unit_groups): Handle case of no type unit groups created.
6404 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6405 (lookup_dwo_cutu): Tweak complaint.
6406 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6407 (dwarf2_per_objfile_free): Free all_type_units.
6408
a25cd31f
JB
64092013-05-20 Joel Brobecker <brobecker@adacore.com>
6410
6411 * windows-nat.c (handle_unload_dll): Add missing empty line.
6412
4d804846
JB
64132013-05-20 Joel Brobecker <brobecker@adacore.com>
6414
6415 * dwarf2read.c (prototyped_function_p): New function.
6416 (read_subroutine_type): Use it.
6417
1c432e72
JB
64182013-05-20 Joel Brobecker <brobecker@adacore.com>
6419
6420 * rs6000-aix-tdep.c: De-indent some example code provided
6421 as a comment.
6422
4feebbdd
EBM
64232013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6424
6425 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6426 region is ok for a hardware watchpoint using the new ptrace interface
6427 on Power servers.
6428
7d0c9981
DE
64292013-05-17 Doug Evans <dje@google.com>
6430
6431 * NEWS: Mention new maintenance commands check-symtabs, and
6432 expand-symtabs, and renamed check-psymtabs.
6433 * psymtab.c (maintenance_check_psymtabs): Renamed from
6434 maintenance_check_symtabs. Only process already-expanded symbol
6435 tables.
6436 (_initialize_psymtab): Update.
6437 * symmisc.c (maintenance_check_symtabs): New function.
6438 (maintenance_expand_name_matcher): New function
6439 (maintenance_expand_file_matcher): New function
6440 (maintenance_expand_symtabs): New function.
6441 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6442 commands.
6443
6cbc7c3d
TT
64442013-05-17 Tom Tromey <tromey@redhat.com>
6445
6446 * python/py-inferior.c (infpy_read_memory): Don't call
6447 PyErr_SetString if PyObject_New fails.
6448 * python/py-frame.c (frame_info_to_frame_object): Don't call
6449 PyErr_SetString if PyObject_New fails.
6450
a48b32c0
L
64512013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6452
6453 * acinclude.m4: Add check for dlopen in libdl.
6454 * configure.ac: Ditto.
6455 * configure: Regenerate.
6456
3de661e6
PM
64572013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6458
6459 * frame.c (frame_stash): Convert to htab.
6460 (frame_addr_hash): New function.
6461 (frame_addr_hash_eq): New function.
6462 (frame_stash_create): Convert function to create
6463 a hash table.
6464 (frame_stash_add): Convert function to add an entry to a hash
6465 table.
6466 (frame_stash_find): Convert function to search the hash table.
6467 (frame_stash_invalidate): Convert function to empty the hash
6468 table.
6469 (get_frame_id): Only add to stash if a frame_id is created.
6470 (_initialize_frame): Call frame_stash_create.
6471
bb4168a9 64722013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
6473
6474 * configure.ac: Ensure MIG is available when building for GNU Hurd
6475 hosts.
6476 * configure: Regenerate.
6477
d1be3247
JB
64782013-05-16 Joel Brobecker <brobecker@adacore.com>
6479
6480 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6481
b8fea896
JB
64822013-05-16 Joel Brobecker <brobecker@adacore.com>
6483
6484 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6485 all cleanups are done before returning from this function.
6486
af880d85
JB
64872013-05-15 Joel Brobecker <brobecker@adacore.com>
6488
6489 * utils.h: #include "exceptions.h".
6490 (enum errors): Remove partial declaration.
6491
356a5233
JB
64922013-05-15 Joel Brobecker <brobecker@adacore.com>
6493
6494 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6495 * gdbarch.h, gdbarch.c: Regenerate.
6496 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6497 handling.
6498
6499 * rs6000-aix-tdep.h: New file.
6500 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6501 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6502 "xml-utils.h".
6503 (struct field_info, struct ld_info_desc): New types.
6504 (ld_info32_desc, ld_info64_desc): New static constants.
6505 (struct ld_info): New type.
6506 (rs6000_aix_extract_ld_info): New function.
6507 (rs6000_aix_shared_library_to_xml): Likewise.
6508 (rs6000_aix_ld_info_to_xml): Likewise.
6509 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6510 (rs6000_aix_init_osabi): Add call to
6511 set_gdbarch_core_xfer_shared_libraries_aix.
6512 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6513 Remove "xml-utils.h" include.
6514 (LdInfo): Delete typedef.
6515 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6516 Delete macros.
6517 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6518 Adjust code accordingly.
6519 (rs6000_core_ldinfo): Delete, folded into
6520 rs6000_aix_core_xfer_shared_libraries_aix.
6521 (rs6000_xfer_shared_library): Delete.
6522 (rs6000_xfer_shared_libraries): Reimplement.
6523
742ce053
MM
65242013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6525
6526 * record.c (record_goto_cmdlist): New.
6527 (cmd_record_goto): Split into this ...
6528 (cmd_record_goto_begin): ... this
6529 (cmd_record_goto_end): ... and this.
6530 (_initialize_record): Change "record goto" to prefix command.
6531 Add commands for "record goto begin" and "record goto end".
6532 Add an alias for "record goto start" to "record goto begin".
6533
e93ba630
JK
65342013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6535
6536 * linespec.c (convert_linespec_to_sals): New comment for
6537 SOURCE_FILENAME assignment.
6538
5821aace
JK
65392013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6542 internal_warning.
6543
a1b8c4cc
TT
65442013-05-14 Tom Tromey <tromey@redhat.com>
6545
6546 * eval.c (parse_and_eval_long): Make 'exp' const.
6547 * value.h (parse_and_eval_long): Update.
6548
23b3a2c3
TT
65492013-05-14 Tom Tromey <tromey@redhat.com>
6550
6551 * ui-file.c (gdb_fopen): Make arguments const.
6552 * ui-file.h (gdb_fopen): Make arguments const.
6553
ca623f82
TT
65542013-05-14 Tom Tromey <tromey@redhat.com>
6555
6556 * remote.c (remote_set_trace_notes): Make arguments const.
6557 * target.c (update_current_target): Update cast.
6558 * target.h (to_set_trace_notes): Make arguments const.
6559
503ebb2c
TT
65602013-05-14 Tom Tromey <tromey@redhat.com>
6561
6562 * go32-nat.c (go32_terminal_info): Make 'args' const.
6563 * inferior.h (child_terminal_info): Update.
6564 * inflow.c (child_terminal_info): Make 'args' const.
6565 * target.c (default_terminal_info): Make 'args' const.
6566 (debug_to_terminal_save_ours): Likewise.
6567 * target.h (struct target_ops) <to_terminal_info>: Make argument
6568 const.
6569
85e1311a
TT
65702013-05-13 Tom Tromey <tromey@redhat.com>
6571
6572 * gcore.c (create_gcore_bfd): Make 'filename' const.
6573 * gcore.h (create_gcore_bfd): Make 'filename' const.
6574 * record-full.c (record_full_save): Make 'recfilename' const.
6575 * target.c (target_save_record): Make 'filename' const.
6576 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6577 const.
6578 (target_save_record): Likewise.
6579
d62bfeaf
TT
65802013-05-13 Tom Tromey <tromey@redhat.com>
6581
f5aee5ee 6582 PR gdb/15338:
d62bfeaf
TT
6583 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6584 ranges section has been read.
6585
ac1ca910
TT
65862013-05-13 Tom Tromey <tromey@redhat.com>
6587
6588 PR exp/15364:
6589 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6590 STRUCTOP_PTR>: Return a not_lval value for
6591 EVAL_AVOID_SIDE_EFFECTS.
6592 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6593 for EVAL_AVOID_SIDE_EFFECTS.
6594
36d1c68c
JB
65952013-05-13 Joel Brobecker <brobecker@adacore.com>
6596
6597 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6598 floating point registers to register type before storing
6599 value.
6600 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6601 Likewise.
6602
21ff4686
TT
66032013-05-10 Joel Brobecker <brobecker@adacore.com>
6604 Tom Tromey <tromey@redhat.com>
6605
6606 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6607 New functions.
6608 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6609 Declare.
6610 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6611 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6612 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6613 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6614
d3685d60
TT
66152013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6616 Tom Tromey <tromey@redhat.com>
6617
6618 PR build/15414:
6619 * configure: Rebuild.
6620 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6621 with -Wno-format.
6622
eb9fe518
PA
66232013-05-10 Pedro Alves <palves@redhat.com>
6624
6625 * remote.c (_initialize_remote): Fix spelling of
6626 qXfer:traceframe-info:read packet in packet config command.
6627
9779ab84
PA
66282013-05-10 David Taylor <dtaylor@emc.com>
6629
6630 PR remote/15455
6631
6632 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6633 "QTro" at start of packet.
6634
060cfbef
JB
66352013-05-10 Joel Brobecker <brobecker@adacore.com>
6636
6637 * solib-aix.c (solib_aix_relocate_section_addresses):
6638 For the .bss section action, apply the same offset as
6639 the .data section.
6640
ab1c4e88
JB
66412013-05-10 Joel Brobecker <brobecker@adacore.com>
6642
6643 * solib-aix.c (solib_aix_relocate_section_addresses):
6644 Remove FIXME comment.
6645
c1357578
JB
66462013-05-10 Joel Brobecker <brobecker@adacore.com>
6647
6648 PR tdep/15420:
6649 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6650 New functions, directly copied from sparc-sol-thread.c.
6651 * sparc-sol-thread.c: Delete.
6652 * configure.ac: Remove code handling sparc-solaris-thread.c.
6653 * configure: Regenerate.
6654
1e611234
PM
66552013-05-10 Phil Muldoon <pmuldoon@redhat.com>
6656
6657 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6658 filter logic.
6659 (backtrace_command): Add "no-filters" option parsing.
6660 (_initialize_stack): Alter help to reflect "no-filters" option.
6661 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6662 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6663 (py-frame.o): Add target
6664 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6665 filter files.
6666 * python/python.h: Add new frame filter constants, and flag enum.
6667 (apply_frame_filter): Add definition.
6668 * python/python.c (apply_frame_filter): New non-Python
6669 enabled function.
6670 * python/py-utils.c (py_xdecref): New function.
6671 (make_cleanup_py_xdecref): Ditto.
6672 * python/py-objfile.c: Declare frame_filters dictionary.
6673 (objfpy_dealloc): Add frame_filters dealloc.
6674 (objfpy_new): Initialize frame_filters attribute.
6675 (objfile_to_objfile_object): Ditto.
6676 (objfpy_get_frame_filters): New function.
6677 (objfpy_set_frame_filters): New function.
6678 * python/py-progspace.c: Declare frame_filters dictionary.
6679 (pspy_dealloc): Add frame_filters dealloc.
6680 (pspy_new): Initialize frame_filters attribute.
6681 (pspacee_to_pspace_object): Ditto.
6682 (pspy_get_frame_filters): New function.
6683 (pspy_set_frame_filters): New function.
6684 * python/py-framefilter.c: New file.
6685 * python/lib/gdb/command/frame_filters.py: New file.
6686 * python/lib/gdb/frames.py: New file.
6687 * python/lib/gdb/__init__.py: Initialize global frame_filters
6688 dictionary
6689 * python/lib/gdb/FrameDecorator.py: New file.
6690 * python/lib/gdb/FrameIterator.py: New file.
6691 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6692 * mi/mi-cmds.h: Declare.
6693 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6694 --no-frame-filter logic, and Python frame filter logic.
6695 (stack_enable_frame_filters): New function.
6696 (parse_no_frame_option): Ditto.
6697 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6698 filter logic.
6699 (mi_cmd_stack_list_locals): Ditto.
6700 (mi_cmd_stack_list_args): Ditto.
6701 (mi_cmd_stack_list_variables): Ditto.
6702 * NEWS: Add frame filter note.
6703
2cb9c859
DE
67042013-05-09 Doug Evans <dje@google.com>
6705
6bf667bb
DE
6706 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6707 All callers updated.
6708 (syms_from_objfile): Ditto. Make static.
6709 (symbol_file_add_with_addrs): Renamed from
6710 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6711 num_offsets. All callers updated.
6712 * symfile.h (syms_from_objfile): Delete.
6713
2cb9c859
DE
6714 * symfile.c (decrement_reading_symtab): Add assert.
6715 (increment_reading_symtab): Ditto.
6716
40aea477
JB
67172013-05-09 Joel Brobecker <brobecker@adacore.com>
6718
6719 * source.c (forward_search_command): Replace call to getc
6720 by call to fgetc.
6721 (reverse_search_command): Likewise.
6722
680d1742
DE
67232013-05-08 Doug Evans <dje@google.com>
6724
6725 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6726 matching test.
6727
17e760ae
JB
67282013-05-08 Joel Brobecker <brobecker@adacore.com>
6729
6730 * sol-thread.c (info_cb): Factorize the code a little.
6731
c0f5f490
JB
67322013-05-08 Joel Brobecker <brobecker@adacore.com>
6733
6734 * sol-thread.c (info_cb): Rework the output of the "maintenance
6735 info sol-threads" command a bit.
6736
5d74e061
JB
67372013-05-08 Joel Brobecker <brobecker@adacore.com>
6738
6739 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6740 Replace ti.ti_startfunc by ti.ti_pc.
6741
814a3ff7
JB
67422013-05-08 Joel Brobecker <brobecker@adacore.com>
6743
6744 * solib-aix.c (solib_aix_free_library_list): New function
6745 for the case where HAVE_LIBEXPAT is not defined.
6746
58ce7251
SDJ
67472013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6748
6749 PR breakpoints/15413:
6750 * breakpoint.c (condition_completer): Simplify the code to
6751 disconsider multiple locations of breakpoints when completing the
6752 "condition" command.
6753
be8b1ea6
PM
67542013-05-07 Pierre Muller <muller@sourceware.org>
6755
6756 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6757 instead of <sys/wait.h>.
6758
1e52bda6
PM
67592013-05-07 Pierre Muller <muller@sourceware.org>
6760
6761 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6762 trailing new line from warning message.
6763
27fd0c6b
PM
67642013-05-07 Pierre Muller <muller@sourceware.org>
6765
6766 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6767 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6768
e228ac87
JB
67692013-05-07 Joel Brobecker <brobecker@adacore.com>
6770
6771 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6772 error message (ARI fix).
6773
67742013-05-07 Joel Brobecker <brobecker@adacore.com>
6775
6776 * features/library-list-aix.dtd: Replace library-list by
6777 library-list-aix.
6778 * rs6000-nat.c: Replace library-list by library-list-aix
6779 throughout.
6780 * solib-aix.c: Likewise.
6781
67822013-05-07 Joel Brobecker <brobecker@adacore.com>
6783
6784 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6785 Renames TARGET_OBJECT_AIX_LIBRARIES.
6786 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6787 TARGET_OBJECT_LIBRARIES_AIX throughout.
6788 * solib-aix.c: Likwise.
6789
26a4dda9
YQ
67902013-05-07 Yao Qi <yao@codesourcery.com>
6791
6792 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6793 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6794
3582629f
YQ
67952013-05-07 Yao Qi <yao@codesourcery.com>
6796
6797 * solib-dsbt.c (enable_break): Declare.
6798 (dsbt_current_sos): Remove call to enable_break2.
6799 (enable_break2): Rename to enable_break. Set solib breakpoint
6800 on '_dl_debug_state'.
6801 (enable_break): Remove.
6802
aacbb8a5
LM
68032013-05-07 Luis Machado <lgustavo@codesourcery.com>
6804
6805 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6806 debug state prior to replicating existing hardware watchpoints or
6807 breakpoints.
6808
0c013353
JK
68092013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6810
6811 * gcore.c (gcore_create_callback): Ignore sections with
6812 separate_debug_objfile_backlink != NULL.
6813
a1217d97
SL
68142013-05-06 Sandra Loosemore <sandra@codesourcery.com>
6815 Andrew Jenner <andrew@codesourcery.com>
6816 Chung-Lin Tang <cltang@codesourcery.com>
6817 Julian Brown <julian@codesourcery.com>
6818
6819 Based on the nios2-elf port from Altera Corporation.
6820
6821 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6822 nios2-linux-tdep.o.
6823 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6824 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6825 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6826 * nios2-tdep.h: New.
6827 * nios2-tdep.c: New.
6828 * nios2-linux-tdep.c: New.
6829 * features/Makefile (WHICH): Add nios2-linux.
6830 (nios2-linux-expedite): Set.
6831 * features/nios2-cpu.xml: New.
6832 * features/nios2.xml: New.
6833 * features/nios2-linux.xml: New.
6834 * features/nios2.c: New (autogenerated).
6835 * features/nios2-linux.c: New (autogenerated).
6836 * regformats/nios2-linux.dat: New (autogenerated).
6837 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6838 and commands.
6839
0892cb63
DE
68402013-05-06 Doug Evans <dje@google.com>
6841
3b7bacac
DE
6842 * symfile.c: Whitespace cleanup.
6843
0892cb63
DE
6844 * solist.h (struct target_so_ops): New member clear_so.
6845 * solib-svr4.c (svr4_clear_so): New function.
6846 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6847 * solib.c (clear_so): Renamed from free_so_symbols.
6848 All callers updated. Call target clear_so if it exists.
6849
40501e00
TT
68502013-05-06 Tom Tromey <tromey@redhat.com>
6851
6852 * ada-lang.c (ada_value_primitive_packed_val): Don't
6853 call value_incref.
6854 * value.c (set_value_parent): Incref the new parent and decref
6855 the old parent.
6856 (value_copy, value_primitive_field): Use set_value_parent.
6857
b6807d98
TT
68582013-05-06 Tom Tromey <tromey@redhat.com>
6859
6860 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6861 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6862 if needed.
6863 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6864 * dwarf2read.c (write_constant_as_bytes)
6865 (dwarf2_fetch_constant_bytes): New functions.
6866
3aef2284
TT
68672013-05-06 Tom Tromey <tromey@redhat.com>
6868
6869 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6870 parameters.
6871 (dwarf2_const_value_attr): Update.
6872
66f65e2b
TT
68732013-05-06 Tom Tromey <tromey@redhat.com>
6874
6875 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6876 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6877 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6878 Remove declaration.
6879
7919a973
TT
68802013-05-06 Tom Tromey <tromey@redhat.com>
6881
6882 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6883 objfile's obstack.
6884
a7bfba49
DE
68852013-05-06 Doug Evans <dje@google.com>
6886
3189cb12
DE
6887 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6888 * stabsread.h (process_one_symbol): Update declaration.
6889 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6890 * elfread.c (elf_symfile_relocate_probe): Ditto.
6891 * psymtab.c (relocate_psymtabs): Ditto.
6892 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6893 (objfile_relocate): Ditto.
6894 * objfiles.h (objfile_relocate): Update declaration.
6895 * symfile.c (relative_addr_info_to_section_offsets): Constify
6896 addrs parameter.
6897 (default_symfile_offsets): Ditto.
6898 (syms_from_objfile_1): Constify offsets parameter.
6899 (syms_from_objfile): Ditto.
6900 (symbol_file_add_with_addrs_or_offsets): Ditto.
6901 (symfile_map_offsets_to_segments): Constify data parameter.
6902 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6903 delta parameters of member relocate.
6904 (struct sym_probe_fns): Constify new_offsets,
6905 delta parameters of member sym_relocate_probe.
6906 (struct sym_fns): Constify section_addr_info parameter of member
6907 sym_offsets.
6908 (relative_addr_info_to_section_offsets): Update declaration.
6909 (default_symfile_offsets): Ditto.
6910 (syms_from_objfile): Ditto.
6911 (symfile_map_offsets_to_segments): Ditto.
6912
a7bfba49
DE
6913 * symfile.c (syms_from_objfile_1): Use correct section count when
6914 objfile->sf == NULL.
6915
5f8e0b8f
MF
69162013-05-06 Mike Frysinger <vapier@gentoo.org>
6917
6918 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6919
ea52d893
DE
69202013-05-06 Doug Evans <dje@google.com>
6921
6922 * psympriv.h (struct partial_symtab): Augment comment for member
6923 section_offsets.
6924
4d1eb6b4
JB
69252013-05-06 Joel Brobecker <brobecker@adacore.com>
6926
6927 Reimplement shared library support on ppc-aix...
6928 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6929 * features/library-list-aix.dtd: New file.
6930 * solib-aix.h, solib-aix.c: New file.
6931 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6932 (rs6000_find_toc_address_hook): Delete.
6933 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6934 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6935 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6936 "xml-utils.h".
6937 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6938 (vmap_symtab, fixup_breakpoints): Delete.
6939 (rs6000_xfer_shared_libraries): New function.
6940 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6941 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6942 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6943 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6944 (rs6000_xfer_shared_library): New function.
6945 (find_toc_address): Delete.
6946 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6947 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6948 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6949 before creating minimal symbol. Adjust function description
6950 accordingly.
6951 (scan_xcoff_symtab): Replace call to
6952 prim_record_minimal_symbol_and_info by call to
6953 record_minimal_symbol.
6954 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6955 around default_symfile_offsets.
6956 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6957 powerpc-aix targets.
6958 * config/rs6000/nm-rs6000.h: Delete.
6959 * config/powerpc/aix.mh (NAT_FILE): Delete.
6960 (NATDEPFILES): Remove xcoffsolib.o.
6961 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6962 (ALL_TARGET_OBS): Add solib-aix.o.
6963 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6964 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6965 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6966 * xcoffsolib.h, xcoffsolib.c: Delete.
6967
6968 * solib.c (reload_shared_libraries): Remove reference to
6969 SOLIB_CREATE_INFERIOR_HOOK.
6970 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6971 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6972 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6973 comment.
6974 * corelow.c (deprecated_core_resize_section_table): Delete.
6975 * exec.c: Remove include of xcoffsolib.h".
6976 (map_vmap, vmap): Delete.
6977 (exec_close_1): Remove references to vmap.
6978 (exec_file_attach): Remove vmap handling code, and reference
6979 to DEPRECATED_IBM6000_TARGET.
6980 (bfdsec_to_vmap): Delete.
6981 (exec_files_info): Remove block of code handling VMAP.
6982 * infcmd.c (post_create_inferior): Remove reference to
6983 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6984 * infrun.c (follow_exec): Remove reference to
6985 SOLIB_CREATE_INFERIOR_HOOK.
6986 * stack.c (print_frame): Remove reference to PC_SOLIB.
6987 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6988 (dsbt_relocate_main_executable): Likewise.
6989 * solib-frv.c (frv_current_sos): Likewise.
6990
0c4f667c
JB
69912013-05-06 Joel Brobecker <brobecker@adacore.com>
6992
6993 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6994 to target_write_memory and target_read_memory.
6995
726ce67c
JB
69962013-05-06 Joel Brobecker <brobecker@adacore.com>
6997
6998 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6999 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7000
c8c9911f
JB
70012013-05-06 Joel Brobecker <brobecker@adacore.com>
7002
7003 * darwin-nat.c: Replace all "%x" instances in format strings
7004 into "0x%x" throughout.
7005
fda184b6
JB
70062013-05-06 Joel Brobecker <brobecker@adacore.com>
7007
7008 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7009 gdb_assert by call to MACH_CHECK_ERROR.
7010 (darwin_attach_pid): Raise an error rather than a failed
7011 assertion when various system calls failed. Report a warning
7012 instead of raising a failed assertion when PREV_NOT is not NULL
7013 after call to mach_port_request_notification.
7014 (darwin_ptrace_me): Raise an error rather than a failed
7015 assertion when read returns nonzero.
7016
d1d69afb
JB
70172013-05-06 Joel Brobecker <brobecker@adacore.com>
7018
7019 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7020
dc90b24d
JK
70212013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7022
7023 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7024
faab9922
JK
70252013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7026
7027 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7028 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7029 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7030 a stale cleanup. Fix double free of NAME.
7031
e0ea48a0
EZ
70322013-05-04 Eli Zaretskii <eliz@gnu.org>
7033
7034 * windows-nat.c (windows_delete_thread): Accept an additional
7035 argument, the thread's exit code, and announce thread death when
7036 print_thread_events is non-zero and we are deleting a thread that
7037 is not the main thread.
7038 (get_windows_debug_event): Pass thread exit code to
7039 windows_delete_thread.
7040
83b2706a
KB
70412013-05-03 Kevin Buettner <kevinb@redhat.com>
7042
7043 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7044 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7045 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7046 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7047 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7048 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7049 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7050 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7051 (gdbarch_tdep): New struct.
7052 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7053 E_NUM_REGS.
7054 (v850e3v5_register_name): New function.
7055 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7056 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7057 code handling the struct return conventions for the RH850 ABI.
7058 Update all callers.
7059 (v850_eight_byte_align_p): New function.
7060 (v850_push_call_dummy): Push structs by value, not by reference
7061 for the RH850 ABI. Add support for eight byte alignment.
7062 (v850_dbtrap_breakpoint_from_pc): New function.
7063 (v850_gdbarch_init): Add ABI detection code. Register
7064 v850e3v5_register_name for the v850e3v5 architecture. Set the
7065 number of registers for v850e3v5. Register
7066 v850_dbtrap_breakpoint_from_pc as appropriate.
7067 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7068
d445b2f6
DE
70692013-05-03 Doug Evans <dje@google.com>
7070
7071 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7072 of bfd_count_sections.
7073 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7074 * symfile.c (default_symfile_offsets): Ditto.
7075 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7076 one entry, not bfd_count_sections entries.
7077
b3ce41ea
KB
70782013-05-03 Kevin Buettner <kevinb@redhat.com>
7079
7080 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7081 `save' and `restore' register groups. Don't include SPL
7082 or SPH in these groups.
7083 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7084 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7085 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7086 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7087 dwarf2_append_unwinders().
7088
96f7d3f1
PW
70892013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7090
7091 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7092 ignore SIGINT and SIGTRAP in case these internal signals are
7093 caught explicitely.
7094
b9dd1947
JB
70952013-05-01 Joel Brobecker <brobecker@adacore.com>
7096
7097 * darwin-nat.c (darwin_read_write_inferior): Change types
7098 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7099 of copy_count to "mach_msg_type_number_t".
7100 (darwin_read_dyld_info): Change type of parameter
7101 rdaddr to "gdb_byte *".
7102
4ca18a63
JB
71032013-05-01 Joel Brobecker <brobecker@adacore.com>
7104
7105 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7106 of &info->load_map from "char *" to "gdb_byte *".
7107
2b692d32
JB
71082013-05-01 Joel Brobecker <brobecker@adacore.com>
7109
7110 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7111 from "char *" to "gdb_byte *".
7112 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7113
a98c29a0
DE
71142013-04-30 Doug Evans <dje@google.com>
7115
6a506a2d
DE
7116 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7117 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7118 DWO stub. If DWO isn't found, just use stub.
7119 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7120
a98c29a0
DE
7121 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7122 calling init_cutu_and_read_dies.
7123
f92b06da
WT
71242013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7125
7126 * target-descriptions.c (maint_print_c_tdesc_cmd):
7127 Add case to parse structures as register types and
7128 bitfields.
7129
95eebdcc
WT
71302013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7131
7132 * MAINTAINERS (Write After Approval): Add myself to the list.
7133
019c1128
JB
71342013-04-30 Joel Brobecker <brobecker@adacore.com>
7135
7136 * sol-thread.c (rw_common): Change type of parameter "buf"
7137 to "gdb_byte *".
7138 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7139 rw_common to "gdb_byte *" instead of "char *".
7140
5812197c
JB
71412013-04-30 Joel Brobecker <brobecker@adacore.com>
7142
7143 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7144 of local variable msym to const struct bound_minimal_symbol.
7145 Adjust use accordingly.
7146 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7147
ecccb813
TS
71482013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7149
7150 * i386gnu-nat.c (CREG_OFFSET): New macro.
7151 (creg_offset): New array.
7152 (CREG_ADDR): Use creg_offset instead of reg_offset.
7153
f1d02dd4 71542013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
7155
7156 * mep-tdep.c (mep_write_pc): Delete.
7157 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7158 Add call to set_gdbarch_pc_regnum.
7159
f1d02dd4 71602013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
7161
7162 * common/filestuff.c: Replace #include <dirent.h> by
7163 #include "gdb_dirent.h".
7164
f1d02dd4 71652013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
7166
7167 * common/filestuff.c: Replace #include <sys/stat.h> by
7168 #include "gdb_stat.h".
7169
b385a60d
PM
71702013-04-29 Pierre Muller <muller@sourceware.org>
7171
7172 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7173 editCase function rule.
7174 (get_DW_AT_signature_type): Likewise.
7175
d27b54ad
JB
71762013-04-29 Joel Brobecker <brobecker@adacore.com>
7177
7178 * m32r-tdep.c (m32r_write_pc): Delete.
7179 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7180 Add call to set_gdbarch_pc_regnum.
7181
47d21dc5
PM
71822013-04-29 Pierre Muller <muller@sourceware.org>
7183
7184 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7185
9056882e
JB
71862013-04-29 Joel Brobecker <brobecker@adacore.com>
7187
7188 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7189
7ee4732a
YQ
71902013-04-28 Yao Qi <yao@codesourcery.com>
7191
7192 * solib-dsbt.c (fetch_loadmap): Re-indent.
7193 (displacement_from_map, enable_break2): Likewise.
7194 (dsbt_relocate_section_addresses): Likewise.
7195
2260af53 71962013-04-26 Joel Brobecker <brobecker@adacore.com>
7197
7198 GDB 7.6 released.
7199
ff546935
TT
72002013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7201
7202 PR corefiles/14983:
7203 * dwarf2read.c (process_full_comp_unit): Always create a static
7204 block.
7205
40fb6c5e
HZ
72062013-04-25 Hui Zhu <hui@codesourcery.com>
7207
7208 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7209 to loc->cmd_bytecode.
7210
74e04d1c
DE
72112013-04-24 Doug Evans <dje@google.com>
7212
7213 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7214
3cf62c1d
KS
72152013-04-22 Keith Seitz <keiths@redhat.com>
7216
7217 * tracepoint.c (trace_save): Call the writer's start method.
7218
bf9e4d0c
MB
72192013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7220
7221 PR gdb/10462
7222 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7223 before argument.
7224
5d71132c
TT
72252013-04-23 Tom Tromey <tromey@redhat.com>
7226
7227 * common/filestuff.c: Check USE_WIN32API before including
7228 sys/socket.h.
7229 (HAVE_F_GETFD): New define.
7230 (mark_cloexec): Check HAVE_F_GETFD.
7231 (gdb_open_cloexec): Change 'mode' to unsigned long.
7232 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7233 (gdb_pipe_cloexec): Check HAVE_PIPE.
7234 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7235 long.
7236
a11cfd87
HZ
72372013-04-23 Hui Zhu <hui@codesourcery.com>
7238
7239 PR gdb/15293
a11cfd87
HZ
7240 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7241
2d9442cc
HZ
72422013-04-23 Hui Zhu <hui@codesourcery.com>
7243
7244 PR gdb/15165
2d9442cc
HZ
7245 * breakpoint.c (dprintf_print_recreate): New.
7246 (save_breakpoints): Let it not save dprintf commands.
7247 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7248
614c279d
TT
72492013-04-22 Tom Tromey <tromey@redhat.com>
7250
7251 PR gdb/7912:
7252 * Makefile.in (SFILES): Add filestuff.c
7253 (COMMON_OBS): Add filestuff.o.
7254 (filestuff.o): New target.
7255 * auto-load.c (auto_load_objfile_script_1): Use
7256 gdb_fopen_cloexec.
7257 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7258 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7259 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7260 * common/agent.c (gdb_connect_sync_socket): Use
7261 gdb_socket_cloexec.
7262 * common/filestuff.c: New file.
7263 * common/filestuff.h: New file.
7264 * common/linux-osdata.c (linux_common_core_of_thread)
7265 (command_from_pid, commandline_from_pid, print_source_lines)
7266 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7267 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7268 gdb_fopen_cloexec.
7269 * common/linux-procfs.c (linux_proc_get_int)
7270 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7271 * config.in, configure: Rebuild.
7272 * configure.ac: Don't check for sys/socket.h. Check for
7273 fdwalk, pipe2.
7274 * corelow.c (core_open): Use gdb_open_cloexec.
7275 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7276 * fork-child.c (fork_inferior): Call close_most_fds.
7277 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7278 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7279 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7280 Use gdb_fopen_cloexec.
7281 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7282 gdb_open_cloexec.
7283 (linux_async_pipe): Use gdb_pipe_cloexec.
7284 * remote-fileio.c (remote_fileio_func_open): Use
7285 gdb_open_cloexec.
7286 * remote.c (remote_file_put, remote_file_get): Use
7287 gdb_fopen_cloexec.
7288 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7289 close_most_fds.
7290 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7291 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7292 * solib.c (solib_find): Use gdb_open_cloexec.
7293 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7294 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7295 (tfile_open): Use gdb_open_cloexec.
7296 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7297 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7298 * xml-support.c (xml_fetch_content_from_file): Use
7299 gdb_fopen_cloexec.
7300 * main.c (captured_main): Call notice_open_fds.
7301
5fda2332
EBM
73022013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7303
7304 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7305 'char *' to 'gdb_byte *'.
7306 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7307 'gdb_byte'.
7308
eb6c553b
YQ
73092013-04-22 Yao Qi <yao@codesourcery.com>
7310
7311 * infrun.c: Fix typo in comment.
7312
9991b207
SDJ
73132013-04-22 Andrew Haley <aph@redhat.com>
7314
7315 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7316 instead of "long".
7317
8b4833e3
YQ
73182013-04-20 Yao Qi <yao@codesourcery.com>
7319
7320 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7321 'char *' to 'gdb_byte *'. Cast the return value of
7322 'bt_ctf_get_char_array' to 'gdb_byte *'.
7323
bd3f3b55
PA
73242013-04-19 Pedro Alves <palves@redhat.com>
7325
7326 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7327 -Wpointer-sign.
7328 * configure: Regenerate.
7329
c49e7f76
PA
73302013-04-19 Pedro Alves <palves@redhat.com>
7331
7332 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7333 'void *'.
7334
12ff8552
PA
73352013-04-19 Pedro Alves <palves@redhat.com>
7336
7337 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7338 Change type of 'myaddr' parameter to gdb_byte pointer.
7339 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7340 to 'long long' pointer instead of to 'unsigned long long'.
7341 (monitor_write_memory_block, monitor_read_memory_single)
7342 (monitor_read_memory): Change type of 'myaddr' parameter to
7343 gdb_byte pointer.
7344
9c37696b
PA
73452013-04-19 Pedro Alves <palves@redhat.com>
7346
7347 * record.c (validate_history_size): Make parameter 'setting'
7348 unsigned.
7349
a398505b
PA
73502013-04-19 Pedro Alves <palves@redhat.com>
7351
7352 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7353 to 'gdb_byte *'.
7354
9f8afa72
PA
73552013-04-19 Pedro Alves <palves@redhat.com>
7356
7357 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7358 local to int.
7359
c714b426
PA
73602013-04-19 Pedro Alves <palves@redhat.com>
7361
7362 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7363 * ada-tasks.c (read_fat_string_value): Likewise.
7364
507a579c
PA
73652013-04-19 Pedro Alves <palves@redhat.com>
7366
7367 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7368 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7369 'offset', and adjust.
7370
f9d83a0b
PA
73712013-04-19 Pedro Alves <palves@redhat.com>
7372
7373 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7374 (read_index_from_section): Add cast to 'char *'.
7375
745eb4fd
PA
73762013-04-19 Pedro Alves <palves@redhat.com>
7377
7378 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7379
db5be46f
PA
73802013-04-19 Pedro Alves <palves@redhat.com>
7381
7382 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7383
0f928d68
PA
73842013-04-19 Pedro Alves <palves@redhat.com>
7385
7386 * record-full.c (record_full_get_bookmark): Change local 'ret'
7387 type to char * and add cast to gdb_byte *.
7388 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7389 string.
7390 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7391
89f6d837
PA
73922013-04-19 Pedro Alves <palves@redhat.com>
7393
7394 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7395 * python/py-prettyprint.c (print_string_repr): Change type of
7396 'output' local to char *. Add cast to gdb_byte * in
7397 LA_PRINT_STRING call.
7398 (print_children): Change type of 'output' local to char *.
7399 * python/py-value.c (valpy_string): Add cast to const char * in
7400 PyUnicode_Decode call.
7401
ce6ec7d8
PA
74022013-04-19 Pedro Alves <palves@redhat.com>
7403
7404 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7405 and change its type to 'const char *'. Adjust.
7406 (mips_send_packet): Add cast to 'char *', and remove cast to
7407 'unsigned char *'.
7408 (mips_receive_packet): Remove cast to 'unsigned char *'.
7409 (mips_load_srec): Use bfd_byte.
7410 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7411 (pmon_checkset): Make 'value' parameter unsigned.
7412
fda0389f
PA
74132013-04-19 Pedro Alves <palves@redhat.com>
7414
7415 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7416
bc20a4af
PA
74172013-04-19 Pedro Alves <palves@redhat.com>
7418
7419 * remote.c (remote_write_bytes_aux, compare_sections_command)
7420 (remote_read_qxfer)
7421 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7422 (remote_hostio_readlink, remote_bfd_iovec_pread)
7423 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7424 binary buffer, and char when buffer is used as string.
7425 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7426 (trace_save, tfile_open, traceframe_walk_blocks)
7427 (tfile_fetch_registers): Likewise.
7428
c628b528
PA
74292013-04-19 Pedro Alves <palves@redhat.com>
7430
7431 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7432 buffer and size_t size. Adjust.
7433 * ser-base.h (ser_base_write): Adjust.
7434 * ser-go32.c (cnts): Change type to size_t.
7435 (dos_write): Change prototype -- take 'void *'
7436 buffer and size_t size. Adjust.
7437 (dos_info): Print elements of 'cnts' as unsigned long.
7438 * serial.c (serial_write): Likewise.
7439 * serial.h (serial_write): Adjust.
7440 (struct serial_ops) <write>: Change prototype -- take 'void *'
7441 buffer and size_t size. Adjust.
7442
51a5cd90
PA
74432013-04-19 Pedro Alves <palves@redhat.com>
7444
7445 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7446 gdb_byte *.
7447 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7448
a9933661
PA
74492013-04-19 Pedro Alves <palves@redhat.com>
7450
7451 * alpha-tdep.c (alpha_extract_return_value): Use
7452 regcache_cooked_read_unsigned to read 'v0'.
7453
19afdd07
PA
74542013-04-19 Pedro Alves <palves@redhat.com>
7455
7456 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7457 parameters 'at', 'as' and 'offset' to uint32_t.
7458
96b32e50
PA
74592013-04-19 Pedro Alves <palves@redhat.com>
7460
7461 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7462 'is64' to signed 'int'.
7463
eb1bd1fb
PA
74642013-04-19 Pedro Alves <palves@redhat.com>
7465
7466 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7467 parameter to int *.
7468
463920bf
PA
74692013-04-19 Pedro Alves <palves@redhat.com>
7470
7471 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7472 'insnbuf' buffer type to unsigned int[].
7473
70242eb1
PA
74742013-04-19 Pedro Alves <palves@redhat.com>
7475
7476 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7477
9d1dd0e2
PA
74782013-04-19 Pedro Alves <palves@redhat.com>
7479
7480 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7481 unsigned long *.
7482
44096aee
PA
74832013-04-19 Pedro Alves <palves@redhat.com>
7484
7485 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7486 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7487 UINT_MAX.
7488 * mips-tdep.c (heuristic_fence_post): Change type to int.
7489 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7490
e4286e57
PA
74912013-04-19 Pedro Alves <palves@redhat.com>
7492
7493 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7494 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7495 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7496
001f13d8
PA
74972013-04-19 Pedro Alves <palves@redhat.com>
7498
7499 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7500 it to get a string view of the byte buffer.
7501 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7502 type to gdb_byte *. Adjust.
7503 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7504 Change local to char *.
7505 * solib-darwin.c (find_program_interpreter): Change return type to
7506 char *. Adjust.
7507 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7508 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7509 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7510 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7511 * solib-svr4.c (find_program_interpreter): Change return type to
7512 char *. Adjust.
7513 (enable_break): Change local 'interp_name' to char *.
7514 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7515 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7516 (spu_pseudo_register_write_spu): Use char for string buffer.
7517 Adjust.
7518 (info_spu_event_command, info_spu_signal_command): Add casts to
7519 'char *'.
7520
948f8e3d
PA
75212013-04-19 Pedro Alves <palves@redhat.com>
7522
7523 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7524 gdb_byte[].
7525 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7526 * ada-lang.c (ada_value_assign): Use gdb_byte.
7527 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7528 (alphanbsd_sigtramp_offset): Use gdb_byte.
7529 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7530 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7531 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7532 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7533 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7534 * arm-tdep.c (arm_stub_unwind_sniffer)
7535 (arm_displaced_init_closure): Use gdb_byte.
7536 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7537 (arm_default_thumb_le_breakpoint)
7538 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7539 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7540 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7541 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7542 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7543 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7544 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7545 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7546 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7547 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7548 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7549 (cris_store_return_value, cris_extract_return_value): Use
7550 gdb_byte.
7551 (constraint): Change type of parameter to char * from signed
7552 char*. Use gdb_byte.
7553 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7554 of local buffer to gdb_byte *.
7555 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7556 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7557 (add_address_entry): Change type of local buffer to gdb_byte[].
7558 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7559 (frv_push_dummy_call): Use gdb_byte.
7560 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7561 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7562 (hppa_hpux_supply_save_state): Use gdb_byte.
7563 * hppa-tdep.c (hppa32_push_dummy_call)
7564 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7565 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7566 (slotN_contents, replace_slotN_contents): Change type of parameter
7567 to gdb_byte *.
7568 (fetch_instruction, ia64_pseudo_register_write)
7569 (ia64_register_to_value, ia64_value_to_register)
7570 (ia64_extract_return_value, ia64_store_return_value)
7571 (ia64_push_dummy_call): Use gdb_byte.
7572 * m32c-tdep.c (m32c_return_value): Remove cast.
7573 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7574 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7575 gdb_byte.
7576 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7577 * mn10300-tdep.c (mn10300_store_return_value)
7578 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7579 gdb_byte.
7580 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7581 (moxie_process_record): Remove casts.
7582 * ppc-ravenscar-thread.c (supply_register_at_address)
7583 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7584 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7585 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7586 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7587 * remote.c (compare_sections_command): Use gdb_byte.
7588 * score-tdep.c (score7_free_memblock): Change type of parameter to
7589 gdb_byte *.
7590 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7591 gdb_byte *. Use gdb_byte.
7592 (sh_push_dummy_call_fpu): Use gdb_byte.
7593 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7594 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7595 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7596 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7597 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7598 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7599 (sh64_store_return_value, sh64_register_convert_to_virtual):
7600 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7601 (sh64_pseudo_register_write): Use gdb_byte.
7602 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7603 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7604 buffer.
7605 (irix_current_sos): Use gdb_byte.
7606 * solib-som.c (som_current_sos): Use gdb_byte.
7607 * sparc-ravenscar-thread.c (supply_register_at_address)
7608 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7609 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7610 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7611 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7612 'gdb_byte *'.
7613 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7614 'gdb_byte *'.
7615 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7616 * xstormy16-tdep.c (xstormy16_extract_return_value)
7617 (xstormy16_store_return_value): Change parameter type to
7618 'gdb_byte *'. Adjust.
7619 (xstormy16_push_dummy_call): Use gdb_byte.
7620 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7621 (call0_analyze_prologue, execute_code): Use gdb_byte.
7622
433730c9
PA
76232013-04-19 Vladimir Kargov <kargov@gmail.com>
7624 Pedro Alves <palves@redhat.com>
7625
7626 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7627 value contents.
7628
ac9ec31b
DE
76292013-04-17 Doug Evans <dje@google.com>
7630
7631 * dwarf2read.c (struct signatured_type): New member type.
7632 (struct attribute): Replace member signatured_type with signature.
7633 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7634 (read_call_site_scope): Call follow_die_ref instead of
7635 follow_die_ref_or_sig.
7636 (read_structure_type): Rewrite handling of signatured types.
7637 (read_enumeration_type): Ditto.
7638 (read_attribute_value): Update.
7639 (build_error_marker_type): New function.
7640 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7641 Don't call error for bad types, just build an error marker type.
7642 (dump_die_shallow): Update.
7643 (follow_die_sig_1): Renamed from follow_die_sig.
7644 Don't call error for bad types, instead return NULL.
7645 (follow_die_sig): New function.
7646 (get_signatured_type, get_DW_AT_signature_type): New functions.
7647
e546e8bb
YZ
76482013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
7649
7650 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
7651 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7652 function.
e546e8bb 7653
ab116149
YQ
76542013-04-17 Yao Qi <yao@codesourcery.com>
7655
7656 * top.c (print_gdb_configuration): Print configure-time
7657 parameter on using libbabeltrace or not.
7658
488a42b8
PA
76592013-04-16 Pedro Alves <palves@redhat.com>
7660
7661 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7662
f5fb825b
PA
76632013-04-16 Pedro Alves <palves@redhat.com>
7664
85d494ea 7665 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
7666 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7667
e1154999
PA
76682013-04-16 Pedro Alves <palves@redhat.com>
7669
7670 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7671 * common/glibc_thread_db.h: ... this new file ...
7672 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7673
e3b50a7f
PA
76742013-04-16 Will Newton <will.newton@gmail.com>
7675 Pedro Alves <palves@redhat.com>
7676
7677 PR build/11881
7678
7679 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7680 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7681 HAVE_THREAD_DB_H.
7682
1c2e4450
PA
76832013-04-16 Pedro Alves <palves@redhat.com>
7684 Eli Zaretskii <eliz@gnu.org>
7685
7686 * NEWS: Mention "set foo unlimited".
7687
4031ecc5
DE
76882013-04-15 Doug Evans <dje@google.com>
7689
19c3d4c9
DE
7690 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7691 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7692 (create_dwo_cu_reader): Renamed from
7693 create_dwo_debug_info_hash_table_reader.
7694 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7695 Remove support for multiple CUs in a DWO file.
7696 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7697
4031ecc5
DE
7698 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7699 instead of phex.
7700 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7701 (create_dwo_in_dwp): Ditto.
7702
b340913d
TT
77032013-04-15 Tom Tromey <tromey@redhat.com>
7704
7705 * NEWS: Move recent entries into "since 7.6" section.
7706
cc16e6c9
TT
77072013-04-15 Tom Tromey <tromey@redhat.com>
7708
7709 PR c++/13588:
7710 * NEWS: Update.
7711 * break-catch-throw.c (struct exception_catchpoint)
7712 <exception_rx, pattern>: New fields.
7713 (fetch_probe_arguments, dtor_exception_catchpoint)
7714 (check_status_exception_catchpoint)
7715 (print_one_detail_exception_catchpoint): New functions.
7716 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7717 Compile regular expression if needed.
7718 (extract_exception_regexp): New function.
7719 (catch_exception_command_1): Use extract_exception_regexp.
7720 (compute_exception): Use fetch_probe_arguments.
7721 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7722 and check_status fields.
7723 * cp-abi.c (cplus_typename_from_type_info): New function.
7724 * cp-abi.h (cplus_typename_from_type_info): Declare.
7725 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7726 * gdb_regex.h (compile_rx_or_error): Declare.
7727 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7728 comment.
7729 (init_gnuv3_ops): Set get_type_from_type_info field.
7730 * probe.c (compile_rx_or_error): Move...
7731 * utils.c (compile_rx_or_error): ... here.
7732
72f1fe8a
TT
77332013-04-15 Tom Tromey <tromey@redhat.com>
7734
7735 PR c++/15176:
7736 * NEWS: Update.
7737 * break-catch-throw.c (compute_exception): New function.
7738 (exception_funcs): New global.
7739 (_initialize_break_catch_throw): Create $_exception.
7740 * cp-abi.c (cplus_type_from_type_info): New function.
7741 * cp-abi.h (cplus_type_from_type_info): Declare.
7742 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7743 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7744 (gnuv3_get_type_from_type_info): New functions.
7745 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7746
fc4746a2
TT
77472013-04-15 Tom Tromey <tromey@redhat.com>
7748
7749 * break-catch-throw.c (struct exception_names): New.
7750 (exception_functions): Change type.
7751 (re_set_exception_catchpoint): Look for SDT probes.
7752
15a73f56
TT
77532013-04-15 Tom Tromey <tromey@redhat.com>
7754
7755 PR c++/10119:
7756 * break-catch-throw.c (exception_functions): New global.
7757 (gnu_v3_exception_catchpoint_ops): Move earlier.
7758 (struct exception_catchpoint): New.
7759 (classify_exception_breakpoint): Rewrite.
7760 (re_set_exception_catchpoint): New function.
7761 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7762 Allocate a struct exception_catchpoint.
7763 (catch_exception_command_1): Update.
7764 (initialize_throw_catchpoint_ops): Set 're_set' method.
7765
916703c0
TT
77662013-04-15 Tom Tromey <tromey@redhat.com>
7767
7768 * Makefile.in (SFILES): Add break-catch-throw.c
7769 (COMMON_OBS): Add break-catch-throw.o.
7770 * break-catch-throw.c: New file.
7771 * breakpoint.c: Move exception-catching code to new file.
7772 (ep_parse_optional_if_clause): No longer static.
7773 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7774
6e72ca20
TT
77752013-04-15 Tom Tromey <tromey@redhat.com>
7776
7777 PR c++/9065:
7778 * NEWS: Update.
7779 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7780 * c-exp.y (TYPEID): New token.
7781 (exp): Add new TYPEID productions.
7782 (ident_tokens): Add "typeid".
7783 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7784 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7785 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7786 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7787 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7788 case.
7789 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7790 (build_std_type_info_type, gnuv3_get_typeid_type)
7791 (gnuv3_get_typeid): New functions.
7792 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7793 new fields on ABI object.
7794 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7795 * std-operator.def (OP_TYPEID): New.
7796
715c6909
TT
77972013-04-15 Tom Tromey <tromey@redhat.com>
7798
7799 * elfread.c (elf_symtab_read): Install versioned symbol under
7800 unversioned name as well.
7801
8de20a37
TT
78022013-04-15 Tom Tromey <tromey@redhat.com>
7803
7804 PR c++/11990:
7805 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7806 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7807 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7808 (gdb_demangle): New function.
7809 * cp-support.h (gdb_demangle): Declare.
7810 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7811 (dwarf2_name): Use gdb_demangle.
7812 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7813 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7814 suffixes from name.
7815 (gnuv3_print_method_ptr): Use gdb_demangle.
7816 * jv-lang.c (java_demangle): Use gdb_demangle.
7817 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7818 * language.c (unk_lang_demangle): Use gdb_demangle.
7819 * symtab.c (symbol_find_demangled_name)
7820 (demangle_for_lookup): Use gdb_demangle.
7821
591f19e8
TT
78222013-04-15 Tom Tromey <tromey@redhat.com>
7823
7824 PR c++/12824:
7825 * NEWS: Update.
7826 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7827 New constant.
7828 (classify_exception_breakpoint): New function.
7829 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7830 (print_mention_exception_catchpoint)
7831 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7832 (catch_exception_command_1): Handle "rethrow" catchpoint.
7833 (catch_rethrow_command): New function.
7834 (_initialize_breakpoint): Add "catch rethrow" command.
7835
4d40cad2
PM
78362013-04-15 Pierre Muller <muller@sourceware.org>
7837
7838 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7839 set_gdbarch_write_pc as deprecated anymore.
7840
30bcb456
JB
78412013-04-15 Joel Brobecker <brobecker@adacore.com>
7842
7843 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7844 declarations.
7845
da9160e4
YQ
78462013-04-13 Yao Qi <yao@codesourcery.com>
7847
7848 * ctf.c (_initialize_ctf): Include "completer.h".
7849 Call add_target_with_completer instead of add_target.
7850
39ed5604
JK
78512013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7852
7853 Fix GDB regression related to PR binutils/14813.
7854 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7855 * minidebug.c (lzma_close): Add return value comment.
7856 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7857 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7858 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7859
78602013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
7861
7862 * config.in: Regenerate.
7863
d521ce57
TT
78642013-04-12 Tom Tromey <tromey@redhat.com>
7865
7866 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7867 const.
7868 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7869 (struct die_reader_specs) <buffer>: Likewise.
7870 (die_reader_func_ftype): Make 'info_ptr' const.
7871 (struct line_header) <include_dirs, statement_program_start,
7872 statement_program_end>: Now const.
7873 (struct file_entry) <name>: Likewise.
7874 (struct partial_die_info) <sibling>: Likewise.
7875 (struct dwarf_block) <data>: Likewise.
7876 (dwarf2_read_section): Remove cast.
7877 (dwarf2_get_section_info): Make 'bufp' const.
7878 (read_index_from_section): Constify.
7879 (dw2_get_file_names_reader): Make 'info_ptr' const.
7880 (dw2_get_primary_filename_reader): Likewise.
7881 (read_comp_unit_head): Make 'info_ptr' and return type const.
7882 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7883 Likewise.
7884 (read_abbrev_offset): Constify.
7885 (dwarf2_create_include_psymtab): Make 'name' const.
7886 (create_debug_types_hash_table): Update.
7887 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7888 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7889 Constify.
7890 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7891 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7892 (read_comp_units_from_section): Constify.
7893 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7894 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7895 const.
7896 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7897 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7898 (create_dwp_hash_table, dwarf2_ranges_read)
7899 (dwarf2_record_block_ranges): Constify.
7900 (read_die_and_children, read_die_and_siblings_1)
7901 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7902 const.
7903 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7904 (abbrev_table_read_table): Constify.
7905 (load_partial_dies): Make 'info_ptr' const.
7906 (read_partial_die, read_attribute_value, read_attribute): Make
7907 'info_ptr' and return type const.
7908 (read_address, read_initial_length)
7909 (read_checked_initial_length_and_offset, read_offset)
7910 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7911 const.
7912 (read_direct_string): Make 'buf' and return type const.
7913 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7914 (read_indirect_string): Make return type const.
7915 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7916 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7917 'info_ptr' const.
7918 (read_str_index): Make return type const.
7919 (add_include_dir): Make 'include_dir' const.
7920 (add_file_name): Make 'name' const.
7921 (dwarf_decode_line_header): Constify.
7922 (psymtab_include_file_name): Make return type const.
7923 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7924 (dwarf2_start_subfile): Make 'filename' const.
7925 (dwarf2_const_value_attr): Make 'bytes' const.
7926 (read_signatured_type_reader): Make 'info_ptr' const.
7927 (decode_locdesc): Constify.
7928 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7929 const.
7930 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7931 'mac_end', and return type const.
7932 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7933 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7934 type const.
7935 (per_cu_header_read_in): Constify.
7936 * symfile.h (dwarf2_get_section_info): Update.
7937
d47a1bc1
TT
79382013-04-12 Tom Tromey <tromey@redhat.com>
7939
7940 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7941
6eaaf48b
EZ
79422013-04-12 Eli Zaretskii <eliz@gnu.org>
7943
fc4c25bf 7944 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7945 * top.c (print_gdb_configuration): New function, displays the
7946 details about GDB configure-time parameters.
7947 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7948 * cli/cli-cmds.c (show_configuration): New function.
7949 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7950 * main.c (captured_main) <print_configuration>: New static var.
7951 <long_options>: Use it.
7952 If --configuration was given, call print_gdb_configuration.
7953
b292c783
JK
79542013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7955 Pedro Alves <palves@redhat.com>
7956
7957 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7958 (generated_files): Add gcore.
7959 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7960 HAVE_NATIVE_GCORE_HOST.
7961 (gcore): New.
7962 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7963 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7964 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7965 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7966 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7967 Add HAVE_NATIVE_GCORE_HOST.
7968 * configure: Regenerate.
7969 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7970 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7971 AC_CONFIG_FILES for gcore.
7972 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7973 gdb_have_gcore.
7974 * gdb_gcore.sh: Rename to ...
7975 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7976 and GCORE_TRANSFORM_NAME substitutions.
7977
c96b3c4f
JK
7978 Fix parsing tabs in ${gdb_target_obs}.
7979 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7980
d6cb50a2
JK
79812013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7982
7983 * remote.c (unpush_and_perror): Add output message final dot.
7984
cf2cb5ec
YQ
79852013-04-11 Yao Qi <yao@codesourcery.com>
7986
7987 * tracepoint.c (tfile_interp_line): Fit parameters line and
7988 utpp in one line.
7989
07293be4
JB
79902013-04-10 Joel Brobecker <brobecker@adacore.com>
7991
7992 * solib.c (solib_map_sections): Remove code overwriting
7993 SO->SO_NAME with the bfd's filename.
7994
f81d1120
PA
79952013-04-10 Pedro Alves <palves@redhat.com>
7996
7997 * cli/cli-decode.c (integer_unlimited_completer): New function.
7998 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7999 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8000 completer.
8001 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8002 (is_unlimited_literal): New function.
8003 (do_set_command): Handle literal "unlimited" arguments.
8004 * frame.c (_initialize_frame) <set backtrace limit>: Document
8005 "unlimited".
8006 * printcmd.c (_initialize_printcmd) <set print
8007 max-symbolic-offset>: Add help text.
8008 * record-full.c (_initialize_record_full) <set record full
8009 insn-number-max>: Likewise.
8010 * record.c (_initialize_record) <set record
8011 instruction-history-size, set record function-call-history-size>:
8012 Add help text.
8013 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8014 help text.
8015 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8016 Likewise.
8017 * source.c (_initialize_source) <set listsize>: Add help text.
8018 * utils.c (initialize_utils) <set height, set width>: Likewise.
8019 <set pagination>: Mention "set height unlimited".
8020 * valprint.c (_initialize_valprint) <set print elements, set print
8021 repeats>: Document "unlimited".
8022
2f9d54cf
PA
80232013-04-10 Pedro Alves <palves@redhat.com>
8024
8025 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8026 instead of disconnect_tracing.
8027 * infcmd.c (detach_command, disconnect_command): Call
8028 query_if_trace_running. Adjust.
8029 * top.c: Include "tracepoint.h".
8030 (quit_target): Delete. Contents moved ...
8031 (quit_force): ... here. Wrap each stage of teardown in
8032 TRY_CATCH. Call disconnect_tracing before detaching.
8033
393fd4c3
YQ
80342013-04-10 Hui Zhu <hui@codesourcery.com>
8035 Yao Qi <yao@codesourcery.com>
8036
8037 * configure.ac: Check libbabeltrace is installed.
8038 * config.in: Regenerate.
8039 * configure: Regenerate.
8040 * Makefile.in (LIBBABELTRACE): New.
8041 (CLIBS): Add LIBBABELTRACE.
8042 * ctf.c: Include "exec.h".
8043 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8044 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8045 (ctf_save_metadata_header): Define new type aliases in
8046 metadata.
8047 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8048 in metadata. Start a new faked packet for trace status.
8049 (ctf_write_status): Write trace status to CTF.
8050 (ctf_write_uploaded_tsv): Write TSV to CTF.
8051 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8052 (ctf_write_definition_end): End the faked packet.
8053
8054 (ctx, ctf_iter, trace_dirname): New.
8055 (start_pos): New variable.
8056 (ctf_destroy, ctf_open_dir, ctf_open): New.
8057 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8058 macros.
8059 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8060 (ctf_fetch_registers, ctf_xfer_partial): New.
8061 (ctf_get_trace_state_variable_value): New.
8062 (ctf_get_tpnum_from_frame_event): New.
8063 (ctf_get_traceframe_address): New.
8064 (ctf_trace_find, ctf_has_stack): New.
8065 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8066 (ctf_get_trace_status, ctf_read_status): New.
8067 (_initialize_ctf): New.
8068 * tracepoint.c (get_tracepoint_number): New
8069 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 8070 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
8071 * tracepoint.h: ... here.
8072 (get_tracepoint_number): Declare it.
8073 (get_uploaded_tsv): Declare it.
8074
8075 * NEWS: Mention new configure option.
8076
5c2b4418
HZ
80772013-04-10 Pedro Alves <palves@redhat.com>
8078 Hui Zhu <hui@codesourcery.com>
8079
8080 * breakpoint.c (dprintf_re_set): New.
8081 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8082 to dprintf_re_set.
8083
a5c66735
JB
80842013-04-09 Joel Brobecker <brobecker@adacore.com>
8085
8086 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8087 Remove solib-svr4.o from the list.
8088
9e77999c
JB
80892013-04-09 Joel Brobecker <brobecker@adacore.com>
8090
8091 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8092 Use gdb_assert_not_reached instead of invalid boolean expression.
8093
1927e618
PA
80942013-04-09 Pedro Alves <palves@redhat.com>
8095
8096 * remote.c (unpush_and_perror): New function.
8097 (readchar, remote_serial_write): Use it.
8098
10782d74
MM
80992013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8100
8101 * NEWS: Mention new btrace RSP packets.
8102
4c8429ef
TT
81032013-04-08 Tom Tromey <tromey@redhat.com>
8104
8105 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8106 long.
8107
8625fc1b
TT
81082013-04-08 Tom Tromey <tromey@redhat.com>
8109
8110 * maint.c (print_bfd_section_info): Print the section index.
8111 * symmisc.c (dump_msymbols): Print the section index.
8112
e27d198c
TT
81132013-04-08 Tom Tromey <tromey@redhat.com>
8114
8115 PR symtab/8424:
8116 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8117 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8118 * breakpoint.c (resolve_sal_pc): Update.
8119 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8120 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8121 (minsym_lookup_iterator_cb): Use it.
8122 (default_read_var_value): Update.
8123 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8124 Update.
8125 * infcmd.c (jump_command): Update.
8126 * linespec.c (minsym_found): Update.
8127 * maint.c (maintenance_translate_address): Update.
8128 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8129 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8130 * parse.c (write_exp_msymbol): Update.
8131 * printcmd.c (address_info): Update.
8132 * psymtab.c (find_pc_sect_psymbol): Update.
8133 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8134 SYMBOL_OBJ_SECTION.
8135 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8136 Don't initialize SYMBOL_OBJ_SECTION.
8137 * spu-tdep.c (spu_catch_start): Update.
8138 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8139 * symmisc.c (dump_msymbols, print_symbol): Update.
8140 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8141 how fallback section is computed.
8142 (fixup_symbol_section): Update.
8143 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8144 Update.
8145 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8146 Initialize SYMBOL_SECTION.
8147 * symtab.h (struct general_symbol_info) <section>: Update comment.
8148 <obj_section>: Remove.
8149 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8150 (SYMBOL_OBJFILE): New macro.
8151
e6dc44a8
TT
81522013-04-08 Tom Tromey <tromey@redhat.com>
8153
8154 * coffread.c (record_minimal_symbol): Update.
8155 * dbxread.c (record_minimal_symbol): Update.
8156 * elfread.c (record_minimal_symbol): Update.
8157 * machoread.c (macho_symtab_add_minsym): Update.
8158 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8159 Update.
8160 * minsyms.c (prim_record_minimal_symbol): Update.
8161 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8162 argument.
8163 (prim_record_minimal_symbol_and_info): Likewise.
8164 * minsyms.h (prim_record_minimal_symbol_full)
8165 (prim_record_minimal_symbol_and_info): Update.
8166 * symtab.c (allocate_symbol, initialize_symbol)
8167 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8168 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8169 Update.
8170
36192a8d
TT
81712013-04-08 Tom Tromey <tromey@redhat.com>
8172
8173 PR symtab/8423:
8174 * solib-som.c (som_solib_section_offsets): Use BFD section
8175 indices. Set offsets for all sections.
8176 * somread.c (som_symtab_read): Compute BFD section for
8177 symbol. Use prim_record_minimal_symbol_and_info.
8178 (som_symfile_read): Fix comment.
8179 (struct find_section_offset_arg): New.
8180 (find_section_offset, set_section_index): New functions.
8181 (som_symfile_offsets): Use set_section_index to compute
8182 section indices.
8183
65cf3563
TT
81842013-04-08 Tom Tromey <tromey@redhat.com>
8185
8186 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8187 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8188 gdb_bfd_section_index.
8189 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8190 New functions.
8191 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8192 Declare.
8193 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8194 Update.
8195 * objfiles.c (add_to_objfile_sections_full): New function.
8196 (add_to_objfile_sections): Use it.
8197 (build_section_table): Rewrite.
8198 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8199 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8200 (struct objfile) <sections>: Update comment.
8201 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8202 is NULL.
8203 (ALL_OBJSECTIONS): Use it.
8204 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8205 * solib-frv.c (frv_relocate_main_executable): Update.
8206 * solib-target.c (solib_target_relocate_section_addresses):
8207 Use gdb_bfd_section_index.
8208 * symfile.c (build_section_addr_info_from_section_table):
8209 Use gdb_bfd_section_index.
8210 (build_section_addr_info_from_bfd, place_section): Likewise.
8211 * symtab.c (fixup_section): Update.
8212 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8213
7cbd4a93
TT
82142013-04-08 Tom Tromey <tromey@redhat.com>
8215
8216 * minsyms.h (struct bound_minimal_symbol): New.
8217 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8218 Remove objfile argument.
8219 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8220 Return bound_minimal_symbol.
8221 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8222 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8223 Return bound_minimal_symbol.
8224 (in_gnu_ifunc_stub): Update.
8225 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8226 Remove 'objfile_p' argument.
8227 (lookup_solib_trampoline_symbol_by_pc): Update.
8228 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8229 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8230 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8231 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8232 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8233 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8234 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8235 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8236 stack.c, symtab.c, tui/tui-disasm.c: Update.
8237
f85f34ed
TT
82382013-04-08 Tom Tromey <tromey@redhat.com>
8239
8240 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8241 Use symbol's obstack, not an objfile.
8242 * coffread.c (process_coff_symbol): Update.
8243 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8244 * jv-lang.c (add_class_symbol): Update.
8245 * mdebugread.c (new_symbol): Update.
8246 * minsyms.c (prim_record_minimal_symbol_full)
8247 (terminate_minimal_symbol_table): Update.
8248 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8249 * stabsread.c (define_symbol, read_enum_type): Update.
8250 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8251 Handle Ada specially.
8252 (symbol_set_language): Add 'obstack' argument.
8253 (symbol_set_names): Update.
8254 (symbol_natural_name, symbol_demangled_name): Always use
8255 ada_decode_symbol.
8256 * symtab.h (struct general_symbol_info)
8257 <language_specific::obstack>: New field.
8258 <ada_mangled>: New field.
8259 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8260 (symbol_set_language): Update.
8261
ccde22c0
TT
82622013-04-08 Tom Tromey <tromey@redhat.com>
8263
8264 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8265 Take an obstack, not an objfile.
8266 (symbol_set_names): Update.
8267 * symtab.h (symbol_set_demangled_name): Update.
8268
e623cf5d
TT
82692013-04-08 Tom Tromey <tromey@redhat.com>
8270
8271 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8272 allocate_symbol.
8273 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8274 (read_func_scope): Call allocate_template_symbol.
8275 (new_symbol_full): Call allocate_symbol.
8276 * jit.c (finalize_symtab): Call allocate_symbol.
8277 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8278 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8279 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8280 (common_block_end): Call allocate_symbol.
8281 * symtab.c (allocate_symbol, initialize_symbol)
8282 (allocate_template_symbol): New functions.
8283 * symtab.c (allocate_symbol, initialize_symbol)
8284 (allocate_template_symbol): Declare.
8285 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8286
f6de8ec2
PA
82872013-04-08 Pedro Alves <palves@redhat.com>
8288 Keith Seitz <keiths@redhat.com>
8289
8290 * breakpoint.c (create_breakpoint): Rename
8291 "parse_condition_and_thread" parameter to "parse_arg". Update
8292 describing comment. If !PARSE_ARG, then error out if ARG is not
8293 the empty string after extracting the location.
8294 * breakpoint.h (create_breakpoint): Rename
8295 "parse_condition_and_thread" parameter to "parse_arg".
8296
f65ce5fb
AR
82972013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8298
8299 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8300
cc5925ad
YQ
83012013-04-07 Yao Qi <yao@codesourcery.com>
8302
8303 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8304 and 'addr2' to CORE_ADDR.
8305 * target.c (update_current_target): Update.
8306 * target.h (struct target_ops) <to_trace_find>: Change parameter
8307 type to CORE_ADDR.
8308 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8309 'addr2' to CORE_ADDR.
8310 (tfile_trace_find): Likewise.
8311 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8312 Change local variable 'addr' to type CORE_ADDR.
8313 * tracepoint.h (tfind_1): Update declaration.
8314
d9ac0664
EZ
83152013-04-06 Eli Zaretskii <eliz@gnu.org>
8316
8317 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8318 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8319 Include main.h.
8320
8321 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8322 here...
8323 * main.h (windows_get_absolute_argv0): ...to here.
8324
02142a6c
DE
83252013-04-05 Doug Evans <dje@google.com>
8326
8327 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8328 (read_cutu_die_from_dwo): Add comments.
8329 (read_structure_type): Update comment.
8330 (read_enumeration_type, read_namespace_type): Update comment.
8331 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8332
43662968
JK
83332013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8334
8335 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8336 * Makefile.in (gdb.z): Remove.
8337 (install-only): Remove $(man1dir) and gdb.1 installation.
8338 * gdb.1: Remove.
8339
9ead1b84
JK
83402013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8341
8342 Fix compatibility with Linux kernel 3.8.3.
8343 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8344 to more inner block. Remove parsing of NUMBER from outer block.
8345 Parse NUMBER only if KEYWORD has been identified.
8346
d1794952
JK
83472013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 Fix variable name shadowing.
8350 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8351 filename to mapsfilename and update its uses.
8352
9025569e
EZ
83532013-04-05 Eli Zaretskii <eliz@gnu.org>
8354
8355 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8356 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8357 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8358 details of the problem.
8359
c9a6ce02
PA
83602013-04-04 Pedro Alves <palves@redhat.com>
8361 Hui Zhu <hui@codesourcery.com>
8362
8363 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8364 tracepoint, reset its STEP_COUNT and call validate_actionline.
8365
5ff888ce
DE
83662013-04-03 Doug Evans <dje@google.com>
8367
bf6af496
DE
8368 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8369 read_die_and_siblings.
8370 (read_die_and_siblings): New function.
8371 (read_cutu_die_from_dwo): Dump die if requested.
8372 (read_die_and_children): Call read_full_die_1 and
8373 read_die_and_siblings_1.
8374 (read_full_die): Dump die if requested.
8375
8376 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8377
0ac5b59e
DE
8378 * dwarf2read.c (struct dwo_file): New member comp_dir.
8379 Rename member name to dwo_name. All uses updated.
8380 (hash_dwo_file): Include comp_dir in computation.
8381 (eq_dwo_file): Ditto.
8382 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8383 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8384
5ff888ce
DE
8385 * psymtab.c (read_psymtabs_with_fullname): Don't call
8386 psymtab_to_fullname if the basenames are different.
8387
ec83d211
JK
83882013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8389
8390 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8391 New entry about "fullname" presence.
8392
4f4352f7
PA
83932013-04-03 Pedro Alves <palves@redhat.com>
8394
8395 * NEWS: Mention x86_64/Cygwin as new native configuration.
8396
3d1d5ea3
DE
83972013-04-02 Doug Evans <dje@google.com>
8398
8399 * dwarf2read.c (read_structure_type): Fix typo in comment.
8400
be9a8770
PA
84012013-04-02 Pedro Alves <palves@redhat.com>
8402
8403 * NEWS: Mention "set/show debug aarch64", "set/show debug
8404 coff-pe-read" and "set/show debug mach-o".
8405
a46c1e42
PA
84062013-04-02 Pedro Alves <palves@redhat.com>
8407
8408 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8409
3ad18b19
EZ
84102013-04-02 Eli Zaretskii <eliz@gnu.org>
8411
8412 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8413 gdb_string.h is now in common/.
8414
e9f1758d
PA
84152013-04-02 Pedro Alves <palves@redhat.com>
8416
8417 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8418 under "New options".
8419
049dc89b
JK
84202013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8421
8422 Revert this patch:
8423 PR gdb/15275
8424 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8425
c33e31fd
PA
84262013-04-02 Pedro Alves <palves@redhat.com>
8427
8428 PR gdb/15275
8429
8430 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8431 (remote_serial_write): New function.
8432 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8433
ea5f3910
JW
84342013-04-01 Jiong Wang <jiwang@tilera.com>
8435
8436 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 8437 "New targets" sections.
ea5f3910 8438
5c6fa7ab
DE
84392013-04-01 Doug Evans <dje@google.com>
8440
c0f78cd4
DE
8441 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8442 (process_enumeration_scope): Simplify.
8443
0186c6a7
DE
8444 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8445 type_unit_group ...
8446 (struct signatured_type): ... to here.
8447 (sig_type_ptr): New typedef.
8448 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8449 out of union 't'. All uses updated.
8450 (dw2_get_file_names_reader): Assert not called for a type unit.
8451 (dw2_get_file_names): Assert not called for a type unit or type
8452 unit group.
8453 (build_type_psymtabs_reader): Assert called for a type unit.
8454 (build_type_psymtab_dependencies): Assert called for a type unit group.
8455
5c6fa7ab
DE
8456 * dwarf2read.c (free_dwo_file): Add comment.
8457 (dwarf2_per_objfile_free): Unref dwp bfd.
8458
b3c0ad67 84592013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
8460
8461 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8462 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8463 (read_pe_exported_syms): Remove unused 'exportix'.
8464 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8465 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8466 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8467
e2df1547
AR
84682013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8469
8470 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8471 (print_it_watchpoint): Remove unused 'bl'.
8472 (say_where): Remove unused 'uiout'.
8473 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8474 (bkpt_breakpoint_hit): Remove unused 'b'.
8475 (internal_bkpt_print_it): Remove unused 'uiout'.
8476 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8477
d81e75c0
TD
84782013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8479
8480 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8481 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8482
5a8b3f62
DE
84832013-03-29 Doug Evans <dje@google.com>
8484
ab5088bf
DE
8485 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8486 Delete arg is_dwp. All callers updated.
8487 (open_dwp_file): New function.
8488 (open_and_init_dwp_file): Call it.
8489 (get_dwp_file): New function.
8490 (lookup_dwo_cutu): Call it.
8491
a8ad1e57
DE
8492 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8493 unnecessary, cleanup.
8494
6296d8c1
DE
8495 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8496
b0c7bfa9
DE
8497 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8498 (lookup_dwo_unit): New function.
8499 (init_cutu_and_read_dies): Move DWO handling to new functions.
8500
c88ee1f0
DE
8501 * dwarf2read.c (struct signatured_type): Tweak comment.
8502 (struct dwo_unit): Tweak comment.
8503 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8504 (create_dwo_debug_info_hash_table): Tweak comment.
8505 (dwarf2_per_cu_offset_and_type): Tweak comment.
8506
5a8b3f62
DE
8507 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8508 missing .debug_types section.
8509
9852c492
YQ
85102013-03-29 Yao Qi <yao@codesourcery.com>
8511
8512 * corelow.c: Include "completer.h".
8513 (_initialize_corelow): Call add_target_with_completer with
8514 argument 'filename_completer'.
8515 * tracepoint.c: Likewise.
8516 * exec.c (_initialize_exec): Likewise.
8517 * target.c (add_target): Rename to ...
8518 (add_target_with_completer): ... this. Call set_cmd_completer
8519 if parameter completer is not NULL.
8520 (add_target): New.
8521 * target.h: Include "command.h".
8522 (add_target_with_completer): Declare it.
8523
af312be7
JB
85242013-03-28 Joel Brobecker <brobecker@adacore.com>
8525
8526 * coffread.c (is_import_fixup_symbol): New function.
8527 (record_minimal_symbol): Use is_import_fixup_symbol to
8528 detect import fixup symbols, and discard them.
8529
8a0459fd
DE
85302013-03-28 Doug Evans <dje@google.com>
8531
0349ea22
DE
8532 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8533 types hash table until we know we need it.
8534
f652bce2
DE
8535 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8536 index numbers.
8537
e4a48d9d
DE
8538 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8539 All callers updated.
8540 (dw2_print_stats): Print #read CUs too.
8541 (dump_die_shallow): Print signatured types better.
8542
8a0459fd
DE
8543 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8544 info_or_types_section to section. All uses updated.
8545 (struct dwo_unit): Ditto.
8546
bd3eecc3
PA
85472013-03-28 Pedro Alves <palves@redhat.com>
8548
8549 * NEWS (New options): New section.
8550 (New options): Mention set/show remote trace-status-packet.
8551 * remote.c (PACKET_qTStatus): New enumeration value.
8552 (remote_get_trace_status): Skip sending qTStatus if the packet is
8553 disabled. Use packet_ok.
8554 (_initialize_remote): Register a configuration command for
8555 qTStatus packet.
8556
41245087
DE
85572013-03-28 Doug Evans <dje@google.com>
8558
7edbb660
DE
8559 * symfile.c (find_separate_debug_file): Add comment.
8560 (terminate_after_last_dir_separator): Tweak comment.
8561
0018ea6f
DE
8562 * dwarf2read.c (create_partial_symtab): Add forward decl.
8563 (create_partial_symtab): Move to be closer to other psymtab functions.
8564 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8565
ca69b9e6
DE
8566 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8567 (compute_symtab_includes): Remove unnecessary forward declaration.
8568 (die_needs_namespace): Add comment marking group of functions for
8569 dwarf2 name computation.
8570
a9375afe
DE
8571 * typeprint.c (_initialize_typeprint): Improve type help text.
8572
41245087
DE
8573 * python/python.c (finish_python_initialization): Provide suggestion
8574 for how to tell gdb to find its python files.
8575
7f7cc265
PA
85762013-03-28 Pedro Alves <palves@redhat.com>
8577
8578 PR gdb/15294
8579
8580 * source.c (_initialize_source): Change back "set listsize" to an
8581 integer command.
8582
ec21308c
JK
85832013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8584
8585 PR gdb/15275
8586 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8587
840a9a1f
PA
85882013-03-27 Pedro Alves <palves@redhat.com>
8589
8590 * top.c (history_size): Rename to ...
8591 (history_size_setshow_var): ... this. Add comment.
8592 (show_commands): Use readline's 'history_length' instead of
8593 computing the history length by calling history_get in a loop.
8594 (set_history_size_command): Error out for sizes over INT_MAX.
8595 Restore previous history size on invalid size.
8596 (init_history): If HISTSIZE is negative, leave the history size as
8597 zero. Add comments.
8598 (init_main): Adjust.
8599
826ecc4d
PA
86002013-03-27 Pedro Alves <palves@redhat.com>
8601
8602 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8603 coff_pe_read" command to "set debug coff-pe-read".
8604
0ccfeeae
MM
86052013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8606
8607 * record.c (command_size_to_target_size): Fix size comparison.
8608 Change parameter type from pointer to integer to integer.
8609 Update all users.
8610
40653b35
PM
86112013-03-27 Pierre Muller <muller@sourceware.org>
8612
8613 * windows-nat.c (handle_output_debug_string): Avoid typecast
8614 from integer of different size warning.
8615
c62fa0e2
JB
86162013-03-26 Joel Brobecker <brobecker@adacore.com>
8617
8618 * windows-nat.c (handle_output_debug_string): Add empty line
8619 after local block variable definition.
8620
2c619be2
PA
86212013-03-26 Pedro Alves <palves@redhat.com>
8622
8623 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8624 (net_open): Make 'polls' local unsigned.
8625
1b493192
PA
86262013-03-26 Pedro Alves <palves@redhat.com>
8627
8628 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8629 a zuinteger command instead of uinteger.
8630
7ee70bf5
PA
86312013-03-26 Pedro Alves <palves@redhat.com>
8632
8633 * record-full.c (record_full_insn_num): Make it unsigned.
8634 (record_full_check_insn_num, record_full_message)
8635 (record_full_registers_change, record_full_xfer_partial): Remove
8636 record_full_insn_max_num check (it's always != 0).
8637 (record_full_info, record_full_restore): Use %u as format string.
8638 (): Use %u as format string.
8639 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8640 check (it's always != 0).
8641
dfd1f9bb
PA
86422013-03-26 Pedro Alves <palves@redhat.com>
8643
8644 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8645 and "set dcache size" commands zuinteger instead of uinteger.
8646
addb4faf
PA
86472013-03-26 Pedro Alves <palves@redhat.com>
8648
8649 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8650 command zuinteger instead of uinteger.
8651
b75bf488
PA
86522013-03-26 Pedro Alves <palves@redhat.com>
8653
8654 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8655 zuinteger instead of uinteger.
8656
42c634cb
PA
86572013-03-26 Pedro Alves <palves@redhat.com>
8658
8659 * record.c (record_insn_history_size_setshow_var)
8660 (record_call_history_size_setshow_var): New globals.
8661 (command_size_to_target_size): New function.
8662 (cmd_record_insn_history, cmd_record_call_history): Use
8663 command_size_to_target_size instead of cast.
8664 (validate_history_size, set_record_insn_history_size)
8665 (set_record_call_history_size): New functions.
8666 (_initialize_record): Install set_record_insn_history_size and
8667 set_record_call_history_size as "set" hooks of "set record
8668 instruction-history-size" and "set record
8669 function-call-history-size".
8670
1fb2e2b5
PA
86712013-03-26 Pedro Alves <palves@redhat.com>
8672
8673 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8674 use with history_max_entries use. Remove FIXME note.
8675
99c819ee
MM
86762013-03-26 Markus Metzger <markus.t.metzger@intel.com>
8677
8678 * record-btrace.c (record_btrace_close): Call
8679 record_btrace_auto_disable.
8680
9f9e404c
JB
86812013-03-25 Joel Brobecker <brobecker@adacore.com>
8682
8683 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8684
ebcdfe33
DE
86852013-03-25 Doug Evans <dje@google.com>
8686
8687 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8688
24955f63
TT
86892013-03-25 Tom Tromey <tromey@redhat.com>
8690
8691 PR symtab/11462:
8692 * c-exp.y (exp): Add new productions for destructors after '.' and
8693 '->'.
8694 (write_destructor_name): New function.
8695
fce632b6
TT
86962013-03-25 Tom Tromey <tromey@redhat.com>
8697
8698 PR c++/9197:
8699 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8700 value_struct_elt, not lookup_struct_elt_type.
8701 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8702 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8703 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8704
a4341769
YQ
87052013-03-25 Yao Qi <yao@codesourcery.com>
8706
8707 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8708 instead of '_mkdir'.
8709
b5981e5a
EZ
87102013-03-23 Eli Zaretskii <eliz@gnu.org>
8711
8712 * windows-nat.c (windows_get_absolute_argv0): New function.
8713 * windows-nat.h: Add its prototype.
8714
8715 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8716 Use IS_DIR_SEPARATOR instead of looking for a character inside
8717 SLASH_STRING. Include filenames.h.
8718 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8719 relocate_gdb_directory works when passed gdb_program_name.
8720 Include windows-nat.h.
8721
598d3636
JK
87222013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8723
8724 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8725 * remote.c (trace_error): Remove the special handling of '2'.
8726 (readchar) <SERIAL_EOF>
8727 (readchar) <SERIAL_ERROR>
8728 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8729 (remote_get_trace_status): Call throw_exception if EX is
8730 TARGET_CLOSE_ERROR.
8731 * utils.c (perror_with_name): Rename to ...
8732 (throw_perror_with_name): ... here. New parameter errcode, describe it
8733 in the function comment.
8734 (perror_with_name): New function wrapper.
8735 * utils.h (enum errors): New stub declaration.
8736 (throw_perror_with_name): New declaration.
8737
82b821e9
PA
87382013-03-22 Pedro Alves <palves@redhat.com>
8739 Yao Qi <yao@codesourcery.com>
8740 Mark Kettenis <kettenis@gnu.org>
8741
8742 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8743 Don't let the user set the value to UINT_MAX directly.
8744 <var_integer>: Don't let the user set the value to INT_MAX
8745 directly.
8746
78a095c3
JK
87472013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8748
8749 * remote.c (remote_unpush_target): New function.
8750 (remote_open_1): Remove two pop_target calls, update one comment, add
8751 comment to target_preopen call. Replace pop_target call by
8752 remote_unpush_target call.
8753 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8754 pop_target calls by remote_unpush_target calls.
8755
3e74e146
PA
87562013-03-22 Pedro Alves <palves@redhat.com>
8757
8758 * linux-nat.c (linux_child_follow_fork): Don't call
8759 linux_enable_event_reporting.
8760 (linux_handle_extended_wait): Don't call
8761 linux_enable_event_reporting.
8762
a2213dca
PA
87632013-03-22 Pedro Alves <palves@redhat.com>
8764
8765 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8766 use it to rewrite the trampoline buffers with type gdb_byte[], and
8767 undefine the macro. Remove char* cast.
8768
bd712aed
DE
87692013-03-21 Doug Evans <dje@google.com>
8770
8771 New commands "mt set per-command {space,time,symtab} {on,off}".
8772 * NEWS: Add entry.
8773 * event-top.c: #include "maint.h".
8774 * main.c: #include "maint.h".
8775 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8776 timeval-utils.h, maint.h, cli/cli-setshow.h.
8777 (per_command_time, per_command_space): New static globals.
8778 (per_command_symtab): New static global.
8779 (per_command_setlist, per_command_showlist): New static globals.
8780 (struct cmd_stats): Move here from utils.c.
8781 (set_per_command_time): Renamed from set_display_time in utils.c
8782 and moved here. All callers updated.
8783 (set_per_command_space): Renamed from set_display_space in utils.c
8784 and moved here. All callers updated.
8785 (count_symtabs_and_blocks): New function.
8786 (report_command_stats): Moved here from utils.c. Add support for
8787 printing symtab stats. Only print data if enabled before command
8788 executed.
8789 (make_command_stats_cleanup): Ditto.
8790 (sert_per_command_cmd, show_per_command_cmd): New functions.
8791 (_initialize_maint_cmds): Add new commands
8792 mt set per-command {space,time,symtab} {on,off}.
8793 * maint.h: New file.
8794 * top.c: #include "maint.h".
8795 * utils.c (reset_prompt_for_continue_wait_time): New function.
8796 (get_prompt_for_continue_wait_time): New function.
8797 * utils.h (reset_prompt_for_continue_wait_time): Declare
8798 (get_prompt_for_continue_wait_time): Declare.
8799 (make_command_stats_cleanup): Moved to maint.h.
8800 (set_display_time, set_display_space): Moved to maint.h and renamed
8801 to set_per_command_time, set_per_command_space.
8802 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8803 parse_binary_operation and made non-static. Don't call error,
8804 just return an error marker. All callers updated.
8805 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8806
d76488d8
TT
88072013-03-21 Tom Tromey <tromey@redhat.com>
8808
8809 * symfile.c (alloc_section_addr_info): Update header. Don't set
8810 'num_sections' field.
8811 (build_section_addr_info_from_section_table): Set 'num_sections'.
8812 (build_section_addr_info_from_bfd): Likewise.
8813 (build_section_addr_info_from_objfile): Remove dead loop
8814 condition.
8815 (free_section_addr_info): Unconditionally call xfree.
8816 (relative_addr_info_to_section_offsets, addrs_section_sort)
8817 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8818 condition.
8819 (syms_from_objfile_1): Remove dead 'if' condition. Check
8820 'num_sections'.
8821 (add_symbol_file_command): Set 'num_sections'.
8822 * symfile-mem.c (symbol_file_add_from_memory): Set
8823 'num_sections'.
8824 * somread.c (som_symfile_offsets): Remove dead loop condition.
8825 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8826 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8827
a72e5169 88282013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
8829
8830 * tracepoint.h (decode_agent_options): Add 'trace_string'
8831 argument.
8832 * tracepoint.c (decode_agent_options): Add 'trace_string'
8833 argument.
8834 (validate_actionline): Update.
8835 (collect_symbol): Add 'trace_string' argument.
8836 (struct add_local_symbols_data) <trace_string>: New field.
8837 (do_collect_symbol): Update.
8838 (add_local_symbols): Add 'trace_string' argument.
8839 (encode_actions_1): Update.
8840 (trace_dump_actions): Update.
8841 * dwarf2loc.c (access_memory): Update.
8842 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8843 * ax-general.c (new_agent_expr): Update.
8844 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8845 (gen_trace_for_return_address): Add argument.
8846 (trace_kludge, trace_string_kludge): Remove.
8847 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8848 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8849 (gen_trace_for_var): Add 'trace_string' argument.
8850 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8851 (gen_printf, agent_eval_command_one): Update.
8852
b2f83c08
TT
88532013-03-21 Tom Tromey <tromey@redhat.com>
8854
8855 PR exp/15109:
8856 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8857 Handle FILENAME token.
8858
9507860e
TT
88592013-03-21 Tom Tromey <tromey@redhat.com>
8860
8861 * c-exp.y (YYPRINT): Define.
8862 (c_print_token): New function.
8863
e403aa4b
TT
88642013-03-21 Tom Tromey <tromey@redhat.com>
8865
8866 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8867
af307d6a
YQ
88682013-03-21 Yao Qi <yao@codesourcery.com>
8869
8870 * ctf.c: Include "gdb_stat.h".
8871 [USE_WIN32API]: New macro 'mkdir'.
8872 (ctf_start): Use permission bits macros if they are defined.
8873
fb81d016
KS
88742013-03-20 Keith Seitz <keiths@redhat.com>
8875
8876 * breakpoint.h (struct breakpoint): Add comment to
8877 extra_string indicating that this member is mallod'd.
8878 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8879
ef0026f0
PA
88802013-03-20 Pedro Alves <palves@redhat.com>
8881
8882 PR gdb/15289
8883
8884 * cli/cli-setshow.c (do_set_command)
8885 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8886 the result of parsing the command argument. Throw error if the
8887 value is greater than UINT_MAX. Print the invalid value with
8888 plongest.
8889 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8890 result of parsing the command argument. Throw error if the value
8891 is greater than INT_MAX, not greater or equal. Also throw error
8892 if the value is less than INT_MIN. Print the invalid value with
8893 plongest.
8894 <var_zuinteger_unlimited>: Throw error if the value is greater
8895 than INT_MAX, not greater or equal.
8896 (do_show_command) <var_integer, var_zinteger,
8897 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8898
24d6c2a0
TT
88992013-03-20 Tom Tromey <tromey@redhat.com>
8900
8901 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8902 if possible.
8903 * dwarf2read.c (read_func_scope): Remove old FIXME.
8904 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8905 not LOC_COMPUTED.
8906 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8907 Unconditionally call via computed ops, if possible.
8908 * printcmd.c (address_info): Unconditionally call via computed ops,
8909 if possible.
8910 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8911 if possible.
8912 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8913 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8914 if possible.
8915
f1e6e072
TT
89162013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8917 Tom Tromey <tromey@redhat.com>
8918
8919 PR symtab/8421:
8920 * coffread.c (coff_register_index): New global.
8921 (process_coff_symbol, coff_read_enum_type): Set
8922 SYMBOL_ACLASS_INDEX.
8923 (_initialize_coffread): Initialize new global.
8924 * dwarf2loc.c (locexpr_find_frame_base_location)
8925 (dwarf2_block_frame_base_locexpr_funcs)
8926 (loclist_find_frame_base_location)
8927 (dwarf2_block_frame_base_loclist_funcs): New.
8928 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8929 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8930 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8931 (dwarf2_block_frame_base_loclist_funcs): New.
8932 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8933 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8934 globals.
8935 (read_func_scope): Update.
8936 (fixup_go_packaging, mark_common_block_symbol_computed)
8937 (var_decode_location, new_symbol_full, dwarf2_const_value):
8938 Set SYMBOL_ACLASS_INDEX.
8939 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8940 (_initialize_dwarf2_read): Initialize new globals.
8941 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8942 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8943 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8944 globals.
8945 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8946 (_initialize_mdebugread): Initialize new globals.
8947 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8948 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8949 (stab_register_index, stab_regparm_index): New globals.
8950 (define_symbol, read_enum_type, common_block_end): Set
8951 SYMBOL_ACLASS_INDEX.
8952 (_initialize_stabsread): Initialize new globals.
8953 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8954 globals.
8955 (MAX_SYMBOL_IMPLS): New define.
8956 (register_symbol_computed_impl, register_symbol_block_impl)
8957 (register_symbol_register_impl)
8958 (initialize_ordinary_address_classes): New functions.
8959 (_initialize_symtab): Call initialize_ordinary_address_classes.
8960 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8961 (struct symbol_impl): New.
8962 (SYMBOL_ACLASS_BITS): New define.
8963 (struct symbol) <aclass, ops>: Remove fields.
8964 <aclass_index>: New field.
8965 (symbol_impls): Declare.
8966 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8967 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8968 (register_symbol_computed_impl, register_symbol_block_impl)
8969 (register_symbol_register_impl): Declare.
8970 (struct symbol_computed_ops): Add location_has_loclist.
8971 (struct symbol_block_ops): New.
8972 (SYMBOL_BLOCK_OPS): New.
8973 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8974
dbccfd4c
TT
89752013-03-20 Tom Tromey <tromey@redhat.com>
8976
8977 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8978 (print_partial_symbols, recursively_search_psymtabs): Use
8979 PSYMBOL_CLASS.
8980
e3f1ad4f
PM
89812013-03-20 Pierre Muller <muller@sourceware.org>
8982
8983 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8984 addtion, subtraction, multiplication and division binary operator.
8985
460014f5
JK
89862013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 Code cleanup.
8989 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8990 * bsd-kvm.c (bsd_kvm_close): Likewise.
8991 * bsd-uthread.c (bsd_uthread_close): Likewise.
8992 * corelow.c (core_close): Likewise.
8993 (core_close_cleanup): Remove parameter quitting from a caller.
8994 * event-top.c (async_disconnect): Likewise.
8995 * exec.c (exec_close_1): Remove parameter quitting.
8996 * go32-nat.c (go32_close): Likewise.
8997 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8998 parameter quitting from a caller.
8999 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9000 variable.
9001 (mips_linux_close): Remove parameter quitting. Remove parameter
9002 quitting from a caller.
9003 * monitor.c (monitor_close): Remove parameter quitting.
9004 * monitor.h (monitor_close): Likewise.
9005 * record-btrace.c (record_btrace_close): Likewise.
9006 * record-full.c (record_full_close): Likewise.
9007 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9008 it also from fprintf_unfiltered.
9009 * remote-mips.c (mips_close): Remove parameter quitting.
9010 (mips_detach): Remove parameter quitting from a caller.
9011 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9012 (gdbsim_close): Remove duplicate function comment. Remove parameter
9013 quitting and remove it also from printf_filtered.
9014 * remote.c (remote_close): Remove parameter quitting.
9015 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9016 * target.c (update_current_target): Remove parameter int from to_close
9017 de_fault.
9018 (push_target, unpush_target, pop_target): Remove parameter quitting from
9019 a caller.
9020 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9021 Remove parameter quitting from a caller.
9022 (target_preopen): Remove parameter quitting from a caller.
9023 (target_close): Remove parameter quitting. Remove parameter quitting
9024 from a caller two times. Remove parameter quitting also from
9025 fprintf_unfiltered.
9026 * target.h (struct target_ops): Remove parameter quitting and as int
9027 from fields to_xclose and to_close.
9028 (extern struct target_ops current_target):
9029 (target_close, pop_all_targets): Remove parameter quitting. Update the
9030 comment.
9031 (pop_all_targets_above): Remove parameter quitting.
9032 * top.c (quit_target): Remove parameter quitting from a caller.
9033 * tracepoint.c (tfile_close): Remove parameter quitting.
9034 * windows-nat.c (windows_close): Remove parameter quitting.
9035
35a7120b
CV
90362013-03-20 Corinna Vinschen <vinschen@redhat.com>
9037
9038 * windows-nat.c (handle_output_debug_string): Replace call
9039 to string_to_core_addr with call to strtoull.
9040
8249a5a9
YQ
90412013-03-20 Yao Qi <yao@codesourcery.com>
9042
9043 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9044 and write it to CTF metadata.
9045
2c15ef43
CV
90462013-03-19 Corinna Vinschen <vinschen@redhat.com>
9047
9048 * windows-nat.c (handle_output_debug_string): Change type of n to
9049 SIZE_T to avoid crash on 64 bit systems.
9050
1cdd3232
EZ
90512013-03-17 Eli Zaretskii <eliz@gnu.org>
9052
9053 * python/python-internal.h (HAVE_SNPRINTF)
9054 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9055 about redefinition of snprintf by pyerrors.h.
9056
3cb2ab1a
SE
90572013-03-15 Steve Ellcey <sellcey@mips.com>
9058
9059 * remote-sim.c (sim_command_completer): Make char arguments const.
9060
9ce98649
TT
90612013-03-15 Tom Tromey <tromey@redhat.com>
9062
9063 PR c++/15116:
9064 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9065
dccee2de
TT
90662013-03-14 Tom Tromey <tromey@redhat.com>
9067
9068 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9069 New fields.
9070 (get_file_crc): Move from symfile.c.
9071 (gdb_bfd_crc): New function.
9072 * gdb_bfd.h (gdb_bfd_crc): Declare.
9073 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9074 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9075 (separate_debug_file_exists): Use gdb_bfd_crc.
9076
cc0ea93c
TT
90772013-03-14 Tom Tromey <tromey@redhat.com>
9078
9079 * symfile.c (get_debug_link_info): Remove.
9080 (find_separate_debug_file_by_debuglink): Use
9081 bfd_get_debug_link_info.
9082
08c23b0d
TT
90832013-03-14 Tom Tromey <tromey@redhat.com>
9084
9085 * symtab.c (error_in_psymtab_expansion): New function.
9086 (lookup_symbol_aux_quick)
9087 (basic_lookup_transparent_type_quick): Remove "last resort"
9088 code. Use error_in_psymtab_expansion.
9089
288e77a7
JK
90902013-03-14 Doug Evans <dje@google.com>
9091 Jan Kratochvil <jan.kratochvil@redhat.com>
9092
9093 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9094 any successful compare_filenames_for_search or FILENAME_CMP.
9095 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9096 * symtab.c (iterate_over_some_symtabs): Likewise.
9097
8f1b8b82
JK
90982013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9099
9100 * source.c (print_source_lines_base): Make a local copy of
9101 symtab_to_fullname.
9102
23eb71e4
JK
91032013-03-14 Hui Zhu <hui_zhu@mentor.com>
9104 Jan Kratochvil <jan.kratochvil@redhat.com>
9105
9106 * source.c (print_source_lines_base): Suppress "file" for TUI.
9107
bb869963
SDJ
91082013-03-14 Keith Seitz <keiths@redhat.com>
9109 Alan Matsuoka <alanm@redhat.com>
9110
9111 PR c++/15203
9112 PR c++/15210
9113 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9114 TYPE_CODE_METHOD.
9115 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9116 symbols.
9117
d6682f9e
YQ
91182013-03-14 Yao Qi <yao@codesourcery.com>
9119
9120 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9121 status to tfile if trace is stopped by command 'tstop'.
9122
a22fa6e4
YQ
91232013-03-14 Yao Qi <yao@codesourcery.com>
9124
9125 * tracepoint.c (tfile_write_status): Write trace notes and user
9126 name into tfile if they are not NULL.
9127
d0353e76
YQ
91282013-03-14 Hui Zhu <hui@codesourcery.com>
9129 Yao Qi <yao@codesourcery.com>
9130
9131 * Makefile.in (REMOTE_OBS): Add ctf.o.
9132 (SFILES): Add ctf.c.
9133 (HFILES_NO_SRCDIR): Add ctf.h.
9134 * ctf.c, ctf.h: New files.
9135 * tracepoint.c: Include 'ctf.h'.
9136 (collect_pseudocommand): Remove static.
9137 (trace_save_command): Parse option "-ctf".
9138 Produce different trace file writers per option.
9139 Adjust output message.
9140 (trace_save_tfile, trace_save_ctf): New.
9141 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9142 * mi/mi-main.c: Include 'ctf.h'.
9143 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9144 trace_save_tfile or trace_save_ctf.
9145 * NEWS: Mention these changes.
9146
3f43bc09
YQ
91472013-03-14 Yao Qi <yao@codesourcery.com>
9148
9149 * tracepoint.c (trace_file_writer_xfree): New.
9150 (struct tfile_writer_data): New.
9151 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9152 (tfile_write_header, tfile_write_regblock_type): New.
9153 (tfile_write_status, tfile_write_uploaded_tsv): New.
9154 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9155 (tfile_write_raw_data, (tfile_end): New.
9156 (tfile_write_ops): New global variable.
9157 (TRACE_WRITE_R_BLOCK): New macro.
9158 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9159 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9160 (TRACE_WRITE_V_BLOCK): New macro.
9161 (trace_save): Add extra one parameter WRITER. Make it static.
9162 Use WRITER to writer trace.
9163 (tfile_trace_file_writer_new): New.
9164 (trace_save_command): Caller update.
9165 (trace_save_tfile): Write trace data in TFILE format.
9166 * tracepoint.h (struct trace_frame_write_ops): New.
9167 (struct trace_file_write_ops): New.
9168 (struct trace_file_writer): New.
9169 (trace_save): Remove its declaration.
9170 (trace_save_tfile): Declare it.
9171 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9172 instead of trace_save.
9173
58665b40
PA
91742013-03-13 Pedro Alves <palves@redhat.com>
9175
9176 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9177
10217050
PA
91782013-03-13 Pedro Alves <palves@redhat.com>
9179
9180 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9181 commented out code.
9182 * demangle.c (current_demangling_style_string): Make it const.
9183 (set_demangling_command): Assert the demangling style is known.
9184 Remove all handling of unknown styles. Set
9185 'current_demangling_style_string' to an element of the
9186 demangling_style_names array.
9187 (set_demangling_style): Delete.
9188 (_initialize_demangler): Set current_demangling_style_string to the
9189 element of the demangling_style_names array that corresponds to
9190 the default demangling style. Remove FIXME note. Don't call
9191 set_demangling_style.
9192 * gdb-demangle.h (set_demangling_style): Remove declaration.
9193
6f937416
PA
91942013-03-13 Pedro Alves <palves@redhat.com>
9195
9196 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9197 fields const.
9198 (ada_make_symbol_completion_list): Make "text0" parameter const.
9199 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9200 * breakpoint.c (condition_completer): Make "text" and "word"
9201 parameters const. Adjust.
9202 (check_tracepoint_command): Adjust to validate_actionline
9203 prototype change.
9204 (catch_syscall_completer): Make "text" and "word" parameters
9205 const.
9206 * cli/cli-cmds.c (show_user): Make "comname" local const.
9207 (valid_command_p): Make "command" parameter const.
9208 (alias_command): Make "alias_prefix" and "command_prefix" locals
9209 const.
9210 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9211 (add_alias_cmd): Make "name" and "oldname" parameters const.
9212 Adjust. No longer make copy of OLDNAME.
9213 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9214 (add_setshow_cmd_full, add_setshow_enum_cmd)
9215 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9216 (add_setshow_filename_cmd, add_setshow_string_cmd)
9217 (add_setshow_string_noescape_cmd)
9218 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9219 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9220 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9221 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9222 Make "name" parameter const.
9223 (help_cmd): Rename "command" parameter to "arg". New const local
9224 "command".
9225 (find_cmd): Make "command" parameter const.
9226 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9227 deprecated_cmd_warning prototype change.
9228 (undef_cmd_error): Make "cmdtype" parameter const.
9229 (lookup_cmd): Make "line" parameter const.
9230 (deprecated_cmd_warning): Change type of "text" parameter to
9231 pointer to const char, from pointer to pointer to char. Adjust.
9232 (lookup_cmd_composition): Make "text" parameter const.
9233 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9234 parameters const.
9235 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9236 const.
9237 * cli/cli-script.c (validate_comname): Make "tem" local const.
9238 (define_command): New const local "tem_c". Use it in calls to
9239 lookup_cmd.
9240 (document_command): Make "tem" and "comfull" locals const.
9241 (show_user_1): Make "prefix" and "name" parameters const.
9242 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9243 const.
9244 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9245 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9246 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9247 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9248 (complete_on_enum, add_setshow_enum_cmd)
9249 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9250 (add_setshow_filename_cmd, add_setshow_string_cmd)
9251 (add_setshow_string_noescape_cmd)
9252 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9253 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9254 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9255 Change prototypes, constifying strings.
9256 * completer.c (noop_completer, filename_completer): Make "text"
9257 and "prefix" parameters const.
9258 (location_completer, expression_completer)
9259 (complete_line_internal): Make "text" and "prefix" parameters
9260 const and adjust.
9261 (command_completer, signal_completer): Make "text" and "prefix"
9262 parameters const.
9263 * completer.h (noop_completer, filename_completer)
9264 (expression_completer, location_completer, command_completer)
9265 (signal_completer): Change prototypes.
9266 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9267 parameters const.
9268 * cp-abi.c (cp_abi_completer): Likewise.
9269 * expression.h (parse_expression_for_completion): Change
9270 prototype.
9271 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9272 parameters const.
9273 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9274 * infrun.c (handle_completer): Make "text" and "word" parameters
9275 const.
9276 * interps.c (interpreter_completer): Make "text" and "word"
9277 parameters const.
9278 * language.h (struct language_defn)
9279 <la_make_symbol_completion_list>: Make "text" and "word"
9280 parameters const.
9281 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9282 (parse_exp_in_context): Rename to ...
9283 (parse_exp_in_context_1): ... this.
9284 (parse_exp_in_context): Reimplement, with const hack from
9285 parse_exp_1.
9286 (parse_expression_for_completion): Make "string" parameter const.
9287 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9288 to pointer to const char. Adjust.
9289 (print_command_1): Make "exp" parameter const.
9290 (output_command): Rename to ...
9291 (output_command_const): ... this. Make "exp" parameter const.
9292 (output_command): Reimplement.
9293 (x_command): Adjust.
9294 (display_command): Rename "exp" parameter to "arg". New "exp"
9295 local, const version of "arg".
9296 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9297 "cmd_name" local const.
9298 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9299 call.
9300 (cmdpy_completer): Make "text" and "word" parameters const.
9301 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9302 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9303 const.
9304 * remote.c (_initialize_remote): Make "cmd_name" local const.
9305 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9306 parameters const. Adjust.
9307 (completion_list_add_fields): Make "sym_text", "text" and "word"
9308 parameters const.
9309 (struct add_name_data) <sym_text, text, word>: Make fields const.
9310 (default_make_symbol_completion_list_break_on): Make "text" and
9311 "word" parameters const. Adjust locals.
9312 (default_make_symbol_completion_list)
9313 (make_symbol_completion_list, make_symbol_completion_type)
9314 (make_symbol_completion_list_fn): Make "text" and "word"
9315 parameters const.
9316 (make_file_symbol_completion_list): Make "text", "word" and
9317 "srcfile" parameters const. Adjust locals.
9318 (add_filename_to_list): Make "text" and "word" parameters const.
9319 (struct add_partial_filename_data) <text, word>: Make fields
9320 const.
9321 (make_source_files_completion_list): Make "text" and "word"
9322 parameters const.
9323 * symtab.h (default_make_symbol_completion_list_break_on)
9324 (default_make_symbol_completion_list, make_symbol_completion_list)
9325 (make_symbol_completion_type enum type_code)
9326 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9327 (make_source_files_completion_list): Change prototype.
9328 * top.c (execute_command): Adjust to pass pointer to pointer to
9329 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9330 change.
9331 (set_verbose): Make "cmdname" local const.
9332 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9333 and adjust.
9334 (validate_actionline): Make "line" parameter a pointer to const
9335 char, and adjust.
9336 (encode_actions_1): Make "action_exp" local const, and adjust.
9337 (encode_actions): Adjust.
9338 (replace_comma): Delete.
9339 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9340 const, and adjust. Don't frob the action string while splitting
9341 it at commas. Instead, make a copy of each split substring in
9342 turn.
9343 (trace_dump_command): Adjust to validate_actionline prototype
9344 change.
9345 * tracepoint.h (decode_agent_options, decode_agent_options)
9346 (encode_actions, validate_actionline): Change prototypes.
9347 * valprint.h (output_command): Delete declaration.
9348 (output_command_const): Declare.
9349 * value.c (function_destroyer): Cast const away in xfree call.
9350
a0bcdaa7
PA
93512013-03-13 Pedro Alves <palves@redhat.com>
9352
9353 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9354 rather than casting 'const char * const *' to 'const char **'.
9355 * ada-lex.l (processInt): Make "trailer" local const. Remove
9356 'const char **' cast.
9357 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9358 locals, and use those as strtol output pointer, instead than doing
9359 invalid casts to from 'const char **' to 'char **'.
9360 (_initialize_demangle): Remove cast.
9361 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9362 locals, and use those as strtol output pointer, instead than doing
9363 invalid casts to from 'const char **' to 'char **'.
9364 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9365 casts.
9366 * stap-probe.c (stap_parse_register_operand)
9367 (stap_parse_single_operand): Likewise.
9368
8ddb1965
YQ
93692013-03-13 Yao Qi <yao@codesourcery.com>
9370
9371 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9372 the last matched 'V' blcok in trace frame.
9373
2d450646
JB
93742013-03-12 Joel Brobecker <brobecker@adacore.com>
9375
9376 * NEWS: Create a new section for the next release branch.
9377 Rename the section of the current branch, now that it has
9378 been cut.
9379
b4b79973 93802013-03-12 Joel Brobecker <brobecker@adacore.com>
9381
9382 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9383 * version.in: Bump version to 7.6.50.20130312-cvs.
9384
ee047554
KS
93852013-03-12 Keith Seitz <keiths@redhat.com>
9386
9387 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9388 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9389 Remove temporary copy of input string.
9390 (mi_execute_command_wrapper): Make "cmd" const.
9391 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9392 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9393 Use const strings.
9394 (mi_parse): Make "cmd" const.
9395 Use const strings.
9396 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9397
bbc13ae3
KS
93982013-03-12 Keith Seitz <keiths@redhat.com>
9399
9400 * ada-lang.c (ada_read_renaming_var_value): Pass const
9401 pointer to expression string to parse_exp_1.
9402 (create_excep_cond_exprs): Likewise.
9403 * ax-gdb.c (agent_eval_command_one): Likewise.
9404 (maint_agent_printf_command): Likewise.
9405 Constify much of the string handling/parsing.
9406 * breakpoint.c (set_breakpoint_condition): Pass const
9407 pointer to expression string to parse_exp_1.
9408 (update_watchpoint): Likewise.
9409 (parse_cmd_to_aexpr): Constify string handling.
9410 Pass const pointer to parse_exp_1.
9411 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9412 (find_condition_and_thread): Likewise.
9413 Make TOK const.
9414 (watch_command_1): Make "arg" const.
9415 Constify string handling.
9416 Copy the expression string instead of changing the input
9417 string.
9418 (update_breakpoint_location): Pass const pointer to
9419 parse_exp_1.
9420 * eval.c (parse_and_eval_address): Make "exp" const.
9421 (parse_to_comma_and_eval): Make "expp" const.
9422 (parse_and_eval): Make "exp" const.
9423 * expression.h (parse_expression): Make argument const.
9424 (parse_exp_1): Make first argument const.
9425 * findcmd.c (parse_find_args): Treat "args" as const.
9426 * linespec.c (parse_linespec): Pass const pointer to
9427 linespec_expression_to_pc.
9428 (linespec_expression_to_pc): Make "exp_ptr" const.
9429 * parse.c (parse_exp_1): Make "stringptr" const.
9430 Make a copy of the expression to pass to parse_exp_in_context until
9431 this whole interface can be constified.
9432 (parse_expression): Make "string" const.
9433 * printcmd.c (ui_printf): Treat "arg" as const.
9434 Handle const strings.
9435 * tracepoint.c (validate_actionline): Pass const pointer to
9436 all calls to parse_exp_1.
9437 (encode_actions_1): Likewise.
9438 * value.h (parse_to_comma_and_eval): Make argument const.
9439 (parse_and_eval_address): Likewise.
9440 (parse_and_eval): Likewise.
9441 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9442 (varobj_set_value): Likewise.
9443 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9444 constify string handling.
9445 Pass const pointers to parse_and_eval_address and
9446 parse_to_comman_and_eval.
9447 * cli/cli-utils.c (skip_to_space): Rename to ...
9448 (skip_to_space_const): ... this. Handle const strings.
9449 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9450 skip_to_space_const.
9451 (skip_to_space_const): Declare.
9452 * common/format.c (parse_format_string): Make "arg" const.
9453 Handle const strings.
9454 * common/format.h (parse_format_string): Make "arg" const.
9455 * gdbserver/ax.c (ax_printf): Make "format" const.
9456 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9457 of the expression string.
9458
f3cec7e6
HZ
94592013-03-12 Hui Zhu <hui@codesourcery.com>
9460
9461 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9462
9df7235c
HZ
94632013-03-12 Yao Qi <yao@codesourcery.com>
9464 Hui Zhu <hui@codesourcery.com>
9465
9466 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9467 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9468 DW_OP_deref_size.
9469
82d049ab
PH
94702013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9471
5f8e0b8f
MF
9472 * ada-lex.l (rules): Only recognize 'thread' as a
9473 delimiter when followed by numerals, as for c-exp.y.
9474 Use new rewind_to_char function to rewind the input for
9475 expression-delimiting tokens.
9476 (rewind_to_char): New function.
82d049ab 9477
8c1fb155
JK
94782013-03-11 Pedro Alves <palves@redhat.com>
9479 Jan Kratochvil <jan.kratochvil@redhat.com>
9480
9481 * configure: Regenerate.
9482 * configure.ac (check dynamic export flag): Link python test with
9483 $PYTHON_LIBS.
9484
cc81e1c6
DE
94852013-03-11 Doug Evans <dje@google.com>
9486 Keith Seitz <keiths@redhat.com>
9487
9488 * linespec.c (find_linespec_symbols): Call find_function_symbols
9489 first, and then call lookup_prefix_sym/find_method.
9490
39086a0e
PA
94912013-03-11 Pedro Alves <palves@redhat.com>
9492
9493 * charset.c (convert_between_encodings): Don't cast between
9494 different pointer to pointer types. Instead, make the 'inp' local
9495 be of the type iconv expects.
9496 (wchar_iterate): Don't cast between different pointer to pointer
9497 types. Instead, use new pointer local of the type iconv expects.
9498 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9499 Add new local of type char pointer, and use it to get a
9500 char/string view of the byte buffer, instead of casting between
9501 pointer to pointer types.
9502
90585175
HAQ
95032013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9504
9505 * remote.c (remote_set_trace_buffer_size): Move != operator
9506 to the start of next line to fix an ARI warning.
9507
59ea5688
MM
95082013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9509
9510 * NEWS: Add record changes.
9511
946287b7
MM
95122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9513
9514 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9515 the instruction history disassembly.
9516 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9517 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9518
afedecd3
MM
95192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9520
9521 * Makefile.in (SFILES): Add record-btrace.c
9522 (COMMON_OBS): Add record-btrace.o
9523 * record-btrace.c: New.
9524 * objfiles.c: Include btrace.h.
9525 (free_objfile): call btrace_free_objfile.
9526
15984c13
MM
95272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9528
9529 * target.c (target_call_history, target_call_history_from,
9530 target_call_history_range): New.
9531 * target.h (target_ops) <to_call_history, to_call_history_from,
9532 to_call_history_range>: New fields.
9533 (target_call_history, target_call_history_from,
9534 target_call_history_range): New declaration.
9535 * record.c (get_call_history_modifiers, cmd_record_call_history,
9536 record_call_history_size): New.
9537 (_initialize_record): Add the "record function-call-history" command.
9538 Add "set/show record function-call-history-size" commands.
9539 * record.h (record_print_flag): New.
9540
67c86d06
MM
95412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9542
9543 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9544 to_insn_history_range>: New fields.
9545 (target_insn_history): New.
9546 (target_insn_history_from): New.
9547 (target_insn_history_range): New.
9548 * target.c (target_insn_history): New.
9549 (target_insn_history_from): New.
9550 (target_insn_history_range): New.
9551 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9552 (record_insn_history_size): New.
9553 (get_insn_number): New.
9554 (get_context_size): New.
9555 (no_chunk): New.
9556 (get_insn_history_modifiers): New.
9557 (cmd_record_insn_history): New.
9558 (_initialize_record): Add "set/show record instruction-history-size"
9559 command. Add "record instruction-history" command.
9560
7c1687a9
MM
95612013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9562
9563 * record.h (record_disconnect): New.
9564 (record_detach): New.
9565 (record_mourn_inferior): New.
9566 (record_kill): New.
9567 * record-full.c (record_disconnect, record_detach,
9568 record_mourn_inferior, record_kill): Move to...
9569 * record.c: ...here.
9570 (DEBUG): New.
9571 (record_stop): New.
9572 (record_unpush): New.
9573 (cmd_record_stop): Call record_stop. Replace unpush_target
9574 call with record_unpush call.
9575 (record_disconnect, record_detach): Assert that the target
9576 is of record stratum. Call record_unpush, record_stop, and
9577 DEBUG.
9578 (record_mourn_inferior, record_kill): Assert that the target
9579 is of record stratum. Call record_unpush and DEBUG.
9580
25ea693b
MM
95812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9582
9583 * record-full.h, record-full.c (record_memory_query): Rename
9584 to ...
9585 (record_full_memory_query): ...this. Update all users.
9586 (record_arch_list_add_reg): Rename to ...
9587 (record_full_arch_list_add_reg): ...this. Update all users.
9588 (record_arch_list_add_mem): Rename to ...
9589 (record_full_arch_list_add_mem): ...this. Update all users.
9590 (record_arch_list_add_end): Rename to ...
9591 (record_full_arch_list_add_end): ...this. Update all users.
9592 (record_gdb_operation_disable_set): Rename to ...
9593 (record_full_gdb_operation_disable_set): ...this.
9594 Update all users.
9595
88d1aa9d
MM
95962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9597
9598 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9599 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9600 (RECORD_IS_REPLAY): Renamed to ...
9601 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9602 (RECORD_FILE_MAGIC): Renamed to ...
9603 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9604 (record_mem_entry): Renamed to ...
9605 (record_full_mem_entry): ... this. Updated all users.
9606 (record_reg_entry): Renamed to ...
9607 (record_full_reg_entry): ... this. Updated all users.
9608 (record_end_entry): Renamed to ...
9609 (record_full_end_entry): ... this. Updated all users.
9610 (record_type) <record_end, record_reg, record_mem>: Renamed
9611 to ...
9612 (record_full_type) <record_full_end, record_full_reg,
9613 record_full_mem>: ... this. Updated all users.
9614 (record_entry): Renamed to ...
9615 (record_full_entry): ... this. Updated all users.
9616 (record_core_buf_entry): Renamed to ...
9617 (record_full_core_buf_entry): ... this. Updated all users.
9618 (record_core_regbuf): Renamed to ...
9619 (record_full_core_regbuf): ... this. Updated all users.
9620 (record_core_start): Renamed to ...
9621 (record_full_core_start): ... this. Updated all users.
9622 (record_core_end): Renamed to ...
9623 (record_full_core_end): ... this. Updated all users.
9624 (record_core_buf_list): Renamed to ...
9625 (record_full_core_buf_list): ... this. Updated all users.
9626 (record_first): Renamed to ...
9627 (record_full_first): ... this. Updated all users.
9628 (record_list): Renamed to ...
9629 (record_full_list): ... this. Updated all users.
9630 (record_arch_list_head): Renamed to ...
9631 (record_full_arch_list_head): ... this. Updated all users.
9632 (record_arch_list_tail): Renamed to ...
9633 (record_full_arch_list_tail): ... this. Updated all users.
9634 (record_stop_at_limit): Renamed to ...
9635 (record_full_stop_at_limit): ... this. Updated all users.
9636 (record_insn_max_num): Renamed to ...
9637 (record_full_insn_max_num): ... this. Updated all users.
9638 (record_insn_num): Renamed to ...
9639 (record_full_insn_num): ... this. Updated all users.
9640 (record_insn_count): Renamed to ...
9641 (record_full_insn_count): ... this. Updated all users.
9642 (record_ops): Renamed to ...
9643 (record_full_ops): ... this. Updated all users.
9644 (record_core_ops): Renamed to ...
9645 (record_full_core_ops): ... this. Updated all users.
9646 (set_record_cmdlist): Renamed to ...
9647 (set_record_full_cmdlist): ... this. Updated all users.
9648 (show_record_cmdlist): Renamed to ...
9649 (show_record_full_cmdlist): ... this. Updated all users.
9650 (record_cmdlist): Renamed to ...
9651 (record_full_cmdlist): ... this. Updated all users.
9652 (record_beneath_to_resume_ops): Renamed to ...
9653 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9654 (record_beneath_to_resume): Renamed to ...
9655 (record_full_beneath_to_resume): ... this. Updated all users.
9656 (record_beneath_to_wait_ops): Renamed to ...
9657 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9658 (record_beneath_to_wait): Renamed to ...
9659 (record_full_beneath_to_wait): ... this. Updated all users.
9660 (record_beneath_to_store_registers_ops): Renamed to ...
9661 (record_full_beneath_to_store_registers_ops): ... this.
9662 Updated all users.
9663 (record_beneath_to_store_registers): Renamed to ...
9664 (record_full_beneath_to_store_registers): ... this.
9665 Updated all users.
9666 (record_beneath_to_xfer_partial_ops): Renamed to ...
9667 (record_full_beneath_to_xfer_partial_ops): ... this.
9668 Updated all users.
9669 (record_beneath_to_xfer_partial): Renamed to ...
9670 (record_full_beneath_to_xfer_partial): ... this.
9671 Updated all users.
9672 (record_beneath_to_insert_breakpoint): Renamed to ...
9673 (record_full_beneath_to_insert_breakpoint): ... this.
9674 Updated all users.
9675 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9676 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9677 Updated all users.
9678 (record_beneath_to_stopped_data_address): Renamed to ...
9679 (record_full_beneath_to_stopped_data_address): ... this.
9680 Updated all users.
9681 (record_beneath_to_async): Renamed to ...
9682 (record_full_beneath_to_async): ... this. Updated all users.
9683 (record_goto_insn): Renamed to ...
9684 (record_full_goto_insn): ... this. Updated all users.
9685 (record_save): Renamed to ...
9686 (record_full_save): ... this. Updated all users.
9687 (record_reg_alloc): Renamed to ...
9688 (record_full_reg_alloc): ... this. Updated all users.
9689 (record_reg_release): Renamed to ...
9690 (record_full_reg_release): ... this. Updated all users.
9691 (record_mem_alloc): Renamed to ...
9692 (record_full_mem_alloc): ... this. Updated all users.
9693 (record_mem_release): Renamed to ...
9694 (record_full_mem_release): ... this. Updated all users.
9695 (record_end_alloc): Renamed to ...
9696 (record_full_end_alloc): ... this. Updated all users.
9697 (record_end_release): Renamed to ...
9698 (record_full_end_release): ... this. Updated all users.
9699 (record_entry_release): Renamed to ...
9700 (record_full_entry_release): ... this. Updated all users.
9701 (record_list_release): Renamed to ...
9702 (record_full_list_release): ... this. Updated all users.
9703 (record_list_release_following): Renamed to ...
9704 (record_full_list_release_following): ... this.
9705 Updated all users.
9706 (record_list_release_first): Renamed to ...
9707 (record_full_list_release_first): ... this. Updated all users.
9708 (record_arch_list_add): Renamed to ...
9709 (record_full_arch_list_add): ... this. Updated all users.
9710 (record_get_loc): Renamed to ...
9711 (record_full_get_loc): ... this. Updated all users.
9712 (record_check_insn_num): Renamed to ...
9713 (record_full_check_insn_num): ... this. Updated all users.
9714 (record_arch_list_cleanups): Renamed to ...
9715 (record_full_arch_list_cleanups): ... this. Updated all users.
9716 (record_message): Renamed to ...
9717 (record_full_message): ... this. Updated all users.
9718 (record_message_wrapper): Renamed to ...
9719 (record_full_message_wrapper): ... this. Updated all users.
9720 (record_message_wrapper_safe): Renamed to ...
9721 (record_full_message_wrapper_safe): ... this. Updated all users.
9722 (record_gdb_operation_disable): Renamed to ...
9723 (record_full_gdb_operation_disable): ... this. Updated all users.
9724 (record_hw_watchpoint): Renamed to ...
9725 (record_full_hw_watchpoint): ... this. Updated all users.
9726 (record_exec_insn): Renamed to ...
9727 (record_full_exec_insn): ... this. Updated all users.
9728 (record_restore): Renamed to ...
9729 (record_full_restore): ... this. Updated all users.
9730 (record_async_inferior_event_token): Renamed to ...
9731 (record_full_async_inferior_event_token): ... this.
9732 Updated all users.
9733 (record_async_inferior_event_handler): Renamed to ...
9734 (record_full_async_inferior_event_handler): ... this.
9735 Updated all users.
9736 (record_core_open_1): Renamed to ...
9737 (record_full_core_open_1): ... this. Updated all users.
9738 (record_open_1): Renamed to ...
9739 (record_full_open_1): ... this. Updated all users.
9740 (record_open): Renamed to ...
9741 (record_full_open): ... this. Updated all users.
9742 (record_close): Renamed to ...
9743 (record_full_close): ... this. Updated all users.
9744 (record_resume_step): Renamed to ...
9745 (record_full_resume_step): ... this. Updated all users.
9746 (record_resumed): Renamed to ...
9747 (record_full_resumed): ... this. Updated all users.
9748 (record_execution_dir): Renamed to ...
9749 (record_full_execution_dir): ... this. Updated all users.
9750 (record_resume): Renamed to ...
9751 (record_full_resume): ... this. Updated all users.
9752 (record_get_sig): Renamed to ...
9753 (record_full_get_sig): ... this. Updated all users.
9754 (record_sig_handler): Renamed to ...
9755 (record_full_sig_handler): ... this. Updated all users.
9756 (record_wait_cleanups): Renamed to ...
9757 (record_full_wait_cleanups): ... this. Updated all users.
9758 (record_wait_1): Renamed to ...
9759 (record_full_wait_1): ... this. Updated all users.
9760 (record_wait): Renamed to ...
9761 (record_full_wait): ... this. Updated all users.
9762 (record_stopped_by_watchpoint): Renamed to ...
9763 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9764 (record_disconnect): Renamed to ...
9765 (record_full_disconnect): ... this. Updated all users.
9766 (record_detach): Renamed to ...
9767 (record_full_detach): ... this. Updated all users.
9768 (record_mourn_inferior): Renamed to ...
9769 (record_full_mourn_inferior): ... this. Updated all users.
9770 (record_kill): Renamed to ...
9771 (record_full_kill): ... this. Updated all users.
9772 (record_stopped_data_address): Renamed to ...
9773 (record_full_stopped_data_address): ... this. Updated all users.
9774 (record_registers_change): Renamed to ...
9775 (record_full_registers_change): ... this. Updated all users.
9776 (record_store_registers): Renamed to ...
9777 (record_full_store_registers): ... this. Updated all users.
9778 (record_xfer_partial): Renamed to ...
9779 (record_full_xfer_partial): ... this. Updated all users.
9780 (record_breakpoint): Renamed to ...
9781 (record_full_breakpoint): ... this. Updated all users.
9782 (record_breakpoint_p): Renamed to ...
9783 (record_full_breakpoint_p): ... this. Updated all users.
9784 (record_breakpoints): Renamed to ...
9785 (record_full_breakpoints): ... this. Updated all users.
9786 (record_sync_record_breakpoints): Renamed to ...
9787 (record_full_sync_record_breakpoints): ... this.
9788 Updated all users.
9789 (record_init_record_breakpoints): Renamed to ...
9790 (record_full_init_record_breakpoints): ... this.
9791 Updated all users.
9792 (record_insert_breakpoint): Renamed to ...
9793 (record_full_insert_breakpoint): ... this. Updated all users.
9794 (record_remove_breakpoint): Renamed to ...
9795 (record_full_remove_breakpoint): ... this. Updated all users.
9796 (record_can_execute_reverse): Renamed to ...
9797 (record_full_can_execute_reverse): ... this. Updated all users.
9798 (record_get_bookmark): Renamed to ...
9799 (record_full_get_bookmark): ... this. Updated all users.
9800 (record_goto_bookmark): Renamed to ...
9801 (record_full_goto_bookmark): ... this. Updated all users.
9802 (record_async): Renamed to ...
9803 (record_full_async): ... this. Updated all users.
9804 (record_can_async_p): Renamed to ...
9805 (record_full_can_async_p): ... this. Updated all users.
9806 (record_is_async_p): Renamed to ...
9807 (record_full_is_async_p): ... this. Updated all users.
9808 (record_execution_direction): Renamed to ...
9809 (record_full_execution_direction): ... this. Updated all users.
9810 (record_info): Renamed to ...
9811 (record_full_info): ... this. Updated all users.
9812 (record_delete): Renamed to ...
9813 (record_full_delete): ... this. Updated all users.
9814 (record_is_replaying): Renamed to ...
9815 (record_full_is_replaying): ... this. Updated all users.
9816 (record_goto_entry): Renamed to ...
9817 (record_full_goto_entry): ... this. Updated all users.
9818 (record_goto_begin): Renamed to ...
9819 (record_full_goto_begin): ... this. Updated all users.
9820 (record_goto_end): Renamed to ...
9821 (record_full_goto_end): ... this. Updated all users.
9822 (record_goto): Renamed to ...
9823 (record_full_goto): ... this. Updated all users.
9824 (init_record_ops): Renamed to ...
9825 (init_record_full_ops): ... this. Updated all users.
9826 (record_core_resume): Renamed to ...
9827 (record_full_core_resume): ... this. Updated all users.
9828 (record_core_kill): Renamed to ...
9829 (record_full_core_kill): ... this. Updated all users.
9830 (record_core_fetch_registers): Renamed to ...
9831 (record_full_core_fetch_registers): ... this. Updated all users.
9832 (record_core_prepare_to_store): Renamed to ...
9833 (record_full_core_prepare_to_store): ... this. Updated all users.
9834 (record_core_store_registers): Renamed to ...
9835 (record_full_core_store_registers): ... this. Updated all users.
9836 (record_core_xfer_partial): Renamed to ...
9837 (record_full_core_xfer_partial): ... this. Updated all users.
9838 (record_core_insert_breakpoint): Renamed to ...
9839 (record_full_core_insert_breakpoint): ... this. Updated all users.
9840 (record_core_remove_breakpoint): Renamed to ...
9841 (record_full_core_remove_breakpoint): ... this. Updated all users.
9842 (record_core_has_execution): Renamed to ...
9843 (record_full_core_has_execution): ... this. Updated all users.
9844 (init_record_core_ops): Renamed to ...
9845 (init_record_full_core_ops): ... this. Updated all users.
9846 (cmd_record_restore): Renamed to ...
9847 (cmd_record_full_restore): ... this. Updated all users.
9848 (record_save_cleanups): Renamed to ...
9849 (record_full_save_cleanups): ... this. Updated all users.
9850 (cmd_record_start): Renamed to ...
9851 (cmd_record_full_start): ... this. Updated all users.
9852 (set_record_insn_max_num): Renamed to ...
9853 (set_record_full_insn_max_num): ... this. Updated all users.
9854 (set_record_command): Renamed to ...
9855 (set_record_full_command): ... this. Updated all users.
9856 (show_record_command): Renamed to ...
9857 (show_record_full_command): ... this. Updated all users.
9858 (_initialize_record): Renamed to ...
9859 (_initialize_record_full): ... this. Updated all users.
9860
d02ed0bb
MM
98612013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9862
9863 * record.h: Split into this and ...
9864 * record-full.h: ... this.
9865 * record.c: Split into this and ...
9866 * record-full.c: ... this.
9867 * target.h (target_ops): Add new fields to_info_record,
9868 to_save_record, to_delete_record, to_record_is_replaying,
9869 to_goto_record_begin, to_goto_record_end, to_goto_record.
9870 (target_info_record): New.
9871 (target_save_record): New.
9872 (target_supports_delete_record): New.
9873 (target_delete_record): New.
9874 (target_record_is_replaying): New.
9875 (target_goto_record_begin): New.
9876 (target_goto_record_end): New.
9877 (target_goto_record): New.
9878 * target.c (target_info_record): New.
9879 (target_save_record): New.
9880 (target_supports_delete_record): New.
9881 (target_delete_record): New.
9882 (target_record_is_replaying): New.
9883 (target_goto_record_begin): New.
9884 (target_goto_record_end): New.
9885 (target_goto_record): New.
9886 * record.h: Declare struct cmd_list_element.
9887 (record_cmdlist): New declaration.
9888 (set_record_cmdlist): New declaration.
9889 (show_record_cmdlist): New declaration.
9890 (info_record_cmdlist): New declaration.
9891 (cmd_record_goto): New declaration.
9892 * record.c: Remove unnecessary includes.
9893 Include inferior.h.
9894 (cmd_record_goto): Remove declaration.
9895 (record_cmdlist): Now extern. Initialize.
9896 (set_record_cmdlist): Now extern. Initialize.
9897 (show_record_cmdlist): Now extern. Initialize.
9898 (info_record_cmdlist): Now extern. Initialize.
9899 (find_record_target): New.
9900 (require_record_target): New.
9901 (cmd_record_start): Update.
9902 (cmd_record_delete): Remove target-specific code.
9903 Call target_delete_record.
9904 (cmd_record_stop): Unpush any record target.
9905 (set_record_insn_max_num): Move to record-full.c
9906 (set_record_command): Add comment.
9907 (show_record_command): Add comment.
9908 (info_record_command): Update comment.
9909 Remove target-specific code.
9910 Call the record target's to_info_record.
9911 (cmd_record_start): New.
9912 (cmd_record_goto): Now extern.
9913 Remove target-specific code.
9914 Call target_goto_begin, target_goto_end, or target_goto.
9915 (_initialize_record): Move record target ops initialization to
9916 record-full.c.
9917 Change "record" command help text.
9918 Move "record restore", "record set", and "record show" commands to
9919 record-full.c.
9920 * Makefile.in (SFILES): Add record-full.c.
9921 (HFILES_NO_SRCDIR): Add record-full.h.
9922 (COMMON_OBS): Add record-full.o.
9923 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9924 * arm-tdep.c: Include record-full.h.
9925 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9926 * i386-tdep.c: Include record-full.h.
9927 * infrun.c: Include record-full.h.
9928 * linux-record.c: Include record-full.h.
9929 * moxie-tdep.c: Include record-full.h.
9930 * record-full.c: Include record-full.h.
9931 Change module comment.
9932 (set_record_full_cmdlist): New.
9933 (show_record_full_cmdlist): New.
9934 (record_full_cmdlist): New.
9935 (record_goto_insn): New declaration.
9936 (record_save): New declaration.
9937 (record_check_insn_num): Change query string.
9938 (record_info): New.
9939 (record_delete): New.
9940 (record_is_replaying): New.
9941 (record_goto_entry): New.
9942 (record_goto_begin): New.
9943 (record_goto_end): New.
9944 (record_goto): New.
9945 (init_record_ops): Update.
9946 (init_record_core_ops): Update.
9947 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9948 (cmd_record_start): New.
9949 (set_record_insn_max_num): Moved from record.c
9950 (set_record_full_command): New.
9951 (show_record_full_command): New.
9952 (_initialize_record_full): New.
9953
b48d48eb
MM
99542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9955
9956 * target.h (add_deprecated_target_alias): New.
9957 * target.c (add_deprecated_target_alias): New.
9958
a950d57c
MM
99592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9960
9961 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9962 and signal.h.
9963 (linux_supports_btrace): Add kernel and
9964 cpuid check.
9965 (kernel_supports_btrace): New function.
9966 (cpu_supports_btrace): New function.
9967 (intel_supports_btrace): New function.
9968
9accd112
MM
99692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9970
9971 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9972 * remote.c: Include btrace.h.
9973 (struct btrace_target_info): New struct.
9974 (remote_supports_btrace): New function.
9975 (send_Qbtrace): New function.
9976 (remote_enable_btrace): New function.
9977 (remote_disable_btrace): New function.
9978 (remote_teardown_btrace): New function.
9979 (remote_read_btrace): New function.
9980 (init_remote_ops): Add btrace ops.
9981 (enum <unnamed>): Add btrace packets.
9982 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9983 (_initialize_remote): Add packet configuration for branch tracing.
9984
c12a2917
MM
99852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9986
9987 * features/btrace.dtd: New file.
9988 * Makefile.in (XMLFILES): Add btrace.dtd.
9989 * btrace.h (parse_xml_btrace): New declaration.
9990 * btrace.c: Include xml-support.h.
9991 (parse_xml_btrace): New function.
9992 (parse_xml_btrace_block): New function.
9993 (block_attributes): New struct.
9994 (btrace_attributes): New struct.
9995 (btrace_children): New struct.
9996 (btrace_elements): New struct.
9997
3e3aea48
MM
99982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9999
10000 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10001 (amd64_linux_enable_btrace): New.
10002 (amd64_linux_disable_btrace): New.
10003 (amd64_linux_teardown_btrace): New.
10004 (_initialize_amd64_linux_nat): Initialize btrace ops.
10005 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10006 (i386_linux_enable_btrace): New.
10007 (i386_linux_disable_btrace): New.
10008 (i386_linux_teardown_btrace): New.
10009 (_initialize_i386_linux_nat): Initialize btrace ops.
10010 * config/i386/linux.mh: Add linux-btrace.o.
10011 * config/i386/linux64.mh: Add linux-btrace.o.
10012
7c97f91e
MM
100132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10014
10015 * common/linux_btrace.h: New file.
10016 * common/linux_btrace.c: New file.
10017 * Makefile.in (SFILES): Add btrace.c.
10018 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10019 (COMMON_OBS): Add btrace.o.
10020 (linux-btrace.o): New rule.
10021
1999790b 100222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
10023
10024 * target.h: Include btrace.h.
10025 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10026 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10027 * target.c (target_supports_btrace): New function.
10028 (target_enable_btrace): New function.
10029 (target_disable_btrace): New function.
10030 (target_teardown_btrace): New function.
10031 (target_read_btrace): New function.
10032 * btrace.h: New file.
10033 * btrace.c: New file.
10034 * Makefile.in: Add btrace.c.
10035 * gdbthread.h: Include btrace.h.
10036 (struct thread_info): Add btrace field.
10037 * thread.c: Include btrace.h.
10038 (clear_thread_inferior_resources): Call target_teardown_btrace.
10039 * common/btrace-common.h: New file.
10040
61a31a67
JK
100412013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10042
10043 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10044 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10045 kill_status to outer block.
10046
05c56a9d
JK
100472013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10048
10049 Fix entry-values if the callee called a noreturn function.
10050 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10051 get_frame_address_in_block. Add new comment.
10052
9112db09
JK
100532013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10054
10055 Fix entry-values in C++ across CUs.
10056 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10057 lookup_minimal_symbol. Add a comment.
10058 * dwarf2read.c
10059 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10060 DW_AT_linkage_name.
10061
9b67fcec
YQ
100622013-03-08 Yao Qi <yao@codesourcery.com>
10063
10064 * tracepoint.c (_initialize_tracepoint): Indent the code.
10065
6221be90
PA
100662013-03-08 Pedro Alves <palves@redhat.com>
10067
10068 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10069 (parse_find_args, find_command): Change type of pattern buffer
10070 locals to 'gdb_byte *'.
10071
be9a119c 100722013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10073 Hafiz Abid Qadeer <abidh@codesourcery.com>
10074
10075 * NEWS: Mention set and show trace-buffer-size commands.
10076 Mention new packet.
10077 * target.h (struct target_ops): New method
10078 to_set_trace_buffer_size.
10079 (target_set_trace_buffer_size): New macro.
10080 * target.c (update_current_target): Set up new method.
10081 * tracepoint.c (trace_buffer_size): New global.
10082 (start_tracing): Send it to the target.
10083 (set_trace_buffer_size): New function.
10084 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10085 * remote.c (remote_set_trace_buffer_size): New function.
10086 (_initialize_remote): Use it.
10087 (QTBuffer:size) New remote command.
10088 (PACKET_QTBuffer_size): New enum.
10089 (remote_protocol_features): Add an entry for
10090 PACKET_QTBuffer_size.
10091
7da3ab79
TT
100922013-03-08 Tom Tromey <tromey@redhat.com>
10093
10094 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10095 variable.
10096
0c1f71e7
PA
100972013-03-07 Pedro Alves <palves@redhat.com>
10098
10099 * target.c (target_read_stralloc, target_fileio_read_alloc):
10100 *Cast pointer to 'gdb_byte *' in target call.
10101
c8af03a2
PA
101022013-03-07 Pedro Alves <palves@redhat.com>
10103
10104 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10105 call.
10106
529480d0
KS
101072013-03-07 Keith Seitz <keiths@redhat.com>
10108
10109 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10110 (trace_pass_command): Likewise.
10111 * cli/cli-cmds.c: Include cli/cli-utils.h.
10112 (source_command): Use skip-spaces.
10113 (disassemble_command): Likewise.
10114 * findcmd.c: Include cli/cli-utils.h.
10115 (parse_find_args): Use skip_spaces.
10116 * go32-nat.c: Include cli/cli-utils.h.
10117 (go32_sldt): Use skip_spaces.
10118 (go32_sgdt): Likewise.
10119 (go32_sidt): Likewise.
10120 (go32_pde): Likewise.
10121 (go32_pte): Likewise.
10122 (go32_pte_for_address): Likewise.
10123 * infcmd.c: Include cli/cli-utils.h.
10124 (registers_info): Use skip_spaces.
10125 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10126 (linux_info_proc): Likewise.
10127 * linux-thread-db.c: Include cli/cli-utils.h.
10128 (info_auto_load_libthread_db): Use skip_spaces_const.
10129 * m32r-rom.c: Include cli/cli-utils.h.
10130 (m32r_upload_command): Use skip_spaces.
10131 * maint.c: Include cli/cli-utils.h.
10132 (maintenance_translate_address): Use skip_spaces.
10133 * mi/mi-parse.c: Include cli/cli-utils.h.
10134 (mi_parse_argv): Use skip_spaces.
10135 (mi_parse): Likewise.
10136 * minsyms.c: Include cli/cli-utils.h.
10137 (msymbol_hash_iw): Use skip_spaces_const.
10138 * objc-lang.c: Include cli/cli-utils.h.
10139 (parse_selector): Use skip_spaces.
10140 (parse_method): Likewise.
10141 * python/python.c: Include cli/cli-utils.h.
10142 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10143 (python_command)[HAVE_PYTHON]: Likewise.
10144 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10145 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10146 (m32r_load): Use skip_spaces.
10147 * serial.c: Include cli/cli-utils.h.
10148 (serial_open): Use skip_spaces_const.
10149 * stack.c: Include cli/cli-utils.h.
10150 (parse_frame_specification_1): Use skip_spaces_const.
10151 * symfile.c: Include cli/cli-utils.h.
10152 (set_ext_lang_command): Use skip_spaces.
10153 * symtab.c: Include cli/cli-utils.h.
10154 (rbreak_command): Use skip_spaces.
10155 * thread.c (thread_name_command): Use skip_spaces.
10156 * tracepoint.c (validate_actionline): Use skip_spaces.
10157 (encode_actions_1): Likewise.
10158 (trace_find_range_command): Likewise.
10159 (trace_find_outside_command): Likewise.
10160 (trace_dump_actions): Likewise.
10161
ac91cd70
PA
101622013-03-07 Pedro Alves <palves@redhat.com>
10163
10164 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10165 * expprint.c (print_subexp_standard): Likewise.
10166 * utils.c (host_char_to_target): Likewise.
10167 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10168 * varobj.c (value_get_print_value): Change type of local to char*.
10169 Cast it gdb_byte * in call to language printer.
10170
2898e560
PA
101712013-03-07 Pedro Alves <palves@redhat.com>
10172
10173 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10174 gdb_byte *'.
10175 (make_wchar_iterator): Remove cast to char*.
10176 (wchar_iterate): Change type of local.
10177
a09b4448
PA
101782013-03-07 Pedro Alves <palves@redhat.com>
10179
10180 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10181 for 'regcache->register_status'.
10182
20ced3e4
PA
101832013-03-07 Pedro Alves <palves@redhat.com>
10184
c2d6a675 10185 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
10186 int.
10187
fe106009
PA
101882013-03-07 Pedro Alves <palves@redhat.com>
10189
10190 * stap-probe.c (handle_stap_probe): Add cast to char*.
10191
8ac2c12b
PA
101922013-03-07 Pedro Alves <palves@redhat.com>
10193
10194 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10195 RECORD_MSGRCV>: Pass a signed variable to
10196 regcache_raw_read_signed, instead of an unsigned one.
10197
99f0a309
PA
101982013-03-07 Pedro Alves <palves@redhat.com>
10199
10200 * remote-notif.c (notif_debug): Change type to int.
10201 * remote-notif.h (notif_debug): Likewise.
10202
964b8317
PA
102032013-03-07 Pedro Alves <palves@redhat.com>
10204
10205 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10206
f0cc8ad4
PA
102072013-03-07 Pedro Alves <palves@redhat.com>
10208
10209 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10210 * remote.h (hex2bin, bin2hex): ... here.
10211 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10212
77dec115
EZ
102132013-03-07 Eli Zaretskii <eliz@gnu.org>
10214
10215 * utils.c (initialize_utils): Improve doc strings of "set/show
10216 width", "set/show height", and "set/show pagination".
10217
741d92cf
KS
102182013-03-06 Keith Seitz <keiths@redhat.com>
10219
10220 * ax-gdb.c (gen_printf): Make FORMAT const.
10221 * ax-gdb.h (gen_printf): Likewise.
10222 * ax-general.c (ax_string): Make STR const.
10223 * ax.h (ax_string): Likewise.
10224
7b6c814e
DE
102252013-03-06 Doug Evans <dje@google.com>
10226
10227 * elfread.c (elf_symfile_read): Move debugging printf to more
10228 logical location.
10229
634334ab
PA
102302013-03-06 Pedro Alves <palves@redhat.com>
10231
10232 * python/py-utils.c (target_string_to_unicode): Delete function.
10233 * python/python-internal.h (target_string_to_unicode): Delete
10234 declaration.
10235
e482a1a7
PM
102362013-03-06 Pierre Muller <muller@sourceware.org>
10237
10238 * linespec.c (get_current_search_block): ARI fix, use (void)
10239 for empty parameter list.
10240
4eeaa230
DE
102412013-03-05 Doug Evans <dje@google.com>
10242
10243 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10244 of old ada_lookup_symbol_list. In !full_search case, don't
10245 search superblocks.
10246 (ada_lookup_symbol_list): Delete arg full_search, all callers
10247 updated. Call ada_lookup_symbol_list_worker.
10248 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10249 * ada-lang.h (ada_lookup_symbol_list): Update.
10250 * language.h (language_defn): Update comment for
10251 la_iterate_over_symbols.
10252 * linespec.c (iterate_over_file_blocks): New function.
10253 (iterate_over_all_matching_symtabs): Call it.
10254 (lookup_prefix_sym): Ditto.
10255 (get_current_search_block): New function.
10256 (get_search_block): Delete.
10257 (find_label_symbols): Call get_current_search_block.
10258 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10259 * symtab.c (iterate_over_symbols): Don't search superblocks.
10260
b69b1fb1
YQ
102612013-03-05 Yao Qi <yao@codesourcery.com>
10262
10263 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10264 parameter VAR's type from "unsigned int" to "int".
10265 * command.h (var_zuinteger_unlimited): Update its comments.
10266 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10267
3c095f49
CV
102682013-03-05 Corinna Vinschen <vinschen@redhat.de>
10269
10270 * NEWS: Mention new target x86_64-*-cygwin*.
10271
b5b0b0af
CV
102722013-03-05 Corinna Vinschen <vinschen@redhat.de>
10273
10274 * configure.host: Add x86_64-*-cygwin* as host.
10275 * configure.tgt: Add x86_64-*-cygwin* as target.
10276 * config/i386/cygwin64.mh: New file.
10277
f6f99966
JK
102782013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10279
10280 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10281
33f448b1
JK
102822013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10283
10284 * linespec.c (struct linespec_canonical_name): New.
10285 (struct linespec_state): Change canonical_names type to it.
10286 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10287 xrealloc element size. Initialize the different CANONICAL fields.
10288 (canonical_to_fullform): New.
10289 (filter_results): Use it. Add variables canonical, fullform and
10290 cleanup.
10291 (struct decode_line_2_item, decode_line_2_compare_items): New.
10292 (decode_line_2): Remove variables iter and item_names, add variables
10293 items and items_count. Modify the code for these new variables.
10294
feb14725
CV
102952013-03-04 Corinna Vinschen <vinschen@redhat.com>
10296
10297 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10298 calling do_cleanup.
10299
e83b17ba
HZ
103002013-03-04 Luis Machado <lgustavo@codesourcery.com>
10301
10302 * tracepoint.c (build_traceframe_info): Add code for byte order.
10303
a2d13a0d
KB
103042013-03-02 Kevin Buettner <kevinb@redhat.com>
10305
8dddcae8
KB
10306 * v850-tdep.c: (v850e2_register_name): Revise system register
10307 names to match current V850E2M architecture specifications.
10308 Update register number enum comments too.
f5aee5ee 10309
d79e58d8
JW
103102013-03-01 Jiong Wang <jiwang@tilera.com>
10311 Pedro Alves <palves@redhat.com>
10312
10313 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10314 to END_ADDR.
10315 (tilegx_skip_prologue): Limit prologue analysis to section end.
10316
c4be5165
JK
103172013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10318
10319 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10320 use it.
10321
e362b510
PA
103222013-03-01 Pedro Alves <palves@redhat.com>
10323
10324 Use gdb_byte for bytes from the program being debugged.
10325
10326 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10327 Change type of local 'buf' to gdb_byte.
10328 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10329 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10330 * cris-tdep.c (cris_sigcontext_addr)
10331 (cris_sigtramp_frame_unwind_cache): Likewise.
10332 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10333 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10334 Likewise.
10335 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10336 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10337 (hppa32_hpux_search_dummy_call_sequence)
10338 (hppa_hpux_supply_save_state): Likewise.
10339 * hppa-linux-tdep.c (insns_match_pattern)
10340 (hppa_linux_find_global_pointer): Likewise.
10341 * hppa-tdep.c (hppa_in_function_epilogue_p)
10342 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10343 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10344 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10345 (i386fbsd_collect_uthread): Likewise.
10346 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10347 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10348 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10349 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10350 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10351 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10352 (ia64_libunwind_frame_prev_register)
10353 (ia64_libunwind_sigtramp_frame_this_id)
10354 (ia64_find_global_pointer_from_dynamic_section)
10355 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10356 (ia64_unwind_pc): Likewise.
10357 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10358 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10359 (m68hc11_extract_return_value): Likewise.
10360 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10361 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10362 (mep_get_insn, mep_push_dummy_call): Likewise.
10363 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10364 (mips_linux_in_dynsym_stub): Likewise.
10365 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10366 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10367 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10368 to gdb_byte.
10369 * remote-mips.c (mips_set_register): Likewise.
10370 * remote-sim.c (gdbsim_fetch_register): Likewise.
10371 * score-tdep.c (score7_fetch_inst): Change type of parameter
10372 'memblock' and local 'buf' to gdb_byte.
10373 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10374 Change type of local 'buf' to gdb_byte. Adjust.
10375 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10376 to gdb_byte**.
10377 (score7_analyze_prologue): Change type of 'memblock' and
10378 'memblock_ptr' locals to gdb_byte*.
10379 * sh64-tdep.c (sh64_extract_return_value)
10380 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10381 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10382 * solib-pa64.c (pa64_solib_create_inferior_hook)
10383 (pa64_open_symbol_file_object): Remove local 'buf'.
10384 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10385 (som_open_symbol_file_object): Likewise.
10386 * solib-spu.c (spu_current_sos): Likewise.
10387 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10388 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10389 (spu_store_registers): Likewise.
10390 * target.c (debug_print_register): Likewise.
10391 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10392 * xstormy16-tdep.c (xstormy16_store_return_value)
10393 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10394 (xstormy16_find_jmp_table_entry): Likewise.
10395
75cc61ca 103962013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
10397
10398 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10399 (tilegx_gdbarch_init): Install it.
10400
ddb08e9c
TT
104012013-02-28 Tom Tromey <tromey@redhat.com>
10402
10403 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10404 PyLong_Check.
10405
62d7fb51
DE
104062013-02-28 Doug Evans <dje@google.com>
10407
10408 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10409 * python/python.c (gdbpy_find_pc_line): Ditto.
10410
c4a9e8b4
TT
104112013-02-28 Tom Tromey <tromey@redhat.com>
10412
10413 * contrib/excheck.py: New file.
10414 * contrib/exsummary.py: New file.
10415 * contrib/gcc-with-excheck: New file.
10416
7f6a5dde
TT
104172013-02-28 Tom Tromey <tromey@redhat.com>
10418
10419 * python/python.c (gdbpy_print_stack): Call begin_line and
10420 fprintf_filtered inside TRY_CATCH.
10421
9e974e55
TT
104222013-02-28 Tom Tromey <tromey@redhat.com>
10423
10424 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10425 inside TRY_CATCH.
10426
dd5fa3e7
TT
104272013-02-28 Tom Tromey <tromey@redhat.com>
10428
10429 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10430 frame_object_to_frame_info inside TRY_CATCH.
10431
86a3263f
TT
104322013-02-28 Tom Tromey <tromey@redhat.com>
10433
10434 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10435 TRY_CATCH.
10436
81b52a3a
TT
104372013-02-28 Tom Tromey <tromey@redhat.com>
10438
10439 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10440
d50a0ce2
CV
104412013-02-27 Corinna Vinschen <vinschen@redhat.com>
10442
10443 * windows-nat.c: Throughout, fix format strings and casts of
10444 printf-like functions to avoid type related warnings on all
10445 platforms.
10446 (handle_output_debug_string): Fetch context information address
10447 from debug string using string_to_core_addr.
10448
e1f58301
JW
104492013-02-27 Jiong Wang <jiwang@tilera.com>
10450
10451 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10452 * regformats/reg-tilegx32.dat: New.
10453
4fcd89fc
JW
104542013-02-27 Jiong Wang <jiwang@tilera.com>
10455
10456 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10457
748d24e6
JW
104582013-02-27 Jiong Wang <jiwang@tilera.com>
10459
10460 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10461
6c8e944d
YQ
104622013-02-27 Yao Qi <yao@codesourcery.com>
10463 Pedro Alves <palves@redhat.com>
10464
10465 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
10466 pc/tp/range/outside, look for the next trace frame instead of
10467 always starting from frame 0.
6c8e944d 10468
acd7db30
AG
104692013-02-26 Anthony Green <green@moxielogic.com>
10470
10471 * configure.tgt: Add support for moxie-*-rtems* target.
10472
025e6dce
PA
104732013-02-25 Pedro Alves <palves@redhat.com>
10474
10475 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10476 warning text.
10477
ca9c94ef
MR
104782013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10479
10480 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10481 if $fp is used as the virtual frame pointer.
10482
24c274a1
AM
104832013-02-23 Alan Modra <amodra@gmail.com>
10484
10485 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10486 symbol size.
10487 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10488 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10489 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10490 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10491
bfada189
JK
104922013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10493
10494 Code cleanup.
10495 * elfread.c (build_id_bfd_get): Make the return type const.
10496 (build_id_verify): Make the check parameter const.
10497 (build_id_to_debug_filename): Make the build_id parameter and variable
10498 data const.
10499 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10500
c0355132
AM
105012013-02-21 Alan Modra <amodra@gmail.com>
10502
10503 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10504
9f44fbc0
SCR
105052013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10506
10507 Add a new method 'disassemble' to gdb.Architecture class.
10508 * python/py-arch.c (archpy_disassmble): Implementation of the
10509 new method gdb.Architecture.disassemble.
10510 (arch_object_methods): Add entry for the new method.
10511
b74ea3eb
JW
105122013-02-20 Jiong Wang <jiwang@tilera.com>
10513
10514 * MAINTAINERS (Write After Approval): Add myself to the list.
10515
61a672f1
PA
105162013-02-19 Pedro Alves <palves@redhat.com>
10517
10518 Garbage collect 'struct monitor_ops'::load_routine.
10519
10520 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10521 * monitor.c (monitor_load): No longer call
10522 current_monitor->load_routine.
10523 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10524 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10525 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10526
40e397df
PA
105272013-02-19 Pedro Alves <palves@redhat.com>
10528
10529 PR gdb/15161
10530
10531 Harmonize with generic_load.
10532
10533 * monitor.c: Include "readline/readline.h".
10534 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10535 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10536 long/strtol for the 'load_offset' local. Error out if no argument
10537 is given or if too many arguments are given. Tilde expand the
10538 passed in file name.
10539
f698ca8e
KT
105402013-02-19 Kai Tietz <ktietz@redhat.com>
10541
10542 PR gdb/15161
10543 * symfile.c (load_section_data): Change type of load_offset
10544 to CORE_ADDR.
10545 (generic_load): User strtoulst instead of strtoul for conversion
10546 of load_offset.
10547
3361b059
WL
105482013-02-19 Jiong Wang <jiwang@tilera.com>
10549
10550 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10551 for return address, "lr" register, saved on stack.
10552 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10553 after we invoke tilegx_analyze_prologue.
10554
3e9d5130
WL
105552013-02-19 Jiong Wang <jiwang@tilera.com>
10556
bb1bcd86
WL
10557 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10558
3361b059 105592013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 10560
b74ea3eb 10561 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 10562
4aaf2503
WL
105632013-02-19 Jiong Wang <jiwang@tilera.com>
10564
b74ea3eb 10565 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
10566 (tilegx_write_pc): New function.
10567 (tilegx_cannot_reference_register): Return zero if REGNO
10568 is TILEGX_FAULTNUM_REGNUM.
10569 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10570 (tilegx_register_name): Add handling of "faultnum" register.
10571 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10572 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10573 handling of TILEGX_FAULTNUM_REGNUM.
10574 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10575
bc23a956
WL
105762013-02-19 Jiong Wang <jiwang@tilera.com>
10577
10578 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 10579 should be aligned to 64bit.
bc23a956 10580
42f45f1a
KT
105812013-02-19 Kai Tietz <ktietz@redhat.com>
10582
10583 * windows-nat.c (windows_xfer_memory): Fix debug-output
10584 for LLP64.
10585
6ce4c112
LL
105862013-02-19 Lei Liu <lei.liu2@windriver.com>
10587
10588 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10589 Don't check DSP register number if HAVE_DSP is not set.
10590
30e8ee25
AM
105912013-02-19 Alan Modra <amodra@gmail.com>
10592
10593 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10594 throughout file instead.
10595 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10596 Don't xmalloc return value.
10597 (build_id_verify): Similarly. Don't xfree.
10598 (build_id_to_debug_filename): Update.
10599 (find_separate_debug_file_by_buildid): Update, don't xfree.
10600
4c9ad8c2
TT
106012013-02-18 Tom Tromey <tromey@redhat.com>
10602
10603 PR gdb/15102:
10604 * dwarf2read.c (read_subrange_type): Use result of
10605 'check_typedef'.
10606
983dc440
YQ
106072013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10608
10609 * frame.c: Remove one extra white space after #include
10610 directive.
10611
7fb2b84a
JK
106122013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10613
10614 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10615
edceb2a9
JK
106162013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10617
10618 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10619 and dir commands into an if block.
10620
e81b7af8
TT
106212013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10622
10623 * python/py-breakpoint (struct pybp_code): Use int instead of
10624 enum type_code.
10625
f5911ea1
HAQ
106262013-02-15 Pedro Alves <pedro@codesourcery.com>
10627 Hafiz Abid Qadeer <abidh@codesourcery.com>
10628
10629 * NEWS: Mention new field "trace-file".
10630 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10631 (tfile_open): Record the trace file's filename in the trace
10632 status.
10633 (tfile_files_info): Mention the name of the trace file.
10634 Check the "filename" field explicitely.
10635 (trace_status_command): Explicitely check "filename" field.
10636 (trace_find_command): Ditto.
10637 (trace_find_pc_command): Ditto.
10638 (trace_find_tracepoint_command): Ditto.
10639 (trace_find_line_command): Ditto.
10640 (trace_find_range_command): Ditto.
10641 (trace_find_outside_command): Ditto.
10642 * tracepoint.h (struct trace_status) <from_file>: Rename it
10643 to "filename" and make it hold the trace file's filename
10644 instead of a boolean.
10645 * remote.c (remote_get_trace_status): Initialize "filename"
10646 field with NULL instead of 0.
10647
796cb314
YQ
106482013-02-15 Yao Qi <yao@codesourcery.com>
10649
10650 * remote.c: Fix a typo.
10651
42e79b1d
PM
106522013-02-14 Pierre Muller <muller@sourceware.org>
10653
10654 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10655
baea0dae
PA
106562013-02-14 Pedro Alves <palves@redhat.com>
10657
10658 * utils.c (savestring): Don't #undef it. Move function to
10659 common/common-utils.c.
10660 * common/common-utils.c: Include gdb_string.h.
10661 (savestring): Move here from utils.c.
10662 * common/common-utils.h (savestring): Declare.
10663
57c3b6ed
PA
106642013-02-14 Pedro Alves <palves@redhat.com>
10665
10666 * utils.c (savestring): Rename parameter 'size' to 'len'.
10667
d6c44983
YZ
106682013-02-14 Pedro Alves <palves@redhat.com>
10669 Yufeng Zhang <yufeng.zhang@arm.com>
10670
10671 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10672 (aarch64_inferior_data, struct aarch64_inferior_data):
10673 Delete.
10674 (struct aarch64_process_info): New.
10675 (aarch64_process_list): New global.
10676 (aarch64_find_process_pid, aarch64_add_process)
10677 (aarch64_process_info_get): New functions.
10678 (aarch64_inferior_data_get): Delete.
10679 (aarch64_process_info_get): New function.
10680 (aarch64_forget_process): New function.
10681 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10682 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10683 aarch64_get_debug_reg_state.
10684 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10685 instead of linux_nat_iterate_watchpoint_lwps.
10686 (aarch64_linux_new_fork): New function.
10687 (aarch64_linux_child_post_startup_inferior): Use
10688 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10689 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10690 (aarch64_linux_remove_hw_breakpoint)
10691 (aarch64_handle_aligned_watchpoint)
10692 (aarch64_handle_unaligned_watchpoint)
10693 (aarch64_linux_insert_watchpoint)
10694 (aarch64_linux_remove_watchpoint)
10695 (aarch64_linux_stopped_data_address): Adjust to pass the current
10696 process id to aarch64_debug_reg_state.
10697 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10698 linux_nat_new_fork hook, and aarch64_forget_process as
10699 linux_nat_forget_process hook; remove the call to
10700 register_inferior_data_with_cleanup.
10701
4819b3f8
PA
107022013-02-14 Pedro Alves <palves@redhat.com>
10703
10704 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10705 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10706 lval_memory.
10707
1773c82c
HAQ
107082013-02-14 Pedro Alves <pedro@codesourcery.com>
10709 Hafiz Abid Qadeer <abidh@codesourcery.com>
10710
10711 * tracepoint.h (validate_trace_state_variable_name): Declare.
10712 * tracepoint.c (validate_trace_state_variable_name): New.
10713 (trace_variable_command): Parse the trace state variable's name
10714 without using parse_expression. Do several validations.
10715 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10716 trace state variable's name with parse_expression. Validate it.
10717
53778a97
YQ
107182013-02-14 Yao Qi <yao@codesourcery.com>
10719
10720 * infcmd.c (breakpoint_proceeded): Remove it.
10721
7b3ae3a6
YQ
107222013-02-14 Yao Qi <yao@codesourcery.com>
10723
10724 * tracepoint.c (end_actions_pseudocommand): Make it static.
10725 (while_stepping_pseudocommand): Likewise.
10726 * tracepoint.h (end_actions_pseudocommand): Remove the
10727 declaration.
10728 (while_stepping_pseudocommand): Likewise.
10729
64580925
YQ
107302013-02-14 Yao Qi <yao@codesourcery.com>
10731
10732 * cli/cli-decode.c (help_cmd): Remove the declaration of
10733 "cmdlist".
10734 (help_all): Likewise.
10735
26cb8b7c
PA
107362013-02-13 Pedro Alves <palves@redhat.com>
10737
10738 * amd64-linux-nat.c (update_debug_registers_callback):
10739 Update comment.
10740 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10741 iterate_over_lwps.
10742 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10743 i386_debug_reg_state.
10744 (amd64_linux_new_fork): New function.
10745 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10746 linux_nat_new_fork hook, and i386_forget_process as
10747 linux_nat_forget_process hook.
10748 * i386-linux-nat.c (update_debug_registers_callback):
10749 Update comment.
a8256ea1 10750 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
10751 iterate_over_lwps.
10752 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10753 i386_debug_reg_state.
10754 (i386_linux_new_fork): New function.
10755 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10756 linux_nat_new_fork hook, and i386_forget_process as
10757 linux_nat_forget_process hook.
10758 * i386-nat.c (i386_init_dregs): Delete.
10759 (i386_inferior_data, struct i386_inferior_data):
10760 Delete.
10761 (struct i386_process_info): New.
10762 (i386_process_list): New global.
10763 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10764 New functions.
10765 (i386_inferior_data_get): Delete.
10766 (i386_process_info_get): New function.
10767 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10768 (i386_forget_process): New function.
10769 (i386_cleanup_dregs): Rewrite.
10770 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10771 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10772 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10773 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10774 to i386_debug_reg_state.
10775 (i386_use_watchpoints): Don't register inferior data.
10776 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10777 adjust comment.
10778 (i386_forget_process): Declare.
10779 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10780 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10781 New static globals.
10782 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10783 (add_initial_lwp): New, factored out from ...
10784 (add_lwp): ... this. Don't check the number of lwps before
10785 calling linux_nat_new_thread.
10786 (linux_nat_iterate_watchpoint_lwps): Delete.
10787 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10788 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10789 forks and vforks.
10790 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10791 initial lwp.
10792 (linux_nat_kill, linux_nat_mourn_inferior): Call
10793 linux_nat_forget_process.
10794 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10795 (linux_nat_forget_process): New functions.
10796 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10797 type.
10798 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10799 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10800 types.
10801 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10802 (linux_nat_forget_process): New declarations.
10803
10804 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10805 (amd64fbsd_mourn_inferior): New function.
10806 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10807 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10808
5befea72
MS
108092013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10810
55015247
YQ
10811 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10812 Adding _().
5befea72 10813
1d3ffd6b
MS
108142013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10815
10816 * aarch64-linux-nat.c (debug_reg_change_callback)
10817 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10818 %s and phex().
10819
6eb04473
MS
108202013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
10821
10822 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10823 with LONGEST.
10824
a016fc87
HAQ
108252013-02-13 Pedro Alves <palves@redhat.com>
10826 Hafiz Abid Qadeer <abidh@codesourcery.com>
10827
10828 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10829
e234dfaf
TT
108302013-02-12 Tom Tromey <tromey@redhat.com>
10831
10832 PR symtab/11464:
10833 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10834 NAME return.
10835 (classify_inner_name): Remove 'first_name' argument, add
10836 'context'. Remove unused variable.
10837 (yylex): Explicitly maintain the context type. Exit loop earlier
10838 if NAME result is seen.
10839
0b1afbb3
PA
108402013-02-12 Pedro Alves <palves@redhat.com>
10841
10842 * amd64-darwin-tdep.c: Add (C) after Copyright.
10843 * cli/cli-cmds.h: Ditto.
10844 * cli/cli-decode.c: Ditto.
10845 * cli/cli-decode.h: Ditto.
10846 * cli/cli-dump.c: Ditto.
10847 * cli/cli-dump.h: Ditto.
10848 * cli/cli-interp.c: Ditto.
10849 * cli/cli-logging.c: Ditto.
10850 * cli/cli-script.c: Ditto.
10851 * cli/cli-script.h: Ditto.
10852 * cli/cli-setshow.c: Ditto.
10853 * cli/cli-setshow.h: Ditto.
10854 * cli/cli-utils.c: Ditto.
10855 * cli/cli-utils.h: Ditto.
10856 * config/alpha/nm-osf3.h: Ditto.
10857 * config/djgpp/djconfig.sh: Ditto.
10858 * config/i386/nm-fbsd.h: Ditto.
10859 * config/i386/nm-i386gnu.h: Ditto.
10860 * config/nm-linux.h: Ditto.
10861 * config/nm-nto.h: Ditto.
10862 * config/rs6000/nm-rs6000.h: Ditto.
10863 * config/sparc/nm-sol2.h: Ditto.
10864 * darwin-nat-info.c: Ditto.
10865 * dfp.c: Ditto.
10866 * dfp.h: Ditto.
10867 * gdb-demangle.h: Ditto.
10868 * i386-darwin-nat.c: Ditto.
10869 * i386-darwin-tdep.c: Ditto.
10870 * linux-fork.h: Ditto.
10871 * m32c-tdep.c: Ditto.
10872 * microblaze-linux-tdep.c: Ditto.
10873 * microblaze-rom.c: Ditto.
10874 * microblaze-tdep.c: Ditto.
10875 * microblaze-tdep.h: Ditto.
10876 * mips-linux-tdep.h: Ditto.
10877 * ppc-ravenscar-thread.c: Ditto.
10878 * ppc-ravenscar-thread.h: Ditto.
10879 * prologue-value.c: Ditto.
10880 * prologue-value.h: Ditto.
10881 * ravenscar-thread.c: Ditto.
10882 * ravenscar-thread.h: Ditto.
10883 * sparc-ravenscar-thread.c: Ditto.
10884 * sparc-ravenscar-thread.h: Ditto.
10885 * tilegx-linux-tdep.c: Ditto.
10886 * unwind_stop_reasons.def: Ditto.
10887 * windows-nat.h: Ditto.
10888 * xtensa-linux-tdep.c: Ditto.
10889 * xtensa-xtregs.c: Ditto.
10890 * regformats/regdat.sh: Ditto.
10891 * regformats/regdef.h: Ditto.
10892
6c01dd94
PA
108932013-02-12 Pedro Alves <palves@redhat.com>
10894
10895 * break-catch-sig.c: Update copyright years.
10896
b65a2bd9
SCR
108972013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10898
10899 Add support for a destructor for ui_out data and use it to
10900 provide a ui_out destructor.
10901 * ui-out.h: Declare the new ui_out destructor.
10902 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10903 * ui-out.c (default_data_destroy): Add a default data destructor
10904 which does nothing.
10905 (default_ui_out_impl): Set the new data_destroy field to
10906 default_data_destroy
10907 (uo_data_destroy): Local function which invokes the data
10908 destructor if present.
10909 (clear_table): Local function which clears the table data of a
10910 ui_out object.
10911 (ui_out_destroy): Public function which frees a ui_out object.
10912 (ui_out_table_end): Use the new clear_table function.
10913 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10914 NULL.
10915 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10916 to NULL.
10917
c2792f5a
DE
109182013-02-11 Doug Evans <dje@google.com>
10919
10920 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10921 (printf_decfloat): New function. Broken out from ui_printf.
10922 Remove unnecessary code to shift the entire format string down.
10923 (printf_pointer): New function.
10924 (ui_printf): Code to print C strings, wide C strings, decfloats,
10925 and pointers moved to separate functions.
10926
d9e98382
SDJ
109272013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10928
10929 * valops.c (value_assign): Handling bitfield offset in
10930 `lval_internalvar_component' case.
10931
4ff3ce77
DE
109322013-02-08 Doug Evans <dje@google.com>
10933
10934 * common/format.c (parse_format_string): Fix whitespace.
10935
901900c4
MGD
109362013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10937
10938 * stack.c (return_command): Work around uninitialized variable
10939 warning.
10940
b5dbc8d4
YZ
109412013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10942
10943 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10944 number of the registers from 36 to 34.
10945
51d66578
MS
109462013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10947
10948 * NEWS: Mention new AArch64 native and target support.
10949
176b1c95
MS
109502013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10951
10952 * MAINTAINERS (Write After Approval): Add myself.
10953
9d19df75
MS
109542013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10955 Marcus Shawcroft <marcus.shawcroft@arm.com>
10956 Nigel Stephens <nigel.stephens@arm.com>
10957 Yufeng Zhang <yufeng.zhang@arm.com>
10958
10959 * aarch64-linux-nat.c: New file.
10960 * config/aarch64/linux.mh: New file.
10961 * configure.host: Add AArch64.
10962 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10963
7e1e0340
DE
109642013-02-07 Doug Evans <dje@google.com>
10965
10966 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10967 disassemble command.
10968
45e25a36
MS
109692013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10970
10971 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10972 set_gdbarch_fetch_tls_load_module_address.
10973
bbfdfe1c
DM
109742013-02-06 David S. Miller <davem@davemloft.net>
10975
10976 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10977 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10978 * value.c (struct_return_convention): New function.
10979 (using_struct_return): Implement in terms of struct_return_convention.
10980 * value.h (struct_return_convention): Declare.
10981 * stack.c (return_command): Allow successful overriding of the return
10982 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10983
bc9abe4a
TT
109842013-02-06 Tom Tromey <tromey@redhat.com>
10985
10986 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10987 outside of TRY_CATCH.
10988
134a2066
YQ
109892013-02-06 Yao Qi <yao@codesourcery.com>
10990
10991 * mi/mi-interp.c: Include "tracepoint.h".
10992 (mi_tsv_modified): Declare.
10993 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10994 (mi_interpreter_init): Call observer_attach_tsv_modified.
10995 (mi_tsv_modified): New.
10996 (mi_tsv_created, mi_tsv_deleted): Update.
10997 * tracepoint.c (trace_variable_command): Call
10998 observer_notify_tsv_modified if the initial value of tsv is
10999 changed.
11000 (delete_trace_state_variable): Call
11001 observer_notify_tsv_deleted earlier.
11002 (trace_variable_command): Caller update.
11003 (create_tsv_from_upload): Likewise.
11004 * observer.sh: Declare "struct trace_state_variable".
11005
11006 * NEWS: Mention the new MI notification "=tsv-modified".
11007
59be2b6a
DE
110082013-02-05 Doug Evans <dje@google.com>
11009
11010 * completer.c (location_completer): Fix typo in comment.
11011
d30113d4
JK
110122013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11013
11014 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11015 ADDRESS sorted.
11016
14ac654f
MS
110172013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11018
11019 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11020 Refactor if statement to avoid trailing || operator.
11021
543bf33d
AT
110222013-02-05 Andreas Tobler <andreast@fgznet.ch>
11023
11024 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11025
dc18f110
AT
110262013-02-04 Andreas Tobler <andreast@fgznet.ch>
11027
11028 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11029 * configure.host: Add powerpc*-*-freebsd* target.
11030 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11031 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11032 * config/powerpc/fbsd.mh: New file.
11033
b3ac9c77
SDJ
110342013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11035 Denys Vlasenko <dvlasenk@redhat.com>
11036 Pedro Alves <palves@redhat.com>
11037
11038 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11039 (struct elf_internal_linux_prpsinfo): Forward declare.
11040 * gdbarch.h, gdbarch.c: Regenerate.
11041 * linux-tdep.c: Include `cli/cli-utils.h'.
11042 (linux_fill_prpsinfo): New function.
11043 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11044 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11045 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11046 depending on gdbarch pointer bitness.
11047 * ppc-linux-tdep.c: Include elf-bfd.h.
11048 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11049 on 32-bit.
11050
176eb98c
MS
110512013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11052 Marcus Shawcroft <marcus.shawcroft@arm.com>
11053 Nigel Stephens <nigel.stephens@arm.com>
11054 Yufeng Zhang <yufeng.zhang@arm.com>
11055
11056 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11057
cf0dbd6f
MS
110582013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11059 Marcus Shawcroft <marcus.shawcroft@arm.com>
11060 Nigel Stephens <nigel.stephens@arm.com>
11061 Yufeng Zhang <yufeng.zhang@arm.com>
11062
11063 * aarch64-newlib-tdep.c: New file.
11064 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11065 aarch64*-*-elf.
11066 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11067 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11068 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11069 * osabi.c (gdb_osabi_names): Add "Newlib".
11070
1ae3db19
MS
110712013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11072 Marcus Shawcroft <marcus.shawcroft@arm.com>
11073 Nigel Stephens <nigel.stephens@arm.com>
11074 Yufeng Zhang <yufeng.zhang@arm.com>
11075
11076 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11077 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11078 * aarch64-linux-tdep.c: New file.
11079 * aarch64-linux-tdep.h: New file.
11080 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11081 * configure.tgt: Add aarch64-none-linux-gnu.
11082
07b287a0
MS
110832013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11084 Marcus Shawcroft <marcus.shawcroft@arm.com>
11085 Nigel Stephens <nigel.stephens@arm.com>
11086 Yufeng Zhang <yufeng.zhang@arm.com>
11087
11088 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11089 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11090 (ALLDEPFILES): Add aarch64-tdep.c.
11091 * aarch64-tdep.c: New file.
11092 * aarch64-tdep.h: New file.
11093 * configure.tgt: Add AArch64.
11094 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11095 (aarch64-expedite): New definition.
11096 * features/aarch64-core.xml: New file.
11097 * features/aarch64-fpu.xml: New file.
11098 * features/aarch64-without-fpu.c: New file (generated).
11099 * features/aarch64-without-fpu.xml: New file.
11100 * features/aarch64.c: New file (generated).
11101 * features/aarch64.xml: New file.
11102 * regformats/aarch64-without-fpu.dat: New file (generated).
11103 * regformats/aarch64.dat: New file (generated).
11104
0f1b18ab
JK
111052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 * contrib/expect-read1.c: New file.
11108 * contrib/expect-read1.sh: New file.
11109
233d95b5
JK
111102013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 * dwarf2read.c (file_file_name): New function with code from
11113 file_full_name.
11114 (file_full_name): Move most of the code to file_file_name.
11115 (macro_start_file): Rename variable full_name to file_name and use
11116 file_file_name for it. Add comp_dir parameter to new_macro_table.
11117 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11118 macro_source_file->filename access by macro_source_fullname call.
11119 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11120 caller.
11121 * macrotab.c (struct macro_table): New field comp_dir.
11122 (macro_include): New variables link_fullname and source_fullname.
11123 Replace any macro_source_file->filename access by macro_source_fullname
11124 call.
11125 (macro_lookup_inclusion): Remove the partial filenames checking code.
11126 (check_for_redefinition): New variables source_fullname and
11127 found_key_fullname. Replace any macro_source_file->filename access by
11128 macro_source_fullname call.
11129 (macro_undef): New variables source_fullname and key_fullname. Replace
11130 any macro_source_file->filename access by macro_source_fullname call.
11131 (macro_lookup_definition): New variables retval and source_fullname.
11132 Replace any macro_source_file->filename access by macro_source_fullname
11133 call.
11134 (foreach_macro): New variable key_fullname. Replace any
11135 macro_source_file->filename access by macro_source_fullname call.
11136 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11137 macro_source_file->filename access by macro_source_fullname call.
11138 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11139 (macro_source_fullname): New function.
11140 * macrotab.h (struct macro_source_file): Extent the filename field
11141 comment.
11142 (new_macro_table): New parameter comp_dir, add a comment for it.
11143 (macro_source_fullname): new declaration.
11144
da235a7c
JK
111452013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11146
11147 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11148 this_real_name to outer block. Use it also for
11149 compare_filenames_for_search.
11150 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11151 with dw2_get_real_path for file_matcher, considering also
11152 BASENAMES_MAY_DIFFER.
11153 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11154
fbd9ab74
JK
111552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11156
11157 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11158 to the file_matcher parameter. Pass 0 to it.
11159 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11160 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11161 NULL psymtab_to_fullname result.
11162 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11163 an expected filename instead.
11164 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11165 file_matcher parameter. Call also psymtab_to_fullname, after newly
11166 considering BASENAMES_MAY_DIFFER.
11167 * source.c (rewrite_source_path): Remove static.
11168 * source.h (rewrite_source_path): New declaration.
11169 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11170 the expand_symtabs_matching field. Comment it.
11171 * symtab.c (file_matches): New function comment. Add parameter
11172 basenames, implement it.
11173 (search_symbols_file_matches): Add basenames parameter. Update the
11174 file_matches caller.
11175 (search_symbols): Match FILES also against symtab_to_fullname.
11176 Optimize it for BASENAMES_MAY_DIFFER.
11177
56d397a3
JK
111782013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11179
11180 * source.c (print_source_lines_base): Print for TUI also "fullname".
11181 * tui/tui-data.c (init_content_element): Change tui_locator_element
11182 field to full_name.
11183 * tui/tui-data.h (struct tui_locator_element): Likewise.
11184 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11185 tui_update_locator_filename calls to tui_update_locator_fullname.
11186 Replace symtab->filename refererence by symtab_to_fullname call.
11187 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11188 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11189 field to full_name. Replace symtab->filename refererence by
11190 symtab_to_fullname call.
11191 (tui_show_symtab_source): Rename parameter to fullname. Change
11192 tui_locator_element field to full_name.
11193 * tui/tui-stack.c: Include source.h.
11194 (tui_set_locator_filename): Rename the declaration to ...
11195 (tui_set_locator_fullname): ... here. Rename its parameter to
11196 fullname, updates its comment.
11197 (tui_set_locator_info): Rename its parameter to fullname.
11198 (tui_set_locator_filename): Rename the definition to ...
11199 (tui_set_locator_fullname): ... here. Rename its parameter to
11200 fullname, updates its comment. Change tui_locator_element field to
11201 full_name.
11202 (tui_set_locator_info): Rename its parameter to fullname.
11203 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11204 (tui_update_locator_filename): Rename to ...
11205 (tui_update_locator_fullname): ... here. Rename callee to
11206 tui_set_locator_fullname.
11207 (tui_show_frame_info): Replace symtab->filename refererence by
11208 symtab_to_fullname call.
11209 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11210 (tui_update_locator_fullname): ... here.
11211 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11212 tui_update_locator_fullname. Replace symtab->filename refererence by
11213 symtab_to_fullname call.
11214 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11215 Rename the callee to tui_update_locator_fullname.
11216 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11217
05cba821
JK
112182013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11219
11220 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11221 by symtab_to_filename_for_display calls.
11222 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11223 (clear_command): New variable sal_fullname, initialize it. Replace
11224 compare_filenames_for_search by filename_cmp with sal_fullname.
11225 (say_where, update_static_tracepoint): Replace symtab->filename
11226 refererences by symtab_to_filename_for_display calls.
11227 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11228 Likewise.
11229 * dwarf2read.c: Include source.h.
11230 (fixup_go_packaging): Replace symtab->filename refererences by
11231 symtab_to_filename_for_display calls.
11232 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11233 Replace symtab->filename refererences by symtab_to_filename_for_display
11234 calls.
11235 (create_sals_line_offset, convert_linespec_to_sals): New variable
11236 fullname, initialize it, replace symtab->filename reference by the
11237 variable.
11238 * linux-fork.c: Include source.h.
11239 (info_checkpoints_command): Replace symtab->filename refererences by
11240 symtab_to_filename_for_display calls.
11241 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11242 by symtab_to_filename_for_display calls.
11243 * mdebugread.c: Include source.h.
11244 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11245 symtab_to_filename_for_display calls.
11246 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11247 (mi_cmd_file_list_exec_source_files): Likewise.
11248 * printcmd.c: Include source.h.
11249 (build_address_symbolic): Replace symtab->filename refererences by
11250 symtab_to_filename_for_display calls.
11251 * psymtab.c (partial_map_symtabs_matching_filename)
11252 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11253 with psymtab_to_fullname.
11254 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11255 by symtab_to_filename_for_display calls.
11256 (stpy_get_filename): New variable filename, initialize it, use instead
11257 of symtab->filename refererences.
11258 (salpy_str): Make variable filename const char *. Replace
11259 symtab->filename refererences by symtab_to_filename_for_display calls.
11260 * skip.c: Include source.h and filenames.h.
11261 (skip_file_command): Remove const from the symtab variable. Replace
11262 symtab->filename refererences by symtab_to_fullname call.
11263 (function_name_is_marked_for_skip): New variables searched_for_fullname
11264 and fullname. Use them to search also with symtab's fullname.
11265 * source.c (find_source_lines): Replace symtab->filename refererences
11266 by symtab_to_filename_for_display calls.
11267 (print_source_lines_base): New variable filename, use it instead of
11268 symtab->filename. Replace symtab->filename refererences by
11269 symtab_to_filename_for_display calls.
11270 (line_info, forward_search_command): Replace symtab->filename
11271 refererences by symtab_to_filename_for_display calls.
11272 (reverse_search_command): Replace symtab->filename refererences by
11273 symtab_to_filename_for_display calls. New variable filename for it.
11274 * stack.c (frame_info): Likewise.
11275 * symmisc.c: Include source.h.
11276 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11277 (maintenance_info_symtabs): Replace symtab->filename refererences by
11278 symtab_to_filename_for_display calls.
11279 * symtab.c (iterate_over_some_symtabs): Call
11280 compare_filenames_for_search also with symtab_to_fullname.
11281 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11282 symtab->filename refererences by symtab_to_filename_for_display calls.
11283 (find_line_symtab): Replace symtab->filename refererences by
11284 symtab_to_filename_for_display calls.
11285 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11286 (print_symbol_info): Make the last parameter const char *. New
11287 variable s_filename. Use it in the function.
11288 (symtab_symbol_info): Make the last_filename variable const char *.
11289 Replace symtab->filename refererences by symtab_to_filename_for_display
11290 calls.
11291 (rbreak_command): New variable fullname. Use it. Replace
11292 symtab->filename refererence by symtab_to_filename_for_display call.
11293 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11294 (print_one_static_tracepoint_marker): Replace symtab->filename
11295 refererences by symtab_to_filename_for_display calls.
11296 * tui/tui-source.c (tui_set_source_content): New variables filename and
11297 s_filename. Replace symtab->filename refererences by this variable.
11298 Replace other symtab->filename refererences by
11299 symtab_to_filename_for_display calls.
11300
1b56eb55
JK
113012013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11302 Jan Kratochvil <jan.kratochvil@redhat.com>
11303
11304 Add a new variable that controls a way in which filenames are
11305 displayed.
11306 * NEWS (set filename-display): New entry.
11307 * source.c (filename_display_basename, filename_display_relative)
11308 (filename_display_absolute, filename_display_kind_names)
11309 (filename_display_string, show_filename_display_string)
11310 (symtab_to_filename_for_display): New.
11311 (_initialize_source): Added initialization of 'filename-display'
11312 variable.
11313 * source.h (symtab_to_filename_for_display): Added declaration.
11314 * stack.c (print_frame): Added new variable and calling of a new
11315 function and condition with this variable. Changed third argument of
11316 calling of a function.
11317
aa079c93
JK
113182013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11319
11320 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11321 Rename field reference filename to fullname.
11322 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11323 fullname. New comment for it.
11324 * tui/tui-source.c (tui_set_source_content): Rename field reference
11325 filename to fullname. Initialize field by symtab_to_fullname now.
11326 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11327 reference filename to fullname. Use symtab_to_fullname during
11328 comparison.
11329
652a8996
JK
113302013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11331
11332 Code cleanup.
11333 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11334 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11335 filename to fullname. Rename variable this_name to this_fullname.
11336 Lowercase FILENAME_CMP call.
11337 (dw2_find_symbol_file): New comment for the returned string.
11338 (dwarf2_gdb_index_functions): Rename the function to
11339 dw2_expand_symtabs_with_fullname.
11340 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11341 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11342 fullname.
11343 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11344 * symfile.h (struct quick_symbol_functions): Rename field
11345 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11346 parameter filename to fullname. Document returned string meaning for
11347 find_symbol_file.
11348 * symtab.c (find_line_symtab): Rename the called function to
11349 expand_symtabs_with_fullname.
11350
af529f8f
JK
113512013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11352
11353 Code cleanup.
11354 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11355 call of filename_cmp with compare_filenames_for_search.
11356 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11357 is_abs, unify the call of FILENAME_CMP with
11358 compare_filenames_for_search. New gdb_asserts for real_path and name.
11359 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11360 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11361 * symfile.h (struct quick_symbol_functions): Extend the comment for
11362 map_symtabs_matching_filename.
11363 * symtab.c (compare_filenames_for_search): Remove the function comment
11364 relative path requirement. Handle absolute filenames, with a comment.
11365 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11366 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11367 real_path and name. Unify the call of compare_filenames_for_search
11368 with FILENAME_CMP.
11369 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11370
2f202fde
JK
113712013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11372
11373 Code cleanup.
11374 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11375 source_file references by symtab field references. Remove variables
11376 sal and fullname.
11377 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11378 (clear_command, say_where): Replace bp_location field source_file
11379 references by symtab field references.
11380 (bp_location_dtor): Remove the source_file reference.
11381 (update_static_tracepoint): Replace bp_location field source_file
11382 references by symtab field references.
11383 (breakpoint_free_objfile): New function.
11384 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11385 Replace the field source_file by field symtab, extend its comment.
11386 (breakpoint_free_objfile): New declaration.
11387 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11388 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11389 field source_file references by symtab field references.
11390
f5b95b50
JK
113912013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11392
11393 Replace xfullpath calls by gdb_realpath calls.
11394 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11395 function comment.
11396 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11397 Remove it from the iterate_over_some_symtabs call.
11398 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11399 Remove it from the dw2_map_expand_apply calls, remove a block handling
11400 it.
11401 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11402 Remove it from the iterate_over_some_symtabs call.
11403 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11404 Remove it from the partial_map_expand_apply calls, remove a block
11405 handling it. Drop gdb_realpath call and cleanups from the real_path
11406 handling.
11407 * source.c (openp): Drop the comment part about xfullpath. Replace
11408 xfullpath calls by gdb_realpath calls.
11409 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11410 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11411 from method map_symtabs_matching_filename and its comment.
11412 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11413 gdb_realpath call.
11414 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11415 remove it also from the function comment, remove a block handling it.
11416 Drop gdb_realpath call and cleanups from the real_path handling.
11417 (iterate_over_symtabs): Drop variable full_path and its use.
11418 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11419 * utils.c (xfullpath): Remove.
11420 * utils.h (xfullpath): Remove.
11421
d78489bf
AT
114222013-02-01 Andreas Tobler <andreast@fgznet.ch>
11423
11424 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11425 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11426 (ALLDEPFILES): Add ppc64-tdep.c.
11427 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11428 ppc64-tdep.o to gdb_target_obs.
11429 * ppc64-tdep.h: New file.
11430 * ppc64-tdep.c: New file.
11431 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11432 ppc-linux-tdep.c to here.
11433 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11434 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11435 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11436 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11437 from ppc-linux-tdep.c to here.
11438 (ppc64_convert_from_func_ptr_addr): Rename from
11439 ppc64_linux_convert_from_func_ptr_addr to
11440 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11441 here.
11442 * rs6000-tdep.c:
11443 (read_insn): Move from ppc-linux-tdep.c to here.
11444 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11445 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11446 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11447 Removed above functions.
11448 (ppc_linux_init_abi): Adjust.
11449
8db60374
AR
114502013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11451
11452 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11453
f2e5f4ce
AR
114542013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11455
11456 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11457
c1f7d745
PA
114582013-02-01 Pedro Alves <palves@redhat.com>
11459
11460 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11461 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11462
8a92335b
JK
114632013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11464
11465 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11466 files with no separate debug info.
11467 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11468 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11469 only for files with no separate debug info.
11470
8eacb197
TT
114712013-01-31 Tom Tromey <tromey@redhat.com>
11472
11473 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11474 change type.
11475 (struct jit_program_space_data): Rename from jit_inferior_data.
11476 Update comments.
11477 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11478 Change return type. Attach data to program space.
11479 (jit_program_space_data_cleanup): Rename from
11480 jit_inferior_data_cleanup; change argument type.
11481 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11482 change type.
11483 (jit_register_code): Update.
11484 (jit_update_inferior_cache): Remove.
11485 (jit_breakpoint_deleted): Get jit data from the location's program
11486 space.
11487 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11488 'ps_data', change type.
11489 (jit_inferior_init, jit_breakpoint_re_set_internal)
11490 (jit_event_handler): Update.
11491 (free_objfile_data): Get data from objfile's program space.
11492 (_initialize_jit): Update.
11493
f25c0135
TT
114942013-01-31 Tom Tromey <tromey@redhat.com>
11495
11496 PR gdb/13987:
11497 * jit.c (struct jit_inferior_data) <cached_code_address,
11498 jit_breakpoint>: New fields.
11499 (jit_breakpoint_re_set_internal): Fix logging. Only create
11500 breakpoint if cached address has changed.
11501 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11502 functions.
11503 (_initialize_jit): Register breakpoint deleted observer.
11504
974a734b
AR
115052013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11506
11507 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11508 (save_infcall_suspend_state): Ifdef out unused inf.
11509 (restore_infcall_suspend_state): Ifdef out unused inf.
11510 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11511 (jit_frame_sniffer): Remove unused inf_data.
11512
df54f8eb
AR
115132013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11514
11515 * c-exp.y (classify_inner_name): Remove unused type.
11516 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11517 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11518 need_escape.
11519 (c_get_string): Remove unused kind.
11520 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11521
5799c0b9
AR
115222013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11523
11524 * charset.c (intermediate_encoding): Remove unused i.
11525 * completer.c (signal_completer): Remove unused i.
11526 * continuations.c (discard_my_continuations_1): Remove unused
11527 continuation_ptr.
11528 * corelow.c (core_close): Remove unuseD name.
11529 (get_core_siginfo): Remove unused pid.
11530 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11531 i, cps.
11532 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11533 (loclist_describe_location): Remove unused first.
11534 * event-top.c (command_line_handler): Remove unused got_eof.
11535 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11536 (resize_section_table): Remove unused old_value.
11537 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11538 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11539 * i386-tdep.c (i386_process_record): Remove unused rex.
11540 * infcmd.c (get_return_value): Remove unused uiout.
11541 * jv-lang.c (type_from_class): Remove unused is_array.
11542 * jv-valprint.c (java_val_print): Remove unused i.
11543 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11544 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11545 * m2-typeprint.c (m2_print_type): Remove unused code.
11546 * macroexp.c (get_character_constant): Remove unused body_start.
11547 (macro_stringify): Remove unused result.
11548 * objc-lang.c (find_methods): Remove unused gdbarch.
11549 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11550 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11551 * stack.c (print_frame_args): Remove unused summary.
11552 * thread.c (thread_apply_command): Remove unused p.
11553 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11554 * valops.c (search_struct_method): Remove unused skip.
11555 * valprint.c (generic_val_print): Remove unused byte_order.
11556 * varobj.c (varobj_update): Remove unused changed.
11557 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11558 (alias_command): Remove unused c.
11559 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11560 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11561 format.
11562 (mi_cmd_data_write_memory): Remove unused word_format.
11563 (mi_cmd_data_write_memory_bytes): Remove unused r.
11564 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11565 p_start, p_end.
11566 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11567 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11568 line_width.
11569
c656bca5
AR
115702013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11571
11572 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11573 * symtab.c (iterate_over_symtabs): Remove unused s.
11574 (find_pc_sect_symtab): Remove unused pspAce.
11575 (find_pc_sect_line): Remove unused alt_symtab.
11576 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11577 (completion_list_add_name): Remove unused newsize.
11578
7078baeb
TT
115792013-01-31 Tom Tromey <tromey@redhat.com>
11580
11581 PR c++/14998:
11582 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11583 TYPE_CODE_FUNC.
11584
c2e8b827
AR
115852013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11586
11587 * target.c (target_read_string): Remove unused origlen.
11588
0e43993a
AR
115892013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11590
11591 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11592 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11593 * ax-general.c (ax_print): Remove unused is_float.
11594 * blockframe.c (block_innermost_frame): Remove unused start, end.
11595 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11596
765a97ab
AR
115972013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11598
11599 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11600 (svr4_read_so_list): Remove unused lmo.
11601 * solib-target.c (solib_target_relocate_section_addresses): Remove
11602 unused flags.
11603
a99dad3d
TT
116042013-01-30 Tom Tromey <tromey@redhat.com>
11605
11606 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11607
3bff1ecd
TT
116082013-01-30 Tom Tromey <tromey@redhat.com>
11609
11610 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11611 * utils.c (gnu_debuglink_crc32): Remove.
11612 * utils.h (gnu_debuglink_crc32): Don't declare.
11613
7d455152
TT
116142013-01-30 Tom Tromey <tromey@redhat.com>
11615
11616 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11617 (read_structure_type, read_enumeration_type): Remove cast.
11618
abee88f2
TT
116192013-01-30 Tom Tromey <tromey@redhat.com>
11620
11621 * dwarf2read.c (read_namespace_type): Remove cast.
11622 (read_typedef): Likewise.
11623
8d9878a4
TT
116242013-01-29 Tom Tromey <tromey@redhat.com>
11625
11626 * dwarf2read.c (free_dwo_file): Remove assert.
11627
a543d2a9
TT
116282013-01-29 Tom Tromey <tromey@redhat.com>
11629
11630 * value.c (deprecated_set_value_modifiable): Remove.
11631 * value.h (deprecated_set_value_modifiable): Remove.
11632
bed911e5
DE
116332013-01-28 Doug Evans <dje@google.com>
11634
11635 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11636 to addresses from dwo files.
11637
28c64fc2
SCR
116382013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11639
11640 * valops.c (find_overload_match): Remove unused argument 'lax'.
11641 * value.h: Remove unused argument 'lax' from the declaration of
11642 find_overload_match.
11643 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11644 to find_overload_match.
11645 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11646 argument to find_overload_match.
11647
4d4ec4e5
TT
116482013-01-25 Tom Tromey <tromey@redhat.com>
11649
11650 * dwarf2read.c (processing_has_namespace_info): Remove.
11651 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11652 (process_die, read_func_scope, dwarf2_start_symtab)
11653 (new_symbol_full): Update.
11654
195a3f6c
TT
116552013-01-25 Tom Tromey <tromey@redhat.com>
11656
11657 * cp-namespace.c (cp_set_block_scope): Remove.
11658 * cp-support.h (cp_set_block_scope): Remove.
11659 * dbxread.c: Include block.h.
11660 (cp_set_block_scope): New function.
11661 (process_one_symbol): Update.
11662 * dwarf2read.c (read_func_scope): Use block_set_scope.
11663
8ba0730a
PA
116642013-01-25 Pedro Alves <palves@redhat.com>
11665
11666 * remote.c (add_current_inferior_and_thread): Tweak comment.
11667
12aaed36
TT
116682013-01-25 Tom Tromey <tromey@redhat.com>
11669
11670 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11671 (cp_add_using_directive): Add 'copy_names' argument.
11672 * cp-support.h (cp_add_using_directive): Update.
11673 (struct using_direct) <import_src, import_dest, alias,
11674 declaration>: Now const.
11675 * dwarf2read.c (read_import_statement): Use obconcat.
11676 Don't copy names passed to cp_add_using_directive.
11677
7fc75ca7
TT
116782013-01-25 Tom Tromey <tromey@redhat.com>
11679
11680 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11681
3405876a
PA
116822013-01-25 Pedro Alves <palves@redhat.com>
11683
11684 * remote.c (stop_reply_extract_thread): New.
11685 (add_current_inferior_and_thread): New parameter 'wait_status'.
11686 Handle it.
11687 (remote_start_remote): Pass wait status to
11688 add_current_inferior_and_thread.
11689 (extended_remote_run): Update comment.
11690 (extended_remote_create_inferior_1): Pass wait status to
11691 add_current_inferior_and_thread.
11692
8954db33
AB
116932013-01-25 Andrew Burgess <aburgess@broadcom.com>
11694 Ulrich Weigand <uweigand@de.ibm.com>
11695
11696 * valarith.c (value_vector_widen): New function for replicating a
11697 scalar into a vector.
11698 (value_binop): Use value_vector_widen to widen scalar to vector
11699 rather than casting, this better matches gcc C behaviour.
11700 * valops.c (value_casst): Update logic for casting between vector
11701 types, and for casting from scalar to vector, try to match gcc C
11702 behaviour.
11703 * value.h (value_vector_widen): Declare.
11704 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11705 function, handle special case for casting scalar to vector.
11706 (opencl_relop): Use opencl_value_cast.
11707 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11708 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11709 in order to use opencl_value_cast.
11710
843b20dc
YQ
117112013-01-25 Yao Qi <yao@codesourcery.com>
11712
11713 * event-loop.c: Include "queue.h".
11714 (gdb_event_p): New typedef.
11715 (DECLARE_QUEUE_P): Use.
11716 (DEFINE_QUEUE_P): Use.
11717 (async_queue_event): Remove.
11718 (gdb_event_xfree): New.
11719 (initialize_event_loop): New.
11720 (process_event): Use QUEUE macros.
11721 (event_queue): Remove.
11722 (gdb_wait_for_event): Caller update.
11723 (check_async_event_handlers): Likewise.
11724 (poll_timers): Likewise.
11725 * event-loop.h (initialize_event_loop): Declare.
11726 * event-loop.c (gdb_event_xfree): New.
11727 * top.c (gdb_init): Call initialize_event_loop.
11728
20ad8856
YQ
117292013-01-25 Yao Qi <yao@codesourcery.com>
11730
11731 * event-loop.c (async_queue_event): Remove one parameter
11732 'position'. Remove code handling 'position' == TAIL.
11733 (gdb_wait_for_event): Caller update.
11734 (check_async_event_handlers): Caller update.
11735 (poll_timers): Caller update.
11736 * event-loop.h (enum queue_position): Remove.
11737
3bbbe775
MK
117382013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
11739
11740 * MAINTAINERS: Update my email.
11741
a87d9ac4
YQ
117422013-01-25 Yao Qi <yao@codesourcery.com>
11743
11744 * main.c (print_gdb_help): Remove "--epoch" from the help
11745 message.
11746
2077afdd
TD
117472013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
11748
11749 * symtab.c (skip_prologue_using_sal): Consider a file
11750 change the same as an increased line number
11751
63da4037
TD
117522013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11753
30e8ee25 11754 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 11755
45e6c716
TT
117562013-01-24 Tom Tromey <tromey@redhat.com>
11757
11758 * ada-lang.h (ada_decode_symbol): Make return type const.
11759 * ada-lang.c (ada_decode_symbol): Likewise.
11760
b1ae631a
DE
117612013-01-23 Doug Evans <dje@google.com>
11762
11763 * linespec.c (find_linespec_symbols): Make static.
11764
55a78401
SDJ
117652013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
11766
11767 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11768 type on float conversion for complex type.
11769
bea883fd
SCR
117702013-01-23 Siva Chandra Reddy <sivachandra@google.com>
11771
11772 Add a new class gdb.Architecture which exposes GDB's
11773 internal representation of architecture via GDB Python API.
11774 * Makefile.in: Add entries corresponding to the new file
11775 python/py-arch.c.
11776 * NEWS (Python Scripting): Add entries for the new class
11777 gdb.Architecture and the new method gdb.Frame.architecture.
11778 * python/py-arch.c: Implement gdb.Architecture class.
11779 * python/py-frame.c (frapy_arch): Implement the method
11780 gdb.Frame.architecture().
11781 (frame_object_methods): Add 'architecture' to the method table.
11782 * python/python-internal.h: Add declarations of new utility
11783 functions.
11784 * python/python.c (_initialize_python): Initialize
11785 gdb.Architecture class.
11786
796a7ff8
DE
117872013-01-23 Doug Evans <dje@google.com>
11788
11789 Work around binutils/15021.
11790 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11791 type_unit_group out of union s. All uses updated.
11792 (read_index_from_section): Watch for index version 8.
11793 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11794 an imported symtab.
11795 (write_psymtabs_to_index): Increment version number to 8.
11796
0928e93d
PA
117972013-01-22 Pedro Alves <palves@redhat.com>
11798
11799 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11800 user-visible.
11801
9c97429f
PA
118022013-01-22 Pedro Alves <palves@redhat.com>
11803
11804 * annotate.c (annotate_breakpoints_changed): Rename to ...
11805 (annotate_breakpoints_invalid): ... this. Make static.
11806 (breakpoint_changed): Adjust.
11807 (_initialize_annotate): Always install the observers. Install a
11808 "breakpoint_created" observer.
11809 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11810 * breakpoint.c (set_breakpoint_condition)
11811 (breakpoint_set_commands, do_map_commands_command)
11812 (init_raw_breakpoint, clear_command, set_ignore_count)
11813 (enable_breakpoint_disp): No longer call
11814 annotate_breakpoints_changed.
11815
bd00c694
PA
118162013-01-22 Pedro Alves <palves@redhat.com>
11817
11818 * annotate.c: Include "inferior.h".
11819 (frames_invalid_emitted)
11820 (breakpoints_invalid_emitted): New globals.
11821 (async_background_execution_p): New function.
11822 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11823 emitting the annotation if it has already been emitted.
11824 (annotate_display_prompt): New function.
11825 * annotate.h (annotate_display_prompt): New declaration.
11826 * event-top.c: Include annotate.h.
11827 (display_gdb_prompt): Call annotate_display_prompt.
11828
187d10dd
PA
118292013-01-22 Pedro Alves <palves@redhat.com>
11830
11831 * annotate.c (ignore_count_changed): Delete.
11832 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11833 (annotate_ignore_count_change): Delete.
11834 (annotate_stopped): Don't emit a delayed breakpoints-changed
11835 annotation.
11836 * annotate.h (annotate_ignore_count_change): Delete.
11837 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11838 annotate_ignore_count_change.
11839
d84cf7eb
TT
118402013-01-22 Tom Tromey <tromey@redhat.com>
11841
11842 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11843 require_rvalue for a register location.
11844
8f1d5693
MK
118452013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
11846
11847 * breakpoint.c (print_one_breakpoint_location): Add MI
11848 field 'thread-groups' when printing a breakpoint.
11849 (output_thread_groups): New function.
11850
aa6199c6
SCR
118512013-01-21 Siva Chandra Reddy <sivachandra@google.com>
11852
11853 * python/lib/gdb/commands/explore.py
11854 (CompoundExplorer.explore_expr): Correct the name of a method
11855 being invoked.
11856 (ExploreTypeCommand.invoke): Add a missing 'return'.
11857
d2afef13
TT
118582013-01-21 Tom Tromey <tromey@redhat.com>
11859
11860 * gdb_obstack.h (obconcat): Move declaration here, from...
11861 * symfile.h (obconcat): ... here.
11862 * gdb_obstack.c: New file.
11863 (obconcat): Move from...
11864 * symfile.c (obconcat): ... here.
11865 * Makefile.in (SFILES): Add gdb_obstack.c.
11866 (COMMON_OBS): Add gdb_obstack.o.
11867
10f0c4bb
TT
118682013-01-21 Tom Tromey <tromey@redhat.com>
11869
11870 * symfile.h (obsavestring): Don't declare.
11871 * symfile.c (obsavestring): Remove.
11872 * ada-exp.y: Use obstack_copy0, not obsavestring.
11873 * ada-lang.c: Use obstack_copy0, not obsavestring.
11874 * coffread.c: Use obstack_copy0, not obsavestring.
11875 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11876 * dbxread.c: Use obstack_copy0, not obsavestring.
11877 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11878 * jit.c: Use obstack_copy0, not obsavestring.
11879 * mdebugread.c: Use obstack_copy0, not obsavestring.
11880 * psymtab.c: Use obstack_copy0, not obsavestring.
11881 * stabsread.c: Use obstack_copy0, not obsavestring.
11882 * xcoffread.c: Use obstack_copy0, not obsavestring.
11883
86f62fd7
TT
118842013-01-21 Tom Tromey <tromey@redhat.com>
11885
11886 * dwarf2read.c (fixup_go_packaging): Save package name
11887 on objfile obstack.
11888 * gdbtypes.c (init_type): Don't copy name.
11889
15d034d0
TT
118902013-01-21 Tom Tromey <tromey@redhat.com>
11891
11892 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11893 const.
11894 (struct attribute) <u.str>: Now const.
11895 (struct fnfieldlist) <name>: Now const.
11896 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11897 (partial_die_parent_scope): Make return type const.
11898 (partial_die_full_name, add_partial_symbol): Update.
11899 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11900 'name' const.
11901 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11902 (read_file_scope, read_func_scope, dwarf2_add_field)
11903 (dwarf2_add_member_fn, read_structure_type)
11904 (process_enumeration_scope, read_array_type, read_module_type)
11905 (read_base_type, read_subrange_type): Update.
11906 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11907 (new_symbol_full, guess_full_die_structure_name): Update.
11908 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11909 (dwarf2_name): Return const type.
11910 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11911 const.
11912
748e18ae
TT
119132013-01-21 Tom Tromey <tromey@redhat.com>
11914
11915 * gdbtypes.c (init_type): Make 'name' const.
11916 * gdbtypes.h (init_type): Update.
11917
46212e0b
TT
119182013-01-21 Tom Tromey <tromey@redhat.com>
11919
11920 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11921 (start_symtab): Make 'name' and 'dirname' const. Use
11922 set_last_source_file.
11923 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11924 (last_source_file): Define. Now static.
11925 (set_last_source_file, get_last_source_file): New functions.
11926 * buildsym.h (last_source_file): Don't declare.
11927 (start_symtab): Update.
11928 (set_last_source_file, get_last_source_file): Declare.
11929 * coffread.c (complete_symtab): Use set_last_source_file.
11930 (coff_end_symtab): Likewise.
11931 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11932 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11933 set_last_source_file.
11934 (process_one_symbol): Use get_last_source_file.
11935 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11936 (psymtab_to_symtab_1): Use get_last_source_file.
11937 * xcoffread.c (process_linenos): Use get_last_source_file.
11938 (complete_symtab): Use set_last_source_file.
11939 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11940 (scan_xcoff_symtab): Use set_last_source_file.
11941
9d2ceabe
TT
119422013-01-21 Tom Tromey <tromey@redhat.com>
11943
11944 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11945 (symbol_set_names): Remove casts. Handle field const-ness.
11946
cfc594ee
TT
119472013-01-21 Tom Tromey <tromey@redhat.com>
11948
11949 * dwarf2read.c (new_symbol_full): Remove cast.
11950 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11951 * symtab.h (symbol_set_demangled_name): Update.
11952
5484b13a
TT
119532013-01-21 Tom Tromey <tromey@redhat.com>
11954
11955 * main.c (captured_main): Call bfd_init.
11956
1605ef26
TT
119572013-01-21 Tom Tromey <tromey@redhat.com>
11958
11959 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11960 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11961 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11962 * NEWS: Update.
11963
3b74cdc3
JK
119642013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11965
11966 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11967
5a352474
JK
119682013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11969
11970 Fix gdb.fortran/common-block.exp crash in PIE mode.
11971 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11972 LOC_COMMON_BLOCK.
11973 * f-valprint.c (info_common_command_for_block): Expect
11974 LOC_COMMON_BLOCK in gdb_assert.
11975 * symtab.h (struct general_symbol_info): Update comment for the
11976 common_block member.
11977 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11978 (enum address_class): New member LOC_COMMON_BLOCK.
11979
c60797fd
DB
119802013-01-18 David Blaikie <dblaikie@gmail.com>
11981
11982 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11983
46f35228
TT
119842013-01-18 Tom Tromey <tromey@redhat.com>
11985
11986 PR c++/14999:
11987 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11988 Call require_rvalue.
11989
257e7a09
YQ
119902013-01-18 Yao Qi <yao@codesourcery.com>
11991
11992 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11993 (dbx_read_symtab): New declaration.
11994 (dbx_psymtab_to_symtab): Delete.
11995 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11996 Rename parameter PST to SELF. Exchanged two parameters.
11997 (start_psymtab): Caller update.
11998 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11999 (dwarf2_read_symtab): New declaration.
12000 (dwarf2_psymtab_to_symtab): Delete.
12001 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12002 Rename parameter PST to SELF. Exchanged two parameters.
12003 (create_partial_symtab): Caller update.
12004 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12005 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12006 Rename parameter PST to SELF. Exchanged two parameters.
12007 (parse_partial_symbols, new_psymtab): Caller update.
12008 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12009 two parameters.
12010 * psymtab.c (psymtab_to_symtab): Caller update.
12011 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12012 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12013 Rename parameter PST to SELF. Exchanged two parameters.
12014 (xcoff_start_psymtab): Caller update.
12015
0de5618e
YQ
120162013-01-18 Yao Qi <yao@codesourcery.com>
12017
12018 * infrun.c (proceed): Rename local variable 'oneproc' to
12019 'force_step'.
12020
5c04624b
DE
120212013-01-17 Doug Evans <dje@google.com>
12022
848e3e78
DE
12023 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12024 (dw2_build_type_unit_groups): Delete. All uses updated.
12025
5c04624b
DE
12026 * symtab.h (struct symbol_search): Add comment.
12027
d84fca2c
JK
120282013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12029
12030 * symtab.c (compare_filenames_for_search): New comment for
12031 HAS_DRIVE_SPEC.
12032
6108433d
TT
120332013-01-17 Tom Tromey <tromey@redhat.com>
12034
12035 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12036
c89ffd86
JK
120372013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12038
12039 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12040 initialize it by existing make_cleanup. Call new do_cleanups.
12041
db2b2972
TT
120422013-01-17 Tom Tromey <tromey@redhat.com>
12043
12044 * cp-abi.c (cp_abi_completer): New function.
12045 (_initialize_cp_abi): Set completer for "set cp-abi".
12046
be7d37a2
TT
120472013-01-17 Tom Tromey <tromey@redhat.com>
12048
12049 * mem-break.c: Remove obsolete comment.
12050 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12051
c9fb1240
SD
120522012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12053
12054 * jit.c (jit_reader_load_command): Interpret the jit reader name
12055 as an absolute path if it begins with a forward slash.
12056
db334a01
SD
120572012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12058
12059 PR gdb/14550
12060
12061 * jit.c (finalize_symtab): Ensure that only the global block has a
12062 NULL superblock.
12063
7d928dac
PA
120642013-01-17 Pedro Alves <palves@redhat.com>
12065
12066 * acinclude.m4: Include ../config/plugins.m4,
12067 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12068 * Makefile.in (aclocal_m4_deps): Update.
12069 * aclocal.m4: Renegerate.
12070
fb8cf7c5
DE
120712013-01-16 Doug Evans <dje@google.com>
12072
12073 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12074
ab04a2af
TT
120752013-01-16 Pedro Alves <palves@redhat.com>
12076 Tom Tromey <tromey@redhat.com>
12077
12078 PR cli/7221:
12079 * NEWS: Add "catch signal".
12080 * breakpoint.c (base_breakpoint_ops): No longer static.
12081 (bpstat_explains_signal): New function.
12082 (init_catchpoint): No longer static.
12083 (base_breakpoint_explains_signal): New function.
12084 (base_breakpoint_ops): Initialize new field.
12085 * breakpoint.h (enum bpstat_signal_value): New.
12086 (struct breakpoint_ops) <explains_signal>: New field.
12087 (bpstat_explains_signal): Remove macro, declare as function.
12088 (base_breakpoint_ops, init_catchpoint): Declare.
12089 * break-catch-sig.c: New file.
12090 * inferior.h (signal_catch_update): Declare.
12091 * infrun.c (signal_catch): New global.
12092 (handle_syscall_event): Update for change to
12093 bpstat_explains_signal.
12094 (handle_inferior_event): Likewise. Always handle random signals
12095 via bpstats.
12096 (signal_cache_update): Check signal_catch.
12097 (signal_catch_update): New function.
12098 (_initialize_infrun): Initialize signal_catch.
12099 * Makefile.in (SFILES): Add break-catch-sig.c.
12100 (COMMON_OBS): Add break-catch-sig.o.
12101
8ac3646f
TT
121022013-01-16 Tom Tromey <tromey@redhat.com>
12103
12104 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12105 (print_one_catch_solib, print_one_catch_syscall)
12106 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12107 "catch-type".
12108
5a18e302
YQ
121092013-01-16 Yao Qi <yao@codesourcery.com>
12110
12111 * printcmd.c (current_display_number): Make it static.
12112
3f01d0d0
YQ
121132013-01-16 Yao Qi <yao@codesourcery.com>
12114
12115 * infcmd.c (step_once): Don't check '!single_inst' as it was
12116 checked before.
12117
1ed59174
JK
121182013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12119
12120 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12121
44478ab3
TT
121222013-01-14 Tom Tromey <tromey@redhat.com>
12123
12124 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12125 set command.
12126 * command.h (add_setshow_string_noescape_cmd): Update.
12127 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12128 (complete_set_gnutarget): New function.
12129 (_initialize_core): Set the "set gnutarget" completer.
12130
06d66ee9
TT
121312013-01-14 Tom Tromey <tromey@redhat.com>
12132
12133 PR symtab/14442:
12134 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12135 (c_type_print_modifier): Likewise.
12136 * dwarf2read.c (read_tag_restrict_type): New function.
12137 (read_type_die_1): Handle DW_TAG_restrict_type.
12138 * gdbtypes.c (make_restrict_type): New function.
12139 (recursive_dump_type): Handle TYPE_RESTRICT.
12140 * gdbtypes.h (enum type_flag_values): Renumber.
12141 (enum type_instance_flag_value): Add
12142 TYPE_INSTANCE_FLAG_RESTRICT.
12143 (TYPE_RESTRICT): New macro.
12144 (make_restrict_type): Declare.
12145
c9bf0622
TT
121462013-01-14 Tom Tromey <tromey@redhat.com>
12147
12148 PR symtab/14931:
12149 * psymtab.c (struct psymtab_state): New.
12150 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12151 functions.
12152 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12153 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12154
44d594fd
PA
121552013-01-14 Richard Sharman <richard_sharman@mitel.com>
12156 Pedro Alves <palves@redhat.com>
12157
12158 PR remote/14786
12159
12160 * remote.c (remote_threads_info): Make a copy of the reply from
12161 qfThreadInfo and use that instead of rs->buf.
12162
442e4d9c
YQ
121632013-01-14 Yao Qi <yao@codesourcery.com>
12164
12165 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12166 (dbx_psymtab_to_symtab): Likewise.
12167 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12168 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12169 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12170
5b12a61c
JK
121712013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12172
12173 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12174 make_cleanup_restore_current_language. Call set_language. Move
12175 OLD_CHAIN and INNER_CHAIN cleanups.
12176 * utils.c (do_restore_current_language)
12177 (make_cleanup_restore_current_language): New functions.
12178 * utils.h (make_cleanup_restore_current_language): New declaration.
12179
f0a4b570
JK
121802013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12181
12182 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12183 non-existing files.
12184
57b3c00c
JK
12185 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12186 non-existing files if FILENAME is already absolute.
12187
daefa854
JK
121882013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12189
12190 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12191 fputs_filtered. Append trailing newline.
12192
ca9c6ee2
YQ
121932013-01-11 Yao Qi <yao@codesourcery.com>
12194 Stan Shebs <stan@codesourcery.com>
12195
12196 * psymtab.c (init_psymbol_list): Clarify the comment.
12197
f28045c2
YQ
121982013-01-11 Yao Qi <yao@codesourcery.com>
12199
12200 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12201 (update_dprintf_command_list): Assert that 'printf_line' is
12202 non-null. Remove condition check.
12203
da5132d3
JK
122042013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12205
12206 Code cleanup.
12207 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12208 type const char *.
12209 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12210 const char *.
12211 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12212
843e694d
AG
122132013-01-09 Anthony Green <green@moxielogic.com>
12214
12215 * cp-abi.c (cplus_print_vtable): Don't return value from void
12216 function.
12217 * ada-lang.c (re_set_catch_assert): Ditto.
12218
da51c347
DE
122192013-01-09 Doug Evans <dje@google.com>
12220
12221 * symfile.h (quick_symbol_functions): Delete member
12222 pre_expand_symtabs_matching. All uses removed.
12223 * dwarf2read.c (dw2_lookup_symbol): Implement.
12224 (dw2_do_expand_symtabs_matching): Delete.
12225 (dw2_pre_expand_symtabs_matching): Delete.
12226 (struct dw2_symtab_iterator): New type.
12227 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12228 (dw2_expand_symtabs_for_function): Rewrite.
12229 (dwarf2_gdb_index_functions): Update.
12230 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12231 (psym_functions): Update.
12232
b2259038
TT
122332013-01-09 Tom Tromey <tromey@redhat.com>
12234
12235 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12236 * configure: Rebuild.
12237 * configure.ac: Add somread.o to the build if BFD has SOM
12238 support.
12239 * somread.c: Include som/aout.h, not syms.h.
12240 (som_symtab_read): Use som_external_symbol_dictionary_record.
12241 Unpack records manually.
12242 (_initialize_somread): Declare.
12243
bdad4180
MF
122442012-01-08 Mike Frysinger <vapier@gentoo.org>
12245
12246 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12247 Cast return_address to 64bits.
12248
03cdf680
HZ
122492013-01-08 Hui Zhu <hui_zhu@mentor.com>
12250
12251 * printcmd.c: Remove define of function output_command.
12252 * tracepoint.c: Remove extern of function output_command.
12253 * valprint.h: (output_command): New extern.
12254
8a808554
TT
122552013-01-07 Tom Tromey <tromey@redhat.com>
12256
12257 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12258 Remove.
12259 (objc_language_defn): Use c_printchar, c_printstr,
12260 c_emit_char.
12261
e93a8774
TT
122622013-01-07 Tom Tromey <tromey@redhat.com>
12263
12264 PR cli/7719:
12265 * NEWS: Update.
12266 * ada-valprint.c (printstr, print_field_values): Remove
12267 "inspect_it" code.
12268 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12269 code.
12270 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12271 code.
12272 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12273 * main.c (captured_main): Remove "epoch" argument.
12274 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12275 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12276 * p-valprint.c (pascal_object_print_value_fields): Remove
12277 "inspect_it" code.
12278 * printcmd.c (print_command_1): Remove 'inspect' argument.
12279 (print_command, call_command): Update.
12280 (inspect_command): Remove.
12281 (_initialize_printcmd): Make "inspect" an alias for "print".
12282 * top.c (epoch_interface): Remove.
12283 * top.h (epoch_interface): Remove.
12284 * valprint.c (user_print_options): Update.
12285 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12286 * valprint.h (struct value_print_options) <inspect_it>: Remove
12287 field.
12288
122892013-01-04 Tom Tromey <tromey@redhat.com>
12290
12291 * valprint.h (read_string): Add 'extern'.
12292
b967eb24
JB
122932013-01-07 Joel Brobecker <brobecker@adacore.com>
12294
12295 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12296 used to decide whether to define darwin_read_dyld_info or not.
12297
78a8b30e
PM
122982013-01-03 Pierre Muller <muller@sourceware.org>
12299
12300 * main.c (relocate_gdb_directory): Avoid calling stat function
12301 if DIR is empty.
12302
50da2f25
YQ
123032013-01-03 Yao Qi <yao@codesourcery.com>
12304
12305 * psymtab.c (fixup_psymbol_section): Update declaration.
12306 (fixup_psymbol_section): Remove code returning value.
12307
e7e8980f
YQ
123082013-01-03 Yao Qi <yao@codesourcery.com>
12309
12310 * symtab.h: Remove some out of date comments.
12311 (enum exception_event_kind): Move it ...
12312 * breakpoint.c: ... here.
12313
569283d4
MF
123142013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12315
9f9d9a96 12316 PR gdb/14405
569283d4
MF
12317 * darwin-nat.c (darwin_read_dyld_info): Only build if
12318 TASK_DYLD_INFO_COUNT is defined.
12319 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12320 TASK_DYLD_INFO_COUNT is defined.
12321
2e36fbea
TT
123222013-01-02 Tom Tromey <tromey@redhat.com>
12323
12324 * symfile.h (struct ecoff_debug_hack): Remove.
12325 * objfiles.c: Don't include mdebugread.h.
12326
4f05add4
TT
123272013-01-02 Tom Tromey <tromey@redhat.com>
12328
12329 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12330 * configure.ac: Check for Mach-O support in BFD. Update
12331 CONFIG_OBS.
12332 * configure: Rebuild.
12333
def63ff0
TT
123342013-01-02 Tom Tromey <tromey@redhat.com>
12335
12336 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12337 * configure.ac: Use GDB_AC_CHECK_BFD.
12338 * configure: Rebuild.
12339
60c5dd93
MK
123402013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12341
12342 * MAINTAINERS: Update my email.
12343
6e58437e
JB
123442013-01-01 Joel Brobecker <brobecker@adacore.com>
12345
12346 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12347
627fe805
JB
123482013-01-01 Joel Brobecker <brobecker@adacore.com>
12349
12350 * rs6000-nat.c (bss_data_overlap): New function.
12351 (vmap_symtab): Use it to adjust the .bss section's offset.
12352
28e7fd62
JB
123532013-01-01 Joel Brobecker <brobecker@adacore.com>
12354
12355 Update year range in copyright notice of all files.
12356
e93a8774 123572013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
12358
12359 * top.c (print_gdb_version): Update copyright year.
12360
72b20e9c 12361For older changes see ChangeLog-2012.
c906108c
SS
12362\f
12363Local Variables:
12364mode: change-log
12365left-margin: 8
12366fill-column: 74
12367version-control: never
57da7796 12368coding: utf-8
c906108c 12369End:
This page took 2.101078 seconds and 4 git commands to generate.